@rtsee/ngx 0.0.129 → 0.0.131
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.
|
@@ -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 i1$3 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';
|
|
@@ -9,7 +9,7 @@ import { FloatLabel } from 'primeng/floatlabel';
|
|
|
9
9
|
import * as i4 from 'primeng/button';
|
|
10
10
|
import { Button, ButtonModule } from 'primeng/button';
|
|
11
11
|
import { interval, tap, map, filter } from 'rxjs';
|
|
12
|
-
import { RTSeeTextLabelKeys, RTSeeCore, hasPermission, RTSeePeerPermissions } from '@rtsee/core';
|
|
12
|
+
import { RTSeeTextLabelKeys, RTSeeCore, defaultLabels, hasPermission, RTSeePeerPermissions } from '@rtsee/core';
|
|
13
13
|
import { AuthEndpointsKeys, LS_TOKEN_LABEL, LS_USER_LABEL, DEFAULT_ROUTE_NAMES } from '@rtsee/auth';
|
|
14
14
|
import * as i2 from '@angular/router';
|
|
15
15
|
import { RouterLink, RouterLinkActive, NavigationEnd } from '@angular/router';
|
|
@@ -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$1 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$4 from 'primeng/api';
|
|
44
44
|
import { MessageService } from 'primeng/api';
|
|
45
45
|
import Swiper from 'swiper';
|
|
46
46
|
import { Virtual, EffectCards } from 'swiper/modules';
|
|
@@ -609,11 +609,11 @@ class AutocompleteComponent {
|
|
|
609
609
|
this.disabled = false;
|
|
610
610
|
}
|
|
611
611
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
612
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: AutocompleteComponent, isStandalone: true, selector: "rtsee-autocomplete", inputs: { config: "config", disabled: "disabled" }, ngImport: i0, template: "<div class=\"rtsee-autocomplete rtsee-form-field-container\">\n <p-inputgroup>\n <p-floatlabel variant=\"on\">\n @if (config.allowMultipleSelections) {\n <p-autoComplete [(ngModel)]=\"config.selectedSuggestions\"\n [inputId]=\"config.inputId\"\n [multiple]=\"true\"\n [dropdown]=\"config.dropdown ?? false\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n <ng-template let-item #selecteditem>\n <span class=\"rtsee-autocomplete-chip-content\">\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-chip-thumb\"\n />\n }\n <span class=\"rtsee-autocomplete-chip-label\">{{ config.getItemLabel(item) }}</span>\n </span>\n </ng-template>\n </p-autoComplete>\n } @else {\n <p-autoComplete [(ngModel)]=\"config.singleSelection\"\n [inputId]=\"config.inputId\"\n [multiple]=\"false\"\n [dropdown]=\"config.dropdown ?? true\"\n [showClear]=\"true\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n (onClear)=\"config.onClear()\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n </p-autoComplete>\n }\n <label [for]=\"config.inputId\">{{config.inputName}}</label>\n </p-floatlabel>\n </p-inputgroup>\n</div>\n", dependencies: [{ kind: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i1$2.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "component", type: FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: InputGroup, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: ["styleClass"] }, { kind: "ngmodule", type: FormsModule }, { 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"] }] }); }
|
|
612
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: AutocompleteComponent, isStandalone: true, selector: "rtsee-autocomplete", inputs: { config: "config", disabled: "disabled" }, ngImport: i0, template: "<div class=\"rtsee-autocomplete rtsee-form-field-container\">\n <p-inputgroup>\n <p-floatlabel variant=\"on\">\n @if (config.allowMultipleSelections) {\n <p-autoComplete [(ngModel)]=\"config.selectedSuggestions\"\n [inputId]=\"config.inputId\"\n [multiple]=\"true\"\n [dropdown]=\"config.dropdown ?? false\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n (onUnselect)=\"config.onUnselect($event)\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n <ng-template let-item #selecteditem>\n <span class=\"rtsee-autocomplete-chip-content\">\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-chip-thumb\"\n />\n }\n <span class=\"rtsee-autocomplete-chip-label\">{{ config.getItemLabel(item) }}</span>\n </span>\n </ng-template>\n </p-autoComplete>\n } @else {\n <p-autoComplete [(ngModel)]=\"config.singleSelection\"\n [inputId]=\"config.inputId\"\n [multiple]=\"false\"\n [dropdown]=\"config.dropdown ?? true\"\n [showClear]=\"true\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n (onClear)=\"config.onClear()\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n </p-autoComplete>\n }\n <label [for]=\"config.inputId\">{{config.inputName}}</label>\n </p-floatlabel>\n </p-inputgroup>\n</div>\n", dependencies: [{ kind: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i1$2.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "component", type: FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: InputGroup, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: ["styleClass"] }, { kind: "ngmodule", type: FormsModule }, { 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"] }] }); }
|
|
613
613
|
}
|
|
614
614
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AutocompleteComponent, decorators: [{
|
|
615
615
|
type: Component,
|
|
616
|
-
args: [{ selector: 'rtsee-autocomplete', imports: [AutoCompleteModule, FloatLabel, InputGroup, FormsModule], template: "<div class=\"rtsee-autocomplete rtsee-form-field-container\">\n <p-inputgroup>\n <p-floatlabel variant=\"on\">\n @if (config.allowMultipleSelections) {\n <p-autoComplete [(ngModel)]=\"config.selectedSuggestions\"\n [inputId]=\"config.inputId\"\n [multiple]=\"true\"\n [dropdown]=\"config.dropdown ?? false\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n <ng-template let-item #selecteditem>\n <span class=\"rtsee-autocomplete-chip-content\">\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-chip-thumb\"\n />\n }\n <span class=\"rtsee-autocomplete-chip-label\">{{ config.getItemLabel(item) }}</span>\n </span>\n </ng-template>\n </p-autoComplete>\n } @else {\n <p-autoComplete [(ngModel)]=\"config.singleSelection\"\n [inputId]=\"config.inputId\"\n [multiple]=\"false\"\n [dropdown]=\"config.dropdown ?? true\"\n [showClear]=\"true\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n (onClear)=\"config.onClear()\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n </p-autoComplete>\n }\n <label [for]=\"config.inputId\">{{config.inputName}}</label>\n </p-floatlabel>\n </p-inputgroup>\n</div>\n" }]
|
|
616
|
+
args: [{ selector: 'rtsee-autocomplete', imports: [AutoCompleteModule, FloatLabel, InputGroup, FormsModule], template: "<div class=\"rtsee-autocomplete rtsee-form-field-container\">\n <p-inputgroup>\n <p-floatlabel variant=\"on\">\n @if (config.allowMultipleSelections) {\n <p-autoComplete [(ngModel)]=\"config.selectedSuggestions\"\n [inputId]=\"config.inputId\"\n [multiple]=\"true\"\n [dropdown]=\"config.dropdown ?? false\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n (onUnselect)=\"config.onUnselect($event)\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n <ng-template let-item #selecteditem>\n <span class=\"rtsee-autocomplete-chip-content\">\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-chip-thumb\"\n />\n }\n <span class=\"rtsee-autocomplete-chip-label\">{{ config.getItemLabel(item) }}</span>\n </span>\n </ng-template>\n </p-autoComplete>\n } @else {\n <p-autoComplete [(ngModel)]=\"config.singleSelection\"\n [inputId]=\"config.inputId\"\n [multiple]=\"false\"\n [dropdown]=\"config.dropdown ?? true\"\n [showClear]=\"true\"\n [fluid]=\"config.fluid\"\n [disabled]=\"disabled\"\n [placeholder]=\"config.placeholder || ''\"\n [suggestions]=\"config.visibleSuggestions\"\n [optionLabel]=\"config.suggestionLabel\"\n (completeMethod)=\"config.onQueryChanged($event)\"\n (onSelect)=\"config.onSelect($event)\"\n (onClear)=\"config.onClear()\"\n >\n <ng-template let-item #item>\n <div class=\"rtsee-autocomplete-option\">\n @if (config.hasSuggestionThumbnails) {\n @if (config.getItemImage(item); as imgUrl) {\n <img [src]=\"imgUrl\"\n [alt]=\"config.getItemLabel(item)\"\n class=\"rtsee-autocomplete-option-thumb\"\n />\n } @else {\n <span class=\"rtsee-autocomplete-option-thumb rtsee-autocomplete-option-thumb-placeholder\" aria-hidden=\"true\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n }\n <span class=\"rtsee-autocomplete-option-label\">{{ config.getItemLabel(item) }}</span>\n </div>\n </ng-template>\n </p-autoComplete>\n }\n <label [for]=\"config.inputId\">{{config.inputName}}</label>\n </p-floatlabel>\n </p-inputgroup>\n</div>\n" }]
|
|
617
617
|
}], propDecorators: { config: [{
|
|
618
618
|
type: Input
|
|
619
619
|
}], disabled: [{
|
|
@@ -4632,6 +4632,615 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
4632
4632
|
type: Input
|
|
4633
4633
|
}] } });
|
|
4634
4634
|
|
|
4635
|
+
class RefineStoriesListWorkflowForm extends RTSeeForm {
|
|
4636
|
+
constructor(options) {
|
|
4637
|
+
const agentOptions = StorytellerWorkflowForm.mapAgentOptions(options.agents);
|
|
4638
|
+
const defaultAgentId = options.agents.length === 1 ? options.agents[0].id : '';
|
|
4639
|
+
const listField = new RTSeeFormFieldAutocomplete({
|
|
4640
|
+
name: 'listId',
|
|
4641
|
+
type: 'autocomplete',
|
|
4642
|
+
label: 'Stories List',
|
|
4643
|
+
description: 'Stories List',
|
|
4644
|
+
placeholder: 'Search stories lists by name…',
|
|
4645
|
+
value: [],
|
|
4646
|
+
validators: [
|
|
4647
|
+
(v) => !v || !v.length || !v[0] ? 'Please select a stories list' : null,
|
|
4648
|
+
],
|
|
4649
|
+
autocompleteOptions: {
|
|
4650
|
+
inputId: 'refine-stories-list-id',
|
|
4651
|
+
inputName: 'Stories List',
|
|
4652
|
+
suggestionLabel: 'name',
|
|
4653
|
+
suggestionId: 'id',
|
|
4654
|
+
suggestionImage: 'imageUrl',
|
|
4655
|
+
placeholder: 'Search stories lists by name…',
|
|
4656
|
+
dropdown: true,
|
|
4657
|
+
loadOnce: false,
|
|
4658
|
+
allowMultipleSelections: false,
|
|
4659
|
+
fluid: true,
|
|
4660
|
+
getSuggestions: (query) => options.searchLists(query),
|
|
4661
|
+
},
|
|
4662
|
+
});
|
|
4663
|
+
const fromScratchField = new RTSeeFormField({
|
|
4664
|
+
name: 'fromScratch',
|
|
4665
|
+
type: 'checkbox',
|
|
4666
|
+
label: 'From scratch',
|
|
4667
|
+
description: 'From scratch',
|
|
4668
|
+
hint: 'Regenerate custom descriptions for all items in the list (overwriting existing ones)',
|
|
4669
|
+
value: false,
|
|
4670
|
+
validators: [],
|
|
4671
|
+
});
|
|
4672
|
+
const agentIdField = new RTSeeFormFieldSelect({
|
|
4673
|
+
name: 'agentId',
|
|
4674
|
+
type: 'select',
|
|
4675
|
+
label: 'Agent',
|
|
4676
|
+
description: 'Agent',
|
|
4677
|
+
placeholder: 'Select an agent',
|
|
4678
|
+
hint: options.agents.length
|
|
4679
|
+
? undefined
|
|
4680
|
+
: 'There are no agentic members in this chat. Add an agent to continue.',
|
|
4681
|
+
value: defaultAgentId,
|
|
4682
|
+
selectOptions: agentOptions,
|
|
4683
|
+
labelKey: 'label',
|
|
4684
|
+
valueKey: 'value',
|
|
4685
|
+
validators: [(v) => (!v ? 'Please select an agent' : null)],
|
|
4686
|
+
});
|
|
4687
|
+
super({
|
|
4688
|
+
name: 'Refine Stories List',
|
|
4689
|
+
fields: [listField, fromScratchField, agentIdField],
|
|
4690
|
+
currentUser: options.currentUser,
|
|
4691
|
+
readonly: options.readonly,
|
|
4692
|
+
canCancel: options.canCancel,
|
|
4693
|
+
onCancel: options.onCancel,
|
|
4694
|
+
cancelButtonLabel: 'Cancel',
|
|
4695
|
+
submitButtonLabel: '✨ Refine List',
|
|
4696
|
+
submittingButtonLabel: 'Refining…',
|
|
4697
|
+
submittedLabel: 'submited the workflow',
|
|
4698
|
+
onSubmit: options.onSubmit,
|
|
4699
|
+
onFieldEdited: options.onFieldEdited,
|
|
4700
|
+
});
|
|
4701
|
+
this.lastSelectedList = null;
|
|
4702
|
+
this.listField = listField;
|
|
4703
|
+
this.fromScratchField = fromScratchField;
|
|
4704
|
+
this.agentIdField = agentIdField;
|
|
4705
|
+
}
|
|
4706
|
+
get selectedListId() {
|
|
4707
|
+
return (this.listField.value && this.listField.value[0]) || '';
|
|
4708
|
+
}
|
|
4709
|
+
get selectedListName() {
|
|
4710
|
+
const item = this.listField.autocomplete.selectedSuggestions?.[0];
|
|
4711
|
+
if (item?.name) {
|
|
4712
|
+
return item.name;
|
|
4713
|
+
}
|
|
4714
|
+
return this.lastSelectedList?.name || '';
|
|
4715
|
+
}
|
|
4716
|
+
updateAgents(agents) {
|
|
4717
|
+
this.agentIdField.setOptions(StorytellerWorkflowForm.mapAgentOptions(agents));
|
|
4718
|
+
this.agentIdField.hint = agents.length
|
|
4719
|
+
? undefined
|
|
4720
|
+
: 'There are no agentic members in this chat. Add an agent to continue.';
|
|
4721
|
+
if (!this.agentIdField.value && agents.length === 1) {
|
|
4722
|
+
this.agentIdField.value = agents[0].id;
|
|
4723
|
+
}
|
|
4724
|
+
}
|
|
4725
|
+
setListSelection(list) {
|
|
4726
|
+
this.lastSelectedList = list;
|
|
4727
|
+
if (list?.id) {
|
|
4728
|
+
this.listField.value = [list.id];
|
|
4729
|
+
this.listField.autocomplete.setSelectedItems([
|
|
4730
|
+
list,
|
|
4731
|
+
]);
|
|
4732
|
+
}
|
|
4733
|
+
else {
|
|
4734
|
+
this.listField.value = [];
|
|
4735
|
+
this.listField.autocomplete.setSelectedItems([]);
|
|
4736
|
+
}
|
|
4737
|
+
}
|
|
4738
|
+
getModel() {
|
|
4739
|
+
return {
|
|
4740
|
+
listId: this.selectedListId,
|
|
4741
|
+
listName: this.selectedListName || this.selectedListId,
|
|
4742
|
+
fromScratch: !!this.fromScratchField.value,
|
|
4743
|
+
agentId: this.agentIdField.value || '',
|
|
4744
|
+
};
|
|
4745
|
+
}
|
|
4746
|
+
}
|
|
4747
|
+
/**
|
|
4748
|
+
* Refine Stories List step 1 (#RefineStoriesList):
|
|
4749
|
+
* - Pick a stories list (autocomplete with images)
|
|
4750
|
+
* - "From scratch" checkbox (unselected by default)
|
|
4751
|
+
* - Pick an agent
|
|
4752
|
+
*/
|
|
4753
|
+
class RefineStoriesListFormStepComponent {
|
|
4754
|
+
constructor(cdr) {
|
|
4755
|
+
this.cdr = cdr;
|
|
4756
|
+
this.onChangedBound = () => this.onWorkflowChanged();
|
|
4757
|
+
this.onStepFormUpdatedBound = (payload) => this.onRemoteStepFormUpdated(payload);
|
|
4758
|
+
}
|
|
4759
|
+
get agents() {
|
|
4760
|
+
return (this.chat?.members || []).filter((m) => m.isAgent);
|
|
4761
|
+
}
|
|
4762
|
+
get readonly() {
|
|
4763
|
+
return (!this.step?.isActive ||
|
|
4764
|
+
!!this.workflow?.submitInProgress ||
|
|
4765
|
+
!!this.workflow?.cancelInProgress ||
|
|
4766
|
+
!!this.workflow?.isCanceled);
|
|
4767
|
+
}
|
|
4768
|
+
get canCancel() {
|
|
4769
|
+
return false;
|
|
4770
|
+
}
|
|
4771
|
+
onFormSubmit() {
|
|
4772
|
+
this.form.updateAgents(this.agents);
|
|
4773
|
+
this.form.submit();
|
|
4774
|
+
this.cdr.detectChanges();
|
|
4775
|
+
}
|
|
4776
|
+
get currentUser() {
|
|
4777
|
+
const myPeer = this.messenger?.myPeer;
|
|
4778
|
+
if (myPeer) {
|
|
4779
|
+
return {
|
|
4780
|
+
id: myPeer.clientId,
|
|
4781
|
+
name: myPeer.name || 'User',
|
|
4782
|
+
imageUrl: myPeer.imageUrl,
|
|
4783
|
+
};
|
|
4784
|
+
}
|
|
4785
|
+
const myId = this.chat?.clientId || this.messenger?.clientId;
|
|
4786
|
+
if (myId) {
|
|
4787
|
+
const member = this.chat?.getMemberById(myId);
|
|
4788
|
+
return {
|
|
4789
|
+
id: myId,
|
|
4790
|
+
name: member?.name || 'User',
|
|
4791
|
+
imageUrl: member?.imageUrl,
|
|
4792
|
+
};
|
|
4793
|
+
}
|
|
4794
|
+
return null;
|
|
4795
|
+
}
|
|
4796
|
+
ngOnInit() {
|
|
4797
|
+
this.form = new RefineStoriesListWorkflowForm({
|
|
4798
|
+
agents: this.agents,
|
|
4799
|
+
searchLists: (query) => this.messenger?.ozzy
|
|
4800
|
+
? this.messenger.ozzy.searchStoriesLists(query)
|
|
4801
|
+
: Promise.resolve([]),
|
|
4802
|
+
currentUser: this.currentUser,
|
|
4803
|
+
readonly: this.readonly,
|
|
4804
|
+
canCancel: this.canCancel,
|
|
4805
|
+
onCancel: () => this.cancel(),
|
|
4806
|
+
onSubmit: (model) => {
|
|
4807
|
+
if (this.readonly) {
|
|
4808
|
+
return;
|
|
4809
|
+
}
|
|
4810
|
+
void this.workflow.submitStep(model, this.form.getCollectiveState());
|
|
4811
|
+
},
|
|
4812
|
+
onFieldEdited: (change, state) => {
|
|
4813
|
+
if (!this.step || this.readonly) {
|
|
4814
|
+
return;
|
|
4815
|
+
}
|
|
4816
|
+
this.workflow?.updateStepForm(this.step.id, state, change.fieldName, change.lastEditedBy || undefined);
|
|
4817
|
+
},
|
|
4818
|
+
});
|
|
4819
|
+
this.workflow?.on(OzzyWorkflowClientEvents.CHANGED, this.onChangedBound);
|
|
4820
|
+
this.workflow?.on(OzzyWorkflowClientEvents.STEP_FORM_UPDATED, this.onStepFormUpdatedBound);
|
|
4821
|
+
this.syncWithStep();
|
|
4822
|
+
}
|
|
4823
|
+
ngOnDestroy() {
|
|
4824
|
+
this.workflow?.off(OzzyWorkflowClientEvents.CHANGED, this.onChangedBound);
|
|
4825
|
+
this.workflow?.off(OzzyWorkflowClientEvents.STEP_FORM_UPDATED, this.onStepFormUpdatedBound);
|
|
4826
|
+
}
|
|
4827
|
+
cancel() {
|
|
4828
|
+
void this.workflow?.cancel(this.currentUser || undefined);
|
|
4829
|
+
}
|
|
4830
|
+
onRemoteStepFormUpdated(payload) {
|
|
4831
|
+
if (!this.form || !payload?.formState) {
|
|
4832
|
+
return;
|
|
4833
|
+
}
|
|
4834
|
+
this.form.applyCollectiveState(payload.formState, payload.changedFieldName);
|
|
4835
|
+
this.cdr.detectChanges();
|
|
4836
|
+
void Promise.resolve().then(() => this.cdr.detectChanges());
|
|
4837
|
+
}
|
|
4838
|
+
onWorkflowChanged() {
|
|
4839
|
+
this.syncWithStep();
|
|
4840
|
+
this.cdr.detectChanges();
|
|
4841
|
+
void Promise.resolve().then(() => this.cdr.detectChanges());
|
|
4842
|
+
}
|
|
4843
|
+
syncWithStep() {
|
|
4844
|
+
if (!this.form) {
|
|
4845
|
+
return;
|
|
4846
|
+
}
|
|
4847
|
+
this.form.setCurrentUser(this.currentUser);
|
|
4848
|
+
this.form.updateAgents(this.agents);
|
|
4849
|
+
this.form.setReadonly(this.readonly);
|
|
4850
|
+
this.form.canCancel = this.canCancel;
|
|
4851
|
+
this.form.submitInProgress = !!this.workflow?.submitInProgress;
|
|
4852
|
+
if (this.workflow?.submitError) {
|
|
4853
|
+
this.form.submitError = this.workflow.submitError;
|
|
4854
|
+
}
|
|
4855
|
+
else if (this.workflow?.submitInProgress) {
|
|
4856
|
+
this.form.submitError = null;
|
|
4857
|
+
}
|
|
4858
|
+
if (this.step?.formState) {
|
|
4859
|
+
this.form.applyCollectiveState(this.step.formState);
|
|
4860
|
+
}
|
|
4861
|
+
const output = this.step?.output;
|
|
4862
|
+
if (output?.listId) {
|
|
4863
|
+
this.form.setListSelection({
|
|
4864
|
+
id: output.listId,
|
|
4865
|
+
name: output.listName || output.listId,
|
|
4866
|
+
});
|
|
4867
|
+
this.form.fromScratchField.value = !!output.fromScratch;
|
|
4868
|
+
this.form.agentIdField.value = output.agentId || '';
|
|
4869
|
+
}
|
|
4870
|
+
if (this.step?.submittedBy) {
|
|
4871
|
+
this.form.submittedBy = this.step.submittedBy;
|
|
4872
|
+
}
|
|
4873
|
+
else if (this.step?.isFinished && !this.form.submittedBy && this.workflow?.creatorId) {
|
|
4874
|
+
const creator = this.chat?.getMemberById(this.workflow.creatorId);
|
|
4875
|
+
if (creator) {
|
|
4876
|
+
this.form.submittedBy = {
|
|
4877
|
+
id: creator.id,
|
|
4878
|
+
name: creator.name,
|
|
4879
|
+
imageUrl: creator.imageUrl,
|
|
4880
|
+
};
|
|
4881
|
+
}
|
|
4882
|
+
}
|
|
4883
|
+
}
|
|
4884
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RefineStoriesListFormStepComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4885
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: RefineStoriesListFormStepComponent, isStandalone: true, selector: "rtsee-refine-stories-list-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", 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"] }] }); }
|
|
4886
|
+
}
|
|
4887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RefineStoriesListFormStepComponent, decorators: [{
|
|
4888
|
+
type: Component,
|
|
4889
|
+
args: [{ selector: 'rtsee-refine-stories-list-form-step', standalone: true, imports: [FormComponent], template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\" (formSubmit)=\"onFormSubmit()\"></rtsee-form>\n</div>\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"] }]
|
|
4890
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { step: [{
|
|
4891
|
+
type: Input
|
|
4892
|
+
}], workflow: [{
|
|
4893
|
+
type: Input
|
|
4894
|
+
}], chat: [{
|
|
4895
|
+
type: Input
|
|
4896
|
+
}], messenger: [{
|
|
4897
|
+
type: Input
|
|
4898
|
+
}] } });
|
|
4899
|
+
|
|
4900
|
+
class TranslateStoriesListWorkflowForm extends RTSeeForm {
|
|
4901
|
+
constructor(options) {
|
|
4902
|
+
const agentOptions = StorytellerWorkflowForm.mapAgentOptions(options.agents);
|
|
4903
|
+
const defaultAgentId = options.agents.length === 1 ? options.agents[0].id : '';
|
|
4904
|
+
const listField = new RTSeeFormFieldAutocomplete({
|
|
4905
|
+
name: 'listId',
|
|
4906
|
+
type: 'autocomplete',
|
|
4907
|
+
label: 'Stories List',
|
|
4908
|
+
description: 'Stories List',
|
|
4909
|
+
placeholder: 'Search stories lists by name…',
|
|
4910
|
+
value: [],
|
|
4911
|
+
validators: [
|
|
4912
|
+
(v) => !v || !v.length || !v[0] ? 'Please select a stories list' : null,
|
|
4913
|
+
],
|
|
4914
|
+
autocompleteOptions: {
|
|
4915
|
+
inputId: 'translate-stories-list-id',
|
|
4916
|
+
inputName: 'Stories List',
|
|
4917
|
+
suggestionLabel: 'name',
|
|
4918
|
+
suggestionId: 'id',
|
|
4919
|
+
suggestionImage: 'imageUrl',
|
|
4920
|
+
placeholder: 'Search stories lists by name…',
|
|
4921
|
+
dropdown: true,
|
|
4922
|
+
loadOnce: false,
|
|
4923
|
+
allowMultipleSelections: false,
|
|
4924
|
+
fluid: true,
|
|
4925
|
+
getSuggestions: (query) => options.searchLists(query),
|
|
4926
|
+
},
|
|
4927
|
+
});
|
|
4928
|
+
const languageField = new RTSeeFormFieldSelect({
|
|
4929
|
+
name: 'language',
|
|
4930
|
+
type: 'select',
|
|
4931
|
+
label: 'Translate to',
|
|
4932
|
+
description: 'Translate to',
|
|
4933
|
+
placeholder: 'Select a language',
|
|
4934
|
+
value: '',
|
|
4935
|
+
selectOptions: STORY_TRANSLATOR_LANGUAGES.map((l) => ({
|
|
4936
|
+
label: l.nativeName,
|
|
4937
|
+
value: l.code,
|
|
4938
|
+
})),
|
|
4939
|
+
labelKey: 'label',
|
|
4940
|
+
valueKey: 'value',
|
|
4941
|
+
validators: [(v) => (!v ? 'Please select a target language' : null)],
|
|
4942
|
+
});
|
|
4943
|
+
const fromScratchField = new RTSeeFormField({
|
|
4944
|
+
name: 'fromScratch',
|
|
4945
|
+
type: 'checkbox',
|
|
4946
|
+
label: 'From scratch',
|
|
4947
|
+
description: 'From scratch',
|
|
4948
|
+
hint: 'Overwrite existing translations for the list and all its items',
|
|
4949
|
+
value: false,
|
|
4950
|
+
validators: [],
|
|
4951
|
+
});
|
|
4952
|
+
const agentIdField = new RTSeeFormFieldSelect({
|
|
4953
|
+
name: 'agentId',
|
|
4954
|
+
type: 'select',
|
|
4955
|
+
label: 'Agent',
|
|
4956
|
+
description: 'Agent',
|
|
4957
|
+
placeholder: 'Select an agent',
|
|
4958
|
+
hint: options.agents.length
|
|
4959
|
+
? undefined
|
|
4960
|
+
: 'There are no agentic members in this chat. Add an agent to continue.',
|
|
4961
|
+
value: defaultAgentId,
|
|
4962
|
+
selectOptions: agentOptions,
|
|
4963
|
+
labelKey: 'label',
|
|
4964
|
+
valueKey: 'value',
|
|
4965
|
+
validators: [(v) => (!v ? 'Please select an agent' : null)],
|
|
4966
|
+
});
|
|
4967
|
+
super({
|
|
4968
|
+
name: 'Translate Stories List',
|
|
4969
|
+
fields: [listField, languageField, fromScratchField, agentIdField],
|
|
4970
|
+
currentUser: options.currentUser,
|
|
4971
|
+
readonly: options.readonly,
|
|
4972
|
+
canCancel: options.canCancel,
|
|
4973
|
+
onCancel: options.onCancel,
|
|
4974
|
+
cancelButtonLabel: 'Cancel',
|
|
4975
|
+
submitButtonLabel: '🌐 Translate List',
|
|
4976
|
+
submittingButtonLabel: 'Translating…',
|
|
4977
|
+
submittedLabel: 'submited the workflow',
|
|
4978
|
+
onSubmit: options.onSubmit,
|
|
4979
|
+
onFieldEdited: options.onFieldEdited,
|
|
4980
|
+
});
|
|
4981
|
+
this.lastSelectedList = null;
|
|
4982
|
+
this.listField = listField;
|
|
4983
|
+
this.languageField = languageField;
|
|
4984
|
+
this.fromScratchField = fromScratchField;
|
|
4985
|
+
this.agentIdField = agentIdField;
|
|
4986
|
+
}
|
|
4987
|
+
get selectedListId() {
|
|
4988
|
+
return (this.listField.value && this.listField.value[0]) || '';
|
|
4989
|
+
}
|
|
4990
|
+
get selectedListName() {
|
|
4991
|
+
const item = this.listField.autocomplete.selectedSuggestions?.[0];
|
|
4992
|
+
if (item?.name) {
|
|
4993
|
+
return item.name;
|
|
4994
|
+
}
|
|
4995
|
+
return this.lastSelectedList?.name || '';
|
|
4996
|
+
}
|
|
4997
|
+
get selectedLanguage() {
|
|
4998
|
+
return STORY_TRANSLATOR_LANGUAGES.find((l) => l.code === this.languageField.value);
|
|
4999
|
+
}
|
|
5000
|
+
updateAgents(agents) {
|
|
5001
|
+
this.agentIdField.setOptions(StorytellerWorkflowForm.mapAgentOptions(agents));
|
|
5002
|
+
this.agentIdField.hint = agents.length
|
|
5003
|
+
? undefined
|
|
5004
|
+
: 'There are no agentic members in this chat. Add an agent to continue.';
|
|
5005
|
+
if (!this.agentIdField.value && agents.length === 1) {
|
|
5006
|
+
this.agentIdField.value = agents[0].id;
|
|
5007
|
+
}
|
|
5008
|
+
}
|
|
5009
|
+
updateLanguageUI() {
|
|
5010
|
+
const lang = this.selectedLanguage;
|
|
5011
|
+
this.submitButtonLabel = `🌐 Translate${lang ? ' to ' + lang.nativeName : ' List'}`;
|
|
5012
|
+
this.fromScratchField.hint = `Overwrite existing ${lang?.nativeName ? lang.nativeName + ' ' : ''}translations for the list and all its items`;
|
|
5013
|
+
}
|
|
5014
|
+
setListSelection(list) {
|
|
5015
|
+
this.lastSelectedList = list;
|
|
5016
|
+
if (list?.id) {
|
|
5017
|
+
this.listField.value = [list.id];
|
|
5018
|
+
this.listField.autocomplete.setSelectedItems([
|
|
5019
|
+
list,
|
|
5020
|
+
]);
|
|
5021
|
+
}
|
|
5022
|
+
else {
|
|
5023
|
+
this.listField.value = [];
|
|
5024
|
+
this.listField.autocomplete.setSelectedItems([]);
|
|
5025
|
+
}
|
|
5026
|
+
}
|
|
5027
|
+
getModel() {
|
|
5028
|
+
return {
|
|
5029
|
+
listId: this.selectedListId,
|
|
5030
|
+
listName: this.selectedListName || this.selectedListId,
|
|
5031
|
+
language: this.languageField.value || '',
|
|
5032
|
+
fromScratch: !!this.fromScratchField.value,
|
|
5033
|
+
agentId: this.agentIdField.value || '',
|
|
5034
|
+
};
|
|
5035
|
+
}
|
|
5036
|
+
}
|
|
5037
|
+
/**
|
|
5038
|
+
* Translate Stories List step 1 (#TranslateStoriesList):
|
|
5039
|
+
* - Pick a stories list (autocomplete with images)
|
|
5040
|
+
* - Pick target language
|
|
5041
|
+
* - "From scratch" checkbox (unselected by default)
|
|
5042
|
+
* - Pick an agent
|
|
5043
|
+
*/
|
|
5044
|
+
class TranslateStoriesListFormStepComponent {
|
|
5045
|
+
constructor(cdr) {
|
|
5046
|
+
this.cdr = cdr;
|
|
5047
|
+
this.onChangedBound = () => this.onWorkflowChanged();
|
|
5048
|
+
this.onStepFormUpdatedBound = (payload) => this.onRemoteStepFormUpdated(payload);
|
|
5049
|
+
}
|
|
5050
|
+
get agents() {
|
|
5051
|
+
return (this.chat?.members || []).filter((m) => m.isAgent);
|
|
5052
|
+
}
|
|
5053
|
+
get readonly() {
|
|
5054
|
+
return (!this.step?.isActive ||
|
|
5055
|
+
!!this.workflow?.submitInProgress ||
|
|
5056
|
+
!!this.workflow?.cancelInProgress ||
|
|
5057
|
+
!!this.workflow?.isCanceled);
|
|
5058
|
+
}
|
|
5059
|
+
get canCancel() {
|
|
5060
|
+
return false;
|
|
5061
|
+
}
|
|
5062
|
+
onFormSubmit() {
|
|
5063
|
+
this.form.updateAgents(this.agents);
|
|
5064
|
+
this.form.submit();
|
|
5065
|
+
this.cdr.detectChanges();
|
|
5066
|
+
}
|
|
5067
|
+
get currentUser() {
|
|
5068
|
+
const myPeer = this.messenger?.myPeer;
|
|
5069
|
+
if (myPeer) {
|
|
5070
|
+
return {
|
|
5071
|
+
id: myPeer.clientId,
|
|
5072
|
+
name: myPeer.name || 'User',
|
|
5073
|
+
imageUrl: myPeer.imageUrl,
|
|
5074
|
+
};
|
|
5075
|
+
}
|
|
5076
|
+
const myId = this.chat?.clientId || this.messenger?.clientId;
|
|
5077
|
+
if (myId) {
|
|
5078
|
+
const member = this.chat?.getMemberById(myId);
|
|
5079
|
+
return {
|
|
5080
|
+
id: myId,
|
|
5081
|
+
name: member?.name || 'User',
|
|
5082
|
+
imageUrl: member?.imageUrl,
|
|
5083
|
+
};
|
|
5084
|
+
}
|
|
5085
|
+
return null;
|
|
5086
|
+
}
|
|
5087
|
+
ngOnInit() {
|
|
5088
|
+
this.form = new TranslateStoriesListWorkflowForm({
|
|
5089
|
+
agents: this.agents,
|
|
5090
|
+
searchLists: (query) => this.messenger?.ozzy
|
|
5091
|
+
? this.messenger.ozzy.searchStoriesLists(query)
|
|
5092
|
+
: Promise.resolve([]),
|
|
5093
|
+
currentUser: this.currentUser,
|
|
5094
|
+
readonly: this.readonly,
|
|
5095
|
+
canCancel: this.canCancel,
|
|
5096
|
+
onCancel: () => this.cancel(),
|
|
5097
|
+
onSubmit: (model) => {
|
|
5098
|
+
if (this.readonly) {
|
|
5099
|
+
return;
|
|
5100
|
+
}
|
|
5101
|
+
void this.workflow.submitStep(model, this.form.getCollectiveState());
|
|
5102
|
+
},
|
|
5103
|
+
onFieldEdited: (change, state) => {
|
|
5104
|
+
if (!this.step || this.readonly) {
|
|
5105
|
+
return;
|
|
5106
|
+
}
|
|
5107
|
+
if (change.fieldName === 'language') {
|
|
5108
|
+
this.form.updateLanguageUI();
|
|
5109
|
+
}
|
|
5110
|
+
this.workflow?.updateStepForm(this.step.id, state, change.fieldName, change.lastEditedBy || undefined);
|
|
5111
|
+
},
|
|
5112
|
+
});
|
|
5113
|
+
this.workflow?.on(OzzyWorkflowClientEvents.CHANGED, this.onChangedBound);
|
|
5114
|
+
this.workflow?.on(OzzyWorkflowClientEvents.STEP_FORM_UPDATED, this.onStepFormUpdatedBound);
|
|
5115
|
+
this.syncWithStep();
|
|
5116
|
+
}
|
|
5117
|
+
ngOnDestroy() {
|
|
5118
|
+
this.workflow?.off(OzzyWorkflowClientEvents.CHANGED, this.onChangedBound);
|
|
5119
|
+
this.workflow?.off(OzzyWorkflowClientEvents.STEP_FORM_UPDATED, this.onStepFormUpdatedBound);
|
|
5120
|
+
}
|
|
5121
|
+
cancel() {
|
|
5122
|
+
void this.workflow?.cancel(this.currentUser || undefined);
|
|
5123
|
+
}
|
|
5124
|
+
onRemoteStepFormUpdated(payload) {
|
|
5125
|
+
if (!this.form || !payload?.formState) {
|
|
5126
|
+
return;
|
|
5127
|
+
}
|
|
5128
|
+
this.form.applyCollectiveState(payload.formState, payload.changedFieldName);
|
|
5129
|
+
this.form.updateLanguageUI();
|
|
5130
|
+
this.cdr.detectChanges();
|
|
5131
|
+
void Promise.resolve().then(() => this.cdr.detectChanges());
|
|
5132
|
+
}
|
|
5133
|
+
onWorkflowChanged() {
|
|
5134
|
+
this.syncWithStep();
|
|
5135
|
+
this.cdr.detectChanges();
|
|
5136
|
+
void Promise.resolve().then(() => this.cdr.detectChanges());
|
|
5137
|
+
}
|
|
5138
|
+
syncWithStep() {
|
|
5139
|
+
if (!this.form) {
|
|
5140
|
+
return;
|
|
5141
|
+
}
|
|
5142
|
+
this.form.setCurrentUser(this.currentUser);
|
|
5143
|
+
this.form.updateAgents(this.agents);
|
|
5144
|
+
this.form.setReadonly(this.readonly);
|
|
5145
|
+
this.form.canCancel = this.canCancel;
|
|
5146
|
+
this.form.submitInProgress = !!this.workflow?.submitInProgress;
|
|
5147
|
+
if (this.workflow?.submitError) {
|
|
5148
|
+
this.form.submitError = this.workflow.submitError;
|
|
5149
|
+
}
|
|
5150
|
+
else if (this.workflow?.submitInProgress) {
|
|
5151
|
+
this.form.submitError = null;
|
|
5152
|
+
}
|
|
5153
|
+
if (this.step?.formState) {
|
|
5154
|
+
this.form.applyCollectiveState(this.step.formState);
|
|
5155
|
+
}
|
|
5156
|
+
const output = this.step?.output;
|
|
5157
|
+
if (output?.listId) {
|
|
5158
|
+
this.form.setListSelection({
|
|
5159
|
+
id: output.listId,
|
|
5160
|
+
name: output.listName || output.listId,
|
|
5161
|
+
});
|
|
5162
|
+
this.form.languageField.value = output.language || '';
|
|
5163
|
+
this.form.fromScratchField.value = !!output.fromScratch;
|
|
5164
|
+
this.form.agentIdField.value = output.agentId || '';
|
|
5165
|
+
}
|
|
5166
|
+
this.form.updateLanguageUI();
|
|
5167
|
+
if (this.step?.submittedBy) {
|
|
5168
|
+
this.form.submittedBy = this.step.submittedBy;
|
|
5169
|
+
}
|
|
5170
|
+
else if (this.step?.isFinished && !this.form.submittedBy && this.workflow?.creatorId) {
|
|
5171
|
+
const creator = this.chat?.getMemberById(this.workflow.creatorId);
|
|
5172
|
+
if (creator) {
|
|
5173
|
+
this.form.submittedBy = {
|
|
5174
|
+
id: creator.id,
|
|
5175
|
+
name: creator.name,
|
|
5176
|
+
imageUrl: creator.imageUrl,
|
|
5177
|
+
};
|
|
5178
|
+
}
|
|
5179
|
+
}
|
|
5180
|
+
}
|
|
5181
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TranslateStoriesListFormStepComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5182
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: TranslateStoriesListFormStepComponent, isStandalone: true, selector: "rtsee-translate-stories-list-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", 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"] }] }); }
|
|
5183
|
+
}
|
|
5184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TranslateStoriesListFormStepComponent, decorators: [{
|
|
5185
|
+
type: Component,
|
|
5186
|
+
args: [{ selector: 'rtsee-translate-stories-list-form-step', standalone: true, imports: [FormComponent], template: "<div class=\"rts-storyteller-form\">\n <rtsee-form [form]=\"form\" (formSubmit)=\"onFormSubmit()\"></rtsee-form>\n</div>\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"] }]
|
|
5187
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { step: [{
|
|
5188
|
+
type: Input
|
|
5189
|
+
}], workflow: [{
|
|
5190
|
+
type: Input
|
|
5191
|
+
}], chat: [{
|
|
5192
|
+
type: Input
|
|
5193
|
+
}], messenger: [{
|
|
5194
|
+
type: Input
|
|
5195
|
+
}] } });
|
|
5196
|
+
|
|
5197
|
+
/**
|
|
5198
|
+
* Step 3 for Stories List workflows: link to the refined / translated stories list.
|
|
5199
|
+
*/
|
|
5200
|
+
class StoriesListLinkStepComponent {
|
|
5201
|
+
get list() {
|
|
5202
|
+
return this.step?.input || {};
|
|
5203
|
+
}
|
|
5204
|
+
get listUrl() {
|
|
5205
|
+
const slugOrId = this.list.friendlyUrl || this.list.listId;
|
|
5206
|
+
return slugOrId ? `/list/${slugOrId}` : '';
|
|
5207
|
+
}
|
|
5208
|
+
get kicker() {
|
|
5209
|
+
if (this.list.language) {
|
|
5210
|
+
const language = getStoryTranslatorLanguage(this.list.language);
|
|
5211
|
+
return language ? `Translated to ${language.nativeName}` : 'Stories list translated';
|
|
5212
|
+
}
|
|
5213
|
+
return 'Stories list refined';
|
|
5214
|
+
}
|
|
5215
|
+
get metaText() {
|
|
5216
|
+
const parts = [];
|
|
5217
|
+
if (this.list.itemsCount !== undefined) {
|
|
5218
|
+
parts.push(`${this.list.itemsCount} ${this.list.itemsCount === 1 ? 'story' : 'stories'}`);
|
|
5219
|
+
}
|
|
5220
|
+
if (this.list.updatedItemsCount !== undefined) {
|
|
5221
|
+
parts.push(`${this.list.updatedItemsCount} updated`);
|
|
5222
|
+
}
|
|
5223
|
+
if (this.list.translatedElements) {
|
|
5224
|
+
parts.push(`${this.list.translatedElements.itemsCount} item(s) translated`);
|
|
5225
|
+
}
|
|
5226
|
+
return parts.join(' · ');
|
|
5227
|
+
}
|
|
5228
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListLinkStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5229
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoriesListLinkStepComponent, isStandalone: true, selector: "rtsee-stories-list-link-step", inputs: { step: "step", workflow: "workflow", chat: "chat", messenger: "messenger" }, ngImport: i0, template: "@if (listUrl) {\n <a class=\"rts-story-link-card\" [href]=\"listUrl\" target=\"_blank\" rel=\"noopener\">\n <div class=\"rts-story-link-icon\">\uD83D\uDCDA</div>\n <div class=\"rts-story-link-body\">\n <span class=\"rts-story-link-kicker\">{{ kicker }}</span>\n <span class=\"rts-story-link-title\">{{ list.name || 'Open stories list' }}</span>\n @if (list.description) {\n <span class=\"rts-story-link-description\">{{ list.description }}</span>\n }\n @if (metaText) {\n <span class=\"rts-story-link-meta\">{{ metaText }}</span>\n }\n </div>\n <span class=\"rts-story-link-arrow pi pi-arrow-right\"></span>\n </a>\n} @else {\n <div class=\"rts-storyteller-hint\">The stories list link will appear here once processing completes.</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"] }); }
|
|
5230
|
+
}
|
|
5231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListLinkStepComponent, decorators: [{
|
|
5232
|
+
type: Component,
|
|
5233
|
+
args: [{ selector: 'rtsee-stories-list-link-step', standalone: true, template: "@if (listUrl) {\n <a class=\"rts-story-link-card\" [href]=\"listUrl\" target=\"_blank\" rel=\"noopener\">\n <div class=\"rts-story-link-icon\">\uD83D\uDCDA</div>\n <div class=\"rts-story-link-body\">\n <span class=\"rts-story-link-kicker\">{{ kicker }}</span>\n <span class=\"rts-story-link-title\">{{ list.name || 'Open stories list' }}</span>\n @if (list.description) {\n <span class=\"rts-story-link-description\">{{ list.description }}</span>\n }\n @if (metaText) {\n <span class=\"rts-story-link-meta\">{{ metaText }}</span>\n }\n </div>\n <span class=\"rts-story-link-arrow pi pi-arrow-right\"></span>\n </a>\n} @else {\n <div class=\"rts-storyteller-hint\">The stories list link will appear here once processing completes.</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"] }]
|
|
5234
|
+
}], propDecorators: { step: [{
|
|
5235
|
+
type: Input
|
|
5236
|
+
}], workflow: [{
|
|
5237
|
+
type: Input
|
|
5238
|
+
}], chat: [{
|
|
5239
|
+
type: Input
|
|
5240
|
+
}], messenger: [{
|
|
5241
|
+
type: Input
|
|
5242
|
+
}] } });
|
|
5243
|
+
|
|
4635
5244
|
/**
|
|
4636
5245
|
* Registry of the components which render workflow steps inside the rts-workflow widget.
|
|
4637
5246
|
*/
|
|
@@ -4643,6 +5252,9 @@ class WorkflowStepsService {
|
|
|
4643
5252
|
{ name: 'storyteller-story-link-step', component: StorytellerStoryLinkStepComponent },
|
|
4644
5253
|
{ name: 'story-translator-form-step', component: StoryTranslatorFormStepComponent },
|
|
4645
5254
|
{ name: 'story-repair-form-step', component: StoryRepairFormStepComponent },
|
|
5255
|
+
{ name: 'refine-stories-list-form-step', component: RefineStoriesListFormStepComponent },
|
|
5256
|
+
{ name: 'translate-stories-list-form-step', component: TranslateStoriesListFormStepComponent },
|
|
5257
|
+
{ name: 'stories-list-link-step', component: StoriesListLinkStepComponent },
|
|
4646
5258
|
];
|
|
4647
5259
|
}
|
|
4648
5260
|
register(widget) {
|
|
@@ -5289,13 +5901,13 @@ class MessagesListComponent {
|
|
|
5289
5901
|
this.firstGroupedMessage = this.chat.messages[0];
|
|
5290
5902
|
this.lastGroupedMessage = this.chat.messages[this.chat.messages.length - 1];
|
|
5291
5903
|
}
|
|
5292
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MessagesListComponent, deps: [{ token: TimeFormatHelperService }, { token:
|
|
5904
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MessagesListComponent, deps: [{ token: TimeFormatHelperService }, { token: i1$3.ViewportScroller }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5293
5905
|
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"] }] }); }
|
|
5294
5906
|
}
|
|
5295
5907
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MessagesListComponent, decorators: [{
|
|
5296
5908
|
type: Component,
|
|
5297
5909
|
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" }]
|
|
5298
|
-
}], ctorParameters: () => [{ type: TimeFormatHelperService }, { type:
|
|
5910
|
+
}], ctorParameters: () => [{ type: TimeFormatHelperService }, { type: i1$3.ViewportScroller }, { type: i0.ElementRef }, { type: Document, decorators: [{
|
|
5299
5911
|
type: Inject,
|
|
5300
5912
|
args: [DOCUMENT]
|
|
5301
5913
|
}] }], propDecorators: { chat: [{
|
|
@@ -6698,7 +7310,7 @@ class ApplicationEventWidgetComponent extends BaseEventWidgetComponent {
|
|
|
6698
7310
|
null);
|
|
6699
7311
|
}
|
|
6700
7312
|
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 }); }
|
|
6701
|
-
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:
|
|
7313
|
+
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: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
6702
7314
|
}
|
|
6703
7315
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ApplicationEventWidgetComponent, decorators: [{
|
|
6704
7316
|
type: Component,
|
|
@@ -7074,13 +7686,13 @@ class JoinCallComponent {
|
|
|
7074
7686
|
this.recentlyCopied = false;
|
|
7075
7687
|
}, 2000);
|
|
7076
7688
|
}
|
|
7077
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: JoinCallComponent, deps: [{ token: i1$
|
|
7689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: JoinCallComponent, deps: [{ token: i1$4.MessageService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7078
7690
|
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"] }] }); }
|
|
7079
7691
|
}
|
|
7080
7692
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: JoinCallComponent, decorators: [{
|
|
7081
7693
|
type: Component,
|
|
7082
7694
|
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" }]
|
|
7083
|
-
}], ctorParameters: () => [{ type: i1$
|
|
7695
|
+
}], ctorParameters: () => [{ type: i1$4.MessageService }], propDecorators: { presentation: [{
|
|
7084
7696
|
type: Input
|
|
7085
7697
|
}], room: [{
|
|
7086
7698
|
type: Input
|
|
@@ -7091,11 +7703,11 @@ class PresentationHeaderComponent {
|
|
|
7091
7703
|
this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
|
|
7092
7704
|
}
|
|
7093
7705
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7094
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: PresentationHeaderComponent, isStandalone: true, selector: "rtsee-presentation-header", inputs: { presentation: "presentation" }, ngImport: i0, template: "<header class=\"rtsee-presentation-header\"\n [ngClass]=\"{\n 'rtsee-presentation-header-convertable': presentation.activeStory,\n 'rtsee-presentation-header-visible': presentation.activeStory?.headerVisible,\n 'rtsee-presentation-header-theme-dark': presentation.activeStory && presentation.settings.isDarkReadingTheme,\n 'rtsee-presentation-header-theme-light': presentation.activeStory && !presentation.settings.isDarkReadingTheme\n }\"\n>\n @if (!presentation.activeStory && !presentation.openedStoryDetails) {\n <div class=\"rtsee-presentations-header-title\">\n <div class=\"rtsee-presentations-header-title-overlay\"></div>\n <div class=\"rtsee-presentations-header-title-content\">\n <h1>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_TITLE_LABEL]}}</h1>\n <p class=\"rtsee-presentations-header-title-subtitle\">\n <span>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_SUBTITLE_LABEL]}}</span>\n </p>\n </div>\n </div>\n }\n\n @if (presentation.activeStory; as story) {\n <div class=\"rtsee-presentation-header-active-story-info\">\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.disableActiveStory()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n >\n <i class=\"pi pi-arrow-left\" aria-hidden=\"true\"></i>\n </button>\n\n <div class=\"rtsee-presentation-header-active-story-info-details\">\n @if (story.imageUrl) {\n <img class=\"rtsee-presentation-header-active-story-cover\"\n [src]=\"story.imageUrl\"\n alt=\"\"\n width=\"34\"\n height=\"34\"\n decoding=\"async\"\n />\n }\n <div class=\"rtsee-presentation-header-active-story-text\">\n <span class=\"rtsee-presentation-header-active-story-name\" [title]=\"story.name\">\n {{ story.name }}\n </span>\n @if (story.totalSlides) {\n <span class=\"rtsee-presentation-header-active-story-progress-label\">\n {{ story.activeSlideNumber || 1 }} / {{ story.totalSlides }}\n </span>\n }\n </div>\n </div>\n\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-settings\"\n (click)=\"presentation.settings.expand()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n >\n <!-- \"Aa\": the well known reading/display settings glyph (text size, theme) -->\n <span class=\"rtsee-presentation-header-settings-glyph\" aria-hidden=\"true\">\n <span class=\"rtsee-presentation-header-settings-glyph-big\">A</span><span class=\"rtsee-presentation-header-settings-glyph-small\">a</span>\n </span>\n </button>\n\n @if (story.totalSlides) {\n <div class=\"rtsee-presentation-header-active-story-progress\" aria-hidden=\"true\">\n <div class=\"rtsee-presentation-header-active-story-progress-bar\"\n [style.width.%]=\"((story.activeSlideNumber || 1) / story.totalSlides) * 100\"\n ></div>\n </div>\n }\n </div>\n }\n @if (presentation.dashboard && !presentation.activeStory && !presentation.isDashboardOpen && !presentation.openedStoryDetails) {\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON]\"\n (click)=\"presentation.toggleDashboardState()\"\n ></p-button>\n }\n</header>\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: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
|
|
7706
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: PresentationHeaderComponent, isStandalone: true, selector: "rtsee-presentation-header", inputs: { presentation: "presentation" }, ngImport: i0, template: "<header class=\"rtsee-presentation-header\"\n [ngClass]=\"{\n 'rtsee-presentation-header-convertable': presentation.activeStory,\n 'rtsee-presentation-header-visible': presentation.activeStory?.headerVisible,\n 'rtsee-presentation-header-theme-dark': presentation.activeStory && presentation.settings.isDarkReadingTheme,\n 'rtsee-presentation-header-theme-light': presentation.activeStory && !presentation.settings.isDarkReadingTheme\n }\"\n>\n @if (!presentation.activeStory && !presentation.openedStoryDetails && !presentation.openedStoriesList) {\n <div class=\"rtsee-presentations-header-title\">\n <div class=\"rtsee-presentations-header-title-overlay\"></div>\n <div class=\"rtsee-presentations-header-title-content\">\n <h1>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_TITLE_LABEL]}}</h1>\n <p class=\"rtsee-presentations-header-title-subtitle\">\n <span>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_SUBTITLE_LABEL]}}</span>\n </p>\n </div>\n </div>\n }\n\n @if (presentation.activeStory; as story) {\n <div class=\"rtsee-presentation-header-active-story-info\">\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.disableActiveStory()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n >\n <i class=\"pi pi-arrow-left\" aria-hidden=\"true\"></i>\n </button>\n\n <div class=\"rtsee-presentation-header-active-story-info-details\">\n @if (story.imageUrl) {\n <img class=\"rtsee-presentation-header-active-story-cover\"\n [src]=\"story.imageUrl\"\n alt=\"\"\n width=\"34\"\n height=\"34\"\n decoding=\"async\"\n />\n }\n <div class=\"rtsee-presentation-header-active-story-text\">\n <span class=\"rtsee-presentation-header-active-story-name\" [title]=\"story.name\">\n {{ story.name }}\n </span>\n @if (story.totalSlides) {\n <span class=\"rtsee-presentation-header-active-story-progress-label\">\n {{ story.activeSlideNumber || 1 }} / {{ story.totalSlides }}\n </span>\n }\n </div>\n </div>\n\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-settings\"\n (click)=\"presentation.settings.expand()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n >\n <!-- \"Aa\": the well known reading/display settings glyph (text size, theme) -->\n <span class=\"rtsee-presentation-header-settings-glyph\" aria-hidden=\"true\">\n <span class=\"rtsee-presentation-header-settings-glyph-big\">A</span><span class=\"rtsee-presentation-header-settings-glyph-small\">a</span>\n </span>\n </button>\n\n @if (story.totalSlides) {\n <div class=\"rtsee-presentation-header-active-story-progress\" aria-hidden=\"true\">\n <div class=\"rtsee-presentation-header-active-story-progress-bar\"\n [style.width.%]=\"((story.activeSlideNumber || 1) / story.totalSlides) * 100\"\n ></div>\n </div>\n }\n </div>\n }\n @if (presentation.dashboard && !presentation.activeStory && !presentation.isDashboardOpen && !presentation.openedStoryDetails) {\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON]\"\n (click)=\"presentation.toggleDashboardState()\"\n ></p-button>\n }\n</header>\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: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
|
|
7095
7707
|
}
|
|
7096
7708
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationHeaderComponent, decorators: [{
|
|
7097
7709
|
type: Component,
|
|
7098
|
-
args: [{ selector: 'rtsee-presentation-header', imports: [Button, NgClass, JoinCallComponent, RouterLink], standalone: true, template: "<header class=\"rtsee-presentation-header\"\n [ngClass]=\"{\n 'rtsee-presentation-header-convertable': presentation.activeStory,\n 'rtsee-presentation-header-visible': presentation.activeStory?.headerVisible,\n 'rtsee-presentation-header-theme-dark': presentation.activeStory && presentation.settings.isDarkReadingTheme,\n 'rtsee-presentation-header-theme-light': presentation.activeStory && !presentation.settings.isDarkReadingTheme\n }\"\n>\n @if (!presentation.activeStory && !presentation.openedStoryDetails) {\n <div class=\"rtsee-presentations-header-title\">\n <div class=\"rtsee-presentations-header-title-overlay\"></div>\n <div class=\"rtsee-presentations-header-title-content\">\n <h1>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_TITLE_LABEL]}}</h1>\n <p class=\"rtsee-presentations-header-title-subtitle\">\n <span>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_SUBTITLE_LABEL]}}</span>\n </p>\n </div>\n </div>\n }\n\n @if (presentation.activeStory; as story) {\n <div class=\"rtsee-presentation-header-active-story-info\">\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.disableActiveStory()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n >\n <i class=\"pi pi-arrow-left\" aria-hidden=\"true\"></i>\n </button>\n\n <div class=\"rtsee-presentation-header-active-story-info-details\">\n @if (story.imageUrl) {\n <img class=\"rtsee-presentation-header-active-story-cover\"\n [src]=\"story.imageUrl\"\n alt=\"\"\n width=\"34\"\n height=\"34\"\n decoding=\"async\"\n />\n }\n <div class=\"rtsee-presentation-header-active-story-text\">\n <span class=\"rtsee-presentation-header-active-story-name\" [title]=\"story.name\">\n {{ story.name }}\n </span>\n @if (story.totalSlides) {\n <span class=\"rtsee-presentation-header-active-story-progress-label\">\n {{ story.activeSlideNumber || 1 }} / {{ story.totalSlides }}\n </span>\n }\n </div>\n </div>\n\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-settings\"\n (click)=\"presentation.settings.expand()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n >\n <!-- \"Aa\": the well known reading/display settings glyph (text size, theme) -->\n <span class=\"rtsee-presentation-header-settings-glyph\" aria-hidden=\"true\">\n <span class=\"rtsee-presentation-header-settings-glyph-big\">A</span><span class=\"rtsee-presentation-header-settings-glyph-small\">a</span>\n </span>\n </button>\n\n @if (story.totalSlides) {\n <div class=\"rtsee-presentation-header-active-story-progress\" aria-hidden=\"true\">\n <div class=\"rtsee-presentation-header-active-story-progress-bar\"\n [style.width.%]=\"((story.activeSlideNumber || 1) / story.totalSlides) * 100\"\n ></div>\n </div>\n }\n </div>\n }\n @if (presentation.dashboard && !presentation.activeStory && !presentation.isDashboardOpen && !presentation.openedStoryDetails) {\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON]\"\n (click)=\"presentation.toggleDashboardState()\"\n ></p-button>\n }\n</header>\n" }]
|
|
7710
|
+
args: [{ selector: 'rtsee-presentation-header', imports: [Button, NgClass, JoinCallComponent, RouterLink], standalone: true, template: "<header class=\"rtsee-presentation-header\"\n [ngClass]=\"{\n 'rtsee-presentation-header-convertable': presentation.activeStory,\n 'rtsee-presentation-header-visible': presentation.activeStory?.headerVisible,\n 'rtsee-presentation-header-theme-dark': presentation.activeStory && presentation.settings.isDarkReadingTheme,\n 'rtsee-presentation-header-theme-light': presentation.activeStory && !presentation.settings.isDarkReadingTheme\n }\"\n>\n @if (!presentation.activeStory && !presentation.openedStoryDetails && !presentation.openedStoriesList) {\n <div class=\"rtsee-presentations-header-title\">\n <div class=\"rtsee-presentations-header-title-overlay\"></div>\n <div class=\"rtsee-presentations-header-title-content\">\n <h1>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_TITLE_LABEL]}}</h1>\n <p class=\"rtsee-presentations-header-title-subtitle\">\n <span>{{presentation.labels[RTSeeTextLabelKeys.PRESENTATION_SUBTITLE_LABEL]}}</span>\n </p>\n </div>\n </div>\n }\n\n @if (presentation.activeStory; as story) {\n <div class=\"rtsee-presentation-header-active-story-info\">\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.disableActiveStory()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.BACK_LABEL]\"\n >\n <i class=\"pi pi-arrow-left\" aria-hidden=\"true\"></i>\n </button>\n\n <div class=\"rtsee-presentation-header-active-story-info-details\">\n @if (story.imageUrl) {\n <img class=\"rtsee-presentation-header-active-story-cover\"\n [src]=\"story.imageUrl\"\n alt=\"\"\n width=\"34\"\n height=\"34\"\n decoding=\"async\"\n />\n }\n <div class=\"rtsee-presentation-header-active-story-text\">\n <span class=\"rtsee-presentation-header-active-story-name\" [title]=\"story.name\">\n {{ story.name }}\n </span>\n @if (story.totalSlides) {\n <span class=\"rtsee-presentation-header-active-story-progress-label\">\n {{ story.activeSlideNumber || 1 }} / {{ story.totalSlides }}\n </span>\n }\n </div>\n </div>\n\n <button type=\"button\"\n class=\"rtsee-presentation-header-icon-btn rtsee-presentation-header-active-story-info-settings\"\n (click)=\"presentation.settings.expand()\"\n [attr.aria-label]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n [title]=\"presentation.labels[RTSeeTextLabelKeys.READING_SETTINGS_LABEL]\"\n >\n <!-- \"Aa\": the well known reading/display settings glyph (text size, theme) -->\n <span class=\"rtsee-presentation-header-settings-glyph\" aria-hidden=\"true\">\n <span class=\"rtsee-presentation-header-settings-glyph-big\">A</span><span class=\"rtsee-presentation-header-settings-glyph-small\">a</span>\n </span>\n </button>\n\n @if (story.totalSlides) {\n <div class=\"rtsee-presentation-header-active-story-progress\" aria-hidden=\"true\">\n <div class=\"rtsee-presentation-header-active-story-progress-bar\"\n [style.width.%]=\"((story.activeSlideNumber || 1) / story.totalSlides) * 100\"\n ></div>\n </div>\n }\n </div>\n }\n @if (presentation.dashboard && !presentation.activeStory && !presentation.isDashboardOpen && !presentation.openedStoryDetails) {\n <p-button [label]=\"presentation.labels[RTSeeTextLabelKeys.DASHBOARD_BUTTON]\"\n (click)=\"presentation.toggleDashboardState()\"\n ></p-button>\n }\n</header>\n" }]
|
|
7099
7711
|
}], propDecorators: { presentation: [{
|
|
7100
7712
|
type: Input
|
|
7101
7713
|
}] } });
|
|
@@ -8021,7 +8633,7 @@ class IllustratorComponent {
|
|
|
8021
8633
|
}
|
|
8022
8634
|
}
|
|
8023
8635
|
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 }); }
|
|
8024
|
-
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 }); }
|
|
8636
|
+
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: 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8025
8637
|
}
|
|
8026
8638
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IllustratorComponent, decorators: [{
|
|
8027
8639
|
type: Component,
|
|
@@ -8699,6 +9311,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
8699
9311
|
}] } });
|
|
8700
9312
|
|
|
8701
9313
|
class ManageEntitiesListComponent {
|
|
9314
|
+
constructor(cdr) {
|
|
9315
|
+
this.cdr = cdr;
|
|
9316
|
+
this.subscribedManageList = null;
|
|
9317
|
+
this.onStateChanged = () => {
|
|
9318
|
+
this.cdr.markForCheck();
|
|
9319
|
+
this.cdr.detectChanges();
|
|
9320
|
+
};
|
|
9321
|
+
}
|
|
9322
|
+
ngOnInit() {
|
|
9323
|
+
this.bindManageList();
|
|
9324
|
+
}
|
|
9325
|
+
ngOnChanges(changes) {
|
|
9326
|
+
if (changes['manageList']) {
|
|
9327
|
+
this.bindManageList();
|
|
9328
|
+
}
|
|
9329
|
+
}
|
|
9330
|
+
ngOnDestroy() {
|
|
9331
|
+
this.unbindManageList();
|
|
9332
|
+
}
|
|
8702
9333
|
onItemDropped(event) {
|
|
8703
9334
|
this.manageList.activeListForm?.moveItem(event.previousIndex, event.currentIndex);
|
|
8704
9335
|
}
|
|
@@ -8712,7 +9343,10 @@ class ManageEntitiesListComponent {
|
|
|
8712
9343
|
item.onFieldChanged();
|
|
8713
9344
|
}
|
|
8714
9345
|
submit() {
|
|
8715
|
-
|
|
9346
|
+
if (!this.manageList.activeListForm) {
|
|
9347
|
+
return;
|
|
9348
|
+
}
|
|
9349
|
+
this.manageList.activeListForm.submit();
|
|
8716
9350
|
}
|
|
8717
9351
|
cancel() {
|
|
8718
9352
|
this.manageList.cancel();
|
|
@@ -8720,8 +9354,24 @@ class ManageEntitiesListComponent {
|
|
|
8720
9354
|
deleteList() {
|
|
8721
9355
|
void this.manageList.delete();
|
|
8722
9356
|
}
|
|
8723
|
-
|
|
8724
|
-
|
|
9357
|
+
bindManageList() {
|
|
9358
|
+
if (this.subscribedManageList === this.manageList) {
|
|
9359
|
+
return;
|
|
9360
|
+
}
|
|
9361
|
+
this.unbindManageList();
|
|
9362
|
+
if (this.manageList) {
|
|
9363
|
+
this.subscribedManageList = this.manageList;
|
|
9364
|
+
this.manageList.on('save-error', this.onStateChanged);
|
|
9365
|
+
}
|
|
9366
|
+
}
|
|
9367
|
+
unbindManageList() {
|
|
9368
|
+
if (this.subscribedManageList) {
|
|
9369
|
+
this.subscribedManageList.off('save-error', this.onStateChanged);
|
|
9370
|
+
this.subscribedManageList = null;
|
|
9371
|
+
}
|
|
9372
|
+
}
|
|
9373
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9374
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ManageEntitiesListComponent, isStandalone: true, selector: "rtsee-manage-entities-list", inputs: { manageList: "manageList" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"rtsee-manage-entities-list\">\n @if (manageList.activeListForm; as form) {\n <rtsee-form [form]=\"form\" (formSubmit)=\"submit()\">\n <div rtseeFormBody class=\"rtsee-entity-list-items-editor\">\n <div class=\"rtsee-entity-list-items-header\">\n <h4 class=\"rtsee-entity-list-items-title\">\n List Items ({{ form.items.length }})\n </h4>\n <span class=\"rtsee-entity-list-items-hint\">\n Use the drag handle to reorder items (updates priority).\n </span>\n </div>\n\n @if (form.items.length > 0) {\n <div\n cdkDropList\n (cdkDropListDropped)=\"onItemDropped($event)\"\n class=\"rtsee-entity-list-items-dropzone\"\n >\n @for (item of form.items; track item.id; let idx = $index) {\n <div cdkDrag class=\"rtsee-entity-list-item-card\">\n <div class=\"rtsee-entity-list-item-card-top\">\n <!-- Dedicated drag handle: ONLY draggable via this handle on mobile & desktop -->\n <button\n type=\"button\"\n cdkDragHandle\n class=\"rtsee-entity-list-item-drag-handle\"\n aria-label=\"Drag item to reorder\"\n title=\"Drag to reorder\"\n >\n <i class=\"pi pi-bars\" aria-hidden=\"true\"></i>\n </button>\n\n <span class=\"rtsee-entity-list-item-priority-badge\">\n #{{ idx + 1 }}\n </span>\n\n @if (item.hasEntity) {\n <div class=\"rtsee-entity-list-item-entity-summary\">\n @if (item.imageUrl) {\n <img\n [src]=\"item.imageUrl\"\n [alt]=\"item.entityName\"\n class=\"rtsee-entity-list-item-thumb\"\n />\n } @else {\n <span class=\"rtsee-entity-list-item-thumb rtsee-entity-list-item-thumb-placeholder\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n <span class=\"rtsee-entity-list-item-entity-name\">\n {{ item.entityName }}\n </span>\n </div>\n } @else {\n <div class=\"rtsee-entity-list-item-entity-picker\">\n <rtsee-autocomplete\n [config]=\"item.entityAutocomplete\"\n ></rtsee-autocomplete>\n </div>\n }\n\n <button\n type=\"button\"\n class=\"rtsee-entity-list-item-remove-btn\"\n (click)=\"onRemoveItemClick(item.id)\"\n aria-label=\"Remove item\"\n title=\"Remove item\"\n >\n <i class=\"pi pi-trash\" aria-hidden=\"true\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-entity-list-item-card-fields\">\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field\n [field]=\"item.labelField\"\n (fieldChanged)=\"onItemFieldChanged(item)\"\n ></rtsee-form-field>\n </div>\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field\n [field]=\"item.descriptionField\"\n (fieldChanged)=\"onItemFieldChanged(item)\"\n ></rtsee-form-field>\n </div>\n @if (item.translations) {\n <rtsee-translations-panel\n [panel]=\"item.translations\"\n ></rtsee-translations-panel>\n }\n </div>\n </div>\n }\n </div>\n }\n\n <div class=\"rtsee-entity-list-add-bar\">\n <div class=\"rtsee-entity-list-add-picker\">\n <rtsee-autocomplete\n [config]=\"form.itemPickerAutocomplete\"\n ></rtsee-autocomplete>\n </div>\n <p-button\n type=\"button\"\n icon=\"pi pi-plus\"\n label=\"Add Item\"\n severity=\"secondary\"\n (click)=\"onAddItemClick()\"\n ></p-button>\n </div>\n </div>\n\n @if (manageList.list.id) {\n <p-button\n type=\"button\"\n label=\"Delete\"\n severity=\"danger\"\n [outlined]=\"true\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n (click)=\"deleteList()\"\n ></p-button>\n }\n <p-button\n type=\"button\"\n label=\"Cancel\"\n severity=\"secondary\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n (click)=\"cancel()\"\n ></p-button>\n <p-button\n type=\"submit\"\n label=\"Save List\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n ></p-button>\n </rtsee-form>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }, { kind: "component", type: FormFieldComponent, selector: "rtsee-form-field", inputs: ["field"], outputs: ["fieldChanged"] }, { kind: "component", type: AutocompleteComponent, selector: "rtsee-autocomplete", inputs: ["config", "disabled"] }, { kind: "component", type: TranslationsPanelComponent, selector: "rtsee-translations-panel", inputs: ["panel"] }] }); }
|
|
8725
9375
|
}
|
|
8726
9376
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListComponent, decorators: [{
|
|
8727
9377
|
type: Component,
|
|
@@ -8734,8 +9384,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
8734
9384
|
FormComponent,
|
|
8735
9385
|
FormFieldComponent,
|
|
8736
9386
|
AutocompleteComponent,
|
|
8737
|
-
|
|
8738
|
-
|
|
9387
|
+
TranslationsPanelComponent,
|
|
9388
|
+
], template: "<div class=\"rtsee-manage-entities-list\">\n @if (manageList.activeListForm; as form) {\n <rtsee-form [form]=\"form\" (formSubmit)=\"submit()\">\n <div rtseeFormBody class=\"rtsee-entity-list-items-editor\">\n <div class=\"rtsee-entity-list-items-header\">\n <h4 class=\"rtsee-entity-list-items-title\">\n List Items ({{ form.items.length }})\n </h4>\n <span class=\"rtsee-entity-list-items-hint\">\n Use the drag handle to reorder items (updates priority).\n </span>\n </div>\n\n @if (form.items.length > 0) {\n <div\n cdkDropList\n (cdkDropListDropped)=\"onItemDropped($event)\"\n class=\"rtsee-entity-list-items-dropzone\"\n >\n @for (item of form.items; track item.id; let idx = $index) {\n <div cdkDrag class=\"rtsee-entity-list-item-card\">\n <div class=\"rtsee-entity-list-item-card-top\">\n <!-- Dedicated drag handle: ONLY draggable via this handle on mobile & desktop -->\n <button\n type=\"button\"\n cdkDragHandle\n class=\"rtsee-entity-list-item-drag-handle\"\n aria-label=\"Drag item to reorder\"\n title=\"Drag to reorder\"\n >\n <i class=\"pi pi-bars\" aria-hidden=\"true\"></i>\n </button>\n\n <span class=\"rtsee-entity-list-item-priority-badge\">\n #{{ idx + 1 }}\n </span>\n\n @if (item.hasEntity) {\n <div class=\"rtsee-entity-list-item-entity-summary\">\n @if (item.imageUrl) {\n <img\n [src]=\"item.imageUrl\"\n [alt]=\"item.entityName\"\n class=\"rtsee-entity-list-item-thumb\"\n />\n } @else {\n <span class=\"rtsee-entity-list-item-thumb rtsee-entity-list-item-thumb-placeholder\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n <span class=\"rtsee-entity-list-item-entity-name\">\n {{ item.entityName }}\n </span>\n </div>\n } @else {\n <div class=\"rtsee-entity-list-item-entity-picker\">\n <rtsee-autocomplete\n [config]=\"item.entityAutocomplete\"\n ></rtsee-autocomplete>\n </div>\n }\n\n <button\n type=\"button\"\n class=\"rtsee-entity-list-item-remove-btn\"\n (click)=\"onRemoveItemClick(item.id)\"\n aria-label=\"Remove item\"\n title=\"Remove item\"\n >\n <i class=\"pi pi-trash\" aria-hidden=\"true\"></i>\n </button>\n </div>\n\n <div class=\"rtsee-entity-list-item-card-fields\">\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field\n [field]=\"item.labelField\"\n (fieldChanged)=\"onItemFieldChanged(item)\"\n ></rtsee-form-field>\n </div>\n <div class=\"rtsee-form-field-container rts-form-field\">\n <rtsee-form-field\n [field]=\"item.descriptionField\"\n (fieldChanged)=\"onItemFieldChanged(item)\"\n ></rtsee-form-field>\n </div>\n @if (item.translations) {\n <rtsee-translations-panel\n [panel]=\"item.translations\"\n ></rtsee-translations-panel>\n }\n </div>\n </div>\n }\n </div>\n }\n\n <div class=\"rtsee-entity-list-add-bar\">\n <div class=\"rtsee-entity-list-add-picker\">\n <rtsee-autocomplete\n [config]=\"form.itemPickerAutocomplete\"\n ></rtsee-autocomplete>\n </div>\n <p-button\n type=\"button\"\n icon=\"pi pi-plus\"\n label=\"Add Item\"\n severity=\"secondary\"\n (click)=\"onAddItemClick()\"\n ></p-button>\n </div>\n </div>\n\n @if (manageList.list.id) {\n <p-button\n type=\"button\"\n label=\"Delete\"\n severity=\"danger\"\n [outlined]=\"true\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n (click)=\"deleteList()\"\n ></p-button>\n }\n <p-button\n type=\"button\"\n label=\"Cancel\"\n severity=\"secondary\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n (click)=\"cancel()\"\n ></p-button>\n <p-button\n type=\"submit\"\n label=\"Save List\"\n [disabled]=\"manageList.saveInProgress || manageList.deleteInProgress\"\n ></p-button>\n </rtsee-form>\n }\n</div>\n" }]
|
|
9389
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { manageList: [{
|
|
8739
9390
|
type: Input
|
|
8740
9391
|
}] } });
|
|
8741
9392
|
|
|
@@ -8754,6 +9405,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
8754
9405
|
}] } });
|
|
8755
9406
|
|
|
8756
9407
|
class ManageEntitiesListGroupComponent {
|
|
9408
|
+
constructor(cdr) {
|
|
9409
|
+
this.cdr = cdr;
|
|
9410
|
+
this.subscribedManageGroup = null;
|
|
9411
|
+
this.onStateChanged = () => {
|
|
9412
|
+
this.cdr.markForCheck();
|
|
9413
|
+
this.cdr.detectChanges();
|
|
9414
|
+
};
|
|
9415
|
+
}
|
|
9416
|
+
ngOnInit() {
|
|
9417
|
+
this.bindManageGroup();
|
|
9418
|
+
}
|
|
9419
|
+
ngOnChanges(changes) {
|
|
9420
|
+
if (changes['manageGroup']) {
|
|
9421
|
+
this.bindManageGroup();
|
|
9422
|
+
}
|
|
9423
|
+
}
|
|
9424
|
+
ngOnDestroy() {
|
|
9425
|
+
this.unbindManageGroup();
|
|
9426
|
+
}
|
|
8757
9427
|
onListDropped(event) {
|
|
8758
9428
|
this.manageGroup.activeGroupForm?.moveList(event.previousIndex, event.currentIndex);
|
|
8759
9429
|
}
|
|
@@ -8761,7 +9431,10 @@ class ManageEntitiesListGroupComponent {
|
|
|
8761
9431
|
this.manageGroup.activeGroupForm?.removeList(listId);
|
|
8762
9432
|
}
|
|
8763
9433
|
submit() {
|
|
8764
|
-
|
|
9434
|
+
if (!this.manageGroup.activeGroupForm) {
|
|
9435
|
+
return;
|
|
9436
|
+
}
|
|
9437
|
+
this.manageGroup.activeGroupForm.submit();
|
|
8765
9438
|
}
|
|
8766
9439
|
cancel() {
|
|
8767
9440
|
this.manageGroup.cancel();
|
|
@@ -8769,8 +9442,24 @@ class ManageEntitiesListGroupComponent {
|
|
|
8769
9442
|
deleteGroup() {
|
|
8770
9443
|
void this.manageGroup.delete();
|
|
8771
9444
|
}
|
|
8772
|
-
|
|
8773
|
-
|
|
9445
|
+
bindManageGroup() {
|
|
9446
|
+
if (this.subscribedManageGroup === this.manageGroup) {
|
|
9447
|
+
return;
|
|
9448
|
+
}
|
|
9449
|
+
this.unbindManageGroup();
|
|
9450
|
+
if (this.manageGroup) {
|
|
9451
|
+
this.subscribedManageGroup = this.manageGroup;
|
|
9452
|
+
this.manageGroup.on('save-error', this.onStateChanged);
|
|
9453
|
+
}
|
|
9454
|
+
}
|
|
9455
|
+
unbindManageGroup() {
|
|
9456
|
+
if (this.subscribedManageGroup) {
|
|
9457
|
+
this.subscribedManageGroup.off('save-error', this.onStateChanged);
|
|
9458
|
+
this.subscribedManageGroup = null;
|
|
9459
|
+
}
|
|
9460
|
+
}
|
|
9461
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListGroupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9462
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ManageEntitiesListGroupComponent, isStandalone: true, selector: "rtsee-manage-entities-list-group", inputs: { manageGroup: "manageGroup" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"rtsee-manage-entities-list-group\">\n @if (manageGroup.activeGroupForm; as form) {\n <rtsee-form [form]=\"form\" (formSubmit)=\"submit()\">\n <div rtseeFormBody class=\"rtsee-entity-list-group-order\">\n @if (form.selectedLists.length > 0) {\n <div class=\"rtsee-entity-list-items-header\">\n <h4 class=\"rtsee-entity-list-items-title\">\n Selected Lists Order ({{ form.selectedLists.length }})\n </h4>\n <span class=\"rtsee-entity-list-items-hint\">\n Drag the handle to reorder how list thumbnails appear side by side.\n </span>\n </div>\n <div\n cdkDropList\n (cdkDropListDropped)=\"onListDropped($event)\"\n class=\"rtsee-entity-list-items-dropzone\"\n >\n @for (listItem of form.selectedLists; track listItem.id; let idx = $index) {\n <div cdkDrag class=\"rtsee-entity-list-item-card rtsee-entity-list-item-card-compact\">\n <div class=\"rtsee-entity-list-item-card-top\">\n <button\n type=\"button\"\n cdkDragHandle\n class=\"rtsee-entity-list-item-drag-handle\"\n aria-label=\"Drag list to reorder\"\n >\n <i class=\"pi pi-bars\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"rtsee-entity-list-item-priority-badge\">\n #{{ idx + 1 }}\n </span>\n <div class=\"rtsee-entity-list-item-entity-summary\">\n @if (listItem.imageUrl) {\n <img\n [src]=\"listItem.imageUrl\"\n [alt]=\"listItem.name\"\n class=\"rtsee-entity-list-item-thumb\"\n />\n } @else {\n <span class=\"rtsee-entity-list-item-thumb rtsee-entity-list-item-thumb-placeholder\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n <span class=\"rtsee-entity-list-item-entity-name\">\n {{ listItem.name }}\n </span>\n </div>\n <button\n type=\"button\"\n class=\"rtsee-entity-list-item-remove-btn\"\n (click)=\"onRemoveList(listItem.id)\"\n aria-label=\"Remove list from group\"\n >\n <i class=\"pi pi-times\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n }\n </div>\n }\n </div>\n\n @if (manageGroup.group.id) {\n <p-button\n type=\"button\"\n label=\"Delete\"\n severity=\"danger\"\n [outlined]=\"true\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n (click)=\"deleteGroup()\"\n ></p-button>\n }\n <p-button\n type=\"button\"\n label=\"Cancel\"\n severity=\"secondary\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n (click)=\"cancel()\"\n ></p-button>\n <p-button\n type=\"submit\"\n label=\"Save Group\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n ></p-button>\n </rtsee-form>\n }\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: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: FormComponent, selector: "rtsee-form", inputs: ["form"], outputs: ["formSubmit"] }] }); }
|
|
8774
9463
|
}
|
|
8775
9464
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ManageEntitiesListGroupComponent, decorators: [{
|
|
8776
9465
|
type: Component,
|
|
@@ -8781,7 +9470,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
8781
9470
|
CdkDragHandle,
|
|
8782
9471
|
FormComponent,
|
|
8783
9472
|
], template: "<div class=\"rtsee-manage-entities-list-group\">\n @if (manageGroup.activeGroupForm; as form) {\n <rtsee-form [form]=\"form\" (formSubmit)=\"submit()\">\n <div rtseeFormBody class=\"rtsee-entity-list-group-order\">\n @if (form.selectedLists.length > 0) {\n <div class=\"rtsee-entity-list-items-header\">\n <h4 class=\"rtsee-entity-list-items-title\">\n Selected Lists Order ({{ form.selectedLists.length }})\n </h4>\n <span class=\"rtsee-entity-list-items-hint\">\n Drag the handle to reorder how list thumbnails appear side by side.\n </span>\n </div>\n <div\n cdkDropList\n (cdkDropListDropped)=\"onListDropped($event)\"\n class=\"rtsee-entity-list-items-dropzone\"\n >\n @for (listItem of form.selectedLists; track listItem.id; let idx = $index) {\n <div cdkDrag class=\"rtsee-entity-list-item-card rtsee-entity-list-item-card-compact\">\n <div class=\"rtsee-entity-list-item-card-top\">\n <button\n type=\"button\"\n cdkDragHandle\n class=\"rtsee-entity-list-item-drag-handle\"\n aria-label=\"Drag list to reorder\"\n >\n <i class=\"pi pi-bars\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"rtsee-entity-list-item-priority-badge\">\n #{{ idx + 1 }}\n </span>\n <div class=\"rtsee-entity-list-item-entity-summary\">\n @if (listItem.imageUrl) {\n <img\n [src]=\"listItem.imageUrl\"\n [alt]=\"listItem.name\"\n class=\"rtsee-entity-list-item-thumb\"\n />\n } @else {\n <span class=\"rtsee-entity-list-item-thumb rtsee-entity-list-item-thumb-placeholder\">\n <i class=\"pi pi-image\"></i>\n </span>\n }\n <span class=\"rtsee-entity-list-item-entity-name\">\n {{ listItem.name }}\n </span>\n </div>\n <button\n type=\"button\"\n class=\"rtsee-entity-list-item-remove-btn\"\n (click)=\"onRemoveList(listItem.id)\"\n aria-label=\"Remove list from group\"\n >\n <i class=\"pi pi-times\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n }\n </div>\n }\n </div>\n\n @if (manageGroup.group.id) {\n <p-button\n type=\"button\"\n label=\"Delete\"\n severity=\"danger\"\n [outlined]=\"true\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n (click)=\"deleteGroup()\"\n ></p-button>\n }\n <p-button\n type=\"button\"\n label=\"Cancel\"\n severity=\"secondary\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n (click)=\"cancel()\"\n ></p-button>\n <p-button\n type=\"submit\"\n label=\"Save Group\"\n [disabled]=\"manageGroup.saveInProgress || manageGroup.deleteInProgress\"\n ></p-button>\n </rtsee-form>\n }\n</div>\n" }]
|
|
8784
|
-
}], propDecorators: { manageGroup: [{
|
|
9473
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { manageGroup: [{
|
|
8785
9474
|
type: Input
|
|
8786
9475
|
}] } });
|
|
8787
9476
|
|
|
@@ -9304,15 +9993,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
9304
9993
|
}] } });
|
|
9305
9994
|
|
|
9306
9995
|
class StoryDetailsComponent {
|
|
9307
|
-
constructor() {
|
|
9996
|
+
constructor(hostRef, scroller, document) {
|
|
9997
|
+
this.hostRef = hostRef;
|
|
9998
|
+
this.scroller = scroller;
|
|
9999
|
+
this.document = document;
|
|
9308
10000
|
this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
|
|
9309
10001
|
this.Math = Math;
|
|
9310
10002
|
}
|
|
10003
|
+
ngAfterViewInit() {
|
|
10004
|
+
this.scrollToTop();
|
|
10005
|
+
}
|
|
10006
|
+
ngOnChanges(changes) {
|
|
10007
|
+
if (changes['story'] && !changes['story'].firstChange) {
|
|
10008
|
+
this.scrollToTop();
|
|
10009
|
+
}
|
|
10010
|
+
}
|
|
9311
10011
|
onRelatedStoryClicked(relatedStory) {
|
|
10012
|
+
this.scrollToTop();
|
|
9312
10013
|
if (!relatedStory.friendlyUrl) {
|
|
9313
10014
|
void this.presentation.openStoryDetails(relatedStory.id);
|
|
9314
10015
|
}
|
|
9315
10016
|
}
|
|
10017
|
+
scrollToTop() {
|
|
10018
|
+
if (typeof window === 'undefined') {
|
|
10019
|
+
return;
|
|
10020
|
+
}
|
|
10021
|
+
const performReset = () => {
|
|
10022
|
+
this.scroller.scrollToPosition([0, 0]);
|
|
10023
|
+
window.scrollTo({ top: 0, left: 0, behavior: 'instant' });
|
|
10024
|
+
if (this.document?.documentElement) {
|
|
10025
|
+
this.document.documentElement.scrollTop = 0;
|
|
10026
|
+
}
|
|
10027
|
+
if (this.document?.body) {
|
|
10028
|
+
this.document.body.scrollTop = 0;
|
|
10029
|
+
}
|
|
10030
|
+
let parent = this.hostRef?.nativeElement?.parentElement || null;
|
|
10031
|
+
while (parent) {
|
|
10032
|
+
if (parent.scrollTop > 0) {
|
|
10033
|
+
parent.scrollTop = 0;
|
|
10034
|
+
}
|
|
10035
|
+
parent = parent.parentElement;
|
|
10036
|
+
}
|
|
10037
|
+
};
|
|
10038
|
+
performReset();
|
|
10039
|
+
if (typeof requestAnimationFrame === 'function') {
|
|
10040
|
+
requestAnimationFrame(() => performReset());
|
|
10041
|
+
}
|
|
10042
|
+
}
|
|
9316
10043
|
getStarArray(rating) {
|
|
9317
10044
|
const stars = [];
|
|
9318
10045
|
const val = rating || 0;
|
|
@@ -9329,13 +10056,16 @@ class StoryDetailsComponent {
|
|
|
9329
10056
|
}
|
|
9330
10057
|
return stars;
|
|
9331
10058
|
}
|
|
9332
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9333
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryDetailsComponent, isStandalone: true, selector: "rtsee-story-details", inputs: { story: "story", presentation: "presentation", messenger: "messenger" }, ngImport: i0, template: "<div\n class=\"rtsee-story-details\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n>\n @if (story.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"story.imageUrl\" />\n }\n @if (story.languageKey) {\n <meta itemprop=\"inLanguage\" [attr.content]=\"story.languageKey === 'ua' ? 'uk' : 'en'\" />\n }\n @if (story.totalSlides) {\n <meta itemprop=\"numberOfPages\" [attr.content]=\"story.totalSlides\" />\n }\n <section\n class=\"rtsee-story-details-cover\"\n [style.background-image]=\"'url(' + story.imageUrl + ')'\"\n >\n <button\n class=\"rtsee-story-details-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoryDetails()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-details-cover-overlay\"></div>\n <div class=\"rtsee-story-details-cover-content\">\n <div class=\"rtsee-story-details-cover-badges\">\n @if (story.categories?.length && false) {\n @for (category of story.categories; track category.id) {\n <span class=\"rtsee-story-details-tag-pill\">\n {{ category.name }}\n </span>\n }\n }\n @if (story.tags?.length) {\n @for (tag of story.tags; track tag.id) {\n <span\n class=\"rtsee-story-details-tag-pill rtsee-story-details-tag-pill-label\"\n >\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n }\n </div>\n\n <h1 class=\"rtsee-story-details-cover-title\" itemprop=\"name\">{{ story.name }}</h1>\n\n <div class=\"rtsee-story-details-cover-meta\">\n @if (story.rating && story.rating > 0) {\n <div\n class=\"rtsee-story-details-cover-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <span class=\"rtsee-story-details-stars\">\n @for (star of getStarArray(story.rating); track $index) {\n <span\n class=\"rtsee-story-details-star\"\n [class.rtsee-story-details-star-full]=\"star === 'full'\"\n [class.rtsee-story-details-star-half]=\"star === 'half'\"\n [class.rtsee-story-details-star-empty]=\"star === 'empty'\"\n >\n @if (star === \"full\") {\n \u2605\n } @else if (star === \"half\") {\n \u2605\n } @else {\n \u2606\n }\n </span>\n }\n </span>\n <span class=\"rtsee-story-details-rating-number\" itemprop=\"ratingValue\">{{\n story.rating | number:'1.1-1'\n }}</span>\n <meta itemprop=\"ratingCount\" [attr.content]=\"story.ratesCount || 1\" />\n <span class=\"rtsee-story-details-rating-count\">\n <span>(</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}:</span>\n <span> </span>\n <span itemprop=\"reviewCount\">{{ story.ratesCount || 1 }}</span>\n <span>)</span>\n </span\n >\n </div>\n }\n </div>\n </div>\n </section>\n\n <!-- CONTENT AREA -->\n <div class=\"rtsee-story-details-content-wrapper\">\n <!-- Reading panel: what the user is about to read + the main CTA -->\n <section class=\"rtsee-story-details-reading-panel\" aria-label=\"{{ story.name }}\">\n @if (story.totalSlides) {\n <rtsee-story-slides-preview\n [story]=\"story\"\n [slidesLabel]=\"presentation.labels[RTSeeTextLabelKeys.STORY_PAGES_LABEL]\"\n [minuteLabel]=\"presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL]\"\n ></rtsee-story-slides-preview>\n }\n <p-button\n (click)=\"presentation.setActiveStory(story)\"\n [severity]=\"'primary'\"\n [label]=\"story.preselectedSlideNumber ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON] : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\"\n icon=\"pi pi-book\"\n iconPos=\"left\"\n class=\"rtsee-story-details-start-reading rts-action-button\"\n >\n </p-button>\n </section>\n <div class=\"rtsee-story-details-content-grid\">\n <!-- Description Card -->\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" />\n <path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_ABOUT_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"description\">\n {{ story.description }}\n </p>\n </article>\n\n @if (story.history) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <polyline points=\"12 6 12 12 14 14\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_HISTORY_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"backstory\">\n {{ story.history }}\n </p>\n </article>\n }\n\n @if (story.moralMeaning) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_MORAL_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"teaches\">\n {{ story.moralMeaning }}\n </p>\n </article>\n }\n </div>\n\n <!-- Author -->\n @if (story.author) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-author-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M12 20h9\" />\n <path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\" />\n </svg>\n <h2 id=\"rtsee-story-details-author-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.STORY_AUTHOR_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-story-details-elements-featured\">\n <rtsee-story-element-thumbnail\n [name]=\"story.author.name\"\n [description]=\"story.author.description\"\n [imageUrl]=\"story.author.imageUrl\"\n itemProp=\"author\"\n schemaType=\"Person\"\n [horizontal]=\"true\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </div>\n </section>\n }\n\n <!-- Characters -->\n @if (story.characters.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-characters-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n </svg>\n <h2 id=\"rtsee-story-details-characters-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.CHARACTERS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (character of story.characters; track character.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"character.name\"\n [description]=\"character.description\"\n [imageUrl]=\"character.imageUrl\"\n itemProp=\"character\"\n schemaType=\"Person\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Artifacts -->\n @if (story.artifacts.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-artifacts-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M6 3h12l4 6-10 13L2 9z\" />\n <path d=\"M11 3 8 9l4 13 4-13-3-6\" />\n <path d=\"M2 9h20\" />\n </svg>\n <h2 id=\"rtsee-story-details-artifacts-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.ARTIFACTS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (artifact of story.artifacts; track artifact.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"artifact.name\"\n [description]=\"artifact.description\"\n [imageUrl]=\"artifact.imageUrl\"\n itemProp=\"mentions\"\n schemaType=\"Thing\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Places -->\n @if (story.locations.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-places-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\" />\n <circle cx=\"12\" cy=\"10\" r=\"3\" />\n </svg>\n <h2 id=\"rtsee-story-details-places-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.LOCATIONS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (place of story.locations; track place.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"place.name\"\n [description]=\"place.description\"\n [imageUrl]=\"place.imageUrl\"\n itemProp=\"contentLocation\"\n schemaType=\"Place\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n @if (messenger) {\n <rtsee-entity-preview\n [entity]=\"story\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n }\n\n <!-- More Like This (Related Stories) -->\n @if (story.relatedStories?.length) {\n <section\n class=\"rtsee-story-details-elements rtsee-story-details-more-like-this\"\n aria-labelledby=\"rtsee-story-details-related-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polygon points=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />\n </svg>\n <h2 id=\"rtsee-story-details-related-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.MORE_LIKE_THIS_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-presentation-stories-list rtsee-story-details-related-list\">\n @for (relatedStory of story.relatedStories; track relatedStory.id) {\n <div\n class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onRelatedStoryClicked(relatedStory)\"\n >\n <rtsee-story-thumbnail\n [story]=\"relatedStory\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n </section>\n }\n\n @if (story.categories?.length && false) {\n <div class=\"rtsee-story-details-categories\">\n @for (category of story.categories; track category.id) {\n <p-tag [value]=\"category.name\"></p-tag>\n }\n </div>\n }\n\n @if (story.tags?.length && false) {\n <div class=\"rtsee-story-details-labels\">\n @for (tag of story.tags; track tag.id) {\n <p-chip class=\"rtsee-story-details-label\">\n @if (tag.symbol) {\n <span class=\"rtsee-story-details-label-left\">{{\n tag.symbol\n }}</span>\n }\n <span class=\"rtsee-story-details-label-right\">{{\n tag.name\n }}</span>\n </p-chip>\n }\n </div>\n }\n\n <div class=\"rtsee-story-details-description-history\"></div>\n @if (story.isPublished && false) {\n <div class=\"rtsee-story-details-feedback\">\n <p>feedback here</p>\n </div>\n } @else if (messenger && story.discussion && false) {\n <div class=\"rtsee-story-details-votes\">\n <p class=\"rtsee-story-details-comments-label\">Comments</p>\n <rtsee-chat\n [messenger]=\"messenger\"\n [chatData]=\"story.discussion\"\n ></rtsee-chat>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { 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: ChatComponent, selector: "rtsee-chat", inputs: ["chat", "chatData", "entity", "messenger", "isFramed"] }, { kind: "component", type: RtseeEntityPreviewComponent, selector: "rtsee-entity-preview", inputs: ["entity", "messenger"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: StoryElementThumbnailComponent, selector: "rtsee-story-element-thumbnail", inputs: ["name", "description", "imageUrl", "itemProp", "schemaType", "horizontal", "showMoreLabel", "showLessLabel"] }, { kind: "component", type: StorySlidesPreviewComponent, selector: "rtsee-story-slides-preview", inputs: ["story", "slidesLabel", "minuteLabel", "count"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story", "presentation"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
|
|
10059
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryDetailsComponent, deps: [{ token: i0.ElementRef }, { token: i1$3.ViewportScroller }, { token: DOCUMENT$1 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10060
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoryDetailsComponent, isStandalone: true, selector: "rtsee-story-details", inputs: { story: "story", presentation: "presentation", messenger: "messenger" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"rtsee-story-details\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n>\n @if (story.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"story.imageUrl\" />\n }\n @if (story.languageKey) {\n <meta itemprop=\"inLanguage\" [attr.content]=\"story.languageKey === 'ua' ? 'uk' : 'en'\" />\n }\n @if (story.totalSlides) {\n <meta itemprop=\"numberOfPages\" [attr.content]=\"story.totalSlides\" />\n }\n <section\n class=\"rtsee-story-details-cover\"\n [style.background-image]=\"'url(' + story.imageUrl + ')'\"\n >\n <button\n class=\"rtsee-story-details-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoryDetails()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-details-cover-overlay\"></div>\n <div class=\"rtsee-story-details-cover-content\">\n <div class=\"rtsee-story-details-cover-badges\">\n @if (story.categories?.length && false) {\n @for (category of story.categories; track category.id) {\n <span class=\"rtsee-story-details-tag-pill\">\n {{ category.name }}\n </span>\n }\n }\n @if (story.tags?.length) {\n @for (tag of story.tags; track tag.id) {\n <span\n class=\"rtsee-story-details-tag-pill rtsee-story-details-tag-pill-label\"\n >\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n }\n </div>\n\n <h1 class=\"rtsee-story-details-cover-title\" itemprop=\"name\">{{ story.name }}</h1>\n\n <div class=\"rtsee-story-details-cover-meta\">\n @if (story.rating && story.rating > 0) {\n <div\n class=\"rtsee-story-details-cover-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <span class=\"rtsee-story-details-stars\">\n @for (star of getStarArray(story.rating); track $index) {\n <span\n class=\"rtsee-story-details-star\"\n [class.rtsee-story-details-star-full]=\"star === 'full'\"\n [class.rtsee-story-details-star-half]=\"star === 'half'\"\n [class.rtsee-story-details-star-empty]=\"star === 'empty'\"\n >\n @if (star === \"full\") {\n \u2605\n } @else if (star === \"half\") {\n \u2605\n } @else {\n \u2606\n }\n </span>\n }\n </span>\n <span class=\"rtsee-story-details-rating-number\" itemprop=\"ratingValue\">{{\n story.rating | number:'1.1-1'\n }}</span>\n <meta itemprop=\"ratingCount\" [attr.content]=\"story.ratesCount || 1\" />\n <span class=\"rtsee-story-details-rating-count\">\n <span>(</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}:</span>\n <span> </span>\n <span itemprop=\"reviewCount\">{{ story.ratesCount || 1 }}</span>\n <span>)</span>\n </span\n >\n </div>\n }\n </div>\n </div>\n </section>\n\n <!-- CONTENT AREA -->\n <div class=\"rtsee-story-details-content-wrapper\">\n <!-- Reading panel: what the user is about to read + the main CTA -->\n <section class=\"rtsee-story-details-reading-panel\" aria-label=\"{{ story.name }}\">\n @if (story.totalSlides) {\n <rtsee-story-slides-preview\n [story]=\"story\"\n [slidesLabel]=\"presentation.labels[RTSeeTextLabelKeys.STORY_PAGES_LABEL]\"\n [minuteLabel]=\"presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL]\"\n ></rtsee-story-slides-preview>\n }\n <p-button\n (click)=\"presentation.setActiveStory(story)\"\n [severity]=\"'primary'\"\n [label]=\"story.preselectedSlideNumber ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON] : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\"\n icon=\"pi pi-book\"\n iconPos=\"left\"\n class=\"rtsee-story-details-start-reading rts-action-button\"\n >\n </p-button>\n </section>\n <div class=\"rtsee-story-details-content-grid\">\n <!-- Description Card -->\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" />\n <path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_ABOUT_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"description\">\n {{ story.description }}\n </p>\n </article>\n\n @if (story.history) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <polyline points=\"12 6 12 12 14 14\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_HISTORY_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"backstory\">\n {{ story.history }}\n </p>\n </article>\n }\n\n @if (story.moralMeaning) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_MORAL_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"teaches\">\n {{ story.moralMeaning }}\n </p>\n </article>\n }\n </div>\n\n <!-- Author -->\n @if (story.author) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-author-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M12 20h9\" />\n <path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\" />\n </svg>\n <h2 id=\"rtsee-story-details-author-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.STORY_AUTHOR_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-story-details-elements-featured\">\n <rtsee-story-element-thumbnail\n [name]=\"story.author.name\"\n [description]=\"story.author.description\"\n [imageUrl]=\"story.author.imageUrl\"\n itemProp=\"author\"\n schemaType=\"Person\"\n [horizontal]=\"true\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </div>\n </section>\n }\n\n <!-- Characters -->\n @if (story.characters.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-characters-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n </svg>\n <h2 id=\"rtsee-story-details-characters-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.CHARACTERS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (character of story.characters; track character.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"character.name\"\n [description]=\"character.description\"\n [imageUrl]=\"character.imageUrl\"\n itemProp=\"character\"\n schemaType=\"Person\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Artifacts -->\n @if (story.artifacts.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-artifacts-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M6 3h12l4 6-10 13L2 9z\" />\n <path d=\"M11 3 8 9l4 13 4-13-3-6\" />\n <path d=\"M2 9h20\" />\n </svg>\n <h2 id=\"rtsee-story-details-artifacts-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.ARTIFACTS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (artifact of story.artifacts; track artifact.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"artifact.name\"\n [description]=\"artifact.description\"\n [imageUrl]=\"artifact.imageUrl\"\n itemProp=\"mentions\"\n schemaType=\"Thing\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Places -->\n @if (story.locations.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-places-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\" />\n <circle cx=\"12\" cy=\"10\" r=\"3\" />\n </svg>\n <h2 id=\"rtsee-story-details-places-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.LOCATIONS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (place of story.locations; track place.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"place.name\"\n [description]=\"place.description\"\n [imageUrl]=\"place.imageUrl\"\n itemProp=\"contentLocation\"\n schemaType=\"Place\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n @if (messenger) {\n <rtsee-entity-preview\n [entity]=\"story\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n }\n\n <!-- More Like This (Related Stories) -->\n @if (story.relatedStories?.length) {\n <section\n class=\"rtsee-story-details-elements rtsee-story-details-more-like-this\"\n aria-labelledby=\"rtsee-story-details-related-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polygon points=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />\n </svg>\n <h2 id=\"rtsee-story-details-related-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.MORE_LIKE_THIS_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-presentation-stories-list rtsee-story-details-related-list\">\n @for (relatedStory of story.relatedStories; track relatedStory.id) {\n <div\n class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onRelatedStoryClicked(relatedStory)\"\n >\n <rtsee-story-thumbnail\n [story]=\"relatedStory\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n </section>\n }\n\n @if (story.categories?.length && false) {\n <div class=\"rtsee-story-details-categories\">\n @for (category of story.categories; track category.id) {\n <p-tag [value]=\"category.name\"></p-tag>\n }\n </div>\n }\n\n @if (story.tags?.length && false) {\n <div class=\"rtsee-story-details-labels\">\n @for (tag of story.tags; track tag.id) {\n <p-chip class=\"rtsee-story-details-label\">\n @if (tag.symbol) {\n <span class=\"rtsee-story-details-label-left\">{{\n tag.symbol\n }}</span>\n }\n <span class=\"rtsee-story-details-label-right\">{{\n tag.name\n }}</span>\n </p-chip>\n }\n </div>\n }\n\n <div class=\"rtsee-story-details-description-history\"></div>\n @if (story.isPublished && false) {\n <div class=\"rtsee-story-details-feedback\">\n <p>feedback here</p>\n </div>\n } @else if (messenger && story.discussion && false) {\n <div class=\"rtsee-story-details-votes\">\n <p class=\"rtsee-story-details-comments-label\">Comments</p>\n <rtsee-chat\n [messenger]=\"messenger\"\n [chatData]=\"story.discussion\"\n ></rtsee-chat>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Tag, selector: "p-tag", inputs: ["styleClass", "severity", "value", "icon", "rounded"] }, { 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: ChatComponent, selector: "rtsee-chat", inputs: ["chat", "chatData", "entity", "messenger", "isFramed"] }, { kind: "component", type: RtseeEntityPreviewComponent, selector: "rtsee-entity-preview", inputs: ["entity", "messenger"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: StoryElementThumbnailComponent, selector: "rtsee-story-element-thumbnail", inputs: ["name", "description", "imageUrl", "itemProp", "schemaType", "horizontal", "showMoreLabel", "showLessLabel"] }, { kind: "component", type: StorySlidesPreviewComponent, selector: "rtsee-story-slides-preview", inputs: ["story", "slidesLabel", "minuteLabel", "count"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story", "presentation"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
|
|
9334
10061
|
}
|
|
9335
10062
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoryDetailsComponent, decorators: [{
|
|
9336
10063
|
type: Component,
|
|
9337
10064
|
args: [{ selector: 'rtsee-story-details', imports: [Chip, Tag, Button, ChatComponent, RtseeEntityPreviewComponent, RouterLink, StoryElementThumbnailComponent, StorySlidesPreviewComponent, StoryThumbnailComponent, DecimalPipe], template: "<div\n class=\"rtsee-story-details\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n>\n @if (story.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"story.imageUrl\" />\n }\n @if (story.languageKey) {\n <meta itemprop=\"inLanguage\" [attr.content]=\"story.languageKey === 'ua' ? 'uk' : 'en'\" />\n }\n @if (story.totalSlides) {\n <meta itemprop=\"numberOfPages\" [attr.content]=\"story.totalSlides\" />\n }\n <section\n class=\"rtsee-story-details-cover\"\n [style.background-image]=\"'url(' + story.imageUrl + ')'\"\n >\n <button\n class=\"rtsee-story-details-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoryDetails()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-story-details-cover-overlay\"></div>\n <div class=\"rtsee-story-details-cover-content\">\n <div class=\"rtsee-story-details-cover-badges\">\n @if (story.categories?.length && false) {\n @for (category of story.categories; track category.id) {\n <span class=\"rtsee-story-details-tag-pill\">\n {{ category.name }}\n </span>\n }\n }\n @if (story.tags?.length) {\n @for (tag of story.tags; track tag.id) {\n <span\n class=\"rtsee-story-details-tag-pill rtsee-story-details-tag-pill-label\"\n >\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n }\n </div>\n\n <h1 class=\"rtsee-story-details-cover-title\" itemprop=\"name\">{{ story.name }}</h1>\n\n <div class=\"rtsee-story-details-cover-meta\">\n @if (story.rating && story.rating > 0) {\n <div\n class=\"rtsee-story-details-cover-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <span class=\"rtsee-story-details-stars\">\n @for (star of getStarArray(story.rating); track $index) {\n <span\n class=\"rtsee-story-details-star\"\n [class.rtsee-story-details-star-full]=\"star === 'full'\"\n [class.rtsee-story-details-star-half]=\"star === 'half'\"\n [class.rtsee-story-details-star-empty]=\"star === 'empty'\"\n >\n @if (star === \"full\") {\n \u2605\n } @else if (star === \"half\") {\n \u2605\n } @else {\n \u2606\n }\n </span>\n }\n </span>\n <span class=\"rtsee-story-details-rating-number\" itemprop=\"ratingValue\">{{\n story.rating | number:'1.1-1'\n }}</span>\n <meta itemprop=\"ratingCount\" [attr.content]=\"story.ratesCount || 1\" />\n <span class=\"rtsee-story-details-rating-count\">\n <span>(</span>\n <span>{{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}:</span>\n <span> </span>\n <span itemprop=\"reviewCount\">{{ story.ratesCount || 1 }}</span>\n <span>)</span>\n </span\n >\n </div>\n }\n </div>\n </div>\n </section>\n\n <!-- CONTENT AREA -->\n <div class=\"rtsee-story-details-content-wrapper\">\n <!-- Reading panel: what the user is about to read + the main CTA -->\n <section class=\"rtsee-story-details-reading-panel\" aria-label=\"{{ story.name }}\">\n @if (story.totalSlides) {\n <rtsee-story-slides-preview\n [story]=\"story\"\n [slidesLabel]=\"presentation.labels[RTSeeTextLabelKeys.STORY_PAGES_LABEL]\"\n [minuteLabel]=\"presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL]\"\n ></rtsee-story-slides-preview>\n }\n <p-button\n (click)=\"presentation.setActiveStory(story)\"\n [severity]=\"'primary'\"\n [label]=\"story.preselectedSlideNumber ? presentation.labels[RTSeeTextLabelKeys.CONTINUE_READING_BUTTON] : presentation.labels[RTSeeTextLabelKeys.START_READING_BUTTON]\"\n icon=\"pi pi-book\"\n iconPos=\"left\"\n class=\"rtsee-story-details-start-reading rts-action-button\"\n >\n </p-button>\n </section>\n <div class=\"rtsee-story-details-content-grid\">\n <!-- Description Card -->\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" />\n <path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_ABOUT_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"description\">\n {{ story.description }}\n </p>\n </article>\n\n @if (story.history) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <polyline points=\"12 6 12 12 14 14\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_HISTORY_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"backstory\">\n {{ story.history }}\n </p>\n </article>\n }\n\n @if (story.moralMeaning) {\n <article class=\"rtsee-story-details-glass-card\">\n <div class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n </svg>\n <h2>{{presentation.labels[RTSeeTextLabelKeys.STORY_MORAL_LABEL]}}</h2>\n </div>\n <p class=\"rtsee-story-details-glass-card-text\" itemprop=\"teaches\">\n {{ story.moralMeaning }}\n </p>\n </article>\n }\n </div>\n\n <!-- Author -->\n @if (story.author) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-author-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M12 20h9\" />\n <path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\" />\n </svg>\n <h2 id=\"rtsee-story-details-author-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.STORY_AUTHOR_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-story-details-elements-featured\">\n <rtsee-story-element-thumbnail\n [name]=\"story.author.name\"\n [description]=\"story.author.description\"\n [imageUrl]=\"story.author.imageUrl\"\n itemProp=\"author\"\n schemaType=\"Person\"\n [horizontal]=\"true\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </div>\n </section>\n }\n\n <!-- Characters -->\n @if (story.characters.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-characters-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n </svg>\n <h2 id=\"rtsee-story-details-characters-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.CHARACTERS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (character of story.characters; track character.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"character.name\"\n [description]=\"character.description\"\n [imageUrl]=\"character.imageUrl\"\n itemProp=\"character\"\n schemaType=\"Person\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Artifacts -->\n @if (story.artifacts.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-artifacts-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M6 3h12l4 6-10 13L2 9z\" />\n <path d=\"M11 3 8 9l4 13 4-13-3-6\" />\n <path d=\"M2 9h20\" />\n </svg>\n <h2 id=\"rtsee-story-details-artifacts-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.ARTIFACTS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (artifact of story.artifacts; track artifact.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"artifact.name\"\n [description]=\"artifact.description\"\n [imageUrl]=\"artifact.imageUrl\"\n itemProp=\"mentions\"\n schemaType=\"Thing\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n <!-- Places -->\n @if (story.locations.length) {\n <section\n class=\"rtsee-story-details-elements\"\n aria-labelledby=\"rtsee-story-details-places-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\" />\n <circle cx=\"12\" cy=\"10\" r=\"3\" />\n </svg>\n <h2 id=\"rtsee-story-details-places-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.LOCATIONS_LABEL] }}\n </h2>\n </header>\n <ul class=\"rtsee-story-details-elements-grid\" role=\"list\">\n @for (place of story.locations; track place.id) {\n <li class=\"rtsee-story-details-elements-item\">\n <rtsee-story-element-thumbnail\n [name]=\"place.name\"\n [description]=\"place.description\"\n [imageUrl]=\"place.imageUrl\"\n itemProp=\"contentLocation\"\n schemaType=\"Place\"\n [showMoreLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_MORE_LABEL]\"\n [showLessLabel]=\"presentation.labels[RTSeeTextLabelKeys.SHOW_LESS_LABEL]\"\n ></rtsee-story-element-thumbnail>\n </li>\n }\n </ul>\n </section>\n }\n\n @if (messenger) {\n <rtsee-entity-preview\n [entity]=\"story\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n }\n\n <!-- More Like This (Related Stories) -->\n @if (story.relatedStories?.length) {\n <section\n class=\"rtsee-story-details-elements rtsee-story-details-more-like-this\"\n aria-labelledby=\"rtsee-story-details-related-heading\"\n >\n <header class=\"rtsee-story-details-glass-card-header\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polygon points=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />\n </svg>\n <h2 id=\"rtsee-story-details-related-heading\">\n {{ presentation.labels[RTSeeTextLabelKeys.MORE_LIKE_THIS_LABEL] }}\n </h2>\n </header>\n <div class=\"rtsee-presentation-stories-list rtsee-story-details-related-list\">\n @for (relatedStory of story.relatedStories; track relatedStory.id) {\n <div\n class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onRelatedStoryClicked(relatedStory)\"\n >\n <rtsee-story-thumbnail\n [story]=\"relatedStory\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n </section>\n }\n\n @if (story.categories?.length && false) {\n <div class=\"rtsee-story-details-categories\">\n @for (category of story.categories; track category.id) {\n <p-tag [value]=\"category.name\"></p-tag>\n }\n </div>\n }\n\n @if (story.tags?.length && false) {\n <div class=\"rtsee-story-details-labels\">\n @for (tag of story.tags; track tag.id) {\n <p-chip class=\"rtsee-story-details-label\">\n @if (tag.symbol) {\n <span class=\"rtsee-story-details-label-left\">{{\n tag.symbol\n }}</span>\n }\n <span class=\"rtsee-story-details-label-right\">{{\n tag.name\n }}</span>\n </p-chip>\n }\n </div>\n }\n\n <div class=\"rtsee-story-details-description-history\"></div>\n @if (story.isPublished && false) {\n <div class=\"rtsee-story-details-feedback\">\n <p>feedback here</p>\n </div>\n } @else if (messenger && story.discussion && false) {\n <div class=\"rtsee-story-details-votes\">\n <p class=\"rtsee-story-details-comments-label\">Comments</p>\n <rtsee-chat\n [messenger]=\"messenger\"\n [chatData]=\"story.discussion\"\n ></rtsee-chat>\n </div>\n }\n </div>\n</div>\n" }]
|
|
9338
|
-
}],
|
|
10065
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$3.ViewportScroller }, { type: Document, decorators: [{
|
|
10066
|
+
type: Inject,
|
|
10067
|
+
args: [DOCUMENT$1]
|
|
10068
|
+
}] }], propDecorators: { story: [{
|
|
9339
10069
|
type: Input
|
|
9340
10070
|
}], presentation: [{
|
|
9341
10071
|
type: Input
|
|
@@ -9344,20 +10074,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
9344
10074
|
}] } });
|
|
9345
10075
|
|
|
9346
10076
|
class StoriesListComponent {
|
|
9347
|
-
constructor() {
|
|
10077
|
+
constructor(hostRef, scroller, document) {
|
|
10078
|
+
this.hostRef = hostRef;
|
|
10079
|
+
this.scroller = scroller;
|
|
10080
|
+
this.document = document;
|
|
9348
10081
|
this.RTSeeTextLabelKeys = RTSeeTextLabelKeys;
|
|
9349
10082
|
this.Math = Math;
|
|
9350
10083
|
}
|
|
10084
|
+
ngAfterViewInit() {
|
|
10085
|
+
this.scrollToTop();
|
|
10086
|
+
}
|
|
10087
|
+
ngOnChanges(changes) {
|
|
10088
|
+
if (changes['list'] && !changes['list'].firstChange) {
|
|
10089
|
+
this.scrollToTop();
|
|
10090
|
+
}
|
|
10091
|
+
}
|
|
9351
10092
|
setSortBy(mode) {
|
|
9352
10093
|
this.list.setSortBy(mode);
|
|
9353
10094
|
}
|
|
9354
10095
|
onStoryClicked(story) {
|
|
10096
|
+
this.scrollToTop();
|
|
9355
10097
|
if (story && !story.friendlyUrl) {
|
|
9356
10098
|
void this.presentation.openStoryDetails(story.id);
|
|
9357
10099
|
}
|
|
9358
10100
|
}
|
|
9359
|
-
|
|
9360
|
-
|
|
10101
|
+
scrollToTop() {
|
|
10102
|
+
if (typeof window === 'undefined') {
|
|
10103
|
+
return;
|
|
10104
|
+
}
|
|
10105
|
+
const performReset = () => {
|
|
10106
|
+
this.scroller.scrollToPosition([0, 0]);
|
|
10107
|
+
window.scrollTo({ top: 0, left: 0, behavior: 'instant' });
|
|
10108
|
+
if (this.document?.documentElement) {
|
|
10109
|
+
this.document.documentElement.scrollTop = 0;
|
|
10110
|
+
}
|
|
10111
|
+
if (this.document?.body) {
|
|
10112
|
+
this.document.body.scrollTop = 0;
|
|
10113
|
+
}
|
|
10114
|
+
let parent = this.hostRef?.nativeElement?.parentElement || null;
|
|
10115
|
+
while (parent) {
|
|
10116
|
+
if (parent.scrollTop > 0) {
|
|
10117
|
+
parent.scrollTop = 0;
|
|
10118
|
+
}
|
|
10119
|
+
parent = parent.parentElement;
|
|
10120
|
+
}
|
|
10121
|
+
};
|
|
10122
|
+
performReset();
|
|
10123
|
+
if (typeof requestAnimationFrame === 'function') {
|
|
10124
|
+
requestAnimationFrame(() => performReset());
|
|
10125
|
+
}
|
|
10126
|
+
}
|
|
10127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListComponent, deps: [{ token: i0.ElementRef }, { token: i1$3.ViewportScroller }, { token: DOCUMENT$1 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10128
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoriesListComponent, isStandalone: true, selector: "rtsee-stories-list", inputs: { list: "list", presentation: "presentation", messenger: "messenger" }, usesOnChanges: true, ngImport: i0, template: "<article\n class=\"rtsee-stories-list\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n>\n <meta itemprop=\"numberOfItems\" [attr.content]=\"list.itemsCount\" />\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n\n <!-- HERO BANNER -->\n <header\n class=\"rtsee-stories-list-banner\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\n >\n <button\n type=\"button\"\n class=\"rtsee-stories-list-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoriesList()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-stories-list-banner-overlay\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-banner-content\">\n @if (list.tags?.length) {\n <div class=\"rtsee-stories-list-badges\">\n @for (tag of list.tags; track tag.id) {\n <span class=\"rtsee-stories-list-tag-pill\">\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n </div>\n }\n\n <h1 class=\"rtsee-stories-list-title\" itemprop=\"name\">{{ list.name }}</h1>\n\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-meta\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n <span class=\"rtsee-stories-list-rating-value\">{{\n list.rating | number: '1.1-1'\n }}</span>\n @if (list.ratesCount) {\n <span class=\"rtsee-stories-list-rating-count\">\n ({{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}: {{ list.ratesCount }})\n </span>\n }\n </div>\n }\n </div>\n </header>\n\n <!-- BODY -->\n <div class=\"rtsee-stories-list-content\">\n @if (list.description) {\n <section class=\"rtsee-stories-list-description-card\">\n <p class=\"rtsee-stories-list-description\" itemprop=\"description\">\n {{ list.description }}\n </p>\n </section>\n }\n\n @if (list.itemsCount > 0) {\n <div class=\"rtsee-stories-list-toolbar\">\n <span class=\"rtsee-stories-list-count-label\">\n {{ list.itemsCount }} {{ presentation.labels[RTSeeTextLabelKeys.STORIES_LABEL] }}\n </span>\n <div class=\"rtsee-stories-list-sort-toggle\" role=\"group\" aria-label=\"Sort stories\">\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'priority'\"\n (click)=\"setSortBy('priority')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.LIST_ORDER_LABEL] }}\n </button>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'rating'\"\n (click)=\"setSortBy('rating')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.RATING_SORT_LABEL] }}\n </button>\n </div>\n </div>\n\n <ol class=\"rtsee-stories-list-items\">\n @for (item of list.sortedItems; track item.id; let idx = $index) {\n <li\n class=\"rtsee-stories-list-item\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n\n <div\n class=\"rtsee-stories-list-item-card\"\n itemprop=\"item\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n >\n <a\n class=\"rtsee-stories-list-item-cover-link\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n itemprop=\"url\"\n >\n @if (item.entity?.imageUrl) {\n <img\n [src]=\"item.entity?.imageUrl\"\n [alt]=\"item.label || item.entity?.name || ''\"\n class=\"rtsee-stories-list-item-cover\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-stories-list-item-cover rtsee-stories-list-item-cover-placeholder\">\n <i class=\"pi pi-book\"></i>\n </div>\n }\n\n <div class=\"rtsee-stories-list-item-cover-top\">\n <div class=\"rtsee-stories-list-item-rank\" aria-hidden=\"true\">\n {{ idx + 1 }}\n </div>\n\n @if (item.entity?.rating && item.entity!.rating! > 0) {\n <div\n class=\"rtsee-stories-list-item-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <meta itemprop=\"ratingCount\" [attr.content]=\"item.entity!.ratesCount || 1\" />\n <span class=\"rtsee-stories-list-item-rating-star\" aria-hidden=\"true\">\u2605</span>\n <span class=\"rtsee-stories-list-item-rating-value\" itemprop=\"ratingValue\">{{\n item.entity!.rating | number: '1.1-1'\n }}</span>\n </div>\n }\n </div>\n </a>\n\n <div class=\"rtsee-stories-list-item-body\">\n <div class=\"rtsee-stories-list-item-header\">\n <h2 class=\"rtsee-stories-list-item-title\">\n <a\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n >\n <span itemprop=\"name\">{{ item.label || item.entity?.name }}</span>\n </a>\n </h2>\n\n @if (item.entity?.averageReadTime || item.entity?.recommendedAge) {\n <div class=\"rtsee-stories-list-item-meta\">\n @if (item.entity?.averageReadTime) {\n <span class=\"rtsee-stories-list-item-readtime\">\n {{ Math.ceil((item.entity!.averageReadTime || 0) / 60) }}\n {{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}\n </span>\n }\n @if (item.entity?.recommendedAge) {\n <span class=\"rtsee-stories-list-item-age\">\n {{ item.entity?.recommendedAge }}\n </span>\n }\n </div>\n }\n </div>\n\n @if (item.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.description }}\n </p>\n } @else if (item.entity?.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.entity?.description }}\n </p>\n }\n </div>\n </div>\n </li>\n }\n </ol>\n }\n\n @if (messenger) {\n <section class=\"rtsee-stories-list-rating-section\">\n <rtsee-entity-preview\n [entity]=\"list\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n </section>\n }\n </div>\n</article>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate"] }, { kind: "component", type: RtseeEntityPreviewComponent, selector: "rtsee-entity-preview", inputs: ["entity", "messenger"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
|
|
9361
10129
|
}
|
|
9362
10130
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListComponent, decorators: [{
|
|
9363
10131
|
type: Component,
|
|
@@ -9366,8 +10134,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
9366
10134
|
DecimalPipe,
|
|
9367
10135
|
RatingComponent,
|
|
9368
10136
|
RtseeEntityPreviewComponent,
|
|
9369
|
-
], template: "<article\n class=\"rtsee-stories-list\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n>\n <meta itemprop=\"numberOfItems\" [attr.content]=\"list.itemsCount\" />\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n\n <!-- HERO BANNER -->\n <header\n class=\"rtsee-stories-list-banner\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\n >\n <button\n type=\"button\"\n class=\"rtsee-stories-list-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoriesList()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-stories-list-banner-overlay\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-banner-content\">\n @if (list.tags?.length) {\n <div class=\"rtsee-stories-list-badges\">\n @for (tag of list.tags; track tag.id) {\n <span class=\"rtsee-stories-list-tag-pill\">\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n </div>\n }\n\n <h1 class=\"rtsee-stories-list-title\" itemprop=\"name\">{{ list.name }}</h1>\n\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-meta\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n <span class=\"rtsee-stories-list-rating-value\">{{\n list.rating | number: '1.1-1'\n }}</span>\n @if (list.ratesCount) {\n <span class=\"rtsee-stories-list-rating-count\">\n ({{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}: {{ list.ratesCount }})\n </span>\n }\n </div>\n }\n </div>\n </header>\n\n <!-- BODY -->\n <div class=\"rtsee-stories-list-content\">\n @if (list.description) {\n <section class=\"rtsee-stories-list-description-card\">\n <p class=\"rtsee-stories-list-description\" itemprop=\"description\">\n {{ list.description }}\n </p>\n </section>\n }\n\n @if (list.itemsCount > 0) {\n <div class=\"rtsee-stories-list-toolbar\">\n <span class=\"rtsee-stories-list-count-label\">\n {{ list.itemsCount }} {{ presentation.labels[RTSeeTextLabelKeys.STORIES_LABEL] }}\n </span>\n <div class=\"rtsee-stories-list-sort-toggle\" role=\"group\" aria-label=\"Sort stories\">\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'priority'\"\n (click)=\"setSortBy('priority')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.LIST_ORDER_LABEL] }}\n </button>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'rating'\"\n (click)=\"setSortBy('rating')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.RATING_SORT_LABEL] }}\n </button>\n </div>\n </div>\n\n <ol class=\"rtsee-stories-list-items\">\n @for (item of list.sortedItems; track item.id; let idx = $index) {\n <li\n class=\"rtsee-stories-list-item\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n
|
|
9370
|
-
}],
|
|
10137
|
+
], template: "<article\n class=\"rtsee-stories-list\"\n itemscope\n itemtype=\"https://schema.org/ItemList\"\n>\n <meta itemprop=\"numberOfItems\" [attr.content]=\"list.itemsCount\" />\n @if (list.imageUrl) {\n <meta itemprop=\"image\" [attr.content]=\"list.imageUrl\" />\n }\n\n <!-- HERO BANNER -->\n <header\n class=\"rtsee-stories-list-banner\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\n >\n <button\n type=\"button\"\n class=\"rtsee-stories-list-btn-close\"\n [routerLink]=\"[presentation.homePage]\"\n (click)=\"presentation.closeStoriesList()\"\n aria-label=\"Close\"\n >\n <span class=\"pi pi-times\"></span>\n </button>\n <div class=\"rtsee-stories-list-banner-overlay\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-banner-content\">\n @if (list.tags?.length) {\n <div class=\"rtsee-stories-list-badges\">\n @for (tag of list.tags; track tag.id) {\n <span class=\"rtsee-stories-list-tag-pill\">\n @if (tag.symbol) {\n <span class=\"symbol\">{{ tag.symbol }}</span>\n }\n {{ tag.name }}\n </span>\n }\n </div>\n }\n\n <h1 class=\"rtsee-stories-list-title\" itemprop=\"name\">{{ list.name }}</h1>\n\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-meta\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n <span class=\"rtsee-stories-list-rating-value\">{{\n list.rating | number: '1.1-1'\n }}</span>\n @if (list.ratesCount) {\n <span class=\"rtsee-stories-list-rating-count\">\n ({{ presentation.labels[RTSeeTextLabelKeys.FEEDBACKS_LABEL] }}: {{ list.ratesCount }})\n </span>\n }\n </div>\n }\n </div>\n </header>\n\n <!-- BODY -->\n <div class=\"rtsee-stories-list-content\">\n @if (list.description) {\n <section class=\"rtsee-stories-list-description-card\">\n <p class=\"rtsee-stories-list-description\" itemprop=\"description\">\n {{ list.description }}\n </p>\n </section>\n }\n\n @if (list.itemsCount > 0) {\n <div class=\"rtsee-stories-list-toolbar\">\n <span class=\"rtsee-stories-list-count-label\">\n {{ list.itemsCount }} {{ presentation.labels[RTSeeTextLabelKeys.STORIES_LABEL] }}\n </span>\n <div class=\"rtsee-stories-list-sort-toggle\" role=\"group\" aria-label=\"Sort stories\">\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'priority'\"\n (click)=\"setSortBy('priority')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.LIST_ORDER_LABEL] }}\n </button>\n <button\n type=\"button\"\n class=\"rtsee-stories-list-sort-btn\"\n [class.active]=\"list.sortBy === 'rating'\"\n (click)=\"setSortBy('rating')\"\n >\n {{ presentation.labels[RTSeeTextLabelKeys.RATING_SORT_LABEL] }}\n </button>\n </div>\n </div>\n\n <ol class=\"rtsee-stories-list-items\">\n @for (item of list.sortedItems; track item.id; let idx = $index) {\n <li\n class=\"rtsee-stories-list-item\"\n itemprop=\"itemListElement\"\n itemscope\n itemtype=\"https://schema.org/ListItem\"\n >\n <meta itemprop=\"position\" [attr.content]=\"idx + 1\" />\n\n <div\n class=\"rtsee-stories-list-item-card\"\n itemprop=\"item\"\n itemscope\n itemtype=\"https://schema.org/Book\"\n >\n <a\n class=\"rtsee-stories-list-item-cover-link\"\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n itemprop=\"url\"\n >\n @if (item.entity?.imageUrl) {\n <img\n [src]=\"item.entity?.imageUrl\"\n [alt]=\"item.label || item.entity?.name || ''\"\n class=\"rtsee-stories-list-item-cover\"\n itemprop=\"image\"\n />\n } @else {\n <div class=\"rtsee-stories-list-item-cover rtsee-stories-list-item-cover-placeholder\">\n <i class=\"pi pi-book\"></i>\n </div>\n }\n\n <div class=\"rtsee-stories-list-item-cover-top\">\n <div class=\"rtsee-stories-list-item-rank\" aria-hidden=\"true\">\n {{ idx + 1 }}\n </div>\n\n @if (item.entity?.rating && item.entity!.rating! > 0) {\n <div\n class=\"rtsee-stories-list-item-rating\"\n itemprop=\"aggregateRating\"\n itemscope\n itemtype=\"https://schema.org/AggregateRating\"\n >\n <meta itemprop=\"bestRating\" content=\"5\" />\n <meta itemprop=\"worstRating\" content=\"1\" />\n <meta itemprop=\"ratingCount\" [attr.content]=\"item.entity!.ratesCount || 1\" />\n <span class=\"rtsee-stories-list-item-rating-star\" aria-hidden=\"true\">\u2605</span>\n <span class=\"rtsee-stories-list-item-rating-value\" itemprop=\"ratingValue\">{{\n item.entity!.rating | number: '1.1-1'\n }}</span>\n </div>\n }\n </div>\n </a>\n\n <div class=\"rtsee-stories-list-item-body\">\n <div class=\"rtsee-stories-list-item-header\">\n <h2 class=\"rtsee-stories-list-item-title\">\n <a\n [routerLink]=\"[\n presentation.routePrefix,\n item.entity?.friendlyUrl || item.entity?.id || item.entityId\n ]\"\n (click)=\"onStoryClicked(item.entity)\"\n >\n <span itemprop=\"name\">{{ item.label || item.entity?.name }}</span>\n </a>\n </h2>\n\n @if (item.entity?.averageReadTime || item.entity?.recommendedAge) {\n <div class=\"rtsee-stories-list-item-meta\">\n @if (item.entity?.averageReadTime) {\n <span class=\"rtsee-stories-list-item-readtime\">\n {{ Math.ceil((item.entity!.averageReadTime || 0) / 60) }}\n {{ presentation.labels[RTSeeTextLabelKeys.MINUTE_LABEL] }}\n </span>\n }\n @if (item.entity?.recommendedAge) {\n <span class=\"rtsee-stories-list-item-age\">\n {{ item.entity?.recommendedAge }}\n </span>\n }\n </div>\n }\n </div>\n\n @if (item.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.description }}\n </p>\n } @else if (item.entity?.description) {\n <p class=\"rtsee-stories-list-item-description\" itemprop=\"description\">\n {{ item.entity?.description }}\n </p>\n }\n </div>\n </div>\n </li>\n }\n </ol>\n }\n\n @if (messenger) {\n <section class=\"rtsee-stories-list-rating-section\">\n <rtsee-entity-preview\n [entity]=\"list\"\n [messenger]=\"messenger\"\n ></rtsee-entity-preview>\n </section>\n }\n </div>\n</article>\n" }]
|
|
10138
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$3.ViewportScroller }, { type: Document, decorators: [{
|
|
10139
|
+
type: Inject,
|
|
10140
|
+
args: [DOCUMENT$1]
|
|
10141
|
+
}] }], propDecorators: { list: [{
|
|
9371
10142
|
type: Input
|
|
9372
10143
|
}], presentation: [{
|
|
9373
10144
|
type: Input
|
|
@@ -9385,17 +10156,22 @@ class StoriesListThumbnailComponent {
|
|
|
9385
10156
|
get listSlugOrId() {
|
|
9386
10157
|
return this.list.friendlyUrl || this.list.id;
|
|
9387
10158
|
}
|
|
10159
|
+
get storiesCountLabel() {
|
|
10160
|
+
const label = this.presentation?.labels?.[RTSeeTextLabelKeys.STORIES_LABEL] ||
|
|
10161
|
+
defaultLabels[RTSeeTextLabelKeys.STORIES_LABEL];
|
|
10162
|
+
return label.toLowerCase();
|
|
10163
|
+
}
|
|
9388
10164
|
onThumbnailClick() {
|
|
9389
10165
|
if (this.presentation && !this.list.friendlyUrl) {
|
|
9390
10166
|
void this.presentation.openStoriesList(this.list.id);
|
|
9391
10167
|
}
|
|
9392
10168
|
}
|
|
9393
10169
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9394
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoriesListThumbnailComponent, isStandalone: true, selector: "rtsee-stories-list-thumbnail", inputs: { list: "list", presentation: "presentation", listRoutePrefix: "listRoutePrefix" }, ngImport: i0, template: "<a\n [routerLink]=\"[routePrefix, listSlugOrId]\"\n (click)=\"onThumbnailClick()\"\n class=\"rtsee-stories-list-thumbnail\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\n [attr.aria-label]=\"list.name\"\n>\n <div class=\"rtsee-stories-list-thumbnail-gradient\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-thumbnail-inner\">\n <div class=\"rtsee-stories-list-thumbnail-top\">\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-thumbnail-rating-pill\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n </div>\n }
|
|
10170
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: StoriesListThumbnailComponent, isStandalone: true, selector: "rtsee-stories-list-thumbnail", inputs: { list: "list", presentation: "presentation", listRoutePrefix: "listRoutePrefix" }, ngImport: i0, template: "<a\n [routerLink]=\"[routePrefix, listSlugOrId]\"\n (click)=\"onThumbnailClick()\"\n class=\"rtsee-stories-list-thumbnail\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\n [attr.aria-label]=\"list.name\"\n>\n <div class=\"rtsee-stories-list-thumbnail-gradient\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-thumbnail-inner\">\n <div class=\"rtsee-stories-list-thumbnail-top\">\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-thumbnail-rating-pill\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n </div>\n }\n </div>\n <div class=\"rtsee-stories-list-thumbnail-bottom\">\n @if (list.items?.length) {\n <span class=\"rtsee-stories-list-thumbnail-count\">\n {{ list.items.length }} {{ storiesCountLabel }}\n </span>\n }\n <h3 class=\"rtsee-stories-list-thumbnail-title\">{{ list.name }}</h3>\n </div>\n </div>\n</a>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: RatingComponent, selector: "rtsee-rating", inputs: ["config", "rate"] }] }); }
|
|
9395
10171
|
}
|
|
9396
10172
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: StoriesListThumbnailComponent, decorators: [{
|
|
9397
10173
|
type: Component,
|
|
9398
|
-
args: [{ selector: 'rtsee-stories-list-thumbnail', standalone: true, imports: [RouterLink, RatingComponent], template: "<a\n [routerLink]=\"[routePrefix, listSlugOrId]\"\n (click)=\"onThumbnailClick()\"\n class=\"rtsee-stories-list-thumbnail\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\n [attr.aria-label]=\"list.name\"\n>\n <div class=\"rtsee-stories-list-thumbnail-gradient\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-thumbnail-inner\">\n <div class=\"rtsee-stories-list-thumbnail-top\">\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-thumbnail-rating-pill\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n </div>\n }
|
|
10174
|
+
args: [{ selector: 'rtsee-stories-list-thumbnail', standalone: true, imports: [RouterLink, RatingComponent], template: "<a\n [routerLink]=\"[routePrefix, listSlugOrId]\"\n (click)=\"onThumbnailClick()\"\n class=\"rtsee-stories-list-thumbnail\"\n [style.background-image]=\"list.imageUrl ? 'url(' + list.imageUrl + ')' : null\"\n [attr.aria-label]=\"list.name\"\n>\n <div class=\"rtsee-stories-list-thumbnail-gradient\" aria-hidden=\"true\"></div>\n <div class=\"rtsee-stories-list-thumbnail-inner\">\n <div class=\"rtsee-stories-list-thumbnail-top\">\n @if (list.rating && list.rating > 0) {\n <div class=\"rtsee-stories-list-thumbnail-rating-pill\">\n <rtsee-rating [rate]=\"{ maxValue: 5, value: list.rating }\"></rtsee-rating>\n </div>\n }\n </div>\n <div class=\"rtsee-stories-list-thumbnail-bottom\">\n @if (list.items?.length) {\n <span class=\"rtsee-stories-list-thumbnail-count\">\n {{ list.items.length }} {{ storiesCountLabel }}\n </span>\n }\n <h3 class=\"rtsee-stories-list-thumbnail-title\">{{ list.name }}</h3>\n </div>\n </div>\n</a>\n" }]
|
|
9399
10175
|
}], propDecorators: { list: [{
|
|
9400
10176
|
type: Input
|
|
9401
10177
|
}], presentation: [{
|
|
@@ -9416,7 +10192,7 @@ class PresentationComponent {
|
|
|
9416
10192
|
}
|
|
9417
10193
|
}
|
|
9418
10194
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9419
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: PresentationComponent, isStandalone: true, selector: "rtsee-presentation", inputs: { presentation: "presentation", messenger: "messenger", framed: "framed", isFramed: "isFramed" }, ngImport: i0, template: "<div class=\"rtsee-presentation\"\n [ngClass]=\"{\n 'rts-messenger-framed': framed || isFramed,\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rtsee-presentation-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n\n @if (presentation.storyLoadInProgress || presentation.storiesListLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if(presentation.isDashboardOpen && presentation.dashboard) {\n <rtsee-presentations-dashboard [dashboard]=\"presentation.dashboard\"\n ></rtsee-presentations-dashboard>\n }\n\n @if (presentation.settings.isExpanded) {\n <rtsee-presentation-settings [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-presentation-settings>\n }\n\n @if (presentation.isCategoriesListVisible && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentation-categories-list\">\n @if (presentation.categoriesLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if (presentation.homeListGroup?.items?.length) {\n <div class=\"rtsee-presentation-
|
|
10195
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: PresentationComponent, isStandalone: true, selector: "rtsee-presentation", inputs: { presentation: "presentation", messenger: "messenger", framed: "framed", isFramed: "isFramed" }, ngImport: i0, template: "<div class=\"rtsee-presentation\"\n [ngClass]=\"{\n 'rts-messenger-framed': framed || isFramed,\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rtsee-presentation-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n\n @if (presentation.storyLoadInProgress || presentation.storiesListLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if(presentation.isDashboardOpen && presentation.dashboard) {\n <rtsee-presentations-dashboard [dashboard]=\"presentation.dashboard\"\n ></rtsee-presentations-dashboard>\n }\n\n @if (presentation.settings.isExpanded) {\n <rtsee-presentation-settings [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-presentation-settings>\n }\n\n @if (presentation.isCategoriesListVisible && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentation-categories-list\">\n @if (presentation.categoriesLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if (presentation.homeListGroup?.items?.length) {\n <div class=\"rtsee-presentation-lists-row\">\n @for (listItem of presentation.homeListGroup!.items; track listItem.id) {\n <div class=\"rtsee-presentation-list-thumbnail-container\">\n <rtsee-stories-list-thumbnail\n [list]=\"listItem\"\n [presentation]=\"presentation\"\n ></rtsee-stories-list-thumbnail>\n </div>\n }\n </div>\n }\n\n @if (presentation.activeSessionsStories.length) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{presentation.labels[RTSeeTextLabelKeys.CONTINUE_SESSIONS_LABEL]}}</h2>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of presentation.activeSessionsStories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n\n @for (category of presentation.categories; track category.id) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{ category.name }}</h2>\n <span class=\"rtsee-presentation-category-description\">{{ category.description }}</span>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of category.stories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n </div>\n }\n\n @if (presentation.activeStory && !presentation.isDashboardOpen) {\n <div class=\"rtsee-presentation-story-viewer-container\"\n [class.rtsee-presentation-story-viewer-container-dark]=\"presentation.settings.isDarkReadingTheme\"\n >\n <rtsee-story-player [story]=\"presentation.activeStory\"\n [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-story-player>\n </div>\n } @else if (presentation.openedStoryDetails && !presentation.isDashboardOpen && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <rtsee-story-details [story]=\"presentation.openedStoryDetails\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-story-details>\n } @else if (presentation.openedStoriesList && !presentation.isDashboardOpen && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <rtsee-stories-list [list]=\"presentation.openedStoriesList\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-stories-list>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PresentationHeaderComponent, selector: "rtsee-presentation-header", inputs: ["presentation"] }, { kind: "component", type: StoryThumbnailComponent, selector: "rtsee-story-thumbnail", inputs: ["story", "presentation"] }, { kind: "component", type: StoryPlayerComponent, selector: "rtsee-story-player", inputs: ["story", "settings", "presentation"] }, { kind: "component", type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }, { kind: "component", type: PresentationsDashboardComponent, selector: "rtsee-presentations-dashboard", inputs: ["dashboard"] }, { kind: "component", type: PresentationSettingsComponent, selector: "rtsee-presentation-settings", inputs: ["settings", "presentation"] }, { kind: "component", type: StoryDetailsComponent, selector: "rtsee-story-details", inputs: ["story", "presentation", "messenger"] }, { kind: "component", type: StoriesListComponent, selector: "rtsee-stories-list", inputs: ["list", "presentation", "messenger"] }, { kind: "component", type: StoriesListThumbnailComponent, selector: "rtsee-stories-list-thumbnail", inputs: ["list", "presentation", "listRoutePrefix"] }] }); }
|
|
9420
10196
|
}
|
|
9421
10197
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PresentationComponent, decorators: [{
|
|
9422
10198
|
type: Component,
|
|
@@ -9431,7 +10207,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
9431
10207
|
StoryDetailsComponent,
|
|
9432
10208
|
StoriesListComponent,
|
|
9433
10209
|
StoriesListThumbnailComponent,
|
|
9434
|
-
], standalone: true, template: "<div class=\"rtsee-presentation\"\n [ngClass]=\"{\n 'rts-messenger-framed': framed || isFramed,\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rtsee-presentation-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n\n @if (presentation.storyLoadInProgress || presentation.storiesListLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if(presentation.isDashboardOpen && presentation.dashboard) {\n <rtsee-presentations-dashboard [dashboard]=\"presentation.dashboard\"\n ></rtsee-presentations-dashboard>\n }\n\n @if (presentation.settings.isExpanded) {\n <rtsee-presentation-settings [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-presentation-settings>\n }\n\n @if (presentation.isCategoriesListVisible && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentation-categories-list\">\n @if (presentation.categoriesLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if (presentation.homeListGroup?.items?.length) {\n <div class=\"rtsee-presentation-
|
|
10210
|
+
], standalone: true, template: "<div class=\"rtsee-presentation\"\n [ngClass]=\"{\n 'rts-messenger-framed': framed || isFramed,\n 'rtsee-events-dashboard-framed': framed || isFramed,\n 'rtsee-presentation-framed': framed || isFramed\n }\"\n>\n <div class=\"rtsee-presentation-header-block\">\n <rtsee-presentation-header [presentation]=\"presentation\"\n ></rtsee-presentation-header>\n </div>\n\n @if (presentation.storyLoadInProgress || presentation.storiesListLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if(presentation.isDashboardOpen && presentation.dashboard) {\n <rtsee-presentations-dashboard [dashboard]=\"presentation.dashboard\"\n ></rtsee-presentations-dashboard>\n }\n\n @if (presentation.settings.isExpanded) {\n <rtsee-presentation-settings [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-presentation-settings>\n }\n\n @if (presentation.isCategoriesListVisible && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <div class=\"rtsee-presentation-categories-list\">\n @if (presentation.categoriesLoadInProgress) {\n <rtsee-preloader [diameter]=\"15\"></rtsee-preloader>\n }\n\n @if (presentation.homeListGroup?.items?.length) {\n <div class=\"rtsee-presentation-lists-row\">\n @for (listItem of presentation.homeListGroup!.items; track listItem.id) {\n <div class=\"rtsee-presentation-list-thumbnail-container\">\n <rtsee-stories-list-thumbnail\n [list]=\"listItem\"\n [presentation]=\"presentation\"\n ></rtsee-stories-list-thumbnail>\n </div>\n }\n </div>\n }\n\n @if (presentation.activeSessionsStories.length) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{presentation.labels[RTSeeTextLabelKeys.CONTINUE_SESSIONS_LABEL]}}</h2>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of presentation.activeSessionsStories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n\n @for (category of presentation.categories; track category.id) {\n <div class=\"rtsee-presentation-category-header\">\n <h2 class=\"rtsee-presentation-category-name\">{{ category.name }}</h2>\n <span class=\"rtsee-presentation-category-description\">{{ category.description }}</span>\n </div>\n <div class=\"rtsee-presentation-stories-list\">\n @for (story of category.stories; track story.id) {\n <div class=\"rtsee-presentation-story-thumbnail-container\"\n (click)=\"onStoryThumbnailClicked(story)\"\n >\n <rtsee-story-thumbnail\n [story]=\"story\"\n [presentation]=\"presentation\"\n ></rtsee-story-thumbnail>\n </div>\n }\n </div>\n }\n </div>\n }\n\n @if (presentation.activeStory && !presentation.isDashboardOpen) {\n <div class=\"rtsee-presentation-story-viewer-container\"\n [class.rtsee-presentation-story-viewer-container-dark]=\"presentation.settings.isDarkReadingTheme\"\n >\n <rtsee-story-player [story]=\"presentation.activeStory\"\n [settings]=\"presentation.settings\"\n [presentation]=\"presentation\"\n ></rtsee-story-player>\n </div>\n } @else if (presentation.openedStoryDetails && !presentation.isDashboardOpen && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <rtsee-story-details [story]=\"presentation.openedStoryDetails\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-story-details>\n } @else if (presentation.openedStoriesList && !presentation.isDashboardOpen && !presentation.storyLoadInProgress && !presentation.storiesListLoadInProgress) {\n <rtsee-stories-list [list]=\"presentation.openedStoriesList\"\n [presentation]=\"presentation\"\n [messenger]=\"messenger\"\n ></rtsee-stories-list>\n }\n</div>\n" }]
|
|
9435
10211
|
}], ctorParameters: () => [], propDecorators: { presentation: [{
|
|
9436
10212
|
type: Input
|
|
9437
10213
|
}], messenger: [{
|
|
@@ -10478,7 +11254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
10478
11254
|
|
|
10479
11255
|
class PrivacyPolicyComponent {
|
|
10480
11256
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PrivacyPolicyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10481
|
-
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"] }] }); }
|
|
11257
|
+
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"] }] }); }
|
|
10482
11258
|
}
|
|
10483
11259
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PrivacyPolicyComponent, decorators: [{
|
|
10484
11260
|
type: Component,
|
|
@@ -10826,5 +11602,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
10826
11602
|
* Generated bundle index. Do not edit.
|
|
10827
11603
|
*/
|
|
10828
11604
|
|
|
10829
|
-
export { ApplicationEventWidgetComponent, BaseEventWidgetComponent, ChatAgentCreatedWidgetComponent, ChatCreatedWidgetComponent, ChatMemberInviteClickedWidgetComponent, ChatMessageSentWidgetComponent, ChatOpenedWidgetComponent, DefaultTaskActionPromptComponent, DefaultTaskActionThumbnailComponent, EntitiesConfigurationsListComponent, EntitiesListComponent, EventsWidgetsService, FormComponent, GtagService, IllustratorComponent, InteractiveStoryEditorComponent, ManageEntitiesListComponent, ManageEntitiesListGroupComponent, ManageEntitiesListGroupsComponent, ManageEntitiesListsComponent, ManageEntityComponent, ManageEntityConfigurationComponent, MessengerComponent, NgxService, PaymentProductSnippetComponent, PresentationComponent, ProfileComponent, ProfileOpenedWidgetComponent, RTSeeAuthComponent, RTSeeConferenceComponent, RTSeeContainerComponent, RTSeeControlsComponent, RTSeeModule, RTSeeTaskActionComponent, RTSeeTaskComponent, RequestDemoClickedWidgetComponent, RtseeEntityCommentsComponent, RtseeEntityPreviewComponent, RtseeEntityTagsComponent, RtseeEventsDashboardComponent, RtseePeerComponent, RtseeSettingsComponent, RtseeTagGroupManageComponent, RtseeTagGroupsManageComponent, RtseeTagManageComponent, RtseeTagsAccordionMenuComponent, SlideNumberChangedWidgetComponent, SlideTaskActionThumbnailComponent, StoriesListComponent, StoriesListThumbnailComponent, StoryDetailsComponent, StoryDetailsOpenedWidgetComponent, StoryElementsSectionComponent, StoryReadingStartedWidgetComponent, StoryTaskActionThumbnailComponent, StoryThumbnailComponent, TaskActionPromptComponent, TaskActionThumbnailComponent, TaskActionWidgetsService, TestChatNowClickedWidgetComponent, TranslationsPanelComponent };
|
|
11605
|
+
export { ApplicationEventWidgetComponent, BaseEventWidgetComponent, ChatAgentCreatedWidgetComponent, ChatCreatedWidgetComponent, ChatMemberInviteClickedWidgetComponent, ChatMessageSentWidgetComponent, ChatOpenedWidgetComponent, DefaultTaskActionPromptComponent, DefaultTaskActionThumbnailComponent, EntitiesConfigurationsListComponent, EntitiesListComponent, EventsWidgetsService, FormComponent, GtagService, IllustratorComponent, InteractiveStoryEditorComponent, ManageEntitiesListComponent, ManageEntitiesListGroupComponent, ManageEntitiesListGroupsComponent, ManageEntitiesListsComponent, ManageEntityComponent, ManageEntityConfigurationComponent, MessengerComponent, NgxService, PaymentProductSnippetComponent, PresentationComponent, ProfileComponent, ProfileOpenedWidgetComponent, RTSeeAuthComponent, RTSeeConferenceComponent, RTSeeContainerComponent, RTSeeControlsComponent, RTSeeModule, RTSeeTaskActionComponent, RTSeeTaskComponent, RefineStoriesListFormStepComponent, RefineStoriesListWorkflowForm, RequestDemoClickedWidgetComponent, RtseeEntityCommentsComponent, RtseeEntityPreviewComponent, RtseeEntityTagsComponent, RtseeEventsDashboardComponent, RtseePeerComponent, RtseeSettingsComponent, RtseeTagGroupManageComponent, RtseeTagGroupsManageComponent, RtseeTagManageComponent, RtseeTagsAccordionMenuComponent, SlideNumberChangedWidgetComponent, SlideTaskActionThumbnailComponent, StoriesListComponent, StoriesListLinkStepComponent, StoriesListThumbnailComponent, StoryDetailsComponent, StoryDetailsOpenedWidgetComponent, StoryElementsSectionComponent, StoryReadingStartedWidgetComponent, StoryTaskActionThumbnailComponent, StoryThumbnailComponent, TaskActionPromptComponent, TaskActionThumbnailComponent, TaskActionWidgetsService, TestChatNowClickedWidgetComponent, TranslateStoriesListFormStepComponent, TranslateStoriesListWorkflowForm, TranslationsPanelComponent, WorkflowStepsService };
|
|
10830
11606
|
//# sourceMappingURL=rtsee-ngx.mjs.map
|