@rtsee/ngx 0.0.126 → 0.0.128
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/dist/ngx/fesm2022/rtsee-ngx.mjs +632 -59
- package/dist/ngx/fesm2022/rtsee-ngx.mjs.map +1 -1
- package/dist/ngx/index.d.ts +37 -3
- package/dist/ngx/src/lib/theme/presentation/illustrator.scss +315 -90
- package/dist/ngx/src/lib/theme/presentation/interactive-story-editor.scss +198 -4
- package/dist/ngx/src/lib/theme/presentation/manage-stories.scss +110 -1
- package/package.json +11 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Input, Component, ViewChild, EventEmitter, Output, forwardRef, Directive, reflectComponentType, DOCUMENT, HostListener, Inject, ChangeDetectionStrategy, output, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i2$1 from '@angular/common';
|
|
4
4
|
import { NgClass, NgIf, NgForOf, DecimalPipe, DatePipe, NgComponentOutlet, SlicePipe, JsonPipe, DOCUMENT as DOCUMENT$1, CommonModule, NgStyle, NgOptimizedImage } from '@angular/common';
|
|
5
5
|
import * as i1 from '@angular/forms';
|
|
6
6
|
import { FormsModule, FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
@@ -18,7 +18,7 @@ import { RTSeeChatMemberRoles, RTSeeIllustratorEvents, RTSeeChatTypes, OzzyTaskS
|
|
|
18
18
|
import { sanitizeImageUrl, RTSeeFormFieldEvents, ManageAgentForm, RTSeeForm, RTSeeFormFieldRadioGroup, RTSeeFormField, RTSeeFormFieldImageUploader, fetchImageBlob, RTSeeFormFieldSelect, RTSeeFormFieldAutocomplete, RTSeeRater } from '@rtsee/utilities-ui';
|
|
19
19
|
import { InputText } from 'primeng/inputtext';
|
|
20
20
|
import { InputGroup } from 'primeng/inputgroup';
|
|
21
|
-
import * as i2$
|
|
21
|
+
import * as i2$2 from 'primeng/message';
|
|
22
22
|
import { Message, MessageModule } from 'primeng/message';
|
|
23
23
|
import { Textarea } from 'primeng/textarea';
|
|
24
24
|
import { Checkbox } from 'primeng/checkbox';
|
|
@@ -40,7 +40,7 @@ import { loadStripe } from '@stripe/stripe-js';
|
|
|
40
40
|
import { Card } from 'primeng/card';
|
|
41
41
|
import { CdkCopyToClipboard } from '@angular/cdk/clipboard';
|
|
42
42
|
import { Toast } from 'primeng/toast';
|
|
43
|
-
import * as i1$
|
|
43
|
+
import * as i1$3 from 'primeng/api';
|
|
44
44
|
import { MessageService } from 'primeng/api';
|
|
45
45
|
import Swiper from 'swiper';
|
|
46
46
|
import { Virtual, EffectCards } from 'swiper/modules';
|
|
@@ -622,18 +622,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
622
622
|
class AutocompleteFieldComponent {
|
|
623
623
|
constructor() {
|
|
624
624
|
this.fieldChanged = new EventEmitter();
|
|
625
|
+
this.subscribedAutocomplete = null;
|
|
626
|
+
this.onSelectBound = () => {
|
|
627
|
+
this.onModelChange();
|
|
628
|
+
};
|
|
625
629
|
}
|
|
626
630
|
ngOnInit() {
|
|
627
|
-
this.
|
|
628
|
-
|
|
629
|
-
|
|
631
|
+
this.bindAutocomplete();
|
|
632
|
+
}
|
|
633
|
+
ngOnChanges(changes) {
|
|
634
|
+
if (changes["field"]) {
|
|
635
|
+
this.bindAutocomplete();
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
ngOnDestroy() {
|
|
639
|
+
this.unbindAutocomplete();
|
|
630
640
|
}
|
|
631
641
|
onModelChange() {
|
|
632
642
|
this.field.digest();
|
|
633
643
|
this.fieldChanged.emit();
|
|
634
644
|
}
|
|
645
|
+
bindAutocomplete() {
|
|
646
|
+
const nextAutocomplete = this.field?.autocomplete || null;
|
|
647
|
+
if (this.subscribedAutocomplete === nextAutocomplete) {
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
this.unbindAutocomplete();
|
|
651
|
+
if (nextAutocomplete) {
|
|
652
|
+
nextAutocomplete.on("select", this.onSelectBound);
|
|
653
|
+
this.subscribedAutocomplete = nextAutocomplete;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
unbindAutocomplete() {
|
|
657
|
+
if (this.subscribedAutocomplete) {
|
|
658
|
+
this.subscribedAutocomplete.off("select", this.onSelectBound);
|
|
659
|
+
this.subscribedAutocomplete = null;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
635
662
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AutocompleteFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
636
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: AutocompleteFieldComponent, isStandalone: true, selector: "rtsee-field-autocomplete", inputs: { field: "field" }, outputs: { fieldChanged: "fieldChanged" }, ngImport: i0, template: "<div class=\"rtsee-form-field-container\">\n <rtsee-autocomplete [config]=\"field.autocomplete\"\n [disabled]=\"field.isEffectivelyDisabled\"\n ></rtsee-autocomplete>\n @if (!field.isValid && field.isDirty) {\n @for (error of field.validator.result.errors; track error.message) {\n <p-message class=\"rtsee-form-field-error-message block mt-1\"\n severity=\"error\"\n variant=\"simple\"\n size=\"small\"\n >{{ error.message }}</p-message>\n }\n }\n</div>\n", dependencies: [{ kind: "component", type: AutocompleteComponent, selector: "rtsee-autocomplete", inputs: ["config", "disabled"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }] }); }
|
|
663
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: AutocompleteFieldComponent, isStandalone: true, selector: "rtsee-field-autocomplete", inputs: { field: "field" }, outputs: { fieldChanged: "fieldChanged" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"rtsee-form-field-container\">\n <rtsee-autocomplete [config]=\"field.autocomplete\"\n [disabled]=\"field.isEffectivelyDisabled\"\n ></rtsee-autocomplete>\n @if (!field.isValid && field.isDirty) {\n @for (error of field.validator.result.errors; track error.message) {\n <p-message class=\"rtsee-form-field-error-message block mt-1\"\n severity=\"error\"\n variant=\"simple\"\n size=\"small\"\n >{{ error.message }}</p-message>\n }\n }\n</div>\n", dependencies: [{ kind: "component", type: AutocompleteComponent, selector: "rtsee-autocomplete", inputs: ["config", "disabled"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }] }); }
|
|
637
664
|
}
|
|
638
665
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AutocompleteFieldComponent, decorators: [{
|
|
639
666
|
type: Component,
|
|
@@ -1276,11 +1303,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
1276
1303
|
}] } });
|
|
1277
1304
|
|
|
1278
1305
|
class FormComponent {
|
|
1279
|
-
constructor() {
|
|
1306
|
+
constructor(cdr) {
|
|
1307
|
+
this.cdr = cdr;
|
|
1280
1308
|
this.formSubmit = new EventEmitter();
|
|
1281
1309
|
}
|
|
1282
1310
|
submit() {
|
|
1283
|
-
this.formSubmit.
|
|
1311
|
+
if (this.formSubmit.observed) {
|
|
1312
|
+
this.formSubmit.emit(this.form);
|
|
1313
|
+
}
|
|
1314
|
+
else {
|
|
1315
|
+
this.form?.submit();
|
|
1316
|
+
}
|
|
1317
|
+
this.cdr.markForCheck();
|
|
1318
|
+
this.cdr.detectChanges();
|
|
1284
1319
|
}
|
|
1285
1320
|
onCancelClick() {
|
|
1286
1321
|
this.form.onCancel?.();
|
|
@@ -1300,13 +1335,13 @@ class FormComponent {
|
|
|
1300
1335
|
}
|
|
1301
1336
|
return parts[0].substring(0, 2).toUpperCase();
|
|
1302
1337
|
}
|
|
1303
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1338
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: FormComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1304
1339
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: FormComponent, isStandalone: true, selector: "rtsee-form", inputs: { form: "form" }, outputs: { formSubmit: "formSubmit" }, ngImport: i0, template: "<div class=\"rtsee-form-container\">\n @if (form.name) {\n <h3 class=\"rts-form-title\">{{ form.name }}</h3>\n }\n @if (form.description) {\n <p class=\"rts-form-description\">{{ form.description }}</p>\n }\n <form class=\"rtsee-form rts-form-group\" (ngSubmit)=\"submit()\">\n @for (field of form.fields; track field.name) {\n @if (field.active) {\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field [field]=\"field\"\n (fieldChanged)=\"onFieldChanged()\"\n ></rtsee-form-field>\n </div>\n }\n }\n\n @if (form.submitError) {\n <div class=\"rtsee-form-error\" role=\"alert\">\n <i class=\"pi pi-exclamation-triangle\" aria-hidden=\"true\"></i>\n <span>{{ form.submitError }}</span>\n </div>\n }\n\n @if (form.submittedBy; as submitter) {\n <div class=\"rtsee-form-submitted-by\">\n <div class=\"rtsee-form-submitted-by__avatar-wrap\">\n @if (submitter.imageUrl) {\n <img class=\"rtsee-form-submitted-by__avatar\"\n [src]=\"submitter.imageUrl\"\n [alt]=\"submitter.name\"\n />\n } @else {\n <span class=\"rtsee-form-submitted-by__initials\">\n {{ getEditorInitials(submitter.name) }}\n </span>\n }\n </div>\n <span class=\"rtsee-form-submitted-by__text\">\n <strong>{{ submitter.name }}</strong> {{ form.submittedLabel || 'submited the workflow' }}\n </span>\n </div>\n }\n\n <div class=\"rtsee-form-submit-container rts-form-actions\">\n @if (form.submitButtonLabel && !form.readonly) {\n @if (form.canCancel) {\n <button\n type=\"button\"\n class=\"rtsee-form-btn rtsee-form-btn--cancel\"\n [disabled]=\"form.submitInProgress\"\n (click)=\"onCancelClick()\"\n >\n {{ form.cancelButtonLabel || 'Cancel' }}\n </button>\n }\n <button\n type=\"submit\"\n class=\"rtsee-form-btn rtsee-form-btn--submit\"\n [disabled]=\"form.submitInProgress\"\n >\n @if (form.submitInProgress) {\n <i class=\"pi pi-spin pi-spinner\" aria-hidden=\"true\"></i>\n <span>{{ form.submittingButtonLabel || 'Starting...' }}</span>\n } @else {\n <i class=\"pi pi-sparkles\" aria-hidden=\"true\"></i>\n <span>{{ form.submitButtonLabel }}</span>\n }\n </button>\n }\n <ng-content>\n </ng-content>\n </div>\n </form>\n @if (form.translatable && form.translations) {\n <rtsee-translations-panel [panel]=\"form.translations\"></rtsee-translations-panel>\n }\n</div>\n", styles: [".rtsee-form-error{display:flex;align-items:center;gap:.45rem;padding:.45rem .65rem;border-radius:.45rem;font-size:.78rem;color:var(--rtsee-danger, #ef4444);background:#ef44441a;border:1px solid rgba(239,68,68,.3);margin-top:.25rem}.rtsee-form-submitted-by{display:flex;align-items:center;gap:.55rem;padding:.5rem .7rem;margin-top:.35rem;border-radius:.5rem;background:#6366f11a;border:1px solid rgba(99,102,241,.25);font-size:.8rem;color:var(--rtsee-text, inherit)}.rtsee-form-submitted-by__avatar-wrap{width:1.6rem;height:1.6rem;border-radius:999px;overflow:hidden;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:var(--rtsee-primary, #6366f1);color:#fff;font-size:.65rem;font-weight:700}.rtsee-form-submitted-by__avatar{width:100%;height:100%;object-fit:cover;display:block}.rtsee-form-submitted-by__initials{line-height:1}.rtsee-form-submitted-by__text{line-height:1.3}.rtsee-form-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.45rem .9rem;border-radius:.5rem;font-size:.82rem;font-weight:600;cursor:pointer;border:1px solid transparent;transition:opacity .15s ease,background .15s ease}.rtsee-form-btn:disabled{opacity:.55;cursor:not-allowed}.rtsee-form-btn--cancel{background:transparent;border-color:var(--rtsee-border, rgba(148, 163, 184, .35));color:var(--rtsee-text-muted, inherit)}.rtsee-form-btn--submit{background:var(--rtsee-primary, #6366f1);color:#fff}\n"], dependencies: [{ kind: "component", type: FormFieldComponent, selector: "rtsee-form-field", inputs: ["field"], outputs: ["fieldChanged"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: TranslationsPanelComponent, selector: "rtsee-translations-panel", inputs: ["panel"] }] }); }
|
|
1305
1340
|
}
|
|
1306
1341
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: FormComponent, decorators: [{
|
|
1307
1342
|
type: Component,
|
|
1308
1343
|
args: [{ selector: "rtsee-form", standalone: true, imports: [FormFieldComponent, FormsModule, TranslationsPanelComponent], template: "<div class=\"rtsee-form-container\">\n @if (form.name) {\n <h3 class=\"rts-form-title\">{{ form.name }}</h3>\n }\n @if (form.description) {\n <p class=\"rts-form-description\">{{ form.description }}</p>\n }\n <form class=\"rtsee-form rts-form-group\" (ngSubmit)=\"submit()\">\n @for (field of form.fields; track field.name) {\n @if (field.active) {\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field [field]=\"field\"\n (fieldChanged)=\"onFieldChanged()\"\n ></rtsee-form-field>\n </div>\n }\n }\n\n @if (form.submitError) {\n <div class=\"rtsee-form-error\" role=\"alert\">\n <i class=\"pi pi-exclamation-triangle\" aria-hidden=\"true\"></i>\n <span>{{ form.submitError }}</span>\n </div>\n }\n\n @if (form.submittedBy; as submitter) {\n <div class=\"rtsee-form-submitted-by\">\n <div class=\"rtsee-form-submitted-by__avatar-wrap\">\n @if (submitter.imageUrl) {\n <img class=\"rtsee-form-submitted-by__avatar\"\n [src]=\"submitter.imageUrl\"\n [alt]=\"submitter.name\"\n />\n } @else {\n <span class=\"rtsee-form-submitted-by__initials\">\n {{ getEditorInitials(submitter.name) }}\n </span>\n }\n </div>\n <span class=\"rtsee-form-submitted-by__text\">\n <strong>{{ submitter.name }}</strong> {{ form.submittedLabel || 'submited the workflow' }}\n </span>\n </div>\n }\n\n <div class=\"rtsee-form-submit-container rts-form-actions\">\n @if (form.submitButtonLabel && !form.readonly) {\n @if (form.canCancel) {\n <button\n type=\"button\"\n class=\"rtsee-form-btn rtsee-form-btn--cancel\"\n [disabled]=\"form.submitInProgress\"\n (click)=\"onCancelClick()\"\n >\n {{ form.cancelButtonLabel || 'Cancel' }}\n </button>\n }\n <button\n type=\"submit\"\n class=\"rtsee-form-btn rtsee-form-btn--submit\"\n [disabled]=\"form.submitInProgress\"\n >\n @if (form.submitInProgress) {\n <i class=\"pi pi-spin pi-spinner\" aria-hidden=\"true\"></i>\n <span>{{ form.submittingButtonLabel || 'Starting...' }}</span>\n } @else {\n <i class=\"pi pi-sparkles\" aria-hidden=\"true\"></i>\n <span>{{ form.submitButtonLabel }}</span>\n }\n </button>\n }\n <ng-content>\n </ng-content>\n </div>\n </form>\n @if (form.translatable && form.translations) {\n <rtsee-translations-panel [panel]=\"form.translations\"></rtsee-translations-panel>\n }\n</div>\n", styles: [".rtsee-form-error{display:flex;align-items:center;gap:.45rem;padding:.45rem .65rem;border-radius:.45rem;font-size:.78rem;color:var(--rtsee-danger, #ef4444);background:#ef44441a;border:1px solid rgba(239,68,68,.3);margin-top:.25rem}.rtsee-form-submitted-by{display:flex;align-items:center;gap:.55rem;padding:.5rem .7rem;margin-top:.35rem;border-radius:.5rem;background:#6366f11a;border:1px solid rgba(99,102,241,.25);font-size:.8rem;color:var(--rtsee-text, inherit)}.rtsee-form-submitted-by__avatar-wrap{width:1.6rem;height:1.6rem;border-radius:999px;overflow:hidden;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:var(--rtsee-primary, #6366f1);color:#fff;font-size:.65rem;font-weight:700}.rtsee-form-submitted-by__avatar{width:100%;height:100%;object-fit:cover;display:block}.rtsee-form-submitted-by__initials{line-height:1}.rtsee-form-submitted-by__text{line-height:1.3}.rtsee-form-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.45rem .9rem;border-radius:.5rem;font-size:.82rem;font-weight:600;cursor:pointer;border:1px solid transparent;transition:opacity .15s ease,background .15s ease}.rtsee-form-btn:disabled{opacity:.55;cursor:not-allowed}.rtsee-form-btn--cancel{background:transparent;border-color:var(--rtsee-border, rgba(148, 163, 184, .35));color:var(--rtsee-text-muted, inherit)}.rtsee-form-btn--submit{background:var(--rtsee-primary, #6366f1);color:#fff}\n"] }]
|
|
1309
|
-
}], propDecorators: { form: [{
|
|
1344
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { form: [{
|
|
1310
1345
|
type: Input
|
|
1311
1346
|
}], formSubmit: [{
|
|
1312
1347
|
type: Output
|
|
@@ -1652,11 +1687,11 @@ class ManageChatInfoComponent {
|
|
|
1652
1687
|
this.cancelled.emit();
|
|
1653
1688
|
}
|
|
1654
1689
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageChatInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1655
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ManageChatInfoComponent, isStandalone: true, selector: "rtsee-manage-chat-info", inputs: { messenger: "messenger", chat: "chat" }, outputs: { chatSaved: "chatSaved", cancelled: "cancelled" }, ngImport: i0, template: "<div class=\"rts-manage-chat-info\">\n @if (form) {\n <rtsee-form [form]=\"form\"\n (
|
|
1690
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ManageChatInfoComponent, isStandalone: true, selector: "rtsee-manage-chat-info", inputs: { messenger: "messenger", chat: "chat" }, outputs: { chatSaved: "chatSaved", cancelled: "cancelled" }, ngImport: i0, template: "<div class=\"rts-manage-chat-info\">\n @if (form) {\n <rtsee-form [form]=\"form\"\n (formSubmit)=\"form.submit()\"\n >\n <div class=\"rts-manage-chat-info-buttons rts-form-actions\">\n <button type=\"submit\"\n class=\"rts-btn rts-btn-primary\"\n [disabled]=\"!form.isValid || manageChatInfo?.saveInProgress\"\n >\n @if (manageChatInfo?.saveInProgress) {\n <span class=\"material-icons-outlined rts-btn-spinner\">sync</span>\n }\n {{ submitLabel }}\n </button>\n <button type=\"button\"\n class=\"rts-btn rts-btn-ghost\"\n (click)=\"cancel()\"\n >\n Cancel\n </button>\n </div>\n </rtsee-form>\n }\n</div>\n", dependencies: [{ kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }] }); }
|
|
1656
1691
|
}
|
|
1657
1692
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageChatInfoComponent, decorators: [{
|
|
1658
1693
|
type: Component,
|
|
1659
|
-
args: [{ selector: 'rtsee-manage-chat-info', standalone: true, imports: [FormComponent], template: "<div class=\"rts-manage-chat-info\">\n @if (form) {\n <rtsee-form [form]=\"form\"\n (
|
|
1694
|
+
args: [{ selector: 'rtsee-manage-chat-info', standalone: true, imports: [FormComponent], template: "<div class=\"rts-manage-chat-info\">\n @if (form) {\n <rtsee-form [form]=\"form\"\n (formSubmit)=\"form.submit()\"\n >\n <div class=\"rts-manage-chat-info-buttons rts-form-actions\">\n <button type=\"submit\"\n class=\"rts-btn rts-btn-primary\"\n [disabled]=\"!form.isValid || manageChatInfo?.saveInProgress\"\n >\n @if (manageChatInfo?.saveInProgress) {\n <span class=\"material-icons-outlined rts-btn-spinner\">sync</span>\n }\n {{ submitLabel }}\n </button>\n <button type=\"button\"\n class=\"rts-btn rts-btn-ghost\"\n (click)=\"cancel()\"\n >\n Cancel\n </button>\n </div>\n </rtsee-form>\n }\n</div>\n" }]
|
|
1660
1695
|
}], propDecorators: { messenger: [{
|
|
1661
1696
|
type: Input
|
|
1662
1697
|
}], chat: [{
|
|
@@ -3731,7 +3766,15 @@ class StorytellerFormStepComponent {
|
|
|
3731
3766
|
return (this.chat?.members || []).filter((m) => m.isAgent);
|
|
3732
3767
|
}
|
|
3733
3768
|
get readonly() {
|
|
3734
|
-
return !this.step?.isActive ||
|
|
3769
|
+
return (!this.step?.isActive ||
|
|
3770
|
+
!!this.workflow?.submitInProgress ||
|
|
3771
|
+
!!this.workflow?.cancelInProgress ||
|
|
3772
|
+
!!this.workflow?.isCanceled);
|
|
3773
|
+
}
|
|
3774
|
+
onFormSubmit() {
|
|
3775
|
+
this.form.updateAgents(this.agents);
|
|
3776
|
+
this.form.submit();
|
|
3777
|
+
this.cdr.detectChanges();
|
|
3735
3778
|
}
|
|
3736
3779
|
get currentUser() {
|
|
3737
3780
|
const myPeer = this.messenger?.myPeer;
|
|
@@ -3803,6 +3846,9 @@ class StorytellerFormStepComponent {
|
|
|
3803
3846
|
if (this.workflow?.submitError) {
|
|
3804
3847
|
this.form.submitError = this.workflow.submitError;
|
|
3805
3848
|
}
|
|
3849
|
+
else if (this.workflow?.submitInProgress) {
|
|
3850
|
+
this.form.submitError = null;
|
|
3851
|
+
}
|
|
3806
3852
|
if (this.step?.formState) {
|
|
3807
3853
|
this.form.applyCollectiveState(this.step.formState);
|
|
3808
3854
|
}
|
|
@@ -3828,11 +3874,11 @@ class StorytellerFormStepComponent {
|
|
|
3828
3874
|
}
|
|
3829
3875
|
}
|
|
3830
3876
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StorytellerFormStepComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3831
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: StorytellerFormStepComponent, isStandalone: true, selector: "rtsee-storyteller-form-step", inputs: { step: "step", workflow: "workflow", chat: "chat", messenger: "messenger" }, ngImport: i0, template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n"], dependencies: [{ kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }] }); }
|
|
3877
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: StorytellerFormStepComponent, isStandalone: true, selector: "rtsee-storyteller-form-step", inputs: { step: "step", workflow: "workflow", chat: "chat", messenger: "messenger" }, ngImport: i0, template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\" (formSubmit)=\"onFormSubmit()\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n"], dependencies: [{ kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }] }); }
|
|
3832
3878
|
}
|
|
3833
3879
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StorytellerFormStepComponent, decorators: [{
|
|
3834
3880
|
type: Component,
|
|
3835
|
-
args: [{ selector: 'rtsee-storyteller-form-step', standalone: true, imports: [FormComponent], template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n"] }]
|
|
3881
|
+
args: [{ selector: 'rtsee-storyteller-form-step', standalone: true, imports: [FormComponent], template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\" (formSubmit)=\"onFormSubmit()\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n"] }]
|
|
3836
3882
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { step: [{
|
|
3837
3883
|
type: Input
|
|
3838
3884
|
}], workflow: [{
|
|
@@ -4027,10 +4073,18 @@ class StoryTranslatorFormStepComponent {
|
|
|
4027
4073
|
return (this.chat?.members || []).filter((m) => m.isAgent);
|
|
4028
4074
|
}
|
|
4029
4075
|
get readonly() {
|
|
4030
|
-
return !this.step?.isActive ||
|
|
4076
|
+
return (!this.step?.isActive ||
|
|
4077
|
+
!!this.workflow?.submitInProgress ||
|
|
4078
|
+
!!this.workflow?.cancelInProgress ||
|
|
4079
|
+
!!this.workflow?.isCanceled);
|
|
4031
4080
|
}
|
|
4032
4081
|
get canCancel() {
|
|
4033
|
-
return
|
|
4082
|
+
return false;
|
|
4083
|
+
}
|
|
4084
|
+
onFormSubmit() {
|
|
4085
|
+
this.form.updateAgents(this.agents);
|
|
4086
|
+
this.form.submit();
|
|
4087
|
+
this.cdr.detectChanges();
|
|
4034
4088
|
}
|
|
4035
4089
|
get currentUser() {
|
|
4036
4090
|
const myPeer = this.messenger?.myPeer;
|
|
@@ -4087,10 +4141,7 @@ class StoryTranslatorFormStepComponent {
|
|
|
4087
4141
|
this.workflow?.off(OzzyWorkflowClientEvents.STEP_FORM_UPDATED, this.onStepFormUpdatedBound);
|
|
4088
4142
|
}
|
|
4089
4143
|
cancel() {
|
|
4090
|
-
|
|
4091
|
-
return;
|
|
4092
|
-
}
|
|
4093
|
-
this.messenger?.discardDraftWorkflow(this.workflow);
|
|
4144
|
+
void this.workflow?.cancel(this.currentUser || undefined);
|
|
4094
4145
|
}
|
|
4095
4146
|
onRemoteStepFormUpdated(payload) {
|
|
4096
4147
|
if (!this.form || !payload?.formState) {
|
|
@@ -4119,6 +4170,9 @@ class StoryTranslatorFormStepComponent {
|
|
|
4119
4170
|
if (this.workflow?.submitError) {
|
|
4120
4171
|
this.form.submitError = this.workflow.submitError;
|
|
4121
4172
|
}
|
|
4173
|
+
else if (this.workflow?.submitInProgress) {
|
|
4174
|
+
this.form.submitError = null;
|
|
4175
|
+
}
|
|
4122
4176
|
if (this.step?.formState) {
|
|
4123
4177
|
this.form.applyCollectiveState(this.step.formState);
|
|
4124
4178
|
}
|
|
@@ -4210,11 +4264,11 @@ class StoryTranslatorFormStepComponent {
|
|
|
4210
4264
|
}
|
|
4211
4265
|
}
|
|
4212
4266
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryTranslatorFormStepComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4213
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: StoryTranslatorFormStepComponent, isStandalone: true, selector: "rtsee-story-translator-form-step", inputs: { step: "step", workflow: "workflow", chat: "chat", messenger: "messenger" }, ngImport: i0, template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n", ".rts-st-autocomplete{position:relative}.rts-st-autocomplete-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:12px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-input{padding-left:32px;padding-right:32px}.rts-st-autocomplete-input.rts-st-autocomplete-selected{font-weight:600}.rts-st-autocomplete-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;padding:0;border:none;border-radius:50%;font-size:10px;cursor:pointer;color:var(--rts-text-secondary, #8a8fa3);background:transparent;transition:background .15s ease,color .15s ease}.rts-st-autocomplete-clear:hover{color:var(--rts-text-primary);background:#8b5cf626}.rts-st-autocomplete-panel{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:240px;margin:0;padding:4px;overflow-y:auto;list-style:none;border-radius:10px;border:1px solid rgba(139,92,246,.28);background:linear-gradient(145deg,#1f2132,#161826);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 14px 32px -12px #0000008c;animation:rts-st-panel-in .14s ease-out}.rts-st-autocomplete-option{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:7px;cursor:pointer;transition:background .12s ease}.rts-st-autocomplete-option.rts-st-autocomplete-option-active{background:linear-gradient(135deg,#6366f129,#8b5cf61a)}.rts-st-autocomplete-option[aria-selected=true] .rts-st-autocomplete-option-name{color:var(--rts-st-accent)}.rts-st-autocomplete-thumb{flex-shrink:0;width:30px;height:30px;border-radius:7px;object-fit:cover}.rts-st-autocomplete-thumb-empty{display:flex;align-items:center;justify-content:center;font-size:15px;background:#8b5cf624}.rts-st-autocomplete-option-body{display:flex;flex-direction:column;min-width:0}.rts-st-autocomplete-option-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;color:var(--rts-text-primary, #f3f4f6)}.rts-st-autocomplete-option-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-empty{padding:8px;font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-error{font-style:normal;color:#f43f5e}.rts-st-translator-actions{gap:8px}.rts-st-checkbox-row{display:flex;align-items:flex-start;gap:10px;padding:9px 11px;border-radius:9px;border:1px solid rgba(139,92,246,.22);background:#0f101ca6;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,background .15s ease}.rts-st-checkbox-row:hover{border-color:#8b5cf673;background:#8b5cf61a}.rts-st-checkbox-input{margin-top:2px;width:15px;height:15px;flex-shrink:0;accent-color:var(--rts-st-accent, #8b5cf6);cursor:pointer}.rts-st-checkbox-body{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-st-checkbox-title{font-size:13px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-st-checkbox-desc{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-cancel{padding:8px 16px;border-radius:9px;border:1px solid var(--rts-border-dim, rgba(120, 120, 160, .25));background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease}.rts-st-cancel:hover{color:var(--rts-text-primary);border-color:#f43f5e73;background:#f43f5e0f}@keyframes rts-st-panel-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}\n"], dependencies: [{ kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }] }); }
|
|
4267
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: StoryTranslatorFormStepComponent, isStandalone: true, selector: "rtsee-story-translator-form-step", inputs: { step: "step", workflow: "workflow", chat: "chat", messenger: "messenger" }, ngImport: i0, template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\" (formSubmit)=\"onFormSubmit()\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n", ".rts-st-autocomplete{position:relative}.rts-st-autocomplete-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:12px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-input{padding-left:32px;padding-right:32px}.rts-st-autocomplete-input.rts-st-autocomplete-selected{font-weight:600}.rts-st-autocomplete-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;padding:0;border:none;border-radius:50%;font-size:10px;cursor:pointer;color:var(--rts-text-secondary, #8a8fa3);background:transparent;transition:background .15s ease,color .15s ease}.rts-st-autocomplete-clear:hover{color:var(--rts-text-primary);background:#8b5cf626}.rts-st-autocomplete-panel{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:240px;margin:0;padding:4px;overflow-y:auto;list-style:none;border-radius:10px;border:1px solid rgba(139,92,246,.28);background:linear-gradient(145deg,#1f2132,#161826);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 14px 32px -12px #0000008c;animation:rts-st-panel-in .14s ease-out}.rts-st-autocomplete-option{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:7px;cursor:pointer;transition:background .12s ease}.rts-st-autocomplete-option.rts-st-autocomplete-option-active{background:linear-gradient(135deg,#6366f129,#8b5cf61a)}.rts-st-autocomplete-option[aria-selected=true] .rts-st-autocomplete-option-name{color:var(--rts-st-accent)}.rts-st-autocomplete-thumb{flex-shrink:0;width:30px;height:30px;border-radius:7px;object-fit:cover}.rts-st-autocomplete-thumb-empty{display:flex;align-items:center;justify-content:center;font-size:15px;background:#8b5cf624}.rts-st-autocomplete-option-body{display:flex;flex-direction:column;min-width:0}.rts-st-autocomplete-option-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;color:var(--rts-text-primary, #f3f4f6)}.rts-st-autocomplete-option-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-empty{padding:8px;font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-error{font-style:normal;color:#f43f5e}.rts-st-translator-actions{gap:8px}.rts-st-checkbox-row{display:flex;align-items:flex-start;gap:10px;padding:9px 11px;border-radius:9px;border:1px solid rgba(139,92,246,.22);background:#0f101ca6;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,background .15s ease}.rts-st-checkbox-row:hover{border-color:#8b5cf673;background:#8b5cf61a}.rts-st-checkbox-input{margin-top:2px;width:15px;height:15px;flex-shrink:0;accent-color:var(--rts-st-accent, #8b5cf6);cursor:pointer}.rts-st-checkbox-body{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-st-checkbox-title{font-size:13px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-st-checkbox-desc{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-cancel{padding:8px 16px;border-radius:9px;border:1px solid var(--rts-border-dim, rgba(120, 120, 160, .25));background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease}.rts-st-cancel:hover{color:var(--rts-text-primary);border-color:#f43f5e73;background:#f43f5e0f}@keyframes rts-st-panel-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}\n"], dependencies: [{ kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }] }); }
|
|
4214
4268
|
}
|
|
4215
4269
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryTranslatorFormStepComponent, decorators: [{
|
|
4216
4270
|
type: Component,
|
|
4217
|
-
args: [{ selector: 'rtsee-story-translator-form-step', standalone: true, imports: [FormComponent], template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n", ".rts-st-autocomplete{position:relative}.rts-st-autocomplete-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:12px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-input{padding-left:32px;padding-right:32px}.rts-st-autocomplete-input.rts-st-autocomplete-selected{font-weight:600}.rts-st-autocomplete-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;padding:0;border:none;border-radius:50%;font-size:10px;cursor:pointer;color:var(--rts-text-secondary, #8a8fa3);background:transparent;transition:background .15s ease,color .15s ease}.rts-st-autocomplete-clear:hover{color:var(--rts-text-primary);background:#8b5cf626}.rts-st-autocomplete-panel{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:240px;margin:0;padding:4px;overflow-y:auto;list-style:none;border-radius:10px;border:1px solid rgba(139,92,246,.28);background:linear-gradient(145deg,#1f2132,#161826);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 14px 32px -12px #0000008c;animation:rts-st-panel-in .14s ease-out}.rts-st-autocomplete-option{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:7px;cursor:pointer;transition:background .12s ease}.rts-st-autocomplete-option.rts-st-autocomplete-option-active{background:linear-gradient(135deg,#6366f129,#8b5cf61a)}.rts-st-autocomplete-option[aria-selected=true] .rts-st-autocomplete-option-name{color:var(--rts-st-accent)}.rts-st-autocomplete-thumb{flex-shrink:0;width:30px;height:30px;border-radius:7px;object-fit:cover}.rts-st-autocomplete-thumb-empty{display:flex;align-items:center;justify-content:center;font-size:15px;background:#8b5cf624}.rts-st-autocomplete-option-body{display:flex;flex-direction:column;min-width:0}.rts-st-autocomplete-option-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;color:var(--rts-text-primary, #f3f4f6)}.rts-st-autocomplete-option-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-empty{padding:8px;font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-error{font-style:normal;color:#f43f5e}.rts-st-translator-actions{gap:8px}.rts-st-checkbox-row{display:flex;align-items:flex-start;gap:10px;padding:9px 11px;border-radius:9px;border:1px solid rgba(139,92,246,.22);background:#0f101ca6;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,background .15s ease}.rts-st-checkbox-row:hover{border-color:#8b5cf673;background:#8b5cf61a}.rts-st-checkbox-input{margin-top:2px;width:15px;height:15px;flex-shrink:0;accent-color:var(--rts-st-accent, #8b5cf6);cursor:pointer}.rts-st-checkbox-body{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-st-checkbox-title{font-size:13px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-st-checkbox-desc{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-cancel{padding:8px 16px;border-radius:9px;border:1px solid var(--rts-border-dim, rgba(120, 120, 160, .25));background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease}.rts-st-cancel:hover{color:var(--rts-text-primary);border-color:#f43f5e73;background:#f43f5e0f}@keyframes rts-st-panel-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}\n"] }]
|
|
4271
|
+
args: [{ selector: 'rtsee-story-translator-form-step', standalone: true, imports: [FormComponent], template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\" (formSubmit)=\"onFormSubmit()\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n", ".rts-st-autocomplete{position:relative}.rts-st-autocomplete-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:12px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-input{padding-left:32px;padding-right:32px}.rts-st-autocomplete-input.rts-st-autocomplete-selected{font-weight:600}.rts-st-autocomplete-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;padding:0;border:none;border-radius:50%;font-size:10px;cursor:pointer;color:var(--rts-text-secondary, #8a8fa3);background:transparent;transition:background .15s ease,color .15s ease}.rts-st-autocomplete-clear:hover{color:var(--rts-text-primary);background:#8b5cf626}.rts-st-autocomplete-panel{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:240px;margin:0;padding:4px;overflow-y:auto;list-style:none;border-radius:10px;border:1px solid rgba(139,92,246,.28);background:linear-gradient(145deg,#1f2132,#161826);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 14px 32px -12px #0000008c;animation:rts-st-panel-in .14s ease-out}.rts-st-autocomplete-option{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:7px;cursor:pointer;transition:background .12s ease}.rts-st-autocomplete-option.rts-st-autocomplete-option-active{background:linear-gradient(135deg,#6366f129,#8b5cf61a)}.rts-st-autocomplete-option[aria-selected=true] .rts-st-autocomplete-option-name{color:var(--rts-st-accent)}.rts-st-autocomplete-thumb{flex-shrink:0;width:30px;height:30px;border-radius:7px;object-fit:cover}.rts-st-autocomplete-thumb-empty{display:flex;align-items:center;justify-content:center;font-size:15px;background:#8b5cf624}.rts-st-autocomplete-option-body{display:flex;flex-direction:column;min-width:0}.rts-st-autocomplete-option-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;color:var(--rts-text-primary, #f3f4f6)}.rts-st-autocomplete-option-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-empty{padding:8px;font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-error{font-style:normal;color:#f43f5e}.rts-st-translator-actions{gap:8px}.rts-st-checkbox-row{display:flex;align-items:flex-start;gap:10px;padding:9px 11px;border-radius:9px;border:1px solid rgba(139,92,246,.22);background:#0f101ca6;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,background .15s ease}.rts-st-checkbox-row:hover{border-color:#8b5cf673;background:#8b5cf61a}.rts-st-checkbox-input{margin-top:2px;width:15px;height:15px;flex-shrink:0;accent-color:var(--rts-st-accent, #8b5cf6);cursor:pointer}.rts-st-checkbox-body{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-st-checkbox-title{font-size:13px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-st-checkbox-desc{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-cancel{padding:8px 16px;border-radius:9px;border:1px solid var(--rts-border-dim, rgba(120, 120, 160, .25));background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease}.rts-st-cancel:hover{color:var(--rts-text-primary);border-color:#f43f5e73;background:#f43f5e0f}@keyframes rts-st-panel-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}\n"] }]
|
|
4218
4272
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { step: [{
|
|
4219
4273
|
type: Input
|
|
4220
4274
|
}], workflow: [{
|
|
@@ -4431,10 +4485,18 @@ class StoryRepairFormStepComponent {
|
|
|
4431
4485
|
return (this.chat?.members || []).filter((m) => m.isAgent);
|
|
4432
4486
|
}
|
|
4433
4487
|
get readonly() {
|
|
4434
|
-
return !this.step?.isActive ||
|
|
4488
|
+
return (!this.step?.isActive ||
|
|
4489
|
+
!!this.workflow?.submitInProgress ||
|
|
4490
|
+
!!this.workflow?.cancelInProgress ||
|
|
4491
|
+
!!this.workflow?.isCanceled);
|
|
4435
4492
|
}
|
|
4436
4493
|
get canCancel() {
|
|
4437
|
-
return
|
|
4494
|
+
return false;
|
|
4495
|
+
}
|
|
4496
|
+
onFormSubmit() {
|
|
4497
|
+
this.form.updateAgents(this.agents);
|
|
4498
|
+
this.form.submit();
|
|
4499
|
+
this.cdr.detectChanges();
|
|
4438
4500
|
}
|
|
4439
4501
|
get currentUser() {
|
|
4440
4502
|
const myPeer = this.messenger?.myPeer;
|
|
@@ -4486,10 +4548,7 @@ class StoryRepairFormStepComponent {
|
|
|
4486
4548
|
this.workflow?.off(OzzyWorkflowClientEvents.STEP_FORM_UPDATED, this.onStepFormUpdatedBound);
|
|
4487
4549
|
}
|
|
4488
4550
|
cancel() {
|
|
4489
|
-
|
|
4490
|
-
return;
|
|
4491
|
-
}
|
|
4492
|
-
this.messenger?.discardDraftWorkflow(this.workflow);
|
|
4551
|
+
void this.workflow?.cancel(this.currentUser || undefined);
|
|
4493
4552
|
}
|
|
4494
4553
|
onRemoteStepFormUpdated(payload) {
|
|
4495
4554
|
if (!this.form || !payload?.formState) {
|
|
@@ -4516,6 +4575,9 @@ class StoryRepairFormStepComponent {
|
|
|
4516
4575
|
if (this.workflow?.submitError) {
|
|
4517
4576
|
this.form.submitError = this.workflow.submitError;
|
|
4518
4577
|
}
|
|
4578
|
+
else if (this.workflow?.submitInProgress) {
|
|
4579
|
+
this.form.submitError = null;
|
|
4580
|
+
}
|
|
4519
4581
|
if (this.step?.formState) {
|
|
4520
4582
|
this.form.applyCollectiveState(this.step.formState);
|
|
4521
4583
|
}
|
|
@@ -4552,11 +4614,11 @@ class StoryRepairFormStepComponent {
|
|
|
4552
4614
|
}
|
|
4553
4615
|
}
|
|
4554
4616
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryRepairFormStepComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4555
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: StoryRepairFormStepComponent, isStandalone: true, selector: "rtsee-story-repair-form-step", inputs: { step: "step", workflow: "workflow", chat: "chat", messenger: "messenger" }, ngImport: i0, template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n", ".rts-st-autocomplete{position:relative}.rts-st-autocomplete-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:12px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-input{padding-left:32px;padding-right:32px}.rts-st-autocomplete-input.rts-st-autocomplete-selected{font-weight:600}.rts-st-autocomplete-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;padding:0;border:none;border-radius:50%;font-size:10px;cursor:pointer;color:var(--rts-text-secondary, #8a8fa3);background:transparent;transition:background .15s ease,color .15s ease}.rts-st-autocomplete-clear:hover{color:var(--rts-text-primary);background:#8b5cf626}.rts-st-autocomplete-panel{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:240px;margin:0;padding:4px;overflow-y:auto;list-style:none;border-radius:10px;border:1px solid rgba(139,92,246,.28);background:linear-gradient(145deg,#1f2132,#161826);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 14px 32px -12px #0000008c;animation:rts-st-panel-in .14s ease-out}.rts-st-autocomplete-option{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:7px;cursor:pointer;transition:background .12s ease}.rts-st-autocomplete-option.rts-st-autocomplete-option-active{background:linear-gradient(135deg,#6366f129,#8b5cf61a)}.rts-st-autocomplete-option[aria-selected=true] .rts-st-autocomplete-option-name{color:var(--rts-st-accent)}.rts-st-autocomplete-thumb{flex-shrink:0;width:30px;height:30px;border-radius:7px;object-fit:cover}.rts-st-autocomplete-thumb-empty{display:flex;align-items:center;justify-content:center;font-size:15px;background:#8b5cf624}.rts-st-autocomplete-option-body{display:flex;flex-direction:column;min-width:0}.rts-st-autocomplete-option-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;color:var(--rts-text-primary, #f3f4f6)}.rts-st-autocomplete-option-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-empty{padding:8px;font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-error{font-style:normal;color:#f43f5e}.rts-st-translator-actions{gap:8px}.rts-st-checkbox-row{display:flex;align-items:flex-start;gap:10px;padding:9px 11px;border-radius:9px;border:1px solid rgba(139,92,246,.22);background:#0f101ca6;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,background .15s ease}.rts-st-checkbox-row:hover{border-color:#8b5cf673;background:#8b5cf61a}.rts-st-checkbox-input{margin-top:2px;width:15px;height:15px;flex-shrink:0;accent-color:var(--rts-st-accent, #8b5cf6);cursor:pointer}.rts-st-checkbox-body{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-st-checkbox-title{font-size:13px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-st-checkbox-desc{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-cancel{padding:8px 16px;border-radius:9px;border:1px solid var(--rts-border-dim, rgba(120, 120, 160, .25));background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease}.rts-st-cancel:hover{color:var(--rts-text-primary);border-color:#f43f5e73;background:#f43f5e0f}@keyframes rts-st-panel-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}\n", ".rts-st-repair-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}@media (max-width: 480px){.rts-st-repair-options-grid{grid-template-columns:1fr}}\n"], dependencies: [{ kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }] }); }
|
|
4617
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: StoryRepairFormStepComponent, isStandalone: true, selector: "rtsee-story-repair-form-step", inputs: { step: "step", workflow: "workflow", chat: "chat", messenger: "messenger" }, ngImport: i0, template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\" (formSubmit)=\"onFormSubmit()\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n", ".rts-st-autocomplete{position:relative}.rts-st-autocomplete-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:12px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-input{padding-left:32px;padding-right:32px}.rts-st-autocomplete-input.rts-st-autocomplete-selected{font-weight:600}.rts-st-autocomplete-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;padding:0;border:none;border-radius:50%;font-size:10px;cursor:pointer;color:var(--rts-text-secondary, #8a8fa3);background:transparent;transition:background .15s ease,color .15s ease}.rts-st-autocomplete-clear:hover{color:var(--rts-text-primary);background:#8b5cf626}.rts-st-autocomplete-panel{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:240px;margin:0;padding:4px;overflow-y:auto;list-style:none;border-radius:10px;border:1px solid rgba(139,92,246,.28);background:linear-gradient(145deg,#1f2132,#161826);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 14px 32px -12px #0000008c;animation:rts-st-panel-in .14s ease-out}.rts-st-autocomplete-option{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:7px;cursor:pointer;transition:background .12s ease}.rts-st-autocomplete-option.rts-st-autocomplete-option-active{background:linear-gradient(135deg,#6366f129,#8b5cf61a)}.rts-st-autocomplete-option[aria-selected=true] .rts-st-autocomplete-option-name{color:var(--rts-st-accent)}.rts-st-autocomplete-thumb{flex-shrink:0;width:30px;height:30px;border-radius:7px;object-fit:cover}.rts-st-autocomplete-thumb-empty{display:flex;align-items:center;justify-content:center;font-size:15px;background:#8b5cf624}.rts-st-autocomplete-option-body{display:flex;flex-direction:column;min-width:0}.rts-st-autocomplete-option-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;color:var(--rts-text-primary, #f3f4f6)}.rts-st-autocomplete-option-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-empty{padding:8px;font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-error{font-style:normal;color:#f43f5e}.rts-st-translator-actions{gap:8px}.rts-st-checkbox-row{display:flex;align-items:flex-start;gap:10px;padding:9px 11px;border-radius:9px;border:1px solid rgba(139,92,246,.22);background:#0f101ca6;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,background .15s ease}.rts-st-checkbox-row:hover{border-color:#8b5cf673;background:#8b5cf61a}.rts-st-checkbox-input{margin-top:2px;width:15px;height:15px;flex-shrink:0;accent-color:var(--rts-st-accent, #8b5cf6);cursor:pointer}.rts-st-checkbox-body{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-st-checkbox-title{font-size:13px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-st-checkbox-desc{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-cancel{padding:8px 16px;border-radius:9px;border:1px solid var(--rts-border-dim, rgba(120, 120, 160, .25));background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease}.rts-st-cancel:hover{color:var(--rts-text-primary);border-color:#f43f5e73;background:#f43f5e0f}@keyframes rts-st-panel-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}\n", ".rts-st-repair-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}@media (max-width: 480px){.rts-st-repair-options-grid{grid-template-columns:1fr}}\n"], dependencies: [{ kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }] }); }
|
|
4556
4618
|
}
|
|
4557
4619
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryRepairFormStepComponent, decorators: [{
|
|
4558
4620
|
type: Component,
|
|
4559
|
-
args: [{ selector: 'rtsee-story-repair-form-step', standalone: true, imports: [FormComponent], template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n", ".rts-st-autocomplete{position:relative}.rts-st-autocomplete-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:12px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-input{padding-left:32px;padding-right:32px}.rts-st-autocomplete-input.rts-st-autocomplete-selected{font-weight:600}.rts-st-autocomplete-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;padding:0;border:none;border-radius:50%;font-size:10px;cursor:pointer;color:var(--rts-text-secondary, #8a8fa3);background:transparent;transition:background .15s ease,color .15s ease}.rts-st-autocomplete-clear:hover{color:var(--rts-text-primary);background:#8b5cf626}.rts-st-autocomplete-panel{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:240px;margin:0;padding:4px;overflow-y:auto;list-style:none;border-radius:10px;border:1px solid rgba(139,92,246,.28);background:linear-gradient(145deg,#1f2132,#161826);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 14px 32px -12px #0000008c;animation:rts-st-panel-in .14s ease-out}.rts-st-autocomplete-option{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:7px;cursor:pointer;transition:background .12s ease}.rts-st-autocomplete-option.rts-st-autocomplete-option-active{background:linear-gradient(135deg,#6366f129,#8b5cf61a)}.rts-st-autocomplete-option[aria-selected=true] .rts-st-autocomplete-option-name{color:var(--rts-st-accent)}.rts-st-autocomplete-thumb{flex-shrink:0;width:30px;height:30px;border-radius:7px;object-fit:cover}.rts-st-autocomplete-thumb-empty{display:flex;align-items:center;justify-content:center;font-size:15px;background:#8b5cf624}.rts-st-autocomplete-option-body{display:flex;flex-direction:column;min-width:0}.rts-st-autocomplete-option-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;color:var(--rts-text-primary, #f3f4f6)}.rts-st-autocomplete-option-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-empty{padding:8px;font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-error{font-style:normal;color:#f43f5e}.rts-st-translator-actions{gap:8px}.rts-st-checkbox-row{display:flex;align-items:flex-start;gap:10px;padding:9px 11px;border-radius:9px;border:1px solid rgba(139,92,246,.22);background:#0f101ca6;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,background .15s ease}.rts-st-checkbox-row:hover{border-color:#8b5cf673;background:#8b5cf61a}.rts-st-checkbox-input{margin-top:2px;width:15px;height:15px;flex-shrink:0;accent-color:var(--rts-st-accent, #8b5cf6);cursor:pointer}.rts-st-checkbox-body{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-st-checkbox-title{font-size:13px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-st-checkbox-desc{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-cancel{padding:8px 16px;border-radius:9px;border:1px solid var(--rts-border-dim, rgba(120, 120, 160, .25));background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease}.rts-st-cancel:hover{color:var(--rts-text-primary);border-color:#f43f5e73;background:#f43f5e0f}@keyframes rts-st-panel-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}\n", ".rts-st-repair-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}@media (max-width: 480px){.rts-st-repair-options-grid{grid-template-columns:1fr}}\n"] }]
|
|
4621
|
+
args: [{ selector: 'rtsee-story-repair-form-step', standalone: true, imports: [FormComponent], template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\" (formSubmit)=\"onFormSubmit()\"></rtsee-form>\n</div>\n\n", styles: [":host{display:block;--rts-st-accent: #8b5cf6;--rts-st-accent-2: #6366f1}.rts-storyteller-form{display:flex;flex-direction:column;gap:12px}.rts-storyteller-field{display:flex;flex-direction:column;gap:5px}.rts-storyteller-label{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-counter{font-weight:500;letter-spacing:0;text-transform:none}.rts-storyteller-input{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:9px;border:1px solid rgba(139,92,246,.25);background:#0f101cc7;color:var(--rts-text-primary, #f3f4f6);font:inherit;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.rts-storyteller-input::placeholder{color:var(--rts-text-muted, #6a6a7a)}.rts-storyteller-input:focus{border-color:var(--rts-st-accent);background:#141524eb;box-shadow:0 0 0 3px #8b5cf638}.rts-storyteller-input:disabled{opacity:.75;cursor:default}.rts-storyteller-input.rts-storyteller-invalid{border-color:#f43f5e;box-shadow:0 0 0 3px #f43f5e1f}.rts-storyteller-textarea{min-height:80px;resize:vertical;line-height:1.5}.rts-storyteller-textarea-lg{min-height:160px;max-height:480px}.rts-storyteller-select-wrap{position:relative}.rts-storyteller-select{appearance:none;padding-right:32px;cursor:pointer}.rts-storyteller-select option{background:#181926;color:#f3f4f6}.rts-storyteller-select-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-hint{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-storyteller-error{padding:6px 10px;border-radius:6px;font-size:12px;color:#f43f5e;background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-storyteller-actions{display:flex;justify-content:flex-end}.rts-storyteller-submit{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border:none;border-radius:9px;color:#fff;font-weight:600;font-size:13px;cursor:pointer;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent) 60%,#a78bfa);background-size:160% 160%;box-shadow:0 4px 14px -4px #6366f199;transition:transform .15s ease,box-shadow .15s ease,background-position .4s ease}.rts-storyteller-submit:hover:not(:disabled){transform:translateY(-1px);background-position:100% 0;box-shadow:0 6px 18px -4px #6366f1bf}.rts-storyteller-submit:disabled{opacity:.6;cursor:default;box-shadow:none}.rts-storyteller-spinner{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rts-st-spin .8s linear infinite}.rts-story-link-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;text-decoration:none;color:inherit;background:linear-gradient(135deg,#6366f11a,#8b5cf60f);border:1px solid rgba(139,92,246,.3);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:rts-st-pop .4s cubic-bezier(.2,.9,.3,1.3)}.rts-story-link-card:hover{transform:translateY(-2px);border-color:var(--rts-st-accent);box-shadow:0 10px 28px -12px #8b5cf699}.rts-story-link-card:hover .rts-story-link-arrow{transform:translate(3px)}.rts-story-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;font-size:20px;background:linear-gradient(135deg,var(--rts-st-accent-2),var(--rts-st-accent))}.rts-story-link-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.rts-story-link-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rts-st-accent)}.rts-story-link-title{font-size:15px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-story-link-description{font-size:12px;color:var(--rts-text-secondary, #8a8fa3);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rts-story-link-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-story-link-arrow{color:var(--rts-st-accent);transition:transform .2s ease}@keyframes rts-st-spin{to{transform:rotate(360deg)}}@keyframes rts-st-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}\n", ".rts-st-autocomplete{position:relative}.rts-st-autocomplete-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:12px;pointer-events:none;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-input{padding-left:32px;padding-right:32px}.rts-st-autocomplete-input.rts-st-autocomplete-selected{font-weight:600}.rts-st-autocomplete-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;padding:0;border:none;border-radius:50%;font-size:10px;cursor:pointer;color:var(--rts-text-secondary, #8a8fa3);background:transparent;transition:background .15s ease,color .15s ease}.rts-st-autocomplete-clear:hover{color:var(--rts-text-primary);background:#8b5cf626}.rts-st-autocomplete-panel{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:240px;margin:0;padding:4px;overflow-y:auto;list-style:none;border-radius:10px;border:1px solid rgba(139,92,246,.28);background:linear-gradient(145deg,#1f2132,#161826);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 14px 32px -12px #0000008c;animation:rts-st-panel-in .14s ease-out}.rts-st-autocomplete-option{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:7px;cursor:pointer;transition:background .12s ease}.rts-st-autocomplete-option.rts-st-autocomplete-option-active{background:linear-gradient(135deg,#6366f129,#8b5cf61a)}.rts-st-autocomplete-option[aria-selected=true] .rts-st-autocomplete-option-name{color:var(--rts-st-accent)}.rts-st-autocomplete-thumb{flex-shrink:0;width:30px;height:30px;border-radius:7px;object-fit:cover}.rts-st-autocomplete-thumb-empty{display:flex;align-items:center;justify-content:center;font-size:15px;background:#8b5cf624}.rts-st-autocomplete-option-body{display:flex;flex-direction:column;min-width:0}.rts-st-autocomplete-option-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;color:var(--rts-text-primary, #f3f4f6)}.rts-st-autocomplete-option-meta{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-empty{padding:8px;font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-autocomplete-error{font-style:normal;color:#f43f5e}.rts-st-translator-actions{gap:8px}.rts-st-checkbox-row{display:flex;align-items:flex-start;gap:10px;padding:9px 11px;border-radius:9px;border:1px solid rgba(139,92,246,.22);background:#0f101ca6;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,background .15s ease}.rts-st-checkbox-row:hover{border-color:#8b5cf673;background:#8b5cf61a}.rts-st-checkbox-input{margin-top:2px;width:15px;height:15px;flex-shrink:0;accent-color:var(--rts-st-accent, #8b5cf6);cursor:pointer}.rts-st-checkbox-body{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-st-checkbox-title{font-size:13px;font-weight:600;color:var(--rts-text-primary, #f3f4f6)}.rts-st-checkbox-desc{font-size:11px;color:var(--rts-text-secondary, #8a8fa3)}.rts-st-cancel{padding:8px 16px;border-radius:9px;border:1px solid var(--rts-border-dim, rgba(120, 120, 160, .25));background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease}.rts-st-cancel:hover{color:var(--rts-text-primary);border-color:#f43f5e73;background:#f43f5e0f}@keyframes rts-st-panel-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}\n", ".rts-st-repair-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}@media (max-width: 480px){.rts-st-repair-options-grid{grid-template-columns:1fr}}\n"] }]
|
|
4560
4622
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { step: [{
|
|
4561
4623
|
type: Input
|
|
4562
4624
|
}], workflow: [{
|
|
@@ -4650,6 +4712,9 @@ class RtsWorkflowComponent {
|
|
|
4650
4712
|
if (!this.workflow) {
|
|
4651
4713
|
return '';
|
|
4652
4714
|
}
|
|
4715
|
+
if (this.workflow.isCanceled) {
|
|
4716
|
+
return 'Canceled';
|
|
4717
|
+
}
|
|
4653
4718
|
if (this.workflow.isDraft) {
|
|
4654
4719
|
return 'Draft';
|
|
4655
4720
|
}
|
|
@@ -4661,6 +4726,62 @@ class RtsWorkflowComponent {
|
|
|
4661
4726
|
}
|
|
4662
4727
|
return 'In progress';
|
|
4663
4728
|
}
|
|
4729
|
+
get canCancel() {
|
|
4730
|
+
return !!this.workflow && !this.workflow.isFinished && !this.workflow.isCanceled;
|
|
4731
|
+
}
|
|
4732
|
+
get canceledByUser() {
|
|
4733
|
+
const raw = this.workflow?.canceledBy;
|
|
4734
|
+
const member = raw?.id ? this.chat?.getMemberById(raw.id) : undefined;
|
|
4735
|
+
const name = (raw?.name && raw.name.trim()) || member?.name || 'Unknown user';
|
|
4736
|
+
const imageUrl = raw?.imageUrl || member?.imageUrl;
|
|
4737
|
+
return {
|
|
4738
|
+
id: raw?.id,
|
|
4739
|
+
name,
|
|
4740
|
+
imageUrl,
|
|
4741
|
+
};
|
|
4742
|
+
}
|
|
4743
|
+
get canceledAtDate() {
|
|
4744
|
+
return (this.workflow?.canceledAt ||
|
|
4745
|
+
this.workflow?.updatedAt ||
|
|
4746
|
+
this.workflow?.createdAt ||
|
|
4747
|
+
null);
|
|
4748
|
+
}
|
|
4749
|
+
cancelWorkflow() {
|
|
4750
|
+
if (!this.workflow || !this.canCancel || this.workflow.cancelInProgress) {
|
|
4751
|
+
return;
|
|
4752
|
+
}
|
|
4753
|
+
let editor;
|
|
4754
|
+
const myPeer = this.messenger?.myPeer;
|
|
4755
|
+
if (myPeer?.clientId) {
|
|
4756
|
+
editor = {
|
|
4757
|
+
id: myPeer.clientId,
|
|
4758
|
+
name: myPeer.name || 'User',
|
|
4759
|
+
imageUrl: myPeer.imageUrl,
|
|
4760
|
+
};
|
|
4761
|
+
}
|
|
4762
|
+
else {
|
|
4763
|
+
const myId = this.chat?.clientId || this.messenger?.clientId;
|
|
4764
|
+
if (myId) {
|
|
4765
|
+
const member = this.chat?.getMemberById(myId);
|
|
4766
|
+
editor = {
|
|
4767
|
+
id: myId,
|
|
4768
|
+
name: member?.name || 'User',
|
|
4769
|
+
imageUrl: member?.imageUrl,
|
|
4770
|
+
};
|
|
4771
|
+
}
|
|
4772
|
+
}
|
|
4773
|
+
void this.workflow.cancel(editor);
|
|
4774
|
+
}
|
|
4775
|
+
getInitials(name) {
|
|
4776
|
+
if (!name || !name.trim()) {
|
|
4777
|
+
return '?';
|
|
4778
|
+
}
|
|
4779
|
+
const parts = name.trim().split(/\s+/);
|
|
4780
|
+
if (parts.length >= 2) {
|
|
4781
|
+
return `${parts[0][0]}${parts[1][0]}`.toUpperCase();
|
|
4782
|
+
}
|
|
4783
|
+
return parts[0].substring(0, 2).toUpperCase();
|
|
4784
|
+
}
|
|
4664
4785
|
stepClass(step) {
|
|
4665
4786
|
return {
|
|
4666
4787
|
'rts-workflow-step-active': step.isActive,
|
|
@@ -4706,11 +4827,11 @@ class RtsWorkflowComponent {
|
|
|
4706
4827
|
workflow.on(OzzyWorkflowClientEvents.CHANGED, this.onChangedBound);
|
|
4707
4828
|
}
|
|
4708
4829
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RtsWorkflowComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: WorkflowStepsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4709
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RtsWorkflowComponent, isStandalone: true, selector: "rtsee-rts-workflow", inputs: { message: "message", messenger: "messenger", chat: "chat" }, ngImport: i0, template: "<div class=\"rts-workflow\">\n @if (workflow) {\n <div class=\"rts-workflow-header\">\n <div class=\"rts-workflow-heading\">\n <span class=\"rts-workflow-badge\">#{{ workflow.name }}</span>\n <span class=\"rts-workflow-title\">{{ workflow.title || workflow.name }}</span>\n </div>\n <span class=\"rts-workflow-status\"\n [ngClass]=\"{\n 'rts-workflow-status-finished': workflow.isFinished,\n 'rts-workflow-status-failed': workflow.isFailed,\n 'rts-workflow-status-draft': workflow.isDraft\n }\"\n >{{ statusLabel }}</span>\n </div>\n\n <div class=\"rts-workflow-progress\">\n <div class=\"rts-workflow-progress-bar\" [style.width.%]=\"progress\"></div>\n </div>\n\n <nav class=\"rts-workflow-steps\">\n @for (step of workflow.steps; track step.id; let i = $index; let last = $last) {\n <button type=\"button\"\n class=\"rts-workflow-step\"\n [ngClass]=\"stepClass(step)\"\n [disabled]=\"!canView(step)\"\n (click)=\"viewStep(step)\"\n [title]=\"step.title || step.name\"\n >\n <span class=\"rts-workflow-step-index\">\n @if (step.isFinished) {\n <span class=\"pi pi-check\"></span>\n } @else if (step.isFailed) {\n <span class=\"pi pi-times\"></span>\n } @else {\n {{ i + 1 }}\n }\n </span>\n <span class=\"rts-workflow-step-label\">{{ step.title || step.name }}</span>\n </button>\n @if (!last) {\n <span class=\"rts-workflow-step-connector\"\n [class.rts-workflow-step-connector-done]=\"step.isFinished\"\n ></span>\n }\n }\n </nav>\n\n <section class=\"rts-workflow-body\">\n @if (viewedStep; as step) {\n @if (step.error) {\n <div class=\"rts-workflow-error\">{{ step.error.message }}</div>\n }\n @if (stepComponent) {\n @for (s of [step]; track s.id) {\n <ng-container *ngComponentOutlet=\"stepComponent; inputs: stepInputs\"></ng-container>\n }\n } @else {\n <div class=\"rts-workflow-placeholder\">No widget registered for \"{{ step.widget }}\".</div>\n }\n }\n </section>\n } @else if (loading) {\n <div class=\"rts-workflow-skeleton\">\n <div class=\"rts-workflow-skeleton-line rts-workflow-skeleton-line-sm\"></div>\n <div class=\"rts-workflow-skeleton-line\"></div>\n <div class=\"rts-workflow-skeleton-line rts-workflow-skeleton-line-lg\"></div>\n </div>\n } @else if (loadError) {\n <div class=\"rts-workflow-error\">\n {{ loadError }}\n @if (message.ozzyWorkflowId) {\n <button type=\"button\" class=\"rts-workflow-retry\" (click)=\"retry()\">Retry</button>\n }\n </div>\n }\n</div>\n", styles: [":host{display:block;--rts-wf-accent: #8b5cf6;--rts-wf-accent-2: #6366f1;--rts-wf-success: #10b981;--rts-wf-fail: #f43f5e}.rts-workflow{display:flex;flex-direction:column;gap:12px;width:min(560px,100%);min-width:280px;padding:14px;border-radius:14px;background:radial-gradient(120% 80% at 0% 0%,rgba(99,102,241,.16),transparent 60%),radial-gradient(100% 80% at 100% 0%,rgba(167,139,250,.14),transparent 60%),linear-gradient(145deg,#1d1e2c,#151621 55%,#10111a);border:1px solid rgba(139,92,246,.28);box-shadow:0 12px 32px -14px #000000a6,0 8px 24px -16px #6366f173;color:var(--rts-text-primary, #e5e5e7);animation:rts-wf-enter .35s ease}.rts-workflow-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.rts-workflow-heading{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-workflow-badge{align-self:flex-start;padding:1px 7px;border-radius:5px;font-size:10px;font-weight:700;letter-spacing:.04em;color:var(--rts-wf-accent);background:linear-gradient(135deg,#6366f124,#8b5cf624)}.rts-workflow-title{font-size:15px;font-weight:650;color:var(--rts-text-primary, #f3f4f6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rts-workflow-status{flex-shrink:0;padding:2px 9px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--rts-wf-accent);background:#8b5cf61f}.rts-workflow-status.rts-workflow-status-finished{color:var(--rts-wf-success);background:#10b9811f}.rts-workflow-status.rts-workflow-status-failed{color:var(--rts-wf-fail);background:#f43f5e1f}.rts-workflow-status.rts-workflow-status-draft{color:var(--rts-text-secondary, #8a8fa3);background:#8a8fa324}.rts-workflow-progress{height:3px;border-radius:3px;overflow:hidden;background:#8b5cf61f}.rts-workflow-progress-bar{height:100%;border-radius:3px;background:linear-gradient(90deg,var(--rts-wf-accent-2),var(--rts-wf-accent),#a78bfa);transition:width .5s cubic-bezier(.2,.8,.2,1)}.rts-workflow-steps{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none}.rts-workflow-step{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:4px 10px 4px 4px;border-radius:999px;border:1px solid transparent;background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:12px;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.rts-workflow-step:hover:not(:disabled){background:#8b5cf614}.rts-workflow-step:disabled{cursor:default;opacity:.55}.rts-workflow-step.rts-workflow-step-viewed{color:var(--rts-text-primary, #f3f4f6);border-color:#8b5cf666;background:#8b5cf624}.rts-workflow-step-index{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;font-size:11px;font-weight:700;border:1.5px solid currentColor;transition:all .2s ease}.rts-workflow-step-index .pi{font-size:10px}.rts-workflow-step-active .rts-workflow-step-index{color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--rts-wf-accent-2),var(--rts-wf-accent));box-shadow:0 0 0 3px #8b5cf633;animation:rts-wf-ring 2s ease-in-out infinite}.rts-workflow-step-finished .rts-workflow-step-index{color:#fff;border-color:transparent;background:var(--rts-wf-success)}.rts-workflow-step-failed .rts-workflow-step-index{color:#fff;border-color:transparent;background:var(--rts-wf-fail)}.rts-workflow-step-label{white-space:nowrap}.rts-workflow-step-connector{flex:1 0 12px;min-width:12px;height:2px;border-radius:2px;background:#8b5cf626;transition:background .3s ease}.rts-workflow-step-connector.rts-workflow-step-connector-done{background:linear-gradient(90deg,var(--rts-wf-success),rgba(16,185,129,.5))}.rts-workflow-body{animation:rts-wf-enter .25s ease}.rts-workflow-placeholder{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-workflow-error{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;padding:6px 10px;border-radius:6px;font-size:12px;color:var(--rts-wf-fail);background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-workflow-retry{border:none;background:transparent;color:inherit;font-weight:600;cursor:pointer;text-decoration:underline}.rts-workflow-skeleton{display:flex;flex-direction:column;gap:8px}.rts-workflow-skeleton-line{height:12px;width:70%;border-radius:6px;background:linear-gradient(90deg,#8b5cf614,#8b5cf62e,#8b5cf614);background-size:200% 100%;animation:rts-wf-shimmer 1.2s linear infinite}.rts-workflow-skeleton-line.rts-workflow-skeleton-line-sm{width:30%}.rts-workflow-skeleton-line.rts-workflow-skeleton-line-lg{width:100%;height:60px}@keyframes rts-wf-enter{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes rts-wf-ring{0%,to{box-shadow:0 0 0 3px #8b5cf633}50%{box-shadow:0 0 0 5px #8b5cf61a}}@keyframes rts-wf-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }] }); }
|
|
4830
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RtsWorkflowComponent, isStandalone: true, selector: "rtsee-rts-workflow", inputs: { message: "message", messenger: "messenger", chat: "chat" }, ngImport: i0, template: "<div class=\"rts-workflow\" [class.rts-workflow-is-canceled]=\"workflow?.isCanceled\">\n @if (workflow) {\n <div class=\"rts-workflow-header\">\n <div class=\"rts-workflow-heading\">\n <span class=\"rts-workflow-badge\">#{{ workflow.name }}</span>\n <span class=\"rts-workflow-title\">{{ workflow.title || workflow.name }}</span>\n </div>\n <div class=\"rts-workflow-header-actions\">\n <span class=\"rts-workflow-status\"\n [ngClass]=\"{\n 'rts-workflow-status-finished': workflow.isFinished,\n 'rts-workflow-status-failed': workflow.isFailed,\n 'rts-workflow-status-canceled': workflow.isCanceled,\n 'rts-workflow-status-draft': workflow.isDraft\n }\"\n >{{ statusLabel }}</span>\n @if (canCancel) {\n <button type=\"button\"\n class=\"rts-workflow-cancel-btn\"\n [disabled]=\"workflow.cancelInProgress\"\n (click)=\"cancelWorkflow()\"\n title=\"Cancel workflow\"\n >\n <span class=\"pi pi-ban\"></span>\n <span>{{ workflow.cancelInProgress ? 'Canceling\u2026' : 'Cancel' }}</span>\n </button>\n }\n </div>\n </div>\n\n @if (workflow.isCanceled) {\n <section class=\"rts-workflow-canceled-card\">\n <div class=\"rts-workflow-canceled-row\">\n <span class=\"rts-workflow-canceled-label\">Workflow</span>\n <span class=\"rts-workflow-canceled-value\">{{ workflow.title || workflow.name }}</span>\n </div>\n <div class=\"rts-workflow-canceled-row\">\n <span class=\"rts-workflow-canceled-label\">Canceled by</span>\n <span class=\"rts-workflow-canceled-person\">\n @if (canceledByUser.imageUrl) {\n <img class=\"rts-workflow-canceled-avatar\"\n [src]=\"canceledByUser.imageUrl\"\n [alt]=\"canceledByUser.name\"\n />\n } @else {\n <span class=\"rts-workflow-canceled-avatar rts-workflow-canceled-avatar-initials\">\n {{ getInitials(canceledByUser.name) }}\n </span>\n }\n <span class=\"rts-workflow-canceled-value\">{{ canceledByUser.name }}</span>\n </span>\n </div>\n @if (canceledAtDate) {\n <div class=\"rts-workflow-canceled-row\">\n <span class=\"rts-workflow-canceled-label\">Canceled at</span>\n <span class=\"rts-workflow-canceled-value\">{{ canceledAtDate | date:'medium' }}</span>\n </div>\n }\n </section>\n } @else {\n <div class=\"rts-workflow-progress\">\n <div class=\"rts-workflow-progress-bar\" [style.width.%]=\"progress\"></div>\n </div>\n\n <nav class=\"rts-workflow-steps\">\n @for (step of workflow.steps; track step.index; let i = $index; let last = $last) {\n <button type=\"button\"\n class=\"rts-workflow-step\"\n [ngClass]=\"stepClass(step)\"\n [disabled]=\"!canView(step)\"\n (click)=\"viewStep(step)\"\n [title]=\"step.title || step.name\"\n >\n <span class=\"rts-workflow-step-index\">\n @if (step.isFinished) {\n <span class=\"pi pi-check\"></span>\n } @else if (step.isFailed) {\n <span class=\"pi pi-times\"></span>\n } @else {\n {{ i + 1 }}\n }\n </span>\n <span class=\"rts-workflow-step-label\">{{ step.title || step.name }}</span>\n </button>\n @if (!last) {\n <span class=\"rts-workflow-step-connector\"\n [class.rts-workflow-step-connector-done]=\"step.isFinished\"\n ></span>\n }\n }\n </nav>\n\n <section class=\"rts-workflow-body\">\n @if (viewedStep; as step) {\n @if (step.error) {\n <div class=\"rts-workflow-error\">{{ step.error.message }}</div>\n }\n @if (stepComponent) {\n @for (s of [step]; track s.index) {\n <ng-container *ngComponentOutlet=\"stepComponent; inputs: stepInputs\"></ng-container>\n }\n } @else {\n <div class=\"rts-workflow-placeholder\">No widget registered for \"{{ step.widget }}\".</div>\n }\n }\n </section>\n }\n } @else if (loading) {\n <div class=\"rts-workflow-skeleton\">\n <div class=\"rts-workflow-skeleton-line rts-workflow-skeleton-line-sm\"></div>\n <div class=\"rts-workflow-skeleton-line\"></div>\n <div class=\"rts-workflow-skeleton-line rts-workflow-skeleton-line-lg\"></div>\n </div>\n } @else if (loadError) {\n <div class=\"rts-workflow-error\">\n {{ loadError }}\n @if (message.ozzyWorkflowId) {\n <button type=\"button\" class=\"rts-workflow-retry\" (click)=\"retry()\">Retry</button>\n }\n </div>\n }\n</div>\n", styles: [":host{display:block;--rts-wf-accent: #8b5cf6;--rts-wf-accent-2: #6366f1;--rts-wf-success: #10b981;--rts-wf-fail: #f43f5e}.rts-workflow{display:flex;flex-direction:column;gap:12px;width:min(560px,100%);min-width:280px;padding:14px;border-radius:14px;background:radial-gradient(120% 80% at 0% 0%,rgba(99,102,241,.16),transparent 60%),radial-gradient(100% 80% at 100% 0%,rgba(167,139,250,.14),transparent 60%),linear-gradient(145deg,#1d1e2c,#151621 55%,#10111a);border:1px solid rgba(139,92,246,.28);box-shadow:0 12px 32px -14px #000000a6,0 8px 24px -16px #6366f173;color:var(--rts-text-primary, #e5e5e7);animation:rts-wf-enter .35s ease}.rts-workflow-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.rts-workflow-heading{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-workflow-badge{align-self:flex-start;padding:1px 7px;border-radius:5px;font-size:10px;font-weight:700;letter-spacing:.04em;color:var(--rts-wf-accent);background:linear-gradient(135deg,#6366f124,#8b5cf624)}.rts-workflow-title{font-size:15px;font-weight:650;color:var(--rts-text-primary, #f3f4f6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rts-workflow-header-actions{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}.rts-workflow-cancel-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;border:1px solid rgba(244,63,94,.32);background:#f43f5e14;color:#fda4af;font:inherit;font-size:11px;font-weight:600;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.rts-workflow-cancel-btn .pi{font-size:10px}.rts-workflow-cancel-btn:hover:not(:disabled){background:#f43f5e2e;border-color:#f43f5e8c;color:#ffe4e6}.rts-workflow-cancel-btn:disabled{opacity:.6;cursor:default}.rts-workflow-status{flex-shrink:0;padding:2px 9px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--rts-wf-accent);background:#8b5cf61f}.rts-workflow-status.rts-workflow-status-finished{color:var(--rts-wf-success);background:#10b9811f}.rts-workflow-status.rts-workflow-status-failed{color:var(--rts-wf-fail);background:#f43f5e1f}.rts-workflow-status.rts-workflow-status-canceled{color:#fb7185;background:#f43f5e24}.rts-workflow-status.rts-workflow-status-draft{color:var(--rts-text-secondary, #8a8fa3);background:#8a8fa324}.rts-workflow-is-canceled{border-color:#f43f5e3d}.rts-workflow-canceled-card{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:10px;background:#ffffff08;border:1px solid rgba(255,255,255,.07);animation:rts-wf-enter .25s ease}.rts-workflow-canceled-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.rts-workflow-canceled-label{color:var(--rts-text-secondary, #8a8fa3);font-weight:500;flex-shrink:0}.rts-workflow-canceled-value{color:var(--rts-text-primary, #f3f4f6);font-weight:600;text-align:right;overflow:hidden;text-overflow:ellipsis}.rts-workflow-canceled-person{display:inline-flex;align-items:center;gap:6px;min-width:0}.rts-workflow-canceled-avatar{width:20px;height:20px;border-radius:50%;object-fit:cover;flex-shrink:0}.rts-workflow-canceled-avatar-initials{display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--rts-wf-accent-2),var(--rts-wf-accent))}.rts-workflow-progress{height:3px;border-radius:3px;overflow:hidden;background:#8b5cf61f}.rts-workflow-progress-bar{height:100%;border-radius:3px;background:linear-gradient(90deg,var(--rts-wf-accent-2),var(--rts-wf-accent),#a78bfa);transition:width .5s cubic-bezier(.2,.8,.2,1)}.rts-workflow-steps{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none}.rts-workflow-step{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:4px 10px 4px 4px;border-radius:999px;border:1px solid transparent;background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:12px;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.rts-workflow-step:hover:not(:disabled){background:#8b5cf614}.rts-workflow-step:disabled{cursor:default;opacity:.55}.rts-workflow-step.rts-workflow-step-viewed{color:var(--rts-text-primary, #f3f4f6);border-color:#8b5cf666;background:#8b5cf624}.rts-workflow-step-index{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;font-size:11px;font-weight:700;border:1.5px solid currentColor;transition:all .2s ease}.rts-workflow-step-index .pi{font-size:10px}.rts-workflow-step-active .rts-workflow-step-index{color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--rts-wf-accent-2),var(--rts-wf-accent));box-shadow:0 0 0 3px #8b5cf633;animation:rts-wf-ring 2s ease-in-out infinite}.rts-workflow-step-finished .rts-workflow-step-index{color:#fff;border-color:transparent;background:var(--rts-wf-success)}.rts-workflow-step-failed .rts-workflow-step-index{color:#fff;border-color:transparent;background:var(--rts-wf-fail)}.rts-workflow-step-label{white-space:nowrap}.rts-workflow-step-connector{flex:1 0 12px;min-width:12px;height:2px;border-radius:2px;background:#8b5cf626;transition:background .3s ease}.rts-workflow-step-connector.rts-workflow-step-connector-done{background:linear-gradient(90deg,var(--rts-wf-success),rgba(16,185,129,.5))}.rts-workflow-body{animation:rts-wf-enter .25s ease}.rts-workflow-placeholder{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-workflow-error{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;padding:6px 10px;border-radius:6px;font-size:12px;color:var(--rts-wf-fail);background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-workflow-retry{border:none;background:transparent;color:inherit;font-weight:600;cursor:pointer;text-decoration:underline}.rts-workflow-skeleton{display:flex;flex-direction:column;gap:8px}.rts-workflow-skeleton-line{height:12px;width:70%;border-radius:6px;background:linear-gradient(90deg,#8b5cf614,#8b5cf62e,#8b5cf614);background-size:200% 100%;animation:rts-wf-shimmer 1.2s linear infinite}.rts-workflow-skeleton-line.rts-workflow-skeleton-line-sm{width:30%}.rts-workflow-skeleton-line.rts-workflow-skeleton-line-lg{width:100%;height:60px}@keyframes rts-wf-enter{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes rts-wf-ring{0%,to{box-shadow:0 0 0 3px #8b5cf633}50%{box-shadow:0 0 0 5px #8b5cf61a}}@keyframes rts-wf-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "pipe", type: DatePipe, name: "date" }] }); }
|
|
4710
4831
|
}
|
|
4711
4832
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RtsWorkflowComponent, decorators: [{
|
|
4712
4833
|
type: Component,
|
|
4713
|
-
args: [{ selector: 'rtsee-rts-workflow', standalone: true, imports: [NgClass, NgComponentOutlet], template: "<div class=\"rts-workflow\">\n @if (workflow) {\n <div class=\"rts-workflow-header\">\n <div class=\"rts-workflow-heading\">\n <span class=\"rts-workflow-badge\">#{{ workflow.name }}</span>\n <span class=\"rts-workflow-title\">{{ workflow.title || workflow.name }}</span>\n </div>\n <span class=\"rts-workflow-status\"\n [ngClass]=\"{\n 'rts-workflow-status-finished': workflow.isFinished,\n 'rts-workflow-status-failed': workflow.isFailed,\n 'rts-workflow-status-draft': workflow.isDraft\n }\"\n >{{ statusLabel }}</span>\n </div>\n\n <div class=\"rts-workflow-progress\">\n <div class=\"rts-workflow-progress-bar\" [style.width.%]=\"progress\"></div>\n </div>\n\n <nav class=\"rts-workflow-steps\">\n @for (step of workflow.steps; track step.id; let i = $index; let last = $last) {\n <button type=\"button\"\n class=\"rts-workflow-step\"\n [ngClass]=\"stepClass(step)\"\n [disabled]=\"!canView(step)\"\n (click)=\"viewStep(step)\"\n [title]=\"step.title || step.name\"\n >\n <span class=\"rts-workflow-step-index\">\n @if (step.isFinished) {\n <span class=\"pi pi-check\"></span>\n } @else if (step.isFailed) {\n <span class=\"pi pi-times\"></span>\n } @else {\n {{ i + 1 }}\n }\n </span>\n <span class=\"rts-workflow-step-label\">{{ step.title || step.name }}</span>\n </button>\n @if (!last) {\n <span class=\"rts-workflow-step-connector\"\n [class.rts-workflow-step-connector-done]=\"step.isFinished\"\n ></span>\n }\n }\n </nav>\n\n <section class=\"rts-workflow-body\">\n @if (viewedStep; as step) {\n @if (step.error) {\n <div class=\"rts-workflow-error\">{{ step.error.message }}</div>\n }\n @if (stepComponent) {\n @for (s of [step]; track s.id) {\n <ng-container *ngComponentOutlet=\"stepComponent; inputs: stepInputs\"></ng-container>\n }\n } @else {\n <div class=\"rts-workflow-placeholder\">No widget registered for \"{{ step.widget }}\".</div>\n }\n }\n </section>\n } @else if (loading) {\n <div class=\"rts-workflow-skeleton\">\n <div class=\"rts-workflow-skeleton-line rts-workflow-skeleton-line-sm\"></div>\n <div class=\"rts-workflow-skeleton-line\"></div>\n <div class=\"rts-workflow-skeleton-line rts-workflow-skeleton-line-lg\"></div>\n </div>\n } @else if (loadError) {\n <div class=\"rts-workflow-error\">\n {{ loadError }}\n @if (message.ozzyWorkflowId) {\n <button type=\"button\" class=\"rts-workflow-retry\" (click)=\"retry()\">Retry</button>\n }\n </div>\n }\n</div>\n", styles: [":host{display:block;--rts-wf-accent: #8b5cf6;--rts-wf-accent-2: #6366f1;--rts-wf-success: #10b981;--rts-wf-fail: #f43f5e}.rts-workflow{display:flex;flex-direction:column;gap:12px;width:min(560px,100%);min-width:280px;padding:14px;border-radius:14px;background:radial-gradient(120% 80% at 0% 0%,rgba(99,102,241,.16),transparent 60%),radial-gradient(100% 80% at 100% 0%,rgba(167,139,250,.14),transparent 60%),linear-gradient(145deg,#1d1e2c,#151621 55%,#10111a);border:1px solid rgba(139,92,246,.28);box-shadow:0 12px 32px -14px #000000a6,0 8px 24px -16px #6366f173;color:var(--rts-text-primary, #e5e5e7);animation:rts-wf-enter .35s ease}.rts-workflow-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.rts-workflow-heading{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-workflow-badge{align-self:flex-start;padding:1px 7px;border-radius:5px;font-size:10px;font-weight:700;letter-spacing:.04em;color:var(--rts-wf-accent);background:linear-gradient(135deg,#6366f124,#8b5cf624)}.rts-workflow-title{font-size:15px;font-weight:650;color:var(--rts-text-primary, #f3f4f6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rts-workflow-status{flex-shrink:0;padding:2px 9px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--rts-wf-accent);background:#8b5cf61f}.rts-workflow-status.rts-workflow-status-finished{color:var(--rts-wf-success);background:#10b9811f}.rts-workflow-status.rts-workflow-status-failed{color:var(--rts-wf-fail);background:#f43f5e1f}.rts-workflow-status.rts-workflow-status-draft{color:var(--rts-text-secondary, #8a8fa3);background:#8a8fa324}.rts-workflow-progress{height:3px;border-radius:3px;overflow:hidden;background:#8b5cf61f}.rts-workflow-progress-bar{height:100%;border-radius:3px;background:linear-gradient(90deg,var(--rts-wf-accent-2),var(--rts-wf-accent),#a78bfa);transition:width .5s cubic-bezier(.2,.8,.2,1)}.rts-workflow-steps{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none}.rts-workflow-step{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:4px 10px 4px 4px;border-radius:999px;border:1px solid transparent;background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:12px;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.rts-workflow-step:hover:not(:disabled){background:#8b5cf614}.rts-workflow-step:disabled{cursor:default;opacity:.55}.rts-workflow-step.rts-workflow-step-viewed{color:var(--rts-text-primary, #f3f4f6);border-color:#8b5cf666;background:#8b5cf624}.rts-workflow-step-index{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;font-size:11px;font-weight:700;border:1.5px solid currentColor;transition:all .2s ease}.rts-workflow-step-index .pi{font-size:10px}.rts-workflow-step-active .rts-workflow-step-index{color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--rts-wf-accent-2),var(--rts-wf-accent));box-shadow:0 0 0 3px #8b5cf633;animation:rts-wf-ring 2s ease-in-out infinite}.rts-workflow-step-finished .rts-workflow-step-index{color:#fff;border-color:transparent;background:var(--rts-wf-success)}.rts-workflow-step-failed .rts-workflow-step-index{color:#fff;border-color:transparent;background:var(--rts-wf-fail)}.rts-workflow-step-label{white-space:nowrap}.rts-workflow-step-connector{flex:1 0 12px;min-width:12px;height:2px;border-radius:2px;background:#8b5cf626;transition:background .3s ease}.rts-workflow-step-connector.rts-workflow-step-connector-done{background:linear-gradient(90deg,var(--rts-wf-success),rgba(16,185,129,.5))}.rts-workflow-body{animation:rts-wf-enter .25s ease}.rts-workflow-placeholder{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-workflow-error{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;padding:6px 10px;border-radius:6px;font-size:12px;color:var(--rts-wf-fail);background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-workflow-retry{border:none;background:transparent;color:inherit;font-weight:600;cursor:pointer;text-decoration:underline}.rts-workflow-skeleton{display:flex;flex-direction:column;gap:8px}.rts-workflow-skeleton-line{height:12px;width:70%;border-radius:6px;background:linear-gradient(90deg,#8b5cf614,#8b5cf62e,#8b5cf614);background-size:200% 100%;animation:rts-wf-shimmer 1.2s linear infinite}.rts-workflow-skeleton-line.rts-workflow-skeleton-line-sm{width:30%}.rts-workflow-skeleton-line.rts-workflow-skeleton-line-lg{width:100%;height:60px}@keyframes rts-wf-enter{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes rts-wf-ring{0%,to{box-shadow:0 0 0 3px #8b5cf633}50%{box-shadow:0 0 0 5px #8b5cf61a}}@keyframes rts-wf-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}\n"] }]
|
|
4834
|
+
args: [{ selector: 'rtsee-rts-workflow', standalone: true, imports: [NgClass, NgComponentOutlet, DatePipe], template: "<div class=\"rts-workflow\" [class.rts-workflow-is-canceled]=\"workflow?.isCanceled\">\n @if (workflow) {\n <div class=\"rts-workflow-header\">\n <div class=\"rts-workflow-heading\">\n <span class=\"rts-workflow-badge\">#{{ workflow.name }}</span>\n <span class=\"rts-workflow-title\">{{ workflow.title || workflow.name }}</span>\n </div>\n <div class=\"rts-workflow-header-actions\">\n <span class=\"rts-workflow-status\"\n [ngClass]=\"{\n 'rts-workflow-status-finished': workflow.isFinished,\n 'rts-workflow-status-failed': workflow.isFailed,\n 'rts-workflow-status-canceled': workflow.isCanceled,\n 'rts-workflow-status-draft': workflow.isDraft\n }\"\n >{{ statusLabel }}</span>\n @if (canCancel) {\n <button type=\"button\"\n class=\"rts-workflow-cancel-btn\"\n [disabled]=\"workflow.cancelInProgress\"\n (click)=\"cancelWorkflow()\"\n title=\"Cancel workflow\"\n >\n <span class=\"pi pi-ban\"></span>\n <span>{{ workflow.cancelInProgress ? 'Canceling\u2026' : 'Cancel' }}</span>\n </button>\n }\n </div>\n </div>\n\n @if (workflow.isCanceled) {\n <section class=\"rts-workflow-canceled-card\">\n <div class=\"rts-workflow-canceled-row\">\n <span class=\"rts-workflow-canceled-label\">Workflow</span>\n <span class=\"rts-workflow-canceled-value\">{{ workflow.title || workflow.name }}</span>\n </div>\n <div class=\"rts-workflow-canceled-row\">\n <span class=\"rts-workflow-canceled-label\">Canceled by</span>\n <span class=\"rts-workflow-canceled-person\">\n @if (canceledByUser.imageUrl) {\n <img class=\"rts-workflow-canceled-avatar\"\n [src]=\"canceledByUser.imageUrl\"\n [alt]=\"canceledByUser.name\"\n />\n } @else {\n <span class=\"rts-workflow-canceled-avatar rts-workflow-canceled-avatar-initials\">\n {{ getInitials(canceledByUser.name) }}\n </span>\n }\n <span class=\"rts-workflow-canceled-value\">{{ canceledByUser.name }}</span>\n </span>\n </div>\n @if (canceledAtDate) {\n <div class=\"rts-workflow-canceled-row\">\n <span class=\"rts-workflow-canceled-label\">Canceled at</span>\n <span class=\"rts-workflow-canceled-value\">{{ canceledAtDate | date:'medium' }}</span>\n </div>\n }\n </section>\n } @else {\n <div class=\"rts-workflow-progress\">\n <div class=\"rts-workflow-progress-bar\" [style.width.%]=\"progress\"></div>\n </div>\n\n <nav class=\"rts-workflow-steps\">\n @for (step of workflow.steps; track step.index; let i = $index; let last = $last) {\n <button type=\"button\"\n class=\"rts-workflow-step\"\n [ngClass]=\"stepClass(step)\"\n [disabled]=\"!canView(step)\"\n (click)=\"viewStep(step)\"\n [title]=\"step.title || step.name\"\n >\n <span class=\"rts-workflow-step-index\">\n @if (step.isFinished) {\n <span class=\"pi pi-check\"></span>\n } @else if (step.isFailed) {\n <span class=\"pi pi-times\"></span>\n } @else {\n {{ i + 1 }}\n }\n </span>\n <span class=\"rts-workflow-step-label\">{{ step.title || step.name }}</span>\n </button>\n @if (!last) {\n <span class=\"rts-workflow-step-connector\"\n [class.rts-workflow-step-connector-done]=\"step.isFinished\"\n ></span>\n }\n }\n </nav>\n\n <section class=\"rts-workflow-body\">\n @if (viewedStep; as step) {\n @if (step.error) {\n <div class=\"rts-workflow-error\">{{ step.error.message }}</div>\n }\n @if (stepComponent) {\n @for (s of [step]; track s.index) {\n <ng-container *ngComponentOutlet=\"stepComponent; inputs: stepInputs\"></ng-container>\n }\n } @else {\n <div class=\"rts-workflow-placeholder\">No widget registered for \"{{ step.widget }}\".</div>\n }\n }\n </section>\n }\n } @else if (loading) {\n <div class=\"rts-workflow-skeleton\">\n <div class=\"rts-workflow-skeleton-line rts-workflow-skeleton-line-sm\"></div>\n <div class=\"rts-workflow-skeleton-line\"></div>\n <div class=\"rts-workflow-skeleton-line rts-workflow-skeleton-line-lg\"></div>\n </div>\n } @else if (loadError) {\n <div class=\"rts-workflow-error\">\n {{ loadError }}\n @if (message.ozzyWorkflowId) {\n <button type=\"button\" class=\"rts-workflow-retry\" (click)=\"retry()\">Retry</button>\n }\n </div>\n }\n</div>\n", styles: [":host{display:block;--rts-wf-accent: #8b5cf6;--rts-wf-accent-2: #6366f1;--rts-wf-success: #10b981;--rts-wf-fail: #f43f5e}.rts-workflow{display:flex;flex-direction:column;gap:12px;width:min(560px,100%);min-width:280px;padding:14px;border-radius:14px;background:radial-gradient(120% 80% at 0% 0%,rgba(99,102,241,.16),transparent 60%),radial-gradient(100% 80% at 100% 0%,rgba(167,139,250,.14),transparent 60%),linear-gradient(145deg,#1d1e2c,#151621 55%,#10111a);border:1px solid rgba(139,92,246,.28);box-shadow:0 12px 32px -14px #000000a6,0 8px 24px -16px #6366f173;color:var(--rts-text-primary, #e5e5e7);animation:rts-wf-enter .35s ease}.rts-workflow-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.rts-workflow-heading{display:flex;flex-direction:column;gap:2px;min-width:0}.rts-workflow-badge{align-self:flex-start;padding:1px 7px;border-radius:5px;font-size:10px;font-weight:700;letter-spacing:.04em;color:var(--rts-wf-accent);background:linear-gradient(135deg,#6366f124,#8b5cf624)}.rts-workflow-title{font-size:15px;font-weight:650;color:var(--rts-text-primary, #f3f4f6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rts-workflow-header-actions{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}.rts-workflow-cancel-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;border:1px solid rgba(244,63,94,.32);background:#f43f5e14;color:#fda4af;font:inherit;font-size:11px;font-weight:600;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.rts-workflow-cancel-btn .pi{font-size:10px}.rts-workflow-cancel-btn:hover:not(:disabled){background:#f43f5e2e;border-color:#f43f5e8c;color:#ffe4e6}.rts-workflow-cancel-btn:disabled{opacity:.6;cursor:default}.rts-workflow-status{flex-shrink:0;padding:2px 9px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--rts-wf-accent);background:#8b5cf61f}.rts-workflow-status.rts-workflow-status-finished{color:var(--rts-wf-success);background:#10b9811f}.rts-workflow-status.rts-workflow-status-failed{color:var(--rts-wf-fail);background:#f43f5e1f}.rts-workflow-status.rts-workflow-status-canceled{color:#fb7185;background:#f43f5e24}.rts-workflow-status.rts-workflow-status-draft{color:var(--rts-text-secondary, #8a8fa3);background:#8a8fa324}.rts-workflow-is-canceled{border-color:#f43f5e3d}.rts-workflow-canceled-card{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:10px;background:#ffffff08;border:1px solid rgba(255,255,255,.07);animation:rts-wf-enter .25s ease}.rts-workflow-canceled-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.rts-workflow-canceled-label{color:var(--rts-text-secondary, #8a8fa3);font-weight:500;flex-shrink:0}.rts-workflow-canceled-value{color:var(--rts-text-primary, #f3f4f6);font-weight:600;text-align:right;overflow:hidden;text-overflow:ellipsis}.rts-workflow-canceled-person{display:inline-flex;align-items:center;gap:6px;min-width:0}.rts-workflow-canceled-avatar{width:20px;height:20px;border-radius:50%;object-fit:cover;flex-shrink:0}.rts-workflow-canceled-avatar-initials{display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--rts-wf-accent-2),var(--rts-wf-accent))}.rts-workflow-progress{height:3px;border-radius:3px;overflow:hidden;background:#8b5cf61f}.rts-workflow-progress-bar{height:100%;border-radius:3px;background:linear-gradient(90deg,var(--rts-wf-accent-2),var(--rts-wf-accent),#a78bfa);transition:width .5s cubic-bezier(.2,.8,.2,1)}.rts-workflow-steps{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none}.rts-workflow-step{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:4px 10px 4px 4px;border-radius:999px;border:1px solid transparent;background:transparent;color:var(--rts-text-secondary, #8a8fa3);font:inherit;font-size:12px;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.rts-workflow-step:hover:not(:disabled){background:#8b5cf614}.rts-workflow-step:disabled{cursor:default;opacity:.55}.rts-workflow-step.rts-workflow-step-viewed{color:var(--rts-text-primary, #f3f4f6);border-color:#8b5cf666;background:#8b5cf624}.rts-workflow-step-index{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;font-size:11px;font-weight:700;border:1.5px solid currentColor;transition:all .2s ease}.rts-workflow-step-index .pi{font-size:10px}.rts-workflow-step-active .rts-workflow-step-index{color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--rts-wf-accent-2),var(--rts-wf-accent));box-shadow:0 0 0 3px #8b5cf633;animation:rts-wf-ring 2s ease-in-out infinite}.rts-workflow-step-finished .rts-workflow-step-index{color:#fff;border-color:transparent;background:var(--rts-wf-success)}.rts-workflow-step-failed .rts-workflow-step-index{color:#fff;border-color:transparent;background:var(--rts-wf-fail)}.rts-workflow-step-label{white-space:nowrap}.rts-workflow-step-connector{flex:1 0 12px;min-width:12px;height:2px;border-radius:2px;background:#8b5cf626;transition:background .3s ease}.rts-workflow-step-connector.rts-workflow-step-connector-done{background:linear-gradient(90deg,var(--rts-wf-success),rgba(16,185,129,.5))}.rts-workflow-body{animation:rts-wf-enter .25s ease}.rts-workflow-placeholder{font-size:12px;font-style:italic;color:var(--rts-text-secondary, #8a8fa3)}.rts-workflow-error{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;padding:6px 10px;border-radius:6px;font-size:12px;color:var(--rts-wf-fail);background:#f43f5e14;border:1px solid rgba(244,63,94,.25)}.rts-workflow-retry{border:none;background:transparent;color:inherit;font-weight:600;cursor:pointer;text-decoration:underline}.rts-workflow-skeleton{display:flex;flex-direction:column;gap:8px}.rts-workflow-skeleton-line{height:12px;width:70%;border-radius:6px;background:linear-gradient(90deg,#8b5cf614,#8b5cf62e,#8b5cf614);background-size:200% 100%;animation:rts-wf-shimmer 1.2s linear infinite}.rts-workflow-skeleton-line.rts-workflow-skeleton-line-sm{width:30%}.rts-workflow-skeleton-line.rts-workflow-skeleton-line-lg{width:100%;height:60px}@keyframes rts-wf-enter{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes rts-wf-ring{0%,to{box-shadow:0 0 0 3px #8b5cf633}50%{box-shadow:0 0 0 5px #8b5cf61a}}@keyframes rts-wf-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}\n"] }]
|
|
4714
4835
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: WorkflowStepsService }], propDecorators: { message: [{
|
|
4715
4836
|
type: Input
|
|
4716
4837
|
}], messenger: [{
|
|
@@ -5165,13 +5286,13 @@ class MessagesListComponent {
|
|
|
5165
5286
|
this.firstGroupedMessage = this.chat.messages[0];
|
|
5166
5287
|
this.lastGroupedMessage = this.chat.messages[this.chat.messages.length - 1];
|
|
5167
5288
|
}
|
|
5168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MessagesListComponent, deps: [{ token: TimeFormatHelperService }, { token:
|
|
5289
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MessagesListComponent, deps: [{ token: TimeFormatHelperService }, { token: i2$1.ViewportScroller }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5169
5290
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: MessagesListComponent, isStandalone: true, selector: "rtsee-messages-list", inputs: { chat: "chat", messenger: "messenger", isFramed: "isFramed" }, host: { listeners: { "window:scroll": "onWindowScroll($event)", "window:resize": "onWindowResize()" } }, viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollBlock"], descendants: true }, { propertyName: "contentBlock", first: true, predicate: ["contentBlock"], descendants: true }, { propertyName: "bottomAnchor", first: true, predicate: ["bottomAnchor"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"rts-messages-list\"\n #scrollBlock\n infiniteScroll\n [infiniteScrollUpDistance]=\"2\"\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n [scrollWindow]=\"isWindowScroll\"\n [infiniteScrollContainer]=\"isWindowScroll ? null : scrollBlock\"\n (scrolledUp)=\"onScrolledToTop()\"\n (scrolled)=\"onScroll()\"\n (scroll)=\"onContainerScroll($event)\"\n [ngClass]=\"{\n 'rts-messages-list-scrollable': !isWindowScroll\n }\"\n [style.padding-bottom]=\"messenger.chatInputHeight + 'px'\"\n>\n <div class=\"rts-messages-list-inner\" #contentBlock>\n @for (messageGroup of messagesGroups; track messageGroup.id) {\n <div\n class=\"rts-messenger-message-wrapper\"\n data-ugc=\"true\"\n rel=\"ugc\"\n [ngClass]=\"{\n 'rts-messenger-message-wrapper-with-sender': messageGroup.senderVisible\n }\"\n >\n <div class=\"rts-messenger-message-inset\">\n <img [src]=\"messageGroup.sender.imageUrl\"\n class=\"rts-messenger-message-sender-image\"\n >\n </div>\n\n <div\n class=\"rts-messenger-message-sender-name\"\n itemprop=\"author\"\n itemscope\n itemtype=\"https://schema.org/Person\"\n >\n <p itemprop=\"name\">{{messageGroup.sender.name}}</p>\n </div>\n\n @for (message of messageGroup.messages; track message.id) {\n <rtsee-message [message]=\"message\"\n [messenger]=\"messenger\"\n [chat]=\"chat\"\n ></rtsee-message>\n }\n </div>\n }\n <div class=\"rts-messages-list-bottom-anchor\" #bottomAnchor></div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { kind: "component", type: MessageComponent, selector: "rtsee-message", inputs: ["chat", "message", "member", "messenger"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
5170
5291
|
}
|
|
5171
5292
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MessagesListComponent, decorators: [{
|
|
5172
5293
|
type: Component,
|
|
5173
5294
|
args: [{ selector: 'rtsee-messages-list', imports: [InfiniteScrollDirective, MessageComponent, NgClass], standalone: true, template: "<div class=\"rts-messages-list\"\n #scrollBlock\n infiniteScroll\n [infiniteScrollUpDistance]=\"2\"\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n [scrollWindow]=\"isWindowScroll\"\n [infiniteScrollContainer]=\"isWindowScroll ? null : scrollBlock\"\n (scrolledUp)=\"onScrolledToTop()\"\n (scrolled)=\"onScroll()\"\n (scroll)=\"onContainerScroll($event)\"\n [ngClass]=\"{\n 'rts-messages-list-scrollable': !isWindowScroll\n }\"\n [style.padding-bottom]=\"messenger.chatInputHeight + 'px'\"\n>\n <div class=\"rts-messages-list-inner\" #contentBlock>\n @for (messageGroup of messagesGroups; track messageGroup.id) {\n <div\n class=\"rts-messenger-message-wrapper\"\n data-ugc=\"true\"\n rel=\"ugc\"\n [ngClass]=\"{\n 'rts-messenger-message-wrapper-with-sender': messageGroup.senderVisible\n }\"\n >\n <div class=\"rts-messenger-message-inset\">\n <img [src]=\"messageGroup.sender.imageUrl\"\n class=\"rts-messenger-message-sender-image\"\n >\n </div>\n\n <div\n class=\"rts-messenger-message-sender-name\"\n itemprop=\"author\"\n itemscope\n itemtype=\"https://schema.org/Person\"\n >\n <p itemprop=\"name\">{{messageGroup.sender.name}}</p>\n </div>\n\n @for (message of messageGroup.messages; track message.id) {\n <rtsee-message [message]=\"message\"\n [messenger]=\"messenger\"\n [chat]=\"chat\"\n ></rtsee-message>\n }\n </div>\n }\n <div class=\"rts-messages-list-bottom-anchor\" #bottomAnchor></div>\n </div>\n</div>\n" }]
|
|
5174
|
-
}], ctorParameters: () => [{ type: TimeFormatHelperService }, { type:
|
|
5295
|
+
}], ctorParameters: () => [{ type: TimeFormatHelperService }, { type: i2$1.ViewportScroller }, { type: i0.ElementRef }, { type: Document, decorators: [{
|
|
5175
5296
|
type: Inject,
|
|
5176
5297
|
args: [DOCUMENT]
|
|
5177
5298
|
}] }], propDecorators: { chat: [{
|
|
@@ -6574,7 +6695,7 @@ class ApplicationEventWidgetComponent extends BaseEventWidgetComponent {
|
|
|
6574
6695
|
null);
|
|
6575
6696
|
}
|
|
6576
6697
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ApplicationEventWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6577
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ApplicationEventWidgetComponent, isStandalone: true, selector: "rtsee-application-event-widget", usesInheritance: true, ngImport: i0, template: "<div class=\"rtsee-event-widget application-event-widget\">\n <div class=\"widget-header\">\n <div class=\"widget-badge\" [ngClass]=\"badgeClass\">\n <span class=\"material-icons-outlined widget-badge-icon\">{{ badgeIcon }}</span>\n <span class=\"widget-badge-label\">{{ badgeLabel }}</span>\n </div>\n <div\n class=\"widget-timer\"\n [class.live]=\"isLive\"\n [title]=\"isLive ? 'Currently active' : 'Time spent before next event'\"\n >\n <span class=\"material-icons-outlined widget-timer-icon\">timer</span>\n <span class=\"widget-timer-text\">{{ durationText }}</span>\n </div>\n </div>\n\n <div class=\"widget-body\">\n <div class=\"widget-media\">\n <div class=\"widget-thumbnail-placeholder\" [ngClass]=\"placeholderClass\">\n <span class=\"material-icons-outlined\">apps</span>\n </div>\n </div>\n\n <div class=\"widget-info\">\n <span class=\"widget-title\" [title]=\"appName\">{{ appName }}</span>\n @if (appUrl) {\n <a\n [href]=\"appUrl\"\n target=\"_blank\"\n class=\"widget-story-link\"\n [title]=\"appUrl\"\n >\n <span class=\"widget-story-name\">{{ appUrl }}</span>\n <span class=\"material-icons-outlined external-icon\">open_in_new</span>\n </a>\n } @else {\n <span class=\"widget-subtitle\">Application settings</span>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type:
|
|
6698
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ApplicationEventWidgetComponent, isStandalone: true, selector: "rtsee-application-event-widget", usesInheritance: true, ngImport: i0, template: "<div class=\"rtsee-event-widget application-event-widget\">\n <div class=\"widget-header\">\n <div class=\"widget-badge\" [ngClass]=\"badgeClass\">\n <span class=\"material-icons-outlined widget-badge-icon\">{{ badgeIcon }}</span>\n <span class=\"widget-badge-label\">{{ badgeLabel }}</span>\n </div>\n <div\n class=\"widget-timer\"\n [class.live]=\"isLive\"\n [title]=\"isLive ? 'Currently active' : 'Time spent before next event'\"\n >\n <span class=\"material-icons-outlined widget-timer-icon\">timer</span>\n <span class=\"widget-timer-text\">{{ durationText }}</span>\n </div>\n </div>\n\n <div class=\"widget-body\">\n <div class=\"widget-media\">\n <div class=\"widget-thumbnail-placeholder\" [ngClass]=\"placeholderClass\">\n <span class=\"material-icons-outlined\">apps</span>\n </div>\n </div>\n\n <div class=\"widget-info\">\n <span class=\"widget-title\" [title]=\"appName\">{{ appName }}</span>\n @if (appUrl) {\n <a\n [href]=\"appUrl\"\n target=\"_blank\"\n class=\"widget-story-link\"\n [title]=\"appUrl\"\n >\n <span class=\"widget-story-name\">{{ appUrl }}</span>\n <span class=\"material-icons-outlined external-icon\">open_in_new</span>\n </a>\n } @else {\n <span class=\"widget-subtitle\">Application settings</span>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
6578
6699
|
}
|
|
6579
6700
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ApplicationEventWidgetComponent, decorators: [{
|
|
6580
6701
|
type: Component,
|
|
@@ -6950,13 +7071,13 @@ class JoinCallComponent {
|
|
|
6950
7071
|
this.recentlyCopied = false;
|
|
6951
7072
|
}, 2000);
|
|
6952
7073
|
}
|
|
6953
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: JoinCallComponent, deps: [{ token: i1$
|
|
7074
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: JoinCallComponent, deps: [{ token: i1$3.MessageService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6954
7075
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: JoinCallComponent, isStandalone: true, selector: "rtsee-join-call", inputs: { presentation: "presentation", room: "room" }, providers: [MessageService], ngImport: i0, template: "<div class=\"rtsee-join-call\">\n <div class=\"rtsee-join-call-button\">\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.START_A_CALL_BUTTON]\"\n (click)=\"presentation.emitJoinRoomCallEvent()\"\n ></p-button>\n </div>\n <div class=\"rtsee-share-call-link\">\n <div class=\"rtsee-share-call-explain-section\">\n <div class=\"rtsee-share-call-explain-section-icon\">\n <span class=\"pi pi-link rtsee-link-icon\"></span>\n </div>\n <div class=\"rtsee-share-call-explain-section-text\">\n <span>Anyone can join your storytelling session using this link.</span>\n </div>\n </div>\n <div class=\"rtsee-share-call-link-section\">\n <p-toast position=\"bottom-center\" />\n <p-button [icon]=\"recentlyCopied ? 'pi pi-check' : 'pi pi-copy'\"\n severity=\"secondary\"\n class=\"rtsee-share-call-link-copy-btn\"\n [cdkCopyToClipboard]=\"window.location.origin + '?room_id=' + room.id\"\n (cdkCopyToClipboardCopied)=\"copyClicked()\"\n ></p-button>\n <p-message severity=\"info\"\n class=\"rtsee-share-call-link-text\"\n >{{ window.location.origin + '?room_id=' + room.id }}</p-message>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }, { kind: "component", type: Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }] }); }
|
|
6955
7076
|
}
|
|
6956
7077
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: JoinCallComponent, decorators: [{
|
|
6957
7078
|
type: Component,
|
|
6958
7079
|
args: [{ selector: 'rtsee-join-call', imports: [Button, CdkCopyToClipboard, Message, Toast], providers: [MessageService], template: "<div class=\"rtsee-join-call\">\n <div class=\"rtsee-join-call-button\">\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.START_A_CALL_BUTTON]\"\n (click)=\"presentation.emitJoinRoomCallEvent()\"\n ></p-button>\n </div>\n <div class=\"rtsee-share-call-link\">\n <div class=\"rtsee-share-call-explain-section\">\n <div class=\"rtsee-share-call-explain-section-icon\">\n <span class=\"pi pi-link rtsee-link-icon\"></span>\n </div>\n <div class=\"rtsee-share-call-explain-section-text\">\n <span>Anyone can join your storytelling session using this link.</span>\n </div>\n </div>\n <div class=\"rtsee-share-call-link-section\">\n <p-toast position=\"bottom-center\" />\n <p-button [icon]=\"recentlyCopied ? 'pi pi-check' : 'pi pi-copy'\"\n severity=\"secondary\"\n class=\"rtsee-share-call-link-copy-btn\"\n [cdkCopyToClipboard]=\"window.location.origin + '?room_id=' + room.id\"\n (cdkCopyToClipboardCopied)=\"copyClicked()\"\n ></p-button>\n <p-message severity=\"info\"\n class=\"rtsee-share-call-link-text\"\n >{{ window.location.origin + '?room_id=' + room.id }}</p-message>\n </div>\n </div>\n</div>\n" }]
|
|
6959
|
-
}], ctorParameters: () => [{ type: i1$
|
|
7080
|
+
}], ctorParameters: () => [{ type: i1$3.MessageService }], propDecorators: { presentation: [{
|
|
6960
7081
|
type: Input
|
|
6961
7082
|
}], room: [{
|
|
6962
7083
|
type: Input
|
|
@@ -7503,10 +7624,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
7503
7624
|
}] } });
|
|
7504
7625
|
|
|
7505
7626
|
class IllustratorComponent {
|
|
7627
|
+
static { this.MOBILE_BREAKPOINT = 800; }
|
|
7506
7628
|
constructor(cdr, elementRef) {
|
|
7507
7629
|
this.cdr = cdr;
|
|
7508
7630
|
this.elementRef = elementRef;
|
|
7631
|
+
this.collapsedHeightChange = new EventEmitter();
|
|
7632
|
+
this.isMobile = false;
|
|
7633
|
+
this.layoutLeftPx = null;
|
|
7634
|
+
this.layoutRightPx = null;
|
|
7635
|
+
this.layoutBottomPx = 0;
|
|
7636
|
+
this.activeCarouselIndex = 0;
|
|
7509
7637
|
this.ownIllustrator = false;
|
|
7638
|
+
this.suppressHoverUntilLeave = false;
|
|
7639
|
+
this.lastMeasuredCollapsedHeight = 0;
|
|
7640
|
+
this.resizeObserver = null;
|
|
7641
|
+
this.rafId = null;
|
|
7510
7642
|
this.aspectRatios = ['1:1', '4:3', '3:4', '16:9', '9:16', '3:2', '2:3'];
|
|
7511
7643
|
this.styles = [
|
|
7512
7644
|
'Classic Fairy Tale pixel-art Storybook',
|
|
@@ -7533,35 +7665,209 @@ class IllustratorComponent {
|
|
|
7533
7665
|
'Moonlit Midnight Glow',
|
|
7534
7666
|
];
|
|
7535
7667
|
this.onIllustratorChanged = () => {
|
|
7668
|
+
if (this.illustrator && this.activeCarouselIndex >= this.illustrator.contextImages.length) {
|
|
7669
|
+
this.activeCarouselIndex = Math.max(0, this.illustrator.contextImages.length - 1);
|
|
7670
|
+
}
|
|
7536
7671
|
this.cdr.markForCheck();
|
|
7672
|
+
this.scheduleLayoutUpdate();
|
|
7537
7673
|
};
|
|
7538
|
-
this.
|
|
7539
|
-
this.
|
|
7540
|
-
setTimeout(() => {
|
|
7541
|
-
this.elementRef.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
7542
|
-
}, 60);
|
|
7674
|
+
this.onWindowResizeOrScroll = () => {
|
|
7675
|
+
this.scheduleLayoutUpdate();
|
|
7543
7676
|
};
|
|
7544
7677
|
}
|
|
7678
|
+
get activePromptText() {
|
|
7679
|
+
if (!this.illustrator) {
|
|
7680
|
+
return '';
|
|
7681
|
+
}
|
|
7682
|
+
return this.illustrator.reviewingGeneratedImage
|
|
7683
|
+
? this.illustrator.iterationPrompt
|
|
7684
|
+
: this.illustrator.prompt;
|
|
7685
|
+
}
|
|
7686
|
+
set activePromptText(value) {
|
|
7687
|
+
if (!this.illustrator) {
|
|
7688
|
+
return;
|
|
7689
|
+
}
|
|
7690
|
+
if (this.illustrator.reviewingGeneratedImage) {
|
|
7691
|
+
this.illustrator.iterationPrompt = value;
|
|
7692
|
+
}
|
|
7693
|
+
else {
|
|
7694
|
+
this.illustrator.prompt = value;
|
|
7695
|
+
}
|
|
7696
|
+
}
|
|
7545
7697
|
ngOnInit() {
|
|
7698
|
+
if (typeof window !== 'undefined') {
|
|
7699
|
+
this.isMobile = window.innerWidth < IllustratorComponent.MOBILE_BREAKPOINT;
|
|
7700
|
+
}
|
|
7546
7701
|
if (!this.illustrator) {
|
|
7547
7702
|
this.illustrator = new RTSeeIllustrator();
|
|
7548
7703
|
this.ownIllustrator = true;
|
|
7549
7704
|
}
|
|
7550
7705
|
this.illustrator.on('changed', this.onIllustratorChanged);
|
|
7551
|
-
this.illustrator.on('scroll-into-view', this.onScrollIntoView);
|
|
7552
7706
|
this.illustrator.requestAgents();
|
|
7553
7707
|
}
|
|
7708
|
+
ngAfterViewInit() {
|
|
7709
|
+
if (typeof window === 'undefined') {
|
|
7710
|
+
return;
|
|
7711
|
+
}
|
|
7712
|
+
this.updateLayoutMetrics();
|
|
7713
|
+
window.addEventListener('resize', this.onWindowResizeOrScroll, { passive: true });
|
|
7714
|
+
window.addEventListener('scroll', this.onWindowResizeOrScroll, { passive: true, capture: true });
|
|
7715
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
7716
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
7717
|
+
this.scheduleLayoutUpdate();
|
|
7718
|
+
});
|
|
7719
|
+
const host = this.elementRef.nativeElement;
|
|
7720
|
+
if (this.containerElRef?.nativeElement) {
|
|
7721
|
+
this.resizeObserver.observe(this.containerElRef.nativeElement);
|
|
7722
|
+
}
|
|
7723
|
+
const contentEl = host.closest('.rtsee-presentations-dashboard') ||
|
|
7724
|
+
host.closest('.rtsee-presentation') ||
|
|
7725
|
+
host.closest('.rtsee-interactive-story-editor') ||
|
|
7726
|
+
host.parentElement;
|
|
7727
|
+
if (contentEl) {
|
|
7728
|
+
this.resizeObserver.observe(contentEl);
|
|
7729
|
+
}
|
|
7730
|
+
const shellEl = host.closest('.rtsee-shell');
|
|
7731
|
+
if (shellEl) {
|
|
7732
|
+
const navEl = shellEl.querySelector('.rtsee-nav-block');
|
|
7733
|
+
if (navEl) {
|
|
7734
|
+
this.resizeObserver.observe(navEl);
|
|
7735
|
+
}
|
|
7736
|
+
const msgEl = shellEl.querySelector('.rtsee-messenger-container');
|
|
7737
|
+
if (msgEl) {
|
|
7738
|
+
this.resizeObserver.observe(msgEl);
|
|
7739
|
+
}
|
|
7740
|
+
}
|
|
7741
|
+
}
|
|
7742
|
+
}
|
|
7554
7743
|
ngOnDestroy() {
|
|
7744
|
+
if (typeof window !== 'undefined') {
|
|
7745
|
+
window.removeEventListener('resize', this.onWindowResizeOrScroll);
|
|
7746
|
+
window.removeEventListener('scroll', this.onWindowResizeOrScroll, {
|
|
7747
|
+
capture: true,
|
|
7748
|
+
});
|
|
7749
|
+
if (this.rafId !== null) {
|
|
7750
|
+
cancelAnimationFrame(this.rafId);
|
|
7751
|
+
this.rafId = null;
|
|
7752
|
+
}
|
|
7753
|
+
}
|
|
7754
|
+
if (this.resizeObserver) {
|
|
7755
|
+
this.resizeObserver.disconnect();
|
|
7756
|
+
this.resizeObserver = null;
|
|
7757
|
+
}
|
|
7555
7758
|
if (this.illustrator) {
|
|
7556
7759
|
this.illustrator.off('changed', this.onIllustratorChanged);
|
|
7557
|
-
this.illustrator.off('scroll-into-view', this.onScrollIntoView);
|
|
7558
7760
|
if (this.ownIllustrator) {
|
|
7559
7761
|
this.illustrator.destroy();
|
|
7560
7762
|
}
|
|
7561
7763
|
}
|
|
7562
7764
|
}
|
|
7765
|
+
onCollapsedMouseEnter() {
|
|
7766
|
+
if (this.isMobile || this.suppressHoverUntilLeave) {
|
|
7767
|
+
return;
|
|
7768
|
+
}
|
|
7769
|
+
this.illustrator.expand();
|
|
7770
|
+
this.cdr.markForCheck();
|
|
7771
|
+
}
|
|
7772
|
+
onContainerMouseLeave(event) {
|
|
7773
|
+
this.suppressHoverUntilLeave = false;
|
|
7774
|
+
if (this.isMobile || !this.illustrator.expanded) {
|
|
7775
|
+
return;
|
|
7776
|
+
}
|
|
7777
|
+
const activeEl = typeof document !== 'undefined' ? document.activeElement : null;
|
|
7778
|
+
if (event.relatedTarget === null &&
|
|
7779
|
+
activeEl instanceof HTMLSelectElement &&
|
|
7780
|
+
this.elementRef.nativeElement.contains(activeEl)) {
|
|
7781
|
+
return;
|
|
7782
|
+
}
|
|
7783
|
+
this.illustrator.collapse();
|
|
7784
|
+
this.cdr.markForCheck();
|
|
7785
|
+
}
|
|
7786
|
+
expandIllustrator(event) {
|
|
7787
|
+
event?.stopPropagation();
|
|
7788
|
+
this.suppressHoverUntilLeave = false;
|
|
7789
|
+
this.illustrator.expand();
|
|
7790
|
+
this.cdr.markForCheck();
|
|
7791
|
+
}
|
|
7792
|
+
collapseIllustrator(event) {
|
|
7793
|
+
event?.stopPropagation();
|
|
7794
|
+
this.suppressHoverUntilLeave = true;
|
|
7795
|
+
this.illustrator.collapse();
|
|
7796
|
+
this.cdr.markForCheck();
|
|
7797
|
+
this.scheduleLayoutUpdate();
|
|
7798
|
+
}
|
|
7563
7799
|
toggleExpand() {
|
|
7564
|
-
this.illustrator.
|
|
7800
|
+
if (this.illustrator.expanded) {
|
|
7801
|
+
this.collapseIllustrator();
|
|
7802
|
+
}
|
|
7803
|
+
else {
|
|
7804
|
+
this.expandIllustrator();
|
|
7805
|
+
}
|
|
7806
|
+
}
|
|
7807
|
+
onCollapsedSubmit(event) {
|
|
7808
|
+
event?.stopPropagation();
|
|
7809
|
+
event?.preventDefault();
|
|
7810
|
+
if (!this.illustrator.canSubmit) {
|
|
7811
|
+
return;
|
|
7812
|
+
}
|
|
7813
|
+
this.illustrator.submitPrompt();
|
|
7814
|
+
}
|
|
7815
|
+
onCollapsedEnter(event) {
|
|
7816
|
+
const keyboardEvent = event;
|
|
7817
|
+
if (keyboardEvent.isComposing) {
|
|
7818
|
+
return;
|
|
7819
|
+
}
|
|
7820
|
+
event.preventDefault();
|
|
7821
|
+
this.onCollapsedSubmit(event);
|
|
7822
|
+
}
|
|
7823
|
+
prevContextSlide() {
|
|
7824
|
+
this.scrollContextCarouselTo(this.activeCarouselIndex - 1);
|
|
7825
|
+
}
|
|
7826
|
+
nextContextSlide() {
|
|
7827
|
+
this.scrollContextCarouselTo(this.activeCarouselIndex + 1);
|
|
7828
|
+
}
|
|
7829
|
+
scrollContextCarouselTo(index) {
|
|
7830
|
+
const total = this.illustrator?.contextImages?.length || 0;
|
|
7831
|
+
if (total === 0) {
|
|
7832
|
+
return;
|
|
7833
|
+
}
|
|
7834
|
+
const clamped = Math.max(0, Math.min(total - 1, index));
|
|
7835
|
+
this.activeCarouselIndex = clamped;
|
|
7836
|
+
const carousel = this.contextCarouselElRef?.nativeElement;
|
|
7837
|
+
if (carousel) {
|
|
7838
|
+
const cards = carousel.querySelectorAll('.rtsee-illustrator-context-card');
|
|
7839
|
+
const targetCard = cards[clamped];
|
|
7840
|
+
if (targetCard) {
|
|
7841
|
+
const targetLeft = targetCard.offsetLeft - (carousel.clientWidth - targetCard.offsetWidth) / 2;
|
|
7842
|
+
carousel.scrollTo({ left: Math.max(0, targetLeft), behavior: 'smooth' });
|
|
7843
|
+
}
|
|
7844
|
+
}
|
|
7845
|
+
this.cdr.markForCheck();
|
|
7846
|
+
}
|
|
7847
|
+
onContextCarouselScroll() {
|
|
7848
|
+
const carousel = this.contextCarouselElRef?.nativeElement;
|
|
7849
|
+
if (!carousel) {
|
|
7850
|
+
return;
|
|
7851
|
+
}
|
|
7852
|
+
const cards = carousel.querySelectorAll('.rtsee-illustrator-context-card');
|
|
7853
|
+
if (!cards.length) {
|
|
7854
|
+
return;
|
|
7855
|
+
}
|
|
7856
|
+
const center = carousel.scrollLeft + carousel.clientWidth / 2;
|
|
7857
|
+
let closestIndex = 0;
|
|
7858
|
+
let closestDistance = Number.POSITIVE_INFINITY;
|
|
7859
|
+
cards.forEach((card, idx) => {
|
|
7860
|
+
const cardCenter = card.offsetLeft + card.offsetWidth / 2;
|
|
7861
|
+
const distance = Math.abs(center - cardCenter);
|
|
7862
|
+
if (distance < closestDistance) {
|
|
7863
|
+
closestDistance = distance;
|
|
7864
|
+
closestIndex = idx;
|
|
7865
|
+
}
|
|
7866
|
+
});
|
|
7867
|
+
if (this.activeCarouselIndex !== closestIndex) {
|
|
7868
|
+
this.activeCarouselIndex = closestIndex;
|
|
7869
|
+
this.cdr.markForCheck();
|
|
7870
|
+
}
|
|
7565
7871
|
}
|
|
7566
7872
|
toggleConfig() {
|
|
7567
7873
|
this.illustrator.toggleConfig();
|
|
@@ -7588,7 +7894,7 @@ class IllustratorComponent {
|
|
|
7588
7894
|
this.illustrator.acceptGeneratedImage();
|
|
7589
7895
|
}
|
|
7590
7896
|
submitIteration() {
|
|
7591
|
-
this.illustrator.submitIteration();
|
|
7897
|
+
void this.illustrator.submitIteration();
|
|
7592
7898
|
}
|
|
7593
7899
|
submitPrompt() {
|
|
7594
7900
|
this.illustrator.submitPrompt();
|
|
@@ -7599,14 +7905,134 @@ class IllustratorComponent {
|
|
|
7599
7905
|
trackByAgentId(index, item) {
|
|
7600
7906
|
return item.id || `agent-${index}`;
|
|
7601
7907
|
}
|
|
7908
|
+
scheduleLayoutUpdate() {
|
|
7909
|
+
if (typeof window === 'undefined') {
|
|
7910
|
+
return;
|
|
7911
|
+
}
|
|
7912
|
+
if (this.rafId !== null) {
|
|
7913
|
+
return;
|
|
7914
|
+
}
|
|
7915
|
+
this.rafId = window.requestAnimationFrame(() => {
|
|
7916
|
+
this.rafId = null;
|
|
7917
|
+
this.updateLayoutMetrics();
|
|
7918
|
+
});
|
|
7919
|
+
}
|
|
7920
|
+
updateLayoutMetrics() {
|
|
7921
|
+
if (typeof window === 'undefined') {
|
|
7922
|
+
return;
|
|
7923
|
+
}
|
|
7924
|
+
const viewportWidth = document.documentElement?.clientWidth || window.innerWidth;
|
|
7925
|
+
const nextIsMobile = window.innerWidth < IllustratorComponent.MOBILE_BREAKPOINT;
|
|
7926
|
+
let changed = false;
|
|
7927
|
+
if (this.isMobile !== nextIsMobile) {
|
|
7928
|
+
this.isMobile = nextIsMobile;
|
|
7929
|
+
this.suppressHoverUntilLeave = false;
|
|
7930
|
+
changed = true;
|
|
7931
|
+
}
|
|
7932
|
+
const host = this.elementRef.nativeElement;
|
|
7933
|
+
const shellEl = host.closest('.rtsee-shell');
|
|
7934
|
+
if (nextIsMobile) {
|
|
7935
|
+
let bottomOffset = 0;
|
|
7936
|
+
if (shellEl) {
|
|
7937
|
+
const navEl = shellEl.querySelector('.rtsee-nav-block');
|
|
7938
|
+
if (navEl) {
|
|
7939
|
+
const navStyle = window.getComputedStyle(navEl);
|
|
7940
|
+
const navRect = navEl.getBoundingClientRect();
|
|
7941
|
+
if (navStyle.display !== 'none' &&
|
|
7942
|
+
navStyle.visibility !== 'hidden' &&
|
|
7943
|
+
navRect.height > 0 &&
|
|
7944
|
+
navRect.width >= viewportWidth * 0.7 &&
|
|
7945
|
+
Math.abs(window.innerHeight - navRect.bottom) <= 8) {
|
|
7946
|
+
bottomOffset = Math.round(navRect.height);
|
|
7947
|
+
}
|
|
7948
|
+
}
|
|
7949
|
+
}
|
|
7950
|
+
if (this.layoutLeftPx !== 0 || this.layoutRightPx !== 0 || this.layoutBottomPx !== bottomOffset) {
|
|
7951
|
+
this.layoutLeftPx = 0;
|
|
7952
|
+
this.layoutRightPx = 0;
|
|
7953
|
+
this.layoutBottomPx = bottomOffset;
|
|
7954
|
+
changed = true;
|
|
7955
|
+
}
|
|
7956
|
+
}
|
|
7957
|
+
else {
|
|
7958
|
+
const contentEl = host.closest('.rtsee-presentations-dashboard') ||
|
|
7959
|
+
host.closest('.rtsee-presentation') ||
|
|
7960
|
+
host.closest('.rtsee-interactive-story-editor') ||
|
|
7961
|
+
host.parentElement;
|
|
7962
|
+
let left = 0;
|
|
7963
|
+
let right = 0;
|
|
7964
|
+
if (contentEl) {
|
|
7965
|
+
const rect = contentEl.getBoundingClientRect();
|
|
7966
|
+
if (rect.width > 0) {
|
|
7967
|
+
left = Math.max(0, Math.round(rect.left));
|
|
7968
|
+
right = Math.max(0, Math.round(viewportWidth - rect.right));
|
|
7969
|
+
}
|
|
7970
|
+
}
|
|
7971
|
+
if (shellEl) {
|
|
7972
|
+
const navEl = shellEl.querySelector('.rtsee-nav-block');
|
|
7973
|
+
if (navEl) {
|
|
7974
|
+
const navStyle = window.getComputedStyle(navEl);
|
|
7975
|
+
const navRect = navEl.getBoundingClientRect();
|
|
7976
|
+
if (navStyle.display !== 'none' &&
|
|
7977
|
+
navRect.width > 0 &&
|
|
7978
|
+
navRect.left <= 5 &&
|
|
7979
|
+
navRect.right < viewportWidth * 0.6) {
|
|
7980
|
+
left = Math.max(left, Math.round(navRect.right));
|
|
7981
|
+
}
|
|
7982
|
+
}
|
|
7983
|
+
const messengerEl = shellEl.querySelector('.rtsee-messenger-container');
|
|
7984
|
+
if (messengerEl) {
|
|
7985
|
+
const msgStyle = window.getComputedStyle(messengerEl);
|
|
7986
|
+
const msgRect = messengerEl.getBoundingClientRect();
|
|
7987
|
+
if (msgStyle.display !== 'none' &&
|
|
7988
|
+
msgRect.width > 0 &&
|
|
7989
|
+
msgRect.right >= viewportWidth - 5 &&
|
|
7990
|
+
msgRect.left > viewportWidth * 0.3) {
|
|
7991
|
+
right = Math.max(right, Math.round(viewportWidth - msgRect.left));
|
|
7992
|
+
}
|
|
7993
|
+
}
|
|
7994
|
+
}
|
|
7995
|
+
if (this.layoutLeftPx !== left || this.layoutRightPx !== right || this.layoutBottomPx !== 0) {
|
|
7996
|
+
this.layoutLeftPx = left;
|
|
7997
|
+
this.layoutRightPx = right;
|
|
7998
|
+
this.layoutBottomPx = 0;
|
|
7999
|
+
changed = true;
|
|
8000
|
+
}
|
|
8001
|
+
}
|
|
8002
|
+
if (!this.illustrator?.expanded) {
|
|
8003
|
+
const containerEl = this.containerElRef?.nativeElement;
|
|
8004
|
+
if (containerEl) {
|
|
8005
|
+
const measuredHeight = Math.ceil(containerEl.getBoundingClientRect().height);
|
|
8006
|
+
if (measuredHeight > 0 && Math.abs(measuredHeight - this.lastMeasuredCollapsedHeight) >= 1) {
|
|
8007
|
+
this.lastMeasuredCollapsedHeight = measuredHeight;
|
|
8008
|
+
const editorEl = host.closest('.rtsee-interactive-story-editor');
|
|
8009
|
+
if (editorEl) {
|
|
8010
|
+
editorEl.style.setProperty('--rtsee-illustrator-collapsed-height', `${measuredHeight}px`);
|
|
8011
|
+
}
|
|
8012
|
+
this.collapsedHeightChange.emit(measuredHeight);
|
|
8013
|
+
}
|
|
8014
|
+
}
|
|
8015
|
+
}
|
|
8016
|
+
if (changed) {
|
|
8017
|
+
this.cdr.markForCheck();
|
|
8018
|
+
}
|
|
8019
|
+
}
|
|
7602
8020
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IllustratorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7603
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: IllustratorComponent, isStandalone: true, selector: "rtsee-illustrator", inputs: { illustrator: "illustrator" }, ngImport: i0, template: "<div class=\"rtsee-illustrator-container\" [ngClass]=\"{ 'rtsee-illustrator--expanded': illustrator.expanded }\">\n <!-- Collapsed Bottom Bar -->\n @if (!illustrator.expanded) {\n <div class=\"rtsee-illustrator-collapsed-bar\" (click)=\"toggleExpand()\">\n <div class=\"rtsee-illustrator-collapsed-info\">\n <div class=\"rtsee-illustrator-badge-icon\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div class=\"rtsee-illustrator-collapsed-title\">\n <span class=\"rtsee-illustrator-brand-text\">NanoBanana Illustrator</span>\n @if (illustrator.activeAgent) {\n <span class=\"rtsee-illustrator-agent-pill\">\n <i class=\"pi pi-bolt\"></i>\n {{ illustrator.activeAgent.name }}\n </span>\n } @else {\n <span class=\"rtsee-illustrator-agent-pill rtsee-illustrator-agent-pill--waiting\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n Waiting for Chat Agent...\n </span>\n }\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-collapsed-meta\">\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <span class=\"rtsee-illustrator-collapsed-review-pill\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Draft\" class=\"rtsee-illustrator-collapsed-thumb\" />\n <span>\u2728 Reviewing Draft</span>\n </span>\n }\n @if (illustrator.contextImages.length > 0) {\n <span class=\"rtsee-illustrator-context-count\">\n <i class=\"pi pi-images\"></i>\n {{ illustrator.activeContextImages.length }} / {{ illustrator.contextImages.length }} context refs\n </span>\n }\n @if (illustrator.prompt) {\n <span class=\"rtsee-illustrator-prompt-preview\">\n \"{{ illustrator.prompt.length > 50 ? (illustrator.prompt | slice:0:50) + '\u2026' : illustrator.prompt }}\"\n </span>\n }\n <button type=\"button\" class=\"rtsee-illustrator-expand-btn\" aria-label=\"Expand Illustrator\">\n <i class=\"pi pi-chevron-up\"></i>\n </button>\n </div>\n </div>\n }\n\n <!-- Expanded Drawer -->\n @if (illustrator.expanded) {\n <div class=\"rtsee-illustrator-expanded-panel\">\n <!-- Header -->\n <header class=\"rtsee-illustrator-header\">\n <div class=\"rtsee-illustrator-title-group\">\n <div class=\"rtsee-illustrator-icon-circle\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div>\n <h3 class=\"rtsee-illustrator-heading\">NanoBanana Illustrator</h3>\n <p class=\"rtsee-illustrator-subheading\">Generate enchanted fairy tale visuals with rich contextual styling</p>\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-header-controls\">\n <!-- Agent Picker -->\n <div class=\"rtsee-illustrator-agent-select-wrapper\">\n <label class=\"rtsee-illustrator-agent-label\" for=\"rtsee-illustrator-agent-select\">\n <i class=\"pi pi-sparkles\"></i> Agent:\n </label>\n @if (illustrator.agents.length > 0) {\n <select\n id=\"rtsee-illustrator-agent-select\"\n class=\"rtsee-illustrator-select\"\n [value]=\"illustrator.activeAgentId || ''\"\n (change)=\"onSelectAgent($event)\"\n >\n @for (agent of illustrator.agents; track trackByAgentId($index, agent)) {\n <option [value]=\"agent.id\">\n {{ agent.name }} {{ agent.model ? '(' + agent.model + ')' : '' }}\n </option>\n }\n </select>\n } @else {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-mini\"\n (click)=\"refreshAgents()\"\n title=\"Query active agents from RTSeeChat\"\n >\n <i class=\"pi pi-refresh\"></i>\n <span>Connect RTSeeChat</span>\n </button>\n }\n </div>\n\n <!-- Config Toggle Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn\"\n [ngClass]=\"{ 'rtsee-illustrator-header-btn--active': illustrator.configExpanded }\"\n (click)=\"toggleConfig()\"\n title=\"Toggle NanoBanana Configuration\"\n >\n <i class=\"pi pi-sliders-h\"></i>\n <span>Config</span>\n <i class=\"pi\" [ngClass]=\"illustrator.configExpanded ? 'pi-chevron-up' : 'pi-chevron-down'\"></i>\n </button>\n\n <!-- Collapse Drawer Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn rtsee-illustrator-header-btn--close\"\n (click)=\"toggleExpand()\"\n aria-label=\"Collapse Illustrator\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n </header>\n\n <!-- Collapsible Config Section -->\n @if (illustrator.configExpanded) {\n <div class=\"rtsee-illustrator-config-panel\">\n <div class=\"rtsee-illustrator-config-grid\">\n <!-- Aspect Ratio -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-aspect-ratio\">\n <i class=\"pi pi-stop\"></i> Aspect Ratio (Default 1:1)\n </label>\n <select\n id=\"cfg-aspect-ratio\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.aspectRatio\"\n >\n @for (ratio of aspectRatios; track ratio) {\n <option [value]=\"ratio\">{{ ratio }}{{ ratio === '1:1' ? ' (Square - Fairy Tale Default)' : '' }}</option>\n }\n </select>\n </div>\n\n <!-- Style Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-style\">\n <i class=\"pi pi-paint-brush\"></i> Illustration Style\n </label>\n <select\n id=\"cfg-style\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.style\"\n >\n @for (s of styles; track s) {\n <option [value]=\"s\">{{ s }}</option>\n }\n </select>\n </div>\n\n <!-- Mood Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-mood\">\n <i class=\"pi pi-heart\"></i> Mood & Atmosphere\n </label>\n <select\n id=\"cfg-mood\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.mood\"\n >\n @for (m of moods; track m) {\n <option [value]=\"m\">{{ m }}</option>\n }\n </select>\n </div>\n\n <!-- Lighting Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-lighting\">\n <i class=\"pi pi-sun\"></i> Lighting\n </label>\n <select\n id=\"cfg-lighting\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.lighting\"\n >\n @for (l of lightings; track l) {\n <option [value]=\"l\">{{ l }}</option>\n }\n </select>\n </div>\n </div>\n\n <!-- Negative Prompt -->\n <div class=\"rtsee-illustrator-config-item rtsee-illustrator-config-item--full\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-negative-prompt\">\n <i class=\"pi pi-ban\"></i> Negative Prompt (What to exclude)\n </label>\n <input\n id=\"cfg-negative-prompt\"\n type=\"text\"\n class=\"rtsee-illustrator-input\"\n [(ngModel)]=\"illustrator.config.negativePrompt\"\n placeholder=\"e.g. modern items, cars, text, watermark, blurry...\"\n />\n </div>\n </div>\n }\n\n <!-- Context Images Section -->\n @if (illustrator.contextImages.length > 0) {\n <div class=\"rtsee-illustrator-context-section\">\n <div class=\"rtsee-illustrator-section-header\">\n <span class=\"rtsee-illustrator-section-title\">\n <i class=\"pi pi-images\"></i> Story Context References ({{ illustrator.activeContextImages.length }} of {{ illustrator.contextImages.length }} active)\n </span>\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-text\"\n (click)=\"illustrator.clearContext()\"\n title=\"Clear all context references\"\n >\n <i class=\"pi pi-trash\"></i> Clear All\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-context-cards\">\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <div class=\"rtsee-illustrator-context-card\" [ngClass]=\"{ 'rtsee-illustrator-context-card--inactive': !img.active }\">\n <!-- Thumbnail & Active Checkbox -->\n <div class=\"rtsee-illustrator-card-thumb-col\">\n <div class=\"rtsee-illustrator-card-thumb-wrapper\">\n @if (img.imageUrl) {\n <img [src]=\"img.imageUrl\" [alt]=\"img.title\" class=\"rtsee-illustrator-card-img\" />\n } @else {\n <div class=\"rtsee-illustrator-card-no-img\">\n <i class=\"pi pi-image\"></i>\n </div>\n }\n </div>\n <label class=\"rtsee-illustrator-checkbox-label\">\n <input\n type=\"checkbox\"\n [checked]=\"img.active !== false\"\n (change)=\"toggleActive(img)\"\n />\n <span>Active</span>\n </label>\n </div>\n\n <!-- Editable Fields -->\n <div class=\"rtsee-illustrator-card-fields\">\n <div class=\"rtsee-illustrator-card-header\">\n <span class=\"rtsee-illustrator-source-badge\">{{ img.sourceType || 'reference' }}</span>\n <input\n type=\"text\"\n class=\"rtsee-illustrator-card-title-input\"\n [(ngModel)]=\"img.title\"\n placeholder=\"Reference title...\"\n />\n <button\n type=\"button\"\n class=\"rtsee-illustrator-card-remove-btn\"\n (click)=\"removeImage(img.id)\"\n aria-label=\"Remove image from context\"\n title=\"Remove from context\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-card-inputs-grid\">\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Visual Description (Style / Appearance):</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.visualDescription\"\n placeholder=\"Key visual features, colors, clothing, texture, lighting...\"\n ></textarea>\n </div>\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Context / Role Description:</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.description\"\n placeholder=\"Context or lore in this fairy tale scene...\"\n ></textarea>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n }\n\n <!-- Generation Error Banner -->\n @if (illustrator.generationError) {\n <div class=\"rtsee-illustrator-error-banner\">\n <i class=\"pi pi-exclamation-triangle\"></i>\n <span class=\"rtsee-illustrator-error-text\">{{ illustrator.generationError }}</span>\n <button type=\"button\" class=\"rtsee-illustrator-error-close\" (click)=\"illustrator.generationError = null\" aria-label=\"Dismiss error\">\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n }\n\n <!-- Reviewing Generated Image Mode -->\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-review-panel\">\n <div class=\"rtsee-illustrator-review-header\">\n <div class=\"rtsee-illustrator-review-title\">\n <span class=\"rtsee-illustrator-review-badge\">\n <i class=\"pi pi-sparkles\"></i> Reviewing Generated Image\n </span>\n <span class=\"rtsee-illustrator-review-sub\">Review the result, request iterative modifications, or discard.</span>\n </div>\n <div class=\"rtsee-illustrator-review-quick-actions\">\n <p-button\n label=\"Accept & Keep\"\n icon=\"pi pi-check\"\n severity=\"success\"\n (click)=\"acceptGeneratedImage()\"\n />\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n </div>\n </div>\n\n <!-- Image Preview -->\n <div class=\"rtsee-illustrator-preview-box\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Generated fairy tale illustration\" class=\"rtsee-illustrator-preview-img\" />\n <a [href]=\"illustrator.currentGeneratedImageUrl\" target=\"_blank\" rel=\"noopener\" class=\"rtsee-illustrator-preview-zoom-btn\" title=\"Open full image in new tab\">\n <i class=\"pi pi-external-link\"></i> Full View\n </a>\n </div>\n\n <!-- Iteration Modification Controls -->\n <div class=\"rtsee-illustrator-iteration-box\">\n <div class=\"rtsee-illustrator-iteration-info\">\n <span class=\"rtsee-illustrator-iteration-tag\">\n <i class=\"pi pi-refresh\"></i> Request Modifications & Iterate\n </span>\n <span class=\"rtsee-illustrator-iteration-context-hint\">\n <i class=\"pi pi-info-circle\"></i>\n All active context references ({{ illustrator.activeContextImages.length }}) are sent to NanoBanana alongside this base picture.\n </span>\n </div>\n\n <textarea\n class=\"rtsee-illustrator-prompt-textarea rtsee-illustrator-prompt-textarea--iteration\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.iterationPrompt\"\n placeholder=\"Describe modifications to apply to this picture (e.g. 'Make the wizard's cloak sapphire blue with silver runes, add glowing fireflies, soften the background trees')...\"\n (keydown.meta.enter)=\"submitIteration()\"\n (keydown.control.enter)=\"submitIteration()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to iterate on this picture.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n <p-button\n label=\"Iterate & Regenerate\"\n icon=\"pi pi-refresh\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitIteration()\"\n />\n </div>\n </div>\n </div>\n </div>\n } @else {\n <!-- Prompt Input & Submit Action (Standard Mode) -->\n <div class=\"rtsee-illustrator-prompt-section\">\n <div class=\"rtsee-illustrator-prompt-box\">\n <textarea\n class=\"rtsee-illustrator-prompt-textarea\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.prompt\"\n placeholder=\"Describe the fairy tale illustration to generate (e.g. 'A cozy cottage tucked deep inside the emerald moss woods, magical amber lanterns glowing warmly from the windows, soft fireflies in the air')...\"\n (keydown.meta.enter)=\"submitPrompt()\"\n (keydown.control.enter)=\"submitPrompt()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to submit. Context characters, artifacts, locations & slides are sent to NanoBanana.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Generate Illustration\"\n icon=\"pi pi-sparkles\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitPrompt()\"\n />\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i1$3.SlicePipe, name: "slice" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8021
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: IllustratorComponent, isStandalone: true, selector: "rtsee-illustrator", inputs: { illustrator: "illustrator" }, outputs: { collapsedHeightChange: "collapsedHeightChange" }, viewQueries: [{ propertyName: "containerElRef", first: true, predicate: ["containerEl"], descendants: true }, { propertyName: "contextCarouselElRef", first: true, predicate: ["contextCarouselEl"], descendants: true }], ngImport: i0, template: "<div\n #containerEl\n class=\"rtsee-illustrator-container\"\n [ngClass]=\"{\n 'rtsee-illustrator--expanded': illustrator.expanded,\n 'rtsee-illustrator--mobile': isMobile,\n 'rtsee-illustrator--desktop': !isMobile\n }\"\n [style.--rtsee-illustrator-left]=\"layoutLeftPx !== null ? layoutLeftPx + 'px' : null\"\n [style.--rtsee-illustrator-right]=\"layoutRightPx !== null ? layoutRightPx + 'px' : null\"\n [style.--rtsee-illustrator-bottom]=\"layoutBottomPx + 'px'\"\n (mouseleave)=\"onContainerMouseLeave($event)\"\n>\n <!-- Collapsed Bottom Bar -->\n @if (!illustrator.expanded) {\n @if (isMobile) {\n <!-- Mobile Minimalist Collapsed Bar: ImagePreview + Text Input + Paperplane Submit + Expand Button -->\n <div class=\"rtsee-illustrator-collapsed-bar rtsee-illustrator-collapsed-bar--mobile\">\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-collapsed-preview\">\n <img\n [src]=\"illustrator.currentGeneratedImageUrl\"\n alt=\"Image preview\"\n class=\"rtsee-illustrator-collapsed-preview-img\"\n />\n </div>\n }\n\n <input\n type=\"text\"\n class=\"rtsee-illustrator-collapsed-input\"\n [(ngModel)]=\"activePromptText\"\n [placeholder]=\"illustrator.reviewingGeneratedImage ? 'Modify image\u2026' : 'Describe illustration\u2026'\"\n (keydown.enter)=\"onCollapsedEnter($event)\"\n aria-label=\"Illustration prompt\"\n />\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-icon-btn rtsee-illustrator-collapsed-icon-btn--submit\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"onCollapsedSubmit($event)\"\n aria-label=\"Submit\"\n title=\"Submit\"\n >\n <i class=\"pi\" [ngClass]=\"illustrator.submitting ? 'pi-spin pi-spinner' : 'pi-send'\"></i>\n </button>\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-icon-btn rtsee-illustrator-expand-btn\"\n (click)=\"expandIllustrator($event)\"\n aria-label=\"Expand Illustrator\"\n title=\"Expand Illustrator\"\n >\n <i class=\"pi pi-chevron-up\"></i>\n </button>\n </div>\n } @else {\n <!-- Desktop Collapsed Bar: Single Image (if preview) + Context (N) + Small Text Input + Submit Button -->\n <div\n class=\"rtsee-illustrator-collapsed-bar rtsee-illustrator-collapsed-bar--desktop\"\n (mouseenter)=\"onCollapsedMouseEnter()\"\n >\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-collapsed-preview\">\n <img\n [src]=\"illustrator.currentGeneratedImageUrl\"\n alt=\"Preview\"\n class=\"rtsee-illustrator-collapsed-preview-img\"\n />\n </div>\n }\n\n <span class=\"rtsee-illustrator-context-count\">\n Context ({{ illustrator.contextImages.length }})\n </span>\n\n <input\n type=\"text\"\n class=\"rtsee-illustrator-collapsed-input\"\n [(ngModel)]=\"activePromptText\"\n [placeholder]=\"illustrator.reviewingGeneratedImage ? 'Describe modifications to iterate\u2026' : 'Describe illustration to generate\u2026'\"\n (keydown.enter)=\"onCollapsedEnter($event)\"\n aria-label=\"Illustration prompt\"\n />\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-submit-btn\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"onCollapsedSubmit($event)\"\n >\n @if (illustrator.submitting) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-send\"></i>\n }\n <span>Submit</span>\n </button>\n </div>\n }\n }\n\n <!-- Expanded Drawer / Fullscreen Mobile Overlay -->\n @if (illustrator.expanded) {\n <div class=\"rtsee-illustrator-expanded-panel\">\n <!-- Header -->\n <header class=\"rtsee-illustrator-header\">\n <div class=\"rtsee-illustrator-title-group\">\n <div class=\"rtsee-illustrator-icon-circle\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div>\n <h3 class=\"rtsee-illustrator-heading\">NanoBanana Illustrator</h3>\n @if (!isMobile) {\n <p class=\"rtsee-illustrator-subheading\">Generate enchanted fairy tale visuals with rich contextual styling</p>\n }\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-header-controls\">\n <!-- Agent Picker -->\n <div class=\"rtsee-illustrator-agent-select-wrapper\">\n <label class=\"rtsee-illustrator-agent-label\" for=\"rtsee-illustrator-agent-select\">\n <i class=\"pi pi-sparkles\"></i>\n @if (!isMobile) {\n <span>Agent:</span>\n }\n </label>\n @if (illustrator.agents.length > 0) {\n <select\n id=\"rtsee-illustrator-agent-select\"\n class=\"rtsee-illustrator-select\"\n [value]=\"illustrator.activeAgentId || ''\"\n (change)=\"onSelectAgent($event)\"\n >\n @for (agent of illustrator.agents; track trackByAgentId($index, agent)) {\n <option [value]=\"agent.id\">\n {{ agent.name }} {{ agent.model ? '(' + agent.model + ')' : '' }}\n </option>\n }\n </select>\n } @else {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-mini\"\n (click)=\"refreshAgents()\"\n title=\"Query active agents from RTSeeChat\"\n >\n <i class=\"pi pi-refresh\"></i>\n <span>{{ isMobile ? 'Connect' : 'Connect RTSeeChat' }}</span>\n </button>\n }\n </div>\n\n <!-- Config Toggle Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn\"\n [ngClass]=\"{ 'rtsee-illustrator-header-btn--active': illustrator.configExpanded }\"\n (click)=\"toggleConfig()\"\n title=\"Toggle NanoBanana Configuration\"\n >\n <i class=\"pi pi-sliders-h\"></i>\n @if (!isMobile) {\n <span>Config</span>\n }\n <i class=\"pi\" [ngClass]=\"illustrator.configExpanded ? 'pi-chevron-up' : 'pi-chevron-down'\"></i>\n </button>\n\n <!-- Collapse Drawer Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn rtsee-illustrator-header-btn--collapse\"\n (click)=\"collapseIllustrator($event)\"\n aria-label=\"Collapse Illustrator\"\n title=\"Collapse Illustrator\"\n >\n <i class=\"pi pi-chevron-down\"></i>\n @if (!isMobile) {\n <span>Collapse</span>\n }\n </button>\n </div>\n </header>\n\n <!-- Collapsible Config Section -->\n @if (illustrator.configExpanded) {\n <div class=\"rtsee-illustrator-config-panel\">\n <div class=\"rtsee-illustrator-config-grid\">\n <!-- Aspect Ratio -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-aspect-ratio\">\n <i class=\"pi pi-stop\"></i> Aspect Ratio (Default 1:1)\n </label>\n <select\n id=\"cfg-aspect-ratio\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.aspectRatio\"\n >\n @for (ratio of aspectRatios; track ratio) {\n <option [value]=\"ratio\">{{ ratio }}{{ ratio === '1:1' ? ' (Square - Fairy Tale Default)' : '' }}</option>\n }\n </select>\n </div>\n\n <!-- Style Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-style\">\n <i class=\"pi pi-paint-brush\"></i> Illustration Style\n </label>\n <select\n id=\"cfg-style\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.style\"\n >\n @for (s of styles; track s) {\n <option [value]=\"s\">{{ s }}</option>\n }\n </select>\n </div>\n\n <!-- Mood Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-mood\">\n <i class=\"pi pi-heart\"></i> Mood & Atmosphere\n </label>\n <select\n id=\"cfg-mood\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.mood\"\n >\n @for (m of moods; track m) {\n <option [value]=\"m\">{{ m }}</option>\n }\n </select>\n </div>\n\n <!-- Lighting Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-lighting\">\n <i class=\"pi pi-sun\"></i> Lighting\n </label>\n <select\n id=\"cfg-lighting\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.lighting\"\n >\n @for (l of lightings; track l) {\n <option [value]=\"l\">{{ l }}</option>\n }\n </select>\n </div>\n </div>\n\n <!-- Negative Prompt -->\n <div class=\"rtsee-illustrator-config-item rtsee-illustrator-config-item--full\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-negative-prompt\">\n <i class=\"pi pi-ban\"></i> Negative Prompt (What to exclude)\n </label>\n <input\n id=\"cfg-negative-prompt\"\n type=\"text\"\n class=\"rtsee-illustrator-input\"\n [(ngModel)]=\"illustrator.config.negativePrompt\"\n placeholder=\"e.g. modern items, cars, text, watermark, blurry...\"\n />\n </div>\n </div>\n }\n\n <!-- Context Images Section -->\n @if (illustrator.contextImages.length > 0) {\n <div class=\"rtsee-illustrator-context-section\"\n [ngClass]=\"{ 'rtsee-illustrator-context-section--carousel': isMobile }\">\n <div class=\"rtsee-illustrator-section-header\">\n <span class=\"rtsee-illustrator-section-title\">\n <i class=\"pi pi-images\"></i>\n Context ({{ illustrator.activeContextImages.length }} / {{ illustrator.contextImages.length }})\n </span>\n\n <div class=\"rtsee-illustrator-context-header-actions\">\n @if (isMobile && illustrator.contextImages.length > 1) {\n <div class=\"rtsee-illustrator-carousel-nav\">\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-nav-btn\"\n [disabled]=\"activeCarouselIndex <= 0\"\n (click)=\"prevContextSlide()\"\n aria-label=\"Previous context item\"\n >\n <i class=\"pi pi-arrow-left\"></i>\n </button>\n <span class=\"rtsee-illustrator-carousel-counter\">\n {{ activeCarouselIndex + 1 }} / {{ illustrator.contextImages.length }}\n </span>\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-nav-btn\"\n [disabled]=\"activeCarouselIndex >= illustrator.contextImages.length - 1\"\n (click)=\"nextContextSlide()\"\n aria-label=\"Next context item\"\n >\n <i class=\"pi pi-arrow-right\"></i>\n </button>\n </div>\n }\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-text\"\n (click)=\"illustrator.clearContext()\"\n title=\"Clear all context references\"\n >\n <i class=\"pi pi-trash\"></i> Clear All\n </button>\n </div>\n </div>\n\n <div\n #contextCarouselEl\n class=\"rtsee-illustrator-context-cards\"\n (scroll)=\"onContextCarouselScroll()\"\n >\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <div class=\"rtsee-illustrator-context-card\" [ngClass]=\"{ 'rtsee-illustrator-context-card--inactive': !img.active }\">\n <!-- Thumbnail & Active Checkbox -->\n <div class=\"rtsee-illustrator-card-thumb-col\">\n <div class=\"rtsee-illustrator-card-thumb-wrapper\">\n @if (img.imageUrl) {\n <img [src]=\"img.imageUrl\" [alt]=\"img.title\" class=\"rtsee-illustrator-card-img\" />\n } @else {\n <div class=\"rtsee-illustrator-card-no-img\">\n <i class=\"pi pi-image\"></i>\n </div>\n }\n </div>\n <label class=\"rtsee-illustrator-checkbox-label\">\n <input\n type=\"checkbox\"\n [checked]=\"img.active !== false\"\n (change)=\"toggleActive(img)\"\n />\n <span>Active</span>\n </label>\n </div>\n\n <!-- Editable Fields -->\n <div class=\"rtsee-illustrator-card-fields\">\n <div class=\"rtsee-illustrator-card-header\">\n <span class=\"rtsee-illustrator-source-badge\">{{ img.sourceType || 'reference' }}</span>\n <input\n type=\"text\"\n class=\"rtsee-illustrator-card-title-input\"\n [(ngModel)]=\"img.title\"\n placeholder=\"Reference title...\"\n />\n <button\n type=\"button\"\n class=\"rtsee-illustrator-card-remove-btn\"\n (click)=\"removeImage(img.id)\"\n aria-label=\"Remove image from context\"\n title=\"Remove from context\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-card-inputs-grid\">\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Visual Description (Style / Appearance):</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.visualDescription\"\n placeholder=\"Key visual features, colors, clothing, texture, lighting...\"\n ></textarea>\n </div>\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Context / Role Description:</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.description\"\n placeholder=\"Context or lore in this fairy tale scene...\"\n ></textarea>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n\n @if (isMobile && illustrator.contextImages.length > 1) {\n <div class=\"rtsee-illustrator-carousel-dots\" role=\"tablist\" aria-label=\"Context items\">\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-dot\"\n [ngClass]=\"{ 'rtsee-illustrator-carousel-dot--active': $index === activeCarouselIndex }\"\n [attr.aria-label]=\"'Context item ' + ($index + 1)\"\n (click)=\"scrollContextCarouselTo($index)\"\n ></button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Generation Error Banner -->\n @if (illustrator.generationError) {\n <div class=\"rtsee-illustrator-error-banner\">\n <i class=\"pi pi-exclamation-triangle\"></i>\n <span class=\"rtsee-illustrator-error-text\">{{ illustrator.generationError }}</span>\n <button type=\"button\" class=\"rtsee-illustrator-error-close\" (click)=\"illustrator.generationError = null\" aria-label=\"Dismiss error\">\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n }\n\n <!-- Reviewing Generated Image Mode -->\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-review-panel\">\n <div class=\"rtsee-illustrator-review-header\">\n <div class=\"rtsee-illustrator-review-title\">\n <span class=\"rtsee-illustrator-review-badge\">\n <i class=\"pi pi-sparkles\"></i> Reviewing Generated Image\n </span>\n <span class=\"rtsee-illustrator-review-sub\">Review the result, request iterative modifications, or discard.</span>\n </div>\n <div class=\"rtsee-illustrator-review-quick-actions\">\n <p-button\n label=\"Accept & Keep\"\n icon=\"pi pi-check\"\n severity=\"success\"\n (click)=\"acceptGeneratedImage()\"\n />\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n </div>\n </div>\n\n <!-- Image Preview -->\n <div class=\"rtsee-illustrator-preview-box\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Generated fairy tale illustration\" class=\"rtsee-illustrator-preview-img\" />\n <a [href]=\"illustrator.currentGeneratedImageUrl\" target=\"_blank\" rel=\"noopener\" class=\"rtsee-illustrator-preview-zoom-btn\" title=\"Open full image in new tab\">\n <i class=\"pi pi-external-link\"></i> Full View\n </a>\n </div>\n\n <!-- Iteration Modification Controls -->\n <div class=\"rtsee-illustrator-iteration-box\">\n <div class=\"rtsee-illustrator-iteration-info\">\n <span class=\"rtsee-illustrator-iteration-tag\">\n <i class=\"pi pi-refresh\"></i> Request Modifications & Iterate\n </span>\n <span class=\"rtsee-illustrator-iteration-context-hint\">\n <i class=\"pi pi-info-circle\"></i>\n All active context references ({{ illustrator.activeContextImages.length }}) are sent to NanoBanana alongside this base picture.\n </span>\n </div>\n\n <textarea\n class=\"rtsee-illustrator-prompt-textarea rtsee-illustrator-prompt-textarea--iteration\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.iterationPrompt\"\n placeholder=\"Describe modifications to apply to this picture (e.g. 'Make the wizard's cloak sapphire blue with silver runes, add glowing fireflies, soften the background trees')...\"\n (keydown.meta.enter)=\"submitIteration()\"\n (keydown.control.enter)=\"submitIteration()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to iterate on this picture.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n <p-button\n label=\"Iterate & Regenerate\"\n icon=\"pi pi-refresh\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitIteration()\"\n />\n </div>\n </div>\n </div>\n </div>\n } @else {\n <!-- Prompt Input & Submit Action (Standard Mode) -->\n <div class=\"rtsee-illustrator-prompt-section\">\n <div class=\"rtsee-illustrator-prompt-box\">\n <textarea\n class=\"rtsee-illustrator-prompt-textarea\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.prompt\"\n placeholder=\"Describe the fairy tale illustration to generate (e.g. 'A cozy cottage tucked deep inside the emerald moss woods, magical amber lanterns glowing warmly from the windows, soft fireflies in the air')...\"\n (keydown.meta.enter)=\"submitPrompt()\"\n (keydown.control.enter)=\"submitPrompt()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to submit. Context characters, artifacts, locations & slides are sent to NanoBanana.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Generate Illustration\"\n icon=\"pi pi-sparkles\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitPrompt()\"\n />\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7604
8022
|
}
|
|
7605
8023
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IllustratorComponent, decorators: [{
|
|
7606
8024
|
type: Component,
|
|
7607
|
-
args: [{ selector: 'rtsee-illustrator', standalone: true, imports: [CommonModule, FormsModule, Button, Checkbox, Textarea], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"rtsee-illustrator-container\" [ngClass]=\"{ 'rtsee-illustrator--expanded': illustrator.expanded }\">\n <!-- Collapsed Bottom Bar -->\n @if (!illustrator.expanded) {\n <div class=\"rtsee-illustrator-collapsed-bar\" (click)=\"toggleExpand()\">\n <div class=\"rtsee-illustrator-collapsed-info\">\n <div class=\"rtsee-illustrator-badge-icon\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div class=\"rtsee-illustrator-collapsed-title\">\n <span class=\"rtsee-illustrator-brand-text\">NanoBanana Illustrator</span>\n @if (illustrator.activeAgent) {\n <span class=\"rtsee-illustrator-agent-pill\">\n <i class=\"pi pi-bolt\"></i>\n {{ illustrator.activeAgent.name }}\n </span>\n } @else {\n <span class=\"rtsee-illustrator-agent-pill rtsee-illustrator-agent-pill--waiting\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n Waiting for Chat Agent...\n </span>\n }\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-collapsed-meta\">\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <span class=\"rtsee-illustrator-collapsed-review-pill\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Draft\" class=\"rtsee-illustrator-collapsed-thumb\" />\n <span>\u2728 Reviewing Draft</span>\n </span>\n }\n @if (illustrator.contextImages.length > 0) {\n <span class=\"rtsee-illustrator-context-count\">\n <i class=\"pi pi-images\"></i>\n {{ illustrator.activeContextImages.length }} / {{ illustrator.contextImages.length }} context refs\n </span>\n }\n @if (illustrator.prompt) {\n <span class=\"rtsee-illustrator-prompt-preview\">\n \"{{ illustrator.prompt.length > 50 ? (illustrator.prompt | slice:0:50) + '\u2026' : illustrator.prompt }}\"\n </span>\n }\n <button type=\"button\" class=\"rtsee-illustrator-expand-btn\" aria-label=\"Expand Illustrator\">\n <i class=\"pi pi-chevron-up\"></i>\n </button>\n </div>\n </div>\n }\n\n <!-- Expanded Drawer -->\n @if (illustrator.expanded) {\n <div class=\"rtsee-illustrator-expanded-panel\">\n <!-- Header -->\n <header class=\"rtsee-illustrator-header\">\n <div class=\"rtsee-illustrator-title-group\">\n <div class=\"rtsee-illustrator-icon-circle\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div>\n <h3 class=\"rtsee-illustrator-heading\">NanoBanana Illustrator</h3>\n <p class=\"rtsee-illustrator-subheading\">Generate enchanted fairy tale visuals with rich contextual styling</p>\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-header-controls\">\n <!-- Agent Picker -->\n <div class=\"rtsee-illustrator-agent-select-wrapper\">\n <label class=\"rtsee-illustrator-agent-label\" for=\"rtsee-illustrator-agent-select\">\n <i class=\"pi pi-sparkles\"></i> Agent:\n </label>\n @if (illustrator.agents.length > 0) {\n <select\n id=\"rtsee-illustrator-agent-select\"\n class=\"rtsee-illustrator-select\"\n [value]=\"illustrator.activeAgentId || ''\"\n (change)=\"onSelectAgent($event)\"\n >\n @for (agent of illustrator.agents; track trackByAgentId($index, agent)) {\n <option [value]=\"agent.id\">\n {{ agent.name }} {{ agent.model ? '(' + agent.model + ')' : '' }}\n </option>\n }\n </select>\n } @else {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-mini\"\n (click)=\"refreshAgents()\"\n title=\"Query active agents from RTSeeChat\"\n >\n <i class=\"pi pi-refresh\"></i>\n <span>Connect RTSeeChat</span>\n </button>\n }\n </div>\n\n <!-- Config Toggle Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn\"\n [ngClass]=\"{ 'rtsee-illustrator-header-btn--active': illustrator.configExpanded }\"\n (click)=\"toggleConfig()\"\n title=\"Toggle NanoBanana Configuration\"\n >\n <i class=\"pi pi-sliders-h\"></i>\n <span>Config</span>\n <i class=\"pi\" [ngClass]=\"illustrator.configExpanded ? 'pi-chevron-up' : 'pi-chevron-down'\"></i>\n </button>\n\n <!-- Collapse Drawer Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn rtsee-illustrator-header-btn--close\"\n (click)=\"toggleExpand()\"\n aria-label=\"Collapse Illustrator\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n </header>\n\n <!-- Collapsible Config Section -->\n @if (illustrator.configExpanded) {\n <div class=\"rtsee-illustrator-config-panel\">\n <div class=\"rtsee-illustrator-config-grid\">\n <!-- Aspect Ratio -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-aspect-ratio\">\n <i class=\"pi pi-stop\"></i> Aspect Ratio (Default 1:1)\n </label>\n <select\n id=\"cfg-aspect-ratio\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.aspectRatio\"\n >\n @for (ratio of aspectRatios; track ratio) {\n <option [value]=\"ratio\">{{ ratio }}{{ ratio === '1:1' ? ' (Square - Fairy Tale Default)' : '' }}</option>\n }\n </select>\n </div>\n\n <!-- Style Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-style\">\n <i class=\"pi pi-paint-brush\"></i> Illustration Style\n </label>\n <select\n id=\"cfg-style\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.style\"\n >\n @for (s of styles; track s) {\n <option [value]=\"s\">{{ s }}</option>\n }\n </select>\n </div>\n\n <!-- Mood Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-mood\">\n <i class=\"pi pi-heart\"></i> Mood & Atmosphere\n </label>\n <select\n id=\"cfg-mood\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.mood\"\n >\n @for (m of moods; track m) {\n <option [value]=\"m\">{{ m }}</option>\n }\n </select>\n </div>\n\n <!-- Lighting Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-lighting\">\n <i class=\"pi pi-sun\"></i> Lighting\n </label>\n <select\n id=\"cfg-lighting\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.lighting\"\n >\n @for (l of lightings; track l) {\n <option [value]=\"l\">{{ l }}</option>\n }\n </select>\n </div>\n </div>\n\n <!-- Negative Prompt -->\n <div class=\"rtsee-illustrator-config-item rtsee-illustrator-config-item--full\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-negative-prompt\">\n <i class=\"pi pi-ban\"></i> Negative Prompt (What to exclude)\n </label>\n <input\n id=\"cfg-negative-prompt\"\n type=\"text\"\n class=\"rtsee-illustrator-input\"\n [(ngModel)]=\"illustrator.config.negativePrompt\"\n placeholder=\"e.g. modern items, cars, text, watermark, blurry...\"\n />\n </div>\n </div>\n }\n\n <!-- Context Images Section -->\n @if (illustrator.contextImages.length > 0) {\n <div class=\"rtsee-illustrator-context-section\">\n <div class=\"rtsee-illustrator-section-header\">\n <span class=\"rtsee-illustrator-section-title\">\n <i class=\"pi pi-images\"></i> Story Context References ({{ illustrator.activeContextImages.length }} of {{ illustrator.contextImages.length }} active)\n </span>\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-text\"\n (click)=\"illustrator.clearContext()\"\n title=\"Clear all context references\"\n >\n <i class=\"pi pi-trash\"></i> Clear All\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-context-cards\">\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <div class=\"rtsee-illustrator-context-card\" [ngClass]=\"{ 'rtsee-illustrator-context-card--inactive': !img.active }\">\n <!-- Thumbnail & Active Checkbox -->\n <div class=\"rtsee-illustrator-card-thumb-col\">\n <div class=\"rtsee-illustrator-card-thumb-wrapper\">\n @if (img.imageUrl) {\n <img [src]=\"img.imageUrl\" [alt]=\"img.title\" class=\"rtsee-illustrator-card-img\" />\n } @else {\n <div class=\"rtsee-illustrator-card-no-img\">\n <i class=\"pi pi-image\"></i>\n </div>\n }\n </div>\n <label class=\"rtsee-illustrator-checkbox-label\">\n <input\n type=\"checkbox\"\n [checked]=\"img.active !== false\"\n (change)=\"toggleActive(img)\"\n />\n <span>Active</span>\n </label>\n </div>\n\n <!-- Editable Fields -->\n <div class=\"rtsee-illustrator-card-fields\">\n <div class=\"rtsee-illustrator-card-header\">\n <span class=\"rtsee-illustrator-source-badge\">{{ img.sourceType || 'reference' }}</span>\n <input\n type=\"text\"\n class=\"rtsee-illustrator-card-title-input\"\n [(ngModel)]=\"img.title\"\n placeholder=\"Reference title...\"\n />\n <button\n type=\"button\"\n class=\"rtsee-illustrator-card-remove-btn\"\n (click)=\"removeImage(img.id)\"\n aria-label=\"Remove image from context\"\n title=\"Remove from context\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-card-inputs-grid\">\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Visual Description (Style / Appearance):</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.visualDescription\"\n placeholder=\"Key visual features, colors, clothing, texture, lighting...\"\n ></textarea>\n </div>\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Context / Role Description:</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.description\"\n placeholder=\"Context or lore in this fairy tale scene...\"\n ></textarea>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n }\n\n <!-- Generation Error Banner -->\n @if (illustrator.generationError) {\n <div class=\"rtsee-illustrator-error-banner\">\n <i class=\"pi pi-exclamation-triangle\"></i>\n <span class=\"rtsee-illustrator-error-text\">{{ illustrator.generationError }}</span>\n <button type=\"button\" class=\"rtsee-illustrator-error-close\" (click)=\"illustrator.generationError = null\" aria-label=\"Dismiss error\">\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n }\n\n <!-- Reviewing Generated Image Mode -->\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-review-panel\">\n <div class=\"rtsee-illustrator-review-header\">\n <div class=\"rtsee-illustrator-review-title\">\n <span class=\"rtsee-illustrator-review-badge\">\n <i class=\"pi pi-sparkles\"></i> Reviewing Generated Image\n </span>\n <span class=\"rtsee-illustrator-review-sub\">Review the result, request iterative modifications, or discard.</span>\n </div>\n <div class=\"rtsee-illustrator-review-quick-actions\">\n <p-button\n label=\"Accept & Keep\"\n icon=\"pi pi-check\"\n severity=\"success\"\n (click)=\"acceptGeneratedImage()\"\n />\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n </div>\n </div>\n\n <!-- Image Preview -->\n <div class=\"rtsee-illustrator-preview-box\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Generated fairy tale illustration\" class=\"rtsee-illustrator-preview-img\" />\n <a [href]=\"illustrator.currentGeneratedImageUrl\" target=\"_blank\" rel=\"noopener\" class=\"rtsee-illustrator-preview-zoom-btn\" title=\"Open full image in new tab\">\n <i class=\"pi pi-external-link\"></i> Full View\n </a>\n </div>\n\n <!-- Iteration Modification Controls -->\n <div class=\"rtsee-illustrator-iteration-box\">\n <div class=\"rtsee-illustrator-iteration-info\">\n <span class=\"rtsee-illustrator-iteration-tag\">\n <i class=\"pi pi-refresh\"></i> Request Modifications & Iterate\n </span>\n <span class=\"rtsee-illustrator-iteration-context-hint\">\n <i class=\"pi pi-info-circle\"></i>\n All active context references ({{ illustrator.activeContextImages.length }}) are sent to NanoBanana alongside this base picture.\n </span>\n </div>\n\n <textarea\n class=\"rtsee-illustrator-prompt-textarea rtsee-illustrator-prompt-textarea--iteration\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.iterationPrompt\"\n placeholder=\"Describe modifications to apply to this picture (e.g. 'Make the wizard's cloak sapphire blue with silver runes, add glowing fireflies, soften the background trees')...\"\n (keydown.meta.enter)=\"submitIteration()\"\n (keydown.control.enter)=\"submitIteration()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to iterate on this picture.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n <p-button\n label=\"Iterate & Regenerate\"\n icon=\"pi pi-refresh\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitIteration()\"\n />\n </div>\n </div>\n </div>\n </div>\n } @else {\n <!-- Prompt Input & Submit Action (Standard Mode) -->\n <div class=\"rtsee-illustrator-prompt-section\">\n <div class=\"rtsee-illustrator-prompt-box\">\n <textarea\n class=\"rtsee-illustrator-prompt-textarea\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.prompt\"\n placeholder=\"Describe the fairy tale illustration to generate (e.g. 'A cozy cottage tucked deep inside the emerald moss woods, magical amber lanterns glowing warmly from the windows, soft fireflies in the air')...\"\n (keydown.meta.enter)=\"submitPrompt()\"\n (keydown.control.enter)=\"submitPrompt()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to submit. Context characters, artifacts, locations & slides are sent to NanoBanana.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Generate Illustration\"\n icon=\"pi pi-sparkles\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitPrompt()\"\n />\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n</div>\n" }]
|
|
8025
|
+
args: [{ selector: 'rtsee-illustrator', standalone: true, imports: [CommonModule, FormsModule, Button], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n #containerEl\n class=\"rtsee-illustrator-container\"\n [ngClass]=\"{\n 'rtsee-illustrator--expanded': illustrator.expanded,\n 'rtsee-illustrator--mobile': isMobile,\n 'rtsee-illustrator--desktop': !isMobile\n }\"\n [style.--rtsee-illustrator-left]=\"layoutLeftPx !== null ? layoutLeftPx + 'px' : null\"\n [style.--rtsee-illustrator-right]=\"layoutRightPx !== null ? layoutRightPx + 'px' : null\"\n [style.--rtsee-illustrator-bottom]=\"layoutBottomPx + 'px'\"\n (mouseleave)=\"onContainerMouseLeave($event)\"\n>\n <!-- Collapsed Bottom Bar -->\n @if (!illustrator.expanded) {\n @if (isMobile) {\n <!-- Mobile Minimalist Collapsed Bar: ImagePreview + Text Input + Paperplane Submit + Expand Button -->\n <div class=\"rtsee-illustrator-collapsed-bar rtsee-illustrator-collapsed-bar--mobile\">\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-collapsed-preview\">\n <img\n [src]=\"illustrator.currentGeneratedImageUrl\"\n alt=\"Image preview\"\n class=\"rtsee-illustrator-collapsed-preview-img\"\n />\n </div>\n }\n\n <input\n type=\"text\"\n class=\"rtsee-illustrator-collapsed-input\"\n [(ngModel)]=\"activePromptText\"\n [placeholder]=\"illustrator.reviewingGeneratedImage ? 'Modify image\u2026' : 'Describe illustration\u2026'\"\n (keydown.enter)=\"onCollapsedEnter($event)\"\n aria-label=\"Illustration prompt\"\n />\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-icon-btn rtsee-illustrator-collapsed-icon-btn--submit\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"onCollapsedSubmit($event)\"\n aria-label=\"Submit\"\n title=\"Submit\"\n >\n <i class=\"pi\" [ngClass]=\"illustrator.submitting ? 'pi-spin pi-spinner' : 'pi-send'\"></i>\n </button>\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-icon-btn rtsee-illustrator-expand-btn\"\n (click)=\"expandIllustrator($event)\"\n aria-label=\"Expand Illustrator\"\n title=\"Expand Illustrator\"\n >\n <i class=\"pi pi-chevron-up\"></i>\n </button>\n </div>\n } @else {\n <!-- Desktop Collapsed Bar: Single Image (if preview) + Context (N) + Small Text Input + Submit Button -->\n <div\n class=\"rtsee-illustrator-collapsed-bar rtsee-illustrator-collapsed-bar--desktop\"\n (mouseenter)=\"onCollapsedMouseEnter()\"\n >\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-collapsed-preview\">\n <img\n [src]=\"illustrator.currentGeneratedImageUrl\"\n alt=\"Preview\"\n class=\"rtsee-illustrator-collapsed-preview-img\"\n />\n </div>\n }\n\n <span class=\"rtsee-illustrator-context-count\">\n Context ({{ illustrator.contextImages.length }})\n </span>\n\n <input\n type=\"text\"\n class=\"rtsee-illustrator-collapsed-input\"\n [(ngModel)]=\"activePromptText\"\n [placeholder]=\"illustrator.reviewingGeneratedImage ? 'Describe modifications to iterate\u2026' : 'Describe illustration to generate\u2026'\"\n (keydown.enter)=\"onCollapsedEnter($event)\"\n aria-label=\"Illustration prompt\"\n />\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-collapsed-submit-btn\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"onCollapsedSubmit($event)\"\n >\n @if (illustrator.submitting) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-send\"></i>\n }\n <span>Submit</span>\n </button>\n </div>\n }\n }\n\n <!-- Expanded Drawer / Fullscreen Mobile Overlay -->\n @if (illustrator.expanded) {\n <div class=\"rtsee-illustrator-expanded-panel\">\n <!-- Header -->\n <header class=\"rtsee-illustrator-header\">\n <div class=\"rtsee-illustrator-title-group\">\n <div class=\"rtsee-illustrator-icon-circle\">\n <i class=\"pi pi-palette\"></i>\n </div>\n <div>\n <h3 class=\"rtsee-illustrator-heading\">NanoBanana Illustrator</h3>\n @if (!isMobile) {\n <p class=\"rtsee-illustrator-subheading\">Generate enchanted fairy tale visuals with rich contextual styling</p>\n }\n </div>\n </div>\n\n <div class=\"rtsee-illustrator-header-controls\">\n <!-- Agent Picker -->\n <div class=\"rtsee-illustrator-agent-select-wrapper\">\n <label class=\"rtsee-illustrator-agent-label\" for=\"rtsee-illustrator-agent-select\">\n <i class=\"pi pi-sparkles\"></i>\n @if (!isMobile) {\n <span>Agent:</span>\n }\n </label>\n @if (illustrator.agents.length > 0) {\n <select\n id=\"rtsee-illustrator-agent-select\"\n class=\"rtsee-illustrator-select\"\n [value]=\"illustrator.activeAgentId || ''\"\n (change)=\"onSelectAgent($event)\"\n >\n @for (agent of illustrator.agents; track trackByAgentId($index, agent)) {\n <option [value]=\"agent.id\">\n {{ agent.name }} {{ agent.model ? '(' + agent.model + ')' : '' }}\n </option>\n }\n </select>\n } @else {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-mini\"\n (click)=\"refreshAgents()\"\n title=\"Query active agents from RTSeeChat\"\n >\n <i class=\"pi pi-refresh\"></i>\n <span>{{ isMobile ? 'Connect' : 'Connect RTSeeChat' }}</span>\n </button>\n }\n </div>\n\n <!-- Config Toggle Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn\"\n [ngClass]=\"{ 'rtsee-illustrator-header-btn--active': illustrator.configExpanded }\"\n (click)=\"toggleConfig()\"\n title=\"Toggle NanoBanana Configuration\"\n >\n <i class=\"pi pi-sliders-h\"></i>\n @if (!isMobile) {\n <span>Config</span>\n }\n <i class=\"pi\" [ngClass]=\"illustrator.configExpanded ? 'pi-chevron-up' : 'pi-chevron-down'\"></i>\n </button>\n\n <!-- Collapse Drawer Button -->\n <button\n type=\"button\"\n class=\"rtsee-illustrator-header-btn rtsee-illustrator-header-btn--collapse\"\n (click)=\"collapseIllustrator($event)\"\n aria-label=\"Collapse Illustrator\"\n title=\"Collapse Illustrator\"\n >\n <i class=\"pi pi-chevron-down\"></i>\n @if (!isMobile) {\n <span>Collapse</span>\n }\n </button>\n </div>\n </header>\n\n <!-- Collapsible Config Section -->\n @if (illustrator.configExpanded) {\n <div class=\"rtsee-illustrator-config-panel\">\n <div class=\"rtsee-illustrator-config-grid\">\n <!-- Aspect Ratio -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-aspect-ratio\">\n <i class=\"pi pi-stop\"></i> Aspect Ratio (Default 1:1)\n </label>\n <select\n id=\"cfg-aspect-ratio\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.aspectRatio\"\n >\n @for (ratio of aspectRatios; track ratio) {\n <option [value]=\"ratio\">{{ ratio }}{{ ratio === '1:1' ? ' (Square - Fairy Tale Default)' : '' }}</option>\n }\n </select>\n </div>\n\n <!-- Style Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-style\">\n <i class=\"pi pi-paint-brush\"></i> Illustration Style\n </label>\n <select\n id=\"cfg-style\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.style\"\n >\n @for (s of styles; track s) {\n <option [value]=\"s\">{{ s }}</option>\n }\n </select>\n </div>\n\n <!-- Mood Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-mood\">\n <i class=\"pi pi-heart\"></i> Mood & Atmosphere\n </label>\n <select\n id=\"cfg-mood\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.mood\"\n >\n @for (m of moods; track m) {\n <option [value]=\"m\">{{ m }}</option>\n }\n </select>\n </div>\n\n <!-- Lighting Preset -->\n <div class=\"rtsee-illustrator-config-item\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-lighting\">\n <i class=\"pi pi-sun\"></i> Lighting\n </label>\n <select\n id=\"cfg-lighting\"\n class=\"rtsee-illustrator-select\"\n [(ngModel)]=\"illustrator.config.lighting\"\n >\n @for (l of lightings; track l) {\n <option [value]=\"l\">{{ l }}</option>\n }\n </select>\n </div>\n </div>\n\n <!-- Negative Prompt -->\n <div class=\"rtsee-illustrator-config-item rtsee-illustrator-config-item--full\">\n <label class=\"rtsee-illustrator-field-label\" for=\"cfg-negative-prompt\">\n <i class=\"pi pi-ban\"></i> Negative Prompt (What to exclude)\n </label>\n <input\n id=\"cfg-negative-prompt\"\n type=\"text\"\n class=\"rtsee-illustrator-input\"\n [(ngModel)]=\"illustrator.config.negativePrompt\"\n placeholder=\"e.g. modern items, cars, text, watermark, blurry...\"\n />\n </div>\n </div>\n }\n\n <!-- Context Images Section -->\n @if (illustrator.contextImages.length > 0) {\n <div class=\"rtsee-illustrator-context-section\"\n [ngClass]=\"{ 'rtsee-illustrator-context-section--carousel': isMobile }\">\n <div class=\"rtsee-illustrator-section-header\">\n <span class=\"rtsee-illustrator-section-title\">\n <i class=\"pi pi-images\"></i>\n Context ({{ illustrator.activeContextImages.length }} / {{ illustrator.contextImages.length }})\n </span>\n\n <div class=\"rtsee-illustrator-context-header-actions\">\n @if (isMobile && illustrator.contextImages.length > 1) {\n <div class=\"rtsee-illustrator-carousel-nav\">\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-nav-btn\"\n [disabled]=\"activeCarouselIndex <= 0\"\n (click)=\"prevContextSlide()\"\n aria-label=\"Previous context item\"\n >\n <i class=\"pi pi-arrow-left\"></i>\n </button>\n <span class=\"rtsee-illustrator-carousel-counter\">\n {{ activeCarouselIndex + 1 }} / {{ illustrator.contextImages.length }}\n </span>\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-nav-btn\"\n [disabled]=\"activeCarouselIndex >= illustrator.contextImages.length - 1\"\n (click)=\"nextContextSlide()\"\n aria-label=\"Next context item\"\n >\n <i class=\"pi pi-arrow-right\"></i>\n </button>\n </div>\n }\n\n <button\n type=\"button\"\n class=\"rtsee-illustrator-btn-text\"\n (click)=\"illustrator.clearContext()\"\n title=\"Clear all context references\"\n >\n <i class=\"pi pi-trash\"></i> Clear All\n </button>\n </div>\n </div>\n\n <div\n #contextCarouselEl\n class=\"rtsee-illustrator-context-cards\"\n (scroll)=\"onContextCarouselScroll()\"\n >\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <div class=\"rtsee-illustrator-context-card\" [ngClass]=\"{ 'rtsee-illustrator-context-card--inactive': !img.active }\">\n <!-- Thumbnail & Active Checkbox -->\n <div class=\"rtsee-illustrator-card-thumb-col\">\n <div class=\"rtsee-illustrator-card-thumb-wrapper\">\n @if (img.imageUrl) {\n <img [src]=\"img.imageUrl\" [alt]=\"img.title\" class=\"rtsee-illustrator-card-img\" />\n } @else {\n <div class=\"rtsee-illustrator-card-no-img\">\n <i class=\"pi pi-image\"></i>\n </div>\n }\n </div>\n <label class=\"rtsee-illustrator-checkbox-label\">\n <input\n type=\"checkbox\"\n [checked]=\"img.active !== false\"\n (change)=\"toggleActive(img)\"\n />\n <span>Active</span>\n </label>\n </div>\n\n <!-- Editable Fields -->\n <div class=\"rtsee-illustrator-card-fields\">\n <div class=\"rtsee-illustrator-card-header\">\n <span class=\"rtsee-illustrator-source-badge\">{{ img.sourceType || 'reference' }}</span>\n <input\n type=\"text\"\n class=\"rtsee-illustrator-card-title-input\"\n [(ngModel)]=\"img.title\"\n placeholder=\"Reference title...\"\n />\n <button\n type=\"button\"\n class=\"rtsee-illustrator-card-remove-btn\"\n (click)=\"removeImage(img.id)\"\n aria-label=\"Remove image from context\"\n title=\"Remove from context\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-illustrator-card-inputs-grid\">\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Visual Description (Style / Appearance):</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.visualDescription\"\n placeholder=\"Key visual features, colors, clothing, texture, lighting...\"\n ></textarea>\n </div>\n <div class=\"rtsee-illustrator-input-group\">\n <label class=\"rtsee-illustrator-input-sublabel\">Context / Role Description:</label>\n <textarea\n class=\"rtsee-illustrator-card-textarea\"\n rows=\"2\"\n [(ngModel)]=\"img.description\"\n placeholder=\"Context or lore in this fairy tale scene...\"\n ></textarea>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n\n @if (isMobile && illustrator.contextImages.length > 1) {\n <div class=\"rtsee-illustrator-carousel-dots\" role=\"tablist\" aria-label=\"Context items\">\n @for (img of illustrator.contextImages; track trackByImageId($index, img)) {\n <button\n type=\"button\"\n class=\"rtsee-illustrator-carousel-dot\"\n [ngClass]=\"{ 'rtsee-illustrator-carousel-dot--active': $index === activeCarouselIndex }\"\n [attr.aria-label]=\"'Context item ' + ($index + 1)\"\n (click)=\"scrollContextCarouselTo($index)\"\n ></button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Generation Error Banner -->\n @if (illustrator.generationError) {\n <div class=\"rtsee-illustrator-error-banner\">\n <i class=\"pi pi-exclamation-triangle\"></i>\n <span class=\"rtsee-illustrator-error-text\">{{ illustrator.generationError }}</span>\n <button type=\"button\" class=\"rtsee-illustrator-error-close\" (click)=\"illustrator.generationError = null\" aria-label=\"Dismiss error\">\n <i class=\"pi pi-times\"></i>\n </button>\n </div>\n }\n\n <!-- Reviewing Generated Image Mode -->\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <div class=\"rtsee-illustrator-review-panel\">\n <div class=\"rtsee-illustrator-review-header\">\n <div class=\"rtsee-illustrator-review-title\">\n <span class=\"rtsee-illustrator-review-badge\">\n <i class=\"pi pi-sparkles\"></i> Reviewing Generated Image\n </span>\n <span class=\"rtsee-illustrator-review-sub\">Review the result, request iterative modifications, or discard.</span>\n </div>\n <div class=\"rtsee-illustrator-review-quick-actions\">\n <p-button\n label=\"Accept & Keep\"\n icon=\"pi pi-check\"\n severity=\"success\"\n (click)=\"acceptGeneratedImage()\"\n />\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n </div>\n </div>\n\n <!-- Image Preview -->\n <div class=\"rtsee-illustrator-preview-box\">\n <img [src]=\"illustrator.currentGeneratedImageUrl\" alt=\"Generated fairy tale illustration\" class=\"rtsee-illustrator-preview-img\" />\n <a [href]=\"illustrator.currentGeneratedImageUrl\" target=\"_blank\" rel=\"noopener\" class=\"rtsee-illustrator-preview-zoom-btn\" title=\"Open full image in new tab\">\n <i class=\"pi pi-external-link\"></i> Full View\n </a>\n </div>\n\n <!-- Iteration Modification Controls -->\n <div class=\"rtsee-illustrator-iteration-box\">\n <div class=\"rtsee-illustrator-iteration-info\">\n <span class=\"rtsee-illustrator-iteration-tag\">\n <i class=\"pi pi-refresh\"></i> Request Modifications & Iterate\n </span>\n <span class=\"rtsee-illustrator-iteration-context-hint\">\n <i class=\"pi pi-info-circle\"></i>\n All active context references ({{ illustrator.activeContextImages.length }}) are sent to NanoBanana alongside this base picture.\n </span>\n </div>\n\n <textarea\n class=\"rtsee-illustrator-prompt-textarea rtsee-illustrator-prompt-textarea--iteration\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.iterationPrompt\"\n placeholder=\"Describe modifications to apply to this picture (e.g. 'Make the wizard's cloak sapphire blue with silver runes, add glowing fireflies, soften the background trees')...\"\n (keydown.meta.enter)=\"submitIteration()\"\n (keydown.control.enter)=\"submitIteration()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to iterate on this picture.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Discard\"\n icon=\"pi pi-trash\"\n severity=\"danger\"\n [text]=\"true\"\n (click)=\"discardGeneratedImage()\"\n />\n <p-button\n label=\"Iterate & Regenerate\"\n icon=\"pi pi-refresh\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitIteration()\"\n />\n </div>\n </div>\n </div>\n </div>\n } @else {\n <!-- Prompt Input & Submit Action (Standard Mode) -->\n <div class=\"rtsee-illustrator-prompt-section\">\n <div class=\"rtsee-illustrator-prompt-box\">\n <textarea\n class=\"rtsee-illustrator-prompt-textarea\"\n rows=\"3\"\n [(ngModel)]=\"illustrator.prompt\"\n placeholder=\"Describe the fairy tale illustration to generate (e.g. 'A cozy cottage tucked deep inside the emerald moss woods, magical amber lanterns glowing warmly from the windows, soft fireflies in the air')...\"\n (keydown.meta.enter)=\"submitPrompt()\"\n (keydown.control.enter)=\"submitPrompt()\"\n ></textarea>\n\n <div class=\"rtsee-illustrator-prompt-footer\">\n <span class=\"rtsee-illustrator-tip\">\n <i class=\"pi pi-info-circle\"></i>\n Press <strong>\u2318+Enter</strong> to submit. Context characters, artifacts, locations & slides are sent to NanoBanana.\n </span>\n\n <div class=\"rtsee-illustrator-actions\">\n <p-button\n label=\"Generate Illustration\"\n icon=\"pi pi-sparkles\"\n [loading]=\"illustrator.submitting\"\n [disabled]=\"!illustrator.canSubmit\"\n (click)=\"submitPrompt()\"\n />\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n</div>\n" }]
|
|
7608
8026
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { illustrator: [{
|
|
7609
8027
|
type: Input
|
|
8028
|
+
}], collapsedHeightChange: [{
|
|
8029
|
+
type: Output
|
|
8030
|
+
}], containerElRef: [{
|
|
8031
|
+
type: ViewChild,
|
|
8032
|
+
args: ['containerEl']
|
|
8033
|
+
}], contextCarouselElRef: [{
|
|
8034
|
+
type: ViewChild,
|
|
8035
|
+
args: ['contextCarouselEl']
|
|
7610
8036
|
}] } });
|
|
7611
8037
|
|
|
7612
8038
|
/**
|
|
@@ -7622,6 +8048,8 @@ class InteractiveStoryEditorComponent {
|
|
|
7622
8048
|
this.sections = RTSeeStoryEditorSection;
|
|
7623
8049
|
this.illustrator = new RTSeeIllustrator();
|
|
7624
8050
|
this.slideUpdatingIds = new Set();
|
|
8051
|
+
this.slidesViewMode = 'carousel';
|
|
8052
|
+
this.illustratorCollapsedHeight = 60;
|
|
7625
8053
|
this.onIllustratorChanged = () => {
|
|
7626
8054
|
this.cdr.markForCheck();
|
|
7627
8055
|
};
|
|
@@ -7640,6 +8068,18 @@ class InteractiveStoryEditorComponent {
|
|
|
7640
8068
|
isSlideUpdating(id) {
|
|
7641
8069
|
return this.slideUpdatingIds.has(id);
|
|
7642
8070
|
}
|
|
8071
|
+
toggleSlidesViewMode(event) {
|
|
8072
|
+
event.stopPropagation();
|
|
8073
|
+
event.preventDefault();
|
|
8074
|
+
this.slidesViewMode = this.slidesViewMode === 'carousel' ? 'inline' : 'carousel';
|
|
8075
|
+
this.cdr.markForCheck();
|
|
8076
|
+
}
|
|
8077
|
+
onIllustratorCollapsedHeightChange(height) {
|
|
8078
|
+
if (height > 0 && Math.abs(this.illustratorCollapsedHeight - height) >= 1) {
|
|
8079
|
+
this.illustratorCollapsedHeight = height;
|
|
8080
|
+
this.cdr.markForCheck();
|
|
8081
|
+
}
|
|
8082
|
+
}
|
|
7643
8083
|
async applyReviewedImageToSlide(event, slide) {
|
|
7644
8084
|
event.stopPropagation();
|
|
7645
8085
|
event.preventDefault();
|
|
@@ -7838,7 +8278,7 @@ class InteractiveStoryEditorComponent {
|
|
|
7838
8278
|
return slide.id || `slide-${index}`;
|
|
7839
8279
|
}
|
|
7840
8280
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: InteractiveStoryEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7841
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: InteractiveStoryEditorComponent, isStandalone: true, selector: "rtsee-interactive-story-editor", inputs: { vm: "vm", autoInit: "autoInit" }, ngImport: i0, template: "<div class=\"rtsee-interactive-story-editor\">\n @if (vm.initInProgress) {\n <div class=\"rtsee-ise-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading story\u2026</span>\n </div>\n } @else if (vm.initError) {\n <div class=\"rtsee-ise-error\">{{ vm.initError }}</div>\n } @else if (vm.story) {\n <header class=\"rtsee-ise-header\">\n <span class=\"rtsee-ise-eyebrow\">{{ vm.isNewStory ? 'New story' : 'Story editor' }}</span>\n <h2 class=\"rtsee-ise-heading\">{{ vm.story.name || 'Untitled story' }}</h2>\n </header>\n\n <!-- 1. Details -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.details) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-details\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.details)\"\n (click)=\"vm.toggleSection(sections.details)\">\n <i class=\"rtsee-ise-section-icon pi pi-book\"></i>\n <h3 class=\"rtsee-ise-section-title\">Story details</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.details)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-details-card\" id=\"rtsee-ise-details-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.detailsExpanded }\"\n (click)=\"vm.toggleDetails()\">\n <div class=\"rtsee-ise-details-image\">\n @if (vm.story.imageUrl) {\n <img [src]=\"vm.story.imageUrl\" [alt]=\"vm.story.name\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n </div>\n <div class=\"rtsee-ise-details-body\">\n <span class=\"rtsee-ise-details-name\">{{ vm.story.name || 'Untitled story' }}</span>\n <p class=\"rtsee-ise-details-description\">{{ vm.story.getTruncatedDescription(220) || 'No description yet' }}</p>\n @if (vm.story.tags.length) {\n <div class=\"rtsee-ise-chips\">\n @for (tag of vm.story.tags; track tag.id) {\n <span class=\"rtsee-ise-chip\">{{ tag.name }}</span>\n }\n </div>\n }\n </div>\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.detailsExpanded && vm.detailsForm) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.detailsError) {\n <div class=\"rtsee-ise-error\">{{ vm.detailsError }}</div>\n }\n <rtsee-form [form]=\"vm.detailsForm\" (formSubmit)=\"submitDetails()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" [label]=\"vm.isNewStory ? 'Create story' : 'Save'\"\n [loading]=\"vm.detailsSaveInProgress\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n <p-button label=\"Cancel\" severity=\"secondary\"\n (click)=\"vm.collapseDetails()\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n </div>\n </rtsee-form>\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 2-4. Characters, artifacts, locations -->\n <rtsee-story-elements-section [editor]=\"vm.charactersEditor\"\n title=\"Characters\"\n icon=\"pi pi-user\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.characters)\"\n (toggled)=\"vm.toggleSection(sections.characters)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.artifactsEditor\"\n title=\"Artifacts\"\n icon=\"pi pi-star\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.artifacts)\"\n (toggled)=\"vm.toggleSection(sections.artifacts)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.locationsEditor\"\n title=\"Locations\"\n icon=\"pi pi-map-marker\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.locations)\"\n (toggled)=\"vm.toggleSection(sections.locations)\" />\n\n <!-- 5. Slides -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.slides) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-slides\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.slides)\"\n (click)=\"vm.toggleSection(sections.slides)\">\n <i class=\"rtsee-ise-section-icon pi pi-images\"></i>\n <h3 class=\"rtsee-ise-section-title\">Slides</h3>\n <span class=\"rtsee-ise-section-count\">{{ vm.slides.length }}</span>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.slides)) {\n <div class=\"rtsee-ise-section-body\">\n @if (vm.isNewStory) {\n <p class=\"rtsee-ise-hint\">Save the story details first to add slides.</p>\n } @else {\n <div class=\"rtsee-ise-slides-strip\">\n @for (slide of vm.slides; track trackSlide($index, slide)) {\n <div class=\"rtsee-ise-slide-thumb-wrapper\" style=\"position: relative; display: inline-flex;\">\n <button type=\"button\" class=\"rtsee-ise-slide-thumb\"\n [id]=\"'rtsee-ise-slide-' + slide.id\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.isSlideExpanded(slide) }\"\n [attr.aria-label]=\"'Slide ' + slide.slideNumber\"\n (click)=\"vm.expandSlide(slide)\">\n @if (slide.imageUrl) {\n <img [src]=\"slide.imageUrl\" [alt]=\"slide.name\" loading=\"lazy\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n <span class=\"rtsee-ise-slide-number\">{{ slide.slideNumber }}</span>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-context\"\n style=\"position: absolute; top: 4px; left: 4px;\"\n title=\"Add Slide {{ slide.slideNumber }} context (characters, locations, artifacts) to Illustrator\"\n (click)=\"addSlideEntitiesToContext($event, slide)\">\n <i class=\"pi pi-plus\"></i>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n style=\"position: absolute; top: 4px; right: 4px;\"\n title=\"Add Slide {{ slide.slideNumber }} to Illustrator context\"\n (click)=\"addSlideToContext($event, slide)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-quick-apply\"\n style=\"position: absolute; bottom: 4px; right: 4px;\"\n [disabled]=\"isSlideUpdating(slide.id)\"\n [title]=\"'Apply reviewed image to Slide ' + slide.slideNumber\"\n (click)=\"applyReviewedImageToSlide($event, slide)\">\n @if (isSlideUpdating(slide.id)) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </button>\n }\n </div>\n }\n <button type=\"button\" class=\"rtsee-ise-slide-thumb rtsee-ise-slide-thumb--add\"\n id=\"rtsee-ise-add-slide\"\n [disabled]=\"vm.slidesLoadInProgress\"\n (click)=\"vm.expandNewSlide()\">\n <i class=\"pi pi-plus\"></i>\n </button>\n </div>\n\n @if (vm.activeSlide) {\n <div class=\"rtsee-ise-expanded\">\n <rtsee-manage-slide [manageSlide]=\"vm.activeSlide\" />\n </div>\n }\n }\n </div>\n }\n </section>\n\n <!-- 6. Author -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.author) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-author\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.author)\"\n (click)=\"vm.toggleSection(sections.author)\">\n <i class=\"rtsee-ise-section-icon pi pi-pen-to-square\"></i>\n <h3 class=\"rtsee-ise-section-title\">Author</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.author)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-author-card\" id=\"rtsee-ise-author-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.authorExpanded }\"\n (click)=\"vm.toggleAuthor()\">\n <div class=\"rtsee-ise-avatar\">\n @if (vm.author?.imageUrl) {\n <img [src]=\"vm.author?.imageUrl\" [alt]=\"vm.author?.name\" />\n } @else {\n <i class=\"pi pi-user\"></i>\n }\n </div>\n <div class=\"rtsee-ise-author-body\">\n <span class=\"rtsee-ise-thumb-name\">{{ vm.author?.name || 'No author assigned' }}</span>\n <span class=\"rtsee-ise-thumb-description\">{{ vm.author?.description || 'Click to pick or create an author' }}</span>\n </div>\n @if (vm.author) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n title=\"Add Author to Illustrator context\"\n (click)=\"addAuthorToContext($event)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n }\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.authorExpanded) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.authorError) {\n <div class=\"rtsee-ise-error\">{{ vm.authorError }}</div>\n }\n\n @if (vm.newAuthor && vm.newAuthorForm) {\n <h4 class=\"rtsee-ise-subheading\">New author</h4>\n <rtsee-form [form]=\"vm.newAuthorForm\" (formSubmit)=\"submitNewAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Create & assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"Back\" severity=\"secondary\"\n (click)=\"vm.cancelNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n </div>\n </rtsee-form>\n } @else if (vm.authorForm) {\n <rtsee-form [form]=\"vm.authorForm\" (formSubmit)=\"submitAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"New author\" icon=\"pi pi-plus\" severity=\"secondary\"\n (click)=\"vm.startNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n @if (vm.author) {\n <span class=\"rtsee-ise-actions-spacer\"></span>\n <p-button label=\"Clear\" icon=\"pi pi-times\" severity=\"danger\" [text]=\"true\"\n (click)=\"vm.assignAuthor(null)\"\n [disabled]=\"vm.authorSaveInProgress\" />\n }\n </div>\n </rtsee-form>\n }\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 7. NanoBanana Illustrator Overlay -->\n <rtsee-illustrator [illustrator]=\"illustrator\" />\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }, { kind: "component", type: ManageSlideComponent, selector: "rtsee-manage-slide", inputs: ["manageSlide"] }, { kind: "component", type: StoryElementsSectionComponent, selector: "rtsee-story-elements-section", inputs: ["editor", "title", "icon", "collapsed", "canDetach", "illustrator"], outputs: ["toggled"] }, { kind: "component", type: IllustratorComponent, selector: "rtsee-illustrator", inputs: ["illustrator"] }] }); }
|
|
8281
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: InteractiveStoryEditorComponent, isStandalone: true, selector: "rtsee-interactive-story-editor", inputs: { vm: "vm", autoInit: "autoInit" }, ngImport: i0, template: "<div class=\"rtsee-interactive-story-editor\"\n [style.--rtsee-illustrator-collapsed-height.px]=\"illustratorCollapsedHeight\">\n @if (vm.initInProgress) {\n <div class=\"rtsee-ise-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading story\u2026</span>\n </div>\n } @else if (vm.initError) {\n <div class=\"rtsee-ise-error\">{{ vm.initError }}</div>\n } @else if (vm.story) {\n <header class=\"rtsee-ise-header\">\n <span class=\"rtsee-ise-eyebrow\">{{ vm.isNewStory ? 'New story' : 'Story editor' }}</span>\n <h2 class=\"rtsee-ise-heading\">{{ vm.story.name || 'Untitled story' }}</h2>\n </header>\n\n <!-- 1. Details -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.details) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-details\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.details)\"\n (click)=\"vm.toggleSection(sections.details)\">\n <i class=\"rtsee-ise-section-icon pi pi-book\"></i>\n <h3 class=\"rtsee-ise-section-title\">Story details</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.details)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-details-card\" id=\"rtsee-ise-details-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.detailsExpanded }\"\n (click)=\"vm.toggleDetails()\">\n <div class=\"rtsee-ise-details-image\">\n @if (vm.story.imageUrl) {\n <img [src]=\"vm.story.imageUrl\" [alt]=\"vm.story.name\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n </div>\n <div class=\"rtsee-ise-details-body\">\n <span class=\"rtsee-ise-details-name\">{{ vm.story.name || 'Untitled story' }}</span>\n <p class=\"rtsee-ise-details-description\">{{ vm.story.getTruncatedDescription(220) || 'No description yet' }}</p>\n @if (vm.story.tags.length) {\n <div class=\"rtsee-ise-chips\">\n @for (tag of vm.story.tags; track tag.id) {\n <span class=\"rtsee-ise-chip\">{{ tag.name }}</span>\n }\n </div>\n }\n </div>\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.detailsExpanded && vm.detailsForm) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.detailsError) {\n <div class=\"rtsee-ise-error\">{{ vm.detailsError }}</div>\n }\n <rtsee-form [form]=\"vm.detailsForm\" (formSubmit)=\"submitDetails()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" [label]=\"vm.isNewStory ? 'Create story' : 'Save'\"\n [loading]=\"vm.detailsSaveInProgress\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n <p-button label=\"Cancel\" severity=\"secondary\"\n (click)=\"vm.collapseDetails()\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n </div>\n </rtsee-form>\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 2-4. Characters, artifacts, locations -->\n <rtsee-story-elements-section [editor]=\"vm.charactersEditor\"\n title=\"Characters\"\n icon=\"pi pi-user\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.characters)\"\n (toggled)=\"vm.toggleSection(sections.characters)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.artifactsEditor\"\n title=\"Artifacts\"\n icon=\"pi pi-star\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.artifacts)\"\n (toggled)=\"vm.toggleSection(sections.artifacts)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.locationsEditor\"\n title=\"Locations\"\n icon=\"pi pi-map-marker\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.locations)\"\n (toggled)=\"vm.toggleSection(sections.locations)\" />\n\n <!-- 5. Slides -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.slides) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-slides\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.slides)\"\n (click)=\"vm.toggleSection(sections.slides)\">\n <i class=\"rtsee-ise-section-icon pi pi-images\"></i>\n <h3 class=\"rtsee-ise-section-title\">Slides</h3>\n <span class=\"rtsee-ise-section-count\">{{ vm.slides.length }}</span>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n\n @if (!vm.isNewStory && !vm.isCollapsed(sections.slides)) {\n <button\n type=\"button\"\n class=\"rtsee-ise-btn-slides-view-toggle\"\n [ngClass]=\"{ 'rtsee-ise-btn-slides-view-toggle--active': slidesViewMode === 'inline' }\"\n [attr.aria-pressed]=\"slidesViewMode === 'inline'\"\n [title]=\"slidesViewMode === 'carousel' ? 'Switch to inline multi-line view' : 'Switch to horizontal carousel view'\"\n (click)=\"toggleSlidesViewMode($event)\"\n >\n @if (slidesViewMode === 'carousel') {\n <svg class=\"rtsee-ise-view-icon\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"1.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"9\" y=\"1.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"1.5\" y=\"9\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"9\" y=\"9\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n </svg>\n <span>Inline</span>\n } @else {\n <svg class=\"rtsee-ise-view-icon\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1\" y=\"3\" width=\"4.5\" height=\"10\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"6.75\" y=\"3\" width=\"4.5\" height=\"10\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <path d=\"M13.25 4.5V11.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n </svg>\n <span>Carousel</span>\n }\n </button>\n }\n </header>\n\n @if (!vm.isCollapsed(sections.slides)) {\n <div class=\"rtsee-ise-section-body\">\n @if (vm.isNewStory) {\n <p class=\"rtsee-ise-hint\">Save the story details first to add slides.</p>\n } @else {\n <div class=\"rtsee-ise-slides-strip\"\n [ngClass]=\"{\n 'rtsee-ise-slides-strip--inline': slidesViewMode === 'inline',\n 'rtsee-ise-slides-strip--carousel': slidesViewMode === 'carousel'\n }\">\n @for (slide of vm.slides; track trackSlide($index, slide)) {\n <div class=\"rtsee-ise-slide-thumb-wrapper\">\n <button type=\"button\" class=\"rtsee-ise-slide-thumb\"\n [id]=\"'rtsee-ise-slide-' + slide.id\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.isSlideExpanded(slide) }\"\n [attr.aria-label]=\"'Slide ' + slide.slideNumber\"\n (click)=\"vm.expandSlide(slide)\">\n @if (slide.imageUrl) {\n <img [src]=\"slide.imageUrl\" [alt]=\"slide.name\" loading=\"lazy\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n <span class=\"rtsee-ise-slide-number\">{{ slide.slideNumber }}</span>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-context\"\n title=\"Add Slide {{ slide.slideNumber }} context (characters, locations, artifacts) to Illustrator\"\n (click)=\"addSlideEntitiesToContext($event, slide)\">\n <i class=\"pi pi-plus\"></i>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-slide-ref\"\n title=\"Add Slide {{ slide.slideNumber }} to Illustrator context\"\n (click)=\"addSlideToContext($event, slide)\">\n <i class=\"pi pi-palette\"></i>\n <span class=\"rtsee-ise-btn-add-slide-ref-label\">+\uD83C\uDFA8</span>\n </button>\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-quick-apply rtsee-ise-btn-slide-quick-apply\"\n [disabled]=\"isSlideUpdating(slide.id)\"\n [title]=\"'Apply reviewed image to Slide ' + slide.slideNumber\"\n (click)=\"applyReviewedImageToSlide($event, slide)\">\n @if (isSlideUpdating(slide.id)) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </button>\n }\n </div>\n }\n <button type=\"button\" class=\"rtsee-ise-slide-thumb rtsee-ise-slide-thumb--add\"\n id=\"rtsee-ise-add-slide\"\n [disabled]=\"vm.slidesLoadInProgress\"\n (click)=\"vm.expandNewSlide()\">\n <i class=\"pi pi-plus\"></i>\n </button>\n </div>\n\n @if (vm.activeSlide) {\n <div class=\"rtsee-ise-expanded\">\n <rtsee-manage-slide [manageSlide]=\"vm.activeSlide\" />\n </div>\n }\n }\n </div>\n }\n </section>\n\n <!-- 6. Author -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.author) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-author\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.author)\"\n (click)=\"vm.toggleSection(sections.author)\">\n <i class=\"rtsee-ise-section-icon pi pi-pen-to-square\"></i>\n <h3 class=\"rtsee-ise-section-title\">Author</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.author)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-author-card\" id=\"rtsee-ise-author-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.authorExpanded }\"\n (click)=\"vm.toggleAuthor()\">\n <div class=\"rtsee-ise-avatar\">\n @if (vm.author?.imageUrl) {\n <img [src]=\"vm.author?.imageUrl\" [alt]=\"vm.author?.name\" />\n } @else {\n <i class=\"pi pi-user\"></i>\n }\n </div>\n <div class=\"rtsee-ise-author-body\">\n <span class=\"rtsee-ise-thumb-name\">{{ vm.author?.name || 'No author assigned' }}</span>\n <span class=\"rtsee-ise-thumb-description\">{{ vm.author?.description || 'Click to pick or create an author' }}</span>\n </div>\n @if (vm.author) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n title=\"Add Author to Illustrator context\"\n (click)=\"addAuthorToContext($event)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n }\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.authorExpanded) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.authorError) {\n <div class=\"rtsee-ise-error\">{{ vm.authorError }}</div>\n }\n\n @if (vm.newAuthor && vm.newAuthorForm) {\n <h4 class=\"rtsee-ise-subheading\">New author</h4>\n <rtsee-form [form]=\"vm.newAuthorForm\" (formSubmit)=\"submitNewAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Create & assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"Back\" severity=\"secondary\"\n (click)=\"vm.cancelNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n </div>\n </rtsee-form>\n } @else if (vm.authorForm) {\n <rtsee-form [form]=\"vm.authorForm\" (formSubmit)=\"submitAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"New author\" icon=\"pi pi-plus\" severity=\"secondary\"\n (click)=\"vm.startNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n @if (vm.author) {\n <span class=\"rtsee-ise-actions-spacer\"></span>\n <p-button label=\"Clear\" icon=\"pi pi-times\" severity=\"danger\" [text]=\"true\"\n (click)=\"vm.assignAuthor(null)\"\n [disabled]=\"vm.authorSaveInProgress\" />\n }\n </div>\n </rtsee-form>\n }\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 7. NanoBanana Illustrator Overlay -->\n <rtsee-illustrator\n [illustrator]=\"illustrator\"\n (collapsedHeightChange)=\"onIllustratorCollapsedHeightChange($event)\"\n />\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }, { kind: "component", type: ManageSlideComponent, selector: "rtsee-manage-slide", inputs: ["manageSlide"] }, { kind: "component", type: StoryElementsSectionComponent, selector: "rtsee-story-elements-section", inputs: ["editor", "title", "icon", "collapsed", "canDetach", "illustrator"], outputs: ["toggled"] }, { kind: "component", type: IllustratorComponent, selector: "rtsee-illustrator", inputs: ["illustrator"], outputs: ["collapsedHeightChange"] }] }); }
|
|
7842
8282
|
}
|
|
7843
8283
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: InteractiveStoryEditorComponent, decorators: [{
|
|
7844
8284
|
type: Component,
|
|
@@ -7849,7 +8289,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
7849
8289
|
ManageSlideComponent,
|
|
7850
8290
|
StoryElementsSectionComponent,
|
|
7851
8291
|
IllustratorComponent,
|
|
7852
|
-
], template: "<div class=\"rtsee-interactive-story-editor\">\n @if (vm.initInProgress) {\n <div class=\"rtsee-ise-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading story\u2026</span>\n </div>\n } @else if (vm.initError) {\n <div class=\"rtsee-ise-error\">{{ vm.initError }}</div>\n } @else if (vm.story) {\n <header class=\"rtsee-ise-header\">\n <span class=\"rtsee-ise-eyebrow\">{{ vm.isNewStory ? 'New story' : 'Story editor' }}</span>\n <h2 class=\"rtsee-ise-heading\">{{ vm.story.name || 'Untitled story' }}</h2>\n </header>\n\n <!-- 1. Details -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.details) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-details\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.details)\"\n (click)=\"vm.toggleSection(sections.details)\">\n <i class=\"rtsee-ise-section-icon pi pi-book\"></i>\n <h3 class=\"rtsee-ise-section-title\">Story details</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.details)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-details-card\" id=\"rtsee-ise-details-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.detailsExpanded }\"\n (click)=\"vm.toggleDetails()\">\n <div class=\"rtsee-ise-details-image\">\n @if (vm.story.imageUrl) {\n <img [src]=\"vm.story.imageUrl\" [alt]=\"vm.story.name\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n </div>\n <div class=\"rtsee-ise-details-body\">\n <span class=\"rtsee-ise-details-name\">{{ vm.story.name || 'Untitled story' }}</span>\n <p class=\"rtsee-ise-details-description\">{{ vm.story.getTruncatedDescription(220) || 'No description yet' }}</p>\n @if (vm.story.tags.length) {\n <div class=\"rtsee-ise-chips\">\n @for (tag of vm.story.tags; track tag.id) {\n <span class=\"rtsee-ise-chip\">{{ tag.name }}</span>\n }\n </div>\n }\n </div>\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.detailsExpanded && vm.detailsForm) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.detailsError) {\n <div class=\"rtsee-ise-error\">{{ vm.detailsError }}</div>\n }\n <rtsee-form [form]=\"vm.detailsForm\" (formSubmit)=\"submitDetails()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" [label]=\"vm.isNewStory ? 'Create story' : 'Save'\"\n [loading]=\"vm.detailsSaveInProgress\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n <p-button label=\"Cancel\" severity=\"secondary\"\n (click)=\"vm.collapseDetails()\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n </div>\n </rtsee-form>\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 2-4. Characters, artifacts, locations -->\n <rtsee-story-elements-section [editor]=\"vm.charactersEditor\"\n title=\"Characters\"\n icon=\"pi pi-user\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.characters)\"\n (toggled)=\"vm.toggleSection(sections.characters)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.artifactsEditor\"\n title=\"Artifacts\"\n icon=\"pi pi-star\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.artifacts)\"\n (toggled)=\"vm.toggleSection(sections.artifacts)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.locationsEditor\"\n title=\"Locations\"\n icon=\"pi pi-map-marker\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.locations)\"\n (toggled)=\"vm.toggleSection(sections.locations)\" />\n\n <!-- 5. Slides -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.slides) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-slides\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.slides)\"\n (click)=\"vm.toggleSection(sections.slides)\">\n <i class=\"rtsee-ise-section-icon pi pi-images\"></i>\n <h3 class=\"rtsee-ise-section-title\">Slides</h3>\n <span class=\"rtsee-ise-section-count\">{{ vm.slides.length }}</span>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.slides)) {\n <div class=\"rtsee-ise-section-body\">\n @if (vm.isNewStory) {\n <p class=\"rtsee-ise-hint\">Save the story details first to add slides.</p>\n } @else {\n <div class=\"rtsee-ise-slides-strip\">\n @for (slide of vm.slides; track trackSlide($index, slide)) {\n <div class=\"rtsee-ise-slide-thumb-wrapper\" style=\"position: relative; display: inline-flex;\">\n <button type=\"button\" class=\"rtsee-ise-slide-thumb\"\n [id]=\"'rtsee-ise-slide-' + slide.id\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.isSlideExpanded(slide) }\"\n [attr.aria-label]=\"'Slide ' + slide.slideNumber\"\n (click)=\"vm.expandSlide(slide)\">\n @if (slide.imageUrl) {\n <img [src]=\"slide.imageUrl\" [alt]=\"slide.name\" loading=\"lazy\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n <span class=\"rtsee-ise-slide-number\">{{ slide.slideNumber }}</span>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-context\"\n style=\"position: absolute; top: 4px; left: 4px;\"\n title=\"Add Slide {{ slide.slideNumber }} context (characters, locations, artifacts) to Illustrator\"\n (click)=\"addSlideEntitiesToContext($event, slide)\">\n <i class=\"pi pi-plus\"></i>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n style=\"position: absolute; top: 4px; right: 4px;\"\n title=\"Add Slide {{ slide.slideNumber }} to Illustrator context\"\n (click)=\"addSlideToContext($event, slide)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-quick-apply\"\n style=\"position: absolute; bottom: 4px; right: 4px;\"\n [disabled]=\"isSlideUpdating(slide.id)\"\n [title]=\"'Apply reviewed image to Slide ' + slide.slideNumber\"\n (click)=\"applyReviewedImageToSlide($event, slide)\">\n @if (isSlideUpdating(slide.id)) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </button>\n }\n </div>\n }\n <button type=\"button\" class=\"rtsee-ise-slide-thumb rtsee-ise-slide-thumb--add\"\n id=\"rtsee-ise-add-slide\"\n [disabled]=\"vm.slidesLoadInProgress\"\n (click)=\"vm.expandNewSlide()\">\n <i class=\"pi pi-plus\"></i>\n </button>\n </div>\n\n @if (vm.activeSlide) {\n <div class=\"rtsee-ise-expanded\">\n <rtsee-manage-slide [manageSlide]=\"vm.activeSlide\" />\n </div>\n }\n }\n </div>\n }\n </section>\n\n <!-- 6. Author -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.author) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-author\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.author)\"\n (click)=\"vm.toggleSection(sections.author)\">\n <i class=\"rtsee-ise-section-icon pi pi-pen-to-square\"></i>\n <h3 class=\"rtsee-ise-section-title\">Author</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.author)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-author-card\" id=\"rtsee-ise-author-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.authorExpanded }\"\n (click)=\"vm.toggleAuthor()\">\n <div class=\"rtsee-ise-avatar\">\n @if (vm.author?.imageUrl) {\n <img [src]=\"vm.author?.imageUrl\" [alt]=\"vm.author?.name\" />\n } @else {\n <i class=\"pi pi-user\"></i>\n }\n </div>\n <div class=\"rtsee-ise-author-body\">\n <span class=\"rtsee-ise-thumb-name\">{{ vm.author?.name || 'No author assigned' }}</span>\n <span class=\"rtsee-ise-thumb-description\">{{ vm.author?.description || 'Click to pick or create an author' }}</span>\n </div>\n @if (vm.author) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n title=\"Add Author to Illustrator context\"\n (click)=\"addAuthorToContext($event)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n }\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.authorExpanded) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.authorError) {\n <div class=\"rtsee-ise-error\">{{ vm.authorError }}</div>\n }\n\n @if (vm.newAuthor && vm.newAuthorForm) {\n <h4 class=\"rtsee-ise-subheading\">New author</h4>\n <rtsee-form [form]=\"vm.newAuthorForm\" (formSubmit)=\"submitNewAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Create & assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"Back\" severity=\"secondary\"\n (click)=\"vm.cancelNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n </div>\n </rtsee-form>\n } @else if (vm.authorForm) {\n <rtsee-form [form]=\"vm.authorForm\" (formSubmit)=\"submitAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"New author\" icon=\"pi pi-plus\" severity=\"secondary\"\n (click)=\"vm.startNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n @if (vm.author) {\n <span class=\"rtsee-ise-actions-spacer\"></span>\n <p-button label=\"Clear\" icon=\"pi pi-times\" severity=\"danger\" [text]=\"true\"\n (click)=\"vm.assignAuthor(null)\"\n [disabled]=\"vm.authorSaveInProgress\" />\n }\n </div>\n </rtsee-form>\n }\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 7. NanoBanana Illustrator Overlay -->\n <rtsee-illustrator [illustrator]=\"illustrator\" />\n }\n</div>\n" }]
|
|
8292
|
+
], template: "<div class=\"rtsee-interactive-story-editor\"\n [style.--rtsee-illustrator-collapsed-height.px]=\"illustratorCollapsedHeight\">\n @if (vm.initInProgress) {\n <div class=\"rtsee-ise-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading story\u2026</span>\n </div>\n } @else if (vm.initError) {\n <div class=\"rtsee-ise-error\">{{ vm.initError }}</div>\n } @else if (vm.story) {\n <header class=\"rtsee-ise-header\">\n <span class=\"rtsee-ise-eyebrow\">{{ vm.isNewStory ? 'New story' : 'Story editor' }}</span>\n <h2 class=\"rtsee-ise-heading\">{{ vm.story.name || 'Untitled story' }}</h2>\n </header>\n\n <!-- 1. Details -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.details) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-details\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.details)\"\n (click)=\"vm.toggleSection(sections.details)\">\n <i class=\"rtsee-ise-section-icon pi pi-book\"></i>\n <h3 class=\"rtsee-ise-section-title\">Story details</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.details)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-details-card\" id=\"rtsee-ise-details-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.detailsExpanded }\"\n (click)=\"vm.toggleDetails()\">\n <div class=\"rtsee-ise-details-image\">\n @if (vm.story.imageUrl) {\n <img [src]=\"vm.story.imageUrl\" [alt]=\"vm.story.name\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n </div>\n <div class=\"rtsee-ise-details-body\">\n <span class=\"rtsee-ise-details-name\">{{ vm.story.name || 'Untitled story' }}</span>\n <p class=\"rtsee-ise-details-description\">{{ vm.story.getTruncatedDescription(220) || 'No description yet' }}</p>\n @if (vm.story.tags.length) {\n <div class=\"rtsee-ise-chips\">\n @for (tag of vm.story.tags; track tag.id) {\n <span class=\"rtsee-ise-chip\">{{ tag.name }}</span>\n }\n </div>\n }\n </div>\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.detailsExpanded && vm.detailsForm) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.detailsError) {\n <div class=\"rtsee-ise-error\">{{ vm.detailsError }}</div>\n }\n <rtsee-form [form]=\"vm.detailsForm\" (formSubmit)=\"submitDetails()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" [label]=\"vm.isNewStory ? 'Create story' : 'Save'\"\n [loading]=\"vm.detailsSaveInProgress\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n <p-button label=\"Cancel\" severity=\"secondary\"\n (click)=\"vm.collapseDetails()\"\n [disabled]=\"vm.detailsSaveInProgress\" />\n </div>\n </rtsee-form>\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 2-4. Characters, artifacts, locations -->\n <rtsee-story-elements-section [editor]=\"vm.charactersEditor\"\n title=\"Characters\"\n icon=\"pi pi-user\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.characters)\"\n (toggled)=\"vm.toggleSection(sections.characters)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.artifactsEditor\"\n title=\"Artifacts\"\n icon=\"pi pi-star\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.artifacts)\"\n (toggled)=\"vm.toggleSection(sections.artifacts)\" />\n\n <rtsee-story-elements-section [editor]=\"vm.locationsEditor\"\n title=\"Locations\"\n icon=\"pi pi-map-marker\"\n [illustrator]=\"illustrator\"\n [collapsed]=\"vm.isCollapsed(sections.locations)\"\n (toggled)=\"vm.toggleSection(sections.locations)\" />\n\n <!-- 5. Slides -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.slides) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-slides\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.slides)\"\n (click)=\"vm.toggleSection(sections.slides)\">\n <i class=\"rtsee-ise-section-icon pi pi-images\"></i>\n <h3 class=\"rtsee-ise-section-title\">Slides</h3>\n <span class=\"rtsee-ise-section-count\">{{ vm.slides.length }}</span>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n\n @if (!vm.isNewStory && !vm.isCollapsed(sections.slides)) {\n <button\n type=\"button\"\n class=\"rtsee-ise-btn-slides-view-toggle\"\n [ngClass]=\"{ 'rtsee-ise-btn-slides-view-toggle--active': slidesViewMode === 'inline' }\"\n [attr.aria-pressed]=\"slidesViewMode === 'inline'\"\n [title]=\"slidesViewMode === 'carousel' ? 'Switch to inline multi-line view' : 'Switch to horizontal carousel view'\"\n (click)=\"toggleSlidesViewMode($event)\"\n >\n @if (slidesViewMode === 'carousel') {\n <svg class=\"rtsee-ise-view-icon\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"1.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"9\" y=\"1.5\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"1.5\" y=\"9\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"9\" y=\"9\" width=\"5.5\" height=\"5.5\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n </svg>\n <span>Inline</span>\n } @else {\n <svg class=\"rtsee-ise-view-icon\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"1\" y=\"3\" width=\"4.5\" height=\"10\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <rect x=\"6.75\" y=\"3\" width=\"4.5\" height=\"10\" rx=\"1.2\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n <path d=\"M13.25 4.5V11.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n </svg>\n <span>Carousel</span>\n }\n </button>\n }\n </header>\n\n @if (!vm.isCollapsed(sections.slides)) {\n <div class=\"rtsee-ise-section-body\">\n @if (vm.isNewStory) {\n <p class=\"rtsee-ise-hint\">Save the story details first to add slides.</p>\n } @else {\n <div class=\"rtsee-ise-slides-strip\"\n [ngClass]=\"{\n 'rtsee-ise-slides-strip--inline': slidesViewMode === 'inline',\n 'rtsee-ise-slides-strip--carousel': slidesViewMode === 'carousel'\n }\">\n @for (slide of vm.slides; track trackSlide($index, slide)) {\n <div class=\"rtsee-ise-slide-thumb-wrapper\">\n <button type=\"button\" class=\"rtsee-ise-slide-thumb\"\n [id]=\"'rtsee-ise-slide-' + slide.id\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.isSlideExpanded(slide) }\"\n [attr.aria-label]=\"'Slide ' + slide.slideNumber\"\n (click)=\"vm.expandSlide(slide)\">\n @if (slide.imageUrl) {\n <img [src]=\"slide.imageUrl\" [alt]=\"slide.name\" loading=\"lazy\" />\n } @else {\n <i class=\"pi pi-image\"></i>\n }\n <span class=\"rtsee-ise-slide-number\">{{ slide.slideNumber }}</span>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-context\"\n title=\"Add Slide {{ slide.slideNumber }} context (characters, locations, artifacts) to Illustrator\"\n (click)=\"addSlideEntitiesToContext($event, slide)\">\n <i class=\"pi pi-plus\"></i>\n </button>\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator rtsee-ise-btn-add-slide-ref\"\n title=\"Add Slide {{ slide.slideNumber }} to Illustrator context\"\n (click)=\"addSlideToContext($event, slide)\">\n <i class=\"pi pi-palette\"></i>\n <span class=\"rtsee-ise-btn-add-slide-ref-label\">+\uD83C\uDFA8</span>\n </button>\n @if (illustrator.reviewingGeneratedImage && illustrator.currentGeneratedImageUrl) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-quick-apply rtsee-ise-btn-slide-quick-apply\"\n [disabled]=\"isSlideUpdating(slide.id)\"\n [title]=\"'Apply reviewed image to Slide ' + slide.slideNumber\"\n (click)=\"applyReviewedImageToSlide($event, slide)\">\n @if (isSlideUpdating(slide.id)) {\n <i class=\"pi pi-spin pi-spinner\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </button>\n }\n </div>\n }\n <button type=\"button\" class=\"rtsee-ise-slide-thumb rtsee-ise-slide-thumb--add\"\n id=\"rtsee-ise-add-slide\"\n [disabled]=\"vm.slidesLoadInProgress\"\n (click)=\"vm.expandNewSlide()\">\n <i class=\"pi pi-plus\"></i>\n </button>\n </div>\n\n @if (vm.activeSlide) {\n <div class=\"rtsee-ise-expanded\">\n <rtsee-manage-slide [manageSlide]=\"vm.activeSlide\" />\n </div>\n }\n }\n </div>\n }\n </section>\n\n <!-- 6. Author -->\n <section class=\"rtsee-ise-section\" [ngClass]=\"{ 'rtsee-ise-section--collapsed': vm.isCollapsed(sections.author) }\">\n <header class=\"rtsee-ise-section-header\">\n <button type=\"button\" class=\"rtsee-ise-section-toggle\" id=\"rtsee-ise-toggle-author\"\n [attr.aria-expanded]=\"!vm.isCollapsed(sections.author)\"\n (click)=\"vm.toggleSection(sections.author)\">\n <i class=\"rtsee-ise-section-icon pi pi-pen-to-square\"></i>\n <h3 class=\"rtsee-ise-section-title\">Author</h3>\n <i class=\"pi pi-chevron-down rtsee-ise-chevron\"></i>\n </button>\n </header>\n\n @if (!vm.isCollapsed(sections.author)) {\n <div class=\"rtsee-ise-section-body\">\n <button type=\"button\" class=\"rtsee-ise-author-card\" id=\"rtsee-ise-author-card\"\n [ngClass]=\"{ 'rtsee-ise-thumb--active': vm.authorExpanded }\"\n (click)=\"vm.toggleAuthor()\">\n <div class=\"rtsee-ise-avatar\">\n @if (vm.author?.imageUrl) {\n <img [src]=\"vm.author?.imageUrl\" [alt]=\"vm.author?.name\" />\n } @else {\n <i class=\"pi pi-user\"></i>\n }\n </div>\n <div class=\"rtsee-ise-author-body\">\n <span class=\"rtsee-ise-thumb-name\">{{ vm.author?.name || 'No author assigned' }}</span>\n <span class=\"rtsee-ise-thumb-description\">{{ vm.author?.description || 'Click to pick or create an author' }}</span>\n </div>\n @if (vm.author) {\n <button type=\"button\"\n class=\"rtsee-ise-btn-add-illustrator\"\n title=\"Add Author to Illustrator context\"\n (click)=\"addAuthorToContext($event)\">\n <i class=\"pi pi-palette\"></i>\n <span>+\uD83C\uDFA8</span>\n </button>\n }\n <i class=\"pi pi-pencil rtsee-ise-details-edit\"></i>\n </button>\n\n @if (vm.authorExpanded) {\n <div class=\"rtsee-ise-expanded rtsee-form-container\">\n @if (vm.authorError) {\n <div class=\"rtsee-ise-error\">{{ vm.authorError }}</div>\n }\n\n @if (vm.newAuthor && vm.newAuthorForm) {\n <h4 class=\"rtsee-ise-subheading\">New author</h4>\n <rtsee-form [form]=\"vm.newAuthorForm\" (formSubmit)=\"submitNewAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Create & assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"Back\" severity=\"secondary\"\n (click)=\"vm.cancelNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n </div>\n </rtsee-form>\n } @else if (vm.authorForm) {\n <rtsee-form [form]=\"vm.authorForm\" (formSubmit)=\"submitAuthor()\">\n <div class=\"rtsee-ise-actions\">\n <p-button type=\"submit\" label=\"Assign\"\n [loading]=\"vm.authorSaveInProgress\"\n [disabled]=\"vm.authorSaveInProgress\" />\n <p-button label=\"New author\" icon=\"pi pi-plus\" severity=\"secondary\"\n (click)=\"vm.startNewAuthor()\"\n [disabled]=\"vm.authorSaveInProgress\" />\n @if (vm.author) {\n <span class=\"rtsee-ise-actions-spacer\"></span>\n <p-button label=\"Clear\" icon=\"pi pi-times\" severity=\"danger\" [text]=\"true\"\n (click)=\"vm.assignAuthor(null)\"\n [disabled]=\"vm.authorSaveInProgress\" />\n }\n </div>\n </rtsee-form>\n }\n </div>\n }\n </div>\n }\n </section>\n\n <!-- 7. NanoBanana Illustrator Overlay -->\n <rtsee-illustrator\n [illustrator]=\"illustrator\"\n (collapsedHeightChange)=\"onIllustratorCollapsedHeightChange($event)\"\n />\n }\n</div>\n" }]
|
|
7853
8293
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { vm: [{
|
|
7854
8294
|
type: Input,
|
|
7855
8295
|
args: [{ required: true }]
|
|
@@ -7858,19 +8298,152 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
7858
8298
|
}] } });
|
|
7859
8299
|
|
|
7860
8300
|
class ManageStoriesComponent {
|
|
7861
|
-
constructor() {
|
|
8301
|
+
constructor(elementRef, cdr) {
|
|
8302
|
+
this.elementRef = elementRef;
|
|
8303
|
+
this.cdr = cdr;
|
|
7862
8304
|
this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
|
|
8305
|
+
this.searchInput = '';
|
|
8306
|
+
this.searchDebounceTimer = null;
|
|
8307
|
+
this.boundManageStories = null;
|
|
8308
|
+
this.onManageStoriesChanged = () => {
|
|
8309
|
+
if (this.manageStories && this.searchDebounceTimer === null) {
|
|
8310
|
+
this.searchInput = this.manageStories.searchQuery || '';
|
|
8311
|
+
}
|
|
8312
|
+
this.cdr.markForCheck();
|
|
8313
|
+
this.checkFillScrollableViewport();
|
|
8314
|
+
};
|
|
8315
|
+
this.onCaptureScroll = (event) => {
|
|
8316
|
+
const target = event.target;
|
|
8317
|
+
if (!target || typeof target.scrollTop !== 'number') {
|
|
8318
|
+
return;
|
|
8319
|
+
}
|
|
8320
|
+
if (target.scrollHeight <= target.clientHeight) {
|
|
8321
|
+
return;
|
|
8322
|
+
}
|
|
8323
|
+
const distanceToBottom = target.scrollHeight - target.scrollTop - target.clientHeight;
|
|
8324
|
+
if (distanceToBottom <= 160) {
|
|
8325
|
+
this.onScrollLoadMore();
|
|
8326
|
+
}
|
|
8327
|
+
};
|
|
7863
8328
|
}
|
|
7864
8329
|
ngOnInit() {
|
|
7865
|
-
this.
|
|
8330
|
+
this.bindManageStories();
|
|
8331
|
+
this.elementRef.nativeElement.addEventListener('scroll', this.onCaptureScroll, {
|
|
8332
|
+
capture: true,
|
|
8333
|
+
passive: true,
|
|
8334
|
+
});
|
|
8335
|
+
if (this.manageStories) {
|
|
8336
|
+
this.searchInput = this.manageStories.searchQuery || '';
|
|
8337
|
+
this.manageStories.init();
|
|
8338
|
+
}
|
|
8339
|
+
}
|
|
8340
|
+
ngOnChanges(changes) {
|
|
8341
|
+
if (changes['manageStories']) {
|
|
8342
|
+
this.bindManageStories();
|
|
8343
|
+
if (this.manageStories) {
|
|
8344
|
+
this.searchInput = this.manageStories.searchQuery || '';
|
|
8345
|
+
this.manageStories.init();
|
|
8346
|
+
}
|
|
8347
|
+
}
|
|
8348
|
+
}
|
|
8349
|
+
ngOnDestroy() {
|
|
8350
|
+
this.unbindManageStories();
|
|
8351
|
+
this.clearSearchDebounce();
|
|
8352
|
+
this.elementRef.nativeElement.removeEventListener('scroll', this.onCaptureScroll, {
|
|
8353
|
+
capture: true,
|
|
8354
|
+
});
|
|
7866
8355
|
}
|
|
7867
|
-
|
|
7868
|
-
|
|
8356
|
+
onSearchInputChange(value) {
|
|
8357
|
+
this.searchInput = value;
|
|
8358
|
+
this.clearSearchDebounce();
|
|
8359
|
+
this.searchDebounceTimer = setTimeout(() => {
|
|
8360
|
+
this.searchDebounceTimer = null;
|
|
8361
|
+
if (this.manageStories) {
|
|
8362
|
+
void this.manageStories.setSearchQuery(this.searchInput);
|
|
8363
|
+
}
|
|
8364
|
+
}, 250);
|
|
8365
|
+
}
|
|
8366
|
+
onSearchEnter() {
|
|
8367
|
+
this.clearSearchDebounce();
|
|
8368
|
+
if (this.manageStories) {
|
|
8369
|
+
void this.manageStories.setSearchQuery(this.searchInput);
|
|
8370
|
+
}
|
|
8371
|
+
}
|
|
8372
|
+
clearSearch() {
|
|
8373
|
+
this.searchInput = '';
|
|
8374
|
+
this.clearSearchDebounce();
|
|
8375
|
+
if (this.manageStories) {
|
|
8376
|
+
void this.manageStories.setSearchQuery('');
|
|
8377
|
+
}
|
|
8378
|
+
}
|
|
8379
|
+
onScrollLoadMore() {
|
|
8380
|
+
if (!this.manageStories || this.manageStories.storiesLoadInProgress || !this.manageStories.hasMoreStories) {
|
|
8381
|
+
return;
|
|
8382
|
+
}
|
|
8383
|
+
void this.manageStories.loadMoreStories();
|
|
8384
|
+
}
|
|
8385
|
+
bindManageStories() {
|
|
8386
|
+
if (this.boundManageStories === this.manageStories) {
|
|
8387
|
+
return;
|
|
8388
|
+
}
|
|
8389
|
+
this.unbindManageStories();
|
|
8390
|
+
if (this.manageStories) {
|
|
8391
|
+
this.manageStories.on('changed', this.onManageStoriesChanged);
|
|
8392
|
+
this.boundManageStories = this.manageStories;
|
|
8393
|
+
}
|
|
8394
|
+
}
|
|
8395
|
+
unbindManageStories() {
|
|
8396
|
+
if (this.boundManageStories) {
|
|
8397
|
+
this.boundManageStories.off('changed', this.onManageStoriesChanged);
|
|
8398
|
+
this.boundManageStories = null;
|
|
8399
|
+
}
|
|
8400
|
+
}
|
|
8401
|
+
clearSearchDebounce() {
|
|
8402
|
+
if (this.searchDebounceTimer !== null) {
|
|
8403
|
+
clearTimeout(this.searchDebounceTimer);
|
|
8404
|
+
this.searchDebounceTimer = null;
|
|
8405
|
+
}
|
|
8406
|
+
}
|
|
8407
|
+
checkFillScrollableViewport() {
|
|
8408
|
+
if (typeof window === 'undefined' || !this.manageStories) {
|
|
8409
|
+
return;
|
|
8410
|
+
}
|
|
8411
|
+
if (this.manageStories.storiesLoadInProgress ||
|
|
8412
|
+
!this.manageStories.hasMoreStories ||
|
|
8413
|
+
this.manageStories.stories.length === 0 ||
|
|
8414
|
+
this.manageStories.selectedStory ||
|
|
8415
|
+
this.manageStories.interactiveStoryEditor) {
|
|
8416
|
+
return;
|
|
8417
|
+
}
|
|
8418
|
+
setTimeout(() => {
|
|
8419
|
+
if (!this.manageStories ||
|
|
8420
|
+
this.manageStories.storiesLoadInProgress ||
|
|
8421
|
+
!this.manageStories.hasMoreStories) {
|
|
8422
|
+
return;
|
|
8423
|
+
}
|
|
8424
|
+
const scrollContainer = this.elementRef.nativeElement.querySelector('.p-listbox-list-container');
|
|
8425
|
+
if (scrollContainer &&
|
|
8426
|
+
scrollContainer.clientHeight > 0 &&
|
|
8427
|
+
scrollContainer.scrollHeight <= scrollContainer.clientHeight + 20) {
|
|
8428
|
+
void this.manageStories.loadMoreStories();
|
|
8429
|
+
}
|
|
8430
|
+
}, 50);
|
|
8431
|
+
}
|
|
8432
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageStoriesComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8433
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ManageStoriesComponent, isStandalone: true, selector: "rtsee-manage-stories", inputs: { manageStories: "manageStories" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"rtsee-manage-stories\">\n @if (!manageStories.selectedStory && !manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-stories-header\">\n <p-button (click)=\"manageStories.selectNewStory()\"\n label=\"Create A New Story\"\n ></p-button>\n\n <div class=\"rtsee-manage-stories-search\">\n <svg class=\"rtsee-manage-stories-search-icon\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n aria-hidden=\"true\">\n <circle cx=\"9\" cy=\"9\" r=\"6\" stroke=\"currentColor\" stroke-width=\"1.8\" />\n <path d=\"M13.5 13.5L17.5 17.5\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" />\n </svg>\n <input\n type=\"search\"\n class=\"rtsee-manage-stories-search-input\"\n [ngModel]=\"searchInput\"\n (ngModelChange)=\"onSearchInputChange($event)\"\n (keydown.enter)=\"onSearchEnter()\"\n placeholder=\"Search stories...\"\n aria-label=\"Search stories\"\n />\n @if (searchInput) {\n <button\n type=\"button\"\n class=\"rtsee-manage-stories-search-clear\"\n (click)=\"clearSearch()\"\n aria-label=\"Clear search\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n }\n </div>\n </div>\n }\n @if (manageStories.selectedStory) {\n <div class=\"rtsee-manage-story-container\">\n <rtsee-manage-story [manageStory]=\"manageStories.selectedStory\"\n ></rtsee-manage-story>\n </div>\n }\n @if (manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-story-container\">\n <div style=\"margin-bottom: 1rem;\">\n <p-button icon=\"pi pi-arrow-left\" label=\"Back to Stories\" (click)=\"manageStories.interactiveStoryEditor = null\" [text]=\"true\"></p-button>\n </div>\n <rtsee-interactive-story-editor [vm]=\"manageStories.interactiveStoryEditor\"></rtsee-interactive-story-editor>\n </div>\n }\n @if (!manageStories.selectedStory && !manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-stories-list rtsee-ordered-list\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"150\"\n (scrolled)=\"onScrollLoadMore()\"\n >\n @if (manageStories.stories.length > 0) {\n <p-orderList [value]=\"manageStories.stories\"\n dataKey=\"id\"\n [dragdrop]=\"true\"\n [responsive]=\"true\"\n [scrollHeight]=\"'40rem'\"\n class=\"rtsee-ordered-list-inner\"\n (onReorder)=\"manageStories.onReorder()\"\n >\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"rtsee-presentation-manage-stories-list-item rtsee-ordered-list-item\">\n <img\n [src]=\"option.imageUrl\"\n [alt]=\"'slide_image'\"\n [style.width]=\"'60px'\"\n class=\"rtsee-presentation-manage-stories-list-item-image rtsee-ordered-list-item-image\"\n />\n <div class=\"rtsee-presentation-manage-stories-list-item-info rtsee-ordered-list-item-info\">\n <span [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected,\n }\"\n >{{ option.name }}</span>\n <div class=\"rtsee-ordered-list-item-info-buttons\">\n <p-button [label]=\"manageStories.labels[RTSeeTextLabelKeys.EDIT_BUTTON] || 'Edit'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectStory(option.id)\"\n ></p-button>\n <p-button label=\"iEdit\"\n [severity]=\"'info'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectInteractiveStory(option.id)\"\n ></p-button>\n <p-button [label]=\"manageStories.labels[RTSeeTextLabelKeys.DELETE_BUTTON] || 'Delete'\"\n [severity]=\"'warn'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectStory(option.id)\"\n ></p-button>\n <p-button label=\"Clone\"\n [severity]=\"'secondary'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.cloneStory(option.id)\"\n ></p-button>\n </div>\n </div>\n </div>\n </ng-template>\n </p-orderList>\n } @else if (!manageStories.storiesLoadInProgress) {\n <div class=\"rtsee-manage-stories-empty\">\n @if (manageStories.searchQuery.trim()) {\n <span>No stories found matching \"{{ manageStories.searchQuery.trim() }}\".</span>\n } @else {\n <span>No stories found.</span>\n }\n </div>\n }\n\n @if (manageStories.storiesLoadInProgress) {\n <div class=\"rtsee-manage-stories-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading stories\u2026</span>\n </div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: ManageStoryComponent, selector: "rtsee-manage-story", inputs: ["manageStory"] }, { kind: "component", type: InteractiveStoryEditorComponent, selector: "rtsee-interactive-story-editor", inputs: ["vm", "autoInit"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: OrderList, selector: "p-orderList, p-orderlist, p-order-list", inputs: ["header", "styleClass", "tabindex", "ariaLabel", "ariaLabelledBy", "listStyle", "responsive", "filterBy", "filterPlaceholder", "filterLocale", "metaKeySelection", "dragdrop", "controlsPosition", "ariaFilterLabel", "filterMatchMode", "breakpoint", "stripedRows", "disabled", "trackBy", "scrollHeight", "autoOptionFocus", "dataKey", "selection", "value", "buttonProps", "moveUpButtonProps", "moveTopButtonProps", "moveDownButtonProps", "moveBottomButtonProps"], outputs: ["selectionChange", "onReorder", "onSelectionChange", "onFilterEvent", "onFocus", "onBlur"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }] }); }
|
|
7869
8434
|
}
|
|
7870
8435
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageStoriesComponent, decorators: [{
|
|
7871
8436
|
type: Component,
|
|
7872
|
-
args: [{ selector: 'rtsee-manage-stories', imports: [
|
|
7873
|
-
|
|
8437
|
+
args: [{ selector: 'rtsee-manage-stories', imports: [
|
|
8438
|
+
ManageStoryComponent,
|
|
8439
|
+
InteractiveStoryEditorComponent,
|
|
8440
|
+
Button,
|
|
8441
|
+
OrderList,
|
|
8442
|
+
NgClass,
|
|
8443
|
+
FormsModule,
|
|
8444
|
+
InfiniteScrollDirective,
|
|
8445
|
+
], template: "<div class=\"rtsee-manage-stories\">\n @if (!manageStories.selectedStory && !manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-stories-header\">\n <p-button (click)=\"manageStories.selectNewStory()\"\n label=\"Create A New Story\"\n ></p-button>\n\n <div class=\"rtsee-manage-stories-search\">\n <svg class=\"rtsee-manage-stories-search-icon\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n aria-hidden=\"true\">\n <circle cx=\"9\" cy=\"9\" r=\"6\" stroke=\"currentColor\" stroke-width=\"1.8\" />\n <path d=\"M13.5 13.5L17.5 17.5\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" />\n </svg>\n <input\n type=\"search\"\n class=\"rtsee-manage-stories-search-input\"\n [ngModel]=\"searchInput\"\n (ngModelChange)=\"onSearchInputChange($event)\"\n (keydown.enter)=\"onSearchEnter()\"\n placeholder=\"Search stories...\"\n aria-label=\"Search stories\"\n />\n @if (searchInput) {\n <button\n type=\"button\"\n class=\"rtsee-manage-stories-search-clear\"\n (click)=\"clearSearch()\"\n aria-label=\"Clear search\"\n >\n <i class=\"pi pi-times\"></i>\n </button>\n }\n </div>\n </div>\n }\n @if (manageStories.selectedStory) {\n <div class=\"rtsee-manage-story-container\">\n <rtsee-manage-story [manageStory]=\"manageStories.selectedStory\"\n ></rtsee-manage-story>\n </div>\n }\n @if (manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-story-container\">\n <div style=\"margin-bottom: 1rem;\">\n <p-button icon=\"pi pi-arrow-left\" label=\"Back to Stories\" (click)=\"manageStories.interactiveStoryEditor = null\" [text]=\"true\"></p-button>\n </div>\n <rtsee-interactive-story-editor [vm]=\"manageStories.interactiveStoryEditor\"></rtsee-interactive-story-editor>\n </div>\n }\n @if (!manageStories.selectedStory && !manageStories.interactiveStoryEditor) {\n <div class=\"rtsee-manage-stories-list rtsee-ordered-list\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"150\"\n (scrolled)=\"onScrollLoadMore()\"\n >\n @if (manageStories.stories.length > 0) {\n <p-orderList [value]=\"manageStories.stories\"\n dataKey=\"id\"\n [dragdrop]=\"true\"\n [responsive]=\"true\"\n [scrollHeight]=\"'40rem'\"\n class=\"rtsee-ordered-list-inner\"\n (onReorder)=\"manageStories.onReorder()\"\n >\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"rtsee-presentation-manage-stories-list-item rtsee-ordered-list-item\">\n <img\n [src]=\"option.imageUrl\"\n [alt]=\"'slide_image'\"\n [style.width]=\"'60px'\"\n class=\"rtsee-presentation-manage-stories-list-item-image rtsee-ordered-list-item-image\"\n />\n <div class=\"rtsee-presentation-manage-stories-list-item-info rtsee-ordered-list-item-info\">\n <span [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected,\n }\"\n >{{ option.name }}</span>\n <div class=\"rtsee-ordered-list-item-info-buttons\">\n <p-button [label]=\"manageStories.labels[RTSeeTextLabelKeys.EDIT_BUTTON] || 'Edit'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectStory(option.id)\"\n ></p-button>\n <p-button label=\"iEdit\"\n [severity]=\"'info'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectInteractiveStory(option.id)\"\n ></p-button>\n <p-button [label]=\"manageStories.labels[RTSeeTextLabelKeys.DELETE_BUTTON] || 'Delete'\"\n [severity]=\"'warn'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.selectStory(option.id)\"\n ></p-button>\n <p-button label=\"Clone\"\n [severity]=\"'secondary'\"\n class=\"rtsee-ordered-list-item-info-button\"\n (click)=\"manageStories.cloneStory(option.id)\"\n ></p-button>\n </div>\n </div>\n </div>\n </ng-template>\n </p-orderList>\n } @else if (!manageStories.storiesLoadInProgress) {\n <div class=\"rtsee-manage-stories-empty\">\n @if (manageStories.searchQuery.trim()) {\n <span>No stories found matching \"{{ manageStories.searchQuery.trim() }}\".</span>\n } @else {\n <span>No stories found.</span>\n }\n </div>\n }\n\n @if (manageStories.storiesLoadInProgress) {\n <div class=\"rtsee-manage-stories-loading\">\n <i class=\"pi pi-spin pi-spinner\"></i>\n <span>Loading stories\u2026</span>\n </div>\n }\n </div>\n }\n</div>\n" }]
|
|
8446
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { manageStories: [{
|
|
7874
8447
|
type: Input
|
|
7875
8448
|
}] } });
|
|
7876
8449
|
|
|
@@ -9728,7 +10301,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
9728
10301
|
|
|
9729
10302
|
class PrivacyPolicyComponent {
|
|
9730
10303
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PrivacyPolicyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9731
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: PrivacyPolicyComponent, isStandalone: true, selector: "rtsee-privacy-policy", ngImport: i0, template: "<div class=\"privacy-policy-container\">\n <div class=\"policy-card rts-glass-card\">\n <div class=\"header-section\">\n <div class=\"header-content\">\n <h1>Terms of Use & Privacy Policy</h1>\n </div>\n </div>\n\n <div class=\"content-section\">\n <p-message severity=\"info\" [closable]=\"false\" class=\"info-banner\">\n <ng-template pTemplate>\n <div class=\"p-message-content\">\n <p class=\"last-updated\"><strong>Last Updated:</strong> December 2024</p>\n <p>By using our services, you agree to the terms and conditions outlined in this document. Please read this Privacy Policy and Terms of Use carefully before using our platform.</p>\n </div>\n </ng-template>\n </p-message>\n\n <h2>1. Acceptance of Terms</h2>\n <p>By accessing and using this service, you accept and agree to be bound by the terms and provision of this agreement. If you do not agree to abide by the above, please do not use this service.</p>\n\n <h2>2. Privacy Policy</h2>\n\n <h3>2.1 Information We Collect</h3>\n <p>We collect information you provide directly to us, such as when you create an account, use our services, or contact us for support. This may include:</p>\n <ul>\n <li><strong>Personal Information:</strong> Name, email address, phone number, and other contact details</li>\n <li><strong>Account Information:</strong> Username, password, and profile information</li>\n <li><strong>Usage Data:</strong> Information about how you use our services, including pages visited, time spent, and features used</li>\n <li><strong>Device Information:</strong> IP address, browser type, operating system, and device identifiers</li>\n <li><strong>Cookies and Tracking:</strong> We use cookies and similar technologies to enhance your experience</li>\n </ul>\n\n <h3>2.2 How We Use Your Information</h3>\n <p>We use the information we collect to:</p>\n <ul>\n <li>Provide, maintain, and improve our services</li>\n <li>Process transactions and send related information</li>\n <li>Send technical notices, updates, security alerts, and support messages</li>\n <li>Respond to your comments, questions, and requests</li>\n <li>Monitor and analyze trends, usage, and activities</li>\n <li>Personalize and improve your experience</li>\n <li>Detect, investigate, and prevent fraudulent transactions and other illegal activities</li>\n </ul>\n\n <h3>2.3 Information Sharing and Disclosure</h3>\n <p>We do not sell, trade, or otherwise transfer your personal information to third parties without your consent, except in the following circumstances:</p>\n <ul>\n <li><strong>Service Providers:</strong> We may share information with trusted third-party service providers who assist us in operating our platform</li>\n <li><strong>Legal Requirements:</strong> We may disclose information when required by law or to protect our rights and safety</li>\n <li><strong>Business Transfers:</strong> In connection with any merger, sale of assets, or acquisition of all or a portion of our business</li>\n <li><strong>Consent:</strong> We may share information with your explicit consent</li>\n </ul>\n\n <h3>2.4 Data Security</h3>\n <p>We implement appropriate technical and organizational security measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction. However, no method of transmission over the internet or electronic storage is 100% secure.</p>\n\n <h3>2.5 Data Retention</h3>\n <p>We retain your personal information for as long as necessary to provide our services and fulfill the purposes outlined in this privacy policy, unless a longer retention period is required or permitted by law.</p>\n\n <h3>2.6 Your Rights</h3>\n <p>Depending on your location, you may have certain rights regarding your personal information, including:</p>\n <ul>\n <li>The right to access and receive a copy of your personal information</li>\n <li>The right to rectify or update your personal information</li>\n <li>The right to erase your personal information</li>\n <li>The right to restrict or object to the processing of your personal information</li>\n <li>The right to data portability</li>\n <li>The right to withdraw consent at any time</li>\n </ul>\n\n <h2>3. Terms of Service</h2>\n\n <h3>3.1 User Accounts</h3>\n <p>To access certain features of our service, you may be required to create an account. You are responsible for:</p>\n <ul>\n <li>Maintaining the confidentiality of your account credentials</li>\n <li>All activities that occur under your account</li>\n <li>Notifying us immediately of any unauthorized use of your account</li>\n <li>Providing accurate and up-to-date information</li>\n </ul>\n\n <h3>3.2 Acceptable Use</h3>\n <p>You agree not to use our service for any unlawful purpose or any purpose prohibited under this clause. You may not use our service in any manner that could damage, disable, overburden, or impair our servers or networks.</p>\n\n <h3>3.3 Prohibited Activities</h3>\n <p>The following activities are prohibited:</p>\n <ul>\n <li>Violating any applicable laws or regulations</li>\n <li>Transmitting or procuring the sending of any unsolicited or unauthorized advertising</li>\n <li>Attempting to gain unauthorized access to any portion of our service</li>\n <li>Interfering with or disrupting the service or servers connected to the service</li>\n <li>Using any automated system to access the service for any purpose</li>\n <li>Impersonating any person or entity or misrepresenting your affiliation with a person or entity</li>\n </ul>\n\n <h3>3.4 Intellectual Property</h3>\n <p>The service and its original content, features, and functionality are and will remain the exclusive property of our company and its licensors. The service is protected by copyright, trademark, and other laws.</p>\n\n <h3>3.5 Termination</h3>\n <p>We may terminate or suspend your account and bar access to the service immediately, without prior notice or liability, under our sole discretion, for any reason whatsoever, including without limitation if you breach the Terms.</p>\n\n <h3>3.6 Disclaimer</h3>\n <p>The information on this service is provided on an \"as is\" basis. To the fullest extent permitted by law, this company excludes all representations, warranties, conditions and terms relating to our service and the use of this service.</p>\n\n <h3>3.7 Limitation of Liability</h3>\n <p>In no event shall our company, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential, or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses, resulting from your use of the service.</p>\n\n <h2>4. Cookies and Tracking Technologies</h2>\n <p>We use cookies and similar tracking technologies to track activity on our service and hold certain information. Cookies are files with a small amount of data which may include an anonymous unique identifier. You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent.</p>\n\n <h2>5. Third-Party Services</h2>\n <p>Our service may contain links to third-party websites or services that are not owned or controlled by us. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party websites or services.</p>\n\n <h2>6. Children's Privacy</h2>\n <p>Our service does not address anyone under the age of 13. We do not knowingly collect personally identifiable information from children under 13. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us.</p>\n\n <h2>7. International Data Transfers</h2>\n <p>Your information may be transferred to and processed in countries other than your own. We ensure that such transfers comply with applicable data protection laws and implement appropriate safeguards to protect your personal information.</p>\n\n <h2>8. Changes to This Policy</h2>\n <p>We reserve the right to update or change our Privacy Policy and Terms of Use at any time. We will notify you of any changes by posting the new Privacy Policy and Terms of Use on this page and updating the \"Last Updated\" date.</p>\n\n <div class=\"contact-section\">\n <h2>9. Contact Information</h2>\n <p>If you have any questions about this Privacy Policy and Terms of Use, please contact us:</p>\n <ul>\n <li><strong>Email:</strong> [Your Email Address]</li>\n <li><strong>Address:</strong> [Your Company Address]</li>\n <li><strong>Phone:</strong> [Your Contact Number]</li>\n </ul>\n </div>\n\n <div class=\"footer-section\">\n <p>This document was last updated on December 2024</p>\n </div>\n </div>\n </div>\n</div>\n\n", dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1$4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: MessageModule }, { kind: "component", type: i2$1.Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }] }); }
|
|
10304
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: PrivacyPolicyComponent, isStandalone: true, selector: "rtsee-privacy-policy", ngImport: i0, template: "<div class=\"privacy-policy-container\">\n <div class=\"policy-card rts-glass-card\">\n <div class=\"header-section\">\n <div class=\"header-content\">\n <h1>Terms of Use & Privacy Policy</h1>\n </div>\n </div>\n\n <div class=\"content-section\">\n <p-message severity=\"info\" [closable]=\"false\" class=\"info-banner\">\n <ng-template pTemplate>\n <div class=\"p-message-content\">\n <p class=\"last-updated\"><strong>Last Updated:</strong> December 2024</p>\n <p>By using our services, you agree to the terms and conditions outlined in this document. Please read this Privacy Policy and Terms of Use carefully before using our platform.</p>\n </div>\n </ng-template>\n </p-message>\n\n <h2>1. Acceptance of Terms</h2>\n <p>By accessing and using this service, you accept and agree to be bound by the terms and provision of this agreement. If you do not agree to abide by the above, please do not use this service.</p>\n\n <h2>2. Privacy Policy</h2>\n\n <h3>2.1 Information We Collect</h3>\n <p>We collect information you provide directly to us, such as when you create an account, use our services, or contact us for support. This may include:</p>\n <ul>\n <li><strong>Personal Information:</strong> Name, email address, phone number, and other contact details</li>\n <li><strong>Account Information:</strong> Username, password, and profile information</li>\n <li><strong>Usage Data:</strong> Information about how you use our services, including pages visited, time spent, and features used</li>\n <li><strong>Device Information:</strong> IP address, browser type, operating system, and device identifiers</li>\n <li><strong>Cookies and Tracking:</strong> We use cookies and similar technologies to enhance your experience</li>\n </ul>\n\n <h3>2.2 How We Use Your Information</h3>\n <p>We use the information we collect to:</p>\n <ul>\n <li>Provide, maintain, and improve our services</li>\n <li>Process transactions and send related information</li>\n <li>Send technical notices, updates, security alerts, and support messages</li>\n <li>Respond to your comments, questions, and requests</li>\n <li>Monitor and analyze trends, usage, and activities</li>\n <li>Personalize and improve your experience</li>\n <li>Detect, investigate, and prevent fraudulent transactions and other illegal activities</li>\n </ul>\n\n <h3>2.3 Information Sharing and Disclosure</h3>\n <p>We do not sell, trade, or otherwise transfer your personal information to third parties without your consent, except in the following circumstances:</p>\n <ul>\n <li><strong>Service Providers:</strong> We may share information with trusted third-party service providers who assist us in operating our platform</li>\n <li><strong>Legal Requirements:</strong> We may disclose information when required by law or to protect our rights and safety</li>\n <li><strong>Business Transfers:</strong> In connection with any merger, sale of assets, or acquisition of all or a portion of our business</li>\n <li><strong>Consent:</strong> We may share information with your explicit consent</li>\n </ul>\n\n <h3>2.4 Data Security</h3>\n <p>We implement appropriate technical and organizational security measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction. However, no method of transmission over the internet or electronic storage is 100% secure.</p>\n\n <h3>2.5 Data Retention</h3>\n <p>We retain your personal information for as long as necessary to provide our services and fulfill the purposes outlined in this privacy policy, unless a longer retention period is required or permitted by law.</p>\n\n <h3>2.6 Your Rights</h3>\n <p>Depending on your location, you may have certain rights regarding your personal information, including:</p>\n <ul>\n <li>The right to access and receive a copy of your personal information</li>\n <li>The right to rectify or update your personal information</li>\n <li>The right to erase your personal information</li>\n <li>The right to restrict or object to the processing of your personal information</li>\n <li>The right to data portability</li>\n <li>The right to withdraw consent at any time</li>\n </ul>\n\n <h2>3. Terms of Service</h2>\n\n <h3>3.1 User Accounts</h3>\n <p>To access certain features of our service, you may be required to create an account. You are responsible for:</p>\n <ul>\n <li>Maintaining the confidentiality of your account credentials</li>\n <li>All activities that occur under your account</li>\n <li>Notifying us immediately of any unauthorized use of your account</li>\n <li>Providing accurate and up-to-date information</li>\n </ul>\n\n <h3>3.2 Acceptable Use</h3>\n <p>You agree not to use our service for any unlawful purpose or any purpose prohibited under this clause. You may not use our service in any manner that could damage, disable, overburden, or impair our servers or networks.</p>\n\n <h3>3.3 Prohibited Activities</h3>\n <p>The following activities are prohibited:</p>\n <ul>\n <li>Violating any applicable laws or regulations</li>\n <li>Transmitting or procuring the sending of any unsolicited or unauthorized advertising</li>\n <li>Attempting to gain unauthorized access to any portion of our service</li>\n <li>Interfering with or disrupting the service or servers connected to the service</li>\n <li>Using any automated system to access the service for any purpose</li>\n <li>Impersonating any person or entity or misrepresenting your affiliation with a person or entity</li>\n </ul>\n\n <h3>3.4 Intellectual Property</h3>\n <p>The service and its original content, features, and functionality are and will remain the exclusive property of our company and its licensors. The service is protected by copyright, trademark, and other laws.</p>\n\n <h3>3.5 Termination</h3>\n <p>We may terminate or suspend your account and bar access to the service immediately, without prior notice or liability, under our sole discretion, for any reason whatsoever, including without limitation if you breach the Terms.</p>\n\n <h3>3.6 Disclaimer</h3>\n <p>The information on this service is provided on an \"as is\" basis. To the fullest extent permitted by law, this company excludes all representations, warranties, conditions and terms relating to our service and the use of this service.</p>\n\n <h3>3.7 Limitation of Liability</h3>\n <p>In no event shall our company, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential, or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses, resulting from your use of the service.</p>\n\n <h2>4. Cookies and Tracking Technologies</h2>\n <p>We use cookies and similar tracking technologies to track activity on our service and hold certain information. Cookies are files with a small amount of data which may include an anonymous unique identifier. You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent.</p>\n\n <h2>5. Third-Party Services</h2>\n <p>Our service may contain links to third-party websites or services that are not owned or controlled by us. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party websites or services.</p>\n\n <h2>6. Children's Privacy</h2>\n <p>Our service does not address anyone under the age of 13. We do not knowingly collect personally identifiable information from children under 13. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us.</p>\n\n <h2>7. International Data Transfers</h2>\n <p>Your information may be transferred to and processed in countries other than your own. We ensure that such transfers comply with applicable data protection laws and implement appropriate safeguards to protect your personal information.</p>\n\n <h2>8. Changes to This Policy</h2>\n <p>We reserve the right to update or change our Privacy Policy and Terms of Use at any time. We will notify you of any changes by posting the new Privacy Policy and Terms of Use on this page and updating the \"Last Updated\" date.</p>\n\n <div class=\"contact-section\">\n <h2>9. Contact Information</h2>\n <p>If you have any questions about this Privacy Policy and Terms of Use, please contact us:</p>\n <ul>\n <li><strong>Email:</strong> [Your Email Address]</li>\n <li><strong>Address:</strong> [Your Company Address]</li>\n <li><strong>Phone:</strong> [Your Contact Number]</li>\n </ul>\n </div>\n\n <div class=\"footer-section\">\n <p>This document was last updated on December 2024</p>\n </div>\n </div>\n </div>\n</div>\n\n", dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: MessageModule }, { kind: "component", type: i2$2.Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }] }); }
|
|
9732
10305
|
}
|
|
9733
10306
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PrivacyPolicyComponent, decorators: [{
|
|
9734
10307
|
type: Component,
|