@xsmusices/ui 1.44.45 → 1.44.48

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.
@@ -8,12 +8,12 @@ import { BehaviorSubject, Subject, Subscription, of, from, fromEvent, debounceTi
8
8
  import { DomSanitizer } from '@angular/platform-browser';
9
9
  import { faCircleQuestion, faPlus, faMagnifyingGlass, faInbox, faCircleExclamation, faCircleCheck, faCircleInfo, faAddressBook, faArrowLeft, faArrowRightFromBracket, faArrowTrendUp, faArrowUpRightFromSquare, faArrowsRotate, faAward, faBackwardStep, faBan, faBars, faBell, faBook, faBuilding, faCalendar, faCalendarDays, faCalculator, faCaretDown, faCaretRight, faCaretUp, faCartShopping, faChartBar, faChartLine, faChartPie, faChartSimple, faCheck, faCheckCircle, faCheckDouble, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faCircleNotch, faCircleXmark, faClipboard, faClock, faClone, faCloudArrowDown, faCode, faCodeCommit, faCog, faCogs, faColumns, faComment, faComments, faCompactDisc, faCopy, faCreditCard, faCrown, faCube, faCubes, faDatabase, faDesktop, faDice, faDollarSign, faDownload, faEdit, faEllipsisVertical, faEnvelope, faEquals, faExclamationTriangle, faExpand, faExternalLink, faExternalLinkAlt, faEye, faFaceSmile, faFile, faFileContract, faFileLines, faFilePdf, faFilter, faFire, faFlag, faFlask, faFloppyDisk, faFolder, faFolderOpen, faForwardStep, faGamepad, faGlobe, faGraduationCap, faGripLines, faGripVertical, faHeadphones, faHardDrive, faHashtag, faHeadphonesSimple, faHeart, faHeartbeat, faHome, faImage, faImages, faKey, faLayerGroup, faLightbulb, faLink, faList, faLocation, faLock, faMap, faMapMarker, faMapMarkerAlt, faMapPin, faMessage, faMicrochip, faMicrophone, faMinus, faMobile, faMoon, faMusic, faNewspaper, faPaperclip, faPaperPlane, faPause, faPalette, faPencil, faPlay, faPowerOff, faPuzzlePiece, faRankingStar, faRecordVinyl, faRefresh, faRepeat, faRightFromBracket, faRightToBracket, faRotateRight, faSchool, faSchoolFlag, faSearch, faServer, faShare, faShareNodes, faShield, faShoePrints, faShuffle, faSkull, faSliders, faSort, faSpellCheck, faSpinner, faStar, faStop, faSync, faTableCells, faTable, faTabletScreenButton, faTag, faThumbsUp, faThumbsDown, faTicket, faThumbTack, faToolbox, faTrash, faTrophy, faUnlock, faUpload, faUser, faUserCheck, faUserPlus, faUserSecret, faUsers, faUserXmark, faVolumeDown, faVolumeLow, faVolumeMute, faVolumeUp, faVolumeXmark, faWallet, faWandMagic, faWandMagicSparkles, faWrench, faXmark } from '@fortawesome/free-solid-svg-icons';
10
10
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
11
- import * as i2 from '@angular/router';
11
+ import * as i1$2 from '@angular/router';
12
12
  import { Router, RouterModule } from '@angular/router';
13
13
  import { v4 } from 'uuid';
14
- import * as i1$2 from '@angular/forms';
14
+ import * as i1$3 from '@angular/forms';
15
15
  import { ReactiveFormsModule, FormsModule, FormGroup } from '@angular/forms';
16
- import * as i1$3 from '@ngx-formly/core';
16
+ import * as i1$4 from '@ngx-formly/core';
17
17
  import { FieldType, FormlyModule } from '@ngx-formly/core';
18
18
  import { map, distinctUntilChanged, filter, debounceTime, switchMap, catchError, finalize, takeUntil, take } from 'rxjs/operators';
19
19
  import DOMPurify from 'dompurify';
@@ -30,9 +30,9 @@ import { moveItemInArray, CdkDropList, CdkDrag } from '@angular/cdk/drag-drop';
30
30
  import { Chart, registerables } from 'chart.js';
31
31
  import { faHeart as faHeart$1, faStar as faStar$1 } from '@fortawesome/free-regular-svg-icons';
32
32
  import { faAndroid, faApple, faBandcamp, faFacebook, faGithub, faGoogle, faInstagram, faLinux, faMicrosoft, faSoundcloud, faSpotify, faTiktok, faWhatsapp, faWindows, faXTwitter, faYoutube } from '@fortawesome/free-brands-svg-icons';
33
- import * as i1$4 from '@angular/common/http';
33
+ import * as i1$5 from '@angular/common/http';
34
34
  import { HttpClient } from '@angular/common/http';
35
- import * as i2$1 from '@angular/cdk/scrolling';
35
+ import * as i2 from '@angular/cdk/scrolling';
36
36
  import { ScrollingModule } from '@angular/cdk/scrolling';
37
37
 
38
38
  const STYLE_INTENSITIES = [
@@ -4947,7 +4947,7 @@ class XSItemCardComponent {
4947
4947
  }
4948
4948
  }
4949
4949
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSItemCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4950
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSItemCardComponent, isStandalone: true, selector: "xs-item-card", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, subtypeForced: { classPropertyName: "subtypeForced", publicName: "subtypeForced", isSignal: true, isRequired: false, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, viewTransitionName: { classPropertyName: "viewTransitionName", publicName: "viewTransitionName", isSignal: true, isRequired: false, transformFunction: null }, forSlider: { classPropertyName: "forSlider", publicName: "forSlider", isSignal: true, isRequired: false, transformFunction: null }, forTop: { classPropertyName: "forTop", publicName: "forTop", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, edit: { classPropertyName: "edit", publicName: "edit", isSignal: true, isRequired: false, transformFunction: null }, year: { classPropertyName: "year", publicName: "year", isSignal: true, isRequired: false, transformFunction: null }, styles: { classPropertyName: "styles", publicName: "styles", isSignal: true, isRequired: false, transformFunction: null }, stylesLeft: { classPropertyName: "stylesLeft", publicName: "stylesLeft", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, clickEmit: { classPropertyName: "clickEmit", publicName: "clickEmit", isSignal: true, isRequired: false, transformFunction: null }, i: { classPropertyName: "i", publicName: "i", isSignal: true, isRequired: true, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null }, showLabelType: { classPropertyName: "showLabelType", publicName: "showLabelType", isSignal: true, isRequired: false, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onGoToItem: "onGoToItem" }, host: { attributes: { "xs-item-card-host": "" } }, ngImport: i0, template: "@if (texts()) {\n<div\n class=\"relative overflow-hidden bg-black rounded-xl cursor-pointer select-none touch-manipulation select-none touch-manipulation\"\n [ngClass]=\"{\n 'w-full h-72': !forSlider(),\n 'w-60 h-60': forSlider(),\n 'border-2 border-yellow-600': $any(item()) && $any(item()).promoted,\n }\"\n>\n <a\n [routerLink]=\"routerLink\"\n (click)=\"onClickItem($event)\"\n class=\"block w-full h-full duration-1000 bg-black select-none hover:filter-grayscale relative z-[1]\"\n >\n <xs-image\n [item]=\"\n type() !== 'playlist'\n ? $any(item())\n : {\n _id: $any(item()).cover,\n image: !!$any(item()).cover,\n name: $any(item()).name,\n }\n \"\n [viewTransitionName]=\"viewTransitionName()\"\n [typeItem]=\"typeForImage\"\n [imageType]=\"forSlider() ? 'small' : 'normal'\"\n [alt]=\"$any(item()).name\"\n [customClass]=\"'object-cover w-full h-full transition-transform duration-500 ease-in-out rounded-xl opacity-70 hover:scale-110 scale-100'\"\n [loading]=\"i() > 3 ? 'lazy' : 'eager'\"\n [size]=\"'full'\"\n objectFit=\"cover\"\n ></xs-image>\n\n @if (edit()) {\n <div\n class=\"absolute top-0 left-0 px-2 py-1.5 text-xs font-semibold text-black rounded-br-lg dark:text-white\"\n [ngClass]=\"{\n 'bg-yellow-600': $any(item()).state === 'pending',\n 'bg-green-600': $any(item()).state === 'active',\n 'bg-red-600': $any(item()).state === 'inactive',\n }\"\n >\n @if (\n $any(item()).state === 'pending' && texts() && texts().statePending\n ) {\n <span>\n {{ texts().statePending }}\n </span>\n }\n @if (\n $any(item()).state === 'active' && texts() && texts().stateActive\n ) {\n <span>\n {{ texts().stateActive }}\n </span>\n }\n @if (\n $any(item()).state === 'inactive' &&\n texts() &&\n texts().stateInactive\n ) {\n <span>\n {{ texts().stateInactive }}\n </span>\n }\n </div>\n }\n\n @if (year() && $any(item()).year && !edit()) {\n <div\n id=\"item-for-list-year\"\n class=\"absolute top-0 left-0 px-2 py-1.5 text-xs font-extralight text-black rounded-br-lg dark:text-white bg-black\"\n >\n <span>{{ $any(item()).year }}</span>\n </div>\n }\n\n @if (styles() && $any(item()).styles && $any(item()).styles.length > 0) {\n <div\n id=\"item-for-list-styles\"\n class=\"absolute top-0 right-0 px-2 py-1.5 text-xs font-extralight text-black dark:text-white bg-black\"\n [ngClass]=\"{\n 'right-0 rounded-bl-lg': !stylesLeft(),\n 'left-0 rounded-br-lg': stylesLeft(),\n }\"\n >\n @for (style of $any(item()).styles; track $index; let i = $index) {\n @if (i == 0 || i == 1) {\n <span>\n {{ style?.name\n }}@if ($any(item()).styles.length > 1 && i == 0) {<span>, </span>}\n </span>\n }\n }\n </div>\n }\n\n @if (type() === 'user' && $any(item()).points !== undefined) {\n <div\n class=\"absolute top-0 left-0 px-2 py-1.5 text-xs font-semibold text-black rounded-br-lg dark:text-white bg-black\"\n >\n <div\n class=\"flex flex-col items-center justify-center px-1 pb-1\"\n >\n <span class=\"text-3xl font-bold\">{{ $any(item()).points }}</span>\n <span class=\"font-extralight\">{{ texts().points }}</span>\n </div>\n </div>\n }\n\n @if (type() === 'equipment' && $any(item()).type && $any(item()).type.name) {\n <div\n class=\"absolute top-0 left-0 px-2 py-1.5 text-xs font-semibold text-black rounded-br-lg dark:text-white bg-black\"\n >\n {{ language() !== 'es' ? $any(item()).type.nameEn : $any(item()).type.name }}\n </div>\n }\n\n @if (count()) {\n <div\n class=\"absolute top-0 left-0 px-2 py-1.5 text-xs font-semibold text-black rounded-br-lg dark:text-white bg-black\"\n >\n <div\n class=\"flex flex-col items-center justify-center px-1 pb-1\"\n >\n <span class=\"text-3xl font-bold\">{{ count()?.value }}</span>\n <span class=\"font-extralight\">\n {{ texts().countName }}\n </span>\n </div>\n </div>\n }\n\n @if (\n (type() === 'event' && forTop()) ||\n (type() === 'event' && !forTop()) ||\n (type() !== 'event' && forTop())\n ) {\n <div\n class=\"absolute top-0 right-0\"\n [ngClass]=\"{ 'p-2': !forTop() }\"\n >\n @if (forTop() && position()) {\n <span\n class=\"px-3 pt-3 text-4xl font-bold text-right bg-white border rounded-l-lg text-zinc-700 dark:text-white dark:border-black dark:bg-black\"\n >\n {{ position() }}\n </span>\n }\n </div>\n }\n\n @if ($any(item()).isLiked) {\n <div\n class=\"absolute bottom-0 right-0 z-10 flex items-center justify-center w-8 h-8 bg-black rounded-tl-lg\"\n >\n <xs-icon\n [icon]=\"'star'\"\n class=\"relative w-4 h-4 mb-2 text-yellow-500\"\n ></xs-icon>\n </div>\n }\n\n @if (isVerified) {\n <div\n class=\"absolute bottom-0 left-0 z-10 flex items-center justify-center w-8 h-8 bg-black rounded-tr-lg\"\n >\n <svg\n [attr.aria-label]=\"verifiedLabel\"\n fill=\"rgb(0, 149, 246)\"\n viewBox=\"0 0 40 40\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M19.998 3.094 14.638 0l-2.972 5.15H5.432v6.354L0 14.64 3.094 20 0 25.359l5.432 3.137v5.905h5.975L14.638 40l5.36-3.094L25.358 40l3.232-5.6h6.162v-6.01L40 25.359 36.905 20 40 14.641l-5.248-3.03v-6.46h-6.419L25.358 0l-5.36 3.094Zm7.415 11.225 2.254 2.287-11.43 11.5-6.835-6.93 2.244-2.258 4.587 4.581 9.18-9.18Z\"\n fill-rule=\"evenodd\"\n ></path>\n </svg>\n </div>\n }\n\n @if (type() === 'media' && $any(item()) && showLabelType()) {\n <div\n class=\"absolute z-10 transform -translate-x-1/2 bottom-2 left-1/2\"\n >\n <div\n class=\"flex items-center justify-center gap-1 px-4 mt-1.5\"\n >\n <p class=\"text-xs text-white truncate font-extralight\">\n {{ texts().itemType }}\n </p>\n </div>\n </div>\n }\n\n @if (type() === 'organization' && $any(item()) && showLabelType()) {\n <div\n class=\"absolute z-10 transform -translate-x-1/2 bottom-2 left-1/2\"\n >\n <div\n class=\"flex items-center justify-center gap-1 px-4 mt-1.5\"\n >\n @for (type of ($any(item()).types ?? []); track $index; let i = $index) {\n <p\n id=\"item-for-list-type-name-{{ i }}\"\n class=\"text-xs truncate font-extralight\"\n >\n {{ texts().type\n }}@if (i < ($any(item()).types ?? []).length - 1) {<span>,</span>}\n </p>\n }\n </div>\n </div>\n }\n\n @if (type() !== 'tip') {\n <div\n class=\"absolute inset-x-0 bottom-0 h-full bg-gradient-to-t from-black to-transparent pointer-events-none z-[2]\"\n ></div>\n }\n\n <div\n class=\"absolute inset-x-0 text-center text-white transition-opacity duration-300 bottom-8 z-[3]\"\n >\n @if (\n type() === 'artist' ||\n type() === 'user' ||\n type() === 'playlist' ||\n type() === 'organization' ||\n type() === 'equipment' ||\n type() === 'tip'\n ) {\n @if ($any(item())?.exclusive && texts().artistExclusive) {\n <p\n class=\"text-sm font-extralight\"\n >\n {{ texts().artistExclusive }}\n </p>\n }\n @if (\n $any(item())?.promoted &&\n type() === 'artist' &&\n texts().artistPromoted\n ) {\n <p\n class=\"text-sm font-extralight\"\n >\n {{ texts().artistPromoted }}\n </p>\n }\n @if (type() !== 'tip') {\n <h3\n id=\"item-for-list-name-{{ type() }}\"\n class=\"gap-2 justify-center items-center flex mb-0.5 px-3 text-lg font-extrabold ng-star-inserted w-full\"\n >\n {{ $any(item()).name | truncateText: 30 }}\n </h3>\n }\n @if (type() === 'playlist') {\n <p\n class=\"mb-0.5 text-sm font-extralight\"\n >\n {{ $any(item()).user?.name }}\n </p>\n }\n\n @if ($any(item()).manufacturer) {\n <div class=\"text-xs\">\n {{ $any(item()).manufacturer }}\n </div>\n }\n\n @if (\n $any(item()).country && $any(item()).country.code && type() !== 'tip'\n ) {\n <div\n class=\"flex items-center justify-center gap-1\"\n >\n <img\n id=\"item-for-list-country-img\"\n [src]=\"$any($any(item()).country).code | countryFlag\"\n class=\"w-4 h-4\"\n [alt]=\"$any($any(item()).country).name\"\n loading=\"lazy\"\n width=\"16\"\n height=\"16\"\n />\n @if (\n $any(item()).countryResidence &&\n $any(item()).countryResidence._id !== $any(item()).country?._id &&\n $any(item()).countryResidence.code !== 'nd'\n ) {\n <img\n id=\"item-for-list-country-residence-img\"\n [src]=\"$any($any(item()).countryResidence).code | countryFlag\"\n class=\"w-4 h-4\"\n [alt]=\"$any($any(item()).countryResidence).name\"\n loading=\"lazy\"\n width=\"16\"\n height=\"16\"\n />\n }\n <p id=\"item-for-list-country-name\" class=\"text-xs\">\n {{\n language() !== 'es'\n ? $any(item()).country.nameEn\n : $any(item()).country.name\n }}\n </p>\n\n @if (\n $any(item()).countryResidence &&\n $any(item()).countryResidence._id !== $any(item()).country._id &&\n $any(item()).countryResidence.code !== 'nd'\n ) {\n <span class=\"text-xs\">/</span>\n }\n @if (\n $any(item()).countryResidence &&\n $any(item()).countryResidence?._id !== $any(item()).country._id &&\n $any(item()).countryResidence.code !== 'nd'\n ) {\n <p\n id=\"item-for-list-country-residence-name\"\n class=\"text-xs\"\n >\n {{\n language() !== 'es'\n ? $any(item()).countryResidence.nameEn\n : $any(item()).countryResidence.name\n }}\n </p>\n }\n </div>\n }\n }\n\n @if (type() === 'event') {\n <p class=\"text-sm\">{{ $any(item()).date | dateLong }}</p>\n\n <h3\n id=\"item-for-list-event-name\"\n class=\"flex items-center justify-center w-full gap-2 px-3 text-lg font-extrabold\"\n >\n {{ $any(item()).name | truncateText: truncateForEvent }}\n </h3>\n <p class=\"text-[10px] font-extralight\">&#64;</p>\n <h3\n id=\"item-for-list-site-name\"\n class=\"px-2 mb-1 text-lg font-bold\"\n >\n {{ $any(item()).site?.name }}\n </h3>\n <div class=\"flex items-center justify-center gap-1 px-4\">\n <img\n id=\"item-for-list-country-img-{{ type() }}\"\n [src]=\"$any($any(item()).site).address.country.code | countryFlag\"\n [alt]=\"$any($any(item()).site).address.country.name\"\n class=\"w-4 h-4\"\n loading=\"lazy\"\n width=\"16\"\n height=\"16\"\n />\n @if ($any(item()).site.address) {\n <p\n id=\"item-for-list-country-name-{{ type() }}\"\n class=\"text-sm truncate font-extralight\"\n >\n {{\n $any(item()).site.address.region.name +\n ', ' +\n (language() !== 'es'\n ? $any(item()).site.address.country.nameEn\n : $any(item()).site.address.country.name)\n }}\n </p>\n }\n </div>\n }\n\n @if (type() === 'site') {\n <h3\n id=\"item-for-list-name-{{ type() }}\"\n class=\"gap-2 justify-center items-center flex mb-0.5 px-3 text-lg font-extrabold ng-star-inserted w-full\"\n >\n {{ $any(item()).name | truncateText: 30 }}\n </h3>\n <div class=\"flex items-center justify-center gap-1 px-4\">\n <img\n id=\"item-for-list-country-img-{{ type() }}\"\n [src]=\"$any($any(item()).address).country?.code | countryFlag\"\n class=\"w-4 h-4\"\n [alt]=\"$any($any(item()).address).country?.name\"\n loading=\"lazy\"\n width=\"16\"\n height=\"16\"\n />\n <p\n id=\"item-for-list-country-name-{{ type() }}\"\n class=\"text-sm truncate\"\n >\n @if (\n $any(item()).address.region && $any(item()).address.region.name\n ) {\n <span>\n {{ $any(item()).address.region?.name + ', ' }}\n </span>\n }\n {{\n language() !== 'es'\n ? $any(item()).address.country?.nameEn\n : $any(item()).address.country?.name\n }}\n </p>\n </div>\n }\n\n @if (type() === 'media') {\n <h3\n id=\"item-for-list-name-{{ type() }}\"\n class=\"gap-2 text-lg justify-center items-center flex mb-0.5 px-3 font-extrabold w-full\"\n >\n {{ $any(item()).name | truncateText: 80 }}\n </h3>\n\n <p id=\"item-for-list-artists\" class=\"text-sm\">\n @for (artist of ($any(item()).artists ?? []); track $index; let i = $index) {\n <span>\n {{ artist.name\n }}@if (i < ($any(item()).artists ?? []).length - 1) {<span>,</span>}\n </span>\n }\n </p>\n @if (\n $any(item()).type === 'set' &&\n $any(item()).site?._id !== ImportantItems.ANONYMOUS_SITE\n ) {\n <p\n class=\"px-2 my-1 text-[10px] font-extralight\"\n >\n &#64;\n </p>\n }\n @if (\n $any(item()).type === 'set' &&\n $any(item()).site?._id !== ImportantItems.ANONYMOUS_SITE\n ) {\n <p\n class=\"px-2 text-sm\"\n >\n {{ $any(item()).site?.name }}\n </p>\n }\n @if (\n $any(item()).organizations && $any(item()).organizations.length > 0\n ) {\n <p class=\"px-2 my-0.5 text-[10px] font-extralight\">\n X\n </p>\n <p class=\"text-sm font-extralight\">\n {{ $any(item()).organizations[0].name }}\n </p>\n }\n }\n </div>\n </a>\n</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "pipe", type: CountryFlagPipe, name: "countryFlag" }, { kind: "pipe", type: TruncateTextPipe, name: "truncateText" }, { kind: "pipe", type: DateLongPipe, name: "dateLong" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4950
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSItemCardComponent, isStandalone: true, selector: "xs-item-card", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, subtypeForced: { classPropertyName: "subtypeForced", publicName: "subtypeForced", isSignal: true, isRequired: false, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, viewTransitionName: { classPropertyName: "viewTransitionName", publicName: "viewTransitionName", isSignal: true, isRequired: false, transformFunction: null }, forSlider: { classPropertyName: "forSlider", publicName: "forSlider", isSignal: true, isRequired: false, transformFunction: null }, forTop: { classPropertyName: "forTop", publicName: "forTop", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, edit: { classPropertyName: "edit", publicName: "edit", isSignal: true, isRequired: false, transformFunction: null }, year: { classPropertyName: "year", publicName: "year", isSignal: true, isRequired: false, transformFunction: null }, styles: { classPropertyName: "styles", publicName: "styles", isSignal: true, isRequired: false, transformFunction: null }, stylesLeft: { classPropertyName: "stylesLeft", publicName: "stylesLeft", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, clickEmit: { classPropertyName: "clickEmit", publicName: "clickEmit", isSignal: true, isRequired: false, transformFunction: null }, i: { classPropertyName: "i", publicName: "i", isSignal: true, isRequired: true, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null }, showLabelType: { classPropertyName: "showLabelType", publicName: "showLabelType", isSignal: true, isRequired: false, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onGoToItem: "onGoToItem" }, host: { attributes: { "xs-item-card-host": "" } }, ngImport: i0, template: "@if (texts()) {\n<div\n class=\"relative overflow-hidden bg-black rounded-xl cursor-pointer select-none touch-manipulation select-none touch-manipulation\"\n [ngClass]=\"{\n 'w-full h-72': !forSlider(),\n 'w-60 h-60': forSlider(),\n 'border-2 border-yellow-600': $any(item()) && $any(item()).promoted,\n }\"\n>\n <a\n [routerLink]=\"routerLink\"\n (click)=\"onClickItem($event)\"\n class=\"block w-full h-full duration-1000 bg-black select-none hover:filter-grayscale relative z-[1]\"\n >\n <xs-image\n [item]=\"\n type() !== 'playlist'\n ? $any(item())\n : {\n _id: $any(item()).cover,\n image: !!$any(item()).cover,\n name: $any(item()).name,\n }\n \"\n [viewTransitionName]=\"viewTransitionName()\"\n [typeItem]=\"typeForImage\"\n [imageType]=\"forSlider() ? 'small' : 'normal'\"\n [alt]=\"$any(item()).name\"\n [customClass]=\"'object-cover w-full h-full transition-transform duration-500 ease-in-out rounded-xl opacity-70 hover:scale-110 scale-100'\"\n [loading]=\"i() > 3 ? 'lazy' : 'eager'\"\n [size]=\"'full'\"\n objectFit=\"cover\"\n ></xs-image>\n\n @if (edit()) {\n <div\n class=\"absolute top-0 left-0 px-2 py-1.5 text-xs font-semibold text-black rounded-br-lg dark:text-white\"\n [ngClass]=\"{\n 'bg-yellow-600': $any(item()).state === 'pending',\n 'bg-green-600': $any(item()).state === 'active',\n 'bg-red-600': $any(item()).state === 'inactive',\n }\"\n >\n @if (\n $any(item()).state === 'pending' && texts() && texts().statePending\n ) {\n <span>\n {{ texts().statePending }}\n </span>\n }\n @if (\n $any(item()).state === 'active' && texts() && texts().stateActive\n ) {\n <span>\n {{ texts().stateActive }}\n </span>\n }\n @if (\n $any(item()).state === 'inactive' &&\n texts() &&\n texts().stateInactive\n ) {\n <span>\n {{ texts().stateInactive }}\n </span>\n }\n </div>\n }\n\n @if (year() && $any(item()).year && !edit()) {\n <div\n id=\"item-for-list-year\"\n class=\"absolute top-0 left-0 px-2 py-1.5 text-xs font-extralight text-black rounded-br-lg dark:text-white bg-black\"\n >\n <span>{{ $any(item()).year }}</span>\n </div>\n }\n\n @if (styles() && $any(item()).styles && $any(item()).styles.length > 0) {\n <div\n id=\"item-for-list-styles\"\n class=\"absolute top-0 right-0 px-2 py-1.5 text-xs font-extralight text-black dark:text-white bg-black\"\n [ngClass]=\"{\n 'right-0 rounded-bl-lg': !stylesLeft(),\n 'left-0 rounded-br-lg': stylesLeft(),\n }\"\n >\n @for (style of $any(item()).styles; track $index; let i = $index) {\n @if (i == 0 || i == 1) {\n <span>\n {{ style?.name\n }}@if ($any(item()).styles.length > 1 && i == 0) {<span>, </span>}\n </span>\n }\n }\n </div>\n }\n\n @if (type() === 'user' && $any(item()).points !== undefined) {\n <div\n class=\"absolute top-0 left-0 px-2 py-1.5 text-xs font-semibold text-black rounded-br-lg dark:text-white bg-black\"\n >\n <div\n class=\"flex flex-col items-center justify-center px-1 pb-1\"\n >\n <span class=\"text-3xl font-bold\">{{ $any(item()).points }}</span>\n <span class=\"font-extralight\">{{ texts().points }}</span>\n </div>\n </div>\n }\n\n @if (type() === 'equipment' && $any(item()).type && $any(item()).type.name) {\n <div\n class=\"absolute top-0 left-0 px-2 py-1.5 text-xs font-semibold text-black rounded-br-lg dark:text-white bg-black\"\n >\n {{ language() !== 'es' ? $any(item()).type.nameEn : $any(item()).type.name }}\n </div>\n }\n\n @if (count()) {\n <div\n class=\"absolute top-0 left-0 px-2 py-1.5 text-xs font-semibold text-black rounded-br-lg dark:text-white bg-black\"\n >\n <div\n class=\"flex flex-col items-center justify-center px-1 pb-1\"\n >\n <span class=\"text-3xl font-bold\">{{ count()?.value }}</span>\n <span class=\"font-extralight\">\n {{ texts().countName }}\n </span>\n </div>\n </div>\n }\n\n @if (\n (type() === 'event' && forTop()) ||\n (type() === 'event' && !forTop()) ||\n (type() !== 'event' && forTop())\n ) {\n <div\n class=\"absolute top-0 right-0\"\n [ngClass]=\"{ 'p-2': !forTop() }\"\n >\n @if (forTop() && position()) {\n <span\n class=\"px-3 pt-3 text-4xl font-bold text-right bg-white border rounded-l-lg text-zinc-700 dark:text-white dark:border-black dark:bg-black\"\n >\n {{ position() }}\n </span>\n }\n </div>\n }\n\n @if ($any(item()).isLiked) {\n <div\n class=\"absolute bottom-0 right-0 z-10 flex items-center justify-center w-8 h-8 bg-black rounded-tl-lg\"\n >\n <xs-icon\n [icon]=\"'star'\"\n class=\"relative w-4 h-4 mb-2 text-yellow-500\"\n ></xs-icon>\n </div>\n }\n\n @if (isVerified) {\n <div\n class=\"absolute bottom-0 left-0 z-10 flex items-center justify-center w-8 h-8 bg-black rounded-tr-lg\"\n >\n <svg\n [attr.aria-label]=\"verifiedLabel\"\n fill=\"rgb(0, 149, 246)\"\n viewBox=\"0 0 40 40\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M19.998 3.094 14.638 0l-2.972 5.15H5.432v6.354L0 14.64 3.094 20 0 25.359l5.432 3.137v5.905h5.975L14.638 40l5.36-3.094L25.358 40l3.232-5.6h6.162v-6.01L40 25.359 36.905 20 40 14.641l-5.248-3.03v-6.46h-6.419L25.358 0l-5.36 3.094Zm7.415 11.225 2.254 2.287-11.43 11.5-6.835-6.93 2.244-2.258 4.587 4.581 9.18-9.18Z\"\n fill-rule=\"evenodd\"\n ></path>\n </svg>\n </div>\n }\n\n @if (type() === 'media' && $any(item()) && showLabelType()) {\n <div\n class=\"absolute z-10 transform -translate-x-1/2 bottom-2 left-1/2\"\n >\n <div\n class=\"flex items-center justify-center gap-1 px-4 mt-1.5\"\n >\n <p class=\"text-xs text-white truncate font-extralight\">\n {{ texts().itemType }}\n </p>\n </div>\n </div>\n }\n\n @if (type() === 'organization' && $any(item()) && showLabelType()) {\n <div\n class=\"absolute z-10 transform -translate-x-1/2 bottom-2 left-1/2\"\n >\n <div\n class=\"flex items-center justify-center gap-1 px-4 mt-1.5\"\n >\n @for (type of ($any(item()).types ?? []); track $index; let i = $index) {\n <p\n id=\"item-for-list-type-name-{{ i }}\"\n class=\"text-xs truncate font-extralight\"\n >\n {{ texts().type\n }}@if (i < ($any(item()).types ?? []).length - 1) {<span>,</span>}\n </p>\n }\n </div>\n </div>\n }\n\n @if (type() !== 'tip') {\n <div\n class=\"absolute inset-x-0 bottom-0 h-full bg-gradient-to-t from-black to-transparent pointer-events-none z-[2]\"\n ></div>\n }\n\n <div\n class=\"absolute inset-x-0 text-center text-white transition-opacity duration-300 bottom-8 z-[3]\"\n >\n @if (\n type() === 'artist' ||\n type() === 'user' ||\n type() === 'playlist' ||\n type() === 'organization' ||\n type() === 'equipment' ||\n type() === 'tip'\n ) {\n @if ($any(item())?.exclusive && texts().artistExclusive) {\n <p\n class=\"text-sm font-extralight\"\n >\n {{ texts().artistExclusive }}\n </p>\n }\n @if (\n $any(item())?.promoted &&\n type() === 'artist' &&\n texts().artistPromoted\n ) {\n <p\n class=\"text-sm font-extralight\"\n >\n {{ texts().artistPromoted }}\n </p>\n }\n @if (type() !== 'tip') {\n <h3\n id=\"item-for-list-name-{{ type() }}\"\n class=\"gap-2 justify-center items-center flex mb-0.5 px-3 text-lg font-extrabold ng-star-inserted w-full\"\n >\n {{ $any(item()).name | truncateText: 30 }}\n </h3>\n }\n @if (type() === 'playlist') {\n <p\n class=\"mb-0.5 text-sm font-extralight\"\n >\n {{ $any(item()).user?.name }}\n </p>\n }\n\n @if ($any(item()).manufacturer) {\n <div class=\"text-xs\">\n {{ $any(item()).manufacturer }}\n </div>\n }\n\n @if (\n $any(item()).country && $any(item()).country.code && type() !== 'tip'\n ) {\n <div\n class=\"flex items-center justify-center gap-1\"\n >\n <img\n id=\"item-for-list-country-img\"\n [src]=\"$any($any(item()).country).code | countryFlag\"\n class=\"w-4 h-4\"\n [alt]=\"$any($any(item()).country).name\"\n loading=\"lazy\"\n width=\"16\"\n height=\"16\"\n />\n @if (\n $any(item()).countryResidence &&\n $any(item()).countryResidence._id !== $any(item()).country?._id &&\n $any(item()).countryResidence.code !== 'nd'\n ) {\n <img\n id=\"item-for-list-country-residence-img\"\n [src]=\"$any($any(item()).countryResidence).code | countryFlag\"\n class=\"w-4 h-4\"\n [alt]=\"$any($any(item()).countryResidence).name\"\n loading=\"lazy\"\n width=\"16\"\n height=\"16\"\n />\n }\n <p id=\"item-for-list-country-name\" class=\"text-xs\">\n {{\n language() !== 'es'\n ? $any(item()).country.nameEn\n : $any(item()).country.name\n }}\n </p>\n\n @if (\n $any(item()).countryResidence &&\n $any(item()).countryResidence._id !== $any(item()).country._id &&\n $any(item()).countryResidence.code !== 'nd'\n ) {\n <span class=\"text-xs\">/</span>\n }\n @if (\n $any(item()).countryResidence &&\n $any(item()).countryResidence?._id !== $any(item()).country._id &&\n $any(item()).countryResidence.code !== 'nd'\n ) {\n <p\n id=\"item-for-list-country-residence-name\"\n class=\"text-xs\"\n >\n {{\n language() !== 'es'\n ? $any(item()).countryResidence.nameEn\n : $any(item()).countryResidence.name\n }}\n </p>\n }\n </div>\n }\n }\n\n @if (type() === 'event') {\n <p class=\"text-sm\">{{ $any(item()).date | dateLong }}</p>\n\n <h3\n id=\"item-for-list-event-name\"\n class=\"flex items-center justify-center w-full gap-2 px-3 text-lg font-extrabold\"\n >\n {{ $any(item()).name | truncateText: truncateForEvent }}\n </h3>\n <p class=\"text-[10px] font-extralight\">&#64;</p>\n <h3\n id=\"item-for-list-site-name\"\n class=\"px-2 mb-1 text-lg font-bold\"\n >\n {{ $any(item()).site?.name }}\n </h3>\n <div class=\"flex items-center justify-center gap-1 px-4\">\n <img\n id=\"item-for-list-country-img-{{ type() }}\"\n [src]=\"$any($any(item()).site).address.country.code | countryFlag\"\n [alt]=\"$any($any(item()).site).address.country.name\"\n class=\"w-4 h-4\"\n loading=\"lazy\"\n width=\"16\"\n height=\"16\"\n />\n @if ($any(item()).site.address) {\n <p\n id=\"item-for-list-country-name-{{ type() }}\"\n class=\"text-sm truncate font-extralight\"\n >\n {{\n $any(item()).site.address.region.name +\n ', ' +\n (language() !== 'es'\n ? $any(item()).site.address.country.nameEn\n : $any(item()).site.address.country.name)\n }}\n </p>\n }\n </div>\n }\n\n @if (type() === 'site') {\n <h3\n id=\"item-for-list-name-{{ type() }}\"\n class=\"gap-2 justify-center items-center flex mb-0.5 px-3 text-lg font-extrabold ng-star-inserted w-full\"\n >\n {{ $any(item()).name | truncateText: 30 }}\n </h3>\n <div class=\"flex items-center justify-center gap-1 px-4\">\n <img\n id=\"item-for-list-country-img-{{ type() }}\"\n [src]=\"$any($any(item()).address).country?.code | countryFlag\"\n class=\"w-4 h-4\"\n [alt]=\"$any($any(item()).address).country?.name\"\n loading=\"lazy\"\n width=\"16\"\n height=\"16\"\n />\n <p\n id=\"item-for-list-country-name-{{ type() }}\"\n class=\"text-sm truncate\"\n >\n @if (\n $any(item()).address.region && $any(item()).address.region.name\n ) {\n <span>\n {{ $any(item()).address.region?.name + ', ' }}\n </span>\n }\n {{\n language() !== 'es'\n ? $any(item()).address.country?.nameEn\n : $any(item()).address.country?.name\n }}\n </p>\n </div>\n }\n\n @if (type() === 'media') {\n <h3\n id=\"item-for-list-name-{{ type() }}\"\n class=\"gap-2 text-lg justify-center items-center flex mb-0.5 px-3 font-extrabold w-full\"\n >\n {{ $any(item()).name | truncateText: 80 }}\n </h3>\n\n <p id=\"item-for-list-artists\" class=\"text-sm\">\n @for (artist of ($any(item()).artists ?? []); track $index; let i = $index) {\n <span>\n {{ artist.name\n }}@if (i < ($any(item()).artists ?? []).length - 1) {<span>,</span>}\n </span>\n }\n </p>\n @if (\n $any(item()).type === 'set' &&\n $any(item()).site?._id !== ImportantItems.ANONYMOUS_SITE\n ) {\n <p\n class=\"px-2 my-1 text-[10px] font-extralight\"\n >\n &#64;\n </p>\n }\n @if (\n $any(item()).type === 'set' &&\n $any(item()).site?._id !== ImportantItems.ANONYMOUS_SITE\n ) {\n <p\n class=\"px-2 text-sm\"\n >\n {{ $any(item()).site?.name }}\n </p>\n }\n @if (\n $any(item()).organizations && $any(item()).organizations.length > 0\n ) {\n <p class=\"px-2 my-0.5 text-[10px] font-extralight\">\n X\n </p>\n <p class=\"text-sm font-extralight\">\n {{ $any(item()).organizations[0].name }}\n </p>\n }\n }\n </div>\n </a>\n</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "pipe", type: CountryFlagPipe, name: "countryFlag" }, { kind: "pipe", type: TruncateTextPipe, name: "truncateText" }, { kind: "pipe", type: DateLongPipe, name: "dateLong" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4951
4951
  }
4952
4952
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSItemCardComponent, decorators: [{
4953
4953
  type: Component,
@@ -6409,7 +6409,7 @@ class XSFormlyCheckboxComponent extends XSFormlyBaseComponent {
6409
6409
  this.control?.markAsTouched();
6410
6410
  }
6411
6411
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyCheckboxComponent, deps: [{ token: XSTranslateService }], target: i0.ɵɵFactoryTarget.Component });
6412
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyCheckboxComponent, isStandalone: true, selector: "xs-formly-checkbox", usesInheritance: true, ngImport: i0, template: "<div [class]=\"wrapperClass\">\n @if (hasOptions) {\n <xs-formly-label\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n [asHeading]=\"true\"\n />\n <div class=\"h-[1px] flex-1 bg-zinc-800/30\"></div>\n }\n\n <div\n [class.grid]=\"hasOptions\"\n class=\"grid-cols-1 sm:grid-cols-2 gap-2\"\n role=\"group\"\n [attr.aria-label]=\"props.label || ''\"\n >\n @if (hasOptions) {\n @for (option of checkboxOptions; track option.id) {\n <label\n [for]=\"id + '-' + option.id\"\n class=\"group flex items-center gap-3 rounded-xl bg-zinc-900/40 p-4 border border-transparent hover:bg-zinc-900/80 transition-all cursor-pointer select-none\"\n [class.bg-zinc-800/40]=\"isChecked(option)\"\n >\n <div class=\"relative flex items-center justify-center\">\n <input\n type=\"checkbox\"\n [id]=\"id + '-' + option.id\"\n [checked]=\"isChecked(option)\"\n [disabled]=\"props.disabled || control?.disabled\"\n (change)=\"\n toggleOption($event.target.checked, option)\n \"\n [attr.aria-describedby]=\"\n errorMessage ? 'error-' + id : null\n \"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n class=\"peer sr-only\"\n />\n <div\n class=\"w-5 h-5 border-2 border-zinc-700 rounded-md bg-zinc-950 transition-all peer-checked:bg-white peer-checked:border-white peer-focus-visible:ring-2 peer-focus-visible:ring-white/70 group-active:scale-90 outline-none\"\n ></div>\n <svg\n class=\"absolute w-3 h-3 text-black opacity-0 peer-checked:opacity-100 transition-opacity pointer-events-none\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n stroke-width=\"4\"\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M5 13l4 4L19 7\"\n />\n </svg>\n </div>\n\n <span\n class=\"text-[11px] font-bold uppercase tracking-[0.15em] transition-colors\"\n [class]=\"\n isChecked(option)\n ? 'text-white'\n : 'text-zinc-400 group-hover:text-zinc-200'\n \"\n >\n {{ option.name }}\n </span>\n </label>\n }\n } @else {\n <label\n [for]=\"id\"\n class=\"group inline-flex items-center gap-4 cursor-pointer select-none py-2 px-1\"\n >\n <div class=\"relative flex items-center justify-center\">\n <input\n [id]=\"id\"\n type=\"checkbox\"\n [formControl]=\"control\"\n class=\"peer sr-only\"\n [attr.aria-label]=\"props.description || props.label || ''\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n />\n <div\n class=\"w-5 h-5 border-2 border-zinc-700 rounded-md bg-zinc-950 transition-all peer-checked:bg-white peer-checked:border-white peer-focus-visible:ring-2 peer-focus-visible:ring-white/70 group-active:scale-90 outline-none\"\n ></div>\n <svg\n class=\"absolute w-3 h-3 text-black opacity-0 peer-checked:opacity-100 transition-opacity pointer-events-none\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n stroke-width=\"4\"\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M5 13l4 4L19 7\"\n />\n </svg>\n </div>\n <span\n class=\"text-sm text-zinc-400 leading-tight group-hover:text-zinc-200 transition-colors\"\n >\n {{ props.description }}\n </span>\n </label>\n }\n </div>\n\n @if (errorMessage) {\n <p\n [id]=\"'error-' + id\"\n class=\"text-[10px] font-bold uppercase tracking-widest text-red-500/80 px-1\"\n >\n {{ errorMessage }}\n </p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6412
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyCheckboxComponent, isStandalone: true, selector: "xs-formly-checkbox", usesInheritance: true, ngImport: i0, template: "<div [class]=\"wrapperClass\">\n @if (hasOptions) {\n <xs-formly-label\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n [asHeading]=\"true\"\n />\n <div class=\"h-[1px] flex-1 bg-zinc-800/30\"></div>\n }\n\n <div\n [class.grid]=\"hasOptions\"\n class=\"grid-cols-1 sm:grid-cols-2 gap-2\"\n role=\"group\"\n [attr.aria-label]=\"props.label || ''\"\n >\n @if (hasOptions) {\n @for (option of checkboxOptions; track option.id) {\n <label\n [for]=\"id + '-' + option.id\"\n class=\"group flex items-center gap-3 rounded-xl bg-zinc-900/40 p-4 border border-transparent hover:bg-zinc-900/80 transition-all cursor-pointer select-none\"\n [class.bg-zinc-800/40]=\"isChecked(option)\"\n >\n <div class=\"relative flex items-center justify-center\">\n <input\n type=\"checkbox\"\n [id]=\"id + '-' + option.id\"\n [checked]=\"isChecked(option)\"\n [disabled]=\"props.disabled || control?.disabled\"\n (change)=\"\n toggleOption($event.target.checked, option)\n \"\n [attr.aria-describedby]=\"\n errorMessage ? 'error-' + id : null\n \"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n class=\"peer sr-only\"\n />\n <div\n class=\"w-5 h-5 border-2 border-zinc-700 rounded-md bg-zinc-950 transition-all peer-checked:bg-white peer-checked:border-white peer-focus-visible:ring-2 peer-focus-visible:ring-white/70 group-active:scale-90 outline-none\"\n ></div>\n <svg\n class=\"absolute w-3 h-3 text-black opacity-0 peer-checked:opacity-100 transition-opacity pointer-events-none\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n stroke-width=\"4\"\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M5 13l4 4L19 7\"\n />\n </svg>\n </div>\n\n <span\n class=\"text-[11px] font-bold uppercase tracking-[0.15em] transition-colors\"\n [class]=\"\n isChecked(option)\n ? 'text-white'\n : 'text-zinc-400 group-hover:text-zinc-200'\n \"\n >\n {{ option.name }}\n </span>\n </label>\n }\n } @else {\n <label\n [for]=\"id\"\n class=\"group inline-flex items-center gap-4 cursor-pointer select-none py-2 px-1\"\n >\n <div class=\"relative flex items-center justify-center\">\n <input\n [id]=\"id\"\n type=\"checkbox\"\n [formControl]=\"control\"\n class=\"peer sr-only\"\n [attr.aria-label]=\"props.description || props.label || ''\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n />\n <div\n class=\"w-5 h-5 border-2 border-zinc-700 rounded-md bg-zinc-950 transition-all peer-checked:bg-white peer-checked:border-white peer-focus-visible:ring-2 peer-focus-visible:ring-white/70 group-active:scale-90 outline-none\"\n ></div>\n <svg\n class=\"absolute w-3 h-3 text-black opacity-0 peer-checked:opacity-100 transition-opacity pointer-events-none\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n stroke-width=\"4\"\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M5 13l4 4L19 7\"\n />\n </svg>\n </div>\n <span\n class=\"text-sm text-zinc-400 leading-tight group-hover:text-zinc-200 transition-colors\"\n >\n {{ props.description }}\n </span>\n </label>\n }\n </div>\n\n @if (errorMessage) {\n <p\n [id]=\"'error-' + id\"\n class=\"text-[10px] font-bold uppercase tracking-widest text-red-500/80 px-1\"\n >\n {{ errorMessage }}\n </p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6413
6413
  }
6414
6414
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyCheckboxComponent, decorators: [{
6415
6415
  type: Component,
@@ -6554,7 +6554,7 @@ class XSFormlyDateComponent extends XSFormlyBaseComponent {
6554
6554
  }
6555
6555
  }
6556
6556
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyDateComponent, deps: [{ token: XSTranslateService }], target: i0.ɵɵFactoryTarget.Component });
6557
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyDateComponent, isStandalone: true, selector: "xs-formly-date", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-date-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <input\n [id]=\"id\"\n [formControl]=\"control\"\n type=\"date\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n class=\"w-full input rounded-xl h-[54px]\"\n />\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6557
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyDateComponent, isStandalone: true, selector: "xs-formly-date", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-date-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <input\n [id]=\"id\"\n [formControl]=\"control\"\n type=\"date\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n class=\"w-full input rounded-xl h-[54px]\"\n />\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6558
6558
  }
6559
6559
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyDateComponent, decorators: [{
6560
6560
  type: Component,
@@ -6651,7 +6651,7 @@ class XSFormlyDatetimeComponent extends XSFormlyBaseComponent {
6651
6651
  }
6652
6652
  }
6653
6653
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyDatetimeComponent, deps: [{ token: XSTranslateService }], target: i0.ɵɵFactoryTarget.Component });
6654
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyDatetimeComponent, isStandalone: true, selector: "xs-formly-datetime", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-datetime-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <input\n [id]=\"id\"\n [formControl]=\"control\"\n type=\"datetime-local\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n class=\"w-full input rounded-xl\"\n />\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6654
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyDatetimeComponent, isStandalone: true, selector: "xs-formly-datetime", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-datetime-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <input\n [id]=\"id\"\n [formControl]=\"control\"\n type=\"datetime-local\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n class=\"w-full input rounded-xl\"\n />\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6655
6655
  }
6656
6656
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyDatetimeComponent, decorators: [{
6657
6657
  type: Component,
@@ -6664,7 +6664,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
6664
6664
 
6665
6665
  class XSFormlyHiddenComponent extends XSFormlyBaseComponent {
6666
6666
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyHiddenComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
6667
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: XSFormlyHiddenComponent, isStandalone: true, selector: "xs-formly-hidden", usesInheritance: true, ngImport: i0, template: "<input type=\"hidden\" [formControl]=\"control\" [id]=\"id\" />\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6667
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: XSFormlyHiddenComponent, isStandalone: true, selector: "xs-formly-hidden", usesInheritance: true, ngImport: i0, template: "<input type=\"hidden\" [formControl]=\"control\" [id]=\"id\" />\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6668
6668
  }
6669
6669
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyHiddenComponent, decorators: [{
6670
6670
  type: Component,
@@ -6677,7 +6677,7 @@ class XSFormlyInputComponent extends XSFormlyBaseComponent {
6677
6677
  this.xsTranslateService = translateService;
6678
6678
  }
6679
6679
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyInputComponent, deps: [{ token: XSTranslateService }], target: i0.ɵɵFactoryTarget.Component });
6680
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyInputComponent, isStandalone: true, selector: "xs-formly-input", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-input-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <input\n [formControl]=\"control\"\n [id]=\"id\"\n [type]=\"props.type || 'text'\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [readonly]=\"props.readonly\"\n [attr.inputmode]=\"props['inputmode']\"\n [attr.maxlength]=\"props['maxlength']\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n [attr.aria-required]=\"props.required ? true : null\"\n class=\"w-full rounded-xl\"\n [ngClass]=\"props['variant'] === 'secondary' ? 'input-secondary' : 'input'\"\n />\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n\n @if (!errorMessage && props.description) {\n <p class=\"text-xs text-zinc-400\">\n {{ props.description }}\n </p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6680
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyInputComponent, isStandalone: true, selector: "xs-formly-input", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-input-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <input\n [formControl]=\"control\"\n [id]=\"id\"\n [type]=\"props.type || 'text'\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [readonly]=\"props.readonly\"\n [attr.inputmode]=\"props['inputmode']\"\n [attr.maxlength]=\"props['maxlength']\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n [attr.aria-required]=\"props.required ? true : null\"\n class=\"w-full rounded-xl\"\n [ngClass]=\"props['variant'] === 'secondary' ? 'input-secondary' : 'input'\"\n />\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n\n @if (!errorMessage && props.description) {\n <p class=\"text-xs text-zinc-400\">\n {{ props.description }}\n </p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6681
6681
  }
6682
6682
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyInputComponent, decorators: [{
6683
6683
  type: Component,
@@ -7843,7 +7843,7 @@ class XSFormlyTextareaComponent extends XSFormlyBaseComponent {
7843
7843
  this.xsTranslateService = translateService;
7844
7844
  }
7845
7845
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyTextareaComponent, deps: [{ token: XSTranslateService }], target: i0.ɵɵFactoryTarget.Component });
7846
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyTextareaComponent, isStandalone: true, selector: "xs-formly-textarea", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-textarea-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <textarea\n [id]=\"id\"\n [formControl]=\"control\"\n [rows]=\"props.rows ?? 4\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [readonly]=\"props.readonly\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n [attr.aria-required]=\"props.required ? true : null\"\n class=\"w-full rounded-xl\"\n [ngClass]=\"props['variant'] === 'secondary' ? 'input-secondary' : 'input'\"\n ></textarea>\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7846
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyTextareaComponent, isStandalone: true, selector: "xs-formly-textarea", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-textarea-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <textarea\n [id]=\"id\"\n [formControl]=\"control\"\n [rows]=\"props.rows ?? 4\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [readonly]=\"props.readonly\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n [attr.aria-required]=\"props.required ? true : null\"\n class=\"w-full rounded-xl\"\n [ngClass]=\"props['variant'] === 'secondary' ? 'input-secondary' : 'input'\"\n ></textarea>\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7847
7847
  }
7848
7848
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyTextareaComponent, decorators: [{
7849
7849
  type: Component,
@@ -7860,7 +7860,7 @@ class XSFormlyTextareaSimpleComponent extends XSFormlyBaseComponent {
7860
7860
  this.xsTranslateService = translateService;
7861
7861
  }
7862
7862
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyTextareaSimpleComponent, deps: [{ token: XSTranslateService }], target: i0.ɵɵFactoryTarget.Component });
7863
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyTextareaSimpleComponent, isStandalone: true, selector: "xs-formly-textarea-simple", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-textarea-simple-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <textarea\n [id]=\"id\"\n [formControl]=\"control\"\n [rows]=\"props.rows ?? 4\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [readonly]=\"props.readonly\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n [attr.aria-required]=\"props.required ? true : null\"\n class=\"w-full rounded-xl\"\n [ngClass]=\"props['variant'] === 'secondary' ? 'input-secondary' : 'input'\"\n ></textarea>\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7863
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyTextareaSimpleComponent, isStandalone: true, selector: "xs-formly-textarea-simple", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-textarea-simple-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <textarea\n [id]=\"id\"\n [formControl]=\"control\"\n [rows]=\"props.rows ?? 4\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [readonly]=\"props.readonly\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n [attr.aria-required]=\"props.required ? true : null\"\n class=\"w-full rounded-xl\"\n [ngClass]=\"props['variant'] === 'secondary' ? 'input-secondary' : 'input'\"\n ></textarea>\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7864
7864
  }
7865
7865
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyTextareaSimpleComponent, decorators: [{
7866
7866
  type: Component,
@@ -8042,7 +8042,7 @@ class XSFormlyJsonComponent extends XSFormlyBaseComponent {
8042
8042
  }
8043
8043
  }
8044
8044
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyJsonComponent, deps: [{ token: XSTranslateService }], target: i0.ɵɵFactoryTarget.Component });
8045
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyJsonComponent, isStandalone: true, selector: "xs-formly-json", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-json-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <textarea\n [id]=\"id\"\n [formControl]=\"control\"\n [rows]=\"props.rows ?? 6\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [readonly]=\"props.readonly\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n [attr.aria-required]=\"props.required ? true : null\"\n class=\"w-full input rounded-xl\"\n ></textarea>\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8045
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyJsonComponent, isStandalone: true, selector: "xs-formly-json", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-json-' + id\" [class]=\"wrapperClass\">\n <xs-formly-label\n [for]=\"id\"\n [label]=\"translateLabel(props.label)\"\n [required]=\"props.required\"\n [infoText]=\"infoText\"\n />\n\n <textarea\n [id]=\"id\"\n [formControl]=\"control\"\n [rows]=\"props.rows ?? 6\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [readonly]=\"props.readonly\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n [attr.aria-required]=\"props.required ? true : null\"\n class=\"w-full input rounded-xl\"\n ></textarea>\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8046
8046
  }
8047
8047
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyJsonComponent, decorators: [{
8048
8048
  type: Component,
@@ -8069,7 +8069,7 @@ class XSFormlyJsonEditorComponent extends XSFormlyBaseComponent {
8069
8069
  }
8070
8070
  }
8071
8071
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyJsonEditorComponent, deps: [{ token: XSTranslateService }], target: i0.ɵɵFactoryTarget.Component });
8072
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyJsonEditorComponent, isStandalone: true, selector: "xs-formly-json-editor", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-json-editor-' + id\" [class]=\"wrapperClass\">\n @if (props.label) {\n <label\n [for]=\"id\"\n class=\"block text-sm font-semibold text-white\"\n >\n {{ translateLabel(props.label) }}\n @if (props.required) {\n <span class=\"text-red-500\">*</span>\n }\n @if (infoText) {\n <xs-popover-info [text]=\"infoText\" />\n }\n </label>\n }\n\n <textarea\n [id]=\"id\"\n [formControl]=\"control\"\n [rows]=\"props.rows ?? 8\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [readonly]=\"props.readonly\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n [attr.aria-required]=\"props.required ? true : null\"\n (blur)=\"formatJson()\"\n class=\"w-full input rounded-xl\"\n ></textarea>\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSPopoverInfoComponent, selector: "xs-popover-info", inputs: ["text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8072
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyJsonEditorComponent, isStandalone: true, selector: "xs-formly-json-editor", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-json-editor-' + id\" [class]=\"wrapperClass\">\n @if (props.label) {\n <label\n [for]=\"id\"\n class=\"block text-sm font-semibold text-white\"\n >\n {{ translateLabel(props.label) }}\n @if (props.required) {\n <span class=\"text-red-500\">*</span>\n }\n @if (infoText) {\n <xs-popover-info [text]=\"infoText\" />\n }\n </label>\n }\n\n <textarea\n [id]=\"id\"\n [formControl]=\"control\"\n [rows]=\"props.rows ?? 8\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n [readonly]=\"props.readonly\"\n [attr.aria-describedby]=\"errorMessage ? 'error-' + id : null\"\n [attr.aria-invalid]=\"errorMessage ? true : null\"\n [attr.aria-required]=\"props.required ? true : null\"\n (blur)=\"formatJson()\"\n class=\"w-full input rounded-xl\"\n ></textarea>\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSPopoverInfoComponent, selector: "xs-popover-info", inputs: ["text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8073
8073
  }
8074
8074
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyJsonEditorComponent, decorators: [{
8075
8075
  type: Component,
@@ -8693,7 +8693,7 @@ class XSModalInputComponent {
8693
8693
  }
8694
8694
  }
8695
8695
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSModalInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8696
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSModalInputComponent, isStandalone: true, selector: "xs-modal-input", inputs: { modalData: { classPropertyName: "modalData", publicName: "modalData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modalResult: "modalResult" }, host: { attributes: { "xs-modal-input-host": "" } }, ngImport: i0, template: "<div class=\"mt-3 w-100\">\n <div class=\"mt-3 w-100 relative\">\n <input\n name=\"formInput\"\n [placeholder]=\"\n modalData()?.placeholder ?? placeholderText\n \"\n [attr.aria-label]=\"placeholderText\"\n [(ngModel)]=\"input\"\n [maxlength]=\"modalData()?.maxLength ?? 50\"\n [minlength]=\"modalData()?.minLength ?? 1\"\n class=\"w-full px-6 py-1 text-base font-medium text-center bg-white border rounded-md dark:border-none dark:text-white dark:bg-zinc-900/50 rounded-y-md ring-red-500 dark:ring-red-500\"\n />\n @if (modalData()?.maxLength) {\n <span\n class=\"absolute right-0 bottom-0 text-xs text-gray-500 mr-2 mb-1\"\n aria-hidden=\"true\"\n >\n {{ input.length }} / {{ modalData()?.maxLength }}\n </span>\n } @else {\n <span\n class=\"absolute right-0 bottom-0 text-xs text-gray-500 mr-2 mb-1\"\n aria-hidden=\"true\"\n >\n {{ input.length }}\n </span>\n }\n </div>\n </div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { kind: "directive", type: i1$2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8696
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSModalInputComponent, isStandalone: true, selector: "xs-modal-input", inputs: { modalData: { classPropertyName: "modalData", publicName: "modalData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modalResult: "modalResult" }, host: { attributes: { "xs-modal-input-host": "" } }, ngImport: i0, template: "<div class=\"mt-3 w-100\">\n <div class=\"mt-3 w-100 relative\">\n <input\n name=\"formInput\"\n [placeholder]=\"\n modalData()?.placeholder ?? placeholderText\n \"\n [attr.aria-label]=\"placeholderText\"\n [(ngModel)]=\"input\"\n [maxlength]=\"modalData()?.maxLength ?? 50\"\n [minlength]=\"modalData()?.minLength ?? 1\"\n class=\"w-full px-6 py-1 text-base font-medium text-center bg-white border rounded-md dark:border-none dark:text-white dark:bg-zinc-900/50 rounded-y-md ring-red-500 dark:ring-red-500\"\n />\n @if (modalData()?.maxLength) {\n <span\n class=\"absolute right-0 bottom-0 text-xs text-gray-500 mr-2 mb-1\"\n aria-hidden=\"true\"\n >\n {{ input.length }} / {{ modalData()?.maxLength }}\n </span>\n } @else {\n <span\n class=\"absolute right-0 bottom-0 text-xs text-gray-500 mr-2 mb-1\"\n aria-hidden=\"true\"\n >\n {{ input.length }}\n </span>\n }\n </div>\n </div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { kind: "directive", type: i1$3.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8697
8697
  }
8698
8698
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSModalInputComponent, decorators: [{
8699
8699
  type: Component,
@@ -8721,7 +8721,7 @@ class XSModalClaimComponent {
8721
8721
  }
8722
8722
  ngOnDestroy() { }
8723
8723
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSModalClaimComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8724
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.33", type: XSModalClaimComponent, isStandalone: true, selector: "xs-modal-claim", inputs: { modalData: { classPropertyName: "modalData", publicName: "modalData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modalResult: "modalResult" }, host: { attributes: { "xs-modal-claim-host": "" } }, ngImport: i0, template: " <div class=\"mt-3 mb-1 w-100\">\n <textarea\n id=\"claim-textarea\"\n name=\"reason\"\n [placeholder]=\"modalData()?.enterReason ?? ''\"\n [attr.aria-label]=\"modalData()?.enterReason ?? 'Motivo del reclamo'\"\n [(ngModel)]=\"reason\"\n class=\"rounded-xl input\"\n ></textarea>\n </div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8724
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.33", type: XSModalClaimComponent, isStandalone: true, selector: "xs-modal-claim", inputs: { modalData: { classPropertyName: "modalData", publicName: "modalData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modalResult: "modalResult" }, host: { attributes: { "xs-modal-claim-host": "" } }, ngImport: i0, template: " <div class=\"mt-3 mb-1 w-100\">\n <textarea\n id=\"claim-textarea\"\n name=\"reason\"\n [placeholder]=\"modalData()?.enterReason ?? ''\"\n [attr.aria-label]=\"modalData()?.enterReason ?? 'Motivo del reclamo'\"\n [(ngModel)]=\"reason\"\n class=\"rounded-xl input\"\n ></textarea>\n </div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8725
8725
  }
8726
8726
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSModalClaimComponent, decorators: [{
8727
8727
  type: Component,
@@ -9129,7 +9129,7 @@ class XSModalDateComponent {
9129
9129
  }
9130
9130
  }
9131
9131
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSModalDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9132
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSModalDateComponent, isStandalone: true, selector: "xs-modal-date", inputs: { modalData: { classPropertyName: "modalData", publicName: "modalData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modalResult: "modalResult" }, host: { attributes: { "xs-modal-date-host": "" } }, viewQueries: [{ propertyName: "dateInput", first: true, predicate: ["dateInput"], descendants: true, isSignal: true }], ngImport: i0, template: "\n <div class=\"mt-3 w-100\">\n <div class=\"mt-3 w-100 relative\">\n <input\n #dateInput\n type=\"date\"\n [(ngModel)]=\"selectedDate\"\n [class]=\"\n isMobile\n ? 'absolute inset-0 opacity-0 w-full h-full cursor-pointer z-20'\n : 'sr-only'\n \"\n [attr.aria-label]=\"selectDatePlaceholder\"\n />\n\n <button\n type=\"button\"\n class=\"flex items-center justify-between w-full px-4 py-2.5 text-left text-white rounded-xl shadow-sm bg-zinc-900/50 border border-transparent focus:border-zinc-800 focus:outline-none focus:ring-0\"\n (click)=\"showPicker()\"\n [attr.tabindex]=\"isMobile ? -1 : 0\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"openPickerLabel\"\n >\n <span class=\"flex items-center gap-2 text-sm truncate\">\n @if (selectedDate) {\n <span class=\"text-white\">\n {{ selectedDate | date: 'dd/MM/yyyy' }}\n </span>\n } @else {\n <span class=\"text-zinc-500\">\n {{\n modalData()?.placeholder ||\n selectDatePlaceholder\n }}\n </span>\n }\n </span>\n <svg\n class=\"w-4 h-4 ml-2 text-white\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M6 2a1 1 0 011 1v1h6V3a1 1 0 112 0v1h1a2 2 0 012 2v9a2 2 0 01-2 2H4a2 2 0 01-2-2V6a2 2 0 012-2h1V3a1 1 0 112 0v1zm11 6H3v7a1 1 0 001 1h12a1 1 0 001-1V8z\"\n />\n </svg>\n </button>\n </div>\n </div>\n ", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9132
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSModalDateComponent, isStandalone: true, selector: "xs-modal-date", inputs: { modalData: { classPropertyName: "modalData", publicName: "modalData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modalResult: "modalResult" }, host: { attributes: { "xs-modal-date-host": "" } }, viewQueries: [{ propertyName: "dateInput", first: true, predicate: ["dateInput"], descendants: true, isSignal: true }], ngImport: i0, template: "\n <div class=\"mt-3 w-100\">\n <div class=\"mt-3 w-100 relative\">\n <input\n #dateInput\n type=\"date\"\n [(ngModel)]=\"selectedDate\"\n [class]=\"\n isMobile\n ? 'absolute inset-0 opacity-0 w-full h-full cursor-pointer z-20'\n : 'sr-only'\n \"\n [attr.aria-label]=\"selectDatePlaceholder\"\n />\n\n <button\n type=\"button\"\n class=\"flex items-center justify-between w-full px-4 py-2.5 text-left text-white rounded-xl shadow-sm bg-zinc-900/50 border border-transparent focus:border-zinc-800 focus:outline-none focus:ring-0\"\n (click)=\"showPicker()\"\n [attr.tabindex]=\"isMobile ? -1 : 0\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"openPickerLabel\"\n >\n <span class=\"flex items-center gap-2 text-sm truncate\">\n @if (selectedDate) {\n <span class=\"text-white\">\n {{ selectedDate | date: 'dd/MM/yyyy' }}\n </span>\n } @else {\n <span class=\"text-zinc-500\">\n {{\n modalData()?.placeholder ||\n selectDatePlaceholder\n }}\n </span>\n }\n </span>\n <svg\n class=\"w-4 h-4 ml-2 text-white\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M6 2a1 1 0 011 1v1h6V3a1 1 0 112 0v1h1a2 2 0 012 2v9a2 2 0 01-2 2H4a2 2 0 01-2-2V6a2 2 0 012-2h1V3a1 1 0 112 0v1zm11 6H3v7a1 1 0 001 1h12a1 1 0 001-1V8z\"\n />\n </svg>\n </button>\n </div>\n </div>\n ", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9133
9133
  }
9134
9134
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSModalDateComponent, decorators: [{
9135
9135
  type: Component,
@@ -9448,7 +9448,7 @@ class XSModalImageSearchComponent {
9448
9448
  }
9449
9449
  }
9450
9450
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSModalImageSearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9451
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSModalImageSearchComponent, isStandalone: true, selector: "xs-modal-image-search", inputs: { modalData: { classPropertyName: "modalData", publicName: "modalData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modalResult: "modalResult" }, host: { attributes: { "xs-modal-image-search-host": "" } }, ngImport: i0, template: "\n <div class=\"mt-3 w-100\">\n <div class=\"relative\">\n <svg\n class=\"search-icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\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 <circle cx=\"11\" cy=\"11\" r=\"8\"></circle>\n <line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\"></line>\n </svg>\n <input\n class=\"search-input\"\n type=\"text\"\n [(ngModel)]=\"query\"\n (keydown.enter)=\"onSearch()\"\n (keydown)=\"onKeyDown($event)\"\n [placeholder]=\"placeholderText\"\n [attr.aria-label]=\"placeholderText\"\n />\n </div>\n <xs-button\n (onClick)=\"onSearch()\"\n [label]=\"searchLabel\"\n [disabled]=\"!query || loading()\"\n layout=\"between\"\n variant=\"primary\"\n [isFull]=\"true\"\n [icon]=\"{ name: 'search' }\"\n class=\"mt-3\"\n />\n\n @if (error()) {\n <div\n class=\"flex flex-col items-center justify-center py-8 text-gray-500\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"mb-2\"\n aria-hidden=\"true\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n <line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"12\"></line>\n <line x1=\"12\" y1=\"16\" x2=\"12.01\" y2=\"16\"></line>\n </svg>\n <p class=\"text-sm mb-3\">{{ error() }}</p>\n <xs-button\n (onClick)=\"onSearch()\"\n [label]=\"retryLabel\"\n [disabled]=\"loading()\"\n layout=\"base\"\n variant=\"secondary\"\n [isFull]=\"false\"\n [icon]=\"{ name: 'refresh' }\"\n />\n </div>\n }\n\n @if (loading()) {\n <div class=\"image-grid\" aria-hidden=\"true\">\n @for (_ of [].constructor(9); track $index) {\n <div\n class=\"shimmer image-item border-none cursor-default\"\n ></div>\n }\n </div>\n }\n\n @if (results().length > 0 && !loading()) {\n <div class=\"image-grid mt-3\">\n @for (result of results(); track result.url + result.sourceId) {\n <div\n class=\"image-item\"\n [class.selected]=\"selectedImage() === result.url\"\n (click)=\"onTap(result.url)\"\n (keydown)=\"onKeyDown($event, result.url)\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"selectImageLabel\"\n >\n <xs-image\n [src]=\"result.url\"\n [alt]=\"''\"\n loading=\"lazy\"\n (onError)=\"onImageError(result.url)\"\n />\n @if (hasMultipleSources) {\n <div\n class=\"source-badge\"\n [class.bg-blue-600]=\"result.sourceId === 'google'\"\n [class.bg-orange-600]=\"result.sourceId === 'soundcloud'\"\n [class.bg-purple-600]=\"result.sourceId === 'ra'\"\n >\n {{ getSourceLabel(result.sourceId) }}\n </div>\n }\n <div\n class=\"check-badge\"\n [class.bg-green-500]=\"selectedImage() === result.url\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"3\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polyline points=\"20 6 9 17 4 12\"></polyline>\n </svg>\n </div>\n </div>\n }\n </div>\n\n @if (canLoadMore) {\n <div class=\"flex justify-center mt-4\">\n <xs-button\n (onClick)=\"loadMore()\"\n [label]=\"loadingMore() ? loadingText : loadMoreLabel\"\n [disabled]=\"loadingMore()\"\n layout=\"base\"\n variant=\"secondary\"\n [isFull]=\"false\"\n ></xs-button>\n </div>\n }\n }\n\n @if (\n results().length === 0 &&\n !loading() &&\n !error() &&\n searched()\n ) {\n <div\n class=\"flex flex-col items-center justify-center py-8 text-gray-500\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"mb-2\"\n aria-hidden=\"true\"\n >\n <rect\n x=\"2\"\n y=\"2\"\n width=\"20\"\n height=\"20\"\n rx=\"5\"\n ry=\"5\"\n ></rect>\n <line x1=\"2\" y1=\"12\" x2=\"22\" y2=\"12\"></line>\n </svg>\n <p class=\"text-sm\">{{ noImagesText }}</p>\n </div>\n }\n\n </div>\n \n", styles: [":host{display:block}.shimmer{background:linear-gradient(90deg,#2a2a2a 25%,#3a3a3a,#2a2a2a 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.image-item{aspect-ratio:1;border-radius:.75rem;overflow:hidden;cursor:pointer;position:relative;border:2px solid transparent;transition:all .2s ease}.image-item:hover{transform:scale(1.03);box-shadow:0 4px 20px #0006}.image-item.selected{border-color:#22c55e;box-shadow:0 0 0 2px #22c55e4d}.image-item img{width:100%;height:100%;object-fit:cover}.check-badge{position:absolute;top:.25rem;right:.25rem;width:1.25rem;height:1.25rem;border-radius:9999px;display:flex;align-items:center;justify-content:center;font-size:.7rem;color:#fff;transform:scale(0);transition:transform .2s ease}.image-item.selected .check-badge{transform:scale(1)}.source-badge{position:absolute;bottom:.25rem;right:.25rem;padding:.125rem .375rem;border-radius:.25rem;font-size:.6rem;font-weight:600;line-height:1;color:#fff;pointer-events:none;opacity:.85}.search-input{width:100%;padding:.625rem 1rem .625rem 2.5rem;border-radius:.75rem;border:1px solid #27272a;background:#18181b;color:#fff;font-size:.875rem;outline:none;transition:border-color .2s,box-shadow .2s}.search-input:focus{border-color:#52525b;box-shadow:0 0 0 3px #52525b26}.search-input::placeholder{color:#666}.search-icon{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);color:#666;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: i0.forwardRef(() => CommonModule) }, { kind: "ngmodule", type: i0.forwardRef(() => FormsModule) }, { kind: "directive", type: i0.forwardRef(() => i1$2.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: i0.forwardRef(() => i1$2.NgControlStatus), selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i0.forwardRef(() => i1$2.NgModel), selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i0.forwardRef(() => XSImageComponent), selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "component", type: i0.forwardRef(() => XSButtonComponent), selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9451
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSModalImageSearchComponent, isStandalone: true, selector: "xs-modal-image-search", inputs: { modalData: { classPropertyName: "modalData", publicName: "modalData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modalResult: "modalResult" }, host: { attributes: { "xs-modal-image-search-host": "" } }, ngImport: i0, template: "\n <div class=\"mt-3 w-100\">\n <div class=\"relative\">\n <svg\n class=\"search-icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\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 <circle cx=\"11\" cy=\"11\" r=\"8\"></circle>\n <line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\"></line>\n </svg>\n <input\n class=\"search-input\"\n type=\"text\"\n [(ngModel)]=\"query\"\n (keydown.enter)=\"onSearch()\"\n (keydown)=\"onKeyDown($event)\"\n [placeholder]=\"placeholderText\"\n [attr.aria-label]=\"placeholderText\"\n />\n </div>\n <xs-button\n (onClick)=\"onSearch()\"\n [label]=\"searchLabel\"\n [disabled]=\"!query || loading()\"\n layout=\"between\"\n variant=\"primary\"\n [isFull]=\"true\"\n [icon]=\"{ name: 'search' }\"\n class=\"mt-3\"\n />\n\n @if (error()) {\n <div\n class=\"flex flex-col items-center justify-center py-8 text-gray-500\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"mb-2\"\n aria-hidden=\"true\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n <line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"12\"></line>\n <line x1=\"12\" y1=\"16\" x2=\"12.01\" y2=\"16\"></line>\n </svg>\n <p class=\"text-sm mb-3\">{{ error() }}</p>\n <xs-button\n (onClick)=\"onSearch()\"\n [label]=\"retryLabel\"\n [disabled]=\"loading()\"\n layout=\"base\"\n variant=\"secondary\"\n [isFull]=\"false\"\n [icon]=\"{ name: 'refresh' }\"\n />\n </div>\n }\n\n @if (loading()) {\n <div class=\"image-grid\" aria-hidden=\"true\">\n @for (_ of [].constructor(9); track $index) {\n <div\n class=\"shimmer image-item border-none cursor-default\"\n ></div>\n }\n </div>\n }\n\n @if (results().length > 0 && !loading()) {\n <div class=\"image-grid mt-3\">\n @for (result of results(); track result.url + result.sourceId) {\n <div\n class=\"image-item\"\n [class.selected]=\"selectedImage() === result.url\"\n (click)=\"onTap(result.url)\"\n (keydown)=\"onKeyDown($event, result.url)\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"selectImageLabel\"\n >\n <xs-image\n [src]=\"result.url\"\n [alt]=\"''\"\n loading=\"lazy\"\n (onError)=\"onImageError(result.url)\"\n />\n @if (hasMultipleSources) {\n <div\n class=\"source-badge\"\n [class.bg-blue-600]=\"result.sourceId === 'google'\"\n [class.bg-orange-600]=\"result.sourceId === 'soundcloud'\"\n [class.bg-purple-600]=\"result.sourceId === 'ra'\"\n >\n {{ getSourceLabel(result.sourceId) }}\n </div>\n }\n <div\n class=\"check-badge\"\n [class.bg-green-500]=\"selectedImage() === result.url\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"3\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polyline points=\"20 6 9 17 4 12\"></polyline>\n </svg>\n </div>\n </div>\n }\n </div>\n\n @if (canLoadMore) {\n <div class=\"flex justify-center mt-4\">\n <xs-button\n (onClick)=\"loadMore()\"\n [label]=\"loadingMore() ? loadingText : loadMoreLabel\"\n [disabled]=\"loadingMore()\"\n layout=\"base\"\n variant=\"secondary\"\n [isFull]=\"false\"\n ></xs-button>\n </div>\n }\n }\n\n @if (\n results().length === 0 &&\n !loading() &&\n !error() &&\n searched()\n ) {\n <div\n class=\"flex flex-col items-center justify-center py-8 text-gray-500\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"mb-2\"\n aria-hidden=\"true\"\n >\n <rect\n x=\"2\"\n y=\"2\"\n width=\"20\"\n height=\"20\"\n rx=\"5\"\n ry=\"5\"\n ></rect>\n <line x1=\"2\" y1=\"12\" x2=\"22\" y2=\"12\"></line>\n </svg>\n <p class=\"text-sm\">{{ noImagesText }}</p>\n </div>\n }\n\n </div>\n \n", styles: [":host{display:block}.shimmer{background:linear-gradient(90deg,#2a2a2a 25%,#3a3a3a,#2a2a2a 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.image-item{aspect-ratio:1;border-radius:.75rem;overflow:hidden;cursor:pointer;position:relative;border:2px solid transparent;transition:all .2s ease}.image-item:hover{transform:scale(1.03);box-shadow:0 4px 20px #0006}.image-item.selected{border-color:#22c55e;box-shadow:0 0 0 2px #22c55e4d}.image-item img{width:100%;height:100%;object-fit:cover}.check-badge{position:absolute;top:.25rem;right:.25rem;width:1.25rem;height:1.25rem;border-radius:9999px;display:flex;align-items:center;justify-content:center;font-size:.7rem;color:#fff;transform:scale(0);transition:transform .2s ease}.image-item.selected .check-badge{transform:scale(1)}.source-badge{position:absolute;bottom:.25rem;right:.25rem;padding:.125rem .375rem;border-radius:.25rem;font-size:.6rem;font-weight:600;line-height:1;color:#fff;pointer-events:none;opacity:.85}.search-input{width:100%;padding:.625rem 1rem .625rem 2.5rem;border-radius:.75rem;border:1px solid #27272a;background:#18181b;color:#fff;font-size:.875rem;outline:none;transition:border-color .2s,box-shadow .2s}.search-input:focus{border-color:#52525b;box-shadow:0 0 0 3px #52525b26}.search-input::placeholder{color:#666}.search-icon{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);color:#666;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: i0.forwardRef(() => CommonModule) }, { kind: "ngmodule", type: i0.forwardRef(() => FormsModule) }, { kind: "directive", type: i0.forwardRef(() => i1$3.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: i0.forwardRef(() => i1$3.NgControlStatus), selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i0.forwardRef(() => i1$3.NgModel), selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i0.forwardRef(() => XSImageComponent), selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "component", type: i0.forwardRef(() => XSButtonComponent), selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9452
9452
  }
9453
9453
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSModalImageSearchComponent, decorators: [{
9454
9454
  type: Component,
@@ -10438,7 +10438,7 @@ class XSFormlyHtmlEditorComponent extends XSFormlyBaseComponent {
10438
10438
  }
10439
10439
  }
10440
10440
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyHtmlEditorComponent, deps: [{ token: XSTranslateService }], target: i0.ɵɵFactoryTarget.Component });
10441
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyHtmlEditorComponent, isStandalone: true, selector: "xs-formly-html-editor", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-html-editor-' + id\" [class]=\"wrapperClass\" [ngClass]=\"{\n 'xs-html-editor-default': props['variant'] !== 'secondary',\n 'xs-html-editor-secondary': props['variant'] === 'secondary',\n}\">\n @if (props.label || aiEnabled || translateEnabled || aiTranslateEnabled) {\n <div class=\"flex items-center gap-2 mb-2\">\n @if (props.label) {\n <label [for]=\"id\" class=\"formly-label mb-0\">\n {{ translateLabel(props.label) }}\n @if (props.required) {\n <span class=\"text-red-500\">*</span>\n }\n @if (infoText) {\n <xs-popover-info [text]=\"infoText\" />\n }\n </label>\n }\n @if (aiEnabled) {\n <button\n type=\"button\"\n class=\"xs-html-editor-ai-btn\"\n (click)=\"handleAiClick()\"\n [title]=\"aiButtonTitle\"\n >\n {{ aiButtonLabel }}\n </button>\n }\n @if (translateEnabled) {\n <button\n type=\"button\"\n class=\"xs-html-editor-translate-btn\"\n (click)=\"handleTranslateClick()\"\n [title]=\"translateButtonTitle\"\n >\n {{ translateButtonLabel }}\n </button>\n }\n @if (aiTranslateEnabled) {\n <button\n type=\"button\"\n class=\"xs-html-editor-ai-translate-btn\"\n (click)=\"handleAiTranslateClick()\"\n [title]=\"aiTranslateButtonTitle\"\n >\n {{ aiTranslateButtonLabel }}\n </button>\n }\n </div>\n }\n\n <angular-editor\n [id]=\"id\"\n [formControl]=\"control\"\n [config]=\"editorConfig\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n ></angular-editor>\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", styles: [".angular-editor{border-radius:.75rem;overflow:hidden;font-size:.875rem;--ae-toolbar-border-radius: 0;--ae-toolbar-padding: .25rem;--ae-text-area-border: 0;--ae-text-area-border-radius: 0;--ae-button-bg-color: transparent;--ae-button-hover-bg-color: rgba(255, 255, 255, .08);--ae-button-active-bg-color: rgba(255, 255, 255, .12);--ae-button-border: 0;--ae-button-radius: .375rem;--ae-gap: .25rem;--ae-focus-outline-color: transparent;--ae-picker-color: #a1a1aa;--ae-picker-label-color: #a1a1aa;--ae-picker-option-bg-color: rgba(24, 24, 27, .95);--ae-picker-option-hover-bg-color: rgba( 255, 255, 255, .08 )}.xs-html-editor-default .angular-editor{--ae-toolbar-bg-color: rgba(24, 24, 27, .5)}.angular-editor-toolbar .select-custom-style{display:none!important}.xs-html-editor-secondary .angular-editor{--ae-toolbar-bg-color: #000}.angular-editor-textarea{border:0!important;border-radius:0!important;color:#fff!important;padding:.75rem!important;min-height:7rem!important}.xs-html-editor-default .angular-editor-textarea{background:#18181b80!important}.xs-html-editor-secondary .angular-editor-textarea{background:#000!important}.angular-editor-textarea:empty:before{color:#71717a!important}.angular-editor-toolbar{border-radius:0!important}.angular-editor-button{color:#a1a1aa!important}.angular-editor-button:hover{color:#fff!important}.angular-editor-textarea ol{list-style-type:decimal;padding-left:1.5rem;margin:.5rem 0}.angular-editor-textarea ul{list-style-type:disc;padding-left:1.5rem;margin:.5rem 0}.angular-editor-textarea li{color:#fff}.xs-html-editor-ai-btn{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;font-size:.75rem;font-weight:600;line-height:1;border-radius:.375rem;background:#a855f726;color:#c084fc;border:1px solid rgba(168,85,247,.3);cursor:pointer;transition:all .15s ease;margin-left:auto;white-space:nowrap}.xs-html-editor-ai-btn:hover{background:#a855f740;border-color:#a855f780}.xs-html-editor-translate-btn{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;font-size:.75rem;font-weight:600;line-height:1;border-radius:.375rem;background:#22c55e26;color:#4ade80;border:1px solid rgba(34,197,94,.3);cursor:pointer;transition:all .15s ease;margin-left:auto;white-space:nowrap}.xs-html-editor-translate-btn:hover{background:#22c55e40;border-color:#22c55e80}.xs-html-editor-ai-translate-btn{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;font-size:.75rem;font-weight:600;line-height:1;border-radius:.375rem;background:#3b82f626;color:#93c5fd;border:1px solid rgba(59,130,246,.3);cursor:pointer;transition:all .15s ease;white-space:nowrap}.xs-html-editor-ai-translate-btn:hover{background:#3b82f640;border-color:#3b82f680}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: AngularEditorModule }, { kind: "component", type: i4.AngularEditorComponent, selector: "angular-editor", inputs: ["id", "config", "placeholder", "tabIndex"], outputs: ["html", "viewMode", "blur", "focus", "contentChanged"] }, { kind: "component", type: XSPopoverInfoComponent, selector: "xs-popover-info", inputs: ["text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
10441
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFormlyHtmlEditorComponent, isStandalone: true, selector: "xs-formly-html-editor", usesInheritance: true, ngImport: i0, template: "<div [id]=\"'xs-formly-html-editor-' + id\" [class]=\"wrapperClass\" [ngClass]=\"{\n 'xs-html-editor-default': props['variant'] !== 'secondary',\n 'xs-html-editor-secondary': props['variant'] === 'secondary',\n}\">\n @if (props.label || aiEnabled || translateEnabled || aiTranslateEnabled) {\n <div class=\"flex items-center gap-2 mb-2\">\n @if (props.label) {\n <label [for]=\"id\" class=\"formly-label mb-0\">\n {{ translateLabel(props.label) }}\n @if (props.required) {\n <span class=\"text-red-500\">*</span>\n }\n @if (infoText) {\n <xs-popover-info [text]=\"infoText\" />\n }\n </label>\n }\n @if (aiEnabled) {\n <button\n type=\"button\"\n class=\"xs-html-editor-ai-btn\"\n (click)=\"handleAiClick()\"\n [title]=\"aiButtonTitle\"\n >\n {{ aiButtonLabel }}\n </button>\n }\n @if (translateEnabled) {\n <button\n type=\"button\"\n class=\"xs-html-editor-translate-btn\"\n (click)=\"handleTranslateClick()\"\n [title]=\"translateButtonTitle\"\n >\n {{ translateButtonLabel }}\n </button>\n }\n @if (aiTranslateEnabled) {\n <button\n type=\"button\"\n class=\"xs-html-editor-ai-translate-btn\"\n (click)=\"handleAiTranslateClick()\"\n [title]=\"aiTranslateButtonTitle\"\n >\n {{ aiTranslateButtonLabel }}\n </button>\n }\n </div>\n }\n\n <angular-editor\n [id]=\"id\"\n [formControl]=\"control\"\n [config]=\"editorConfig\"\n [placeholder]=\"translateLabel(props.placeholder) || ''\"\n ></angular-editor>\n\n @if (errorMessage) {\n <p [id]=\"'error-' + id\" class=\"text-xs text-red-500\">{{ errorMessage }}</p>\n }\n</div>\n", styles: [".angular-editor{border-radius:.75rem;overflow:hidden;font-size:.875rem;--ae-toolbar-border-radius: 0;--ae-toolbar-padding: .25rem;--ae-text-area-border: 0;--ae-text-area-border-radius: 0;--ae-button-bg-color: transparent;--ae-button-hover-bg-color: rgba(255, 255, 255, .08);--ae-button-active-bg-color: rgba(255, 255, 255, .12);--ae-button-border: 0;--ae-button-radius: .375rem;--ae-gap: .25rem;--ae-focus-outline-color: transparent;--ae-picker-color: #a1a1aa;--ae-picker-label-color: #a1a1aa;--ae-picker-option-bg-color: rgba(24, 24, 27, .95);--ae-picker-option-hover-bg-color: rgba( 255, 255, 255, .08 )}.xs-html-editor-default .angular-editor{--ae-toolbar-bg-color: rgba(24, 24, 27, .5)}.angular-editor-toolbar .select-custom-style{display:none!important}.xs-html-editor-secondary .angular-editor{--ae-toolbar-bg-color: #000}.angular-editor-textarea{border:0!important;border-radius:0!important;color:#fff!important;padding:.75rem!important;min-height:7rem!important}.xs-html-editor-default .angular-editor-textarea{background:#18181b80!important}.xs-html-editor-secondary .angular-editor-textarea{background:#000!important}.angular-editor-textarea:empty:before{color:#71717a!important}.angular-editor-toolbar{border-radius:0!important}.angular-editor-button{color:#a1a1aa!important}.angular-editor-button:hover{color:#fff!important}.angular-editor-textarea ol{list-style-type:decimal;padding-left:1.5rem;margin:.5rem 0}.angular-editor-textarea ul{list-style-type:disc;padding-left:1.5rem;margin:.5rem 0}.angular-editor-textarea li{color:#fff}.xs-html-editor-ai-btn{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;font-size:.75rem;font-weight:600;line-height:1;border-radius:.375rem;background:#a855f726;color:#c084fc;border:1px solid rgba(168,85,247,.3);cursor:pointer;transition:all .15s ease;margin-left:auto;white-space:nowrap}.xs-html-editor-ai-btn:hover{background:#a855f740;border-color:#a855f780}.xs-html-editor-translate-btn{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;font-size:.75rem;font-weight:600;line-height:1;border-radius:.375rem;background:#22c55e26;color:#4ade80;border:1px solid rgba(34,197,94,.3);cursor:pointer;transition:all .15s ease;margin-left:auto;white-space:nowrap}.xs-html-editor-translate-btn:hover{background:#22c55e40;border-color:#22c55e80}.xs-html-editor-ai-translate-btn{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;font-size:.75rem;font-weight:600;line-height:1;border-radius:.375rem;background:#3b82f626;color:#93c5fd;border:1px solid rgba(59,130,246,.3);cursor:pointer;transition:all .15s ease;white-space:nowrap}.xs-html-editor-ai-translate-btn:hover{background:#3b82f640;border-color:#3b82f680}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: AngularEditorModule }, { kind: "component", type: i4.AngularEditorComponent, selector: "angular-editor", inputs: ["id", "config", "placeholder", "tabIndex"], outputs: ["html", "viewMode", "blur", "focus", "contentChanged"] }, { kind: "component", type: XSPopoverInfoComponent, selector: "xs-popover-info", inputs: ["text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
10442
10442
  }
10443
10443
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyHtmlEditorComponent, decorators: [{
10444
10444
  type: Component,
@@ -10771,7 +10771,7 @@ class XSFormlyInputWithActionsComponent extends XSFormlyBaseComponent {
10771
10771
  </p>
10772
10772
  }
10773
10773
  </div>
10774
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
10774
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: XSFormlyLabelComponent, selector: "xs-formly-label", inputs: ["for", "label", "required", "infoText", "asHeading", "elementId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
10775
10775
  }
10776
10776
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyInputWithActionsComponent, decorators: [{
10777
10777
  type: Component,
@@ -10908,7 +10908,7 @@ const XS_FORMLY_FIELD_COMPONENTS = [
10908
10908
  ];
10909
10909
  class XSFormlyModule {
10910
10910
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10911
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyModule, imports: [i1$3.FormlyModule, XSFormlyLabelComponent,
10911
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyModule, imports: [i1$4.FormlyModule, XSFormlyLabelComponent,
10912
10912
  XSPopoverInfoComponent, XSFormlyArrayComponent,
10913
10913
  XSFormlyButtonComponent,
10914
10914
  XSFormlyCheckboxComponent,
@@ -11359,7 +11359,7 @@ class XSFormlyComponent {
11359
11359
  }
11360
11360
  }
11361
11361
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyComponent, deps: [{ token: XSTranslateService }], target: i0.ɵɵFactoryTarget.Component });
11362
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.33", type: XSFormlyComponent, isStandalone: true, selector: "xs-formly", inputs: { layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, gridClass: { classPropertyName: "gridClass", publicName: "gridClass", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { model: "modelChange", submit: "submit", formReady: "formReady" }, host: { attributes: { "xs-formly-host": "" }, properties: { "attr.size": "size()" } }, ngImport: i0, template: "<form\n [formGroup]=\"form\"\n (ngSubmit)=\"onSubmit()\"\n (submit)=\"$event.stopPropagation()\"\n>\n <formly-form\n [form]=\"form\"\n [model]=\"model()\"\n [fields]=\"normalizedFields()\"\n [options]=\"options()\"\n (modelChange)=\"onModelChange($event)\"\n [class]=\"layout() === 'grid' ? gridClass() : (size() === 'compact' ? 'space-y-0' : 'space-y-4')\"\n ></formly-form>\n\n <ng-content></ng-content>\n</form>\n", styles: [":host ::ng-deep formly-form>formly-field,:host ::ng-deep formly-form>formly-field>formly-group{display:contents}:host ::ng-deep formly-form label:not(.formly-label){display:flex;align-items:center;gap:.5rem;padding-left:.25rem;margin-bottom:1rem;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.2em;color:#f8fafc}:host[size=compact] ::ng-deep formly-form label:not(.formly-label){margin-bottom:0;font-size:.625rem}:host[size=compact] ::ng-deep formly-field{background:none!important;padding:0!important;border:none!important;margin:0!important}:host[size=compact] ::ng-deep .input-select,:host[size=compact] ::ng-deep input:not([type=checkbox]):not([type=radio]),:host[size=compact] ::ng-deep .input{padding:.3125rem 1.5rem .3125rem .5rem!important;font-size:.75rem!important;min-height:0!important;height:2rem!important;line-height:1.25!important;border-radius:.5rem!important}:host[size=compact] ::ng-deep .formly-field-wrapper{margin-bottom:0!important}:host[size=compact] ::ng-deep .pointer-events-none.absolute{padding-right:.625rem!important}:host[size=compact] ::ng-deep .pointer-events-none.absolute svg{width:.625rem!important;height:.625rem!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: XSFormlyModule }, { kind: "component", type: i1$3.LegacyFormlyForm, selector: "formly-form" }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
11362
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.33", type: XSFormlyComponent, isStandalone: true, selector: "xs-formly", inputs: { layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, gridClass: { classPropertyName: "gridClass", publicName: "gridClass", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { model: "modelChange", submit: "submit", formReady: "formReady" }, host: { attributes: { "xs-formly-host": "" }, properties: { "attr.size": "size()" } }, ngImport: i0, template: "<form\n [formGroup]=\"form\"\n (ngSubmit)=\"onSubmit()\"\n (submit)=\"$event.stopPropagation()\"\n>\n <formly-form\n [form]=\"form\"\n [model]=\"model()\"\n [fields]=\"normalizedFields()\"\n [options]=\"options()\"\n (modelChange)=\"onModelChange($event)\"\n [class]=\"layout() === 'grid' ? gridClass() : (size() === 'compact' ? 'space-y-0' : 'space-y-4')\"\n ></formly-form>\n\n <ng-content></ng-content>\n</form>\n", styles: [":host ::ng-deep formly-form>formly-field,:host ::ng-deep formly-form>formly-field>formly-group{display:contents}:host ::ng-deep formly-form label:not(.formly-label){display:flex;align-items:center;gap:.5rem;padding-left:.25rem;margin-bottom:1rem;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.2em;color:#f8fafc}:host[size=compact] ::ng-deep formly-form label:not(.formly-label){margin-bottom:0;font-size:.625rem}:host[size=compact] ::ng-deep formly-field{background:none!important;padding:0!important;border:none!important;margin:0!important}:host[size=compact] ::ng-deep .input-select,:host[size=compact] ::ng-deep input:not([type=checkbox]):not([type=radio]),:host[size=compact] ::ng-deep .input{padding:.3125rem 1.5rem .3125rem .5rem!important;font-size:.75rem!important;min-height:0!important;height:2rem!important;line-height:1.25!important;border-radius:.5rem!important}:host[size=compact] ::ng-deep .formly-field-wrapper{margin-bottom:0!important}:host[size=compact] ::ng-deep .pointer-events-none.absolute{padding-right:.625rem!important}:host[size=compact] ::ng-deep .pointer-events-none.absolute svg{width:.625rem!important;height:.625rem!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: XSFormlyModule }, { kind: "component", type: i1$4.LegacyFormlyForm, selector: "formly-form" }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
11363
11363
  }
11364
11364
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFormlyComponent, decorators: [{
11365
11365
  type: Component,
@@ -12950,7 +12950,7 @@ class XSBreadcrumbsComponent {
12950
12950
  }
12951
12951
  }
12952
12952
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSBreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
12953
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSBreadcrumbsComponent, isStandalone: true, selector: "xs-breadcrumbs", inputs: { breadcrumbs: { classPropertyName: "breadcrumbs", publicName: "breadcrumbs", isSignal: true, isRequired: false, transformFunction: null }, provider: { classPropertyName: "provider", publicName: "provider", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<nav class=\"flex items-center px-4 py-3 backdrop-blur-sm\" aria-label=\"Breadcrumb\">\n <ol class=\"flex items-center space-x-1 text-sm\">\n <li class=\"flex items-center\">\n <a\n [routerLink]=\"['/dashboard']\"\n class=\"flex items-center px-3 py-1.5 text-gray-300 hover:text-white hover:bg-zinc-800/60 rounded-md transition-all duration-200 font-medium group\"\n >\n <xs-icon [icon]=\"'home'\" size=\"sm\" class=\"mr-2 opacity-70 group-hover:opacity-100 transition-opacity duration-200\"></xs-icon>\n <span class=\"hidden sm:inline\">Inicio</span>\n <span class=\"sm:hidden\">Home</span>\n </a>\n </li>\n\n @if (internalBreadcrumbs().length > 0) {\n <li class=\"flex items-center px-1\">\n <xs-icon [icon]=\"'chevron-right'\" size=\"xs\" class=\"text-gray-500\"></xs-icon>\n </li>\n }\n\n @for (breadcrumb of internalBreadcrumbs(); track breadcrumb.url || $index; let last = $last) {\n <li class=\"flex items-center\">\n <a\n [routerLink]=\"!last ? breadcrumb.url : []\"\n class=\"flex items-center px-3 py-1.5 rounded-md transition-all duration-200 font-medium group\"\n [attr.aria-current]=\"last ? 'page' : null\"\n [ngClass]=\"{\n 'text-gray-300 hover:text-white hover:bg-zinc-800/60 cursor-pointer': !last,\n 'text-white bg-zinc-800/40 cursor-default': last\n }\"\n >\n {{ breadcrumb.label }}\n </a>\n\n @if (!last) {\n <xs-icon\n [icon]=\"'chevron-right'\"\n size=\"xs\"\n class=\"mx-1 text-gray-500\"\n ></xs-icon>\n }\n </li>\n }\n </ol>\n <script type=\"application/ld+json\">{{ breadcrumbLdJson() }}</script>\n</nav>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
12953
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSBreadcrumbsComponent, isStandalone: true, selector: "xs-breadcrumbs", inputs: { breadcrumbs: { classPropertyName: "breadcrumbs", publicName: "breadcrumbs", isSignal: true, isRequired: false, transformFunction: null }, provider: { classPropertyName: "provider", publicName: "provider", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<nav class=\"flex items-center px-4 py-3 backdrop-blur-sm\" aria-label=\"Breadcrumb\">\n <ol class=\"flex items-center space-x-1 text-sm\">\n <li class=\"flex items-center\">\n <a\n [routerLink]=\"['/dashboard']\"\n class=\"flex items-center px-3 py-1.5 text-gray-300 hover:text-white hover:bg-zinc-800/60 rounded-md transition-all duration-200 font-medium group\"\n >\n <xs-icon [icon]=\"'home'\" size=\"sm\" class=\"mr-2 opacity-70 group-hover:opacity-100 transition-opacity duration-200\"></xs-icon>\n <span class=\"hidden sm:inline\">Inicio</span>\n <span class=\"sm:hidden\">Home</span>\n </a>\n </li>\n\n @if (internalBreadcrumbs().length > 0) {\n <li class=\"flex items-center px-1\">\n <xs-icon [icon]=\"'chevron-right'\" size=\"xs\" class=\"text-gray-500\"></xs-icon>\n </li>\n }\n\n @for (breadcrumb of internalBreadcrumbs(); track breadcrumb.url || $index; let last = $last) {\n <li class=\"flex items-center\">\n <a\n [routerLink]=\"!last ? breadcrumb.url : []\"\n class=\"flex items-center px-3 py-1.5 rounded-md transition-all duration-200 font-medium group\"\n [attr.aria-current]=\"last ? 'page' : null\"\n [ngClass]=\"{\n 'text-gray-300 hover:text-white hover:bg-zinc-800/60 cursor-pointer': !last,\n 'text-white bg-zinc-800/40 cursor-default': last\n }\"\n >\n {{ breadcrumb.label }}\n </a>\n\n @if (!last) {\n <xs-icon\n [icon]=\"'chevron-right'\"\n size=\"xs\"\n class=\"mx-1 text-gray-500\"\n ></xs-icon>\n }\n </li>\n }\n </ol>\n <script type=\"application/ld+json\">{{ breadcrumbLdJson() }}</script>\n</nav>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
12954
12954
  }
12955
12955
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSBreadcrumbsComponent, decorators: [{
12956
12956
  type: Component,
@@ -14179,7 +14179,7 @@ class XSFilterPanelComponent {
14179
14179
  this.applied.emit();
14180
14180
  }
14181
14181
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFilterPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14182
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFilterPanelComponent, isStandalone: true, selector: "xs-filter-panel", inputs: { show: { classPropertyName: "show", publicName: "show", isSignal: true, isRequired: false, transformFunction: null }, embedded: { classPropertyName: "embedded", publicName: "embedded", isSignal: true, isRequired: false, transformFunction: null }, externalTranslateService: { classPropertyName: "externalTranslateService", publicName: "externalTranslateService", isSignal: true, isRequired: false, transformFunction: null }, demoItems: { classPropertyName: "demoItems", publicName: "demoItems", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, activeFiltersCount: { classPropertyName: "activeFiltersCount", publicName: "activeFiltersCount", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { show: "showChange", panelClose: "panelClose", applied: "applied", filterChange: "filterChange", clear: "clear" }, viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (!embedded() && _demoItems().length > 0) {\n <div\n class=\"p-4 mb-4 rounded-xl bg-zinc-900/50 flex justify-between items-center\"\n >\n <div>\n <p class=\"text-white font-bold text-sm\">\n {{ t('DEMO_TITLE') }}\n </p>\n <p class=\"text-zinc-500 text-xs\">\n {{ t('DEMO_DESCRIPTION') }}\n </p>\n </div>\n <xs-button\n (onClick)=\"show.set(true)\"\n [label]=\"t('OPEN_FILTERS')\"\n variant=\"custom\"\n customClass=\"px-4 py-2 bg-blue-600 text-white text-sm font-semibold rounded-xl active:scale-95\"\n />\n </div>\n}\n\n@if (show() || embedded()) {\n @if (show() && !embedded()) {\n <div\n class=\"fixed inset-0 z-[9000] bg-black/60 backdrop-blur-sm overlay-fade-in cursor-default\"\n (click)=\"handleClose()\"\n role=\"presentation\"\n ></div>\n <div\n class=\"fixed inset-0 z-[9000] pointer-events-none flex\"\n [class.items-end]=\"layout() === 'bottom-sheet'\"\n [class.justify-center]=\"layout() === 'bottom-sheet'\"\n [class.justify-end]=\"layout() === 'side-panel'\"\n [class.items-stretch]=\"layout() === 'side-panel'\"\n >\n <section\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"t('FILTERS')\"\n tabindex=\"-1\"\n class=\"relative w-full overflow-hidden bg-black shadow-2xl flex flex-col cursor-auto pointer-events-auto outline-none\"\n [class.max-w-md]=\"layout() === 'bottom-sheet'\"\n [class.mx-auto]=\"layout() === 'bottom-sheet'\"\n [class.rounded-t-2xl]=\"layout() === 'bottom-sheet'\"\n [class.sheet-slide-up]=\"layout() === 'bottom-sheet'\"\n [class.max-h-[85vh]]=\"layout() === 'bottom-sheet'\"\n [class.h-full]=\"layout() === 'side-panel'\"\n [class.sm:max-w-md]=\"layout() === 'side-panel'\"\n [class.sm:rounded-l-2xl]=\"layout() === 'side-panel'\"\n [class.panel-slide-in]=\"layout() === 'side-panel'\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"$event.stopPropagation()\"\n >\n <div class=\"flex justify-center pt-4 pb-2\">\n <div class=\"w-12 h-1.5 bg-zinc-800 rounded-full\"></div>\n </div>\n\n <div class=\"px-6 py-2 flex justify-between items-center\">\n <h2\n class=\"text-xl font-bold text-white tracking-tight uppercase\"\n >\n {{ t('FILTERS') }}\n </h2>\n <div class=\"flex items-center gap-2\">\n @if (activeFiltersCount() > 0) {\n <xs-button\n (onClick)=\"clear.emit()\"\n [label]=\"capitalize(t('CLEAR'))\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-zinc-400 hover:text-white text-sm font-medium p-2 uppercase\"\n />\n }\n <xs-button\n (onClick)=\"handleApply()\"\n [label]=\"t('DONE')\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-zinc-400 hover:text-white text-sm font-medium p-2 uppercase\"\n />\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"groupsTpl\" />\n </section>\n </div>\n } @else if (embedded()) {\n <ng-container *ngTemplateOutlet=\"groupsTpl\" />\n }\n}\n\n<ng-template #groupsTpl>\n <div\n #scrollContainer\n [class.flex-1]=\"!embedded()\"\n [class.overflow-y-auto]=\"!embedded()\"\n [class.no-scrollbar]=\"!embedded()\"\n class=\"px-4 pt-4 pb-12 space-y-3\"\n >\n @if (searchGroup(); as search) {\n <div class=\"relative\">\n <input\n type=\"text\"\n [value]=\"search.selectedSearchValue || ''\"\n (input)=\"onGlobalSearch($event)\"\n [placeholder]=\"search.searchPlaceholder || capitalize(t('SEARCH'))\"\n [attr.aria-label]=\"search.searchPlaceholder || capitalize(t('SEARCH'))\"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 pl-10 pr-4 text-sm text-white outline-none focus:ring-0 transition-all placeholder:text-zinc-500\"\n />\n <span\n class=\"absolute left-3 top-3 opacity-40 text-sm\"\n aria-hidden=\"true\"\n >\uD83D\uDD0D</span\n >\n </div>\n }\n @for (group of filteredData(); track group.id) {\n <div\n [id]=\"'group-' + group.id\"\n class=\"overflow-hidden rounded-2xl bg-zinc-900/50 transition-all duration-300 filter-group-item border-none\"\n >\n <button\n (click)=\"toggleGroup(group.id)\"\n type=\"button\"\n [attr.aria-expanded]=\"activeGroupId() === group.id\"\n [attr.aria-controls]=\"'group-content-' + group.id\"\n class=\"w-full flex items-center justify-between px-6 py-4 transition-colors border-none\"\n [class]=\"\n activeGroupId() === group.id\n ? 'bg-zinc-900/50'\n : 'bg-transparent hover:bg-black/40 active:bg-black/20'\n \"\n >\n <div\n class=\"flex-1 flex flex-col text-left justify-center h-full\"\n >\n <span\n class=\"text-[10px] font-bold text-zinc-500 uppercase tracking-[0.15em] leading-none mb-2\"\n >\n {{ t(group.title) }}\n </span>\n <span\n class=\"text-base font-semibold leading-tight\"\n [class.text-white]=\"\n group.selectedId ||\n (group.type === 'dateRange' &&\n (group.dateFrom || group.dateTo))\n \"\n >\n {{\n getSelectedLabel(group) || t('NOT_SELECTED')\n }}\n </span>\n </div>\n <div class=\"flex items-center justify-center pl-4\">\n <div\n class=\"chevron opacity-40\"\n [class.open]=\"activeGroupId() === group.id\"\n ></div>\n </div>\n </button>\n\n <div\n [id]=\"'group-content-' + group.id\"\n class=\"collapsible-content\"\n [class.open]=\"activeGroupId() === group.id\"\n role=\"region\"\n [attr.aria-label]=\"t(group.title)\"\n >\n <div class=\"collapsible-inner\">\n <div class=\"px-2 pb-3 bg-zinc-900/50\">\n <div\n class=\"bg-zinc-900/50 rounded-xl overflow-hidden inner-panel shadow-2xl border-none\"\n >\n @if (activeGroupType() !== 'searchSelect' && activeGroupType() !== 'dateRange') {\n <div class=\"p-3 bg-zinc-900/50\">\n <div class=\"relative\">\n <input\n type=\"text\"\n [ngModel]=\"searchQuery()\"\n (ngModelChange)=\"\n searchQuery.set($event)\n \"\n [placeholder]=\"capitalize(t('SEARCH')) + '...'\"\n [attr.aria-label]=\"capitalize(t('SEARCH'))\"\n class=\"w-full bg-zinc-900/50 rounded-xl py-3 pl-10 pr-4 text-sm text-white focus:ring-0 placeholder:text-zinc-500 transition-all outline-none border-none\"\n />\n <span\n class=\"absolute left-3 top-3 opacity-40 text-sm\"\n aria-hidden=\"true\"\n >\uD83D\uDD0D</span\n >\n </div>\n </div>\n }\n\n <div class=\"flex flex-col filter-options-list\">\n @if (\n group.type === 'select' ||\n group.type === undefined ||\n group.type === 'searchSelect'\n ) {\n @for (\n opt of group.options;\n track $index\n ) {\n <button\n (click)=\"\n onSelectOption(group.id, opt.id)\n \"\n type=\"button\"\n class=\"w-full flex items-center justify-between px-6 py-4 text-sm border-none bg-transparent transition-all hover:bg-zinc-900/50 active:bg-zinc-900/50 group/opt\"\n >\n <span\n class=\"transition-colors duration-200\"\n [class.text-white]=\"\n group.selectedId === opt.id\n \"\n [class.font-bold]=\"\n group.selectedId === opt.id\n \"\n [class.text-zinc-500]=\"\n group.selectedId !== opt.id\n \"\n >\n {{ capitalize(t(opt.label)) }}\n </span>\n <div\n class=\"flex items-center justify-center w-5 h-5\"\n >\n <div\n [class.opacity-0]=\"\n group.selectedId !== opt.id\n \"\n [class.opacity-100]=\"\n group.selectedId === opt.id\n \"\n class=\"w-2.5 h-2.5 rounded-full bg-red-500 transition-opacity duration-200\"\n ></div>\n </div>\n </button>\n }\n }\n\n @if (group.type === 'multiSelect') {\n @for (\n opt of group.options;\n track $index\n ) {\n <button\n (click)=\"\n onMultiSelectOption(\n group.id,\n opt.id\n )\n \"\n type=\"button\"\n class=\"w-full flex items-center justify-between px-6 py-4 text-sm border-none bg-transparent transition-all hover:bg-zinc-900/50 active:bg-zinc-900/50 group/opt\"\n >\n <span\n class=\"transition-colors duration-200\"\n [class.text-white]=\"\n group.selectedIds?.includes(\n opt.id\n )\n \"\n [class.font-bold]=\"\n group.selectedIds?.includes(\n opt.id\n )\n \"\n [class.text-zinc-500]=\"\n !group.selectedIds?.includes(\n opt.id\n )\n \"\n >\n {{ capitalize(t(opt.label)) }}\n </span>\n <div\n class=\"flex items-center justify-center w-5 h-5\"\n >\n <div\n [class.opacity-0]=\"\n !group.selectedIds?.includes(\n opt.id\n )\n \"\n [class.opacity-100]=\"\n group.selectedIds?.includes(\n opt.id\n )\n \"\n class=\"w-2.5 h-2.5 rounded-full bg-red-500 transition-opacity duration-200\"\n ></div>\n </div>\n </button>\n }\n }\n\n @if (group.type === 'boolean') {\n <button\n (click)=\"\n onBooleanToggle(group.id, true)\n \"\n type=\"button\"\n class=\"w-full flex items-center justify-between px-6 py-4 text-sm border-none bg-transparent transition-all hover:bg-zinc-900/50 active:bg-zinc-900/50\"\n >\n <span\n class=\"transition-colors duration-200\"\n [class.text-white]=\"\n group.selectedBoolean === true\n \"\n [class.font-bold]=\"\n group.selectedBoolean === true\n \"\n [class.text-zinc-500]=\"\n group.selectedBoolean !== true\n \"\n >{{ capitalize(t('YES')) }}</span\n >\n <div\n class=\"flex items-center justify-center w-5 h-5\"\n >\n <div\n [class.opacity-0]=\"\n group.selectedBoolean !== true\n \"\n [class.opacity-100]=\"\n group.selectedBoolean === true\n \"\n class=\"w-2.5 h-2.5 rounded-full bg-red-500 transition-opacity duration-200\"\n ></div>\n </div>\n </button>\n <button\n (click)=\"\n onBooleanToggle(group.id, false)\n \"\n type=\"button\"\n class=\"w-full flex items-center justify-between px-6 py-4 text-sm border-none bg-transparent transition-all hover:bg-zinc-900/50 active:bg-zinc-900/50\"\n >\n <span\n class=\"transition-colors duration-200\"\n [class.text-white]=\"\n group.selectedBoolean === false\n \"\n [class.font-bold]=\"\n group.selectedBoolean === false\n \"\n [class.text-zinc-500]=\"\n group.selectedBoolean !== false\n \"\n >{{ capitalize(t('NO')) }}</span\n >\n <div\n class=\"flex items-center justify-center w-5 h-5\"\n >\n <div\n [class.opacity-0]=\"\n group.selectedBoolean !== false\n \"\n [class.opacity-100]=\"\n group.selectedBoolean === false\n \"\n class=\"w-2.5 h-2.5 rounded-full bg-red-500 transition-opacity duration-200\"\n ></div>\n </div>\n </button>\n }\n\n @if (group.type === 'range') {\n <div\n class=\"px-6 py-4 space-y-4 bg-zinc-900/50\"\n >\n <div class=\"space-y-2\">\n <label\n class=\"text-[10px] font-bold text-zinc-500 uppercase tracking-widest pl-1\"\n >\n {{ t('MIN_VALUE') }}\n </label>\n <input\n type=\"number\"\n [value]=\"\n group.selectedMin ||\n group.minValue ||\n ''\n \"\n (input)=\"\n onRangeChange(\n group.id,\n 'min',\n $event\n )\n \"\n [min]=\"group.minValue\"\n [max]=\"group.maxValue\"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 px-4 text-sm text-white outline-none focus:ring-0 transition-all\"\n />\n </div>\n <div class=\"space-y-2\">\n <label\n class=\"text-[10px] font-bold text-zinc-500 uppercase tracking-widest pl-1\"\n >\n {{ t('MAX_VALUE') }}\n </label>\n <input\n type=\"number\"\n [value]=\"\n group.selectedMax ||\n group.maxValue ||\n ''\n \"\n (input)=\"\n onRangeChange(\n group.id,\n 'max',\n $event\n )\n \"\n [min]=\"group.minValue\"\n [max]=\"group.maxValue\"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 px-4 text-sm text-white outline-none focus:ring-0 transition-all\"\n />\n </div>\n </div>\n }\n\n @if (group.type === 'searchSelect') {\n <div class=\"px-6 py-4 bg-zinc-900/50\">\n <input\n type=\"text\"\n [value]=\"\n group.selectedSearchValue || ''\n \"\n (input)=\"\n onSearchChange(group.id, $event)\n \"\n [placeholder]=\"\n group.searchPlaceholder ||\n capitalize(t('SEARCH'))\n \"\n [attr.aria-label]=\"group.searchPlaceholder || capitalize(t('SEARCH'))\"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 px-4 text-sm text-white outline-none focus:ring-0 transition-all\"\n />\n </div>\n }\n\n @if (group.type === 'dateRange') {\n <div\n class=\"px-6 py-4 space-y-4 bg-zinc-900/50\"\n >\n <div class=\"space-y-2\">\n <label\n class=\"text-[10px] font-bold text-zinc-500 uppercase tracking-widest pl-1\"\n >{{ t('FROM_DATE') }}</label\n >\n <input\n type=\"date\"\n [value]=\"group.dateFrom || ''\"\n (change)=\"\n onDateChange(\n group.id,\n 'from',\n $event\n )\n \"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 px-4 text-sm text-white outline-none focus:ring-0 transition-all\"\n />\n </div>\n <div class=\"space-y-2\">\n <label\n class=\"text-[10px] font-bold text-zinc-500 uppercase tracking-widest pl-1\"\n >{{ t('TO_DATE') }}</label\n >\n <input\n type=\"date\"\n [value]=\"group.dateTo || ''\"\n (change)=\"\n onDateChange(\n group.id,\n 'to',\n $event\n )\n \"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 px-4 text-sm text-white outline-none focus:ring-0 transition-all\"\n />\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n</ng-template>\n", styles: [".overlay-fade-in{animation:fadeIn .25s ease-out forwards}.sheet-slide-up{will-change:transform;animation:slideUp .4s cubic-bezier(.32,.72,0,1) forwards}.panel-slide-in{will-change:transform;animation:slideInRight .4s cubic-bezier(.32,.72,0,1) forwards}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.chevron{height:.5rem;width:.5rem;border-right-width:2px;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity, 1));transition:transform .4s cubic-bezier(.33,1,.68,1),border-color .3s ease;transform:rotate(45deg)}.chevron.open{transform:rotate(225deg) translateY(-1px) translate(-1px)}.filter-group-item:has(.collapsible-content.open){border-color:#3f3f4699;box-shadow:0 10px 30px -10px #00000080}.collapsible-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s cubic-bezier(.33,1,.68,1),opacity .3s ease,visibility .3s;visibility:hidden;opacity:0;overflow:hidden}.collapsible-content.open{grid-template-rows:1fr;visibility:visible;opacity:1}.collapsible-inner{min-height:0}.filter-options-list{max-height:16rem;overflow-y:auto}.inner-panel{transform:scale(.98) translateY(-5px);transition:transform .4s cubic-bezier(.33,1,.68,1),opacity .4s ease;opacity:0}.collapsible-content.open .inner-panel{transform:scale(1) translateY(0);opacity:1}@media(hover:hover){.active\\:bg-zinc-800\\/50:hover{background-color:#3f3f464d}.active\\:bg-zinc-900\\/40:hover{background-color:#24242780}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
14182
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFilterPanelComponent, isStandalone: true, selector: "xs-filter-panel", inputs: { show: { classPropertyName: "show", publicName: "show", isSignal: true, isRequired: false, transformFunction: null }, embedded: { classPropertyName: "embedded", publicName: "embedded", isSignal: true, isRequired: false, transformFunction: null }, externalTranslateService: { classPropertyName: "externalTranslateService", publicName: "externalTranslateService", isSignal: true, isRequired: false, transformFunction: null }, demoItems: { classPropertyName: "demoItems", publicName: "demoItems", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, activeFiltersCount: { classPropertyName: "activeFiltersCount", publicName: "activeFiltersCount", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { show: "showChange", panelClose: "panelClose", applied: "applied", filterChange: "filterChange", clear: "clear" }, viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (!embedded() && _demoItems().length > 0) {\n <div\n class=\"p-4 mb-4 rounded-xl bg-zinc-900/50 flex justify-between items-center\"\n >\n <div>\n <p class=\"text-white font-bold text-sm\">\n {{ t('DEMO_TITLE') }}\n </p>\n <p class=\"text-zinc-500 text-xs\">\n {{ t('DEMO_DESCRIPTION') }}\n </p>\n </div>\n <xs-button\n (onClick)=\"show.set(true)\"\n [label]=\"t('OPEN_FILTERS')\"\n variant=\"custom\"\n customClass=\"px-4 py-2 bg-blue-600 text-white text-sm font-semibold rounded-xl active:scale-95\"\n />\n </div>\n}\n\n@if (show() || embedded()) {\n @if (show() && !embedded()) {\n <div\n class=\"fixed inset-0 z-[9000] bg-black/60 backdrop-blur-sm overlay-fade-in cursor-default\"\n (click)=\"handleClose()\"\n role=\"presentation\"\n ></div>\n <div\n class=\"fixed inset-0 z-[9000] pointer-events-none flex\"\n [class.items-end]=\"layout() === 'bottom-sheet'\"\n [class.justify-center]=\"layout() === 'bottom-sheet'\"\n [class.justify-end]=\"layout() === 'side-panel'\"\n [class.items-stretch]=\"layout() === 'side-panel'\"\n >\n <section\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"t('FILTERS')\"\n tabindex=\"-1\"\n class=\"relative w-full overflow-hidden bg-black shadow-2xl flex flex-col cursor-auto pointer-events-auto outline-none\"\n [class.max-w-md]=\"layout() === 'bottom-sheet'\"\n [class.mx-auto]=\"layout() === 'bottom-sheet'\"\n [class.rounded-t-2xl]=\"layout() === 'bottom-sheet'\"\n [class.sheet-slide-up]=\"layout() === 'bottom-sheet'\"\n [class.max-h-[85vh]]=\"layout() === 'bottom-sheet'\"\n [class.h-full]=\"layout() === 'side-panel'\"\n [class.sm:max-w-md]=\"layout() === 'side-panel'\"\n [class.sm:rounded-l-2xl]=\"layout() === 'side-panel'\"\n [class.panel-slide-in]=\"layout() === 'side-panel'\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"$event.stopPropagation()\"\n >\n <div class=\"flex justify-center pt-4 pb-2\">\n <div class=\"w-12 h-1.5 bg-zinc-800 rounded-full\"></div>\n </div>\n\n <div class=\"px-6 py-2 flex justify-between items-center\">\n <h2\n class=\"text-xl font-bold text-white tracking-tight uppercase\"\n >\n {{ t('FILTERS') }}\n </h2>\n <div class=\"flex items-center gap-2\">\n @if (activeFiltersCount() > 0) {\n <xs-button\n (onClick)=\"clear.emit()\"\n [label]=\"capitalize(t('CLEAR'))\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-zinc-400 hover:text-white text-sm font-medium p-2 uppercase\"\n />\n }\n <xs-button\n (onClick)=\"handleApply()\"\n [label]=\"t('DONE')\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-zinc-400 hover:text-white text-sm font-medium p-2 uppercase\"\n />\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"groupsTpl\" />\n </section>\n </div>\n } @else if (embedded()) {\n <ng-container *ngTemplateOutlet=\"groupsTpl\" />\n }\n}\n\n<ng-template #groupsTpl>\n <div\n #scrollContainer\n [class.flex-1]=\"!embedded()\"\n [class.overflow-y-auto]=\"!embedded()\"\n [class.no-scrollbar]=\"!embedded()\"\n class=\"px-4 pt-4 pb-12 space-y-3\"\n >\n @if (searchGroup(); as search) {\n <div class=\"relative\">\n <input\n type=\"text\"\n [value]=\"search.selectedSearchValue || ''\"\n (input)=\"onGlobalSearch($event)\"\n [placeholder]=\"search.searchPlaceholder || capitalize(t('SEARCH'))\"\n [attr.aria-label]=\"search.searchPlaceholder || capitalize(t('SEARCH'))\"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 pl-10 pr-4 text-sm text-white outline-none focus:ring-0 transition-all placeholder:text-zinc-500\"\n />\n <span\n class=\"absolute left-3 top-3 opacity-40 text-sm\"\n aria-hidden=\"true\"\n >\uD83D\uDD0D</span\n >\n </div>\n }\n @for (group of filteredData(); track group.id) {\n <div\n [id]=\"'group-' + group.id\"\n class=\"overflow-hidden rounded-2xl bg-zinc-900/50 transition-all duration-300 filter-group-item border-none\"\n >\n <button\n (click)=\"toggleGroup(group.id)\"\n type=\"button\"\n [attr.aria-expanded]=\"activeGroupId() === group.id\"\n [attr.aria-controls]=\"'group-content-' + group.id\"\n class=\"w-full flex items-center justify-between px-6 py-4 transition-colors border-none\"\n [class]=\"\n activeGroupId() === group.id\n ? 'bg-zinc-900/50'\n : 'bg-transparent hover:bg-black/40 active:bg-black/20'\n \"\n >\n <div\n class=\"flex-1 flex flex-col text-left justify-center h-full\"\n >\n <span\n class=\"text-[10px] font-bold text-zinc-500 uppercase tracking-[0.15em] leading-none mb-2\"\n >\n {{ t(group.title) }}\n </span>\n <span\n class=\"text-base font-semibold leading-tight\"\n [class.text-white]=\"\n group.selectedId ||\n (group.type === 'dateRange' &&\n (group.dateFrom || group.dateTo))\n \"\n >\n {{\n getSelectedLabel(group) || t('NOT_SELECTED')\n }}\n </span>\n </div>\n <div class=\"flex items-center justify-center pl-4\">\n <div\n class=\"chevron opacity-40\"\n [class.open]=\"activeGroupId() === group.id\"\n ></div>\n </div>\n </button>\n\n <div\n [id]=\"'group-content-' + group.id\"\n class=\"collapsible-content\"\n [class.open]=\"activeGroupId() === group.id\"\n role=\"region\"\n [attr.aria-label]=\"t(group.title)\"\n >\n <div class=\"collapsible-inner\">\n <div class=\"px-2 pb-3 bg-zinc-900/50\">\n <div\n class=\"bg-zinc-900/50 rounded-xl overflow-hidden inner-panel shadow-2xl border-none\"\n >\n @if (activeGroupType() !== 'searchSelect' && activeGroupType() !== 'dateRange') {\n <div class=\"p-3 bg-zinc-900/50\">\n <div class=\"relative\">\n <input\n type=\"text\"\n [ngModel]=\"searchQuery()\"\n (ngModelChange)=\"\n searchQuery.set($event)\n \"\n [placeholder]=\"capitalize(t('SEARCH')) + '...'\"\n [attr.aria-label]=\"capitalize(t('SEARCH'))\"\n class=\"w-full bg-zinc-900/50 rounded-xl py-3 pl-10 pr-4 text-sm text-white focus:ring-0 placeholder:text-zinc-500 transition-all outline-none border-none\"\n />\n <span\n class=\"absolute left-3 top-3 opacity-40 text-sm\"\n aria-hidden=\"true\"\n >\uD83D\uDD0D</span\n >\n </div>\n </div>\n }\n\n <div class=\"flex flex-col filter-options-list\">\n @if (\n group.type === 'select' ||\n group.type === undefined ||\n group.type === 'searchSelect'\n ) {\n @for (\n opt of group.options;\n track $index\n ) {\n <button\n (click)=\"\n onSelectOption(group.id, opt.id)\n \"\n type=\"button\"\n class=\"w-full flex items-center justify-between px-6 py-4 text-sm border-none bg-transparent transition-all hover:bg-zinc-900/50 active:bg-zinc-900/50 group/opt\"\n >\n <span\n class=\"transition-colors duration-200\"\n [class.text-white]=\"\n group.selectedId === opt.id\n \"\n [class.font-bold]=\"\n group.selectedId === opt.id\n \"\n [class.text-zinc-500]=\"\n group.selectedId !== opt.id\n \"\n >\n {{ capitalize(t(opt.label)) }}\n </span>\n <div\n class=\"flex items-center justify-center w-5 h-5\"\n >\n <div\n [class.opacity-0]=\"\n group.selectedId !== opt.id\n \"\n [class.opacity-100]=\"\n group.selectedId === opt.id\n \"\n class=\"w-2.5 h-2.5 rounded-full bg-red-500 transition-opacity duration-200\"\n ></div>\n </div>\n </button>\n }\n }\n\n @if (group.type === 'multiSelect') {\n @for (\n opt of group.options;\n track $index\n ) {\n <button\n (click)=\"\n onMultiSelectOption(\n group.id,\n opt.id\n )\n \"\n type=\"button\"\n class=\"w-full flex items-center justify-between px-6 py-4 text-sm border-none bg-transparent transition-all hover:bg-zinc-900/50 active:bg-zinc-900/50 group/opt\"\n >\n <span\n class=\"transition-colors duration-200\"\n [class.text-white]=\"\n group.selectedIds?.includes(\n opt.id\n )\n \"\n [class.font-bold]=\"\n group.selectedIds?.includes(\n opt.id\n )\n \"\n [class.text-zinc-500]=\"\n !group.selectedIds?.includes(\n opt.id\n )\n \"\n >\n {{ capitalize(t(opt.label)) }}\n </span>\n <div\n class=\"flex items-center justify-center w-5 h-5\"\n >\n <div\n [class.opacity-0]=\"\n !group.selectedIds?.includes(\n opt.id\n )\n \"\n [class.opacity-100]=\"\n group.selectedIds?.includes(\n opt.id\n )\n \"\n class=\"w-2.5 h-2.5 rounded-full bg-red-500 transition-opacity duration-200\"\n ></div>\n </div>\n </button>\n }\n }\n\n @if (group.type === 'boolean') {\n <button\n (click)=\"\n onBooleanToggle(group.id, true)\n \"\n type=\"button\"\n class=\"w-full flex items-center justify-between px-6 py-4 text-sm border-none bg-transparent transition-all hover:bg-zinc-900/50 active:bg-zinc-900/50\"\n >\n <span\n class=\"transition-colors duration-200\"\n [class.text-white]=\"\n group.selectedBoolean === true\n \"\n [class.font-bold]=\"\n group.selectedBoolean === true\n \"\n [class.text-zinc-500]=\"\n group.selectedBoolean !== true\n \"\n >{{ capitalize(t('YES')) }}</span\n >\n <div\n class=\"flex items-center justify-center w-5 h-5\"\n >\n <div\n [class.opacity-0]=\"\n group.selectedBoolean !== true\n \"\n [class.opacity-100]=\"\n group.selectedBoolean === true\n \"\n class=\"w-2.5 h-2.5 rounded-full bg-red-500 transition-opacity duration-200\"\n ></div>\n </div>\n </button>\n <button\n (click)=\"\n onBooleanToggle(group.id, false)\n \"\n type=\"button\"\n class=\"w-full flex items-center justify-between px-6 py-4 text-sm border-none bg-transparent transition-all hover:bg-zinc-900/50 active:bg-zinc-900/50\"\n >\n <span\n class=\"transition-colors duration-200\"\n [class.text-white]=\"\n group.selectedBoolean === false\n \"\n [class.font-bold]=\"\n group.selectedBoolean === false\n \"\n [class.text-zinc-500]=\"\n group.selectedBoolean !== false\n \"\n >{{ capitalize(t('NO')) }}</span\n >\n <div\n class=\"flex items-center justify-center w-5 h-5\"\n >\n <div\n [class.opacity-0]=\"\n group.selectedBoolean !== false\n \"\n [class.opacity-100]=\"\n group.selectedBoolean === false\n \"\n class=\"w-2.5 h-2.5 rounded-full bg-red-500 transition-opacity duration-200\"\n ></div>\n </div>\n </button>\n }\n\n @if (group.type === 'range') {\n <div\n class=\"px-6 py-4 space-y-4 bg-zinc-900/50\"\n >\n <div class=\"space-y-2\">\n <label\n class=\"text-[10px] font-bold text-zinc-500 uppercase tracking-widest pl-1\"\n >\n {{ t('MIN_VALUE') }}\n </label>\n <input\n type=\"number\"\n [value]=\"\n group.selectedMin ||\n group.minValue ||\n ''\n \"\n (input)=\"\n onRangeChange(\n group.id,\n 'min',\n $event\n )\n \"\n [min]=\"group.minValue\"\n [max]=\"group.maxValue\"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 px-4 text-sm text-white outline-none focus:ring-0 transition-all\"\n />\n </div>\n <div class=\"space-y-2\">\n <label\n class=\"text-[10px] font-bold text-zinc-500 uppercase tracking-widest pl-1\"\n >\n {{ t('MAX_VALUE') }}\n </label>\n <input\n type=\"number\"\n [value]=\"\n group.selectedMax ||\n group.maxValue ||\n ''\n \"\n (input)=\"\n onRangeChange(\n group.id,\n 'max',\n $event\n )\n \"\n [min]=\"group.minValue\"\n [max]=\"group.maxValue\"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 px-4 text-sm text-white outline-none focus:ring-0 transition-all\"\n />\n </div>\n </div>\n }\n\n @if (group.type === 'searchSelect') {\n <div class=\"px-6 py-4 bg-zinc-900/50\">\n <input\n type=\"text\"\n [value]=\"\n group.selectedSearchValue || ''\n \"\n (input)=\"\n onSearchChange(group.id, $event)\n \"\n [placeholder]=\"\n group.searchPlaceholder ||\n capitalize(t('SEARCH'))\n \"\n [attr.aria-label]=\"group.searchPlaceholder || capitalize(t('SEARCH'))\"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 px-4 text-sm text-white outline-none focus:ring-0 transition-all\"\n />\n </div>\n }\n\n @if (group.type === 'dateRange') {\n <div\n class=\"px-6 py-4 space-y-4 bg-zinc-900/50\"\n >\n <div class=\"space-y-2\">\n <label\n class=\"text-[10px] font-bold text-zinc-500 uppercase tracking-widest pl-1\"\n >{{ t('FROM_DATE') }}</label\n >\n <input\n type=\"date\"\n [value]=\"group.dateFrom || ''\"\n (change)=\"\n onDateChange(\n group.id,\n 'from',\n $event\n )\n \"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 px-4 text-sm text-white outline-none focus:ring-0 transition-all\"\n />\n </div>\n <div class=\"space-y-2\">\n <label\n class=\"text-[10px] font-bold text-zinc-500 uppercase tracking-widest pl-1\"\n >{{ t('TO_DATE') }}</label\n >\n <input\n type=\"date\"\n [value]=\"group.dateTo || ''\"\n (change)=\"\n onDateChange(\n group.id,\n 'to',\n $event\n )\n \"\n class=\"w-full bg-zinc-900/50 border-none rounded-xl py-3 px-4 text-sm text-white outline-none focus:ring-0 transition-all\"\n />\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n</ng-template>\n", styles: [".overlay-fade-in{animation:fadeIn .25s ease-out forwards}.sheet-slide-up{will-change:transform;animation:slideUp .4s cubic-bezier(.32,.72,0,1) forwards}.panel-slide-in{will-change:transform;animation:slideInRight .4s cubic-bezier(.32,.72,0,1) forwards}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.chevron{height:.5rem;width:.5rem;border-right-width:2px;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity, 1));transition:transform .4s cubic-bezier(.33,1,.68,1),border-color .3s ease;transform:rotate(45deg)}.chevron.open{transform:rotate(225deg) translateY(-1px) translate(-1px)}.filter-group-item:has(.collapsible-content.open){border-color:#3f3f4699;box-shadow:0 10px 30px -10px #00000080}.collapsible-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s cubic-bezier(.33,1,.68,1),opacity .3s ease,visibility .3s;visibility:hidden;opacity:0;overflow:hidden}.collapsible-content.open{grid-template-rows:1fr;visibility:visible;opacity:1}.collapsible-inner{min-height:0}.filter-options-list{max-height:16rem;overflow-y:auto}.inner-panel{transform:scale(.98) translateY(-5px);transition:transform .4s cubic-bezier(.33,1,.68,1),opacity .4s ease;opacity:0}.collapsible-content.open .inner-panel{transform:scale(1) translateY(0);opacity:1}@media(hover:hover){.active\\:bg-zinc-800\\/50:hover{background-color:#3f3f464d}.active\\:bg-zinc-900\\/40:hover{background-color:#24242780}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
14183
14183
  }
14184
14184
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFilterPanelComponent, decorators: [{
14185
14185
  type: Component,
@@ -14242,7 +14242,7 @@ class XSSectionTitleComponent {
14242
14242
  });
14243
14243
  }
14244
14244
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSSectionTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14245
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSSectionTitleComponent, isStandalone: true, selector: "xs-section-title", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, borderBottom: { classPropertyName: "borderBottom", publicName: "borderBottom", isSignal: true, isRequired: false, transformFunction: null }, linkText: { classPropertyName: "linkText", publicName: "linkText", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, buttons: { classPropertyName: "buttons", publicName: "buttons", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, urlTitle: { classPropertyName: "urlTitle", publicName: "urlTitle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClickActionButton: "onClickActionButton" }, ngImport: i0, template: "<header\n [class.sticky]=\"sticky()\"\n [class.sticky-under-navbar]=\"sticky()\"\n [class.z-20]=\"sticky()\"\n [class.bg-black/90]=\"sticky()\"\n [class.backdrop-blur-md]=\"sticky()\"\n [class.border-b]=\"borderBottom()\"\n class=\"flex items-center justify-between gap-x-4 px-2 pt-4 pb-4 border-zinc-900/50\"\n>\n <div class=\"flex flex-col min-w-0\">\n @if (urlTitle()) {\n <a\n [href]=\"urlTitle()\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n class=\"hover:opacity-80 transition-opacity\"\n >\n @switch (headingLevel()) {\n @case ('h1') {\n <h1\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h1>\n }\n @case ('h3') {\n <h3\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h3>\n }\n @case ('h4') {\n <h4\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h4>\n }\n @case ('h5') {\n <h5\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h5>\n }\n @case ('h6') {\n <h6\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h6>\n }\n @default {\n <h2\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h2>\n }\n }\n </a>\n } @else {\n @switch (headingLevel()) {\n @case ('h1') {\n <h1\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h1>\n }\n @case ('h3') {\n <h3\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h3>\n }\n @case ('h4') {\n <h4\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h4>\n }\n @case ('h5') {\n <h5\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h5>\n }\n @case ('h6') {\n <h6\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h6>\n }\n @default {\n <h2\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h2>\n }\n }\n }\n\n @if (subtitle()) {\n <p class=\"text-xs text-zinc-400 mt-0.5 truncate\">\n {{ subtitle() }}\n </p>\n }\n <ng-content select=\"[subtitle]\"></ng-content>\n </div>\n\n <div class=\"flex items-center gap-2 shrink-0\">\n @if (safeButtons().length > 0) {\n @if (showMobileMenu()) {\n <xs-button\n [icon]=\"{ name: 'ellipsis-vertical' }\"\n [label]=\"t('MENU_LABEL')\"\n [variant]=\"'primary'\"\n [layout]=\"'iconOnlyHeader'\"\n class=\"sm:hidden\"\n (onClick)=\"showActionSheet()\"\n ></xs-button>\n }\n @for (button of safeButtons(); track button.action) {\n @if (button.icon) {\n <xs-button\n [icon]=\"getButtonIcon(button)\"\n [label]=\"button.name\"\n [variant]=\"button.selected ? 'tertiary' : 'primary'\"\n [layout]=\"'iconOnlyHeader'\"\n (onClick)=\"onClickActionButton.emit(button)\"\n [class.hidden]=\"showMobileMenu()\"\n class=\"sm:flex\"\n ></xs-button>\n } @else {\n <xs-button\n [label]=\"button.name\"\n [variant]=\"button.selected ? 'tertiary' : 'primary'\"\n [layout]=\"'mini'\"\n (onClick)=\"onClickActionButton.emit(button)\"\n [class.hidden]=\"showMobileMenu()\"\n class=\"sm:flex\"\n ></xs-button>\n }\n }\n } @else if (link()) {\n <a\n [routerLink]=\"link()\"\n class=\"text-[10px] font-black border-b-2 border-zinc-800 pb-1 hover:text-white transition-all uppercase tracking-[0.1em] cursor-pointer whitespace-nowrap\"\n >\n {{ linkText() }}\n </a>\n } @else {\n @if (actionLabel()) {\n <span\n class=\"text-[10px] font-black border-b-2 border-zinc-800 pb-1 uppercase tracking-[0.1em] whitespace-nowrap\"\n >\n {{ actionLabel() }}\n </span>\n }\n <ng-content select=\"[action]\"></ng-content>\n }\n </div>\n</header>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
14245
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSSectionTitleComponent, isStandalone: true, selector: "xs-section-title", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, borderBottom: { classPropertyName: "borderBottom", publicName: "borderBottom", isSignal: true, isRequired: false, transformFunction: null }, linkText: { classPropertyName: "linkText", publicName: "linkText", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, buttons: { classPropertyName: "buttons", publicName: "buttons", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, urlTitle: { classPropertyName: "urlTitle", publicName: "urlTitle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClickActionButton: "onClickActionButton" }, ngImport: i0, template: "<header\n [class.sticky]=\"sticky()\"\n [class.sticky-under-navbar]=\"sticky()\"\n [class.z-20]=\"sticky()\"\n [class.bg-black/90]=\"sticky()\"\n [class.backdrop-blur-md]=\"sticky()\"\n [class.border-b]=\"borderBottom()\"\n class=\"flex items-center justify-between gap-x-4 px-2 pt-4 pb-4 border-zinc-900/50\"\n>\n <div class=\"flex flex-col min-w-0\">\n @if (urlTitle()) {\n <a\n [href]=\"urlTitle()\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n class=\"hover:opacity-80 transition-opacity\"\n >\n @switch (headingLevel()) {\n @case ('h1') {\n <h1\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h1>\n }\n @case ('h3') {\n <h3\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h3>\n }\n @case ('h4') {\n <h4\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h4>\n }\n @case ('h5') {\n <h5\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h5>\n }\n @case ('h6') {\n <h6\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h6>\n }\n @default {\n <h2\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h2>\n }\n }\n </a>\n } @else {\n @switch (headingLevel()) {\n @case ('h1') {\n <h1\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h1>\n }\n @case ('h3') {\n <h3\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h3>\n }\n @case ('h4') {\n <h4\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h4>\n }\n @case ('h5') {\n <h5\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h5>\n }\n @case ('h6') {\n <h6\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h6>\n }\n @default {\n <h2\n class=\"text-sm font-black tracking-[0.3em] text-white uppercase truncate\"\n >\n {{ title() }}\n </h2>\n }\n }\n }\n\n @if (subtitle()) {\n <p class=\"text-xs text-zinc-400 mt-0.5 truncate\">\n {{ subtitle() }}\n </p>\n }\n <ng-content select=\"[subtitle]\"></ng-content>\n </div>\n\n <div class=\"flex items-center gap-2 shrink-0\">\n @if (safeButtons().length > 0) {\n @if (showMobileMenu()) {\n <xs-button\n [icon]=\"{ name: 'ellipsis-vertical' }\"\n [label]=\"t('MENU_LABEL')\"\n [variant]=\"'primary'\"\n [layout]=\"'iconOnlyHeader'\"\n class=\"sm:hidden\"\n (onClick)=\"showActionSheet()\"\n ></xs-button>\n }\n @for (button of safeButtons(); track button.action) {\n @if (button.icon) {\n <xs-button\n [icon]=\"getButtonIcon(button)\"\n [label]=\"button.name\"\n [variant]=\"button.selected ? 'tertiary' : 'primary'\"\n [layout]=\"'iconOnlyHeader'\"\n (onClick)=\"onClickActionButton.emit(button)\"\n [class.hidden]=\"showMobileMenu()\"\n class=\"sm:flex\"\n ></xs-button>\n } @else {\n <xs-button\n [label]=\"button.name\"\n [variant]=\"button.selected ? 'tertiary' : 'primary'\"\n [layout]=\"'mini'\"\n (onClick)=\"onClickActionButton.emit(button)\"\n [class.hidden]=\"showMobileMenu()\"\n class=\"sm:flex\"\n ></xs-button>\n }\n }\n } @else if (link()) {\n <a\n [routerLink]=\"link()\"\n class=\"text-[10px] font-black border-b-2 border-zinc-800 pb-1 hover:text-white transition-all uppercase tracking-[0.1em] cursor-pointer whitespace-nowrap\"\n >\n {{ linkText() }}\n </a>\n } @else {\n @if (actionLabel()) {\n <span\n class=\"text-[10px] font-black border-b-2 border-zinc-800 pb-1 uppercase tracking-[0.1em] whitespace-nowrap\"\n >\n {{ actionLabel() }}\n </span>\n }\n <ng-content select=\"[action]\"></ng-content>\n }\n </div>\n</header>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
14246
14246
  }
14247
14247
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSSectionTitleComponent, decorators: [{
14248
14248
  type: Component,
@@ -15301,7 +15301,7 @@ class XSChatListComponent {
15301
15301
  this.clickDropdownItem.emit({ action, chatId: chat.chatId });
15302
15302
  }
15303
15303
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSChatListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15304
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSChatListComponent, isStandalone: true, selector: "xs-chat-list", inputs: { chats: { classPropertyName: "chats", publicName: "chats", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, dropdownItems: { classPropertyName: "dropdownItems", publicName: "dropdownItems", isSignal: true, isRequired: false, transformFunction: null }, userId: { classPropertyName: "userId", publicName: "userId", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, noResultsLabel: { classPropertyName: "noResultsLabel", publicName: "noResultsLabel", isSignal: true, isRequired: false, transformFunction: null }, noChatsLabel: { classPropertyName: "noChatsLabel", publicName: "noChatsLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeBlockLabel: { classPropertyName: "swipeBlockLabel", publicName: "swipeBlockLabel", isSignal: true, isRequired: false, transformFunction: null }, swipePinLabel: { classPropertyName: "swipePinLabel", publicName: "swipePinLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeDeleteLabel: { classPropertyName: "swipeDeleteLabel", publicName: "swipeDeleteLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeCancelLabel: { classPropertyName: "swipeCancelLabel", publicName: "swipeCancelLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchQueryChange: "searchQueryChange", selectChat: "selectChat", clickDropdownItem: "clickDropdownItem" }, host: { attributes: { "xs-chat-list-host": "" } }, ngImport: i0, template: "<div class=\"flex flex-col h-full\">\n @if (showSearch()) {\n <div class=\"relative mb-2 px-2 pt-2\">\n <div class=\"relative\">\n <svg\n class=\"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-500 pointer-events-none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n >\n <path\n d=\"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\"\n />\n </svg>\n <input\n type=\"text\"\n [ngModel]=\"searchQuery()\"\n (ngModelChange)=\"onSearchInput($event)\"\n [placeholder]=\"searchPlaceholderText\"\n class=\"input-small rounded-xl !pl-10\"\n />\n </div>\n @if (searchQuery()) {\n <button\n class=\"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-zinc-300\"\n (click)=\"clearSearch()\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n />\n </svg>\n </button>\n }\n </div>\n }\n\n <div class=\"flex-1 overflow-y-auto\">\n @if (loading()) {\n <div class=\"space-y-2 p-4\">\n @for (_ of [1, 2, 3, 4, 5]; track _) {\n <div class=\"flex items-center gap-3 animate-pulse\">\n <div\n class=\"w-12 h-12 rounded-full bg-zinc-800 shrink-0\"\n ></div>\n <div class=\"flex-1 space-y-2\">\n <div class=\"h-3 w-32 bg-zinc-800 rounded\"></div>\n <div class=\"h-2 w-24 bg-zinc-800 rounded\"></div>\n </div>\n </div>\n }\n </div>\n } @else {\n @for (chat of chats(); track chat.chatId; let i = $index) {\n <div class=\"relative overflow-hidden\">\n @if (swipedChatId() === chat.chatId) {\n <div\n class=\"absolute inset-y-0 right-0 flex items-center gap-1 px-2 bg-zinc-900 z-10\"\n >\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-600 rounded-lg hover:bg-red-700\"\n (click)=\"swipeAction(chat, 'block')\"\n >\n {{ swipeBlockText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-yellow-600 rounded-lg hover:bg-yellow-700\"\n (click)=\"swipeAction(chat, 'pin')\"\n >\n {{ swipePinText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-800 rounded-lg hover:bg-red-900\"\n (click)=\"swipeAction(chat, 'delete')\"\n >\n {{ swipeDeleteText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-zinc-600 rounded-lg hover:bg-zinc-700\"\n (click)=\"swipedChatId.set(null)\"\n >\n {{ swipeCancelText }}\n </button>\n </div>\n }\n <button\n (click)=\"onSelectChat(chat)\"\n (contextmenu)=\"onRightClick($event, chat)\"\n (touchstart)=\"onTouchStart($event, chat)\"\n (touchend)=\"onTouchEnd($event, chat)\"\n class=\"flex items-center justify-between w-full gap-2 px-4 py-3 overflow-hidden hover:bg-zinc-900/50 transition-colors\"\n [class.border-b]=\"i < chats().length - 1\"\n [class.border-b-zinc-900]=\"i < chats().length - 1\"\n [class.-translate-x-32]=\"\n swipedChatId() === chat.chatId\n \"\n [class.transition-transform]=\"true\"\n [class.duration-200]=\"true\"\n >\n <div class=\"flex items-center min-w-0 gap-3\">\n <div class=\"relative shrink-0 w-12 h-12\">\n <div\n class=\"overflow-hidden rounded-full w-12 h-12\"\n >\n <xs-image\n [item]=\"displayChatItem(chat)\"\n [typeItem]=\"displayChatType(chat)\"\n imageType=\"small\"\n [objectFit]=\"'cover'\"\n customClass=\"object-cover w-full h-full\"\n [alt]=\"displayChatItem(chat).name ?? ''\"\n ></xs-image>\n </div>\n @if (\n displayChatType(chat) === 'user' &&\n (chat.online?.sender || chat.online?.receiver)\n ) {\n <span\n class=\"absolute -bottom-0.5 -right-0.5 w-3.5 h-3.5 rounded-full border-2 border-zinc-900 bg-green-500\"\n ></span>\n }\n </div>\n <div class=\"flex flex-col items-start min-w-0\">\n <p\n class=\"text-sm font-semibold text-white truncate w-full text-left\"\n >\n {{\n displayChatItem(chat).name ||\n chat.sender.name ||\n chat.receiver.name\n }}\n </p>\n @if (chat.lastMessage && chat.lastMessage.text) {\n <p\n class=\"text-xs text-zinc-400 truncate max-w-[12rem] text-left\"\n >\n {{ chat.lastMessage.text }}\n </p>\n }\n </div>\n </div>\n <div class=\"flex flex-col items-end shrink-0\">\n @if (\n chat.lastMessage && chat.lastMessage.created\n ) {\n <span class=\"text-[10px] text-zinc-600\">{{\n chat.lastMessage.created | dateChat\n }}</span>\n }\n <div class=\"flex items-center gap-1 mt-1\">\n @if (chat.blockedBy?.length) {\n <span class=\"text-red-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'ban'\"\n ></xs-icon\n ></span>\n }\n @if (chat.pinnedBy?.length) {\n <span class=\"text-yellow-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'thumb-tack'\"\n ></xs-icon\n ></span>\n }\n @if (chat.unreadCount && chat.unreadCount > 0) {\n <span\n class=\"flex items-center justify-center min-w-[18px] h-[18px] px-1 text-[10px] font-bold text-white bg-green-500 rounded-full\"\n >\n {{\n chat.unreadCount > 99\n ? '99+'\n : chat.unreadCount\n }}\n </span>\n }\n </div>\n </div>\n </button>\n </div>\n } @empty {\n <div\n class=\"flex items-center justify-center h-32 text-zinc-500 text-sm\"\n >\n {{ searchQuery() ? noResultsText : noChatsText }}\n </div>\n }\n }\n </div>\n\n @if (menuChatId() && !loading()) {\n <div\n class=\"fixed inset-0 z-50\"\n (click)=\"closeMenu()\"\n (contextmenu)=\"closeMenu()\"\n ></div>\n <div\n class=\"absolute z-50 w-40 p-2 rounded-md shadow-lg bg-zinc-900/95 backdrop-blur-xl border border-zinc-800\"\n [style.top.px]=\"menuPosition().y\"\n [style.left.px]=\"menuPosition().x\"\n >\n @for (item of dropdownItems(); track item.action) {\n <button\n (click)=\"onDropdownItemClick(item.action)\"\n class=\"flex items-center gap-2 w-full px-3 py-2 text-sm text-zinc-300 hover:text-white hover:bg-zinc-800 rounded-md transition-colors text-left\"\n >\n @if (item.icon) {\n <xs-icon [icon]=\"item.icon\" size=\"sm\"></xs-icon>\n }\n {{ item.name }}\n </button>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "pipe", type: DateChatPipe, name: "dateChat" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
15304
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSChatListComponent, isStandalone: true, selector: "xs-chat-list", inputs: { chats: { classPropertyName: "chats", publicName: "chats", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, dropdownItems: { classPropertyName: "dropdownItems", publicName: "dropdownItems", isSignal: true, isRequired: false, transformFunction: null }, userId: { classPropertyName: "userId", publicName: "userId", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, noResultsLabel: { classPropertyName: "noResultsLabel", publicName: "noResultsLabel", isSignal: true, isRequired: false, transformFunction: null }, noChatsLabel: { classPropertyName: "noChatsLabel", publicName: "noChatsLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeBlockLabel: { classPropertyName: "swipeBlockLabel", publicName: "swipeBlockLabel", isSignal: true, isRequired: false, transformFunction: null }, swipePinLabel: { classPropertyName: "swipePinLabel", publicName: "swipePinLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeDeleteLabel: { classPropertyName: "swipeDeleteLabel", publicName: "swipeDeleteLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeCancelLabel: { classPropertyName: "swipeCancelLabel", publicName: "swipeCancelLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchQueryChange: "searchQueryChange", selectChat: "selectChat", clickDropdownItem: "clickDropdownItem" }, host: { attributes: { "xs-chat-list-host": "" } }, ngImport: i0, template: "<div class=\"flex flex-col h-full\">\n @if (showSearch()) {\n <div class=\"relative mb-2 px-2 pt-2\">\n <div class=\"relative\">\n <svg\n class=\"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-500 pointer-events-none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n >\n <path\n d=\"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\"\n />\n </svg>\n <input\n type=\"text\"\n [ngModel]=\"searchQuery()\"\n (ngModelChange)=\"onSearchInput($event)\"\n [placeholder]=\"searchPlaceholderText\"\n class=\"input-small rounded-xl !pl-10\"\n />\n </div>\n @if (searchQuery()) {\n <button\n class=\"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-zinc-300\"\n (click)=\"clearSearch()\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n />\n </svg>\n </button>\n }\n </div>\n }\n\n <div class=\"flex-1 overflow-y-auto\">\n @if (loading()) {\n <div class=\"space-y-2 p-4\">\n @for (_ of [1, 2, 3, 4, 5]; track _) {\n <div class=\"flex items-center gap-3 animate-pulse\">\n <div\n class=\"w-12 h-12 rounded-full bg-zinc-800 shrink-0\"\n ></div>\n <div class=\"flex-1 space-y-2\">\n <div class=\"h-3 w-32 bg-zinc-800 rounded\"></div>\n <div class=\"h-2 w-24 bg-zinc-800 rounded\"></div>\n </div>\n </div>\n }\n </div>\n } @else {\n @for (chat of chats(); track chat.chatId; let i = $index) {\n <div class=\"relative overflow-hidden\">\n @if (swipedChatId() === chat.chatId) {\n <div\n class=\"absolute inset-y-0 right-0 flex items-center gap-1 px-2 bg-zinc-900 z-10\"\n >\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-600 rounded-lg hover:bg-red-700\"\n (click)=\"swipeAction(chat, 'block')\"\n >\n {{ swipeBlockText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-yellow-600 rounded-lg hover:bg-yellow-700\"\n (click)=\"swipeAction(chat, 'pin')\"\n >\n {{ swipePinText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-800 rounded-lg hover:bg-red-900\"\n (click)=\"swipeAction(chat, 'delete')\"\n >\n {{ swipeDeleteText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-zinc-600 rounded-lg hover:bg-zinc-700\"\n (click)=\"swipedChatId.set(null)\"\n >\n {{ swipeCancelText }}\n </button>\n </div>\n }\n <button\n (click)=\"onSelectChat(chat)\"\n (contextmenu)=\"onRightClick($event, chat)\"\n (touchstart)=\"onTouchStart($event, chat)\"\n (touchend)=\"onTouchEnd($event, chat)\"\n class=\"flex items-center justify-between w-full gap-2 px-4 py-3 overflow-hidden hover:bg-zinc-900/50 transition-colors\"\n [class.border-b]=\"i < chats().length - 1\"\n [class.border-b-zinc-900]=\"i < chats().length - 1\"\n [class.-translate-x-32]=\"\n swipedChatId() === chat.chatId\n \"\n [class.transition-transform]=\"true\"\n [class.duration-200]=\"true\"\n >\n <div class=\"flex items-center min-w-0 gap-3\">\n <div class=\"relative shrink-0 w-12 h-12\">\n <div\n class=\"overflow-hidden rounded-full w-12 h-12\"\n >\n <xs-image\n [item]=\"displayChatItem(chat)\"\n [typeItem]=\"displayChatType(chat)\"\n imageType=\"small\"\n [objectFit]=\"'cover'\"\n customClass=\"object-cover w-full h-full\"\n [alt]=\"displayChatItem(chat).name ?? ''\"\n ></xs-image>\n </div>\n @if (\n displayChatType(chat) === 'user' &&\n (chat.online?.sender || chat.online?.receiver)\n ) {\n <span\n class=\"absolute -bottom-0.5 -right-0.5 w-3.5 h-3.5 rounded-full border-2 border-zinc-900 bg-green-500\"\n ></span>\n }\n </div>\n <div class=\"flex flex-col items-start min-w-0\">\n <p\n class=\"text-sm font-semibold text-white truncate w-full text-left\"\n >\n {{\n displayChatItem(chat).name ||\n chat.sender.name ||\n chat.receiver.name\n }}\n </p>\n @if (chat.lastMessage && chat.lastMessage.text) {\n <p\n class=\"text-xs text-zinc-400 truncate max-w-[12rem] text-left\"\n >\n {{ chat.lastMessage.text }}\n </p>\n }\n </div>\n </div>\n <div class=\"flex flex-col items-end shrink-0\">\n @if (\n chat.lastMessage && chat.lastMessage.created\n ) {\n <span class=\"text-[10px] text-zinc-600\">{{\n chat.lastMessage.created | dateChat\n }}</span>\n }\n <div class=\"flex items-center gap-1 mt-1\">\n @if (chat.blockedBy?.length) {\n <span class=\"text-red-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'ban'\"\n ></xs-icon\n ></span>\n }\n @if (chat.pinnedBy?.length) {\n <span class=\"text-yellow-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'thumb-tack'\"\n ></xs-icon\n ></span>\n }\n @if (chat.unreadCount && chat.unreadCount > 0) {\n <span\n class=\"flex items-center justify-center min-w-[18px] h-[18px] px-1 text-[10px] font-bold text-white bg-green-500 rounded-full\"\n >\n {{\n chat.unreadCount > 99\n ? '99+'\n : chat.unreadCount\n }}\n </span>\n }\n </div>\n </div>\n </button>\n </div>\n } @empty {\n <div\n class=\"flex items-center justify-center h-32 text-zinc-500 text-sm\"\n >\n {{ searchQuery() ? noResultsText : noChatsText }}\n </div>\n }\n }\n </div>\n\n @if (menuChatId() && !loading()) {\n <div\n class=\"fixed inset-0 z-50\"\n (click)=\"closeMenu()\"\n (contextmenu)=\"closeMenu()\"\n ></div>\n <div\n class=\"absolute z-50 w-40 p-2 rounded-md shadow-lg bg-zinc-900/95 backdrop-blur-xl border border-zinc-800\"\n [style.top.px]=\"menuPosition().y\"\n [style.left.px]=\"menuPosition().x\"\n >\n @for (item of dropdownItems(); track item.action) {\n <button\n (click)=\"onDropdownItemClick(item.action)\"\n class=\"flex items-center gap-2 w-full px-3 py-2 text-sm text-zinc-300 hover:text-white hover:bg-zinc-800 rounded-md transition-colors text-left\"\n >\n @if (item.icon) {\n <xs-icon [icon]=\"item.icon\" size=\"sm\"></xs-icon>\n }\n {{ item.name }}\n </button>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "pipe", type: DateChatPipe, name: "dateChat" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
15305
15305
  }
15306
15306
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSChatListComponent, decorators: [{
15307
15307
  type: Component,
@@ -15681,7 +15681,7 @@ class XSChatTextareaComponent {
15681
15681
  return BLOCKED_WORDS.some((word) => text.toLowerCase().includes(word));
15682
15682
  }
15683
15683
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSChatTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15684
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSChatTextareaComponent, isStandalone: true, selector: "xs-chat-textarea", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, attachEnabled: { classPropertyName: "attachEnabled", publicName: "attachEnabled", isSignal: true, isRequired: false, transformFunction: null }, uploading: { classPropertyName: "uploading", publicName: "uploading", isSignal: true, isRequired: false, transformFunction: null }, uploadProgress: { classPropertyName: "uploadProgress", publicName: "uploadProgress", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sendMessage: "sendMessage", sendWithAttachments: "sendWithAttachments", sendError: "sendError", typing: "typing" }, host: { attributes: { "xs-chat-textarea-host": "" } }, viewQueries: [{ propertyName: "textareaEl", first: true, predicate: ["textareaEl"], descendants: true, isSignal: true }, { propertyName: "fileInputEl", first: true, predicate: ["fileInputEl"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"flex flex-col\">\n @if (showEmojiPicker()) {\n <div\n class=\"flex flex-wrap gap-1 p-2 border-t border-zinc-800 max-h-32 overflow-y-auto\"\n >\n @for (emoji of emojis; track emoji) {\n <button\n (click)=\"insertEmoji(emoji)\"\n class=\"w-8 h-8 flex items-center justify-center hover:bg-zinc-800 rounded-lg text-lg transition-colors\"\n >\n {{ emoji }}\n </button>\n }\n </div>\n }\n @if (attachEnabled() && drafts().length > 0) {\n <div class=\"flex flex-wrap gap-2 px-4 pt-2\">\n @for (draft of drafts(); track draft.name; let i = $index) {\n <div\n class=\"relative flex items-center gap-2 max-w-40 rounded-xl bg-zinc-900/70 border border-zinc-800 p-1.5\"\n >\n @if (isImageDraft(draft) && draft.previewUrl) {\n <img\n [src]=\"draft.previewUrl\"\n [alt]=\"draft.name\"\n class=\"w-10 h-10 rounded-lg object-cover shrink-0\"\n />\n }\n <div class=\"flex flex-col min-w-0\">\n <span class=\"text-xs font-medium text-white truncate\">\n {{ draft.name }}\n </span>\n <span class=\"text-[10px] text-zinc-500\">\n {{ (draft.size / 1024).toFixed(0) }} KB\n </span>\n </div>\n <button\n (click)=\"removeDraft(i)\"\n class=\"absolute -top-2 -right-2 w-5 h-5 flex items-center justify-center rounded-full bg-zinc-700 text-white text-[10px] leading-none hover:bg-zinc-600\"\n >\n \u2715\n </button>\n </div>\n }\n </div>\n }\n @if (uploading()) {\n <div class=\"px-4 pt-2\">\n <div class=\"h-1 rounded-full bg-zinc-800 overflow-hidden\">\n <div\n class=\"h-full rounded-full bg-white transition-all\"\n [style.width.%]=\"uploadProgress()\"\n ></div>\n </div>\n </div>\n }\n <div\n class=\"flex items-end gap-2 px-4 py-2 border-t border-zinc-800\"\n >\n @if (attachEnabled()) {\n <xs-button\n layout=\"iconOnly\"\n variant=\"primary\"\n icon=\"paperclip\"\n [disabled]=\"disabled() || uploading()\"\n (click)=\"openFilePicker()\"\n ></xs-button>\n <input\n #fileInputEl\n type=\"file\"\n class=\"hidden\"\n [accept]=\"attachmentAccept\"\n multiple\n (change)=\"onFilesSelected($event)\"\n />\n }\n <xs-button\n layout=\"iconOnly\"\n variant=\"primary\"\n icon=\"face-smile\"\n (click)=\"toggleEmojiPicker()\"\n ></xs-button>\n <div class=\"flex-1 relative\">\n <textarea\n #textareaEl\n [(ngModel)]=\"messageText\"\n (ngModelChange)=\"onTextChange()\"\n (keydown)=\"onKeyDown($event)\"\n (input)=\"autoResize()\"\n [placeholder]=\"placeholderText\"\n [maxLength]=\"maxLength\"\n class=\"block w-full px-4 py-2.5 text-sm font-medium text-white bg-zinc-900/50 border-0 focus:ring-0 focus:outline-none placeholder:text-zinc-500 resize-none overflow-hidden rounded-xl\"\n rows=\"1\"\n [disabled]=\"disabled()\"\n ></textarea>\n <span\n class=\"absolute bottom-2 right-3 text-[10px] text-zinc-500 pointer-events-none select-none leading-none\"\n >\n {{ messageText().length }}/{{ maxLength }}\n </span>\n </div>\n <xs-button\n layout=\"iconOnly\"\n variant=\"primary\"\n icon=\"paper-plane\"\n [disabled]=\"!canSend() || disabled()\"\n (click)=\"send()\"\n ></xs-button>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
15684
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSChatTextareaComponent, isStandalone: true, selector: "xs-chat-textarea", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, attachEnabled: { classPropertyName: "attachEnabled", publicName: "attachEnabled", isSignal: true, isRequired: false, transformFunction: null }, uploading: { classPropertyName: "uploading", publicName: "uploading", isSignal: true, isRequired: false, transformFunction: null }, uploadProgress: { classPropertyName: "uploadProgress", publicName: "uploadProgress", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sendMessage: "sendMessage", sendWithAttachments: "sendWithAttachments", sendError: "sendError", typing: "typing" }, host: { attributes: { "xs-chat-textarea-host": "" } }, viewQueries: [{ propertyName: "textareaEl", first: true, predicate: ["textareaEl"], descendants: true, isSignal: true }, { propertyName: "fileInputEl", first: true, predicate: ["fileInputEl"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"flex flex-col\">\n @if (showEmojiPicker()) {\n <div\n class=\"flex flex-wrap gap-1 p-2 border-t border-zinc-800 max-h-32 overflow-y-auto\"\n >\n @for (emoji of emojis; track emoji) {\n <button\n (click)=\"insertEmoji(emoji)\"\n class=\"w-8 h-8 flex items-center justify-center hover:bg-zinc-800 rounded-lg text-lg transition-colors\"\n >\n {{ emoji }}\n </button>\n }\n </div>\n }\n @if (attachEnabled() && drafts().length > 0) {\n <div class=\"flex flex-wrap gap-2 px-4 pt-2\">\n @for (draft of drafts(); track draft.name; let i = $index) {\n <div\n class=\"relative flex items-center gap-2 max-w-40 rounded-xl bg-zinc-900/70 border border-zinc-800 p-1.5\"\n >\n @if (isImageDraft(draft) && draft.previewUrl) {\n <img\n [src]=\"draft.previewUrl\"\n [alt]=\"draft.name\"\n class=\"w-10 h-10 rounded-lg object-cover shrink-0\"\n />\n }\n <div class=\"flex flex-col min-w-0\">\n <span class=\"text-xs font-medium text-white truncate\">\n {{ draft.name }}\n </span>\n <span class=\"text-[10px] text-zinc-500\">\n {{ (draft.size / 1024).toFixed(0) }} KB\n </span>\n </div>\n <button\n (click)=\"removeDraft(i)\"\n class=\"absolute -top-2 -right-2 w-5 h-5 flex items-center justify-center rounded-full bg-zinc-700 text-white text-[10px] leading-none hover:bg-zinc-600\"\n >\n \u2715\n </button>\n </div>\n }\n </div>\n }\n @if (uploading()) {\n <div class=\"px-4 pt-2\">\n <div class=\"h-1 rounded-full bg-zinc-800 overflow-hidden\">\n <div\n class=\"h-full rounded-full bg-white transition-all\"\n [style.width.%]=\"uploadProgress()\"\n ></div>\n </div>\n </div>\n }\n <div\n class=\"flex items-end gap-2 px-4 py-2 border-t border-zinc-800\"\n >\n @if (attachEnabled()) {\n <xs-button\n layout=\"iconOnly\"\n variant=\"primary\"\n icon=\"paperclip\"\n [disabled]=\"disabled() || uploading()\"\n (click)=\"openFilePicker()\"\n ></xs-button>\n <input\n #fileInputEl\n type=\"file\"\n class=\"hidden\"\n [accept]=\"attachmentAccept\"\n multiple\n (change)=\"onFilesSelected($event)\"\n />\n }\n <xs-button\n layout=\"iconOnly\"\n variant=\"primary\"\n icon=\"face-smile\"\n (click)=\"toggleEmojiPicker()\"\n ></xs-button>\n <div class=\"flex-1 relative\">\n <textarea\n #textareaEl\n [(ngModel)]=\"messageText\"\n (ngModelChange)=\"onTextChange()\"\n (keydown)=\"onKeyDown($event)\"\n (input)=\"autoResize()\"\n [placeholder]=\"placeholderText\"\n [maxLength]=\"maxLength\"\n class=\"block w-full px-4 py-2.5 text-sm font-medium text-white bg-zinc-900/50 border-0 focus:ring-0 focus:outline-none placeholder:text-zinc-500 resize-none overflow-hidden rounded-xl\"\n rows=\"1\"\n [disabled]=\"disabled()\"\n ></textarea>\n <span\n class=\"absolute bottom-2 right-3 text-[10px] text-zinc-500 pointer-events-none select-none leading-none\"\n >\n {{ messageText().length }}/{{ maxLength }}\n </span>\n </div>\n <xs-button\n layout=\"iconOnly\"\n variant=\"primary\"\n icon=\"paper-plane\"\n [disabled]=\"!canSend() || disabled()\"\n (click)=\"send()\"\n ></xs-button>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
15685
15685
  }
15686
15686
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSChatTextareaComponent, decorators: [{
15687
15687
  type: Component,
@@ -16766,7 +16766,7 @@ class XSNavbarComponent {
16766
16766
  this.translateService.setLanguage(newLang);
16767
16767
  }
16768
16768
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSNavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
16769
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSNavbarComponent, isStandalone: true, selector: "xs-navbar", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, mobileTitle: { classPropertyName: "mobileTitle", publicName: "mobileTitle", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, mobileSubtitle: { classPropertyName: "mobileSubtitle", publicName: "mobileSubtitle", isSignal: true, isRequired: false, transformFunction: null }, showBorder: { classPropertyName: "showBorder", publicName: "showBorder", isSignal: true, isRequired: false, transformFunction: null }, transparent: { classPropertyName: "transparent", publicName: "transparent", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, showBack: { classPropertyName: "showBack", publicName: "showBack", isSignal: true, isRequired: false, transformFunction: null }, showMenu: { classPropertyName: "showMenu", publicName: "showMenu", isSignal: true, isRequired: false, transformFunction: null }, menuIcon: { classPropertyName: "menuIcon", publicName: "menuIcon", isSignal: true, isRequired: false, transformFunction: null }, contextual: { classPropertyName: "contextual", publicName: "contextual", isSignal: true, isRequired: false, transformFunction: null }, showLanguage: { classPropertyName: "showLanguage", publicName: "showLanguage", isSignal: true, isRequired: false, transformFunction: null }, showNotifications: { classPropertyName: "showNotifications", publicName: "showNotifications", isSignal: true, isRequired: false, transformFunction: null }, showHelp: { classPropertyName: "showHelp", publicName: "showHelp", isSignal: true, isRequired: false, transformFunction: null }, showChat: { classPropertyName: "showChat", publicName: "showChat", isSignal: true, isRequired: false, transformFunction: null }, showImpersonation: { classPropertyName: "showImpersonation", publicName: "showImpersonation", isSignal: true, isRequired: false, transformFunction: null }, unreadChatMessages: { classPropertyName: "unreadChatMessages", publicName: "unreadChatMessages", isSignal: true, isRequired: false, transformFunction: null }, unreadNotifications: { classPropertyName: "unreadNotifications", publicName: "unreadNotifications", isSignal: true, isRequired: false, transformFunction: null }, homeRoute: { classPropertyName: "homeRoute", publicName: "homeRoute", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, hideEnvBadge: { classPropertyName: "hideEnvBadge", publicName: "hideEnvBadge", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { back: "back", menuToggle: "menuToggle", titleClick: "titleClick", notificationsClick: "notificationsClick", helpClick: "helpClick", chatClick: "chatClick", impersonationClick: "impersonationClick" }, host: { attributes: { "role": "banner" }, properties: { "class.sticky": "sticky()", "class.top-0": "sticky()", "class.z-50": "sticky()", "class.navbar-contextual": "contextual()" } }, queries: [{ propertyName: "bottomContent", first: true, predicate: ["[bottom]"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "@if (!hidden()) {\n<header\n [class.bg-black/80]=\"!transparent()\"\n [class.backdrop-blur-xl]=\"!transparent()\"\n class=\"ease-in-out transition-all duration-300\"\n [attr.aria-label]=\"ariaLabel() || title()\"\n>\n <div\n class=\"mx-auto px-4 pt-3 pb-2\"\n [class.border-b]=\"showBorder()\"\n [class.border-white/5]=\"showBorder()\"\n [style.max-width]=\"maxWidth()\"\n >\n <div class=\"flex items-center justify-between gap-4 w-full\">\n <div class=\"navbar-left flex items-center min-w-0 flex-1\">\n @if (showLeftButton) {\n <xs-button\n (onClick)=\"showBack() ? back.emit() : menuToggle.emit()\"\n [icon]=\"{ name: showBack() ? 'arrow-left' : (menuIcon()) }\"\n layout=\"iconOnlyHeader\"\n variant=\"custom\"\n customClass=\"flex-none p-2 -ml-2 text-zinc-400 hover:text-white active:scale-90 rounded-xl hover:bg-zinc-900/50\"\n [title]=\"showBack() ? t('GO_BACK') : t('OPEN_MENU')\"\n />\n }\n\n <div class=\"navbar-leading flex-none\">\n <ng-content select=\"[leading]\"></ng-content>\n </div>\n\n <div class=\"navbar-title-wrap flex flex-col min-w-0 flex-1\">\n <a\n [routerLink]=\"homeRoute()\"\n (click)=\"titleClick.emit()\"\n class=\"navbar-default-title inline-block text-2xl sm:text-3xl font-black tracking-[0.01em] text-white uppercase leading-none truncate transition-[letter-spacing_0.5s_ease-out,color_0.2s_ease] hover:tracking-[0.05em] hover:text-zinc-300 will-change-[letter-spacing] no-underline\"\n [attr.aria-label]=\"t('GO_TO') + ' ' + (homeRoute() || t('HOME'))\"\n >\n @if (mobileTitle()) {\n <span class=\"lg:hidden\">{{ mobileTitle() }}</span>\n <span class=\"hidden lg:inline\">{{ title() }}</span>\n } @else {\n {{ title() }}\n }\n </a>\n\n @if (subtitle()) {\n <div\n class=\"navbar-default-subtitle flex items-center gap-2 mt-1 animate-in fade-in slide-in-from-left-2 duration-500 min-w-0\"\n >\n <div\n class=\"text-zinc-400 text-[10px] font-black tracking-[0.2em] uppercase leading-none truncate\"\n >\n @if (mobileSubtitle()) {\n <span class=\"lg:hidden\">{{ mobileSubtitle() }}</span>\n <span class=\"hidden lg:inline\">{{ subtitle() }}</span>\n } @else {\n {{ subtitle() }}\n }\n </div>\n </div>\n }\n </div>\n </div>\n\n <div class=\"navbar-right flex items-center justify-end gap-3 min-w-0\">\n <ng-content select=\"[actions]\"></ng-content>\n\n @if (envName !== 'prod' && !hideEnvBadge() && !isCapacitorNative) {\n <span\n class=\"hidden sm:flex flex-none items-center justify-center w-9 h-9 rounded-xl border text-[9px] font-black tracking-[0.1em] select-none\"\n [class.bg-amber-500/10]=\"envName === 'dev'\"\n [class.border-amber-500/20]=\"envName === 'dev'\"\n [class.text-amber-500]=\"envName === 'dev'\"\n [class.bg-orange-500/10]=\"envName === 'uat'\"\n [class.border-orange-500/20]=\"envName === 'uat'\"\n [class.text-orange-500]=\"envName === 'uat'\"\n [title]=\"envName\"\n >{{ envName }}</span>\n }\n\n @if (showChat()) {\n <button\n (click)=\"chatClick.emit()\"\n class=\"relative flex-none flex items-center justify-center w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('CHAT')\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" class=\"w-4 h-4\">\n <path d=\"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12z\"/>\n </svg>\n @if (unreadChatMessages() > 0) {\n <span\n class=\"absolute -top-1 -right-1 min-w-[16px] h-4 px-1 bg-green-500 rounded-full text-[8px] font-bold text-white flex items-center justify-center\"\n [attr.aria-label]=\"unreadChatMessages() + ' ' + t('UNREAD_MESSAGES')\"\n >\n {{ unreadChatMessages() > 9 ? '9+' : unreadChatMessages() }}\n </span>\n }\n </button>\n }\n\n @if (showNotifications()) {\n <xs-button\n (onClick)=\"notificationsClick.emit()\"\n icon=\"bell\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('NOTIFICATIONS')\"\n [badgeCount]=\"unreadNotifications()\"\n />\n }\n\n @if (showHelp()) {\n <xs-button\n (onClick)=\"helpClick.emit()\"\n icon=\"circle-question\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('GUIDED_TOUR')\"\n />\n }\n\n @if (showImpersonation()) {\n <button\n (click)=\"impersonationClick.emit()\"\n class=\"flex-none flex items-center justify-center w-9 h-9 bg-amber-500/10 rounded-xl border border-amber-500/20 hover:bg-amber-500/20 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('BACK_TO_ADMIN')\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" class=\"w-4 h-4 text-amber-500\">\n <path d=\"M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z\"/>\n </svg>\n </button>\n }\n\n @if (showLanguage()) {\n <button\n (click)=\"onToggleLang()\"\n class=\"navbar-lang flex-none flex items-center justify-center w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('SWITCH_LANG_TO') + ' ' + (langSignal() === 'es' ? t('ENGLISH') : t('SPANISH'))\"\n >\n <img\n [src]=\"\n langSignal() === 'es'\n ? ('es' | countryFlag)\n : ('us' | countryFlag)\n \"\n class=\"w-4 h-3 object-cover rounded-[1px] shadow-sm\"\n [alt]=\"langSignal() === 'es' ? t('SPANISH') : t('ENGLISH')\"\n />\n </button>\n }\n </div>\n </div>\n\n @if (hasBottom) {\n <div\n class=\"mt-6 animate-in fade-in slide-in-from-top-2 duration-700\"\n >\n <ng-content select=\"[bottom]\"></ng-content>\n </div>\n }\n </div>\n</header>\n}\n", styles: [":host{display:block;width:100%}:host(.sticky){position:sticky}header{-webkit-backdrop-filter:blur(20px)}button:focus-visible{outline:2px solid rgb(113 113 122);outline-offset:2px}.navbar-leading:has(>*){margin-left:4px}:host(.navbar-contextual) .navbar-title-wrap{display:none}:host(.navbar-contextual) .navbar-lang{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "pipe", type: CountryFlagPipe, name: "countryFlag" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
16769
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSNavbarComponent, isStandalone: true, selector: "xs-navbar", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, mobileTitle: { classPropertyName: "mobileTitle", publicName: "mobileTitle", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, mobileSubtitle: { classPropertyName: "mobileSubtitle", publicName: "mobileSubtitle", isSignal: true, isRequired: false, transformFunction: null }, showBorder: { classPropertyName: "showBorder", publicName: "showBorder", isSignal: true, isRequired: false, transformFunction: null }, transparent: { classPropertyName: "transparent", publicName: "transparent", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, showBack: { classPropertyName: "showBack", publicName: "showBack", isSignal: true, isRequired: false, transformFunction: null }, showMenu: { classPropertyName: "showMenu", publicName: "showMenu", isSignal: true, isRequired: false, transformFunction: null }, menuIcon: { classPropertyName: "menuIcon", publicName: "menuIcon", isSignal: true, isRequired: false, transformFunction: null }, contextual: { classPropertyName: "contextual", publicName: "contextual", isSignal: true, isRequired: false, transformFunction: null }, showLanguage: { classPropertyName: "showLanguage", publicName: "showLanguage", isSignal: true, isRequired: false, transformFunction: null }, showNotifications: { classPropertyName: "showNotifications", publicName: "showNotifications", isSignal: true, isRequired: false, transformFunction: null }, showHelp: { classPropertyName: "showHelp", publicName: "showHelp", isSignal: true, isRequired: false, transformFunction: null }, showChat: { classPropertyName: "showChat", publicName: "showChat", isSignal: true, isRequired: false, transformFunction: null }, showImpersonation: { classPropertyName: "showImpersonation", publicName: "showImpersonation", isSignal: true, isRequired: false, transformFunction: null }, unreadChatMessages: { classPropertyName: "unreadChatMessages", publicName: "unreadChatMessages", isSignal: true, isRequired: false, transformFunction: null }, unreadNotifications: { classPropertyName: "unreadNotifications", publicName: "unreadNotifications", isSignal: true, isRequired: false, transformFunction: null }, homeRoute: { classPropertyName: "homeRoute", publicName: "homeRoute", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, hideEnvBadge: { classPropertyName: "hideEnvBadge", publicName: "hideEnvBadge", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { back: "back", menuToggle: "menuToggle", titleClick: "titleClick", notificationsClick: "notificationsClick", helpClick: "helpClick", chatClick: "chatClick", impersonationClick: "impersonationClick" }, host: { attributes: { "role": "banner" }, properties: { "class.sticky": "sticky()", "class.top-0": "sticky()", "class.z-50": "sticky()", "class.navbar-contextual": "contextual()" } }, queries: [{ propertyName: "bottomContent", first: true, predicate: ["[bottom]"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "@if (!hidden()) {\n<header\n [class.bg-black/80]=\"!transparent()\"\n [class.backdrop-blur-xl]=\"!transparent()\"\n class=\"ease-in-out transition-all duration-300\"\n [attr.aria-label]=\"ariaLabel() || title()\"\n>\n <div\n class=\"mx-auto px-4 pt-3 pb-2\"\n [class.border-b]=\"showBorder()\"\n [class.border-white/5]=\"showBorder()\"\n [style.max-width]=\"maxWidth()\"\n >\n <div class=\"flex items-center justify-between gap-4 w-full\">\n <div class=\"navbar-left flex items-center min-w-0 flex-1\">\n @if (showLeftButton) {\n <xs-button\n (onClick)=\"showBack() ? back.emit() : menuToggle.emit()\"\n [icon]=\"{ name: showBack() ? 'arrow-left' : (menuIcon()) }\"\n layout=\"iconOnlyHeader\"\n variant=\"custom\"\n customClass=\"flex-none p-2 -ml-2 text-zinc-400 hover:text-white active:scale-90 rounded-xl hover:bg-zinc-900/50\"\n [title]=\"showBack() ? t('GO_BACK') : t('OPEN_MENU')\"\n />\n }\n\n <div class=\"navbar-leading flex-none\">\n <ng-content select=\"[leading]\"></ng-content>\n </div>\n\n <div class=\"navbar-title-wrap flex flex-col min-w-0 flex-1\">\n <a\n [routerLink]=\"homeRoute()\"\n (click)=\"titleClick.emit()\"\n class=\"navbar-default-title inline-block text-2xl sm:text-3xl font-black tracking-[0.01em] text-white uppercase leading-none truncate transition-[letter-spacing_0.5s_ease-out,color_0.2s_ease] hover:tracking-[0.05em] hover:text-zinc-300 will-change-[letter-spacing] no-underline\"\n [attr.aria-label]=\"t('GO_TO') + ' ' + (homeRoute() || t('HOME'))\"\n >\n @if (mobileTitle()) {\n <span class=\"lg:hidden\">{{ mobileTitle() }}</span>\n <span class=\"hidden lg:inline\">{{ title() }}</span>\n } @else {\n {{ title() }}\n }\n </a>\n\n @if (subtitle()) {\n <div\n class=\"navbar-default-subtitle flex items-center gap-2 mt-1 animate-in fade-in slide-in-from-left-2 duration-500 min-w-0\"\n >\n <div\n class=\"text-zinc-400 text-[10px] font-black tracking-[0.2em] uppercase leading-none truncate\"\n >\n @if (mobileSubtitle()) {\n <span class=\"lg:hidden\">{{ mobileSubtitle() }}</span>\n <span class=\"hidden lg:inline\">{{ subtitle() }}</span>\n } @else {\n {{ subtitle() }}\n }\n </div>\n </div>\n }\n </div>\n </div>\n\n <div class=\"navbar-right flex items-center justify-end gap-3 min-w-0\">\n <ng-content select=\"[actions]\"></ng-content>\n\n @if (envName !== 'prod' && !hideEnvBadge() && !isCapacitorNative) {\n <span\n class=\"hidden sm:flex flex-none items-center justify-center w-9 h-9 rounded-xl border text-[9px] font-black tracking-[0.1em] select-none\"\n [class.bg-amber-500/10]=\"envName === 'dev'\"\n [class.border-amber-500/20]=\"envName === 'dev'\"\n [class.text-amber-500]=\"envName === 'dev'\"\n [class.bg-orange-500/10]=\"envName === 'uat'\"\n [class.border-orange-500/20]=\"envName === 'uat'\"\n [class.text-orange-500]=\"envName === 'uat'\"\n [title]=\"envName\"\n >{{ envName }}</span>\n }\n\n @if (showChat()) {\n <button\n (click)=\"chatClick.emit()\"\n class=\"relative flex-none flex items-center justify-center w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('CHAT')\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" class=\"w-4 h-4\">\n <path d=\"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12z\"/>\n </svg>\n @if (unreadChatMessages() > 0) {\n <span\n class=\"absolute -top-1 -right-1 min-w-[16px] h-4 px-1 bg-green-500 rounded-full text-[8px] font-bold text-white flex items-center justify-center\"\n [attr.aria-label]=\"unreadChatMessages() + ' ' + t('UNREAD_MESSAGES')\"\n >\n {{ unreadChatMessages() > 9 ? '9+' : unreadChatMessages() }}\n </span>\n }\n </button>\n }\n\n @if (showNotifications()) {\n <xs-button\n (onClick)=\"notificationsClick.emit()\"\n icon=\"bell\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('NOTIFICATIONS')\"\n [badgeCount]=\"unreadNotifications()\"\n />\n }\n\n @if (showHelp()) {\n <xs-button\n (onClick)=\"helpClick.emit()\"\n icon=\"circle-question\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('GUIDED_TOUR')\"\n />\n }\n\n @if (showImpersonation()) {\n <button\n (click)=\"impersonationClick.emit()\"\n class=\"flex-none flex items-center justify-center w-9 h-9 bg-amber-500/10 rounded-xl border border-amber-500/20 hover:bg-amber-500/20 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('BACK_TO_ADMIN')\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" class=\"w-4 h-4 text-amber-500\">\n <path d=\"M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z\"/>\n </svg>\n </button>\n }\n\n @if (showLanguage()) {\n <button\n (click)=\"onToggleLang()\"\n class=\"navbar-lang flex-none flex items-center justify-center w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('SWITCH_LANG_TO') + ' ' + (langSignal() === 'es' ? t('ENGLISH') : t('SPANISH'))\"\n >\n <img\n [src]=\"\n langSignal() === 'es'\n ? ('es' | countryFlag)\n : ('us' | countryFlag)\n \"\n class=\"w-4 h-3 object-cover rounded-[1px] shadow-sm\"\n [alt]=\"langSignal() === 'es' ? t('SPANISH') : t('ENGLISH')\"\n />\n </button>\n }\n </div>\n </div>\n\n @if (hasBottom) {\n <div\n class=\"mt-6 animate-in fade-in slide-in-from-top-2 duration-700\"\n >\n <ng-content select=\"[bottom]\"></ng-content>\n </div>\n }\n </div>\n</header>\n}\n", styles: [":host{display:block;width:100%}:host(.sticky){position:sticky}header{-webkit-backdrop-filter:blur(20px)}button:focus-visible{outline:2px solid rgb(113 113 122);outline-offset:2px}.navbar-leading:has(>*){margin-left:4px}:host(.navbar-contextual) .navbar-title-wrap{display:none}:host(.navbar-contextual) .navbar-lang{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "pipe", type: CountryFlagPipe, name: "countryFlag" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
16770
16770
  }
16771
16771
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSNavbarComponent, decorators: [{
16772
16772
  type: Component,
@@ -16917,7 +16917,7 @@ class XSBlockComponent {
16917
16917
  return Array.from({ length: this.loadingItems() }, (_, i) => i);
16918
16918
  }
16919
16919
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
16920
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSBlockComponent, isStandalone: true, selector: "xs-block", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, emptyDescription: { classPropertyName: "emptyDescription", publicName: "emptyDescription", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, showRefresh: { classPropertyName: "showRefresh", publicName: "showRefresh", isSignal: true, isRequired: false, transformFunction: null }, loadingItems: { classPropertyName: "loadingItems", publicName: "loadingItems", isSignal: true, isRequired: false, transformFunction: null }, selectOptions: { classPropertyName: "selectOptions", publicName: "selectOptions", isSignal: true, isRequired: false, transformFunction: null }, selectValue: { classPropertyName: "selectValue", publicName: "selectValue", isSignal: true, isRequired: false, transformFunction: null }, loadingTemplate: { classPropertyName: "loadingTemplate", publicName: "loadingTemplate", isSignal: true, isRequired: false, transformFunction: null }, titleRouterLink: { classPropertyName: "titleRouterLink", publicName: "titleRouterLink", isSignal: true, isRequired: false, transformFunction: null }, titleQueryParams: { classPropertyName: "titleQueryParams", publicName: "titleQueryParams", isSignal: true, isRequired: false, transformFunction: null }, titleHref: { classPropertyName: "titleHref", publicName: "titleHref", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectValue: "selectValueChange", refresh: "refresh" }, host: { attributes: { "xs-block-host": "" } }, ngImport: i0, template: "<div class=\"py-1 rounded-xl bg-zinc-900/50\">\n <div class=\"flex items-center justify-between px-3 py-2\">\n @if (titleRouterLink(); as link) {\n <a [routerLink]=\"link\" [queryParams]=\"titleQueryParams()\" class=\"font-bold hover:opacity-70 no-underline\">{{ title() }}</a>\n } @else if (titleHref(); as href) {\n <a [href]=\"href\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"font-bold hover:opacity-70 no-underline\">{{ title() }}</a>\n } @else {\n <h2 class=\"font-bold text-sm\">{{ title() }}</h2>\n }\n <div class=\"flex items-center gap-2\">\n <ng-content select=\"[blockHeaderRight]\" />\n @if (selectOptions().length > 0) {\n <div class=\"relative\">\n <select\n [value]=\"selectValue()\"\n (change)=\"selectValue.set($any($event.target).value)\"\n [style.appearance]=\"'none'\"\n class=\"bg-zinc-800 text-zinc-300 text-xs rounded-xl pl-2 pr-7 py-1 border-0 outline-none cursor-pointer appearance-none\"\n >\n @for (opt of selectOptions(); track opt.value) {\n <option [value]=\"opt.value\">{{ opt.label }}</option>\n }\n </select>\n <xs-icon icon=\"chevron-down\" size=\"xs\" class=\"absolute right-2 top-1/2 -translate-y-1/2 text-zinc-400 pointer-events-none\" />\n </div>\n }\n @if (showRefresh()) {\n <button\n type=\"button\"\n [attr.aria-label]=\"t('REFRESH')\"\n (click)=\"refresh.emit()\"\n class=\"w-7 h-7 flex items-center justify-center rounded-xl bg-zinc-800 hover:bg-zinc-700 transition-colors\"\n >\n <xs-icon icon=\"sync\" size=\"xs\" class=\"text-zinc-400\" />\n </button>\n }\n </div>\n </div>\n\n <div class=\"border-t border-zinc-800/50 mx-3\"></div>\n\n @switch (state()) {\n @case ('loading') {\n @if (loadingTemplate(); as tmpl) {\n <ng-container [ngTemplateOutlet]=\"tmpl\" />\n } @else {\n <div class=\"overflow-y-auto max-h-[275px] scrollbar-hidden space-y-1 p-3\" aria-busy=\"true\" [attr.aria-label]=\"t('LOADING_CONTENT')\">\n @for (_ of getSkeletonItems(); track _) {\n <div class=\"flex items-center gap-3 p-2 rounded-xl bg-zinc-900/30 animate-pulse\">\n <div class=\"w-8 h-8 rounded-xl bg-zinc-800 shrink-0\"></div>\n <div class=\"flex-1 space-y-1\">\n <div class=\"h-3 w-32 bg-zinc-800 rounded\"></div>\n <div class=\"h-2 w-20 bg-zinc-800 rounded\"></div>\n </div>\n </div>\n }\n </div>\n }\n }\n @case ('error') {\n <div class=\"p-3\">\n <xs-empty-state\n [config]=\"{\n title: t('ERROR'),\n description: errorMessage(),\n illustration: 'none',\n variant: 'warning',\n size: 'sm',\n compact: true\n }\"\n />\n </div>\n }\n @case ('empty') {\n <div class=\"p-3\">\n <xs-empty-state\n [config]=\"{\n title: emptyMessage(),\n description: emptyDescription() || undefined,\n illustration: 'none',\n size: 'sm',\n compact: true\n }\"\n />\n </div>\n }\n @default {\n <div class=\"p-3\">\n <ng-content />\n </div>\n }\n }\n</div>\n", styles: [":host{display:block}select::-ms-expand{display:none}select::-webkit-outer-spin-button,select::-webkit-inner-spin-button{-webkit-appearance:none}select{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;background-image:none!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "component", type: XSEmptyStateComponent, selector: "xs-empty-state", inputs: ["config", "regionAriaLabel"], outputs: ["actionClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
16920
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSBlockComponent, isStandalone: true, selector: "xs-block", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, emptyDescription: { classPropertyName: "emptyDescription", publicName: "emptyDescription", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, showRefresh: { classPropertyName: "showRefresh", publicName: "showRefresh", isSignal: true, isRequired: false, transformFunction: null }, loadingItems: { classPropertyName: "loadingItems", publicName: "loadingItems", isSignal: true, isRequired: false, transformFunction: null }, selectOptions: { classPropertyName: "selectOptions", publicName: "selectOptions", isSignal: true, isRequired: false, transformFunction: null }, selectValue: { classPropertyName: "selectValue", publicName: "selectValue", isSignal: true, isRequired: false, transformFunction: null }, loadingTemplate: { classPropertyName: "loadingTemplate", publicName: "loadingTemplate", isSignal: true, isRequired: false, transformFunction: null }, titleRouterLink: { classPropertyName: "titleRouterLink", publicName: "titleRouterLink", isSignal: true, isRequired: false, transformFunction: null }, titleQueryParams: { classPropertyName: "titleQueryParams", publicName: "titleQueryParams", isSignal: true, isRequired: false, transformFunction: null }, titleHref: { classPropertyName: "titleHref", publicName: "titleHref", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectValue: "selectValueChange", refresh: "refresh" }, host: { attributes: { "xs-block-host": "" } }, ngImport: i0, template: "<div class=\"py-1 rounded-xl bg-zinc-900/50\">\n <div class=\"flex items-center justify-between px-3 py-2\">\n @if (titleRouterLink(); as link) {\n <a [routerLink]=\"link\" [queryParams]=\"titleQueryParams()\" class=\"font-bold hover:opacity-70 no-underline\">{{ title() }}</a>\n } @else if (titleHref(); as href) {\n <a [href]=\"href\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"font-bold hover:opacity-70 no-underline\">{{ title() }}</a>\n } @else {\n <h2 class=\"font-bold text-sm\">{{ title() }}</h2>\n }\n <div class=\"flex items-center gap-2\">\n <ng-content select=\"[blockHeaderRight]\" />\n @if (selectOptions().length > 0) {\n <div class=\"relative\">\n <select\n [value]=\"selectValue()\"\n (change)=\"selectValue.set($any($event.target).value)\"\n [style.appearance]=\"'none'\"\n class=\"bg-zinc-800 text-zinc-300 text-xs rounded-xl pl-2 pr-7 py-1 border-0 outline-none cursor-pointer appearance-none\"\n >\n @for (opt of selectOptions(); track opt.value) {\n <option [value]=\"opt.value\">{{ opt.label }}</option>\n }\n </select>\n <xs-icon icon=\"chevron-down\" size=\"xs\" class=\"absolute right-2 top-1/2 -translate-y-1/2 text-zinc-400 pointer-events-none\" />\n </div>\n }\n @if (showRefresh()) {\n <button\n type=\"button\"\n [attr.aria-label]=\"t('REFRESH')\"\n (click)=\"refresh.emit()\"\n class=\"w-7 h-7 flex items-center justify-center rounded-xl bg-zinc-800 hover:bg-zinc-700 transition-colors\"\n >\n <xs-icon icon=\"sync\" size=\"xs\" class=\"text-zinc-400\" />\n </button>\n }\n </div>\n </div>\n\n <div class=\"border-t border-zinc-800/50 mx-3\"></div>\n\n @switch (state()) {\n @case ('loading') {\n @if (loadingTemplate(); as tmpl) {\n <ng-container [ngTemplateOutlet]=\"tmpl\" />\n } @else {\n <div class=\"overflow-y-auto max-h-[275px] scrollbar-hidden space-y-1 p-3\" aria-busy=\"true\" [attr.aria-label]=\"t('LOADING_CONTENT')\">\n @for (_ of getSkeletonItems(); track _) {\n <div class=\"flex items-center gap-3 p-2 rounded-xl bg-zinc-900/30 animate-pulse\">\n <div class=\"w-8 h-8 rounded-xl bg-zinc-800 shrink-0\"></div>\n <div class=\"flex-1 space-y-1\">\n <div class=\"h-3 w-32 bg-zinc-800 rounded\"></div>\n <div class=\"h-2 w-20 bg-zinc-800 rounded\"></div>\n </div>\n </div>\n }\n </div>\n }\n }\n @case ('error') {\n <div class=\"p-3\">\n <xs-empty-state\n [config]=\"{\n title: t('ERROR'),\n description: errorMessage(),\n illustration: 'none',\n variant: 'warning',\n size: 'sm',\n compact: true\n }\"\n />\n </div>\n }\n @case ('empty') {\n <div class=\"p-3\">\n <xs-empty-state\n [config]=\"{\n title: emptyMessage(),\n description: emptyDescription() || undefined,\n illustration: 'none',\n size: 'sm',\n compact: true\n }\"\n />\n </div>\n }\n @default {\n <div class=\"p-3\">\n <ng-content />\n </div>\n }\n }\n</div>\n", styles: [":host{display:block}select::-ms-expand{display:none}select::-webkit-outer-spin-button,select::-webkit-inner-spin-button{-webkit-appearance:none}select{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;background-image:none!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "component", type: XSEmptyStateComponent, selector: "xs-empty-state", inputs: ["config", "regionAriaLabel"], outputs: ["actionClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
16921
16921
  }
16922
16922
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSBlockComponent, decorators: [{
16923
16923
  type: Component,
@@ -17155,7 +17155,7 @@ class ApiService {
17155
17155
  delete(endpoint, id) {
17156
17156
  return this.http.delete(`${endpoint}/${id}`);
17157
17157
  }
17158
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: ApiService, deps: [{ token: i1$4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
17158
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: ApiService, deps: [{ token: i1$5.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
17159
17159
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: ApiService, providedIn: 'root' });
17160
17160
  }
17161
17161
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: ApiService, decorators: [{
@@ -17163,7 +17163,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
17163
17163
  args: [{
17164
17164
  providedIn: 'root',
17165
17165
  }]
17166
- }], ctorParameters: () => [{ type: i1$4.HttpClient }] });
17166
+ }], ctorParameters: () => [{ type: i1$5.HttpClient }] });
17167
17167
 
17168
17168
  class OnImageErrorDirective {
17169
17169
  el;
@@ -19656,7 +19656,7 @@ class XSTableComponent {
19656
19656
  this.scheduleSave();
19657
19657
  }
19658
19658
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19659
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSTableComponent, isStandalone: true, selector: "xs-table", inputs: { headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, emptyTitle: { classPropertyName: "emptyTitle", publicName: "emptyTitle", isSignal: true, isRequired: false, transformFunction: null }, actionButtons: { classPropertyName: "actionButtons", publicName: "actionButtons", isSignal: true, isRequired: false, transformFunction: null }, selectedButtons: { classPropertyName: "selectedButtons", publicName: "selectedButtons", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, subType: { classPropertyName: "subType", publicName: "subType", isSignal: true, isRequired: false, transformFunction: null }, admin: { classPropertyName: "admin", publicName: "admin", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, serverPagination: { classPropertyName: "serverPagination", publicName: "serverPagination", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, loadingMore: { classPropertyName: "loadingMore", publicName: "loadingMore", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, exportable: { classPropertyName: "exportable", publicName: "exportable", isSignal: true, isRequired: false, transformFunction: null }, exportFilename: { classPropertyName: "exportFilename", publicName: "exportFilename", isSignal: true, isRequired: false, transformFunction: null }, copyable: { classPropertyName: "copyable", publicName: "copyable", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, refreshable: { classPropertyName: "refreshable", publicName: "refreshable", isSignal: true, isRequired: false, transformFunction: null }, toolbarButtons: { classPropertyName: "toolbarButtons", publicName: "toolbarButtons", isSignal: true, isRequired: false, transformFunction: null }, searchQuery: { classPropertyName: "searchQuery", publicName: "searchQuery", isSignal: true, isRequired: false, transformFunction: null }, columnToggleable: { classPropertyName: "columnToggleable", publicName: "columnToggleable", isSignal: true, isRequired: false, transformFunction: null }, reorderable: { classPropertyName: "reorderable", publicName: "reorderable", isSignal: true, isRequired: false, transformFunction: null }, storageKey: { classPropertyName: "storageKey", publicName: "storageKey", isSignal: true, isRequired: false, transformFunction: null }, idKey: { classPropertyName: "idKey", publicName: "idKey", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, containerHeight: { classPropertyName: "containerHeight", publicName: "containerHeight", isSignal: true, isRequired: false, transformFunction: null }, columnTemplates: { classPropertyName: "columnTemplates", publicName: "columnTemplates", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { refresh: "refresh", searchQuery: "searchQueryChange", page: "pageChange", pageSize: "pageSizeChange", rowClick: "rowClick", selectionChange: "selectionChange", selectedAction: "selectedAction", sortChange: "sortChange", searchQuerySubmit: "searchQuerySubmit" }, host: { properties: { "style.display": "\"block\"" } }, queries: [{ propertyName: "cellTemplate", first: true, predicate: ["xsCell"], descendants: true, isSignal: true }, { propertyName: "expandedContent", first: true, predicate: ["xsExpandedRow"], descendants: true, isSignal: true }, { propertyName: "toolbarExtra", first: true, predicate: ["toolbarExtra"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (!sticky() && showToolbar() && (items().length > 0 || searchQuery() || toolbarButtons().length > 0 || searchable())) {\n <div class=\"flex flex-col sm:flex-row items-stretch sm:items-center gap-3 px-4 py-2 mb-2 rounded-xl bg-zinc-900/50 border border-white/[0.02]\">\n <ng-container [ngTemplateOutlet]=\"toolbarContent\" />\n </div>\n}\n\n@if (sticky()) {\n <div class=\"flex flex-col overflow-hidden rounded-xl bg-zinc-900/50 shadow-2xl border border-white/[0.02]\"\n [style.height]=\"containerHeight()\">\n @if (showToolbar() && (items().length > 0 || searchQuery() || toolbarButtons().length > 0 || searchable())) {\n <div class=\"flex-shrink-0 border-b border-zinc-800/40 px-4 py-2\">\n <div class=\"flex flex-col sm:flex-row items-stretch sm:items-center gap-3\">\n <ng-container [ngTemplateOutlet]=\"toolbarContent\" />\n </div>\n </div>\n }\n @if (!loading() && filteredItems().length > 0) {\n <div class=\"flex-1 overflow-y-auto min-h-0\">\n <ng-container [ngTemplateOutlet]=\"tableContent\" />\n </div>\n @if (showPagination()) {\n <div class=\"flex-shrink-0 border-t border-zinc-800/40 px-3 py-2\"\n role=\"navigation\"\n [attr.aria-label]=\"translate('TABLE.PAGINATION.ARIA_LABEL')\">\n <div class=\"flex flex-col sm:flex-row items-center justify-between gap-2\">\n <div class=\"flex items-center gap-2\">\n <div class=\"relative group\">\n <select\n [value]=\"pageSize()\"\n (change)=\"onPageSizeChange($any($event.target).value)\"\n class=\"h-9 min-w-[110px] bg-zinc-950 bg-none text-zinc-300 text-[11px] font-black rounded-lg pl-3 pr-8 outline-none border border-zinc-800 appearance-none cursor-pointer hover:border-zinc-600 transition-all focus:border-zinc-400\"\n [attr.aria-label]=\"translate('TABLE.PAGINATION.PAGE_SIZE_LABEL')\">\n @for (size of safePageSizeOptions(); track size) {\n <option [value]=\"size\">{{ size + ' ' + translate('TABLE.PAGINATION.ITEMS') }}</option>\n }\n </select>\n <xs-icon icon=\"chevron-down\" size=\"xs\" class=\"absolute right-2 top-1/2 -translate-y-1/2 text-zinc-600 pointer-events-none\" />\n </div>\n <div class=\"h-5 w-px bg-zinc-800/50\"></div>\n <div class=\"flex items-center bg-zinc-950 border border-zinc-800 rounded-lg h-9 px-3 focus-within:border-zinc-400 transition-all\">\n <label [for]=\"uid\" class=\"text-[8px] font-black text-zinc-400 uppercase mr-2\">{{ translate('TABLE.GO_TO') }}</label>\n <input [id]=\"uid\" type=\"number\" [value]=\"page()\"\n (input)=\"onJumpPageInput($event)\" (keyup.enter)=\"onJumpPage($any($event))\" (blur)=\"onJumpPage($any($event))\"\n class=\"w-7 bg-transparent border-none text-[11px] text-white font-black outline-none [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none\" />\n </div>\n </div>\n <div class=\"flex items-center gap-3\">\n <span class=\"text-[9px] font-black text-zinc-400 uppercase tracking-[0.2em]\"\n aria-live=\"polite\" aria-atomic=\"true\">\n {{ translate('TABLE.PAGE') }} <span class=\"text-white\" aria-current=\"page\">{{ page() }}</span>\n <span class=\"text-zinc-800\">/</span> {{ totalPages() }}\n </span>\n <div class=\"flex items-center gap-0.5\">\n <xs-button\n icon=\"chevron-left\"\n [disabled]=\"page() <= 1\"\n (onClick)=\"onPageChange(page() - 1)\"\n variant=\"secondary\"\n layout=\"iconOnly\"\n customClass=\"h-8 w-8\"\n [ariaLabel]=\"translate('TABLE.PREV_PAGE')\"\n />\n <xs-button\n icon=\"chevron-right\"\n [disabled]=\"page() >= totalPages()\"\n (onClick)=\"onPageChange(page() + 1)\"\n variant=\"secondary\"\n layout=\"iconOnly\"\n customClass=\"h-8 w-8\"\n [ariaLabel]=\"translate('TABLE.NEXT_PAGE')\"\n />\n </div>\n </div>\n </div>\n </div>\n }\n } @else if (!loading() && searchQuery()) {\n <div class=\"flex-1 min-h-0 p-10 flex flex-col justify-center items-center gap-3 border border-dashed border-zinc-800/40 rounded-xl m-4 bg-zinc-900/30\">\n <xs-icon icon=\"search\" size=\"lg\" class=\"text-zinc-600\" />\n <span class=\"text-zinc-400 text-sm font-medium\">\n {{ translate('TABLE.NO_RESULTS') }}\n <span class=\"text-zinc-300 font-bold\">\"{{ searchQuery() }}\"</span>\n </span>\n <xs-button\n (onClick)=\"clearSearch()\"\n [label]=\"translate('TABLE.CLEAR_SEARCH')\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-xs text-zinc-400 hover:text-zinc-300 underline\"\n />\n </div>\n } @else if (loading()) {\n <div class=\"flex-1 min-h-0 p-4 space-y-3\">\n @for (i of [1, 2, 3, 4, 5]; track $index) {\n <div class=\"h-14 w-full bg-zinc-800/20 rounded-lg animate-pulse\"></div>\n }\n </div>\n } @else {\n <div class=\"flex-1 min-h-0 p-6\">\n <xs-empty-state [config]=\"getEmptyStateConfig()\" />\n </div>\n }\n </div>\n} @else {\n @if (!loading() && filteredItems().length > 0) {\n <div class=\"my-2 rounded-xl bg-zinc-900/50 shadow-2xl border border-white/[0.02]\">\n <ng-container [ngTemplateOutlet]=\"tableContent\" />\n </div>\n\n @if (showPagination()) {\n <div class=\"flex flex-col sm:flex-row items-center justify-between gap-4 p-4 bg-zinc-900/50 rounded-xl mt-4 border border-white/[0.03]\"\n role=\"navigation\"\n [attr.aria-label]=\"translate('TABLE.PAGINATION.ARIA_LABEL')\">\n <div class=\"flex items-center gap-4\">\n <div class=\"relative group\">\n <select\n [value]=\"pageSize()\"\n (change)=\"onPageSizeChange($any($event.target).value)\"\n class=\"h-9 min-w-[110px] bg-zinc-950 text-zinc-300 text-[11px] font-black rounded-lg pl-3 pr-8 outline-none border border-zinc-800 appearance-none cursor-pointer hover:border-zinc-600 transition-all focus:border-zinc-400\"\n [attr.aria-label]=\"translate('TABLE.PAGINATION.PAGE_SIZE_LABEL')\">\n @for (size of safePageSizeOptions(); track size) {\n <option [value]=\"size\">{{ size + ' ' + translate('TABLE.PAGINATION.ITEMS') }}</option>\n }\n </select>\n <xs-icon icon=\"chevron-down\" size=\"xs\" class=\"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-600 pointer-events-none\" />\n </div>\n <div class=\"h-6 w-px bg-zinc-800/50 mx-1\"></div>\n <div class=\"flex items-center bg-zinc-950 border border-zinc-800 rounded-lg h-9 px-3 focus-within:border-zinc-400 transition-all\">\n <label [for]=\"uid\" class=\"text-[9px] font-black text-zinc-400 uppercase mr-3\">{{ translate('TABLE.GO_TO') }}</label>\n <input [id]=\"uid\" type=\"number\" [value]=\"page()\"\n (input)=\"onJumpPageInput($event)\" (keyup.enter)=\"onJumpPage($any($event))\" (blur)=\"onJumpPage($any($event))\"\n class=\"w-8 bg-transparent border-none text-xs text-white font-black outline-none [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none\" />\n </div>\n </div>\n <div class=\"flex items-center gap-6\">\n <span class=\"text-[10px] font-black text-zinc-400 uppercase tracking-[0.2em]\"\n aria-live=\"polite\" aria-atomic=\"true\">\n {{ translate('TABLE.PAGE') }} <span class=\"text-white\" aria-current=\"page\">{{ page() }}</span>\n <span class=\"text-zinc-800\">/</span> {{ totalPages() }}\n </span>\n <div class=\"flex items-center gap-2\">\n <xs-button\n icon=\"chevron-left\"\n [disabled]=\"page() <= 1\"\n (onClick)=\"onPageChange(page() - 1)\"\n variant=\"secondary\"\n [ariaLabel]=\"translate('TABLE.PREV_PAGE')\"\n />\n <xs-button\n icon=\"chevron-right\"\n [disabled]=\"page() >= totalPages()\"\n (onClick)=\"onPageChange(page() + 1)\"\n variant=\"secondary\"\n [ariaLabel]=\"translate('TABLE.NEXT_PAGE')\"\n />\n </div>\n </div>\n </div>\n }\n } @else if (!loading() && searchQuery()) {\n <div class=\"mt-4 bg-zinc-900/30 rounded-xl p-14 flex flex-col justify-center items-center gap-3 border border-dashed border-zinc-800/40\">\n <xs-icon icon=\"search\" size=\"lg\" class=\"text-zinc-600\" />\n <span class=\"text-zinc-400 text-sm font-medium\">\n {{ translate('TABLE.NO_RESULTS') }}\n <span class=\"text-zinc-300 font-bold\">\"{{ searchQuery() }}\"</span>\n </span>\n <xs-button\n (onClick)=\"clearSearch()\"\n [label]=\"translate('TABLE.CLEAR_SEARCH')\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-xs text-zinc-400 hover:text-zinc-300 underline\"\n />\n </div>\n } @else if (loading()) {\n <div class=\"p-4 space-y-3 bg-zinc-900/30 rounded-xl\">\n @for (i of [1, 2, 3, 4, 5]; track $index) {\n <div class=\"h-14 w-full bg-zinc-800/20 rounded-lg animate-pulse\"></div>\n }\n </div>\n } @else {\n <div class=\"mt-4\">\n <xs-empty-state [config]=\"getEmptyStateConfig()\" />\n </div>\n }\n}\n\n@if (selectedSet().size > 0 && safeSelectedButtons().length > 0) {\n <div class=\"fixed bottom-6 left-1/2 -translate-x-1/2 z-30\" aria-live=\"polite\" role=\"status\">\n <div class=\"flex items-center gap-4 px-4 py-2 rounded-xl bg-zinc-900 border border-zinc-800 shadow-2xl animate-in slide-in-from-bottom-4\">\n <span class=\"text-sm font-medium text-white\">\n <span class=\"px-2 py-0.5 rounded bg-zinc-100 text-zinc-950 text-xs font-bold mr-2\">\n {{ selectedSet().size }}\n </span>\n {{ translate('TABLE.SELECTED') }}\n </span>\n <xs-button\n icon=\"ellipsis-vertical\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"p-2 hover:bg-zinc-800 rounded-lg text-white\"\n (onClick)=\"onThreeDotsClick()\"\n />\n </div>\n </div>\n}\n\n<ng-template #toolbarContent>\n @if (searchable()) {\n <div class=\"relative flex-1 w-full sm:max-w-xs\">\n <xs-icon\n icon=\"search\"\n size=\"xs\"\n class=\"absolute left-2.5 top-1/2 -translate-y-1/2 text-zinc-400 pointer-events-none\"\n />\n <input\n type=\"text\"\n [value]=\"searchQuery()\"\n (input)=\"onSearchInput($any($event.target).value)\"\n (keyup.enter)=\"onSearchSubmit($any($event.target).value)\"\n [placeholder]=\"translate('TABLE.SEARCH')\"\n class=\"w-full h-8 pl-9 pr-3 text-xs bg-zinc-950 text-zinc-300 rounded-lg border border-zinc-800 outline-none focus:border-zinc-500 transition-colors placeholder-zinc-600\"\n [attr.aria-label]=\"translate('TABLE.SEARCH_ARIA')\"\n />\n </div>\n }\n <div class=\"flex items-center gap-3 flex-wrap\">\n @if (columnToggleable()) {\n <div class=\"relative\">\n <xs-button\n icon=\"columns\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"h-8 w-8 text-zinc-400 bg-zinc-950 rounded-lg border border-zinc-800 hover:border-zinc-600\"\n (onClick)=\"columnTogglerOpen.set(!columnTogglerOpen())\"\n [title]=\"translate('TABLE.SHOW_HIDE_COLUMNS')\"\n />\n @if (columnTogglerOpen()) {\n <div class=\"absolute top-full left-0 mt-1 z-50 min-w-[180px] bg-zinc-900 border border-zinc-700 rounded-xl p-2 shadow-2xl\">\n @for (h of safeHeaders(); track h.key) {\n <label class=\"flex items-center gap-2 px-2 py-1.5 rounded-lg hover:bg-zinc-800 cursor-pointer text-xs text-zinc-300\">\n <input\n type=\"checkbox\"\n [checked]=\"isColumnVisible(h.key)\"\n (change)=\"toggleColumn(h.key)\"\n class=\"accent-zinc-100\"\n />\n {{ h.name }}\n </label>\n }\n </div>\n }\n </div>\n }\n @if (copyable()) {\n <xs-button\n icon=\"copy\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"h-8 w-8 text-zinc-400 bg-zinc-950 rounded-lg border border-zinc-800 hover:border-zinc-600\"\n (onClick)=\"onCopyVisible()\"\n [title]=\"translate('TABLE.COPY_VISIBLE')\"\n />\n }\n @if (exportable()) {\n <xs-button\n icon=\"download\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"h-8 w-8 text-zinc-400 bg-zinc-950 rounded-lg border border-zinc-800 hover:border-zinc-600\"\n (onClick)=\"onExportCSV()\"\n [title]=\"translate('TABLE.EXPORT_CSV')\"\n />\n }\n @if (searchQuery() && filteredItems().length === 0) {\n <span class=\"text-[11px] text-zinc-400\">\n {{ translate('TABLE.ZERO_RESULTS') }}\n </span>\n }\n @for (btn of safeToolbarButtons(); track $index) {\n @if (!btn.hidden) {\n <xs-button\n [icon]=\"btn.icon\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"h-8 w-8 text-zinc-400 bg-zinc-950 rounded-lg border border-zinc-800 hover:border-zinc-600\"\n [ngClass]=\"{'!text-emerald-400': btn.active ?? false}\"\n (onClick)=\"btn.onClick()\"\n [title]=\"btn.label\"\n />\n }\n }\n @if (toolbarExtra(); as tmpl) {\n <ng-container [ngTemplateOutlet]=\"tmpl\" />\n }\n </div>\n</ng-template>\n\n<ng-template #tableContent>\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n [itemSize]=\"virtualScrollItemSize()\"\n class=\"w-full block\"\n [class.h-full]=\"sticky()\"\n [style.max-height.px]=\"sticky() ? null : 600\"\n tabindex=\"0\"\n >\n <table\n class=\"w-full whitespace-nowrap border-separate border-spacing-0\"\n [attr.aria-label]=\"translate('TABLE.ARIA_DATA_TABLE')\"\n >\n <caption class=\"sr-only\">{{ translate('TABLE.ARIA_TABLE_CAPTION') }}</caption>\n <thead class=\"sticky top-0 z-10\">\n <tr class=\"h-14 bg-zinc-900/80\">\n @if (showSelection()) {\n <th class=\"w-16 px-6 text-center\" [attr.aria-label]=\"translate('TABLE.PAGINATION.SELECT_ALL_ARIA')\">\n <xs-table-checkbox\n [checked]=\"allSelected()\"\n (checkedChange)=\"onToggleAll($event)\"\n />\n </th>\n }\n @for (header of processedHeaders(); track header.key) {\n @let isSorting = sortState().column === header.action;\n <th\n class=\"px-6 py-3 text-[11px] font-black text-left uppercase tracking-[0.2em] text-zinc-400 relative\"\n [style.minWidth.px]=\"columnWidths()[header.key]\"\n [style.maxWidth.px]=\"columnWidths()[header.key] ? columnWidths()[header.key] : null\"\n [attr.aria-sort]=\"\n header.action\n ? isSorting\n ? sortState().direction === 'asc' ? 'ascending' : 'descending'\n : 'none'\n : null\n \"\n [attr.draggable]=\"reorderable() ? true : null\"\n (dragstart)=\"reorderable() && onHeaderDragStart(header.key, $event)\"\n (dragover)=\"reorderable() && onHeaderDragOver($event)\"\n (drop)=\"reorderable() && onHeaderDrop(header.key, $event)\"\n >\n <div\n class=\"flex items-center gap-2 select-none group\"\n [class.cursor-pointer]=\"header.action\"\n (click)=\"toggleSort(header)\"\n (keydown.enter)=\"toggleSort(header)\"\n (keydown.space)=\"toggleSort(header); $event.preventDefault()\"\n [attr.tabindex]=\"header.action ? 0 : null\"\n [attr.role]=\"header.action ? 'button' : null\"\n [attr.aria-label]=\"header.action ? translate('TABLE.SORT_BY') + ' ' + translate(header.name) : null\"\n >\n @if (header.icon) {\n <xs-icon [icon]=\"header.icon\" size=\"xs\" class=\"text-zinc-600\" />\n }\n <span class=\"group-hover:text-zinc-200 transition-colors\">{{ translate(header.name) }}</span>\n @if (header.action) {\n <div class=\"flex flex-col text-[7px] gap-0.5 opacity-30\">\n <xs-icon icon=\"chevron-up\" [class.text-white]=\"isSorting && sortState().direction === 'asc'\" />\n <xs-icon icon=\"chevron-down\" [class.text-white]=\"isSorting && sortState().direction === 'desc'\" />\n </div>\n }\n </div>\n <div\n class=\"absolute right-0 top-0 bottom-0 w-1.5 cursor-col-resize hover:bg-zinc-400/30 transition-colors\"\n (mousedown)=\"onResizeStart(header.key, $event)\"\n ></div>\n </th>\n }\n @if (copyable()) {\n <th class=\"w-10 px-2 text-center text-[11px] font-black uppercase tracking-[0.2em] text-zinc-400\" [attr.aria-label]=\"translate('TABLE.ARIA_COPY_ROW')\">\n <xs-icon icon=\"clipboard\" size=\"xs\" />\n </th>\n }\n </tr>\n </thead>\n\n <tbody class=\"divide-y divide-zinc-800/40\">\n <ng-container *cdkVirtualFor=\"let item of renderedItems(); trackBy: trackById\">\n <ng-container [ngTemplateOutlet]=\"rowTmpl\" [ngTemplateOutletContext]=\"{$implicit: item}\" />\n </ng-container>\n @if (loadingMore()) {\n <tr>\n <td [attr.colspan]=\"colCount()\" class=\"text-center py-4\">\n <div class=\"flex items-center justify-center gap-2 text-xs text-zinc-400\">\n <div class=\"w-4 h-4 border-2 border-zinc-400 border-t-transparent rounded-full animate-spin\"></div>\n {{ translate('TABLE.LOADING_MORE') }}\n </div>\n </td>\n </tr>\n }\n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div class=\"overflow-x-auto\">\n <table\n class=\"min-w-full whitespace-nowrap border-separate border-spacing-0\"\n [attr.aria-label]=\"translate('TABLE.ARIA_DATA_TABLE')\"\n >\n <caption class=\"sr-only\">{{ translate('TABLE.ARIA_TABLE_CAPTION') }}</caption>\n <thead class=\"sticky top-0 z-10\">\n <tr class=\"h-14 bg-zinc-900/80\">\n @if (showSelection()) {\n <th class=\"w-16 px-6 text-center\" [attr.aria-label]=\"translate('TABLE.PAGINATION.SELECT_ALL_ARIA')\">\n <xs-table-checkbox\n [checked]=\"allSelected()\"\n (checkedChange)=\"onToggleAll($event)\"\n />\n </th>\n }\n @for (header of processedHeaders(); track header.key) {\n @let isSorting = sortState().column === header.action;\n <th\n class=\"px-6 py-3 text-[11px] font-black text-left uppercase tracking-[0.2em] text-zinc-400 relative\"\n [style.minWidth.px]=\"columnWidths()[header.key]\"\n [style.maxWidth.px]=\"columnWidths()[header.key] ? columnWidths()[header.key] : null\"\n [attr.aria-sort]=\"\n header.action\n ? isSorting\n ? sortState().direction === 'asc' ? 'ascending' : 'descending'\n : 'none'\n : null\n \"\n [attr.draggable]=\"reorderable() ? true : null\"\n (dragstart)=\"reorderable() && onHeaderDragStart(header.key, $event)\"\n (dragover)=\"reorderable() && onHeaderDragOver($event)\"\n (drop)=\"reorderable() && onHeaderDrop(header.key, $event)\"\n >\n <div\n class=\"flex items-center gap-2 select-none group\"\n [class.cursor-pointer]=\"header.action\"\n (click)=\"toggleSort(header)\"\n (keydown.enter)=\"toggleSort(header)\"\n (keydown.space)=\"toggleSort(header); $event.preventDefault()\"\n [attr.tabindex]=\"header.action ? 0 : null\"\n [attr.role]=\"header.action ? 'button' : null\"\n [attr.aria-label]=\"header.action ? translate('TABLE.SORT_BY') + ' ' + translate(header.name) : null\"\n >\n @if (header.icon) {\n <xs-icon [icon]=\"header.icon\" size=\"xs\" class=\"text-zinc-600\" />\n }\n <span class=\"group-hover:text-zinc-200 transition-colors\">{{ translate(header.name) }}</span>\n @if (header.action) {\n <div class=\"flex flex-col text-[7px] gap-0.5 opacity-30\">\n <xs-icon icon=\"chevron-up\" [class.text-white]=\"isSorting && sortState().direction === 'asc'\" />\n <xs-icon icon=\"chevron-down\" [class.text-white]=\"isSorting && sortState().direction === 'desc'\" />\n </div>\n }\n </div>\n <div\n class=\"absolute right-0 top-0 bottom-0 w-1.5 cursor-col-resize hover:bg-zinc-400/30 transition-colors\"\n (mousedown)=\"onResizeStart(header.key, $event)\"\n ></div>\n </th>\n }\n @if (copyable()) {\n <th class=\"w-10 px-2 text-center text-[11px] font-black uppercase tracking-[0.2em] text-zinc-400\" [attr.aria-label]=\"translate('TABLE.ARIA_COPY_ROW')\">\n <xs-icon icon=\"clipboard\" size=\"xs\" />\n </th>\n }\n </tr>\n </thead>\n\n <tbody class=\"divide-y divide-zinc-800/40\">\n @for (item of renderedItems(); track trackById($index, item)) {\n <ng-container [ngTemplateOutlet]=\"rowTmpl\" [ngTemplateOutletContext]=\"{$implicit: item}\" />\n }\n @if (loadingMore()) {\n <tr>\n <td [attr.colspan]=\"colCount()\" class=\"text-center py-4\">\n <div class=\"flex items-center justify-center gap-2 text-xs text-zinc-400\">\n <div class=\"w-4 h-4 border-2 border-zinc-400 border-t-transparent rounded-full animate-spin\"></div>\n {{ translate('TABLE.LOADING_MORE') }}\n </div>\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n</ng-template>\n\n<ng-template #rowTmpl let-item>\n <tr\n class=\"h-16 group hover:bg-white/[0.02] transition-all duration-200\"\n [class.cursor-pointer]=\"hasActions()\"\n [attr.aria-selected]=\"showSelection() ? selectedSet().has(getItemId(item)) : null\"\n [attr.tabindex]=\"hasActions() ? 0 : null\"\n (click)=\"onRowClick(item)\"\n (keydown.enter)=\"onRowClick(item)\"\n (keydown.space)=\"onRowClick(item); $event.preventDefault()\"\n >\n @if (showSelection()) {\n <td class=\"px-6 text-center\" (click)=\"$event.stopPropagation()\">\n <xs-table-checkbox\n [checked]=\"selectedSet().has(getItemId(item))\"\n (checkedChange)=\"onToggleItem(item)\"\n />\n </td>\n }\n\n @for (header of processedHeaders(); track header.key) {\n <td\n class=\"px-6 py-3 text-sm text-zinc-400 group-hover:text-zinc-100 transition-colors\"\n [style.minWidth.px]=\"columnWidths()[header.key]\"\n [style.maxWidth.px]=\"columnWidths()[header.key] ? columnWidths()[header.key] : null\"\n [attr.aria-label]=\"translate(header.name) + ': ' + cellLabel(item, header)\"\n >\n @let colTemplates = columnTemplates();\n @if (colTemplates[header.key]; as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"getCellContext(item, header, $index)\"\n />\n } @else if (cellTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"getCellContext(item, header, $index)\"\n />\n } @else {\n <xs-table-items\n [header]=\"header\"\n [item]=\"item\"\n [type]=\"type()\"\n [subType]=\"subType()\"\n [admin]=\"admin()\"\n [filters]=\"filters()\"\n />\n }\n </td>\n }\n\n @if (copyable()) {\n <td class=\"px-2 py-3 w-10 text-center\">\n <xs-button\n icon=\"clipboard\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"p-1.5 rounded-lg hover:bg-zinc-800 text-zinc-600 hover:text-zinc-300\"\n (onClick)=\"$event.stopPropagation(); onCopyRowJson(item)\"\n [title]=\"translate('TABLE.COPY_JSON')\"\n />\n </td>\n }\n </tr>\n\n @if (expandable() && expandedItemId() === getItemId(item)) {\n <tr class=\"bg-zinc-900/30\">\n <td [attr.colspan]=\"colCount()\" class=\"px-6 py-4\">\n @if (expandedContent(); as tmpl) {\n <ng-container\n [ngTemplateOutlet]=\"tmpl\"\n [ngTemplateOutletContext]=\"{$implicit: item}\"\n />\n } @else {\n <div class=\"text-zinc-400 text-xs text-center\">{{ translate('TABLE.NO_EXPANDED_CONTENT') }}</div>\n }\n </td>\n </tr>\n }\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: XSEmptyStateComponent, selector: "xs-empty-state", inputs: ["config", "regionAriaLabel"], outputs: ["actionClick"] }, { kind: "component", type: XSTableItemsComponent, selector: "xs-table-items", inputs: ["type", "subType", "header", "item", "admin", "filters"] }, { kind: "component", type: XSTableCheckboxComponent, selector: "xs-table-checkbox", inputs: ["checked"], outputs: ["checkedChange"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i2$1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i2$1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i2$1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
19659
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSTableComponent, isStandalone: true, selector: "xs-table", inputs: { headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, emptyTitle: { classPropertyName: "emptyTitle", publicName: "emptyTitle", isSignal: true, isRequired: false, transformFunction: null }, actionButtons: { classPropertyName: "actionButtons", publicName: "actionButtons", isSignal: true, isRequired: false, transformFunction: null }, selectedButtons: { classPropertyName: "selectedButtons", publicName: "selectedButtons", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, subType: { classPropertyName: "subType", publicName: "subType", isSignal: true, isRequired: false, transformFunction: null }, admin: { classPropertyName: "admin", publicName: "admin", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, serverPagination: { classPropertyName: "serverPagination", publicName: "serverPagination", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, loadingMore: { classPropertyName: "loadingMore", publicName: "loadingMore", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, exportable: { classPropertyName: "exportable", publicName: "exportable", isSignal: true, isRequired: false, transformFunction: null }, exportFilename: { classPropertyName: "exportFilename", publicName: "exportFilename", isSignal: true, isRequired: false, transformFunction: null }, copyable: { classPropertyName: "copyable", publicName: "copyable", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, refreshable: { classPropertyName: "refreshable", publicName: "refreshable", isSignal: true, isRequired: false, transformFunction: null }, toolbarButtons: { classPropertyName: "toolbarButtons", publicName: "toolbarButtons", isSignal: true, isRequired: false, transformFunction: null }, searchQuery: { classPropertyName: "searchQuery", publicName: "searchQuery", isSignal: true, isRequired: false, transformFunction: null }, columnToggleable: { classPropertyName: "columnToggleable", publicName: "columnToggleable", isSignal: true, isRequired: false, transformFunction: null }, reorderable: { classPropertyName: "reorderable", publicName: "reorderable", isSignal: true, isRequired: false, transformFunction: null }, storageKey: { classPropertyName: "storageKey", publicName: "storageKey", isSignal: true, isRequired: false, transformFunction: null }, idKey: { classPropertyName: "idKey", publicName: "idKey", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, containerHeight: { classPropertyName: "containerHeight", publicName: "containerHeight", isSignal: true, isRequired: false, transformFunction: null }, columnTemplates: { classPropertyName: "columnTemplates", publicName: "columnTemplates", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { refresh: "refresh", searchQuery: "searchQueryChange", page: "pageChange", pageSize: "pageSizeChange", rowClick: "rowClick", selectionChange: "selectionChange", selectedAction: "selectedAction", sortChange: "sortChange", searchQuerySubmit: "searchQuerySubmit" }, host: { properties: { "style.display": "\"block\"" } }, queries: [{ propertyName: "cellTemplate", first: true, predicate: ["xsCell"], descendants: true, isSignal: true }, { propertyName: "expandedContent", first: true, predicate: ["xsExpandedRow"], descendants: true, isSignal: true }, { propertyName: "toolbarExtra", first: true, predicate: ["toolbarExtra"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (!sticky() && showToolbar() && (items().length > 0 || searchQuery() || toolbarButtons().length > 0 || searchable())) {\n <div class=\"flex flex-col sm:flex-row items-stretch sm:items-center gap-3 px-4 py-2 mb-2 rounded-xl bg-zinc-900/50 border border-white/[0.02]\">\n <ng-container [ngTemplateOutlet]=\"toolbarContent\" />\n </div>\n}\n\n@if (sticky()) {\n <div class=\"flex flex-col overflow-hidden rounded-xl bg-zinc-900/50 shadow-2xl border border-white/[0.02]\"\n [style.height]=\"containerHeight()\">\n @if (showToolbar() && (items().length > 0 || searchQuery() || toolbarButtons().length > 0 || searchable())) {\n <div class=\"flex-shrink-0 border-b border-zinc-800/40 px-4 py-2\">\n <div class=\"flex flex-col sm:flex-row items-stretch sm:items-center gap-3\">\n <ng-container [ngTemplateOutlet]=\"toolbarContent\" />\n </div>\n </div>\n }\n @if (!loading() && filteredItems().length > 0) {\n <div class=\"flex-1 overflow-y-auto min-h-0\">\n <ng-container [ngTemplateOutlet]=\"tableContent\" />\n </div>\n @if (showPagination()) {\n <div class=\"flex-shrink-0 border-t border-zinc-800/40 px-3 py-2\"\n role=\"navigation\"\n [attr.aria-label]=\"translate('TABLE.PAGINATION.ARIA_LABEL')\">\n <div class=\"flex flex-col sm:flex-row items-center justify-between gap-2\">\n <div class=\"flex items-center gap-2\">\n <div class=\"relative group\">\n <select\n [value]=\"pageSize()\"\n (change)=\"onPageSizeChange($any($event.target).value)\"\n class=\"h-9 min-w-[110px] bg-zinc-950 bg-none text-zinc-300 text-[11px] font-black rounded-lg pl-3 pr-8 outline-none border border-zinc-800 appearance-none cursor-pointer hover:border-zinc-600 transition-all focus:border-zinc-400\"\n [attr.aria-label]=\"translate('TABLE.PAGINATION.PAGE_SIZE_LABEL')\">\n @for (size of safePageSizeOptions(); track size) {\n <option [value]=\"size\">{{ size + ' ' + translate('TABLE.PAGINATION.ITEMS') }}</option>\n }\n </select>\n <xs-icon icon=\"chevron-down\" size=\"xs\" class=\"absolute right-2 top-1/2 -translate-y-1/2 text-zinc-600 pointer-events-none\" />\n </div>\n <div class=\"h-5 w-px bg-zinc-800/50\"></div>\n <div class=\"flex items-center bg-zinc-950 border border-zinc-800 rounded-lg h-9 px-3 focus-within:border-zinc-400 transition-all\">\n <label [for]=\"uid\" class=\"text-[8px] font-black text-zinc-400 uppercase mr-2\">{{ translate('TABLE.GO_TO') }}</label>\n <input [id]=\"uid\" type=\"number\" [value]=\"page()\"\n (input)=\"onJumpPageInput($event)\" (keyup.enter)=\"onJumpPage($any($event))\" (blur)=\"onJumpPage($any($event))\"\n class=\"w-7 bg-transparent border-none text-[11px] text-white font-black outline-none [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none\" />\n </div>\n </div>\n <div class=\"flex items-center gap-3\">\n <span class=\"text-[9px] font-black text-zinc-400 uppercase tracking-[0.2em]\"\n aria-live=\"polite\" aria-atomic=\"true\">\n {{ translate('TABLE.PAGE') }} <span class=\"text-white\" aria-current=\"page\">{{ page() }}</span>\n <span class=\"text-zinc-800\">/</span> {{ totalPages() }}\n </span>\n <div class=\"flex items-center gap-0.5\">\n <xs-button\n icon=\"chevron-left\"\n [disabled]=\"page() <= 1\"\n (onClick)=\"onPageChange(page() - 1)\"\n variant=\"secondary\"\n layout=\"iconOnly\"\n customClass=\"h-8 w-8\"\n [ariaLabel]=\"translate('TABLE.PREV_PAGE')\"\n />\n <xs-button\n icon=\"chevron-right\"\n [disabled]=\"page() >= totalPages()\"\n (onClick)=\"onPageChange(page() + 1)\"\n variant=\"secondary\"\n layout=\"iconOnly\"\n customClass=\"h-8 w-8\"\n [ariaLabel]=\"translate('TABLE.NEXT_PAGE')\"\n />\n </div>\n </div>\n </div>\n </div>\n }\n } @else if (!loading() && searchQuery()) {\n <div class=\"flex-1 min-h-0 p-10 flex flex-col justify-center items-center gap-3 border border-dashed border-zinc-800/40 rounded-xl m-4 bg-zinc-900/30\">\n <xs-icon icon=\"search\" size=\"lg\" class=\"text-zinc-600\" />\n <span class=\"text-zinc-400 text-sm font-medium\">\n {{ translate('TABLE.NO_RESULTS') }}\n <span class=\"text-zinc-300 font-bold\">\"{{ searchQuery() }}\"</span>\n </span>\n <xs-button\n (onClick)=\"clearSearch()\"\n [label]=\"translate('TABLE.CLEAR_SEARCH')\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-xs text-zinc-400 hover:text-zinc-300 underline\"\n />\n </div>\n } @else if (loading()) {\n <div class=\"flex-1 min-h-0 p-4 space-y-3\">\n @for (i of [1, 2, 3, 4, 5]; track $index) {\n <div class=\"h-14 w-full bg-zinc-800/20 rounded-lg animate-pulse\"></div>\n }\n </div>\n } @else {\n <div class=\"flex-1 min-h-0 p-6\">\n <xs-empty-state [config]=\"getEmptyStateConfig()\" />\n </div>\n }\n </div>\n} @else {\n @if (!loading() && filteredItems().length > 0) {\n <div class=\"my-2 rounded-xl bg-zinc-900/50 shadow-2xl border border-white/[0.02]\">\n <ng-container [ngTemplateOutlet]=\"tableContent\" />\n </div>\n\n @if (showPagination()) {\n <div class=\"flex flex-col sm:flex-row items-center justify-between gap-4 p-4 bg-zinc-900/50 rounded-xl mt-4 border border-white/[0.03]\"\n role=\"navigation\"\n [attr.aria-label]=\"translate('TABLE.PAGINATION.ARIA_LABEL')\">\n <div class=\"flex items-center gap-4\">\n <div class=\"relative group\">\n <select\n [value]=\"pageSize()\"\n (change)=\"onPageSizeChange($any($event.target).value)\"\n class=\"h-9 min-w-[110px] bg-zinc-950 text-zinc-300 text-[11px] font-black rounded-lg pl-3 pr-8 outline-none border border-zinc-800 appearance-none cursor-pointer hover:border-zinc-600 transition-all focus:border-zinc-400\"\n [attr.aria-label]=\"translate('TABLE.PAGINATION.PAGE_SIZE_LABEL')\">\n @for (size of safePageSizeOptions(); track size) {\n <option [value]=\"size\">{{ size + ' ' + translate('TABLE.PAGINATION.ITEMS') }}</option>\n }\n </select>\n <xs-icon icon=\"chevron-down\" size=\"xs\" class=\"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-600 pointer-events-none\" />\n </div>\n <div class=\"h-6 w-px bg-zinc-800/50 mx-1\"></div>\n <div class=\"flex items-center bg-zinc-950 border border-zinc-800 rounded-lg h-9 px-3 focus-within:border-zinc-400 transition-all\">\n <label [for]=\"uid\" class=\"text-[9px] font-black text-zinc-400 uppercase mr-3\">{{ translate('TABLE.GO_TO') }}</label>\n <input [id]=\"uid\" type=\"number\" [value]=\"page()\"\n (input)=\"onJumpPageInput($event)\" (keyup.enter)=\"onJumpPage($any($event))\" (blur)=\"onJumpPage($any($event))\"\n class=\"w-8 bg-transparent border-none text-xs text-white font-black outline-none [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none\" />\n </div>\n </div>\n <div class=\"flex items-center gap-6\">\n <span class=\"text-[10px] font-black text-zinc-400 uppercase tracking-[0.2em]\"\n aria-live=\"polite\" aria-atomic=\"true\">\n {{ translate('TABLE.PAGE') }} <span class=\"text-white\" aria-current=\"page\">{{ page() }}</span>\n <span class=\"text-zinc-800\">/</span> {{ totalPages() }}\n </span>\n <div class=\"flex items-center gap-2\">\n <xs-button\n icon=\"chevron-left\"\n [disabled]=\"page() <= 1\"\n (onClick)=\"onPageChange(page() - 1)\"\n variant=\"secondary\"\n [ariaLabel]=\"translate('TABLE.PREV_PAGE')\"\n />\n <xs-button\n icon=\"chevron-right\"\n [disabled]=\"page() >= totalPages()\"\n (onClick)=\"onPageChange(page() + 1)\"\n variant=\"secondary\"\n [ariaLabel]=\"translate('TABLE.NEXT_PAGE')\"\n />\n </div>\n </div>\n </div>\n }\n } @else if (!loading() && searchQuery()) {\n <div class=\"mt-4 bg-zinc-900/30 rounded-xl p-14 flex flex-col justify-center items-center gap-3 border border-dashed border-zinc-800/40\">\n <xs-icon icon=\"search\" size=\"lg\" class=\"text-zinc-600\" />\n <span class=\"text-zinc-400 text-sm font-medium\">\n {{ translate('TABLE.NO_RESULTS') }}\n <span class=\"text-zinc-300 font-bold\">\"{{ searchQuery() }}\"</span>\n </span>\n <xs-button\n (onClick)=\"clearSearch()\"\n [label]=\"translate('TABLE.CLEAR_SEARCH')\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-xs text-zinc-400 hover:text-zinc-300 underline\"\n />\n </div>\n } @else if (loading()) {\n <div class=\"p-4 space-y-3 bg-zinc-900/30 rounded-xl\">\n @for (i of [1, 2, 3, 4, 5]; track $index) {\n <div class=\"h-14 w-full bg-zinc-800/20 rounded-lg animate-pulse\"></div>\n }\n </div>\n } @else {\n <div class=\"mt-4\">\n <xs-empty-state [config]=\"getEmptyStateConfig()\" />\n </div>\n }\n}\n\n@if (selectedSet().size > 0 && safeSelectedButtons().length > 0) {\n <div class=\"fixed bottom-6 left-1/2 -translate-x-1/2 z-30\" aria-live=\"polite\" role=\"status\">\n <div class=\"flex items-center gap-4 px-4 py-2 rounded-xl bg-zinc-900 border border-zinc-800 shadow-2xl animate-in slide-in-from-bottom-4\">\n <span class=\"text-sm font-medium text-white\">\n <span class=\"px-2 py-0.5 rounded bg-zinc-100 text-zinc-950 text-xs font-bold mr-2\">\n {{ selectedSet().size }}\n </span>\n {{ translate('TABLE.SELECTED') }}\n </span>\n <xs-button\n icon=\"ellipsis-vertical\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"p-2 hover:bg-zinc-800 rounded-lg text-white\"\n (onClick)=\"onThreeDotsClick()\"\n />\n </div>\n </div>\n}\n\n<ng-template #toolbarContent>\n @if (searchable()) {\n <div class=\"relative flex-1 w-full sm:max-w-xs\">\n <xs-icon\n icon=\"search\"\n size=\"xs\"\n class=\"absolute left-2.5 top-1/2 -translate-y-1/2 text-zinc-400 pointer-events-none\"\n />\n <input\n type=\"text\"\n [value]=\"searchQuery()\"\n (input)=\"onSearchInput($any($event.target).value)\"\n (keyup.enter)=\"onSearchSubmit($any($event.target).value)\"\n [placeholder]=\"translate('TABLE.SEARCH')\"\n class=\"w-full h-8 pl-9 pr-3 text-xs bg-zinc-950 text-zinc-300 rounded-lg border border-zinc-800 outline-none focus:border-zinc-500 transition-colors placeholder-zinc-600\"\n [attr.aria-label]=\"translate('TABLE.SEARCH_ARIA')\"\n />\n </div>\n }\n <div class=\"flex items-center gap-3 flex-wrap\">\n @if (columnToggleable()) {\n <div class=\"relative\">\n <xs-button\n icon=\"columns\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"h-8 w-8 text-zinc-400 bg-zinc-950 rounded-lg border border-zinc-800 hover:border-zinc-600\"\n (onClick)=\"columnTogglerOpen.set(!columnTogglerOpen())\"\n [title]=\"translate('TABLE.SHOW_HIDE_COLUMNS')\"\n />\n @if (columnTogglerOpen()) {\n <div class=\"absolute top-full left-0 mt-1 z-50 min-w-[180px] bg-zinc-900 border border-zinc-700 rounded-xl p-2 shadow-2xl\">\n @for (h of safeHeaders(); track h.key) {\n <label class=\"flex items-center gap-2 px-2 py-1.5 rounded-lg hover:bg-zinc-800 cursor-pointer text-xs text-zinc-300\">\n <input\n type=\"checkbox\"\n [checked]=\"isColumnVisible(h.key)\"\n (change)=\"toggleColumn(h.key)\"\n class=\"accent-zinc-100\"\n />\n {{ h.name }}\n </label>\n }\n </div>\n }\n </div>\n }\n @if (copyable()) {\n <xs-button\n icon=\"copy\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"h-8 w-8 text-zinc-400 bg-zinc-950 rounded-lg border border-zinc-800 hover:border-zinc-600\"\n (onClick)=\"onCopyVisible()\"\n [title]=\"translate('TABLE.COPY_VISIBLE')\"\n />\n }\n @if (exportable()) {\n <xs-button\n icon=\"download\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"h-8 w-8 text-zinc-400 bg-zinc-950 rounded-lg border border-zinc-800 hover:border-zinc-600\"\n (onClick)=\"onExportCSV()\"\n [title]=\"translate('TABLE.EXPORT_CSV')\"\n />\n }\n @if (searchQuery() && filteredItems().length === 0) {\n <span class=\"text-[11px] text-zinc-400\">\n {{ translate('TABLE.ZERO_RESULTS') }}\n </span>\n }\n @for (btn of safeToolbarButtons(); track $index) {\n @if (!btn.hidden) {\n <xs-button\n [icon]=\"btn.icon\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"h-8 w-8 text-zinc-400 bg-zinc-950 rounded-lg border border-zinc-800 hover:border-zinc-600\"\n [ngClass]=\"{'!text-emerald-400': btn.active ?? false}\"\n (onClick)=\"btn.onClick()\"\n [title]=\"btn.label\"\n />\n }\n }\n @if (toolbarExtra(); as tmpl) {\n <ng-container [ngTemplateOutlet]=\"tmpl\" />\n }\n </div>\n</ng-template>\n\n<ng-template #tableContent>\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n [itemSize]=\"virtualScrollItemSize()\"\n class=\"w-full block\"\n [class.h-full]=\"sticky()\"\n [style.max-height.px]=\"sticky() ? null : 600\"\n tabindex=\"0\"\n >\n <table\n class=\"w-full whitespace-nowrap border-separate border-spacing-0\"\n [attr.aria-label]=\"translate('TABLE.ARIA_DATA_TABLE')\"\n >\n <caption class=\"sr-only\">{{ translate('TABLE.ARIA_TABLE_CAPTION') }}</caption>\n <thead class=\"sticky top-0 z-10\">\n <tr class=\"h-14 bg-zinc-900/80\">\n @if (showSelection()) {\n <th class=\"w-16 px-6 text-center\" [attr.aria-label]=\"translate('TABLE.PAGINATION.SELECT_ALL_ARIA')\">\n <xs-table-checkbox\n [checked]=\"allSelected()\"\n (checkedChange)=\"onToggleAll($event)\"\n />\n </th>\n }\n @for (header of processedHeaders(); track header.key) {\n @let isSorting = sortState().column === header.action;\n <th\n class=\"px-6 py-3 text-[11px] font-black text-left uppercase tracking-[0.2em] text-zinc-400 relative\"\n [style.minWidth.px]=\"columnWidths()[header.key]\"\n [style.maxWidth.px]=\"columnWidths()[header.key] ? columnWidths()[header.key] : null\"\n [attr.aria-sort]=\"\n header.action\n ? isSorting\n ? sortState().direction === 'asc' ? 'ascending' : 'descending'\n : 'none'\n : null\n \"\n [attr.draggable]=\"reorderable() ? true : null\"\n (dragstart)=\"reorderable() && onHeaderDragStart(header.key, $event)\"\n (dragover)=\"reorderable() && onHeaderDragOver($event)\"\n (drop)=\"reorderable() && onHeaderDrop(header.key, $event)\"\n >\n <div\n class=\"flex items-center gap-2 select-none group\"\n [class.cursor-pointer]=\"header.action\"\n (click)=\"toggleSort(header)\"\n (keydown.enter)=\"toggleSort(header)\"\n (keydown.space)=\"toggleSort(header); $event.preventDefault()\"\n [attr.tabindex]=\"header.action ? 0 : null\"\n [attr.role]=\"header.action ? 'button' : null\"\n [attr.aria-label]=\"header.action ? translate('TABLE.SORT_BY') + ' ' + translate(header.name) : null\"\n >\n @if (header.icon) {\n <xs-icon [icon]=\"header.icon\" size=\"xs\" class=\"text-zinc-600\" />\n }\n <span class=\"group-hover:text-zinc-200 transition-colors\">{{ translate(header.name) }}</span>\n @if (header.action) {\n <div class=\"flex flex-col text-[7px] gap-0.5 opacity-30\">\n <xs-icon icon=\"chevron-up\" [class.text-white]=\"isSorting && sortState().direction === 'asc'\" />\n <xs-icon icon=\"chevron-down\" [class.text-white]=\"isSorting && sortState().direction === 'desc'\" />\n </div>\n }\n </div>\n <div\n class=\"absolute right-0 top-0 bottom-0 w-1.5 cursor-col-resize hover:bg-zinc-400/30 transition-colors\"\n (mousedown)=\"onResizeStart(header.key, $event)\"\n ></div>\n </th>\n }\n @if (copyable()) {\n <th class=\"w-10 px-2 text-center text-[11px] font-black uppercase tracking-[0.2em] text-zinc-400\" [attr.aria-label]=\"translate('TABLE.ARIA_COPY_ROW')\">\n <xs-icon icon=\"clipboard\" size=\"xs\" />\n </th>\n }\n </tr>\n </thead>\n\n <tbody class=\"divide-y divide-zinc-800/40\">\n <ng-container *cdkVirtualFor=\"let item of renderedItems(); trackBy: trackById\">\n <ng-container [ngTemplateOutlet]=\"rowTmpl\" [ngTemplateOutletContext]=\"{$implicit: item}\" />\n </ng-container>\n @if (loadingMore()) {\n <tr>\n <td [attr.colspan]=\"colCount()\" class=\"text-center py-4\">\n <div class=\"flex items-center justify-center gap-2 text-xs text-zinc-400\">\n <div class=\"w-4 h-4 border-2 border-zinc-400 border-t-transparent rounded-full animate-spin\"></div>\n {{ translate('TABLE.LOADING_MORE') }}\n </div>\n </td>\n </tr>\n }\n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div class=\"overflow-x-auto\">\n <table\n class=\"min-w-full whitespace-nowrap border-separate border-spacing-0\"\n [attr.aria-label]=\"translate('TABLE.ARIA_DATA_TABLE')\"\n >\n <caption class=\"sr-only\">{{ translate('TABLE.ARIA_TABLE_CAPTION') }}</caption>\n <thead class=\"sticky top-0 z-10\">\n <tr class=\"h-14 bg-zinc-900/80\">\n @if (showSelection()) {\n <th class=\"w-16 px-6 text-center\" [attr.aria-label]=\"translate('TABLE.PAGINATION.SELECT_ALL_ARIA')\">\n <xs-table-checkbox\n [checked]=\"allSelected()\"\n (checkedChange)=\"onToggleAll($event)\"\n />\n </th>\n }\n @for (header of processedHeaders(); track header.key) {\n @let isSorting = sortState().column === header.action;\n <th\n class=\"px-6 py-3 text-[11px] font-black text-left uppercase tracking-[0.2em] text-zinc-400 relative\"\n [style.minWidth.px]=\"columnWidths()[header.key]\"\n [style.maxWidth.px]=\"columnWidths()[header.key] ? columnWidths()[header.key] : null\"\n [attr.aria-sort]=\"\n header.action\n ? isSorting\n ? sortState().direction === 'asc' ? 'ascending' : 'descending'\n : 'none'\n : null\n \"\n [attr.draggable]=\"reorderable() ? true : null\"\n (dragstart)=\"reorderable() && onHeaderDragStart(header.key, $event)\"\n (dragover)=\"reorderable() && onHeaderDragOver($event)\"\n (drop)=\"reorderable() && onHeaderDrop(header.key, $event)\"\n >\n <div\n class=\"flex items-center gap-2 select-none group\"\n [class.cursor-pointer]=\"header.action\"\n (click)=\"toggleSort(header)\"\n (keydown.enter)=\"toggleSort(header)\"\n (keydown.space)=\"toggleSort(header); $event.preventDefault()\"\n [attr.tabindex]=\"header.action ? 0 : null\"\n [attr.role]=\"header.action ? 'button' : null\"\n [attr.aria-label]=\"header.action ? translate('TABLE.SORT_BY') + ' ' + translate(header.name) : null\"\n >\n @if (header.icon) {\n <xs-icon [icon]=\"header.icon\" size=\"xs\" class=\"text-zinc-600\" />\n }\n <span class=\"group-hover:text-zinc-200 transition-colors\">{{ translate(header.name) }}</span>\n @if (header.action) {\n <div class=\"flex flex-col text-[7px] gap-0.5 opacity-30\">\n <xs-icon icon=\"chevron-up\" [class.text-white]=\"isSorting && sortState().direction === 'asc'\" />\n <xs-icon icon=\"chevron-down\" [class.text-white]=\"isSorting && sortState().direction === 'desc'\" />\n </div>\n }\n </div>\n <div\n class=\"absolute right-0 top-0 bottom-0 w-1.5 cursor-col-resize hover:bg-zinc-400/30 transition-colors\"\n (mousedown)=\"onResizeStart(header.key, $event)\"\n ></div>\n </th>\n }\n @if (copyable()) {\n <th class=\"w-10 px-2 text-center text-[11px] font-black uppercase tracking-[0.2em] text-zinc-400\" [attr.aria-label]=\"translate('TABLE.ARIA_COPY_ROW')\">\n <xs-icon icon=\"clipboard\" size=\"xs\" />\n </th>\n }\n </tr>\n </thead>\n\n <tbody class=\"divide-y divide-zinc-800/40\">\n @for (item of renderedItems(); track trackById($index, item)) {\n <ng-container [ngTemplateOutlet]=\"rowTmpl\" [ngTemplateOutletContext]=\"{$implicit: item}\" />\n }\n @if (loadingMore()) {\n <tr>\n <td [attr.colspan]=\"colCount()\" class=\"text-center py-4\">\n <div class=\"flex items-center justify-center gap-2 text-xs text-zinc-400\">\n <div class=\"w-4 h-4 border-2 border-zinc-400 border-t-transparent rounded-full animate-spin\"></div>\n {{ translate('TABLE.LOADING_MORE') }}\n </div>\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n</ng-template>\n\n<ng-template #rowTmpl let-item>\n <tr\n class=\"h-16 group hover:bg-white/[0.02] transition-all duration-200\"\n [class.cursor-pointer]=\"hasActions()\"\n [attr.aria-selected]=\"showSelection() ? selectedSet().has(getItemId(item)) : null\"\n [attr.tabindex]=\"hasActions() ? 0 : null\"\n (click)=\"onRowClick(item)\"\n (keydown.enter)=\"onRowClick(item)\"\n (keydown.space)=\"onRowClick(item); $event.preventDefault()\"\n >\n @if (showSelection()) {\n <td class=\"px-6 text-center\" (click)=\"$event.stopPropagation()\">\n <xs-table-checkbox\n [checked]=\"selectedSet().has(getItemId(item))\"\n (checkedChange)=\"onToggleItem(item)\"\n />\n </td>\n }\n\n @for (header of processedHeaders(); track header.key) {\n <td\n class=\"px-6 py-3 text-sm text-zinc-400 group-hover:text-zinc-100 transition-colors\"\n [style.minWidth.px]=\"columnWidths()[header.key]\"\n [style.maxWidth.px]=\"columnWidths()[header.key] ? columnWidths()[header.key] : null\"\n [attr.aria-label]=\"translate(header.name) + ': ' + cellLabel(item, header)\"\n >\n @let colTemplates = columnTemplates();\n @if (colTemplates[header.key]; as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"getCellContext(item, header, $index)\"\n />\n } @else if (cellTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"getCellContext(item, header, $index)\"\n />\n } @else {\n <xs-table-items\n [header]=\"header\"\n [item]=\"item\"\n [type]=\"type()\"\n [subType]=\"subType()\"\n [admin]=\"admin()\"\n [filters]=\"filters()\"\n />\n }\n </td>\n }\n\n @if (copyable()) {\n <td class=\"px-2 py-3 w-10 text-center\">\n <xs-button\n icon=\"clipboard\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"p-1.5 rounded-lg hover:bg-zinc-800 text-zinc-600 hover:text-zinc-300\"\n (onClick)=\"$event.stopPropagation(); onCopyRowJson(item)\"\n [title]=\"translate('TABLE.COPY_JSON')\"\n />\n </td>\n }\n </tr>\n\n @if (expandable() && expandedItemId() === getItemId(item)) {\n <tr class=\"bg-zinc-900/30\">\n <td [attr.colspan]=\"colCount()\" class=\"px-6 py-4\">\n @if (expandedContent(); as tmpl) {\n <ng-container\n [ngTemplateOutlet]=\"tmpl\"\n [ngTemplateOutletContext]=\"{$implicit: item}\"\n />\n } @else {\n <div class=\"text-zinc-400 text-xs text-center\">{{ translate('TABLE.NO_EXPANDED_CONTENT') }}</div>\n }\n </td>\n </tr>\n }\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: XSEmptyStateComponent, selector: "xs-empty-state", inputs: ["config", "regionAriaLabel"], outputs: ["actionClick"] }, { kind: "component", type: XSTableItemsComponent, selector: "xs-table-items", inputs: ["type", "subType", "header", "item", "admin", "filters"] }, { kind: "component", type: XSTableCheckboxComponent, selector: "xs-table-checkbox", inputs: ["checked"], outputs: ["checkedChange"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i2.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i2.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i2.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
19660
19660
  }
19661
19661
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSTableComponent, decorators: [{
19662
19662
  type: Component,
@@ -22282,7 +22282,7 @@ class XSProfileCommentsComponent {
22282
22282
  this.loadingReplies.set(next);
22283
22283
  }
22284
22284
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSProfileCommentsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22285
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSProfileCommentsComponent, isStandalone: true, selector: "xs-profile-comments", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, subtype: { classPropertyName: "subtype", publicName: "subtype", isSignal: true, isRequired: false, transformFunction: null }, comments: { classPropertyName: "comments", publicName: "comments", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, likedIds: { classPropertyName: "likedIds", publicName: "likedIds", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { submitComment: "submitComment", submitReplyEvent: "submitReplyEvent", loginRequired: "loginRequired", loadReplies: "loadReplies", likeCommentEvent: "likeCommentEvent", userClick: "userClick" }, host: { attributes: { "xs-profile-comments-host": "" } }, ngImport: i0, template: "@if (!loading()) {\n <section class=\"flex flex-col gap-1 mt-2\">\n <form class=\"flex flex-col\" (ngSubmit)=\"submit()\">\n <div class=\"mb-0.5\">\n <textarea\n id=\"comment-textarea\"\n name=\"comment\"\n [ngModel]=\"valueState()\"\n (ngModelChange)=\"valueState.set($event)\"\n rows=\"3\"\n class=\"rounded-xl input normal-case\"\n [placeholder]=\"\n i18nTexts()['WRITE_COMMENT']\n \"\n required\n ></textarea>\n </div>\n\n <div class=\"mb-1\">\n <xs-button\n type=\"submit\"\n [id]=\"'profileCommentsSubmit'\"\n [layout]=\"'between'\"\n [isFull]=\"true\"\n [label]=\"\n user() && user()?._id\n ? i18nTexts()['SEND_COMMENT']\n : i18nTexts()['LOGIN']\n \"\n [icon]=\"{ name: 'paper-plane' }\"\n >\n </xs-button>\n </div>\n </form>\n\n @if (filteredComments.length > 0) {\n <div class=\"flex flex-col gap-2 mb-1\">\n @for (comment of filteredComments; track $index; let i = $index) {\n @let c = $any(comment);\n @if (c.user?.name) {\n <article\n class=\"p-4 text-base rounded-xl bg-zinc-900/50\"\n >\n <footer\n class=\"flex items-start justify-between mb-2\"\n >\n <div class=\"flex items-center\">\n <button\n type=\"button\"\n class=\"flex items-center text-left cursor-pointer group\"\n (click)=\"onUserClick($any(c.user))\"\n >\n <xs-image\n [src]=\"\n c.user | imageApi: 'user' : 'small'\n \"\n [alt]=\"c.user.name\"\n [loading]=\"'lazy'\"\n [customClass]=\"'w-8 h-8 mr-2 rounded-xl object-cover'\"\n ></xs-image>\n <div\n class=\"flex flex-col gap-1 text-sm text-white\"\n >\n <span\n class=\"font-medium leading-tight uppercase tracking-[0.12em] text-white group-hover:underline\"\n >\n {{ c.user.name }}\n </span>\n @if (c.user.type) {\n <span\n class=\"text-xs leading-none uppercase tracking-[0.12em] text-gray-500 font-extralight dark:text-gray-400\"\n >\n {{ getUserType(c.user.type) }}\n </span>\n }\n </div>\n </button>\n </div>\n\n <div class=\"flex items-center gap-2\">\n <div\n class=\"pt-1 text-xs uppercase tracking-[0.12em] text-gray-600 dark:text-gray-400 whitespace-nowrap\"\n >\n {{\n c.created!\n | dateChat: getActiveLanguage()\n }}\n </div>\n @if (\n c.state === 'pending' &&\n c.user?._id === user()?._id\n ) {\n <span\n class=\"px-2 py-0.5 text-[11px] font-semibold uppercase tracking-[0.15em] text-yellow-300 bg-yellow-900/10 rounded-full\"\n >\n {{ i18nTexts()['PENDING'] }}\n </span>\n }\n </div>\n </footer>\n\n <hr\n class=\"w-full col-span-12 my-2 mt-2 border-zinc-800\"\n />\n\n <p class=\"pb-2 text-sm text-zinc-300 mb-3\">\n {{ comment.value }}\n </p>\n\n <div\n class=\"flex gap-4 text-xs text-gray-500 dark:text-gray-400\"\n >\n <button\n type=\"button\"\n class=\"flex items-center gap-1 uppercase tracking-[0.14em] hover:text-red-400 transition-colors cursor-pointer\"\n [class.text-red-400]=\"isCommentLiked(c._id)\"\n (click)=\"likeCommentEvent.emit(c._id)\"\n >\n <xs-icon [icon]=\"isCommentLiked(c._id) ? 'heartbeat' : 'heart'\" size=\"xs\" />\n </button>\n @if (!isReplying(comment._id!)) {\n <button\n type=\"button\"\n class=\"uppercase tracking-[0.14em] hover:text-white dark:hover:text-white transition-colors cursor-pointer\"\n (click)=\"setReplyingTo(comment._id!)\"\n >\n {{ i18nTexts()['REPLY'] }}\n </button>\n }\n\n @if (getReplieCount(comment._id!) > 0) {\n <button\n type=\"button\"\n class=\"uppercase tracking-[0.14em] hover:text-white dark:hover:text-white transition-colors cursor-pointer\"\n (click)=\"toggleReplies(comment._id!)\"\n >\n {{\n expandedComments().has(comment._id!)\n ? i18nTexts()['HIDE_REPLIES']\n : (i18nTexts()['SHOW_REPLIES']) +\n ' (' +\n getReplieCount(comment._id!) +\n ')'\n }}\n </button>\n }\n </div>\n\n @if (\n getReplieCount(comment._id!) > 0 &&\n expandedComments().has(comment._id!)\n ) {\n <div\n class=\"flex flex-col gap-2 mt-4 animate-in slide-in-from-top-2 duration-300\"\n >\n @if (getReplieCount(comment._id!) > 1) {\n <div class=\"flex justify-end mb-2\">\n <select\n [value]=\"getReplySortOrder()\"\n (change)=\"\n setReplySortOrder(\n $any($event.target).value\n )\n \"\n class=\"text-xs bg-zinc-800 text-white border border-zinc-600 rounded px-2 py-1\"\n >\n <option value=\"newest\">\n {{\n i18nTexts()['NEWEST_FIRST']\n }}\n </option>\n <option value=\"oldest\">\n {{\n i18nTexts()['OLDEST_FIRST']\n }}\n </option>\n </select>\n </div>\n }\n @if (\n isLoadingReplies(comment._id!) &&\n getReplies(comment._id!).length === 0\n ) {\n @for (skeleton of [1, 2, 3]; track $index) {\n <article\n class=\"p-3 text-sm rounded-xl bg-zinc-800 bg-opacity-30 animate-pulse\"\n >\n <div class=\"space-y-2\">\n <div\n class=\"w-full h-3 bg-zinc-700 rounded\"\n ></div>\n <div\n class=\"w-5/6 h-3 bg-zinc-700 rounded\"\n ></div>\n </div>\n </article>\n }\n }\n\n @for (\n reply of getReplies(comment._id!);\n track $index\n ) {\n @let r = $any(reply);\n <article\n class=\"p-4 text-sm rounded-xl bg-zinc-900/50\"\n >\n <footer\n class=\"flex items-start justify-between mb-2\"\n >\n <div class=\"flex items-center gap-2\">\n <button\n type=\"button\"\n class=\"flex items-center gap-2 text-left cursor-pointer group\"\n (click)=\"onUserClick($any(r.user))\"\n >\n <xs-image\n [src]=\"\n r.user\n | imageApi: 'user' : 'small'\n \"\n [alt]=\"r.user.name\"\n [customClass]=\"'w-8 h-8 rounded-xl object-cover'\"\n ></xs-image>\n <div class=\"flex flex-col\">\n <span\n class=\"font-medium text-xs uppercase tracking-[0.12em] text-white group-hover:underline\"\n >\n {{ r.user.name }}\n </span>\n <span\n class=\"text-[10px] uppercase tracking-[0.12em] text-zinc-500\"\n >\n {{\n r.created!\n | dateChat: getActiveLanguage()\n }}\n </span>\n </div>\n </button>\n </div>\n </footer>\n <p\n class=\"text-gray-400 dark:text-gray-300\"\n >\n {{ r.value }}\n </p>\n </article>\n }\n\n @if (getShowMoreReplies(comment._id!)) {\n <div\n class=\"flex items-center justify-center gap-2\"\n >\n <button\n type=\"button\"\n class=\"text-[10px] uppercase tracking-[0.14em] text-gray-500 hover:text-white transition-colors py-2\"\n (click)=\"loadMoreReplies(comment._id!)\"\n [disabled]=\"\n isLoadingReplies(comment._id!)\n \"\n >\n {{\n isLoadingReplies(comment._id!)\n ? i18nTexts()['LOADING']\n : i18nTexts()['LOAD_MORE']\n }}\n </button>\n </div>\n }\n </div>\n }\n @if (isReplying(comment._id!)) {\n <div\n class=\"animate-in slide-in-from-top-2 duration-300 mt-4 pb-3\"\n >\n <form\n class=\"flex flex-col gap-2 p-3 rounded-xl bg-zinc-900/40\"\n (ngSubmit)=\"submitReply(comment._id!)\"\n >\n <textarea\n [(ngModel)]=\"replyValue\"\n name=\"reply\"\n rows=\"2\"\n class=\"rounded-xl input text-sm normal-case\"\n required\n ></textarea>\n <div class=\"flex gap-2 mt-1\">\n <xs-button\n type=\"submit\"\n [variant]=\"'secondary'\"\n [layout]=\"'small'\"\n [label]=\"i18nTexts()['SEND']\"\n ></xs-button>\n <xs-button\n type=\"button\"\n (click)=\"setReplyingTo(null)\"\n [variant]=\"'secondary'\"\n [layout]=\"'small'\"\n [label]=\"i18nTexts()['CANCEL']\"\n ></xs-button>\n </div>\n </form>\n </div>\n }\n </article>\n }\n }\n </div>\n }\n </section>\n}\n\n@if (loading()) {\n <section class=\"flex flex-col gap-1 mb-1\">\n <p\n class=\"w-32 h-6 mb-1 rounded-xl bg-zinc-900/50 animate-pulse\"\n ></p>\n\n <form class=\"flex flex-col\">\n <div class=\"mb-0.5\">\n <div\n class=\"w-full h-20 rounded-xl bg-zinc-900/50 animate-pulse\"\n ></div>\n </div>\n <div class=\"mb-1\">\n <div\n class=\"w-full h-10 mt-1.5 rounded-xl bg-zinc-900/50 animate-pulse\"\n ></div>\n </div>\n </form>\n\n <div class=\"flex flex-col gap-2 mb-1\">\n <article\n class=\"p-4 text-base rounded-xl bg-zinc-900/50 animate-pulse\"\n >\n <footer class=\"flex items-start justify-between mb-2\">\n <div class=\"flex items-center\">\n <div\n class=\"w-8 h-8 mr-2 rounded-xl bg-zinc-800\"\n ></div>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"w-24 h-4 rounded bg-zinc-800\"></div>\n <div class=\"w-16 h-3 rounded bg-zinc-800\"></div>\n </div>\n </div>\n\n <div class=\"flex items-center gap-2\">\n <div class=\"w-12 h-3 rounded bg-zinc-800\"></div>\n </div>\n </footer>\n <hr\n class=\"w-full col-span-12 my-2 mt-2 border-zinc-800\"\n />\n <div class=\"w-full h-4 mb-1 rounded bg-zinc-800\"></div>\n <div class=\"w-3/4 h-4 rounded bg-zinc-800\"></div>\n </article>\n\n <article\n class=\"p-4 text-base rounded-xl bg-zinc-900/50 animate-pulse\"\n >\n <footer class=\"flex items-start justify-between mb-2\">\n <div class=\"flex items-center\">\n <div\n class=\"w-8 h-8 mr-2 rounded-xl bg-zinc-800\"\n ></div>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"w-24 h-4 rounded bg-zinc-800\"></div>\n <div class=\"w-16 h-3 rounded bg-zinc-800\"></div>\n </div>\n </div>\n <div class=\"flex items-center gap-2\">\n <div class=\"w-12 h-3 rounded bg-zinc-800\"></div>\n </div>\n </footer>\n <hr\n class=\"w-full col-span-12 my-2 mt-2 border-zinc-800\"\n />\n <div class=\"w-full h-4 mb-1 rounded bg-zinc-800\"></div>\n <div class=\"w-3/4 h-4 rounded bg-zinc-800\"></div>\n </article>\n </div>\n </section>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "pipe", type: ImageApiPipe, name: "imageApi" }, { kind: "pipe", type: DateChatPipe, name: "dateChat" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
22285
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSProfileCommentsComponent, isStandalone: true, selector: "xs-profile-comments", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, subtype: { classPropertyName: "subtype", publicName: "subtype", isSignal: true, isRequired: false, transformFunction: null }, comments: { classPropertyName: "comments", publicName: "comments", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, likedIds: { classPropertyName: "likedIds", publicName: "likedIds", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { submitComment: "submitComment", submitReplyEvent: "submitReplyEvent", loginRequired: "loginRequired", loadReplies: "loadReplies", likeCommentEvent: "likeCommentEvent", userClick: "userClick" }, host: { attributes: { "xs-profile-comments-host": "" } }, ngImport: i0, template: "@if (!loading()) {\n <section class=\"flex flex-col gap-1 mt-2\">\n <form class=\"flex flex-col\" (ngSubmit)=\"submit()\">\n <div class=\"mb-0.5\">\n <textarea\n id=\"comment-textarea\"\n name=\"comment\"\n [ngModel]=\"valueState()\"\n (ngModelChange)=\"valueState.set($event)\"\n rows=\"3\"\n class=\"rounded-xl input normal-case\"\n [placeholder]=\"\n i18nTexts()['WRITE_COMMENT']\n \"\n required\n ></textarea>\n </div>\n\n <div class=\"mb-1\">\n <xs-button\n type=\"submit\"\n [id]=\"'profileCommentsSubmit'\"\n [layout]=\"'between'\"\n [isFull]=\"true\"\n [label]=\"\n user() && user()?._id\n ? i18nTexts()['SEND_COMMENT']\n : i18nTexts()['LOGIN']\n \"\n [icon]=\"{ name: 'paper-plane' }\"\n >\n </xs-button>\n </div>\n </form>\n\n @if (filteredComments.length > 0) {\n <div class=\"flex flex-col gap-2 mb-1\">\n @for (comment of filteredComments; track $index; let i = $index) {\n @let c = $any(comment);\n @if (c.user?.name) {\n <article\n class=\"p-4 text-base rounded-xl bg-zinc-900/50\"\n >\n <footer\n class=\"flex items-start justify-between mb-2\"\n >\n <div class=\"flex items-center\">\n <button\n type=\"button\"\n class=\"flex items-center text-left cursor-pointer group\"\n (click)=\"onUserClick($any(c.user))\"\n >\n <xs-image\n [src]=\"\n c.user | imageApi: 'user' : 'small'\n \"\n [alt]=\"c.user.name\"\n [loading]=\"'lazy'\"\n [customClass]=\"'w-8 h-8 mr-2 rounded-xl object-cover'\"\n ></xs-image>\n <div\n class=\"flex flex-col gap-1 text-sm text-white\"\n >\n <span\n class=\"font-medium leading-tight uppercase tracking-[0.12em] text-white group-hover:underline\"\n >\n {{ c.user.name }}\n </span>\n @if (c.user.type) {\n <span\n class=\"text-xs leading-none uppercase tracking-[0.12em] text-gray-500 font-extralight dark:text-gray-400\"\n >\n {{ getUserType(c.user.type) }}\n </span>\n }\n </div>\n </button>\n </div>\n\n <div class=\"flex items-center gap-2\">\n <div\n class=\"pt-1 text-xs uppercase tracking-[0.12em] text-gray-600 dark:text-gray-400 whitespace-nowrap\"\n >\n {{\n c.created!\n | dateChat: getActiveLanguage()\n }}\n </div>\n @if (\n c.state === 'pending' &&\n c.user?._id === user()?._id\n ) {\n <span\n class=\"px-2 py-0.5 text-[11px] font-semibold uppercase tracking-[0.15em] text-yellow-300 bg-yellow-900/10 rounded-full\"\n >\n {{ i18nTexts()['PENDING'] }}\n </span>\n }\n </div>\n </footer>\n\n <hr\n class=\"w-full col-span-12 my-2 mt-2 border-zinc-800\"\n />\n\n <p class=\"pb-2 text-sm text-zinc-300 mb-3\">\n {{ comment.value }}\n </p>\n\n <div\n class=\"flex gap-4 text-xs text-gray-500 dark:text-gray-400\"\n >\n <button\n type=\"button\"\n class=\"flex items-center gap-1 uppercase tracking-[0.14em] hover:text-red-400 transition-colors cursor-pointer\"\n [class.text-red-400]=\"isCommentLiked(c._id)\"\n (click)=\"likeCommentEvent.emit(c._id)\"\n >\n <xs-icon [icon]=\"isCommentLiked(c._id) ? 'heartbeat' : 'heart'\" size=\"xs\" />\n </button>\n @if (!isReplying(comment._id!)) {\n <button\n type=\"button\"\n class=\"uppercase tracking-[0.14em] hover:text-white dark:hover:text-white transition-colors cursor-pointer\"\n (click)=\"setReplyingTo(comment._id!)\"\n >\n {{ i18nTexts()['REPLY'] }}\n </button>\n }\n\n @if (getReplieCount(comment._id!) > 0) {\n <button\n type=\"button\"\n class=\"uppercase tracking-[0.14em] hover:text-white dark:hover:text-white transition-colors cursor-pointer\"\n (click)=\"toggleReplies(comment._id!)\"\n >\n {{\n expandedComments().has(comment._id!)\n ? i18nTexts()['HIDE_REPLIES']\n : (i18nTexts()['SHOW_REPLIES']) +\n ' (' +\n getReplieCount(comment._id!) +\n ')'\n }}\n </button>\n }\n </div>\n\n @if (\n getReplieCount(comment._id!) > 0 &&\n expandedComments().has(comment._id!)\n ) {\n <div\n class=\"flex flex-col gap-2 mt-4 animate-in slide-in-from-top-2 duration-300\"\n >\n @if (getReplieCount(comment._id!) > 1) {\n <div class=\"flex justify-end mb-2\">\n <select\n [value]=\"getReplySortOrder()\"\n (change)=\"\n setReplySortOrder(\n $any($event.target).value\n )\n \"\n class=\"text-xs bg-zinc-800 text-white border border-zinc-600 rounded px-2 py-1\"\n >\n <option value=\"newest\">\n {{\n i18nTexts()['NEWEST_FIRST']\n }}\n </option>\n <option value=\"oldest\">\n {{\n i18nTexts()['OLDEST_FIRST']\n }}\n </option>\n </select>\n </div>\n }\n @if (\n isLoadingReplies(comment._id!) &&\n getReplies(comment._id!).length === 0\n ) {\n @for (skeleton of [1, 2, 3]; track $index) {\n <article\n class=\"p-3 text-sm rounded-xl bg-zinc-800 bg-opacity-30 animate-pulse\"\n >\n <div class=\"space-y-2\">\n <div\n class=\"w-full h-3 bg-zinc-700 rounded\"\n ></div>\n <div\n class=\"w-5/6 h-3 bg-zinc-700 rounded\"\n ></div>\n </div>\n </article>\n }\n }\n\n @for (\n reply of getReplies(comment._id!);\n track $index\n ) {\n @let r = $any(reply);\n <article\n class=\"p-4 text-sm rounded-xl bg-zinc-900/50\"\n >\n <footer\n class=\"flex items-start justify-between mb-2\"\n >\n <div class=\"flex items-center gap-2\">\n <button\n type=\"button\"\n class=\"flex items-center gap-2 text-left cursor-pointer group\"\n (click)=\"onUserClick($any(r.user))\"\n >\n <xs-image\n [src]=\"\n r.user\n | imageApi: 'user' : 'small'\n \"\n [alt]=\"r.user.name\"\n [customClass]=\"'w-8 h-8 rounded-xl object-cover'\"\n ></xs-image>\n <div class=\"flex flex-col\">\n <span\n class=\"font-medium text-xs uppercase tracking-[0.12em] text-white group-hover:underline\"\n >\n {{ r.user.name }}\n </span>\n <span\n class=\"text-[10px] uppercase tracking-[0.12em] text-zinc-500\"\n >\n {{\n r.created!\n | dateChat: getActiveLanguage()\n }}\n </span>\n </div>\n </button>\n </div>\n </footer>\n <p\n class=\"text-gray-400 dark:text-gray-300\"\n >\n {{ r.value }}\n </p>\n </article>\n }\n\n @if (getShowMoreReplies(comment._id!)) {\n <div\n class=\"flex items-center justify-center gap-2\"\n >\n <button\n type=\"button\"\n class=\"text-[10px] uppercase tracking-[0.14em] text-gray-500 hover:text-white transition-colors py-2\"\n (click)=\"loadMoreReplies(comment._id!)\"\n [disabled]=\"\n isLoadingReplies(comment._id!)\n \"\n >\n {{\n isLoadingReplies(comment._id!)\n ? i18nTexts()['LOADING']\n : i18nTexts()['LOAD_MORE']\n }}\n </button>\n </div>\n }\n </div>\n }\n @if (isReplying(comment._id!)) {\n <div\n class=\"animate-in slide-in-from-top-2 duration-300 mt-4 pb-3\"\n >\n <form\n class=\"flex flex-col gap-2 p-3 rounded-xl bg-zinc-900/40\"\n (ngSubmit)=\"submitReply(comment._id!)\"\n >\n <textarea\n [(ngModel)]=\"replyValue\"\n name=\"reply\"\n rows=\"2\"\n class=\"rounded-xl input text-sm normal-case\"\n required\n ></textarea>\n <div class=\"flex gap-2 mt-1\">\n <xs-button\n type=\"submit\"\n [variant]=\"'secondary'\"\n [layout]=\"'small'\"\n [label]=\"i18nTexts()['SEND']\"\n ></xs-button>\n <xs-button\n type=\"button\"\n (click)=\"setReplyingTo(null)\"\n [variant]=\"'secondary'\"\n [layout]=\"'small'\"\n [label]=\"i18nTexts()['CANCEL']\"\n ></xs-button>\n </div>\n </form>\n </div>\n }\n </article>\n }\n }\n </div>\n }\n </section>\n}\n\n@if (loading()) {\n <section class=\"flex flex-col gap-1 mb-1\">\n <p\n class=\"w-32 h-6 mb-1 rounded-xl bg-zinc-900/50 animate-pulse\"\n ></p>\n\n <form class=\"flex flex-col\">\n <div class=\"mb-0.5\">\n <div\n class=\"w-full h-20 rounded-xl bg-zinc-900/50 animate-pulse\"\n ></div>\n </div>\n <div class=\"mb-1\">\n <div\n class=\"w-full h-10 mt-1.5 rounded-xl bg-zinc-900/50 animate-pulse\"\n ></div>\n </div>\n </form>\n\n <div class=\"flex flex-col gap-2 mb-1\">\n <article\n class=\"p-4 text-base rounded-xl bg-zinc-900/50 animate-pulse\"\n >\n <footer class=\"flex items-start justify-between mb-2\">\n <div class=\"flex items-center\">\n <div\n class=\"w-8 h-8 mr-2 rounded-xl bg-zinc-800\"\n ></div>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"w-24 h-4 rounded bg-zinc-800\"></div>\n <div class=\"w-16 h-3 rounded bg-zinc-800\"></div>\n </div>\n </div>\n\n <div class=\"flex items-center gap-2\">\n <div class=\"w-12 h-3 rounded bg-zinc-800\"></div>\n </div>\n </footer>\n <hr\n class=\"w-full col-span-12 my-2 mt-2 border-zinc-800\"\n />\n <div class=\"w-full h-4 mb-1 rounded bg-zinc-800\"></div>\n <div class=\"w-3/4 h-4 rounded bg-zinc-800\"></div>\n </article>\n\n <article\n class=\"p-4 text-base rounded-xl bg-zinc-900/50 animate-pulse\"\n >\n <footer class=\"flex items-start justify-between mb-2\">\n <div class=\"flex items-center\">\n <div\n class=\"w-8 h-8 mr-2 rounded-xl bg-zinc-800\"\n ></div>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"w-24 h-4 rounded bg-zinc-800\"></div>\n <div class=\"w-16 h-3 rounded bg-zinc-800\"></div>\n </div>\n </div>\n <div class=\"flex items-center gap-2\">\n <div class=\"w-12 h-3 rounded bg-zinc-800\"></div>\n </div>\n </footer>\n <hr\n class=\"w-full col-span-12 my-2 mt-2 border-zinc-800\"\n />\n <div class=\"w-full h-4 mb-1 rounded bg-zinc-800\"></div>\n <div class=\"w-3/4 h-4 rounded bg-zinc-800\"></div>\n </article>\n </div>\n </section>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "pipe", type: ImageApiPipe, name: "imageApi" }, { kind: "pipe", type: DateChatPipe, name: "dateChat" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
22286
22286
  }
22287
22287
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSProfileCommentsComponent, decorators: [{
22288
22288
  type: Component,
@@ -22305,7 +22305,7 @@ class XSProfileCurrentEventComponent {
22305
22305
  alt: 'Event',
22306
22306
  }, ...(ngDevMode ? [{ debugName: "texts" }] : []));
22307
22307
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSProfileCurrentEventComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22308
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSProfileCurrentEventComponent, isStandalone: true, selector: "xs-profile-current-event", inputs: { currentEvent: { classPropertyName: "currentEvent", publicName: "currentEvent", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "xs-profile-current-event-host": "" } }, ngImport: i0, template: "@if (currentEvent()?._id) {\n <div\n class=\"relative flex items-center justify-between gap-3 px-1 py-3 mt-2 mb-1 rounded-xl cursor-pointer bg-zinc-900/50 hover:opacity-80\"\n [routerLink]=\"['/events', currentEvent()?.slug]\"\n >\n <div class=\"flex w-full min-w-0 px-2 overflow-hidden text-white\">\n <xs-image\n src=\"{{ currentEvent() | imageApi: 'event' : 'small' }}\"\n [alt]=\"texts().alt\"\n customClass=\"object-cover w-16 h-16 rounded-xl\"\n ></xs-image>\n <div class=\"flex flex-col justify-center flex-1 min-w-0 pr-8 ml-3 overflow-hidden\">\n <div class=\"text-xs text-zinc-300\">\n {{ texts().eventCurrent }}\n </div>\n <div class=\"w-full text-base font-semibold truncate\">\n {{ currentEvent()?.name }}\n </div>\n <div class=\"text-xs pt-0.5 text-zinc-300\">\n {{ currentEvent()?.site?.name }} \u2022\n {{ texts().until }}\n {{ currentEvent()?.dateEnd | date: 'shortTime' }}\n </div>\n </div>\n </div>\n\n <div class=\"absolute -translate-y-1/2 right-4 sm:right-6 top-1/2 shrink-0\">\n <div class=\"relative\">\n <div class=\"w-3.5 h-3.5 bg-white rounded-full animate-ping absolute opacity-30\"></div>\n <div class=\"w-3.5 h-3.5 bg-green-600 rounded-full\"></div>\n </div>\n </div>\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }, { kind: "pipe", type: ImageApiPipe, name: "imageApi" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
22308
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSProfileCurrentEventComponent, isStandalone: true, selector: "xs-profile-current-event", inputs: { currentEvent: { classPropertyName: "currentEvent", publicName: "currentEvent", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "xs-profile-current-event-host": "" } }, ngImport: i0, template: "@if (currentEvent()?._id) {\n <div\n class=\"relative flex items-center justify-between gap-3 px-1 py-3 mt-2 mb-1 rounded-xl cursor-pointer bg-zinc-900/50 hover:opacity-80\"\n [routerLink]=\"['/events', currentEvent()?.slug]\"\n >\n <div class=\"flex w-full min-w-0 px-2 overflow-hidden text-white\">\n <xs-image\n src=\"{{ currentEvent() | imageApi: 'event' : 'small' }}\"\n [alt]=\"texts().alt\"\n customClass=\"object-cover w-16 h-16 rounded-xl\"\n ></xs-image>\n <div class=\"flex flex-col justify-center flex-1 min-w-0 pr-8 ml-3 overflow-hidden\">\n <div class=\"text-xs text-zinc-300\">\n {{ texts().eventCurrent }}\n </div>\n <div class=\"w-full text-base font-semibold truncate\">\n {{ currentEvent()?.name }}\n </div>\n <div class=\"text-xs pt-0.5 text-zinc-300\">\n {{ currentEvent()?.site?.name }} \u2022\n {{ texts().until }}\n {{ currentEvent()?.dateEnd | date: 'shortTime' }}\n </div>\n </div>\n </div>\n\n <div class=\"absolute -translate-y-1/2 right-4 sm:right-6 top-1/2 shrink-0\">\n <div class=\"relative\">\n <div class=\"w-3.5 h-3.5 bg-white rounded-full animate-ping absolute opacity-30\"></div>\n <div class=\"w-3.5 h-3.5 bg-green-600 rounded-full\"></div>\n </div>\n </div>\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }, { kind: "pipe", type: ImageApiPipe, name: "imageApi" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
22309
22309
  }
22310
22310
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSProfileCurrentEventComponent, decorators: [{
22311
22311
  type: Component,
@@ -22352,7 +22352,7 @@ class XSProfileExclusiveComponent {
22352
22352
  }
22353
22353
  }
22354
22354
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSProfileExclusiveComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22355
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSProfileExclusiveComponent, isStandalone: true, selector: "xs-profile-exclusive", inputs: { hasValidComponent: { classPropertyName: "hasValidComponent", publicName: "hasValidComponent", isSignal: true, isRequired: false, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, subType: { classPropertyName: "subType", publicName: "subType", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "xs-profile-exclusive-host": "" } }, ngImport: i0, template: "@if (item() && item().exclusive && hasValidComponent()) {\n <div\n class=\"flex items-center justify-between gap-4 px-4 py-2 my-2 rounded-xl bg-zinc-900/50\"\n [routerLink]=\"routerLink\"\n [ngClass]=\"{\n 'hover:opacity-70 cursor-pointer': routerLink,\n }\"\n >\n <div class=\"flex items-center gap-4\">\n <div class=\"w-8 h-8 overflow-hidden rounded\">\n <xs-image\n [config]=\"{\n src: urlLogo,\n alt: 'logo',\n }\"\n class=\"w-full h-full object-cover\"\n ></xs-image>\n </div>\n <div class=\"text-sm uppercase\">\n <p class=\"font-bold\">{{ message() }}</p>\n <p class=\"text-xs\">XSMusic</p>\n </div>\n </div>\n @if (routerLink) {\n <xs-icon [icon]=\"'chevron-right'\"></xs-icon>\n }\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
22355
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSProfileExclusiveComponent, isStandalone: true, selector: "xs-profile-exclusive", inputs: { hasValidComponent: { classPropertyName: "hasValidComponent", publicName: "hasValidComponent", isSignal: true, isRequired: false, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, subType: { classPropertyName: "subType", publicName: "subType", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "xs-profile-exclusive-host": "" } }, ngImport: i0, template: "@if (item() && item().exclusive && hasValidComponent()) {\n <div\n class=\"flex items-center justify-between gap-4 px-4 py-2 my-2 rounded-xl bg-zinc-900/50\"\n [routerLink]=\"routerLink\"\n [ngClass]=\"{\n 'hover:opacity-70 cursor-pointer': routerLink,\n }\"\n >\n <div class=\"flex items-center gap-4\">\n <div class=\"w-8 h-8 overflow-hidden rounded\">\n <xs-image\n [config]=\"{\n src: urlLogo,\n alt: 'logo',\n }\"\n class=\"w-full h-full object-cover\"\n ></xs-image>\n </div>\n <div class=\"text-sm uppercase\">\n <p class=\"font-bold\">{{ message() }}</p>\n <p class=\"text-xs\">XSMusic</p>\n </div>\n </div>\n @if (routerLink) {\n <xs-icon [icon]=\"'chevron-right'\"></xs-icon>\n }\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
22356
22356
  }
22357
22357
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSProfileExclusiveComponent, decorators: [{
22358
22358
  type: Component,
@@ -22798,6 +22798,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
22798
22798
  args: [{ selector: 'xs-profile-skeleton', host: { 'xs-profile-skeleton-host': '' }, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mx-auto\">\n @if (type() !== 'tip') {\n <div class=\"rounded h-[500px] animate-pulse bg-zinc-900/50\"></div>\n }\n\n @if (type() === 'tip') {\n <div class=\"px-2\">\n <div class=\"rounded-xl h-[70vh] max-h-[500px] animate-pulse bg-zinc-900/50\"></div>\n </div>\n }\n\n @if (type() !== 'tip') {\n <div class=\"px-2 mx-auto mt-2 max-w-7sm\">\n <div class=\"flex gap-2 overflow-x-auto lg:hidden scrollbar-hidden\">\n <div class=\"min-w-[150px] h-[68px] mt-2 rounded-xl animate-pulse bg-zinc-900/50\"></div>\n <div class=\"min-w-[150px] h-[68px] mt-2 rounded-xl animate-pulse bg-zinc-900/50\"></div>\n <div class=\"min-w-[150px] h-[68px] mt-2 rounded-xl animate-pulse bg-zinc-900/50\"></div>\n <div class=\"min-w-[150px] h-[68px] mt-2 rounded-xl animate-pulse bg-zinc-900/50\"></div>\n </div>\n\n <div class=\"hidden gap-2 overflow-x-auto lg:flex scrollbar-hidden\">\n <div class=\"w-full h-[68px] mt-2 rounded-xl animate-pulse bg-zinc-900/50\"></div>\n <div class=\"w-full h-[68px] mt-2 rounded-xl animate-pulse bg-zinc-900/50\"></div>\n <div class=\"w-full h-[68px] mt-2 rounded-xl animate-pulse bg-zinc-900/50\"></div>\n <div class=\"w-full h-[68px] mt-2 rounded-xl animate-pulse bg-zinc-900/50\"></div>\n </div>\n <div class=\"mt-4\">\n <div class=\"w-full mt-2 overflow-hidden rounded-xl h-[306px] animate-pulse bg-zinc-900/50\"></div>\n </div>\n </div>\n }\n\n @if (type() === 'tip') {\n <div class=\"px-2 mx-auto mt-4 max-w-7sm\">\n <div class=\"mt-4\">\n <div class=\"w-full mt-2 overflow-hidden rounded-xl h-[306px] animate-pulse bg-zinc-900/50\"></div>\n </div>\n </div>\n }\n</div>\n" }]
22799
22799
  }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: true }] }] } });
22800
22800
 
22801
+ function formatThousands(value) {
22802
+ const digits = String(Math.trunc(Math.abs(value)));
22803
+ let out = '';
22804
+ for (let i = 0; i < digits.length; i++) {
22805
+ if (i > 0 && (digits.length - i) % 3 === 0)
22806
+ out += '.';
22807
+ out += digits[i];
22808
+ }
22809
+ return (value < 0 ? '-' : '') + out;
22810
+ }
22801
22811
  class XSProfileTopsComponent {
22802
22812
  itemType = input.required(...(ngDevMode ? [{ debugName: "itemType" }] : []));
22803
22813
  itemSubtype = input(...(ngDevMode ? [undefined, { debugName: "itemSubtype" }] : []));
@@ -22806,23 +22816,123 @@ class XSProfileTopsComponent {
22806
22816
  positions = input.required(...(ngDevMode ? [{ debugName: "positions" }] : []));
22807
22817
  admin = input(false, ...(ngDevMode ? [{ debugName: "admin" }] : []));
22808
22818
  links = input(true, ...(ngDevMode ? [{ debugName: "links" }] : []));
22819
+ rankingTab = output();
22820
+ rankingClick = output();
22821
+ scope = signal('global', ...(ngDevMode ? [{ debugName: "scope" }] : []));
22822
+ period = signal('total', ...(ngDevMode ? [{ debugName: "period" }] : []));
22809
22823
  currentYear = new Date().getFullYear();
22810
22824
  currentMonth = new Date().getMonth() + 1;
22811
22825
  formatCurrentMonth = getNumberWithZero(this.currentMonth);
22812
- width = 0;
22813
- windowService = inject(XSWindowService);
22814
- ngOnInit() {
22815
- this.width = this.windowService.getWindowWidth();
22826
+ hasCountry = computed(() => (this.texts().countryCode ?? '').trim() !== '', ...(ngDevMode ? [{ debugName: "hasCountry" }] : []));
22827
+ currentPosition = computed(() => {
22828
+ const p = this.positions();
22829
+ if (!p)
22830
+ return null;
22831
+ const scope = this.scope();
22832
+ const period = this.period();
22833
+ if (scope === 'country' && !this.hasCountry())
22834
+ return null;
22835
+ if (period === 'total')
22836
+ return scope === 'global'
22837
+ ? p.totalPosition
22838
+ : p.countryPosition;
22839
+ if (period === 'annual')
22840
+ return scope === 'global'
22841
+ ? p.yearPosition
22842
+ : p.countryYearPosition;
22843
+ return scope === 'global'
22844
+ ? p.monthYearPosition
22845
+ : p.countryMonthYearPosition;
22846
+ }, ...(ngDevMode ? [{ debugName: "currentPosition" }] : []));
22847
+ hasAnyPosition = computed(() => {
22848
+ const p = this.positions();
22849
+ if (!p)
22850
+ return false;
22851
+ return (p.totalPosition != null ||
22852
+ p.countryPosition != null ||
22853
+ p.yearPosition != null ||
22854
+ p.countryYearPosition != null ||
22855
+ p.monthYearPosition != null ||
22856
+ p.countryMonthYearPosition != null);
22857
+ }, ...(ngDevMode ? [{ debugName: "hasAnyPosition" }] : []));
22858
+ accentClass = computed(() => {
22859
+ const pos = this.currentPosition();
22860
+ if (pos != null && pos <= 3)
22861
+ return 'from-red-600/80 to-red-600/0';
22862
+ if (pos != null && pos <= 10)
22863
+ return 'from-white/25 to-transparent';
22864
+ return 'from-white/10 to-transparent';
22865
+ }, ...(ngDevMode ? [{ debugName: "accentClass" }] : []));
22866
+ formattedPosition = computed(() => {
22867
+ const pos = this.currentPosition();
22868
+ if (pos == null)
22869
+ return null;
22870
+ return formatThousands(pos);
22871
+ }, ...(ngDevMode ? [{ debugName: "formattedPosition" }] : []));
22872
+ title = computed(() => this.texts().title ?? this.texts().label ?? 'Ranking', ...(ngDevMode ? [{ debugName: "title" }] : []));
22873
+ topWorldLabel = computed(() => this.texts().topWorld ?? this.texts().worldwide, ...(ngDevMode ? [{ debugName: "topWorldLabel" }] : []));
22874
+ /** Tipo legacy ('total' | 'country' | 'year' | ...) derivado del scope/period actual. */
22875
+ currentTopType = computed(() => {
22876
+ const scope = this.scope();
22877
+ const period = this.period();
22878
+ if (period === 'annual')
22879
+ return scope === 'country' ? 'countryYear' : 'year';
22880
+ if (period === 'monthly')
22881
+ return scope === 'country' ? 'countryMonthly' : 'monthly';
22882
+ return scope === 'country' ? 'country' : 'total';
22883
+ }, ...(ngDevMode ? [{ debugName: "currentTopType" }] : []));
22884
+ rankingLink = computed(() => this.getPathTop(this.currentTopType()), ...(ngDevMode ? [{ debugName: "rankingLink" }] : []));
22885
+ setScope(scope) {
22886
+ if (scope === 'country' && !this.hasCountry())
22887
+ return;
22888
+ const previous = this.scope();
22889
+ if (scope === previous)
22890
+ return;
22891
+ this.scope.set(scope);
22892
+ this.rankingTab.emit({
22893
+ dimension: 'scope',
22894
+ value: scope,
22895
+ previous,
22896
+ scope,
22897
+ period: this.period(),
22898
+ });
22816
22899
  }
22817
- resetPositions() {
22818
- return {
22819
- totalPosition: null,
22820
- countryPosition: null,
22821
- yearPosition: null,
22822
- countryYearPosition: null,
22823
- monthYearPosition: null,
22824
- countryMonthYearPosition: null,
22825
- };
22900
+ setPeriod(period) {
22901
+ const previous = this.period();
22902
+ if (period === previous)
22903
+ return;
22904
+ this.period.set(period);
22905
+ this.rankingTab.emit({
22906
+ dimension: 'period',
22907
+ value: period,
22908
+ previous,
22909
+ scope: this.scope(),
22910
+ period,
22911
+ });
22912
+ }
22913
+ onRankingClick() {
22914
+ const position = this.currentPosition();
22915
+ this.rankingClick.emit({
22916
+ scope: this.scope(),
22917
+ period: this.period(),
22918
+ position,
22919
+ positionBucket: this.positionBucket(position),
22920
+ hasPosition: position != null,
22921
+ hasCountry: this.hasCountry(),
22922
+ });
22923
+ }
22924
+ positionBucket(position) {
22925
+ if (position == null)
22926
+ return 'none';
22927
+ if (position <= 3)
22928
+ return 'top3';
22929
+ if (position <= 10)
22930
+ return 'top10';
22931
+ if (position <= 100)
22932
+ return 'top100';
22933
+ if (position <= 1000)
22934
+ return 'top1000';
22935
+ return 'beyond1000';
22826
22936
  }
22827
22937
  getPathTop(type) {
22828
22938
  if (!this.links()) {
@@ -22891,34 +23001,13 @@ class XSProfileTopsComponent {
22891
23001
  }
22892
23002
  return { path, queryParams };
22893
23003
  }
22894
- onHorizontalWheel(event) {
22895
- const el = event.currentTarget;
22896
- if (el.scrollWidth <= el.clientWidth)
22897
- return;
22898
- if (event.deltaX !== 0)
22899
- return;
22900
- event.preventDefault();
22901
- el.scrollLeft += event.deltaY;
22902
- }
22903
- getCardWidthClass() {
22904
- if (this.itemType() === 'media' && this.width > 400) {
22905
- return 'min-w-[175px]';
22906
- }
22907
- return 'min-w-[150px]';
22908
- }
22909
23004
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSProfileTopsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22910
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSProfileTopsComponent, isStandalone: true, selector: "xs-profile-tops", inputs: { itemType: { classPropertyName: "itemType", publicName: "itemType", isSignal: true, isRequired: true, transformFunction: null }, itemSubtype: { classPropertyName: "itemSubtype", publicName: "itemSubtype", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: true, transformFunction: null }, positions: { classPropertyName: "positions", publicName: "positions", isSignal: true, isRequired: true, transformFunction: null }, admin: { classPropertyName: "admin", publicName: "admin", isSignal: true, isRequired: false, transformFunction: null }, links: { classPropertyName: "links", publicName: "links", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "xs-profile-tops-host": "" } }, ngImport: i0, template: "@if (!loading() && positions() && positions().totalPosition !== null) {\n <div class=\"flex flex-col gap-1\">\n @if (texts() && texts().label) {\n <p class=\"font-black\">{{ texts().label }}</p>\n }\n\n @if (itemType() !== 'media') {\n <div class=\"flex gap-2 overflow-x-scroll lg:hidden scrollbar-hidden\" (wheel)=\"onHorizontalWheel($event)\">\n <a\n [routerLink]=\"getPathTop('total').path\"\n [queryParams]=\"getPathTop('total').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">{{ texts().total }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n {{ positions().totalPosition || '-' }}\u00BA\n </p>\n </div>\n </a>\n\n <a\n [routerLink]=\"getPathTop('country').path\"\n [queryParams]=\"getPathTop('country').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl min-w-[150px] bg-zinc-900/50 hover:opacity-80\"\n >\n <p class=\"text-xs font-extralight\">{{ texts().total }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"texts().countryCode || 'nd' | countryFlag\"\n [alt]=\"texts().country\"\n class=\"w-6 h-6 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n {{ positions().countryPosition || '-' }}\u00BA\n </p>\n </div>\n </a>\n\n @if (itemType() !== 'event') {\n <a\n [routerLink]=\"getPathTop('year').path\"\n [queryParams]=\"getPathTop('year').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">{{ currentYear }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n @if (positions().yearPosition) {\n <span>{{ positions().yearPosition }}\u00BA</span>\n }\n @if (!positions().yearPosition) {\n <span>-</span>\n }\n </p>\n </div>\n </a>\n }\n\n @if (itemType() !== 'event') {\n <a\n [routerLink]=\"getPathTop('countryYear').path\"\n [queryParams]=\"getPathTop('countryYear').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl min-w-[150px] bg-zinc-900/50 hover:opacity-80\"\n >\n <p class=\"text-xs font-extralight\">{{ currentYear }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"texts().countryCode || 'nd' | countryFlag\"\n [alt]=\"texts().country\"\n class=\"w-6 h-6 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n @if (positions().countryYearPosition) {\n <span>{{ positions().countryYearPosition }}\u00BA</span>\n }\n @if (!positions().countryYearPosition) {\n <span>-</span>\n }\n </p>\n </div>\n </a>\n }\n\n <a\n [routerLink]=\"getPathTop('monthly').path\"\n [queryParams]=\"getPathTop('monthly').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">\n {{ texts().currentMonth | firstLetterCase }}\n </p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n @if (positions().monthYearPosition) {\n <span>{{ positions().monthYearPosition }}\u00BA</span>\n }\n @if (!positions().monthYearPosition) {\n <span>-</span>\n }\n </p>\n </div>\n </a>\n\n <a\n [routerLink]=\"getPathTop('countryMonthly').path\"\n [queryParams]=\"getPathTop('countryMonthly').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl min-w-[150px] bg-zinc-900/50 hover:opacity-80\"\n >\n <p class=\"text-xs font-extralight\">\n {{ texts().currentMonth | firstLetterCase }}\n </p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"texts().countryCode || 'nd' | countryFlag\"\n [alt]=\"texts().country\"\n class=\"w-6 h-6 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n {{ positions().countryMonthYearPosition || '-' }}\u00BA\n </p>\n </div>\n </a>\n </div>\n }\n\n @if (itemType() === 'media') {\n <div class=\"flex gap-2 overflow-x-scroll lg:hidden scrollbar-hidden\" (wheel)=\"onHorizontalWheel($event)\">\n <a\n [routerLink]=\"getPathTop('total').path\"\n [queryParams]=\"getPathTop('total').queryParams\"\n class=\"flex flex-col items-start justify-between w-full gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">{{ texts().total }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n {{ positions().totalPosition || '-' }}\u00BA\n </p>\n </div>\n </a>\n\n <a\n [routerLink]=\"getPathTop('year').path\"\n [queryParams]=\"getPathTop('year').queryParams\"\n class=\"flex flex-col items-start justify-between w-full gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">{{ currentYear }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n @if (positions().yearPosition) {\n <span>{{ positions().yearPosition }}\u00BA</span>\n }\n @if (!positions().yearPosition) {\n <span>-</span>\n }\n </p>\n </div>\n </a>\n\n <a\n [routerLink]=\"getPathTop('monthly').path\"\n [queryParams]=\"getPathTop('monthly').queryParams\"\n class=\"flex flex-col items-start justify-between w-full gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">\n {{ texts().currentMonth | firstLetterCase }}\n </p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n @if (positions().monthYearPosition) {\n <span>{{ positions().monthYearPosition }}\u00BA</span>\n }\n @if (!positions().monthYearPosition) {\n <span>-</span>\n }\n </p>\n </div>\n </a>\n </div>\n }\n\n <div\n class=\"hidden gap-2 px-4 py-2 rounded-xl lg:grid bg-zinc-900/50\"\n [ngClass]=\"{\n 'md:grid-cols-6': itemType() !== 'media' && itemType() !== 'event',\n 'md:grid-cols-4': itemType() === 'event',\n 'md:grid-cols-3': itemType() === 'media',\n }\"\n >\n <a\n [routerLink]=\"getPathTop('total').path\"\n [queryParams]=\"getPathTop('total').queryParams\"\n class=\"flex pt-0.5 flex-col items-center justify-center border-r border-zinc-600 hover:opacity-80\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().worldwide }}</p>\n <p class=\"text-xs font-extralight\">- {{ texts().total }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().totalPosition || '-' }}\u00BA</p>\n </a>\n\n @if (itemType() !== 'media') {\n <a\n [routerLink]=\"getPathTop('country').path\"\n [queryParams]=\"getPathTop('country').queryParams\"\n class=\"flex pt-0.5 flex-col items-center justify-center border-r border-zinc-600 hover:opacity-80\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().country }}</p>\n <p class=\"text-xs font-extralight\">- {{ texts().total }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().countryPosition || '-' }}\u00BA</p>\n </a>\n }\n\n @if (itemType() !== 'event') {\n <a\n [routerLink]=\"getPathTop('year').path\"\n [queryParams]=\"getPathTop('year').queryParams\"\n class=\"flex flex-col items-center justify-center border-r hover:opacity-80 border-zinc-600\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().worldwide }}</p>\n <p class=\"text-xs font-extralight\">- {{ currentYear }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().yearPosition || '-' }}\u00BA</p>\n </a>\n }\n\n @if (itemType() !== 'media' && itemType() !== 'event') {\n <a\n [routerLink]=\"getPathTop('countryYear').path\"\n [queryParams]=\"getPathTop('countryYear').queryParams\"\n class=\"flex flex-col items-center justify-center border-r border-zinc-600 hover:opacity-80\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().country }}</p>\n <p class=\"text-xs font-extralight\">- {{ currentYear }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().countryYearPosition || '-' }}\u00BA</p>\n </a>\n }\n\n <a\n [routerLink]=\"getPathTop('monthly').path\"\n [queryParams]=\"getPathTop('monthly').queryParams\"\n class=\"flex flex-col items-center justify-center hover:opacity-80\"\n [ngClass]=\"{\n 'border-r border-zinc-600': itemType() !== 'media',\n }\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().worldwide }}</p>\n <p class=\"text-xs font-extralight\">- {{ texts().currentMonth | firstLetterCase }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().monthYearPosition || '-' }}\u00BA</p>\n </a>\n\n @if (itemType() !== 'media') {\n <a\n [routerLink]=\"getPathTop('countryMonthly').path\"\n [queryParams]=\"getPathTop('countryMonthly').queryParams\"\n class=\"flex flex-col items-center justify-center hover:opacity-80\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().country }}</p>\n <p class=\"text-xs font-extralight\">- {{ texts().currentMonth | firstLetterCase }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().countryMonthYearPosition || '-' }}\u00BA</p>\n </a>\n }\n </div>\n </div>\n}\n\n@if (loading()) {\n <div class=\"flex flex-col gap-1 animate-pulse\">\n @if (texts() && texts().label) {\n <div class=\"w-32 h-4 mt-1 rounded bg-zinc-900/50\"></div>\n }\n\n <div\n class=\"flex gap-2 overflow-x-scroll lg:hidden scrollbar-hidden\"\n [ngClass]=\"{ 'mt-1': texts() && texts().label }\"\n (wheel)=\"onHorizontalWheel($event)\"\n >\n @for (_ of [0, 1, 2, 3]; track $index) {\n <div class=\"flex flex-col justify-between gap-1 px-4 py-3 rounded-xl bg-zinc-800 min-w-[150px]\">\n <div class=\"w-10 h-3 rounded bg-zinc-700\"></div>\n <div class=\"flex items-center justify-between w-full gap-6 mt-1\">\n <div class=\"w-6 h-5 rounded-xl bg-zinc-800\"></div>\n <div class=\"w-6 h-6 rounded bg-zinc-800\"></div>\n </div>\n </div>\n }\n </div>\n\n <div\n class=\"hidden gap-2 px-4 py-2.5 mt-1 rounded-xl lg:grid bg-zinc-900/50\"\n [ngClass]=\"{\n 'md:grid-cols-6': itemType() !== 'media' && itemType() !== 'event',\n 'md:grid-cols-4': itemType() === 'event',\n 'md:grid-cols-3': itemType() === 'media',\n }\"\n >\n @for (\n _ of itemType() === 'media'\n ? [0, 1, 2]\n : itemType() === 'event'\n ? [0, 1, 2, 3]\n : [0, 1, 2, 3, 4, 5];\n track $index\n ) {\n <div\n class=\"flex flex-col items-center justify-center h-full\"\n [ngClass]=\"{\n 'border-r border-zinc-800':\n itemType() === 'media'\n ? _ !== 2\n : itemType() === 'event'\n ? _ !== 3\n : _ !== 5,\n }\"\n >\n <div class=\"w-24 h-4 rounded bg-zinc-800 mb-0.5\"></div>\n <div class=\"w-10 h-6 rounded bg-zinc-800\"></div>\n </div>\n }\n </div>\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: XSFirstLetterPipe, name: "firstLetterCase" }, { kind: "pipe", type: CountryFlagPipe, name: "countryFlag" }, { kind: "pipe", type: CountryNamePipe, name: "countryName" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
23005
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSProfileTopsComponent, isStandalone: true, selector: "xs-profile-tops", inputs: { itemType: { classPropertyName: "itemType", publicName: "itemType", isSignal: true, isRequired: true, transformFunction: null }, itemSubtype: { classPropertyName: "itemSubtype", publicName: "itemSubtype", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: true, transformFunction: null }, positions: { classPropertyName: "positions", publicName: "positions", isSignal: true, isRequired: true, transformFunction: null }, admin: { classPropertyName: "admin", publicName: "admin", isSignal: true, isRequired: false, transformFunction: null }, links: { classPropertyName: "links", publicName: "links", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rankingTab: "rankingTab", rankingClick: "rankingClick" }, host: { attributes: { "xs-profile-tops-host": "" } }, ngImport: i0, template: "@if (loading()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 sm:px-8\" aria-hidden=\"true\">\n <div class=\"flex items-center gap-6\">\n <div class=\"h-20 w-28 rounded-lg bg-zinc-800 animate-pulse\"></div>\n <div class=\"hidden w-px self-stretch bg-white/5 sm:block\"></div>\n <div class=\"min-w-0 flex-1\">\n <div class=\"h-4 w-40 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-2 h-3 w-56 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-4 h-7 w-72 rounded-lg bg-zinc-800 animate-pulse\"></div>\n </div>\n </div>\n </section>\n} @else if (!hasAnyPosition()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 text-center sm:py-7\" aria-label=\"Ranking\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-600\">\n {{ title() }}\n </p>\n <div class=\"mx-auto my-3 h-px w-12 bg-white/10\"></div>\n <p class=\"text-sm text-zinc-500\">{{ texts().noPositionYet ?? 'Sin posici\u00F3n todav\u00EDa' }}</p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"mt-3 inline-block text-[11px] uppercase tracking-[0.14em] text-zinc-600 hover:text-zinc-300 transition-colors\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </section>\n} @else {\n <section\n class=\"relative overflow-hidden rounded-xl bg-zinc-900/50 px-6 py-5 sm:px-8 sm:py-6\"\n aria-label=\"Ranking\"\n >\n <span\n class=\"absolute inset-y-0 left-0 w-[3px] bg-gradient-to-b {{ accentClass() }}\"\n aria-hidden=\"true\"\n ></span>\n\n <div class=\"flex items-center justify-between gap-4\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-500\">\n {{ title() }}\n </p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"shrink-0 text-[11px] uppercase tracking-[0.14em] text-zinc-500 hover:text-white transition-colors\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </div>\n\n <div\n class=\"mt-4 flex flex-col items-start gap-y-3 sm:mt-4 sm:flex-row sm:flex-nowrap sm:items-start sm:gap-x-8\"\n >\n @if (currentPosition() !== null) {\n <p\n class=\"shrink-0 text-7xl sm:text-8xl font-black leading-none tracking-tighter text-white\"\n >\n <span class=\"text-zinc-600\">#</span>{{ formattedPosition() }}\n </p>\n <span class=\"hidden w-px self-stretch bg-white/10 sm:block\" aria-hidden=\"true\"></span>\n }\n <div class=\"w-full min-w-0 sm:w-auto sm:flex-1\">\n <p class=\"text-sm font-black uppercase tracking-[0.24em] text-zinc-100\">\n @if (scope() === 'global') {\n {{ topWorldLabel() }}\n } @else {\n Top {{ texts().country }}\n }\n </p>\n <p class=\"mt-1 text-[11px] uppercase tracking-[0.2em] text-zinc-500\">\n @if (period() === 'total') {\n Ranking {{ texts().total }}\n } @else if (period() === 'annual') {\n Ranking {{ texts().annual ?? 'Anual' }} \u00B7 {{ currentYear }}\n } @else {\n Ranking {{ texts().monthly ?? 'Mensual' }} \u00B7 {{ texts().currentMonth }}\n {{ currentYear }}\n }\n </p>\n\n @if (currentPosition() === null) {\n <p class=\"mt-1.5 text-xs text-zinc-400\">\n {{ texts().noPositionHere ?? 'Sin posici\u00F3n en este tramo' }}\n </p>\n }\n\n <div\n class=\"flex flex-wrap items-center\"\n [class]=\"currentPosition() === null ? 'mt-3 gap-1.5' : 'mt-4 gap-2'\"\n >\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'global'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('global')\"\n >\n {{ topWorldLabel() }}\n </button>\n @if (hasCountry()) {\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'country'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('country')\"\n >\n {{ texts().country }}\n </button>\n }\n </div>\n\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'total'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('total')\"\n >\n {{ texts().total }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'annual'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('annual')\"\n >\n {{ texts().annual ?? 'Anual' }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'monthly'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('monthly')\"\n >\n {{ texts().monthly ?? 'Mensual' }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </section>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
22911
23006
  }
22912
23007
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSProfileTopsComponent, decorators: [{
22913
23008
  type: Component,
22914
- args: [{ selector: 'xs-profile-tops', host: { 'xs-profile-tops-host': '' }, imports: [
22915
- CommonModule,
22916
- RouterModule,
22917
- XSFirstLetterPipe,
22918
- CountryFlagPipe,
22919
- CountryNamePipe,
22920
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!loading() && positions() && positions().totalPosition !== null) {\n <div class=\"flex flex-col gap-1\">\n @if (texts() && texts().label) {\n <p class=\"font-black\">{{ texts().label }}</p>\n }\n\n @if (itemType() !== 'media') {\n <div class=\"flex gap-2 overflow-x-scroll lg:hidden scrollbar-hidden\" (wheel)=\"onHorizontalWheel($event)\">\n <a\n [routerLink]=\"getPathTop('total').path\"\n [queryParams]=\"getPathTop('total').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">{{ texts().total }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n {{ positions().totalPosition || '-' }}\u00BA\n </p>\n </div>\n </a>\n\n <a\n [routerLink]=\"getPathTop('country').path\"\n [queryParams]=\"getPathTop('country').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl min-w-[150px] bg-zinc-900/50 hover:opacity-80\"\n >\n <p class=\"text-xs font-extralight\">{{ texts().total }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"texts().countryCode || 'nd' | countryFlag\"\n [alt]=\"texts().country\"\n class=\"w-6 h-6 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n {{ positions().countryPosition || '-' }}\u00BA\n </p>\n </div>\n </a>\n\n @if (itemType() !== 'event') {\n <a\n [routerLink]=\"getPathTop('year').path\"\n [queryParams]=\"getPathTop('year').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">{{ currentYear }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n @if (positions().yearPosition) {\n <span>{{ positions().yearPosition }}\u00BA</span>\n }\n @if (!positions().yearPosition) {\n <span>-</span>\n }\n </p>\n </div>\n </a>\n }\n\n @if (itemType() !== 'event') {\n <a\n [routerLink]=\"getPathTop('countryYear').path\"\n [queryParams]=\"getPathTop('countryYear').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl min-w-[150px] bg-zinc-900/50 hover:opacity-80\"\n >\n <p class=\"text-xs font-extralight\">{{ currentYear }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"texts().countryCode || 'nd' | countryFlag\"\n [alt]=\"texts().country\"\n class=\"w-6 h-6 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n @if (positions().countryYearPosition) {\n <span>{{ positions().countryYearPosition }}\u00BA</span>\n }\n @if (!positions().countryYearPosition) {\n <span>-</span>\n }\n </p>\n </div>\n </a>\n }\n\n <a\n [routerLink]=\"getPathTop('monthly').path\"\n [queryParams]=\"getPathTop('monthly').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">\n {{ texts().currentMonth | firstLetterCase }}\n </p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n @if (positions().monthYearPosition) {\n <span>{{ positions().monthYearPosition }}\u00BA</span>\n }\n @if (!positions().monthYearPosition) {\n <span>-</span>\n }\n </p>\n </div>\n </a>\n\n <a\n [routerLink]=\"getPathTop('countryMonthly').path\"\n [queryParams]=\"getPathTop('countryMonthly').queryParams\"\n class=\"flex flex-col items-start justify-between gap-1 px-4 py-2 rounded-xl min-w-[150px] bg-zinc-900/50 hover:opacity-80\"\n >\n <p class=\"text-xs font-extralight\">\n {{ texts().currentMonth | firstLetterCase }}\n </p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"texts().countryCode || 'nd' | countryFlag\"\n [alt]=\"texts().country\"\n class=\"w-6 h-6 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n {{ positions().countryMonthYearPosition || '-' }}\u00BA\n </p>\n </div>\n </a>\n </div>\n }\n\n @if (itemType() === 'media') {\n <div class=\"flex gap-2 overflow-x-scroll lg:hidden scrollbar-hidden\" (wheel)=\"onHorizontalWheel($event)\">\n <a\n [routerLink]=\"getPathTop('total').path\"\n [queryParams]=\"getPathTop('total').queryParams\"\n class=\"flex flex-col items-start justify-between w-full gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">{{ texts().total }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n {{ positions().totalPosition || '-' }}\u00BA\n </p>\n </div>\n </a>\n\n <a\n [routerLink]=\"getPathTop('year').path\"\n [queryParams]=\"getPathTop('year').queryParams\"\n class=\"flex flex-col items-start justify-between w-full gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">{{ currentYear }}</p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n @if (positions().yearPosition) {\n <span>{{ positions().yearPosition }}\u00BA</span>\n }\n @if (!positions().yearPosition) {\n <span>-</span>\n }\n </p>\n </div>\n </a>\n\n <a\n [routerLink]=\"getPathTop('monthly').path\"\n [queryParams]=\"getPathTop('monthly').queryParams\"\n class=\"flex flex-col items-start justify-between w-full gap-1 px-4 py-2 rounded-xl bg-zinc-900/50 hover:opacity-80\"\n [ngClass]=\"getCardWidthClass()\"\n >\n <p class=\"text-xs font-extralight\">\n {{ texts().currentMonth | firstLetterCase }}\n </p>\n <div class=\"flex items-center justify-between w-full gap-6\">\n <img\n [src]=\"'nd' | countryFlag\"\n [alt]=\"'nd' | countryName\"\n class=\"w-6 h-5 mr-1 rounded-xl\"\n />\n <p class=\"text-2xl font-bold\">\n @if (positions().monthYearPosition) {\n <span>{{ positions().monthYearPosition }}\u00BA</span>\n }\n @if (!positions().monthYearPosition) {\n <span>-</span>\n }\n </p>\n </div>\n </a>\n </div>\n }\n\n <div\n class=\"hidden gap-2 px-4 py-2 rounded-xl lg:grid bg-zinc-900/50\"\n [ngClass]=\"{\n 'md:grid-cols-6': itemType() !== 'media' && itemType() !== 'event',\n 'md:grid-cols-4': itemType() === 'event',\n 'md:grid-cols-3': itemType() === 'media',\n }\"\n >\n <a\n [routerLink]=\"getPathTop('total').path\"\n [queryParams]=\"getPathTop('total').queryParams\"\n class=\"flex pt-0.5 flex-col items-center justify-center border-r border-zinc-600 hover:opacity-80\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().worldwide }}</p>\n <p class=\"text-xs font-extralight\">- {{ texts().total }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().totalPosition || '-' }}\u00BA</p>\n </a>\n\n @if (itemType() !== 'media') {\n <a\n [routerLink]=\"getPathTop('country').path\"\n [queryParams]=\"getPathTop('country').queryParams\"\n class=\"flex pt-0.5 flex-col items-center justify-center border-r border-zinc-600 hover:opacity-80\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().country }}</p>\n <p class=\"text-xs font-extralight\">- {{ texts().total }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().countryPosition || '-' }}\u00BA</p>\n </a>\n }\n\n @if (itemType() !== 'event') {\n <a\n [routerLink]=\"getPathTop('year').path\"\n [queryParams]=\"getPathTop('year').queryParams\"\n class=\"flex flex-col items-center justify-center border-r hover:opacity-80 border-zinc-600\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().worldwide }}</p>\n <p class=\"text-xs font-extralight\">- {{ currentYear }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().yearPosition || '-' }}\u00BA</p>\n </a>\n }\n\n @if (itemType() !== 'media' && itemType() !== 'event') {\n <a\n [routerLink]=\"getPathTop('countryYear').path\"\n [queryParams]=\"getPathTop('countryYear').queryParams\"\n class=\"flex flex-col items-center justify-center border-r border-zinc-600 hover:opacity-80\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().country }}</p>\n <p class=\"text-xs font-extralight\">- {{ currentYear }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().countryYearPosition || '-' }}\u00BA</p>\n </a>\n }\n\n <a\n [routerLink]=\"getPathTop('monthly').path\"\n [queryParams]=\"getPathTop('monthly').queryParams\"\n class=\"flex flex-col items-center justify-center hover:opacity-80\"\n [ngClass]=\"{\n 'border-r border-zinc-600': itemType() !== 'media',\n }\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().worldwide }}</p>\n <p class=\"text-xs font-extralight\">- {{ texts().currentMonth | firstLetterCase }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().monthYearPosition || '-' }}\u00BA</p>\n </a>\n\n @if (itemType() !== 'media') {\n <a\n [routerLink]=\"getPathTop('countryMonthly').path\"\n [queryParams]=\"getPathTop('countryMonthly').queryParams\"\n class=\"flex flex-col items-center justify-center hover:opacity-80\"\n >\n <div class=\"flex flex-col items-center lg:gap-1 lg:flex-row\">\n <p class=\"text-xs font-extralight\">{{ texts().country }}</p>\n <p class=\"text-xs font-extralight\">- {{ texts().currentMonth | firstLetterCase }}</p>\n </div>\n <p class=\"text-xl font-bold\">{{ positions().countryMonthYearPosition || '-' }}\u00BA</p>\n </a>\n }\n </div>\n </div>\n}\n\n@if (loading()) {\n <div class=\"flex flex-col gap-1 animate-pulse\">\n @if (texts() && texts().label) {\n <div class=\"w-32 h-4 mt-1 rounded bg-zinc-900/50\"></div>\n }\n\n <div\n class=\"flex gap-2 overflow-x-scroll lg:hidden scrollbar-hidden\"\n [ngClass]=\"{ 'mt-1': texts() && texts().label }\"\n (wheel)=\"onHorizontalWheel($event)\"\n >\n @for (_ of [0, 1, 2, 3]; track $index) {\n <div class=\"flex flex-col justify-between gap-1 px-4 py-3 rounded-xl bg-zinc-800 min-w-[150px]\">\n <div class=\"w-10 h-3 rounded bg-zinc-700\"></div>\n <div class=\"flex items-center justify-between w-full gap-6 mt-1\">\n <div class=\"w-6 h-5 rounded-xl bg-zinc-800\"></div>\n <div class=\"w-6 h-6 rounded bg-zinc-800\"></div>\n </div>\n </div>\n }\n </div>\n\n <div\n class=\"hidden gap-2 px-4 py-2.5 mt-1 rounded-xl lg:grid bg-zinc-900/50\"\n [ngClass]=\"{\n 'md:grid-cols-6': itemType() !== 'media' && itemType() !== 'event',\n 'md:grid-cols-4': itemType() === 'event',\n 'md:grid-cols-3': itemType() === 'media',\n }\"\n >\n @for (\n _ of itemType() === 'media'\n ? [0, 1, 2]\n : itemType() === 'event'\n ? [0, 1, 2, 3]\n : [0, 1, 2, 3, 4, 5];\n track $index\n ) {\n <div\n class=\"flex flex-col items-center justify-center h-full\"\n [ngClass]=\"{\n 'border-r border-zinc-800':\n itemType() === 'media'\n ? _ !== 2\n : itemType() === 'event'\n ? _ !== 3\n : _ !== 5,\n }\"\n >\n <div class=\"w-24 h-4 rounded bg-zinc-800 mb-0.5\"></div>\n <div class=\"w-10 h-6 rounded bg-zinc-800\"></div>\n </div>\n }\n </div>\n </div>\n}\n" }]
22921
- }], propDecorators: { itemType: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemType", required: true }] }], itemSubtype: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSubtype", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: true }] }], positions: [{ type: i0.Input, args: [{ isSignal: true, alias: "positions", required: true }] }], admin: [{ type: i0.Input, args: [{ isSignal: true, alias: "admin", required: false }] }], links: [{ type: i0.Input, args: [{ isSignal: true, alias: "links", required: false }] }] } });
23009
+ args: [{ selector: 'xs-profile-tops', host: { 'xs-profile-tops-host': '' }, imports: [CommonModule, RouterModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (loading()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 sm:px-8\" aria-hidden=\"true\">\n <div class=\"flex items-center gap-6\">\n <div class=\"h-20 w-28 rounded-lg bg-zinc-800 animate-pulse\"></div>\n <div class=\"hidden w-px self-stretch bg-white/5 sm:block\"></div>\n <div class=\"min-w-0 flex-1\">\n <div class=\"h-4 w-40 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-2 h-3 w-56 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-4 h-7 w-72 rounded-lg bg-zinc-800 animate-pulse\"></div>\n </div>\n </div>\n </section>\n} @else if (!hasAnyPosition()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 text-center sm:py-7\" aria-label=\"Ranking\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-600\">\n {{ title() }}\n </p>\n <div class=\"mx-auto my-3 h-px w-12 bg-white/10\"></div>\n <p class=\"text-sm text-zinc-500\">{{ texts().noPositionYet ?? 'Sin posici\u00F3n todav\u00EDa' }}</p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"mt-3 inline-block text-[11px] uppercase tracking-[0.14em] text-zinc-600 hover:text-zinc-300 transition-colors\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </section>\n} @else {\n <section\n class=\"relative overflow-hidden rounded-xl bg-zinc-900/50 px-6 py-5 sm:px-8 sm:py-6\"\n aria-label=\"Ranking\"\n >\n <span\n class=\"absolute inset-y-0 left-0 w-[3px] bg-gradient-to-b {{ accentClass() }}\"\n aria-hidden=\"true\"\n ></span>\n\n <div class=\"flex items-center justify-between gap-4\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-500\">\n {{ title() }}\n </p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"shrink-0 text-[11px] uppercase tracking-[0.14em] text-zinc-500 hover:text-white transition-colors\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </div>\n\n <div\n class=\"mt-4 flex flex-col items-start gap-y-3 sm:mt-4 sm:flex-row sm:flex-nowrap sm:items-start sm:gap-x-8\"\n >\n @if (currentPosition() !== null) {\n <p\n class=\"shrink-0 text-7xl sm:text-8xl font-black leading-none tracking-tighter text-white\"\n >\n <span class=\"text-zinc-600\">#</span>{{ formattedPosition() }}\n </p>\n <span class=\"hidden w-px self-stretch bg-white/10 sm:block\" aria-hidden=\"true\"></span>\n }\n <div class=\"w-full min-w-0 sm:w-auto sm:flex-1\">\n <p class=\"text-sm font-black uppercase tracking-[0.24em] text-zinc-100\">\n @if (scope() === 'global') {\n {{ topWorldLabel() }}\n } @else {\n Top {{ texts().country }}\n }\n </p>\n <p class=\"mt-1 text-[11px] uppercase tracking-[0.2em] text-zinc-500\">\n @if (period() === 'total') {\n Ranking {{ texts().total }}\n } @else if (period() === 'annual') {\n Ranking {{ texts().annual ?? 'Anual' }} \u00B7 {{ currentYear }}\n } @else {\n Ranking {{ texts().monthly ?? 'Mensual' }} \u00B7 {{ texts().currentMonth }}\n {{ currentYear }}\n }\n </p>\n\n @if (currentPosition() === null) {\n <p class=\"mt-1.5 text-xs text-zinc-400\">\n {{ texts().noPositionHere ?? 'Sin posici\u00F3n en este tramo' }}\n </p>\n }\n\n <div\n class=\"flex flex-wrap items-center\"\n [class]=\"currentPosition() === null ? 'mt-3 gap-1.5' : 'mt-4 gap-2'\"\n >\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'global'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('global')\"\n >\n {{ topWorldLabel() }}\n </button>\n @if (hasCountry()) {\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'country'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('country')\"\n >\n {{ texts().country }}\n </button>\n }\n </div>\n\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'total'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('total')\"\n >\n {{ texts().total }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'annual'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('annual')\"\n >\n {{ texts().annual ?? 'Anual' }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'monthly'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('monthly')\"\n >\n {{ texts().monthly ?? 'Mensual' }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </section>\n}\n" }]
23010
+ }], propDecorators: { itemType: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemType", required: true }] }], itemSubtype: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSubtype", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: true }] }], positions: [{ type: i0.Input, args: [{ isSignal: true, alias: "positions", required: true }] }], admin: [{ type: i0.Input, args: [{ isSignal: true, alias: "admin", required: false }] }], links: [{ type: i0.Input, args: [{ isSignal: true, alias: "links", required: false }] }], rankingTab: [{ type: i0.Output, args: ["rankingTab"] }], rankingClick: [{ type: i0.Output, args: ["rankingClick"] }] } });
22922
23011
 
22923
23012
  class XSStepperComponent {
22924
23013
  steps = input.required(...(ngDevMode ? [{ debugName: "steps" }] : []));
@@ -23188,7 +23277,13 @@ class XSSendScraperComponent {
23188
23277
  clearTimeout(this.demoTimeout);
23189
23278
  });
23190
23279
  }
23280
+ /**
23281
+ * Datos falsos SOLO para demoMode (xsstory/demo-app).
23282
+ * En flujo real NUNCA se usa: ante fallo se muestra error, no un artista inventado.
23283
+ */
23191
23284
  useMockFallback() {
23285
+ if (!this.demoMode())
23286
+ return;
23192
23287
  const mode = this.mode();
23193
23288
  const result = mode === 'track'
23194
23289
  ? {
@@ -23211,6 +23306,7 @@ class XSSendScraperComponent {
23211
23306
  image: 'https://picsum.photos/seed/djpulse/400/400',
23212
23307
  info: 'Productor y DJ afincado en Barcelona con más de 10 años de trayectoria en la escena house.',
23213
23308
  soundcloudUrl: this.urlValue(),
23309
+ website: null,
23214
23310
  };
23215
23311
  this.previewData.set(result);
23216
23312
  this.currentStep.set(2);
@@ -23345,7 +23441,9 @@ class XSSendScraperComponent {
23345
23441
  this.checkDuplicateAndShowPreview(result, rawUrl);
23346
23442
  },
23347
23443
  error: () => {
23348
- this.useMockFallback();
23444
+ this.errorMessage.set(this.labels().errorApi ||
23445
+ 'Error al conectar con el servidor');
23446
+ this.loading.set(false);
23349
23447
  },
23350
23448
  });
23351
23449
  }
@@ -23356,7 +23454,9 @@ class XSSendScraperComponent {
23356
23454
  .subscribe({
23357
23455
  next: (data) => {
23358
23456
  if (!data || !data.name) {
23359
- this.useMockFallback();
23457
+ this.errorMessage.set(this.labels().errorNoData ||
23458
+ 'No se pudieron obtener datos');
23459
+ this.loading.set(false);
23360
23460
  return;
23361
23461
  }
23362
23462
  const result = {
@@ -23366,11 +23466,14 @@ class XSSendScraperComponent {
23366
23466
  image: data.image || '',
23367
23467
  info: data.info || '',
23368
23468
  soundcloudUrl: data.soundcloudUrl || rawUrl,
23469
+ website: data.website || null,
23369
23470
  };
23370
23471
  this.checkDuplicateAndShowPreview(result, rawUrl);
23371
23472
  },
23372
23473
  error: () => {
23373
- this.useMockFallback();
23474
+ this.errorMessage.set(this.labels().errorApi ||
23475
+ 'Error al conectar con el servidor');
23476
+ this.loading.set(false);
23374
23477
  },
23375
23478
  });
23376
23479
  }
@@ -23381,7 +23484,9 @@ class XSSendScraperComponent {
23381
23484
  .subscribe({
23382
23485
  next: (data) => {
23383
23486
  if (!data || !data.title) {
23384
- this.useMockFallback();
23487
+ this.errorMessage.set(this.labels().errorNoData ||
23488
+ 'No se pudieron obtener datos');
23489
+ this.loading.set(false);
23385
23490
  return;
23386
23491
  }
23387
23492
  const result = {
@@ -23400,7 +23505,9 @@ class XSSendScraperComponent {
23400
23505
  this.checkDuplicateAndShowPreview(result, rawUrl);
23401
23506
  },
23402
23507
  error: () => {
23403
- this.useMockFallback();
23508
+ this.errorMessage.set(this.labels().errorApi ||
23509
+ 'Error al conectar con el servidor');
23510
+ this.loading.set(false);
23404
23511
  },
23405
23512
  });
23406
23513
  }
@@ -23436,7 +23543,7 @@ class XSSendScraperComponent {
23436
23543
  }
23437
23544
  XSFormlyType = XSFormlyType;
23438
23545
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSSendScraperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
23439
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSSendScraperComponent, isStandalone: true, selector: "xs-send-scraper", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, allowedSources: { classPropertyName: "allowedSources", publicName: "allowedSources", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, formFields: { classPropertyName: "formFields", publicName: "formFields", isSignal: true, isRequired: false, transformFunction: null }, demoMode: { classPropertyName: "demoMode", publicName: "demoMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dataResolved: "dataResolved" }, ngImport: i0, template: "<div class=\"xs-send-scraper\">\n <xs-stepper [steps]=\"stepLabels()\" [current]=\"currentStep()\">\n @switch (currentStep()) {\n @case (0) {\n <div class=\"xs-scraper-step\">\n <p class=\"xs-scraper-step-title\">\n {{ labels().sourceTitle }}\n </p>\n @if (!showSourceSelection()) {\n <p class=\"xs-scraper-step-desc\">\n {{ labels().sourceDescSingle }}\n </p>\n }\n <div class=\"xs-scraper-sources\">\n @for (source of allowedSources(); track source) {\n <button\n class=\"xs-scraper-source-card\"\n [attr.data-source]=\"source\"\n (click)=\"selectSource(source)\"\n >\n <div class=\"xs-scraper-source-icon\">\n @if (source === 'soundcloud') {\n <xs-icon\n [icon]=\"['fab', 'soundcloud']\"\n size=\"4xl\"\n class=\"text-orange-500\"\n />\n } @else {\n <xs-icon\n [icon]=\"['fab', 'youtube']\"\n size=\"4xl\"\n class=\"text-red-500\"\n />\n }\n </div>\n <span class=\"xs-scraper-source-name\">\n {{\n source === 'soundcloud'\n ? labels().sourceSoundcloud\n : labels().sourceYoutube\n }}\n </span>\n </button>\n }\n @if (\n showSourceSelection() &&\n allowedSources().length === 0\n ) {\n <p class=\"xs-scraper-empty\">\n No hay fuentes disponibles\n </p>\n }\n </div>\n </div>\n }\n\n @case (1) {\n <div class=\"xs-scraper-step\">\n <p class=\"xs-scraper-step-title\">\n {{ labels().urlTitle }}\n </p>\n <p class=\"xs-scraper-step-desc\">\n {{\n selectedSource() === 'soundcloud'\n ? labels().urlDescSoundcloud\n : labels().urlDescYoutube\n }}\n </p>\n <div class=\"xs-scraper-url-box\">\n <input\n class=\"xs-scraper-url-input\"\n type=\"url\"\n [placeholder]=\"\n selectedSource() === 'soundcloud'\n ? labels().urlPlaceholderSoundcloud\n : labels().urlPlaceholderYoutube\n \"\n [value]=\"urlValue()\"\n (input)=\"onUrlInput($any($event.target).value)\"\n (keydown.enter)=\"canSearch() && onSearch()\"\n />\n <div class=\"xs-scraper-search-btn\">\n <xs-button\n [label]=\"labels().searchBtn\"\n icon=\"magnifying-glass\"\n [variant]=\"primaryVariant()\"\n customClass=\"xs-scraper-btn-primary\"\n size=\"sm\"\n [disabled]=\"!canSearch()\"\n [loading]=\"loading()\"\n (onClick)=\"onSearch()\"\n />\n </div>\n </div>\n <p class=\"text-[11px] text-zinc-600 lg:text-left\">\n {{\n selectedSource() === 'soundcloud'\n ? labels().urlHintSoundcloud\n : labels().urlHintYoutube\n }}\n </p>\n @if (errorMessage()) {\n <p class=\"xs-scraper-error\">{{ errorMessage() }}</p>\n }\n <div class=\"xs-scraper-actions xs-scraper-actions-url\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n class=\"xs-scraper-btn-primary\"\n [variant]=\"isMobile() ? 'secondary' : 'primary'\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n\n <xs-button\n [label]=\"labels().continueBtn\"\n icon=\"chevron-right\"\n class=\"sm:hidden xs-scraper--soundcloud xs-scraper-btn-primary\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"onSearch()\"\n />\n </div>\n </div>\n }\n\n @case (2) {\n <div class=\"xs-scraper-step\">\n @if (loading()) {\n <div class=\"xs-scraper-loading\">\n <xs-icon\n icon=\"spinner\"\n size=\"xl\"\n class=\"xs-scraper-spin xs-scraper-spinner-icon\"\n />\n <p>{{ labels().loadingText }}</p>\n </div>\n } @else if (checkingDuplicate()) {\n <div class=\"xs-scraper-loading\">\n <xs-icon\n icon=\"spinner\"\n size=\"xl\"\n class=\"xs-scraper-spin xs-scraper-spinner-icon\"\n />\n <p>{{ labels().loadingDuplicate }}</p>\n </div>\n } @else if (duplicateInfo()?.exists) {\n <div class=\"xs-scraper-duplicate-card\">\n <div class=\"xs-scraper-duplicate-badge\">\n <xs-icon icon=\"circle-exclamation\" size=\"sm\" />\n <span>{{ labels().alreadyExistsTitle }}</span>\n </div>\n <div class=\"xs-scraper-duplicate-body\">\n <div class=\"xs-scraper-duplicate-preview\">\n @if (previewData()?.image) {\n <img\n class=\"xs-scraper-duplicate-image\"\n [class.xs-scraper-duplicate-image-round]=\"mode() !== 'track'\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"duplicateInfo()?.name || ''\"\n />\n }\n <div class=\"xs-scraper-duplicate-info\">\n <p class=\"xs-scraper-duplicate-name\">\n {{ duplicateInfo()?.name || previewData()?.name }}\n </p>\n @if (mode() === 'track' && $any(previewData())?.artist) {\n <p class=\"xs-scraper-duplicate-artist\">\n {{ $any(previewData())?.artist }}\n </p>\n }\n @if (mode() !== 'track' && $any(previewData())?.country) {\n <div class=\"flex items-center gap-2 text-sm text-zinc-400\">\n <img\n class=\"w-5 h-3.5 rounded object-cover\"\n [src]=\"$any(previewData())?.country | countryFlag\"\n [alt]=\"$any(previewData())?.country\"\n />\n <span>{{ $any(previewData())?.country | countryName }}</span>\n </div>\n }\n @if (previewData()?.style) {\n <div class=\"xs-scraper-preview-tags\">\n <span class=\"xs-scraper-tag\">{{ previewData()?.style }}</span>\n </div>\n }\n </div>\n </div>\n <p class=\"xs-scraper-duplicate-desc\">\n {{ labels().alreadyExistsDesc }}\n </p>\n </div>\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n @if (duplicateInfo()?.url) {\n <a\n [routerLink]=\"duplicateInfo()?.url\"\n class=\"xs-scraper-duplicate-link-btn\"\n >\n <xs-button\n [label]=\"labels().alreadyExistsLink\"\n icon=\"arrow-up-right-from-square\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n />\n </a>\n }\n </div>\n </div>\n } @else {\n <div class=\"xs-scraper-result-wrapper\">\n @if (mode() === 'track') {\n <div class=\"xs-scraper-preview-card\">\n <div class=\"xs-scraper-preview-header\">\n <img\n class=\"xs-scraper-preview-image\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"previewData()?.name\"\n />\n <div class=\"xs-scraper-preview-info\">\n <h3 class=\"xs-scraper-preview-title\">\n {{ previewData()?.name }}\n </h3>\n <p class=\"xs-scraper-preview-artist\">\n {{ $any(previewData())?.artist }}\n </p>\n <div class=\"xs-scraper-preview-tags\">\n <span class=\"xs-scraper-tag\">{{\n previewData()?.style\n }}</span>\n <span class=\"xs-scraper-tag\">{{\n $any(previewData())?.year\n }}</span>\n </div>\n </div>\n </div>\n </div>\n } @else {\n <div class=\"xs-scraper-preview-card\">\n <div class=\"xs-scraper-preview-header\">\n <img\n class=\"xs-scraper-preview-image xs-scraper-preview-image-round\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"previewData()?.name\"\n />\n <div class=\"xs-scraper-preview-info\">\n <h3 class=\"xs-scraper-preview-title\">\n {{ previewData()?.name }}\n </h3>\n <div\n class=\"flex items-center gap-2 text-sm text-zinc-400\"\n >\n @if ($any(previewData())?.country) {\n <img\n class=\"w-5 h-3.5 rounded object-cover\"\n [src]=\"\n $any(previewData())?.country\n | countryFlag\n \"\n [alt]=\"$any(previewData())?.country\"\n />\n }\n <span>{{\n $any(previewData())?.country\n | countryName\n }}</span>\n </div>\n <div class=\"xs-scraper-preview-tags\">\n <span class=\"xs-scraper-tag\">{{\n previewData()?.style\n }}</span>\n </div>\n </div>\n </div>\n </div>\n }\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n class=\"xs-scraper-btn-primary\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n <xs-button\n [label]=\"labels().continueBtn\"\n icon=\"chevron-right\"\n customClass=\"xs-scraper-btn-primary\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"onContinue()\"\n />\n </div>\n </div>\n }\n </div>\n }\n\n @case (3) {\n <div class=\"xs-scraper-step\">\n <div class=\"xs-scraper-form-card\">\n <div class=\"xs-scraper-form-header\">\n <xs-icon\n icon=\"check-circle\"\n size=\"lg\"\n class=\"xs-scraper-form-icon\"\n />\n <div>\n <h3 class=\"xs-scraper-form-title\">\n {{ labels().formTitle }}\n </h3>\n <p class=\"xs-scraper-form-desc\">\n {{ labels().formDesc }}\n </p>\n </div>\n </div>\n </div>\n\n <xs-formly\n [fields]=\"activeFormFields()\"\n [model]=\"formModel()\"\n (formReady)=\"onFormReady($event)\"\n />\n\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n [ariaLabel]=\"labels().backBtn\"\n icon=\"chevron-right\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n <xs-button\n [label]=\"labels().sendBtn\"\n icon=\"paper-plane\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n [disabled]=\"!formReady()\"\n (onClick)=\"onContinue()\"\n />\n </div>\n </div>\n }\n }\n </xs-stepper>\n</div>\n", styles: [".xs-send-scraper{width:100%;padding-left:0;padding-right:0}.xs-scraper-step{display:flex;width:100%;flex-direction:column;gap:1rem}@media(min-width:640px){.xs-scraper-step{gap:1.5rem}}.xs-scraper-step-title{font-size:1rem;line-height:1.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-step-title{font-size:1.125rem;line-height:1.75rem}}.xs-scraper-step-desc{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-step-desc{font-size:.875rem;line-height:1.25rem}}.xs-scraper-sources{display:flex;width:100%;flex-direction:column;gap:.75rem}@media(min-width:640px){.xs-scraper-sources{flex-direction:row;gap:1rem}}.xs-scraper-source-card{display:flex;width:100%;cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;justify-content:center;gap:.75rem;border-radius:1rem;background-color:#18181b80;padding:1.25rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1)}.xs-scraper-source-card:hover{background-color:#27272a80}.xs-scraper-source-card:active{--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media(min-width:640px){.xs-scraper-source-card{min-width:200px;flex-direction:column;gap:1rem;padding:2rem}}.xs-scraper-source-card:hover{box-shadow:0 8px 32px #0000004d}.xs-scraper-source-icon{display:flex;height:3.5rem;width:3.5rem;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-source-icon{height:5rem;width:5rem}}.xs-scraper-source-card:hover .xs-scraper-source-icon{transform:scale(1.1)}.xs-scraper-source-name{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.15em;--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-source-name{font-size:.875rem;line-height:1.25rem}}.xs-scraper-empty{text-align:center;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.xs-scraper-url-box{display:flex;width:100%;flex-direction:row;align-items:center;gap:.5rem;border-radius:.75rem;background-color:#18181b80;padding:.375rem .75rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.xs-scraper-url-box:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(239 68 68 / .2)}.xs-scraper-url-icon{display:flex;flex-shrink:0;justify-content:center}.xs-scraper-url-input{height:2rem;min-width:0px;flex:1 1 0%;border-style:none;background-color:transparent;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-scraper-url-input::placeholder{--tw-placeholder-opacity: 1;color:rgb(82 82 91 / var(--tw-placeholder-opacity, 1))}.xs-scraper-url-input{outline:2px solid transparent;outline-offset:2px}.xs-scraper-url-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.xs-scraper-search-btn{display:none;flex-shrink:0}@media(min-width:640px){.xs-scraper-search-btn{display:block}}:host-context(.xs-scraper-search-btn) xs-button .overflow-hidden{display:none!important}@media(min-width:640px){:host-context(.xs-scraper-search-btn) xs-button .overflow-hidden{display:block!important}}.xs-scraper-url-input:-webkit-autofill{-webkit-box-shadow:0 0 0 30px rgb(24,24,27) inset!important;-webkit-text-fill-color:white!important}.xs-scraper-url-input:focus{outline:none;box-shadow:none}.xs-scraper-spin{animation:scraper-spin 1s linear infinite}@keyframes scraper-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.xs-scraper-error{text-align:center;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.xs-scraper-loading{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-top:3rem;padding-bottom:3rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.xs-scraper-spinner-icon{font-size:1.875rem;line-height:2.25rem}.xs-scraper-result-wrapper{display:flex;width:100%;flex-direction:column;gap:1rem}@media(min-width:640px){.xs-scraper-result-wrapper{gap:1.5rem}}.xs-scraper-preview-card{border-radius:1rem;background-color:#18181b80;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-preview-card{padding:1.5rem}}.xs-scraper-preview-header{display:flex;flex-direction:row;align-items:flex-start;gap:1rem}@media(min-width:640px){.xs-scraper-preview-header{gap:1.25rem}}.xs-scraper-preview-image{height:4rem;width:4rem;flex-shrink:0;border-radius:.75rem;object-fit:cover}@media(min-width:640px){.xs-scraper-preview-image{height:6rem;width:6rem}}.xs-scraper-preview-image-round{border-radius:9999px}.xs-scraper-preview-info{display:flex;min-width:0px;flex-direction:column;gap:.375rem;padding-top:.125rem}@media(min-width:640px){.xs-scraper-preview-info{gap:.5rem;padding-top:.25rem}}.xs-scraper-preview-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;line-height:1.5rem;font-weight:700;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-title{font-size:1.25rem;line-height:1.75rem}}.xs-scraper-preview-artist{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-artist{font-size:.875rem;line-height:1.25rem}}.xs-scraper-preview-tags{margin-top:.25rem;display:flex;flex-wrap:wrap;gap:.375rem}@media(min-width:640px){.xs-scraper-preview-tags{gap:.5rem}}.xs-scraper-tag{border-radius:9999px;background-color:#27272a80;padding:.125rem .5rem;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.12em;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-tag{padding:.25rem .75rem}}.xs-scraper-actions{display:flex;width:100%;flex-direction:column-reverse;gap:.75rem}@media(min-width:640px){.xs-scraper-actions{flex-direction:row;justify-content:flex-end}}.xs-scraper-actions>*{width:100%}@media(min-width:640px){.xs-scraper-actions>*{width:auto}.xs-scraper-actions-url{justify-content:flex-end}.xs-scraper-actions-url>*{width:auto}}.xs-scraper-duplicate-card{display:flex;flex-direction:column;gap:1.25rem;overflow:hidden;border-radius:1rem;background-color:#18181b80}:host-context(.xs-scraper-search-btn) xs-button .xs-scraper-duplicate-card{display:none}@media(min-width:640px){:host-context(.xs-scraper-search-btn) xs-button .xs-scraper-duplicate-card{display:block}}.xs-scraper-duplicate-badge{display:flex;align-items:center;gap:.5rem;background-color:#fbbf241a;padding:.625rem 1.25rem;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em;--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-body{display:flex;flex-direction:column;gap:1rem;padding-left:1.25rem;padding-right:1.25rem;padding-bottom:.5rem}.xs-scraper-duplicate-preview{display:flex;flex-direction:row;align-items:flex-start;gap:1rem}.xs-scraper-duplicate-image{height:3.5rem;width:3.5rem;flex-shrink:0;border-radius:.75rem;object-fit:cover}.xs-scraper-duplicate-image-round{border-radius:9999px}.xs-scraper-duplicate-info{display:flex;min-width:0px;flex-direction:column;gap:.375rem}.xs-scraper-duplicate-name{font-size:1rem;line-height:1.5rem;font-weight:700;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-artist{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-desc{font-size:.75rem;line-height:1rem;line-height:1.625;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-duplicate-desc{font-size:.875rem;line-height:1.25rem}}.xs-scraper-duplicate-link-btn{text-decoration-line:none}.xs-scraper-form-card{width:100%;border-radius:1rem;background-color:#18181b80;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-form-card{padding:1.5rem}}.xs-scraper-form-header{display:flex;align-items:flex-start;gap:.75rem}@media(min-width:640px){.xs-scraper-form-header{gap:1rem}}.xs-scraper-form-icon{margin-top:.25rem;--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.xs-scraper-form-title{font-size:1rem;line-height:1.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-form-title{font-size:1.125rem;line-height:1.75rem}}.xs-scraper-form-desc{margin-top:.25rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-form-desc{font-size:.875rem;line-height:1.25rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSStepperComponent, selector: "xs-stepper", inputs: ["steps", "current", "size"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "component", type: XSFormlyComponent, selector: "xs-formly", inputs: ["layout", "gridClass", "size", "fields", "model", "options"], outputs: ["modelChange", "submit", "formReady"] }, { kind: "pipe", type: CountryFlagPipe, name: "countryFlag" }, { kind: "pipe", type: CountryNamePipe, name: "countryName" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
23546
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSSendScraperComponent, isStandalone: true, selector: "xs-send-scraper", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, allowedSources: { classPropertyName: "allowedSources", publicName: "allowedSources", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, formFields: { classPropertyName: "formFields", publicName: "formFields", isSignal: true, isRequired: false, transformFunction: null }, demoMode: { classPropertyName: "demoMode", publicName: "demoMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dataResolved: "dataResolved" }, ngImport: i0, template: "<div class=\"xs-send-scraper\">\n <xs-stepper [steps]=\"stepLabels()\" [current]=\"currentStep()\">\n @switch (currentStep()) {\n @case (0) {\n <div class=\"xs-scraper-step\">\n <p class=\"xs-scraper-step-title\">\n {{ labels().sourceTitle }}\n </p>\n @if (!showSourceSelection()) {\n <p class=\"xs-scraper-step-desc\">\n {{ labels().sourceDescSingle }}\n </p>\n }\n <div class=\"xs-scraper-sources\">\n @for (source of allowedSources(); track source) {\n <button\n class=\"xs-scraper-source-card\"\n [attr.data-source]=\"source\"\n (click)=\"selectSource(source)\"\n >\n <div class=\"xs-scraper-source-icon\">\n @if (source === 'soundcloud') {\n <xs-icon\n [icon]=\"['fab', 'soundcloud']\"\n size=\"4xl\"\n class=\"text-orange-500\"\n />\n } @else {\n <xs-icon\n [icon]=\"['fab', 'youtube']\"\n size=\"4xl\"\n class=\"text-red-500\"\n />\n }\n </div>\n <span class=\"xs-scraper-source-name\">\n {{\n source === 'soundcloud'\n ? labels().sourceSoundcloud\n : labels().sourceYoutube\n }}\n </span>\n </button>\n }\n @if (\n showSourceSelection() &&\n allowedSources().length === 0\n ) {\n <p class=\"xs-scraper-empty\">\n No hay fuentes disponibles\n </p>\n }\n </div>\n </div>\n }\n\n @case (1) {\n <div class=\"xs-scraper-step\">\n <p class=\"xs-scraper-step-title\">\n {{ labels().urlTitle }}\n </p>\n <p class=\"xs-scraper-step-desc\">\n {{\n selectedSource() === 'soundcloud'\n ? labels().urlDescSoundcloud\n : labels().urlDescYoutube\n }}\n </p>\n <div class=\"xs-scraper-url-box\">\n <input\n class=\"xs-scraper-url-input\"\n type=\"url\"\n [placeholder]=\"\n selectedSource() === 'soundcloud'\n ? labels().urlPlaceholderSoundcloud\n : labels().urlPlaceholderYoutube\n \"\n [value]=\"urlValue()\"\n (input)=\"onUrlInput($any($event.target).value)\"\n (keydown.enter)=\"canSearch() && onSearch()\"\n />\n <div class=\"xs-scraper-search-btn\">\n <xs-button\n [label]=\"labels().searchBtn\"\n icon=\"magnifying-glass\"\n [variant]=\"primaryVariant()\"\n customClass=\"xs-scraper-btn-primary\"\n size=\"sm\"\n [disabled]=\"!canSearch()\"\n [loading]=\"loading()\"\n (onClick)=\"onSearch()\"\n />\n </div>\n </div>\n <p class=\"text-[11px] text-zinc-600 lg:text-left\">\n {{\n selectedSource() === 'soundcloud'\n ? labels().urlHintSoundcloud\n : labels().urlHintYoutube\n }}\n </p>\n @if (errorMessage()) {\n <p class=\"xs-scraper-error\">{{ errorMessage() }}</p>\n }\n <div class=\"xs-scraper-actions xs-scraper-actions-url\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n class=\"xs-scraper-btn-primary\"\n [variant]=\"isMobile() ? 'secondary' : 'primary'\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n\n <xs-button\n [label]=\"labels().continueBtn\"\n icon=\"chevron-right\"\n class=\"sm:hidden xs-scraper--soundcloud xs-scraper-btn-primary\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"onSearch()\"\n />\n </div>\n </div>\n }\n\n @case (2) {\n <div class=\"xs-scraper-step\">\n @if (loading()) {\n <div class=\"xs-scraper-loading\">\n <xs-icon\n icon=\"spinner\"\n size=\"xl\"\n class=\"xs-scraper-spin xs-scraper-spinner-icon\"\n />\n <p>{{ labels().loadingText }}</p>\n </div>\n } @else if (checkingDuplicate()) {\n <div class=\"xs-scraper-loading\">\n <xs-icon\n icon=\"spinner\"\n size=\"xl\"\n class=\"xs-scraper-spin xs-scraper-spinner-icon\"\n />\n <p>{{ labels().loadingDuplicate }}</p>\n </div>\n } @else if (duplicateInfo()?.exists) {\n <div class=\"xs-scraper-duplicate-card\">\n <div class=\"xs-scraper-duplicate-badge\">\n <xs-icon icon=\"circle-exclamation\" size=\"sm\" />\n <span>{{ labels().alreadyExistsTitle }}</span>\n </div>\n <div class=\"xs-scraper-duplicate-body\">\n <div class=\"xs-scraper-duplicate-preview\">\n @if (previewData()?.image) {\n <img\n class=\"xs-scraper-duplicate-image\"\n [class.xs-scraper-duplicate-image-round]=\"mode() !== 'track'\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"duplicateInfo()?.name || ''\"\n />\n }\n <div class=\"xs-scraper-duplicate-info\">\n <p class=\"xs-scraper-duplicate-name\">\n {{ duplicateInfo()?.name || previewData()?.name }}\n </p>\n @if (mode() === 'track' && $any(previewData())?.artist) {\n <p class=\"xs-scraper-duplicate-artist\">\n {{ $any(previewData())?.artist }}\n </p>\n }\n @if (\n mode() !== 'track' &&\n ($any(previewData())?.country || previewData()?.style)\n ) {\n <div class=\"xs-scraper-badges\">\n @if ($any(previewData())?.country) {\n <span class=\"xs-scraper-badge\">\n <img\n class=\"w-3 h-3 rounded-sm object-cover\"\n [src]=\"$any(previewData())?.country | countryFlag\"\n [alt]=\"$any(previewData())?.country\"\n />\n <span>{{\n $any(previewData())?.country | countryName\n }}</span>\n </span>\n }\n @if (previewData()?.style) {\n <span class=\"xs-scraper-badge\">{{\n previewData()?.style\n }}</span>\n }\n </div>\n }\n </div>\n </div>\n <p class=\"xs-scraper-duplicate-desc\">\n {{ labels().alreadyExistsDesc }}\n </p>\n </div>\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n @if (duplicateInfo()?.url) {\n <a\n [routerLink]=\"duplicateInfo()?.url\"\n class=\"xs-scraper-duplicate-link-btn\"\n >\n <xs-button\n [label]=\"labels().alreadyExistsLink\"\n icon=\"arrow-up-right-from-square\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n />\n </a>\n }\n </div>\n </div>\n } @else {\n <div class=\"xs-scraper-result-wrapper\">\n @if (mode() === 'track') {\n <div class=\"xs-scraper-preview-card\">\n <div class=\"xs-scraper-preview-header\">\n <img\n class=\"xs-scraper-preview-image\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"previewData()?.name\"\n />\n <div class=\"xs-scraper-preview-info\">\n <h3 class=\"xs-scraper-preview-title\">\n {{ previewData()?.name }}\n </h3>\n <p class=\"xs-scraper-preview-artist\">\n {{ $any(previewData())?.artist }}\n </p>\n @if (\n previewData()?.style || $any(previewData())?.year\n ) {\n <div class=\"xs-scraper-preview-tags\">\n @if (previewData()?.style) {\n <span class=\"xs-scraper-tag\">{{\n previewData()?.style\n }}</span>\n }\n @if ($any(previewData())?.year) {\n <span class=\"xs-scraper-tag\">{{\n $any(previewData())?.year\n }}</span>\n }\n </div>\n }\n </div>\n </div>\n </div>\n } @else {\n <div class=\"xs-scraper-preview-card\">\n <div class=\"xs-scraper-preview-header\">\n <img\n class=\"xs-scraper-preview-image xs-scraper-preview-image-round\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"previewData()?.name\"\n />\n <div class=\"xs-scraper-preview-info\">\n @if (\n $any(previewData())?.country || previewData()?.style\n ) {\n <div class=\"xs-scraper-badges\">\n @if ($any(previewData())?.country) {\n <span class=\"xs-scraper-badge\">\n <img\n class=\"w-3 h-3 rounded-sm object-cover\"\n [src]=\"\n $any(previewData())?.country\n | countryFlag\n \"\n [alt]=\"$any(previewData())?.country\"\n />\n <span>{{\n $any(previewData())?.country\n | countryName\n }}</span>\n </span>\n }\n @if (previewData()?.style) {\n <span class=\"xs-scraper-badge\">{{\n previewData()?.style\n }}</span>\n }\n </div>\n }\n <h3 class=\"xs-scraper-profile-name\">\n {{ previewData()?.name }}\n </h3>\n @if ($any(previewData())?.soundcloudUrl) {\n <a\n class=\"xs-scraper-badge xs-scraper-badge-social\"\n [href]=\"$any(previewData())?.soundcloudUrl\"\n target=\"_blank\"\n rel=\"noopener\"\n >\n <xs-icon\n [icon]=\"['fab', 'soundcloud']\"\n size=\"xs\"\n class=\"text-orange-500\"\n />\n <span>soundcloud</span>\n </a>\n }\n </div>\n </div>\n @if (previewData()?.info) {\n <p class=\"xs-scraper-preview-bio\">\n {{ previewData()?.info }}\n </p>\n }\n </div>\n }\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n class=\"xs-scraper-btn-primary\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n <xs-button\n [label]=\"labels().continueBtn\"\n icon=\"chevron-right\"\n customClass=\"xs-scraper-btn-primary\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"onContinue()\"\n />\n </div>\n </div>\n }\n </div>\n }\n\n @case (3) {\n <div class=\"xs-scraper-step\">\n <div class=\"xs-scraper-form-card\">\n <div class=\"xs-scraper-form-header\">\n <xs-icon\n icon=\"check-circle\"\n size=\"lg\"\n class=\"xs-scraper-form-icon\"\n />\n <div>\n <h3 class=\"xs-scraper-form-title\">\n {{ labels().formTitle }}\n </h3>\n <p class=\"xs-scraper-form-desc\">\n {{ labels().formDesc }}\n </p>\n </div>\n </div>\n </div>\n\n <xs-formly\n [fields]=\"activeFormFields()\"\n [model]=\"formModel()\"\n (formReady)=\"onFormReady($event)\"\n />\n\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n [ariaLabel]=\"labels().backBtn\"\n icon=\"chevron-right\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n <xs-button\n [label]=\"labels().sendBtn\"\n icon=\"paper-plane\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n [disabled]=\"!formReady()\"\n (onClick)=\"onContinue()\"\n />\n </div>\n </div>\n }\n }\n </xs-stepper>\n</div>\n", styles: [".xs-send-scraper{width:100%;padding-left:0;padding-right:0}.xs-scraper-step{display:flex;width:100%;flex-direction:column;gap:1rem}@media(min-width:640px){.xs-scraper-step{gap:1.5rem}}.xs-scraper-step-title{font-size:1rem;line-height:1.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-step-title{font-size:1.125rem;line-height:1.75rem}}.xs-scraper-step-desc{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-step-desc{font-size:.875rem;line-height:1.25rem}}.xs-scraper-sources{display:flex;width:100%;flex-direction:column;gap:.75rem}@media(min-width:640px){.xs-scraper-sources{flex-direction:row;gap:1rem}}.xs-scraper-source-card{display:flex;width:100%;cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;justify-content:center;gap:.75rem;border-radius:1rem;background-color:#18181b80;padding:1.25rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1)}.xs-scraper-source-card:hover{background-color:#27272a80}.xs-scraper-source-card:active{--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media(min-width:640px){.xs-scraper-source-card{min-width:200px;flex-direction:column;gap:1rem;padding:2rem}}.xs-scraper-source-card:hover{box-shadow:0 8px 32px #0000004d}.xs-scraper-source-icon{display:flex;height:3.5rem;width:3.5rem;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-source-icon{height:5rem;width:5rem}}.xs-scraper-source-card:hover .xs-scraper-source-icon{transform:scale(1.1)}.xs-scraper-source-name{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.15em;--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-source-name{font-size:.875rem;line-height:1.25rem}}.xs-scraper-empty{text-align:center;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.xs-scraper-url-box{display:flex;width:100%;flex-direction:row;align-items:center;gap:.5rem;border-radius:.75rem;background-color:#18181b80;padding:.375rem .75rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.xs-scraper-url-box:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(239 68 68 / .2)}.xs-scraper-url-icon{display:flex;flex-shrink:0;justify-content:center}.xs-scraper-url-input{height:2rem;min-width:0px;flex:1 1 0%;border-style:none;background-color:transparent;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-scraper-url-input::placeholder{--tw-placeholder-opacity: 1;color:rgb(82 82 91 / var(--tw-placeholder-opacity, 1))}.xs-scraper-url-input{outline:2px solid transparent;outline-offset:2px}.xs-scraper-url-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.xs-scraper-search-btn{display:none;flex-shrink:0}@media(min-width:640px){.xs-scraper-search-btn{display:block}}:host-context(.xs-scraper-search-btn) xs-button .overflow-hidden{display:none!important}@media(min-width:640px){:host-context(.xs-scraper-search-btn) xs-button .overflow-hidden{display:block!important}}.xs-scraper-url-input:-webkit-autofill{-webkit-box-shadow:0 0 0 30px rgb(24,24,27) inset!important;-webkit-text-fill-color:white!important}.xs-scraper-url-input:focus{outline:none;box-shadow:none}.xs-scraper-spin{animation:scraper-spin 1s linear infinite}@keyframes scraper-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.xs-scraper-error{text-align:center;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.xs-scraper-loading{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-top:3rem;padding-bottom:3rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.xs-scraper-spinner-icon{font-size:1.875rem;line-height:2.25rem}.xs-scraper-result-wrapper{display:flex;width:100%;flex-direction:column;gap:1rem}@media(min-width:640px){.xs-scraper-result-wrapper{gap:1.5rem}}.xs-scraper-preview-card{border-radius:1rem;background-color:#18181b80;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-preview-card{padding:1.5rem}}.xs-scraper-preview-header{display:flex;flex-direction:row;align-items:flex-start;gap:1rem}@media(min-width:640px){.xs-scraper-preview-header{gap:1.25rem}}.xs-scraper-preview-image{height:4rem;width:4rem;flex-shrink:0;border-radius:.75rem;object-fit:cover}@media(min-width:640px){.xs-scraper-preview-image{height:6rem;width:6rem}}.xs-scraper-preview-image-round{border-radius:9999px}.xs-scraper-preview-info{display:flex;min-width:0px;flex-direction:column;gap:.375rem;padding-top:.125rem}@media(min-width:640px){.xs-scraper-preview-info{gap:.5rem;padding-top:.25rem}}.xs-scraper-preview-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;line-height:1.5rem;font-weight:700;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-title{font-size:1.25rem;line-height:1.75rem}}.xs-scraper-preview-artist{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-artist{font-size:.875rem;line-height:1.25rem}}.xs-scraper-preview-tags{margin-top:.25rem;display:flex;flex-wrap:wrap;gap:.375rem}@media(min-width:640px){.xs-scraper-preview-tags{gap:.5rem}}.xs-scraper-preview-bio{margin-top:.75rem;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:.75rem;line-height:1rem;line-height:1.625;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-bio{font-size:.875rem;line-height:1.25rem}}.xs-scraper-preview-link{margin-top:.75rem;display:flex;min-width:0px;align-items:center;gap:.375rem;font-size:11px;color:#fb923ce6;text-decoration-line:none;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.xs-scraper-preview-link:hover{--tw-text-opacity: 1;color:rgb(253 186 116 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-link{font-size:.75rem;line-height:1rem}}.xs-scraper-badges{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.xs-scraper-badge{display:flex;align-items:center;gap:.5rem;white-space:nowrap;border-radius:.375rem;background-color:#18181b80;padding:.375rem .75rem;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.2em;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.xs-scraper-badge-social{align-self:flex-start;padding-top:.5rem;padding-bottom:.5rem;text-decoration-line:none;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.xs-scraper-badge-social:hover{background-color:#27272a99}.xs-scraper-profile-name{overflow-wrap:break-word;font-size:1.25rem;line-height:1.75rem;font-weight:900;text-transform:uppercase;line-height:1;letter-spacing:-.05em;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-profile-name{font-size:1.5rem;line-height:2rem}}.xs-scraper-tag{border-radius:9999px;background-color:#27272a80;padding:.125rem .5rem;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.12em;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-tag{padding:.25rem .75rem}}.xs-scraper-actions{display:flex;width:100%;flex-direction:column-reverse;gap:.75rem}@media(min-width:640px){.xs-scraper-actions{flex-direction:row;justify-content:flex-end}}.xs-scraper-actions>*{width:100%}@media(min-width:640px){.xs-scraper-actions>*{width:auto}.xs-scraper-actions-url{justify-content:flex-end}.xs-scraper-actions-url>*{width:auto}}.xs-scraper-duplicate-card{display:flex;flex-direction:column;gap:1.25rem;overflow:hidden;border-radius:1rem;background-color:#18181b80}:host-context(.xs-scraper-search-btn) xs-button .xs-scraper-duplicate-card{display:none}@media(min-width:640px){:host-context(.xs-scraper-search-btn) xs-button .xs-scraper-duplicate-card{display:block}}.xs-scraper-duplicate-badge{display:flex;align-items:center;gap:.5rem;background-color:#fbbf241a;padding:.625rem 1.25rem;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em;--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-body{display:flex;flex-direction:column;gap:1rem;padding-left:1.25rem;padding-right:1.25rem;padding-bottom:.5rem}.xs-scraper-duplicate-preview{display:flex;flex-direction:row;align-items:flex-start;gap:1rem}.xs-scraper-duplicate-image{height:3.5rem;width:3.5rem;flex-shrink:0;border-radius:.75rem;object-fit:cover}.xs-scraper-duplicate-image-round{border-radius:9999px}.xs-scraper-duplicate-info{display:flex;min-width:0px;flex-direction:column;gap:.375rem}.xs-scraper-duplicate-name{font-size:1rem;line-height:1.5rem;font-weight:700;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-artist{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-desc{font-size:.75rem;line-height:1rem;line-height:1.625;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-duplicate-desc{font-size:.875rem;line-height:1.25rem}}.xs-scraper-duplicate-link-btn{text-decoration-line:none}.xs-scraper-form-card{width:100%;border-radius:1rem;background-color:#18181b80;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-form-card{padding:1.5rem}}.xs-scraper-form-header{display:flex;align-items:flex-start;gap:.75rem}@media(min-width:640px){.xs-scraper-form-header{gap:1rem}}.xs-scraper-form-icon{margin-top:.25rem;--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.xs-scraper-form-title{font-size:1rem;line-height:1.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-form-title{font-size:1.125rem;line-height:1.75rem}}.xs-scraper-form-desc{margin-top:.25rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-form-desc{font-size:.875rem;line-height:1.25rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSStepperComponent, selector: "xs-stepper", inputs: ["steps", "current", "size"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "component", type: XSFormlyComponent, selector: "xs-formly", inputs: ["layout", "gridClass", "size", "fields", "model", "options"], outputs: ["modelChange", "submit", "formReady"] }, { kind: "pipe", type: CountryFlagPipe, name: "countryFlag" }, { kind: "pipe", type: CountryNamePipe, name: "countryName" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
23440
23547
  }
23441
23548
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSSendScraperComponent, decorators: [{
23442
23549
  type: Component,
@@ -23450,7 +23557,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
23450
23557
  XSFormlyComponent,
23451
23558
  CountryFlagPipe,
23452
23559
  CountryNamePipe,
23453
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"xs-send-scraper\">\n <xs-stepper [steps]=\"stepLabels()\" [current]=\"currentStep()\">\n @switch (currentStep()) {\n @case (0) {\n <div class=\"xs-scraper-step\">\n <p class=\"xs-scraper-step-title\">\n {{ labels().sourceTitle }}\n </p>\n @if (!showSourceSelection()) {\n <p class=\"xs-scraper-step-desc\">\n {{ labels().sourceDescSingle }}\n </p>\n }\n <div class=\"xs-scraper-sources\">\n @for (source of allowedSources(); track source) {\n <button\n class=\"xs-scraper-source-card\"\n [attr.data-source]=\"source\"\n (click)=\"selectSource(source)\"\n >\n <div class=\"xs-scraper-source-icon\">\n @if (source === 'soundcloud') {\n <xs-icon\n [icon]=\"['fab', 'soundcloud']\"\n size=\"4xl\"\n class=\"text-orange-500\"\n />\n } @else {\n <xs-icon\n [icon]=\"['fab', 'youtube']\"\n size=\"4xl\"\n class=\"text-red-500\"\n />\n }\n </div>\n <span class=\"xs-scraper-source-name\">\n {{\n source === 'soundcloud'\n ? labels().sourceSoundcloud\n : labels().sourceYoutube\n }}\n </span>\n </button>\n }\n @if (\n showSourceSelection() &&\n allowedSources().length === 0\n ) {\n <p class=\"xs-scraper-empty\">\n No hay fuentes disponibles\n </p>\n }\n </div>\n </div>\n }\n\n @case (1) {\n <div class=\"xs-scraper-step\">\n <p class=\"xs-scraper-step-title\">\n {{ labels().urlTitle }}\n </p>\n <p class=\"xs-scraper-step-desc\">\n {{\n selectedSource() === 'soundcloud'\n ? labels().urlDescSoundcloud\n : labels().urlDescYoutube\n }}\n </p>\n <div class=\"xs-scraper-url-box\">\n <input\n class=\"xs-scraper-url-input\"\n type=\"url\"\n [placeholder]=\"\n selectedSource() === 'soundcloud'\n ? labels().urlPlaceholderSoundcloud\n : labels().urlPlaceholderYoutube\n \"\n [value]=\"urlValue()\"\n (input)=\"onUrlInput($any($event.target).value)\"\n (keydown.enter)=\"canSearch() && onSearch()\"\n />\n <div class=\"xs-scraper-search-btn\">\n <xs-button\n [label]=\"labels().searchBtn\"\n icon=\"magnifying-glass\"\n [variant]=\"primaryVariant()\"\n customClass=\"xs-scraper-btn-primary\"\n size=\"sm\"\n [disabled]=\"!canSearch()\"\n [loading]=\"loading()\"\n (onClick)=\"onSearch()\"\n />\n </div>\n </div>\n <p class=\"text-[11px] text-zinc-600 lg:text-left\">\n {{\n selectedSource() === 'soundcloud'\n ? labels().urlHintSoundcloud\n : labels().urlHintYoutube\n }}\n </p>\n @if (errorMessage()) {\n <p class=\"xs-scraper-error\">{{ errorMessage() }}</p>\n }\n <div class=\"xs-scraper-actions xs-scraper-actions-url\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n class=\"xs-scraper-btn-primary\"\n [variant]=\"isMobile() ? 'secondary' : 'primary'\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n\n <xs-button\n [label]=\"labels().continueBtn\"\n icon=\"chevron-right\"\n class=\"sm:hidden xs-scraper--soundcloud xs-scraper-btn-primary\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"onSearch()\"\n />\n </div>\n </div>\n }\n\n @case (2) {\n <div class=\"xs-scraper-step\">\n @if (loading()) {\n <div class=\"xs-scraper-loading\">\n <xs-icon\n icon=\"spinner\"\n size=\"xl\"\n class=\"xs-scraper-spin xs-scraper-spinner-icon\"\n />\n <p>{{ labels().loadingText }}</p>\n </div>\n } @else if (checkingDuplicate()) {\n <div class=\"xs-scraper-loading\">\n <xs-icon\n icon=\"spinner\"\n size=\"xl\"\n class=\"xs-scraper-spin xs-scraper-spinner-icon\"\n />\n <p>{{ labels().loadingDuplicate }}</p>\n </div>\n } @else if (duplicateInfo()?.exists) {\n <div class=\"xs-scraper-duplicate-card\">\n <div class=\"xs-scraper-duplicate-badge\">\n <xs-icon icon=\"circle-exclamation\" size=\"sm\" />\n <span>{{ labels().alreadyExistsTitle }}</span>\n </div>\n <div class=\"xs-scraper-duplicate-body\">\n <div class=\"xs-scraper-duplicate-preview\">\n @if (previewData()?.image) {\n <img\n class=\"xs-scraper-duplicate-image\"\n [class.xs-scraper-duplicate-image-round]=\"mode() !== 'track'\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"duplicateInfo()?.name || ''\"\n />\n }\n <div class=\"xs-scraper-duplicate-info\">\n <p class=\"xs-scraper-duplicate-name\">\n {{ duplicateInfo()?.name || previewData()?.name }}\n </p>\n @if (mode() === 'track' && $any(previewData())?.artist) {\n <p class=\"xs-scraper-duplicate-artist\">\n {{ $any(previewData())?.artist }}\n </p>\n }\n @if (mode() !== 'track' && $any(previewData())?.country) {\n <div class=\"flex items-center gap-2 text-sm text-zinc-400\">\n <img\n class=\"w-5 h-3.5 rounded object-cover\"\n [src]=\"$any(previewData())?.country | countryFlag\"\n [alt]=\"$any(previewData())?.country\"\n />\n <span>{{ $any(previewData())?.country | countryName }}</span>\n </div>\n }\n @if (previewData()?.style) {\n <div class=\"xs-scraper-preview-tags\">\n <span class=\"xs-scraper-tag\">{{ previewData()?.style }}</span>\n </div>\n }\n </div>\n </div>\n <p class=\"xs-scraper-duplicate-desc\">\n {{ labels().alreadyExistsDesc }}\n </p>\n </div>\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n @if (duplicateInfo()?.url) {\n <a\n [routerLink]=\"duplicateInfo()?.url\"\n class=\"xs-scraper-duplicate-link-btn\"\n >\n <xs-button\n [label]=\"labels().alreadyExistsLink\"\n icon=\"arrow-up-right-from-square\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n />\n </a>\n }\n </div>\n </div>\n } @else {\n <div class=\"xs-scraper-result-wrapper\">\n @if (mode() === 'track') {\n <div class=\"xs-scraper-preview-card\">\n <div class=\"xs-scraper-preview-header\">\n <img\n class=\"xs-scraper-preview-image\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"previewData()?.name\"\n />\n <div class=\"xs-scraper-preview-info\">\n <h3 class=\"xs-scraper-preview-title\">\n {{ previewData()?.name }}\n </h3>\n <p class=\"xs-scraper-preview-artist\">\n {{ $any(previewData())?.artist }}\n </p>\n <div class=\"xs-scraper-preview-tags\">\n <span class=\"xs-scraper-tag\">{{\n previewData()?.style\n }}</span>\n <span class=\"xs-scraper-tag\">{{\n $any(previewData())?.year\n }}</span>\n </div>\n </div>\n </div>\n </div>\n } @else {\n <div class=\"xs-scraper-preview-card\">\n <div class=\"xs-scraper-preview-header\">\n <img\n class=\"xs-scraper-preview-image xs-scraper-preview-image-round\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"previewData()?.name\"\n />\n <div class=\"xs-scraper-preview-info\">\n <h3 class=\"xs-scraper-preview-title\">\n {{ previewData()?.name }}\n </h3>\n <div\n class=\"flex items-center gap-2 text-sm text-zinc-400\"\n >\n @if ($any(previewData())?.country) {\n <img\n class=\"w-5 h-3.5 rounded object-cover\"\n [src]=\"\n $any(previewData())?.country\n | countryFlag\n \"\n [alt]=\"$any(previewData())?.country\"\n />\n }\n <span>{{\n $any(previewData())?.country\n | countryName\n }}</span>\n </div>\n <div class=\"xs-scraper-preview-tags\">\n <span class=\"xs-scraper-tag\">{{\n previewData()?.style\n }}</span>\n </div>\n </div>\n </div>\n </div>\n }\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n class=\"xs-scraper-btn-primary\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n <xs-button\n [label]=\"labels().continueBtn\"\n icon=\"chevron-right\"\n customClass=\"xs-scraper-btn-primary\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"onContinue()\"\n />\n </div>\n </div>\n }\n </div>\n }\n\n @case (3) {\n <div class=\"xs-scraper-step\">\n <div class=\"xs-scraper-form-card\">\n <div class=\"xs-scraper-form-header\">\n <xs-icon\n icon=\"check-circle\"\n size=\"lg\"\n class=\"xs-scraper-form-icon\"\n />\n <div>\n <h3 class=\"xs-scraper-form-title\">\n {{ labels().formTitle }}\n </h3>\n <p class=\"xs-scraper-form-desc\">\n {{ labels().formDesc }}\n </p>\n </div>\n </div>\n </div>\n\n <xs-formly\n [fields]=\"activeFormFields()\"\n [model]=\"formModel()\"\n (formReady)=\"onFormReady($event)\"\n />\n\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n [ariaLabel]=\"labels().backBtn\"\n icon=\"chevron-right\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n <xs-button\n [label]=\"labels().sendBtn\"\n icon=\"paper-plane\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n [disabled]=\"!formReady()\"\n (onClick)=\"onContinue()\"\n />\n </div>\n </div>\n }\n }\n </xs-stepper>\n</div>\n", styles: [".xs-send-scraper{width:100%;padding-left:0;padding-right:0}.xs-scraper-step{display:flex;width:100%;flex-direction:column;gap:1rem}@media(min-width:640px){.xs-scraper-step{gap:1.5rem}}.xs-scraper-step-title{font-size:1rem;line-height:1.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-step-title{font-size:1.125rem;line-height:1.75rem}}.xs-scraper-step-desc{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-step-desc{font-size:.875rem;line-height:1.25rem}}.xs-scraper-sources{display:flex;width:100%;flex-direction:column;gap:.75rem}@media(min-width:640px){.xs-scraper-sources{flex-direction:row;gap:1rem}}.xs-scraper-source-card{display:flex;width:100%;cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;justify-content:center;gap:.75rem;border-radius:1rem;background-color:#18181b80;padding:1.25rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1)}.xs-scraper-source-card:hover{background-color:#27272a80}.xs-scraper-source-card:active{--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media(min-width:640px){.xs-scraper-source-card{min-width:200px;flex-direction:column;gap:1rem;padding:2rem}}.xs-scraper-source-card:hover{box-shadow:0 8px 32px #0000004d}.xs-scraper-source-icon{display:flex;height:3.5rem;width:3.5rem;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-source-icon{height:5rem;width:5rem}}.xs-scraper-source-card:hover .xs-scraper-source-icon{transform:scale(1.1)}.xs-scraper-source-name{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.15em;--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-source-name{font-size:.875rem;line-height:1.25rem}}.xs-scraper-empty{text-align:center;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.xs-scraper-url-box{display:flex;width:100%;flex-direction:row;align-items:center;gap:.5rem;border-radius:.75rem;background-color:#18181b80;padding:.375rem .75rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.xs-scraper-url-box:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(239 68 68 / .2)}.xs-scraper-url-icon{display:flex;flex-shrink:0;justify-content:center}.xs-scraper-url-input{height:2rem;min-width:0px;flex:1 1 0%;border-style:none;background-color:transparent;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-scraper-url-input::placeholder{--tw-placeholder-opacity: 1;color:rgb(82 82 91 / var(--tw-placeholder-opacity, 1))}.xs-scraper-url-input{outline:2px solid transparent;outline-offset:2px}.xs-scraper-url-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.xs-scraper-search-btn{display:none;flex-shrink:0}@media(min-width:640px){.xs-scraper-search-btn{display:block}}:host-context(.xs-scraper-search-btn) xs-button .overflow-hidden{display:none!important}@media(min-width:640px){:host-context(.xs-scraper-search-btn) xs-button .overflow-hidden{display:block!important}}.xs-scraper-url-input:-webkit-autofill{-webkit-box-shadow:0 0 0 30px rgb(24,24,27) inset!important;-webkit-text-fill-color:white!important}.xs-scraper-url-input:focus{outline:none;box-shadow:none}.xs-scraper-spin{animation:scraper-spin 1s linear infinite}@keyframes scraper-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.xs-scraper-error{text-align:center;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.xs-scraper-loading{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-top:3rem;padding-bottom:3rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.xs-scraper-spinner-icon{font-size:1.875rem;line-height:2.25rem}.xs-scraper-result-wrapper{display:flex;width:100%;flex-direction:column;gap:1rem}@media(min-width:640px){.xs-scraper-result-wrapper{gap:1.5rem}}.xs-scraper-preview-card{border-radius:1rem;background-color:#18181b80;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-preview-card{padding:1.5rem}}.xs-scraper-preview-header{display:flex;flex-direction:row;align-items:flex-start;gap:1rem}@media(min-width:640px){.xs-scraper-preview-header{gap:1.25rem}}.xs-scraper-preview-image{height:4rem;width:4rem;flex-shrink:0;border-radius:.75rem;object-fit:cover}@media(min-width:640px){.xs-scraper-preview-image{height:6rem;width:6rem}}.xs-scraper-preview-image-round{border-radius:9999px}.xs-scraper-preview-info{display:flex;min-width:0px;flex-direction:column;gap:.375rem;padding-top:.125rem}@media(min-width:640px){.xs-scraper-preview-info{gap:.5rem;padding-top:.25rem}}.xs-scraper-preview-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;line-height:1.5rem;font-weight:700;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-title{font-size:1.25rem;line-height:1.75rem}}.xs-scraper-preview-artist{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-artist{font-size:.875rem;line-height:1.25rem}}.xs-scraper-preview-tags{margin-top:.25rem;display:flex;flex-wrap:wrap;gap:.375rem}@media(min-width:640px){.xs-scraper-preview-tags{gap:.5rem}}.xs-scraper-tag{border-radius:9999px;background-color:#27272a80;padding:.125rem .5rem;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.12em;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-tag{padding:.25rem .75rem}}.xs-scraper-actions{display:flex;width:100%;flex-direction:column-reverse;gap:.75rem}@media(min-width:640px){.xs-scraper-actions{flex-direction:row;justify-content:flex-end}}.xs-scraper-actions>*{width:100%}@media(min-width:640px){.xs-scraper-actions>*{width:auto}.xs-scraper-actions-url{justify-content:flex-end}.xs-scraper-actions-url>*{width:auto}}.xs-scraper-duplicate-card{display:flex;flex-direction:column;gap:1.25rem;overflow:hidden;border-radius:1rem;background-color:#18181b80}:host-context(.xs-scraper-search-btn) xs-button .xs-scraper-duplicate-card{display:none}@media(min-width:640px){:host-context(.xs-scraper-search-btn) xs-button .xs-scraper-duplicate-card{display:block}}.xs-scraper-duplicate-badge{display:flex;align-items:center;gap:.5rem;background-color:#fbbf241a;padding:.625rem 1.25rem;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em;--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-body{display:flex;flex-direction:column;gap:1rem;padding-left:1.25rem;padding-right:1.25rem;padding-bottom:.5rem}.xs-scraper-duplicate-preview{display:flex;flex-direction:row;align-items:flex-start;gap:1rem}.xs-scraper-duplicate-image{height:3.5rem;width:3.5rem;flex-shrink:0;border-radius:.75rem;object-fit:cover}.xs-scraper-duplicate-image-round{border-radius:9999px}.xs-scraper-duplicate-info{display:flex;min-width:0px;flex-direction:column;gap:.375rem}.xs-scraper-duplicate-name{font-size:1rem;line-height:1.5rem;font-weight:700;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-artist{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-desc{font-size:.75rem;line-height:1rem;line-height:1.625;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-duplicate-desc{font-size:.875rem;line-height:1.25rem}}.xs-scraper-duplicate-link-btn{text-decoration-line:none}.xs-scraper-form-card{width:100%;border-radius:1rem;background-color:#18181b80;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-form-card{padding:1.5rem}}.xs-scraper-form-header{display:flex;align-items:flex-start;gap:.75rem}@media(min-width:640px){.xs-scraper-form-header{gap:1rem}}.xs-scraper-form-icon{margin-top:.25rem;--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.xs-scraper-form-title{font-size:1rem;line-height:1.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-form-title{font-size:1.125rem;line-height:1.75rem}}.xs-scraper-form-desc{margin-top:.25rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-form-desc{font-size:.875rem;line-height:1.25rem}}\n"] }]
23560
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"xs-send-scraper\">\n <xs-stepper [steps]=\"stepLabels()\" [current]=\"currentStep()\">\n @switch (currentStep()) {\n @case (0) {\n <div class=\"xs-scraper-step\">\n <p class=\"xs-scraper-step-title\">\n {{ labels().sourceTitle }}\n </p>\n @if (!showSourceSelection()) {\n <p class=\"xs-scraper-step-desc\">\n {{ labels().sourceDescSingle }}\n </p>\n }\n <div class=\"xs-scraper-sources\">\n @for (source of allowedSources(); track source) {\n <button\n class=\"xs-scraper-source-card\"\n [attr.data-source]=\"source\"\n (click)=\"selectSource(source)\"\n >\n <div class=\"xs-scraper-source-icon\">\n @if (source === 'soundcloud') {\n <xs-icon\n [icon]=\"['fab', 'soundcloud']\"\n size=\"4xl\"\n class=\"text-orange-500\"\n />\n } @else {\n <xs-icon\n [icon]=\"['fab', 'youtube']\"\n size=\"4xl\"\n class=\"text-red-500\"\n />\n }\n </div>\n <span class=\"xs-scraper-source-name\">\n {{\n source === 'soundcloud'\n ? labels().sourceSoundcloud\n : labels().sourceYoutube\n }}\n </span>\n </button>\n }\n @if (\n showSourceSelection() &&\n allowedSources().length === 0\n ) {\n <p class=\"xs-scraper-empty\">\n No hay fuentes disponibles\n </p>\n }\n </div>\n </div>\n }\n\n @case (1) {\n <div class=\"xs-scraper-step\">\n <p class=\"xs-scraper-step-title\">\n {{ labels().urlTitle }}\n </p>\n <p class=\"xs-scraper-step-desc\">\n {{\n selectedSource() === 'soundcloud'\n ? labels().urlDescSoundcloud\n : labels().urlDescYoutube\n }}\n </p>\n <div class=\"xs-scraper-url-box\">\n <input\n class=\"xs-scraper-url-input\"\n type=\"url\"\n [placeholder]=\"\n selectedSource() === 'soundcloud'\n ? labels().urlPlaceholderSoundcloud\n : labels().urlPlaceholderYoutube\n \"\n [value]=\"urlValue()\"\n (input)=\"onUrlInput($any($event.target).value)\"\n (keydown.enter)=\"canSearch() && onSearch()\"\n />\n <div class=\"xs-scraper-search-btn\">\n <xs-button\n [label]=\"labels().searchBtn\"\n icon=\"magnifying-glass\"\n [variant]=\"primaryVariant()\"\n customClass=\"xs-scraper-btn-primary\"\n size=\"sm\"\n [disabled]=\"!canSearch()\"\n [loading]=\"loading()\"\n (onClick)=\"onSearch()\"\n />\n </div>\n </div>\n <p class=\"text-[11px] text-zinc-600 lg:text-left\">\n {{\n selectedSource() === 'soundcloud'\n ? labels().urlHintSoundcloud\n : labels().urlHintYoutube\n }}\n </p>\n @if (errorMessage()) {\n <p class=\"xs-scraper-error\">{{ errorMessage() }}</p>\n }\n <div class=\"xs-scraper-actions xs-scraper-actions-url\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n class=\"xs-scraper-btn-primary\"\n [variant]=\"isMobile() ? 'secondary' : 'primary'\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n\n <xs-button\n [label]=\"labels().continueBtn\"\n icon=\"chevron-right\"\n class=\"sm:hidden xs-scraper--soundcloud xs-scraper-btn-primary\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"onSearch()\"\n />\n </div>\n </div>\n }\n\n @case (2) {\n <div class=\"xs-scraper-step\">\n @if (loading()) {\n <div class=\"xs-scraper-loading\">\n <xs-icon\n icon=\"spinner\"\n size=\"xl\"\n class=\"xs-scraper-spin xs-scraper-spinner-icon\"\n />\n <p>{{ labels().loadingText }}</p>\n </div>\n } @else if (checkingDuplicate()) {\n <div class=\"xs-scraper-loading\">\n <xs-icon\n icon=\"spinner\"\n size=\"xl\"\n class=\"xs-scraper-spin xs-scraper-spinner-icon\"\n />\n <p>{{ labels().loadingDuplicate }}</p>\n </div>\n } @else if (duplicateInfo()?.exists) {\n <div class=\"xs-scraper-duplicate-card\">\n <div class=\"xs-scraper-duplicate-badge\">\n <xs-icon icon=\"circle-exclamation\" size=\"sm\" />\n <span>{{ labels().alreadyExistsTitle }}</span>\n </div>\n <div class=\"xs-scraper-duplicate-body\">\n <div class=\"xs-scraper-duplicate-preview\">\n @if (previewData()?.image) {\n <img\n class=\"xs-scraper-duplicate-image\"\n [class.xs-scraper-duplicate-image-round]=\"mode() !== 'track'\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"duplicateInfo()?.name || ''\"\n />\n }\n <div class=\"xs-scraper-duplicate-info\">\n <p class=\"xs-scraper-duplicate-name\">\n {{ duplicateInfo()?.name || previewData()?.name }}\n </p>\n @if (mode() === 'track' && $any(previewData())?.artist) {\n <p class=\"xs-scraper-duplicate-artist\">\n {{ $any(previewData())?.artist }}\n </p>\n }\n @if (\n mode() !== 'track' &&\n ($any(previewData())?.country || previewData()?.style)\n ) {\n <div class=\"xs-scraper-badges\">\n @if ($any(previewData())?.country) {\n <span class=\"xs-scraper-badge\">\n <img\n class=\"w-3 h-3 rounded-sm object-cover\"\n [src]=\"$any(previewData())?.country | countryFlag\"\n [alt]=\"$any(previewData())?.country\"\n />\n <span>{{\n $any(previewData())?.country | countryName\n }}</span>\n </span>\n }\n @if (previewData()?.style) {\n <span class=\"xs-scraper-badge\">{{\n previewData()?.style\n }}</span>\n }\n </div>\n }\n </div>\n </div>\n <p class=\"xs-scraper-duplicate-desc\">\n {{ labels().alreadyExistsDesc }}\n </p>\n </div>\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n @if (duplicateInfo()?.url) {\n <a\n [routerLink]=\"duplicateInfo()?.url\"\n class=\"xs-scraper-duplicate-link-btn\"\n >\n <xs-button\n [label]=\"labels().alreadyExistsLink\"\n icon=\"arrow-up-right-from-square\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n />\n </a>\n }\n </div>\n </div>\n } @else {\n <div class=\"xs-scraper-result-wrapper\">\n @if (mode() === 'track') {\n <div class=\"xs-scraper-preview-card\">\n <div class=\"xs-scraper-preview-header\">\n <img\n class=\"xs-scraper-preview-image\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"previewData()?.name\"\n />\n <div class=\"xs-scraper-preview-info\">\n <h3 class=\"xs-scraper-preview-title\">\n {{ previewData()?.name }}\n </h3>\n <p class=\"xs-scraper-preview-artist\">\n {{ $any(previewData())?.artist }}\n </p>\n @if (\n previewData()?.style || $any(previewData())?.year\n ) {\n <div class=\"xs-scraper-preview-tags\">\n @if (previewData()?.style) {\n <span class=\"xs-scraper-tag\">{{\n previewData()?.style\n }}</span>\n }\n @if ($any(previewData())?.year) {\n <span class=\"xs-scraper-tag\">{{\n $any(previewData())?.year\n }}</span>\n }\n </div>\n }\n </div>\n </div>\n </div>\n } @else {\n <div class=\"xs-scraper-preview-card\">\n <div class=\"xs-scraper-preview-header\">\n <img\n class=\"xs-scraper-preview-image xs-scraper-preview-image-round\"\n [src]=\"previewData()?.image || ''\"\n [alt]=\"previewData()?.name\"\n />\n <div class=\"xs-scraper-preview-info\">\n @if (\n $any(previewData())?.country || previewData()?.style\n ) {\n <div class=\"xs-scraper-badges\">\n @if ($any(previewData())?.country) {\n <span class=\"xs-scraper-badge\">\n <img\n class=\"w-3 h-3 rounded-sm object-cover\"\n [src]=\"\n $any(previewData())?.country\n | countryFlag\n \"\n [alt]=\"$any(previewData())?.country\"\n />\n <span>{{\n $any(previewData())?.country\n | countryName\n }}</span>\n </span>\n }\n @if (previewData()?.style) {\n <span class=\"xs-scraper-badge\">{{\n previewData()?.style\n }}</span>\n }\n </div>\n }\n <h3 class=\"xs-scraper-profile-name\">\n {{ previewData()?.name }}\n </h3>\n @if ($any(previewData())?.soundcloudUrl) {\n <a\n class=\"xs-scraper-badge xs-scraper-badge-social\"\n [href]=\"$any(previewData())?.soundcloudUrl\"\n target=\"_blank\"\n rel=\"noopener\"\n >\n <xs-icon\n [icon]=\"['fab', 'soundcloud']\"\n size=\"xs\"\n class=\"text-orange-500\"\n />\n <span>soundcloud</span>\n </a>\n }\n </div>\n </div>\n @if (previewData()?.info) {\n <p class=\"xs-scraper-preview-bio\">\n {{ previewData()?.info }}\n </p>\n }\n </div>\n }\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n icon=\"chevron-right\"\n class=\"xs-scraper-btn-primary\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n <xs-button\n [label]=\"labels().continueBtn\"\n icon=\"chevron-right\"\n customClass=\"xs-scraper-btn-primary\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"onContinue()\"\n />\n </div>\n </div>\n }\n </div>\n }\n\n @case (3) {\n <div class=\"xs-scraper-step\">\n <div class=\"xs-scraper-form-card\">\n <div class=\"xs-scraper-form-header\">\n <xs-icon\n icon=\"check-circle\"\n size=\"lg\"\n class=\"xs-scraper-form-icon\"\n />\n <div>\n <h3 class=\"xs-scraper-form-title\">\n {{ labels().formTitle }}\n </h3>\n <p class=\"xs-scraper-form-desc\">\n {{ labels().formDesc }}\n </p>\n </div>\n </div>\n </div>\n\n <xs-formly\n [fields]=\"activeFormFields()\"\n [model]=\"formModel()\"\n (formReady)=\"onFormReady($event)\"\n />\n\n <div class=\"xs-scraper-actions\">\n <xs-button\n [label]=\"labels().backBtn\"\n [ariaLabel]=\"labels().backBtn\"\n icon=\"chevron-right\"\n variant=\"secondary\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n (onClick)=\"goBack()\"\n />\n <xs-button\n [label]=\"labels().sendBtn\"\n icon=\"paper-plane\"\n [variant]=\"primaryVariant()\"\n size=\"sm\"\n [isFull]=\"isMobile()\"\n [disabled]=\"!formReady()\"\n (onClick)=\"onContinue()\"\n />\n </div>\n </div>\n }\n }\n </xs-stepper>\n</div>\n", styles: [".xs-send-scraper{width:100%;padding-left:0;padding-right:0}.xs-scraper-step{display:flex;width:100%;flex-direction:column;gap:1rem}@media(min-width:640px){.xs-scraper-step{gap:1.5rem}}.xs-scraper-step-title{font-size:1rem;line-height:1.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-step-title{font-size:1.125rem;line-height:1.75rem}}.xs-scraper-step-desc{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-step-desc{font-size:.875rem;line-height:1.25rem}}.xs-scraper-sources{display:flex;width:100%;flex-direction:column;gap:.75rem}@media(min-width:640px){.xs-scraper-sources{flex-direction:row;gap:1rem}}.xs-scraper-source-card{display:flex;width:100%;cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;justify-content:center;gap:.75rem;border-radius:1rem;background-color:#18181b80;padding:1.25rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1)}.xs-scraper-source-card:hover{background-color:#27272a80}.xs-scraper-source-card:active{--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media(min-width:640px){.xs-scraper-source-card{min-width:200px;flex-direction:column;gap:1rem;padding:2rem}}.xs-scraper-source-card:hover{box-shadow:0 8px 32px #0000004d}.xs-scraper-source-icon{display:flex;height:3.5rem;width:3.5rem;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-source-icon{height:5rem;width:5rem}}.xs-scraper-source-card:hover .xs-scraper-source-icon{transform:scale(1.1)}.xs-scraper-source-name{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.15em;--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-source-name{font-size:.875rem;line-height:1.25rem}}.xs-scraper-empty{text-align:center;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.xs-scraper-url-box{display:flex;width:100%;flex-direction:row;align-items:center;gap:.5rem;border-radius:.75rem;background-color:#18181b80;padding:.375rem .75rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.xs-scraper-url-box:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(239 68 68 / .2)}.xs-scraper-url-icon{display:flex;flex-shrink:0;justify-content:center}.xs-scraper-url-input{height:2rem;min-width:0px;flex:1 1 0%;border-style:none;background-color:transparent;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-scraper-url-input::placeholder{--tw-placeholder-opacity: 1;color:rgb(82 82 91 / var(--tw-placeholder-opacity, 1))}.xs-scraper-url-input{outline:2px solid transparent;outline-offset:2px}.xs-scraper-url-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.xs-scraper-search-btn{display:none;flex-shrink:0}@media(min-width:640px){.xs-scraper-search-btn{display:block}}:host-context(.xs-scraper-search-btn) xs-button .overflow-hidden{display:none!important}@media(min-width:640px){:host-context(.xs-scraper-search-btn) xs-button .overflow-hidden{display:block!important}}.xs-scraper-url-input:-webkit-autofill{-webkit-box-shadow:0 0 0 30px rgb(24,24,27) inset!important;-webkit-text-fill-color:white!important}.xs-scraper-url-input:focus{outline:none;box-shadow:none}.xs-scraper-spin{animation:scraper-spin 1s linear infinite}@keyframes scraper-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.xs-scraper-error{text-align:center;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.xs-scraper-loading{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-top:3rem;padding-bottom:3rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.xs-scraper-spinner-icon{font-size:1.875rem;line-height:2.25rem}.xs-scraper-result-wrapper{display:flex;width:100%;flex-direction:column;gap:1rem}@media(min-width:640px){.xs-scraper-result-wrapper{gap:1.5rem}}.xs-scraper-preview-card{border-radius:1rem;background-color:#18181b80;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-preview-card{padding:1.5rem}}.xs-scraper-preview-header{display:flex;flex-direction:row;align-items:flex-start;gap:1rem}@media(min-width:640px){.xs-scraper-preview-header{gap:1.25rem}}.xs-scraper-preview-image{height:4rem;width:4rem;flex-shrink:0;border-radius:.75rem;object-fit:cover}@media(min-width:640px){.xs-scraper-preview-image{height:6rem;width:6rem}}.xs-scraper-preview-image-round{border-radius:9999px}.xs-scraper-preview-info{display:flex;min-width:0px;flex-direction:column;gap:.375rem;padding-top:.125rem}@media(min-width:640px){.xs-scraper-preview-info{gap:.5rem;padding-top:.25rem}}.xs-scraper-preview-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;line-height:1.5rem;font-weight:700;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-title{font-size:1.25rem;line-height:1.75rem}}.xs-scraper-preview-artist{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-artist{font-size:.875rem;line-height:1.25rem}}.xs-scraper-preview-tags{margin-top:.25rem;display:flex;flex-wrap:wrap;gap:.375rem}@media(min-width:640px){.xs-scraper-preview-tags{gap:.5rem}}.xs-scraper-preview-bio{margin-top:.75rem;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:.75rem;line-height:1rem;line-height:1.625;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-bio{font-size:.875rem;line-height:1.25rem}}.xs-scraper-preview-link{margin-top:.75rem;display:flex;min-width:0px;align-items:center;gap:.375rem;font-size:11px;color:#fb923ce6;text-decoration-line:none;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.xs-scraper-preview-link:hover{--tw-text-opacity: 1;color:rgb(253 186 116 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-preview-link{font-size:.75rem;line-height:1rem}}.xs-scraper-badges{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.xs-scraper-badge{display:flex;align-items:center;gap:.5rem;white-space:nowrap;border-radius:.375rem;background-color:#18181b80;padding:.375rem .75rem;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.2em;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.xs-scraper-badge-social{align-self:flex-start;padding-top:.5rem;padding-bottom:.5rem;text-decoration-line:none;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.xs-scraper-badge-social:hover{background-color:#27272a99}.xs-scraper-profile-name{overflow-wrap:break-word;font-size:1.25rem;line-height:1.75rem;font-weight:900;text-transform:uppercase;line-height:1;letter-spacing:-.05em;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-profile-name{font-size:1.5rem;line-height:2rem}}.xs-scraper-tag{border-radius:9999px;background-color:#27272a80;padding:.125rem .5rem;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.12em;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-tag{padding:.25rem .75rem}}.xs-scraper-actions{display:flex;width:100%;flex-direction:column-reverse;gap:.75rem}@media(min-width:640px){.xs-scraper-actions{flex-direction:row;justify-content:flex-end}}.xs-scraper-actions>*{width:100%}@media(min-width:640px){.xs-scraper-actions>*{width:auto}.xs-scraper-actions-url{justify-content:flex-end}.xs-scraper-actions-url>*{width:auto}}.xs-scraper-duplicate-card{display:flex;flex-direction:column;gap:1.25rem;overflow:hidden;border-radius:1rem;background-color:#18181b80}:host-context(.xs-scraper-search-btn) xs-button .xs-scraper-duplicate-card{display:none}@media(min-width:640px){:host-context(.xs-scraper-search-btn) xs-button .xs-scraper-duplicate-card{display:block}}.xs-scraper-duplicate-badge{display:flex;align-items:center;gap:.5rem;background-color:#fbbf241a;padding:.625rem 1.25rem;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em;--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-body{display:flex;flex-direction:column;gap:1rem;padding-left:1.25rem;padding-right:1.25rem;padding-bottom:.5rem}.xs-scraper-duplicate-preview{display:flex;flex-direction:row;align-items:flex-start;gap:1rem}.xs-scraper-duplicate-image{height:3.5rem;width:3.5rem;flex-shrink:0;border-radius:.75rem;object-fit:cover}.xs-scraper-duplicate-image-round{border-radius:9999px}.xs-scraper-duplicate-info{display:flex;min-width:0px;flex-direction:column;gap:.375rem}.xs-scraper-duplicate-name{font-size:1rem;line-height:1.5rem;font-weight:700;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-artist{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.xs-scraper-duplicate-desc{font-size:.75rem;line-height:1rem;line-height:1.625;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-duplicate-desc{font-size:.875rem;line-height:1.25rem}}.xs-scraper-duplicate-link-btn{text-decoration-line:none}.xs-scraper-form-card{width:100%;border-radius:1rem;background-color:#18181b80;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:640px){.xs-scraper-form-card{padding:1.5rem}}.xs-scraper-form-header{display:flex;align-items:flex-start;gap:.75rem}@media(min-width:640px){.xs-scraper-form-header{gap:1rem}}.xs-scraper-form-icon{margin-top:.25rem;--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.xs-scraper-form-title{font-size:1rem;line-height:1.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-form-title{font-size:1.125rem;line-height:1.75rem}}.xs-scraper-form-desc{margin-top:.25rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}@media(min-width:640px){.xs-scraper-form-desc{font-size:.875rem;line-height:1.25rem}}\n"] }]
23454
23561
  }], ctorParameters: () => [], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], allowedSources: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowedSources", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], formFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "formFields", required: false }] }], demoMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "demoMode", required: false }] }], dataResolved: [{ type: i0.Output, args: ["dataResolved"] }] } });
23455
23562
  const DEFAULT_TRACK_FIELDS = [
23456
23563
  {
@@ -23805,7 +23912,7 @@ class XSFeedbackComponent {
23805
23912
  }
23806
23913
  }
23807
23914
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFeedbackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
23808
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFeedbackComponent, isStandalone: true, selector: "xs-feedback", inputs: { survey: { classPropertyName: "survey", publicName: "survey", isSignal: true, isRequired: true, transformFunction: null }, question: { classPropertyName: "question", publicName: "question", isSignal: true, isRequired: false, transformFunction: null }, allowComment: { classPropertyName: "allowComment", publicName: "allowComment", isSignal: true, isRequired: false, transformFunction: null }, showNegativeOptions: { classPropertyName: "showNegativeOptions", publicName: "showNegativeOptions", isSignal: true, isRequired: false, transformFunction: null }, negativeOptions: { classPropertyName: "negativeOptions", publicName: "negativeOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { voteSubmitted: "voteSubmitted", commentSubmitted: "commentSubmitted", negativeReasonSubmitted: "negativeReasonSubmitted", dismissed: "dismissed" }, host: { attributes: { "xs-feedback-host": "" } }, ngImport: i0, template: "<div class=\"xs-feedback-container\">\n @if (state() === 'initial') {\n <div class=\"xs-feedback-row\">\n <span class=\"xs-feedback-question\">{{ effectiveQuestion() }}</span>\n <div class=\"xs-feedback-actions\">\n <button\n class=\"xs-feedback-btn xs-feedback-btn--positive\"\n (click)=\"onVote('positive')\"\n aria-label=\"Positivo\"\n type=\"button\">\n <xs-icon icon=\"thumbs-up\" size=\"sm\"></xs-icon>\n </button>\n <button\n class=\"xs-feedback-btn xs-feedback-btn--negative\"\n (click)=\"onVote('negative')\"\n aria-label=\"Negativo\"\n type=\"button\">\n <xs-icon icon=\"thumbs-down\" size=\"sm\"></xs-icon>\n </button>\n </div>\n </div>\n }\n\n @if (state() === 'positive') {\n <div class=\"xs-feedback-row\">\n <span class=\"xs-feedback-thanks\">Gracias por tu feedback</span>\n @if (effectiveAllowComment()) {\n <div class=\"xs-feedback-comment-row\">\n <input\n class=\"xs-feedback-input\"\n type=\"text\"\n placeholder=\"Comentario opcional...\"\n [ngModel]=\"commentText()\"\n (ngModelChange)=\"commentText.set($event)\"\n (keyup.enter)=\"onSubmitComment()\"\n />\n <button\n class=\"xs-feedback-submit\"\n (click)=\"onSubmitComment()\"\n type=\"button\">\n Enviar\n </button>\n <button\n class=\"xs-feedback-skip\"\n (click)=\"onSkipComment()\"\n type=\"button\">\n Omitir\n </button>\n </div>\n }\n </div>\n }\n\n @if (state() === 'negative') {\n <div class=\"xs-feedback-col\">\n <span class=\"xs-feedback-thanks\">Gracias por tu feedback</span>\n @if (effectiveShowNegativeOptions() && effectiveNegativeOptions().length > 0) {\n <span class=\"xs-feedback-subtitle\">\u00BFQu\u00E9 ha fallado?</span>\n <div class=\"xs-feedback-options\">\n @for (option of effectiveNegativeOptions(); track option) {\n <button\n class=\"xs-feedback-option\"\n [class.xs-feedback-option--selected]=\"selectedReason() === option\"\n (click)=\"onNegativeReasonSelect(option)\"\n type=\"button\">\n {{ option }}\n </button>\n }\n </div>\n }\n @if (effectiveAllowComment()) {\n <div class=\"xs-feedback-comment-row\">\n <input\n class=\"xs-feedback-input\"\n type=\"text\"\n placeholder=\"Comentario opcional...\"\n [ngModel]=\"commentText()\"\n (ngModelChange)=\"commentText.set($event)\"\n (keyup.enter)=\"onSubmitComment()\"\n />\n <button\n class=\"xs-feedback-submit\"\n (click)=\"onSubmitComment()\"\n type=\"button\">\n Enviar\n </button>\n <button\n class=\"xs-feedback-skip\"\n (click)=\"onSkipComment()\"\n type=\"button\">\n Omitir\n </button>\n </div>\n }\n </div>\n }\n\n @if (state() === 'submitted') {\n <div class=\"xs-feedback-row\">\n <span class=\"xs-feedback-thanks\">Gracias por tu feedback</span>\n </div>\n }\n</div>\n", styles: [":host{display:block;width:100%}.xs-feedback-container{width:100%;border-radius:.75rem;background-color:#18181b80;padding:.75rem 1rem}.xs-feedback-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.xs-feedback-col{display:flex;flex-direction:column;gap:.5rem}.xs-feedback-question{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.xs-feedback-thanks{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.xs-feedback-subtitle{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.xs-feedback-actions{display:flex;flex-shrink:0;align-items:center;gap:.25rem}.xs-feedback-btn{display:flex;height:1.75rem;width:1.75rem;cursor:pointer;align-items:center;justify-content:center;border-radius:.375rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.xs-feedback-btn:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-feedback-btn--positive:hover{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.xs-feedback-btn--negative:hover{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.xs-feedback-options{display:flex;flex-wrap:wrap;gap:.5rem}.xs-feedback-option{cursor:pointer;border-radius:.5rem;border-width:1px;border-color:#3f3f4680;background-color:transparent;padding:.375rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.xs-feedback-option:hover{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-feedback-option--selected{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-feedback-comment-row{margin-top:.25rem;display:flex;align-items:center;gap:.5rem}.xs-feedback-input{flex:1 1 0%;border-radius:.5rem;border-width:1px;border-color:#3f3f4680;background-color:transparent;padding:.375rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}.xs-feedback-input::placeholder{--tw-placeholder-opacity: 1;color:rgb(82 82 91 / var(--tw-placeholder-opacity, 1))}.xs-feedback-input{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.xs-feedback-input:focus{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity, 1));outline:2px solid transparent;outline-offset:2px}.xs-feedback-submit{cursor:pointer;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity, 1));padding:.375rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.xs-feedback-submit:hover{--tw-bg-opacity: 1;background-color:rgb(82 82 91 / var(--tw-bg-opacity, 1))}.xs-feedback-skip{cursor:pointer;border-radius:.5rem;padding:.375rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.xs-feedback-skip:hover{--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
23915
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSFeedbackComponent, isStandalone: true, selector: "xs-feedback", inputs: { survey: { classPropertyName: "survey", publicName: "survey", isSignal: true, isRequired: true, transformFunction: null }, question: { classPropertyName: "question", publicName: "question", isSignal: true, isRequired: false, transformFunction: null }, allowComment: { classPropertyName: "allowComment", publicName: "allowComment", isSignal: true, isRequired: false, transformFunction: null }, showNegativeOptions: { classPropertyName: "showNegativeOptions", publicName: "showNegativeOptions", isSignal: true, isRequired: false, transformFunction: null }, negativeOptions: { classPropertyName: "negativeOptions", publicName: "negativeOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { voteSubmitted: "voteSubmitted", commentSubmitted: "commentSubmitted", negativeReasonSubmitted: "negativeReasonSubmitted", dismissed: "dismissed" }, host: { attributes: { "xs-feedback-host": "" } }, ngImport: i0, template: "<div class=\"xs-feedback-container\">\n @if (state() === 'initial') {\n <div class=\"xs-feedback-row\">\n <span class=\"xs-feedback-question\">{{ effectiveQuestion() }}</span>\n <div class=\"xs-feedback-actions\">\n <button\n class=\"xs-feedback-btn xs-feedback-btn--positive\"\n (click)=\"onVote('positive')\"\n aria-label=\"Positivo\"\n type=\"button\">\n <xs-icon icon=\"thumbs-up\" size=\"sm\"></xs-icon>\n </button>\n <button\n class=\"xs-feedback-btn xs-feedback-btn--negative\"\n (click)=\"onVote('negative')\"\n aria-label=\"Negativo\"\n type=\"button\">\n <xs-icon icon=\"thumbs-down\" size=\"sm\"></xs-icon>\n </button>\n </div>\n </div>\n }\n\n @if (state() === 'positive') {\n <div class=\"xs-feedback-row\">\n <span class=\"xs-feedback-thanks\">Gracias por tu feedback</span>\n @if (effectiveAllowComment()) {\n <div class=\"xs-feedback-comment-row\">\n <input\n class=\"xs-feedback-input\"\n type=\"text\"\n placeholder=\"Comentario opcional...\"\n [ngModel]=\"commentText()\"\n (ngModelChange)=\"commentText.set($event)\"\n (keyup.enter)=\"onSubmitComment()\"\n />\n <button\n class=\"xs-feedback-submit\"\n (click)=\"onSubmitComment()\"\n type=\"button\">\n Enviar\n </button>\n <button\n class=\"xs-feedback-skip\"\n (click)=\"onSkipComment()\"\n type=\"button\">\n Omitir\n </button>\n </div>\n }\n </div>\n }\n\n @if (state() === 'negative') {\n <div class=\"xs-feedback-col\">\n <span class=\"xs-feedback-thanks\">Gracias por tu feedback</span>\n @if (effectiveShowNegativeOptions() && effectiveNegativeOptions().length > 0) {\n <span class=\"xs-feedback-subtitle\">\u00BFQu\u00E9 ha fallado?</span>\n <div class=\"xs-feedback-options\">\n @for (option of effectiveNegativeOptions(); track option) {\n <button\n class=\"xs-feedback-option\"\n [class.xs-feedback-option--selected]=\"selectedReason() === option\"\n (click)=\"onNegativeReasonSelect(option)\"\n type=\"button\">\n {{ option }}\n </button>\n }\n </div>\n }\n @if (effectiveAllowComment()) {\n <div class=\"xs-feedback-comment-row\">\n <input\n class=\"xs-feedback-input\"\n type=\"text\"\n placeholder=\"Comentario opcional...\"\n [ngModel]=\"commentText()\"\n (ngModelChange)=\"commentText.set($event)\"\n (keyup.enter)=\"onSubmitComment()\"\n />\n <button\n class=\"xs-feedback-submit\"\n (click)=\"onSubmitComment()\"\n type=\"button\">\n Enviar\n </button>\n <button\n class=\"xs-feedback-skip\"\n (click)=\"onSkipComment()\"\n type=\"button\">\n Omitir\n </button>\n </div>\n }\n </div>\n }\n\n @if (state() === 'submitted') {\n <div class=\"xs-feedback-row\">\n <span class=\"xs-feedback-thanks\">Gracias por tu feedback</span>\n </div>\n }\n</div>\n", styles: [":host{display:block;width:100%}.xs-feedback-container{width:100%;border-radius:.75rem;background-color:#18181b80;padding:.75rem 1rem}.xs-feedback-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.xs-feedback-col{display:flex;flex-direction:column;gap:.5rem}.xs-feedback-question{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.xs-feedback-thanks{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.xs-feedback-subtitle{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.xs-feedback-actions{display:flex;flex-shrink:0;align-items:center;gap:.25rem}.xs-feedback-btn{display:flex;height:1.75rem;width:1.75rem;cursor:pointer;align-items:center;justify-content:center;border-radius:.375rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.xs-feedback-btn:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-feedback-btn--positive:hover{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.xs-feedback-btn--negative:hover{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.xs-feedback-options{display:flex;flex-wrap:wrap;gap:.5rem}.xs-feedback-option{cursor:pointer;border-radius:.5rem;border-width:1px;border-color:#3f3f4680;background-color:transparent;padding:.375rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.xs-feedback-option:hover{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-feedback-option--selected{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.xs-feedback-comment-row{margin-top:.25rem;display:flex;align-items:center;gap:.5rem}.xs-feedback-input{flex:1 1 0%;border-radius:.5rem;border-width:1px;border-color:#3f3f4680;background-color:transparent;padding:.375rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}.xs-feedback-input::placeholder{--tw-placeholder-opacity: 1;color:rgb(82 82 91 / var(--tw-placeholder-opacity, 1))}.xs-feedback-input{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.xs-feedback-input:focus{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity, 1));outline:2px solid transparent;outline-offset:2px}.xs-feedback-submit{cursor:pointer;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity, 1));padding:.375rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.xs-feedback-submit:hover{--tw-bg-opacity: 1;background-color:rgb(82 82 91 / var(--tw-bg-opacity, 1))}.xs-feedback-skip{cursor:pointer;border-radius:.5rem;padding:.375rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.xs-feedback-skip:hover{--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
23809
23916
  }
23810
23917
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSFeedbackComponent, decorators: [{
23811
23918
  type: Component,
@@ -23844,7 +23951,7 @@ const LIB_STORIES = [
23844
23951
  () => import('./xsmusices-ui-xs-info-blocks.xsstory-BHtaC7U6.mjs').then((m) => m.story),
23845
23952
  () => import('./xsmusices-ui-xs-item-card.xsstory-EGJ6itkx.mjs').then((m) => m.story),
23846
23953
  () => import('./xsmusices-ui-xs-item-action.xsstory-839UkJyC.mjs').then((m) => m.story),
23847
- () => import('./xsmusices-ui-xs-item-compact.xsstory-UFRsSG_f.mjs').then((m) => m.story),
23954
+ () => import('./xsmusices-ui-xs-item-compact.xsstory-BYSUCdmI.mjs').then((m) => m.story),
23848
23955
  () => import('./xsmusices-ui-xs-item-type.xsstory-DIpjpqYk.mjs').then((m) => m.story),
23849
23956
  () => import('./xsmusices-ui-xs-items-slider.xsstory-XIowNW4v.mjs').then((m) => m.story),
23850
23957
  () => import('./xsmusices-ui-xs-list.xsstory-BQsNO0mj.mjs').then((m) => m.story),
@@ -23858,7 +23965,7 @@ const LIB_STORIES = [
23858
23965
  () => import('./xsmusices-ui-xs-profile-random-flag.xsstory-DH3Y_XX1.mjs').then((m) => m.story),
23859
23966
  () => import('./xsmusices-ui-xs-section-title.xsstory-CHlZ69FK.mjs').then((m) => m.story),
23860
23967
  () => import('./xsmusices-ui-xs-profile-skeleton.xsstory-BO0ZqUMS.mjs').then((m) => m.story),
23861
- () => import('./xsmusices-ui-xs-profile-tops.xsstory-eKxRAMdS.mjs').then((m) => m.story),
23968
+ () => import('./xsmusices-ui-xs-profile-tops.xsstory-BhgHy7Gc.mjs').then((m) => m.story),
23862
23969
  () => import('./xsmusices-ui-xs-profile-verified.xsstory-HtbUlJFX.mjs').then((m) => m.story),
23863
23970
  () => import('./xsmusices-ui-xs-skeleton-for-slider.xsstory-k-uutKIV.mjs').then((m) => m.story),
23864
23971
  () => import('./xsmusices-ui-xs-table-items.xsstory-qKGBMrjP.mjs').then((m) => m.story),