@xsmusices/ui 2.0.5 → 2.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/xsmusices-ui.mjs +70 -6
- package/fesm2022/xsmusices-ui.mjs.map +1 -1
- package/index.d.ts +31 -4
- package/package.json +1 -1
|
@@ -3610,6 +3610,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
|
|
|
3610
3610
|
}]
|
|
3611
3611
|
}] });
|
|
3612
3612
|
|
|
3613
|
+
/**
|
|
3614
|
+
* XS-985 — «reales (boost)» p. ej. `51 (4)`. Solo admin: la app
|
|
3615
|
+
* pública nunca lo usa (ningún endpoint/template público expone
|
|
3616
|
+
* boosted). Sin impulsadas devuelve el total con formato es-ES.
|
|
3617
|
+
*/
|
|
3618
|
+
class VisitsSplitPipe {
|
|
3619
|
+
transform(total, boosted) {
|
|
3620
|
+
const safeTotal = Math.max(0, total ?? 0);
|
|
3621
|
+
const safeBoosted = Math.max(0, boosted ?? 0);
|
|
3622
|
+
const formatted = safeTotal.toLocaleString('es-ES');
|
|
3623
|
+
if (safeBoosted <= 0)
|
|
3624
|
+
return formatted;
|
|
3625
|
+
const organic = Math.max(0, safeTotal - safeBoosted);
|
|
3626
|
+
return `${organic.toLocaleString('es-ES')} (${safeBoosted.toLocaleString('es-ES')})`;
|
|
3627
|
+
}
|
|
3628
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: VisitsSplitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3629
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: VisitsSplitPipe, isStandalone: true, name: "visitsSplit" });
|
|
3630
|
+
}
|
|
3631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: VisitsSplitPipe, decorators: [{
|
|
3632
|
+
type: Pipe,
|
|
3633
|
+
args: [{
|
|
3634
|
+
name: 'visitsSplit',
|
|
3635
|
+
standalone: true,
|
|
3636
|
+
}]
|
|
3637
|
+
}] });
|
|
3638
|
+
|
|
3613
3639
|
var PIPES$3 = {
|
|
3614
3640
|
TIMEAGO: {
|
|
3615
3641
|
NOW: "ahora mismo",
|
|
@@ -4161,6 +4187,7 @@ const STANDALONE_PIPES = [
|
|
|
4161
4187
|
SuggestionTypePipe,
|
|
4162
4188
|
TableLinkPipe,
|
|
4163
4189
|
XSThousandsSeparatorPipe,
|
|
4190
|
+
VisitsSplitPipe,
|
|
4164
4191
|
TimeAgoPipe,
|
|
4165
4192
|
TitleMediaPipe,
|
|
4166
4193
|
TruncateTextPipe,
|
|
@@ -17573,13 +17600,50 @@ class XSTableItemsVisitsComponent {
|
|
|
17573
17600
|
header = input.required(...(ngDevMode ? [{ debugName: "header" }] : []));
|
|
17574
17601
|
item = input.required(...(ngDevMode ? [{ debugName: "item" }] : []));
|
|
17575
17602
|
filters = input(null, ...(ngDevMode ? [{ debugName: "filters" }] : []));
|
|
17603
|
+
/**
|
|
17604
|
+
* XS-985 — Solo el admin ve el desglose reales (boost).
|
|
17605
|
+
* La app pública nunca activa este flag (ver admin=false por
|
|
17606
|
+
* defecto): ningún endpoint/template público muestra boosted.
|
|
17607
|
+
*/
|
|
17608
|
+
admin = input(false, ...(ngDevMode ? [{ debugName: "admin" }] : []));
|
|
17576
17609
|
textsService = inject(XSTableItemsTextsService);
|
|
17577
17610
|
currentDate = new Date();
|
|
17578
17611
|
isNotArray(value) {
|
|
17579
17612
|
return !Array.isArray(value);
|
|
17580
17613
|
}
|
|
17614
|
+
/**
|
|
17615
|
+
* Reales = total - impulsadas (nunca negativo ante datos
|
|
17616
|
+
* históricos sin backfill). Formato «51 (4)». Acepta string
|
|
17617
|
+
* porque los pipes de mes pueden devolver texto.
|
|
17618
|
+
*/
|
|
17619
|
+
organic(total, boosted) {
|
|
17620
|
+
const toNum = (value) => {
|
|
17621
|
+
if (typeof value === 'number')
|
|
17622
|
+
return value;
|
|
17623
|
+
if (typeof value === 'string' && value.trim() !== '') {
|
|
17624
|
+
const parsed = Number(value.replace(/[^0-9.-]/g, ''));
|
|
17625
|
+
return Number.isFinite(parsed) ? parsed : 0;
|
|
17626
|
+
}
|
|
17627
|
+
return 0;
|
|
17628
|
+
};
|
|
17629
|
+
return Math.max(0, toNum(total) - toNum(boosted));
|
|
17630
|
+
}
|
|
17631
|
+
boostedTotal() {
|
|
17632
|
+
const item = this.item();
|
|
17633
|
+
return Math.max(0, item?.boostedTotalVisits ?? 0);
|
|
17634
|
+
}
|
|
17635
|
+
boostedMonthly() {
|
|
17636
|
+
const item = this.item();
|
|
17637
|
+
return Math.max(0, item?.boostedMonthlyVisits ?? 0);
|
|
17638
|
+
}
|
|
17639
|
+
showTotalBoost() {
|
|
17640
|
+
return this.admin() && this.boostedTotal() > 0;
|
|
17641
|
+
}
|
|
17642
|
+
showMonthlyBoost() {
|
|
17643
|
+
return this.admin() && this.boostedMonthly() > 0;
|
|
17644
|
+
}
|
|
17581
17645
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSTableItemsVisitsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17582
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSTableItemsVisitsComponent, isStandalone: true, selector: "xs-table-items-visits", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: true, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let i = item();\n@if (i) {\n@let v = $any(i).visits;\n@let tv = $any(i).totalVisits;\n@let mv = $any(i).monthlyVisits;\n@switch (header().type) {\n @case ('visits') {\n <p class=\"text-sm font-black\">\n @if (v != null && isNotArray(v)) {\n {{ v | number }}\n } @else if (tv != null) {\n {{ tv | number }}\n }\n </p>\n }\n @case ('followers') {\n <p class=\"text-sm font-black\">\n {{ $any(i).totalFollowers ?? 0 | number }}\n </p>\n }\n @case ('visitsMonth') {\n <p class=\"text-sm font-black\">\n {{
|
|
17646
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSTableItemsVisitsComponent, isStandalone: true, selector: "xs-table-items-visits", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: true, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, admin: { classPropertyName: "admin", publicName: "admin", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let i = item();\n@if (i) {\n@let v = $any(i).visits;\n@let tv = $any(i).totalVisits;\n@let mv = $any(i).monthlyVisits;\n@switch (header().type) {\n @case ('visits') {\n <p class=\"text-sm font-black\">\n @if (v != null && isNotArray(v)) {\n {{ v | number }}\n } @else if (tv != null) {\n @if (showTotalBoost()) {\n {{ organic(tv, boostedTotal()) | number }} ({{ boostedTotal() | number }})\n } @else {\n {{ tv | number }}\n }\n }\n </p>\n }\n @case ('followers') {\n <p class=\"text-sm font-black\">\n {{ $any(i).totalFollowers ?? 0 | number }}\n </p>\n }\n @case ('visitsMonth') {\n @let monthVal = v ? (v | visitsMonthTotal: 'month') : (mv ?? 0);\n <p class=\"text-sm font-black\">\n @if (showMonthlyBoost() && !filters()?.sortVisitsByMonth) {\n {{ organic(monthVal, boostedMonthly()) | number }} ({{ boostedMonthly() | number }})\n } @else {\n {{ monthVal }}\n }\n </p>\n }\n @case ('visitsTotal') {\n @if (v || tv != null) {\n @let totalVal = v ? (v | visitsMonthTotal: 'total') : (tv ?? 0);\n <p class=\"text-sm font-black\">\n @if (showTotalBoost()) {\n {{ organic(totalVal, boostedTotal()) | number }} ({{ boostedTotal() | number }})\n } @else {\n {{ totalVal }}\n }\n </p>\n }\n }\n @case ('visitsAll') {\n <div class=\"flex flex-col\">\n @if (v?.length > 0) {\n @let monthSum = v | visitsMonthTotal: 'month' : filters()?.sortVisitsByYear : filters()?.sortVisitsByMonth;\n @let totalSum = v | visitsMonthTotal: 'total';\n <p class=\"\">\n <span class=\"mr-0.5 text-sm font-semibold\">\n @if (showMonthlyBoost() && !filters()?.sortVisitsByMonth) {\n {{ organic(monthSum, boostedMonthly()) | number }} ({{ boostedMonthly() | number }})\n } @else {\n {{ monthSum | number }}\n }\n </span>\n <span class=\"text-xs font-extralight\">\n {{ filters()?.sortVisitsByMonth ? (filters()?.sortVisitsByMonth! | numberToMonth) : (currentDate | dateFormat: 'MMMM' | titlecase) }}\n </span>\n </p>\n <p>\n <span class=\"mr-0.5 text-sm font-semibold\">\n @if (showTotalBoost()) {\n {{ organic(totalSum, boostedTotal()) | number }} ({{ boostedTotal() | number }})\n } @else {\n {{ totalSum | number }}\n }\n </span>\n <span class=\"text-xs font-extralight\">Total</span>\n </p>\n } @else {\n <p class=\"text-sm font-extralight\">\n @if (showMonthlyBoost() && mv != null) {\n {{ organic(mv, boostedMonthly()) | number }} ({{ boostedMonthly() | number }})\n } @else if (showTotalBoost() && mv == null && tv != null) {\n {{ organic(tv, boostedTotal()) | number }} ({{ boostedTotal() | number }})\n } @else {\n {{ mv != null ? (mv | number) : (tv != null ? (tv | number) : textsService.t('TABLE_ITEMS.NO_VISITS')) }}\n }\n </p>\n }\n </div>\n }\n @case ('visitsAllLast') {\n @let iv = $any(i)[$any(i).type];\n @if (iv) {\n @if (iv.visits?.length > 0 || iv.monthlyVisits != null || iv.totalVisits != null) {\n <div class=\"flex flex-col\">\n <p class=\"py-0 my-0\">\n <span class=\"mr-0.5 text-sm font-semibold\">\n {{ iv.visits?.length ? (iv.visits | visitsMonthTotal: 'month' | number) : (iv.monthlyVisits ?? 0) }}\n </span>\n <span class=\"text-xs font-extralight\">{{ currentDate | dateFormat: 'MMMM' | titlecase }}</span>\n </p>\n <p class=\"py-0 my-0\">\n <span class=\"mr-0.5 text-sm font-semibold\">\n {{ iv.visits?.length ? (iv.visits | visitsMonthTotal: 'total' | number) : (iv.totalVisits ?? 0) }}\n </span>\n <span class=\"text-xs font-extralight\">Total</span>\n </p>\n </div>\n } @else {\n <p class=\"text-sm font-extralight\">{{ textsService.t('TABLE_ITEMS.NO_VISITS') }}</p>\n }\n }\n }\n @case ('visitsMonthLastVisits') {\n <p class=\"text-sm font-black\">\n {{ $any(i)[$any(i).type] ? ($any(i)[$any(i).type].monthlyVisits ?? $any(i)[$any(i).type].visits | visitsMonthTotal: 'month') : '' }}\n </p>\n }\n @case ('visitsTotalLastVisits') {\n <p class=\"text-sm font-black\">\n {{ $any(i)[$any(i).type] ? ($any(i)[$any(i).type].totalVisits ?? $any(i)[$any(i).type].visits | visitsMonthTotal: 'total') : '' }}\n </p>\n }\n}\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.DecimalPipe, name: "number" }, { kind: "pipe", type: i1$1.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: VisitsMonthTotalPipe, name: "visitsMonthTotal" }, { kind: "pipe", type: NumberToMonthPipe, name: "numberToMonth" }, { kind: "pipe", type: XSDateFormatPipe, name: "dateFormat" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
17583
17647
|
}
|
|
17584
17648
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSTableItemsVisitsComponent, decorators: [{
|
|
17585
17649
|
type: Component,
|
|
@@ -17588,8 +17652,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
|
|
|
17588
17652
|
VisitsMonthTotalPipe,
|
|
17589
17653
|
NumberToMonthPipe,
|
|
17590
17654
|
XSDateFormatPipe,
|
|
17591
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let i = item();\n@if (i) {\n@let v = $any(i).visits;\n@let tv = $any(i).totalVisits;\n@let mv = $any(i).monthlyVisits;\n@switch (header().type) {\n @case ('visits') {\n <p class=\"text-sm font-black\">\n @if (v != null && isNotArray(v)) {\n {{ v | number }}\n } @else if (tv != null) {\n {{ tv | number }}\n }\n </p>\n }\n @case ('followers') {\n <p class=\"text-sm font-black\">\n {{ $any(i).totalFollowers ?? 0 | number }}\n </p>\n }\n @case ('visitsMonth') {\n <p class=\"text-sm font-black\">\n {{
|
|
17592
|
-
}], propDecorators: { header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: true }] }], item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: true }] }], filters: [{ type: i0.Input, args: [{ isSignal: true, alias: "filters", required: false }] }] } });
|
|
17655
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let i = item();\n@if (i) {\n@let v = $any(i).visits;\n@let tv = $any(i).totalVisits;\n@let mv = $any(i).monthlyVisits;\n@switch (header().type) {\n @case ('visits') {\n <p class=\"text-sm font-black\">\n @if (v != null && isNotArray(v)) {\n {{ v | number }}\n } @else if (tv != null) {\n @if (showTotalBoost()) {\n {{ organic(tv, boostedTotal()) | number }} ({{ boostedTotal() | number }})\n } @else {\n {{ tv | number }}\n }\n }\n </p>\n }\n @case ('followers') {\n <p class=\"text-sm font-black\">\n {{ $any(i).totalFollowers ?? 0 | number }}\n </p>\n }\n @case ('visitsMonth') {\n @let monthVal = v ? (v | visitsMonthTotal: 'month') : (mv ?? 0);\n <p class=\"text-sm font-black\">\n @if (showMonthlyBoost() && !filters()?.sortVisitsByMonth) {\n {{ organic(monthVal, boostedMonthly()) | number }} ({{ boostedMonthly() | number }})\n } @else {\n {{ monthVal }}\n }\n </p>\n }\n @case ('visitsTotal') {\n @if (v || tv != null) {\n @let totalVal = v ? (v | visitsMonthTotal: 'total') : (tv ?? 0);\n <p class=\"text-sm font-black\">\n @if (showTotalBoost()) {\n {{ organic(totalVal, boostedTotal()) | number }} ({{ boostedTotal() | number }})\n } @else {\n {{ totalVal }}\n }\n </p>\n }\n }\n @case ('visitsAll') {\n <div class=\"flex flex-col\">\n @if (v?.length > 0) {\n @let monthSum = v | visitsMonthTotal: 'month' : filters()?.sortVisitsByYear : filters()?.sortVisitsByMonth;\n @let totalSum = v | visitsMonthTotal: 'total';\n <p class=\"\">\n <span class=\"mr-0.5 text-sm font-semibold\">\n @if (showMonthlyBoost() && !filters()?.sortVisitsByMonth) {\n {{ organic(monthSum, boostedMonthly()) | number }} ({{ boostedMonthly() | number }})\n } @else {\n {{ monthSum | number }}\n }\n </span>\n <span class=\"text-xs font-extralight\">\n {{ filters()?.sortVisitsByMonth ? (filters()?.sortVisitsByMonth! | numberToMonth) : (currentDate | dateFormat: 'MMMM' | titlecase) }}\n </span>\n </p>\n <p>\n <span class=\"mr-0.5 text-sm font-semibold\">\n @if (showTotalBoost()) {\n {{ organic(totalSum, boostedTotal()) | number }} ({{ boostedTotal() | number }})\n } @else {\n {{ totalSum | number }}\n }\n </span>\n <span class=\"text-xs font-extralight\">Total</span>\n </p>\n } @else {\n <p class=\"text-sm font-extralight\">\n @if (showMonthlyBoost() && mv != null) {\n {{ organic(mv, boostedMonthly()) | number }} ({{ boostedMonthly() | number }})\n } @else if (showTotalBoost() && mv == null && tv != null) {\n {{ organic(tv, boostedTotal()) | number }} ({{ boostedTotal() | number }})\n } @else {\n {{ mv != null ? (mv | number) : (tv != null ? (tv | number) : textsService.t('TABLE_ITEMS.NO_VISITS')) }}\n }\n </p>\n }\n </div>\n }\n @case ('visitsAllLast') {\n @let iv = $any(i)[$any(i).type];\n @if (iv) {\n @if (iv.visits?.length > 0 || iv.monthlyVisits != null || iv.totalVisits != null) {\n <div class=\"flex flex-col\">\n <p class=\"py-0 my-0\">\n <span class=\"mr-0.5 text-sm font-semibold\">\n {{ iv.visits?.length ? (iv.visits | visitsMonthTotal: 'month' | number) : (iv.monthlyVisits ?? 0) }}\n </span>\n <span class=\"text-xs font-extralight\">{{ currentDate | dateFormat: 'MMMM' | titlecase }}</span>\n </p>\n <p class=\"py-0 my-0\">\n <span class=\"mr-0.5 text-sm font-semibold\">\n {{ iv.visits?.length ? (iv.visits | visitsMonthTotal: 'total' | number) : (iv.totalVisits ?? 0) }}\n </span>\n <span class=\"text-xs font-extralight\">Total</span>\n </p>\n </div>\n } @else {\n <p class=\"text-sm font-extralight\">{{ textsService.t('TABLE_ITEMS.NO_VISITS') }}</p>\n }\n }\n }\n @case ('visitsMonthLastVisits') {\n <p class=\"text-sm font-black\">\n {{ $any(i)[$any(i).type] ? ($any(i)[$any(i).type].monthlyVisits ?? $any(i)[$any(i).type].visits | visitsMonthTotal: 'month') : '' }}\n </p>\n }\n @case ('visitsTotalLastVisits') {\n <p class=\"text-sm font-black\">\n {{ $any(i)[$any(i).type] ? ($any(i)[$any(i).type].totalVisits ?? $any(i)[$any(i).type].visits | visitsMonthTotal: 'total') : '' }}\n </p>\n }\n}\n}\n" }]
|
|
17656
|
+
}], propDecorators: { header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: true }] }], item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: true }] }], filters: [{ type: i0.Input, args: [{ isSignal: true, alias: "filters", required: false }] }], admin: [{ type: i0.Input, args: [{ isSignal: true, alias: "admin", required: false }] }] } });
|
|
17593
17657
|
|
|
17594
17658
|
var TABLE_ITEMS_CHAT$1 = {
|
|
17595
17659
|
NO_MESSAGES: "No hay mensajes",
|
|
@@ -18204,7 +18268,7 @@ class XSTableItemsComponent {
|
|
|
18204
18268
|
: button.icon;
|
|
18205
18269
|
}
|
|
18206
18270
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSTableItemsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18207
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSTableItemsComponent, isStandalone: true, selector: "xs-table-items", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, subType: { classPropertyName: "subType", publicName: "subType", isSignal: true, isRequired: true, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: true, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", 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 } }, host: { attributes: { "xs-table-items-host": "" } }, ngImport: i0, template: "@let i = $any(item());\n@if (header().key === 'status') {\n <div class=\"flex items-center gap-3\">\n <div\n class=\"w-3 h-3 rounded-full shadow-lg\"\n [ngClass]=\"{\n 'bg-green-500 shadow-green-500/50': i.status === 'active',\n 'bg-yellow-500 shadow-yellow-500/50': i.status === 'pending',\n 'bg-gray-500 shadow-gray-500/50': !i.status || i.status === 'inactive',\n }\"\n ></div>\n <span class=\"text-sm font-medium text-zinc-700 dark:text-zinc-300 capitalize\">\n {{ i.status || textsService.t('TABLE_ITEMS.NO_STATUS') }}\n </span>\n </div>\n} @else if (header().key === 'multilanguage') {\n <span>{{ $any(item())[header().key] ? textsService.t('TABLE_ITEMS.ACTIVE') : textsService.t('TABLE_ITEMS.INACTIVE') }}</span>\n} @else {\n @switch (componentType) {\n @case ('entity') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n @case ('state') {\n <xs-table-items-state [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-state>\n }\n @case ('visits') {\n <xs-table-items-visits [header]=\"header()\" [item]=\"$any(item())\" [filters]=\"filters()\"></xs-table-items-visits>\n }\n @case ('chat') {\n <xs-table-items-chat [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-chat>\n }\n @case ('contact') {\n <xs-table-items-contact [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-contact>\n }\n @case ('promotion') {\n <xs-table-items-promotion [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-promotion>\n }\n @case ('date') {\n <xs-table-items-date [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-date>\n }\n @case ('country') {\n <xs-table-items-country [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-country>\n }\n @case ('role') {\n <xs-table-items-role [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-role>\n }\n\n @case ('imageVisit') {\n <div class=\"w-12\">\n <xs-image\n [item]=\"$any(item())[i.type]\"\n [typeItem]=\"i.type\"\n [imageType]=\"'small'\"\n [viewTransitionName]=\"i._id\"\n rounded=\"2xl\"\n [objectFit]=\"'cover'\"\n customClass=\"lg:h-12 lg:w-12\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n }\n\n @case ('imageName') {\n <div class=\"flex items-center\">\n <div class=\"h-10 w-10 mr-2\">\n <xs-image\n [item]=\"itemForImage\"\n [typeItem]=\"typeForImage\"\n [viewTransitionName]=\"$any(itemForImage)?._id\"\n size=\"full\"\n rounded=\"lg\"\n objectFit=\"cover\"\n customClass=\"mr-2\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col\">\n <p\n class=\"text-base font-bold truncate text-zinc-900 dark:text-zinc-100 leading-tight\"\n [ngClass]=\"{\n 'cursor-pointer hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200': header().action,\n }\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </p>\n @if ($any(itemForDisplay)?.user?.name) {\n <p class=\"text-xs font-extralight\">\n {{ $any(itemForDisplay).user.name | truncateText: 25 }}\n </p>\n }\n </div>\n </div>\n }\n\n @case ('imageNameExternal') {\n <div class=\"flex items-center\">\n <div class=\"h-10 w-10 mr-2 shrink-0\">\n @if ($any(item())[header().key]) {\n <xs-image\n [src]=\"$any(item())[header().key]\"\n alt=\"\"\n customClass=\"w-10 h-10 object-cover rounded-lg\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col min-w-0\">\n <p\n class=\"text-base font-bold truncate text-zinc-900 dark:text-zinc-100 leading-tight\"\n [ngClass]=\"{\n 'cursor-pointer hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200': header().action,\n }\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </p>\n </div>\n </div>\n }\n\n @case ('name') {\n <a\n class=\"text-sm font-black truncate\"\n [ngClass]=\"{ 'cursor-pointer': header().action }\"\n >\n @if ($any(item())[header().key]) {\n {{ $any(item())[header().key] }}\n }\n </a>\n }\n\n @case ('nameLike') {\n <div class=\"flex gap-3 items-center\">\n <div class=\"h-9 w-9\">\n @if (($any(item())[i.type] && $any(item())[i.type].image) || i.playlist?.cover || i.name) {\n <xs-image\n [item]=\"!i.playlist?.cover ? $any(item())[i.type] : i.name ? { _id: '1', image: true } : { _id: i.playlist?.cover, image: true }\"\n [typeItem]=\"!i.playlist?.cover ? i.type : i.name ? 'artist' : 'media'\"\n [size]=\"'full'\"\n rounded=\"lg\"\n [objectFit]=\"'contain'\"\n [generateAvatar]=\"true\"\n ></xs-image>\n }\n @if ($any(item())[i.type] && !$any(item())[i.type].image && !i.playlist?.cover) {\n <xs-image\n [src]=\"'/assets/images/xsmusic-logo.png'\"\n [alt]=\"'XSMusic'\"\n [objectFit]=\"'cover'\"\n rounded=\"lg\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col\">\n @if ($any(item())[i.type] && $any(item())[i.type].name) {\n <a class=\"mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n <p class=\"flex items-center gap-1\">\n {{ $any(item())[i.type].name }}\n @if ($any(item())[i.type].user && $any(item())[i.type].user._id && $any(item())[i.type].user._id !== adminUser) {\n <svg [attr.aria-label]=\"textsService.t('TABLE_ITEMS.VERIFIED')\" fill=\"rgb(0, 149, 246)\" height=\"10\" viewBox=\"0 0 40 40\" width=\"10\">\n <path 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\" fill-rule=\"evenodd\"></path>\n </svg>\n }\n </p>\n </a>\n }\n @if (i.name) {\n <a class=\"my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n <p>{{ i.name }}</p>\n </a>\n }\n <p class=\"mt-1 text-sm leading-none text-gray-500 dark:text-gray-400 font-extralight\">\n @if (i.type !== 'media' && i.type !== 'site' && i.type !== 'organization' && i.type !== 'visit' && !i.name) {\n <span>{{ i.type | typeES }}</span>\n }\n @if (i.type === 'visit') {\n <span>{{ i.visit?.type ?? '' | lowercase | typeES | firstLetterCase }}</span>\n }\n @if (i.type === 'media' || i.type === 'site') {\n <span>{{ $any(item())[i.type]?.type | typeES }}</span>\n }\n @if (i.type === 'organization') {\n <span>{{ $any(item())[i.type]?.types && $any(item())[i.type]?.types.length > 0 ? ($any(item())[i.type]?.types[0] | typeES) : '' }}</span>\n }\n @if (i.name) {\n <span class=\"text-sm font-extralight dark:text-zinc-400\">{{ i.type }}</span>\n }\n </p>\n </div>\n </div>\n }\n\n @case ('visitPage') {\n <div class=\"flex gap-3 items-center\">\n <div class=\"w-8 h-8 shrink-0\">\n @if (i.entityImage && i.entityType) {\n <xs-image\n [item]=\"{ _id: i.entityId, image: true }\"\n [typeItem]=\"i.entityType\"\n [size]=\"'xs'\"\n [rounded]=\"'full'\"\n [objectFit]=\"'cover'\"\n [generateAvatar]=\"true\"\n ></xs-image>\n } @else {\n <div class=\"flex items-center justify-center w-8 h-8 rounded-full bg-zinc-800/50 shrink-0\">\n <xs-icon [icon]=\"i.icon || 'file-text'\" class=\"text-zinc-500 text-xs\"></xs-icon>\n </div>\n }\n </div>\n <div class=\"flex flex-col min-w-0 flex-1\">\n <p class=\"text-sm truncate text-zinc-300 leading-tight\">\n {{ i.pageLabel || i.entityName || i.name || '-' }}\n </p>\n @if (i.entityTypeLabel) {\n <p class=\"text-[10px] text-zinc-500 leading-tight mt-0.5\">\n {{ i.entityTypeLabel }}\n </p>\n }\n </div>\n </div>\n }\n\n @case ('isLiked') {\n <div class=\"flex items-center gap-3\">\n <div class=\"w-12\">\n <xs-image\n [item]=\"i?.user\"\n [typeItem]=\"'user'\"\n [imageType]=\"'small'\"\n [objectFit]=\"'cover'\"\n rounded=\"2xl\"\n customClass=\"lg:h-12 lg:w-12\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col\">\n <a class=\"block my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n {{ i.user?.name ?? textsService.t('TABLE_ITEMS.USER_DELETED') }}\n </a>\n <p class=\"mt-1 text-sm leading-none text-gray-500 dark:text-gray-400 font-extralight\">\n {{ (i.user?.type | XSTypeUser) ?? textsService.unknown }}\n </p>\n </div>\n </div>\n }\n\n @case ('nameStatsPage') {\n <a\n [href]=\"getUrlStatsPage($any(item()))\"\n target=\"_blank\"\n rel=\"noopener\"\n class=\"flex flex-col my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\"\n >\n <span>{{ i.name | truncateText: 60 }}</span>\n <span class=\"text-sm font-extralight dark:text-zinc-400\">{{ i.path }}</span>\n </a>\n }\n\n @case ('nameStatsEvent') {\n <a\n [href]=\"getUrlStatsPage($any(item()))\"\n target=\"_blank\"\n rel=\"noopener\"\n class=\"flex flex-col my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\"\n >\n <span>\n {{ getNameOrCategoryEvent(i.name, 'name')! }}\n <span>{{ getNameOrCategoryEvent(i.name, 'value') }}</span>\n </span>\n <span class=\"text-sm font-extralight dark:text-zinc-400\">\n {{ getNameOrCategoryEvent(i.name, 'category') | titlecase }}\n </span>\n </a>\n }\n\n @case ('type') {\n <xs-badge\n [size]=\"'md'\"\n [icon]=\"'folder'\"\n [label]=\"$any(item())[header().key]\"\n ></xs-badge>\n }\n\n @case ('typeUser') {\n <xs-badge\n [size]=\"'md'\"\n [icon]=\"'folder'\"\n [label]=\"$any(item())[header().key] | XSTypeUser\"\n ></xs-badge>\n }\n\n @case ('typeOrSubtype') {\n <div class=\"flex items-center gap-1 px-2 py-1 text-xs font-extralight text-zinc-500 dark:text-zinc-400\">\n {{ i.type === 'media' || i.type === 'site'\n ? (i.subtype | titlecase)\n : i.type === 'organization'\n ? (i.subtype | typeES)\n : (i.type | typeES) }}\n </div>\n }\n\n @case ('fieldReport') {\n <p class=\"font-extralight\">{{ i.message?.split(': ')[0] ?? '' | truncateText: 50 }}</p>\n }\n\n @case ('year') {\n <p class=\"font-extralight\">{{ i.year }}</p>\n }\n\n @case ('normal') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('normalTypeLink') {\n @if ($any(item())[i.type] && $any(item())[i.type].name) {\n <a>{{ $any(item())[i.type].name }}</a>\n }\n }\n\n @case ('siteType') {\n <span class=\"px-3 py-1 text-xs text-green-500 bg-green-500/10 rounded-xl\">\n {{ i.site?.type ?? '' | titlecase }}\n </span>\n }\n\n @case ('value') {\n <span class=\"font-extralight\">\n {{ $any(item())[header().key] != null ? '\u20AC' + ($any(item())[header().key] | number: '1.2-2') : '' }}\n </span>\n }\n\n @case ('source') {\n @if (i.source === 'youtube' || i.source === 'soundcloud') {\n <xs-icon\n [icon]=\"i.source === 'youtube' ? ['fab', 'youtube'] : ['fab', 'soundcloud']\"\n [ngClass]=\"{\n 'text-red-600': i.source === 'youtube',\n 'text-orange-600': i.source === 'soundcloud',\n }\"\n ></xs-icon>\n }\n @if (i.source && i.source !== 'youtube' && i.source !== 'soundcloud') {\n <span>{{ i.source }}</span>\n }\n }\n\n @case ('xsSemi') {\n <p class=\"text-xs font-semibold\">{{ $any(item())[header().key] ?? '' }}</p>\n }\n\n @case ('xsSemiNumber') {\n <p class=\"text-xs font-semibold\">{{ $any(item())[header().key] ?? 0 }}</p>\n }\n\n @case ('boolean') {\n <p>{{ $any(item())[header().key] ? textsService.yes : textsService.no }}</p>\n }\n\n @case ('booleanImage') {\n <xs-icon\n [icon]=\"$any(item())[header().key] ? 'check' : 'close'\"\n [ngClass]=\"{\n 'text-green-500': $any(item())[header().key],\n 'text-red-500': !$any(item())[header().key],\n }\"\n ></xs-icon>\n }\n\n @case ('booleanImageReverse') {\n <xs-icon\n [icon]=\"!$any(item())[header().key] ? 'check' : 'close'\"\n [ngClass]=\"{\n 'text-green-500': !$any(item())[header().key],\n 'text-red-500': $any(item())[header().key],\n }\"\n ></xs-icon>\n }\n\n @case ('slugTrueFalse') {\n <span class=\"px-2 py-1 rounded-xl bg-zinc-900/50\">\n <xs-icon\n [icon]=\"i.slug && i.slug !== 'None' ? 'check' : 'close'\"\n ></xs-icon>\n </span>\n }\n\n @case ('coordinates') {\n @if ($any(item())[header().key] && ($any(item())[header().key].lat || $any(item())[header().key].lng)) {\n <span>{{ ($any(item())[header().key].lat | number: '1.4-4') || ($any(item())[header().key].lng | number: '1.4-4') }}</span>\n }\n @if ($any(item())[header().key] && ($any(item())[header().key].lon || $any(item())[header().key].lng)) {\n <span>{{ $any(item())[header().key].lon || $any(item())[header().key].lng | number: '1.4-4' }}</span>\n }\n @if (!$any(item())[header().key]) {\n <span>{{ $any(item())[header().key] }}</span>\n }\n }\n\n @case ('typeVisit') {\n <span class=\"px-3 py-1 text-xs text-red-500 bg-red-500/10 rounded-xl\">\n {{ $any(item())[header().key] | typeES }}\n </span>\n }\n\n @case ('language') {\n <xs-badge\n [size]=\"'md'\"\n [url]=\"(i.language === 'es' ? i.language : 'us') | countryFlag\"\n [label]=\"i.language === 'es' ? textsService.t('TABLE_ITEMS.LANGUAGE.ES') : i.language === 'en' ? textsService.t('TABLE_ITEMS.LANGUAGE.EN') : (i.language | titlecase)\"\n ></xs-badge>\n }\n\n @case ('claimed') {\n @let isClaimed = i.user && (!i.user.name || i.user.name !== 'XSMusic');\n <div\n class=\"flex items-center justify-center w-7 h-7 rounded-full text-xs font-bold\"\n [ngClass]=\"{\n 'bg-green-500/20 text-green-400': isClaimed,\n 'bg-red-500/20 text-red-400': !isClaimed,\n }\"\n >\n <xs-icon [icon]=\"isClaimed ? 'check' : 'close'\" size=\"xs\"></xs-icon>\n </div>\n }\n\n @case ('commentTruncate') {\n <a>{{ $any(item())[header().key] | truncateText: 20 }}</a>\n }\n\n @case ('user') {\n @if (i.user) {\n <div class=\"flex gap-3 mr-16 items-center\">\n <div class=\"h-9 w-9\">\n <xs-image\n [item]=\"i.user\"\n [typeItem]=\"'user'\"\n [imageType]=\"'small'\"\n size=\"full\"\n rounded=\"lg\"\n objectFit=\"contain\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col items-center\">\n <a class=\"block mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n {{ i.user?.name }}\n </a>\n <div class=\"flex gap-2 items-start w-full\">\n @if (i.user.country && i.user.country.code) {\n <xs-image\n [src]=\"i.user.country.code | countryFlag\"\n [alt]=\"i.user.country.code\"\n size=\"xs\"\n ></xs-image>\n }\n <p class=\"mt-1 text-sm leading-none text-gray-400 font-extralight\">\n {{ i.user && i.user.type ? (i.user.type | XSTypeUser) : textsService.t('TABLE_ITEMS.ROLE.USER') }}\n </p>\n </div>\n </div>\n </div>\n }\n }\n\n @case ('styles') {\n @if (i.styles) {\n <div class=\"flex items-center gap-1 px-2 py-1 rounded-xl\">\n <div class=\"flex flex-col items-start gap-1\">\n @for (style of getStyles($any(item())) | sliceArray: 0 : 2; track $index) {\n <div class=\"flex items-center gap-1\">\n <div\n class=\"w-2.5 h-2.5 text-xs border border-zinc-900\"\n [ngStyle]=\"{ 'background-color': getColorForStyle($any(style)) }\"\n ></div>\n <span class=\"text-xs font-extralight\">{{ style.name ?? '' | truncateText: 15 | titlecase }}</span>\n </div>\n }\n </div>\n @if (i.styles.length > 2) {\n <span class=\"text-xs font-extralight\">+{{ i.styles.length - 2 }}</span>\n }\n </div>\n @if (i.styles.length === 0) {\n <span class=\"text-xs font-extralight\">{{ textsService.t('TABLE_ITEMS.NO_STYLES') }}</span>\n }\n }\n }\n\n @case ('artists') {\n <p class=\"mr-2 text-sm font-black\">\n @let artists = getArtists($any(item()));\n @if (artists.length > 0) {\n @for (artist of artists | sliceArray: 0 : 3; track $index) {\n @if ($index !== 0) { <span> & </span> }\n {{ artist.name }}\n }\n @if (artists.length > 3) {\n <span>+{{ artists.length - 3 }}</span>\n }\n }\n @if (artists.length === 0) {\n 0\n }\n </p>\n }\n\n @case ('artistsEvent') {\n <p class=\"mr-2 font-black font-sm\">\n {{ i.artists && (i.artists.length ?? 0) }}\n </p>\n }\n\n @case ('displayZones') {\n <div class=\"flex gap-1\">\n @for (zone of i.displayZones; track $index) {\n <p class=\"px-2 py-1 text-xs font-semibold text-black bg-yellow-600 rounded-xl\">\n {{ zone | firstLetterCase }}\n </p>\n }\n </div>\n }\n\n @case ('types') {\n <div class=\"flex flex-col items-start gap-1 px-2 py-1 rounded-xl\">\n @for (type of $any(item())[header().key]; track $index) {\n <div class=\"flex items-center gap-1\">\n <div\n class=\"w-2.5 h-2.5 text-xs border-1\"\n [ngStyle]=\"{ 'background-color': getColorForType(type) }\"\n ></div>\n <span class=\"pl-1 text-xs font-extralight\">{{ type | typeES }}</span>\n </div>\n }\n </div>\n }\n\n @case ('equipmentSetups') {\n <span>{{ i.equipmentSetups || 0 }} {{ (i.equipmentSetups === 1 ? 'usuario' : 'usuarios') }}</span>\n }\n\n @case ('equipmentSetupComponents') {\n {{ i.components?.length || 0 }}\n }\n\n @case ('typeEquipment') {\n <div class=\"flex flex-col items-start gap-1\">\n <div class=\"flex items-center gap-1\">\n <div class=\"w-2.5 h-2.5 text-xs border border-zinc-900 bg-zinc-900/50\"></div>\n <div class=\"flex flex-col\">\n <span class=\"text-xs font-extralight\">{{ i.type?.name }}</span>\n </div>\n </div>\n </div>\n }\n\n @case ('slides') {\n {{ i.slides?.length || 0 }} slides\n }\n\n @case ('socialLogin') {\n @if (socialLoginButtons.length === 1) {\n <xs-button\n [icon]=\"getButtonIcon(socialLoginButtons[0])\"\n [variant]=\"socialLoginButtons[0].variant || 'primary'\"\n [layout]=\"socialLoginButtons[0].layout || 'base'\"\n class=\"max-w-fit\"\n ></xs-button>\n }\n @if (socialLoginButtons.length > 1) {\n <xs-buttons-group\n [buttonsInput]=\"socialLoginButtons\"\n class=\"max-w-fit\"\n ></xs-buttons-group>\n }\n }\n\n @case ('jira') {\n @if (i.jira) {\n <span class=\"text-xs\">{{ i.jira }}</span>\n }\n @if (!i.jira) {\n <span class=\"text-xs\">N/D</span>\n }\n }\n\n @case ('suggestionType') {\n <span class=\"px-3 py-1 text-xs text-red-500 bg-red-500/10 rounded-xl\">\n {{ i.suggestionType ?? i.type }}\n </span>\n }\n\n @case ('typeModel') {\n <xs-badge\n size=\"md\"\n [label]=\"i.appType === 'web' ? 'PWA' : i.appType === 'mobile' ? 'APP' : 'N/D'\"\n [icon]=\"getIconDeviceBrand($any(item()))\"\n ></xs-badge>\n }\n\n @case ('appVersion') {\n <p class=\"text-sm\">{{ i.appVersion }}</p>\n }\n\n @case ('faqCategory') {\n <p>{{ i.category?.name }}</p>\n }\n\n @case ('faqPosition') {\n {{ i.category?.position ?? '' }} / {{ i.position }}\n }\n\n @case ('countryArtist') {\n <div class=\"flex items-center gap-1\">\n <xs-image\n [src]=\"i.country?.code | countryFlag\"\n [alt]=\"i.country?.code\"\n [objectFit]=\"'cover'\"\n [width]=\"20\"\n [height]=\"20\"\n ></xs-image>\n <span class=\"text-xs\">{{ i.country?.name }}</span>\n </div>\n }\n\n @case ('durationPromotion') {\n <span>{{ i.duration }} d\u00EDas</span>\n }\n\n @case ('githubDateDuration') {\n <div class=\"flex flex-col text-xs font-extralight\">\n <div class=\"flex items-center gap-1\">\n <xs-icon size=\"xs\" [icon]=\"['far', 'calendar']\"></xs-icon>\n {{ i.created_at | date: 'dd/MM/yyyy' }}\n </div>\n <div class=\"flex items-center gap-1\">\n <xs-icon size=\"xs\" [icon]=\"'clock'\"></xs-icon>\n {{ i.duration }}\n </div>\n </div>\n }\n\n @case ('organizationItem') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('playlist') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('position') {\n <span class=\"font-black\">#{{ $any(item())[header().key] }}</span>\n }\n\n @case ('recordLabelItem') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('scrapingEvents') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('startEnd') {\n <div class=\"flex flex-col text-xs\">\n <span>{{ i.date | date: 'dd/MM/yyyy' }}</span>\n <span>{{ i.endDate | date: 'dd/MM/yyyy' }}</span>\n </div>\n }\n\n @case ('town') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('scrapingEventHeader') {\n <div class=\"flex items-center gap-2\">\n <div class=\"h-10 w-10 shrink-0 overflow-hidden rounded-lg bg-zinc-800\">\n @if ($any(item())['image']) {\n <xs-image\n [src]=\"$any(item())['image']\"\n alt=\"\"\n customClass=\"object-cover w-full h-full\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col min-w-0\">\n <a\n class=\"font-medium text-sm truncate text-zinc-900 dark:text-zinc-100 hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200\"\n [href]=\"'https://ra.co/events/' + $any(item())['ra']\"\n target=\"_blank\"\n rel=\"nofollow noopener\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </a>\n </div>\n </div>\n }\n\n @case ('scrapingEventSite') {\n @if ($any(item())['site']?._id === adminUser.ANONYMOUS_SITE) {\n <span class=\"text-sm text-zinc-300\">-</span>\n } @else {\n <div class=\"flex items-center gap-1.5\">\n @if ($any(item())['site']?.address?.country?.code) {\n <img\n [src]=\"$any(item())['site'].address.country.code | countryFlag\"\n [alt]=\"$any(item())['site'].address.country.name\"\n class=\"w-4 h-4 shrink-0\"\n />\n }\n <span class=\"text-sm truncate text-zinc-300\">{{ $any(item())['site']?.name }}</span>\n </div>\n }\n }\n\n @case ('normalBadge') {\n <xs-badge size=\"md\" [label]=\"$any(item())[header().key]\"></xs-badge>\n }\n\n @default {\n <span>{{ $any(item())[header().key] }}</span>\n }\n }\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: XSBadgeComponent, selector: "xs-badge", inputs: ["variant", "size", "ariaLabel", "icon", "url", "label", "customClasses"] }, { kind: "component", type: XSButtonsGroupComponent, selector: "xs-buttons-group", inputs: ["buttonsInput", "buttonClick"], outputs: ["buttonClickOutput"] }, { 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: XSTableItemsEntityComponent, selector: "xs-table-items-entity", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsStateComponent, selector: "xs-table-items-state", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsVisitsComponent, selector: "xs-table-items-visits", inputs: ["header", "item", "filters"] }, { kind: "component", type: XSTableItemsChatComponent, selector: "xs-table-items-chat", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsContactComponent, selector: "xs-table-items-contact", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsPromotionComponent, selector: "xs-table-items-promotion", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsDateComponent, selector: "xs-table-items-date", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsCountryComponent, selector: "xs-table-items-country", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsRoleComponent, selector: "xs-table-items-role", inputs: ["header", "item"] }, { kind: "pipe", type: i1$1.LowerCasePipe, name: "lowercase" }, { kind: "pipe", type: i1$1.DecimalPipe, name: "number" }, { kind: "pipe", type: i1$1.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }, { kind: "pipe", type: TypeESPipe, name: "typeES" }, { kind: "pipe", type: XSTypeUserPipe, name: "XSTypeUser" }, { kind: "pipe", type: TruncateTextPipe, name: "truncateText" }, { kind: "pipe", type: SliceArrayPipe, name: "sliceArray" }, { kind: "pipe", type: XSFirstLetterPipe, name: "firstLetterCase" }, { kind: "pipe", type: CountryFlagPipe, name: "countryFlag" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
18271
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSTableItemsComponent, isStandalone: true, selector: "xs-table-items", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, subType: { classPropertyName: "subType", publicName: "subType", isSignal: true, isRequired: true, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: true, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", 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 } }, host: { attributes: { "xs-table-items-host": "" } }, ngImport: i0, template: "@let i = $any(item());\n@if (header().key === 'status') {\n <div class=\"flex items-center gap-3\">\n <div\n class=\"w-3 h-3 rounded-full shadow-lg\"\n [ngClass]=\"{\n 'bg-green-500 shadow-green-500/50': i.status === 'active',\n 'bg-yellow-500 shadow-yellow-500/50': i.status === 'pending',\n 'bg-gray-500 shadow-gray-500/50': !i.status || i.status === 'inactive',\n }\"\n ></div>\n <span class=\"text-sm font-medium text-zinc-700 dark:text-zinc-300 capitalize\">\n {{ i.status || textsService.t('TABLE_ITEMS.NO_STATUS') }}\n </span>\n </div>\n} @else if (header().key === 'multilanguage') {\n <span>{{ $any(item())[header().key] ? textsService.t('TABLE_ITEMS.ACTIVE') : textsService.t('TABLE_ITEMS.INACTIVE') }}</span>\n} @else {\n @switch (componentType) {\n @case ('entity') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n @case ('state') {\n <xs-table-items-state [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-state>\n }\n @case ('visits') {\n <xs-table-items-visits [header]=\"header()\" [item]=\"$any(item())\" [filters]=\"filters()\" [admin]=\"admin()\"></xs-table-items-visits>\n }\n @case ('chat') {\n <xs-table-items-chat [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-chat>\n }\n @case ('contact') {\n <xs-table-items-contact [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-contact>\n }\n @case ('promotion') {\n <xs-table-items-promotion [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-promotion>\n }\n @case ('date') {\n <xs-table-items-date [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-date>\n }\n @case ('country') {\n <xs-table-items-country [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-country>\n }\n @case ('role') {\n <xs-table-items-role [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-role>\n }\n\n @case ('imageVisit') {\n <div class=\"w-12\">\n <xs-image\n [item]=\"$any(item())[i.type]\"\n [typeItem]=\"i.type\"\n [imageType]=\"'small'\"\n [viewTransitionName]=\"i._id\"\n rounded=\"2xl\"\n [objectFit]=\"'cover'\"\n customClass=\"lg:h-12 lg:w-12\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n }\n\n @case ('imageName') {\n <div class=\"flex items-center\">\n <div class=\"h-10 w-10 mr-2\">\n <xs-image\n [item]=\"itemForImage\"\n [typeItem]=\"typeForImage\"\n [viewTransitionName]=\"$any(itemForImage)?._id\"\n size=\"full\"\n rounded=\"lg\"\n objectFit=\"cover\"\n customClass=\"mr-2\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col\">\n <p\n class=\"text-base font-bold truncate text-zinc-900 dark:text-zinc-100 leading-tight\"\n [ngClass]=\"{\n 'cursor-pointer hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200': header().action,\n }\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </p>\n @if ($any(itemForDisplay)?.user?.name) {\n <p class=\"text-xs font-extralight\">\n {{ $any(itemForDisplay).user.name | truncateText: 25 }}\n </p>\n }\n </div>\n </div>\n }\n\n @case ('imageNameExternal') {\n <div class=\"flex items-center\">\n <div class=\"h-10 w-10 mr-2 shrink-0\">\n @if ($any(item())[header().key]) {\n <xs-image\n [src]=\"$any(item())[header().key]\"\n alt=\"\"\n customClass=\"w-10 h-10 object-cover rounded-lg\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col min-w-0\">\n <p\n class=\"text-base font-bold truncate text-zinc-900 dark:text-zinc-100 leading-tight\"\n [ngClass]=\"{\n 'cursor-pointer hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200': header().action,\n }\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </p>\n </div>\n </div>\n }\n\n @case ('name') {\n <a\n class=\"text-sm font-black truncate\"\n [ngClass]=\"{ 'cursor-pointer': header().action }\"\n >\n @if ($any(item())[header().key]) {\n {{ $any(item())[header().key] }}\n }\n </a>\n }\n\n @case ('nameLike') {\n <div class=\"flex gap-3 items-center\">\n <div class=\"h-9 w-9\">\n @if (($any(item())[i.type] && $any(item())[i.type].image) || i.playlist?.cover || i.name) {\n <xs-image\n [item]=\"!i.playlist?.cover ? $any(item())[i.type] : i.name ? { _id: '1', image: true } : { _id: i.playlist?.cover, image: true }\"\n [typeItem]=\"!i.playlist?.cover ? i.type : i.name ? 'artist' : 'media'\"\n [size]=\"'full'\"\n rounded=\"lg\"\n [objectFit]=\"'contain'\"\n [generateAvatar]=\"true\"\n ></xs-image>\n }\n @if ($any(item())[i.type] && !$any(item())[i.type].image && !i.playlist?.cover) {\n <xs-image\n [src]=\"'/assets/images/xsmusic-logo.png'\"\n [alt]=\"'XSMusic'\"\n [objectFit]=\"'cover'\"\n rounded=\"lg\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col\">\n @if ($any(item())[i.type] && $any(item())[i.type].name) {\n <a class=\"mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n <p class=\"flex items-center gap-1\">\n {{ $any(item())[i.type].name }}\n @if ($any(item())[i.type].user && $any(item())[i.type].user._id && $any(item())[i.type].user._id !== adminUser) {\n <svg [attr.aria-label]=\"textsService.t('TABLE_ITEMS.VERIFIED')\" fill=\"rgb(0, 149, 246)\" height=\"10\" viewBox=\"0 0 40 40\" width=\"10\">\n <path 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\" fill-rule=\"evenodd\"></path>\n </svg>\n }\n </p>\n </a>\n }\n @if (i.name) {\n <a class=\"my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n <p>{{ i.name }}</p>\n </a>\n }\n <p class=\"mt-1 text-sm leading-none text-gray-500 dark:text-gray-400 font-extralight\">\n @if (i.type !== 'media' && i.type !== 'site' && i.type !== 'organization' && i.type !== 'visit' && !i.name) {\n <span>{{ i.type | typeES }}</span>\n }\n @if (i.type === 'visit') {\n <span>{{ i.visit?.type ?? '' | lowercase | typeES | firstLetterCase }}</span>\n }\n @if (i.type === 'media' || i.type === 'site') {\n <span>{{ $any(item())[i.type]?.type | typeES }}</span>\n }\n @if (i.type === 'organization') {\n <span>{{ $any(item())[i.type]?.types && $any(item())[i.type]?.types.length > 0 ? ($any(item())[i.type]?.types[0] | typeES) : '' }}</span>\n }\n @if (i.name) {\n <span class=\"text-sm font-extralight dark:text-zinc-400\">{{ i.type }}</span>\n }\n </p>\n </div>\n </div>\n }\n\n @case ('visitPage') {\n <div class=\"flex gap-3 items-center\">\n <div class=\"w-8 h-8 shrink-0\">\n @if (i.entityImage && i.entityType) {\n <xs-image\n [item]=\"{ _id: i.entityId, image: true }\"\n [typeItem]=\"i.entityType\"\n [size]=\"'xs'\"\n [rounded]=\"'full'\"\n [objectFit]=\"'cover'\"\n [generateAvatar]=\"true\"\n ></xs-image>\n } @else {\n <div class=\"flex items-center justify-center w-8 h-8 rounded-full bg-zinc-800/50 shrink-0\">\n <xs-icon [icon]=\"i.icon || 'file-text'\" class=\"text-zinc-500 text-xs\"></xs-icon>\n </div>\n }\n </div>\n <div class=\"flex flex-col min-w-0 flex-1\">\n <p class=\"text-sm truncate text-zinc-300 leading-tight\">\n {{ i.pageLabel || i.entityName || i.name || '-' }}\n </p>\n @if (i.entityTypeLabel) {\n <p class=\"text-[10px] text-zinc-500 leading-tight mt-0.5\">\n {{ i.entityTypeLabel }}\n </p>\n }\n </div>\n </div>\n }\n\n @case ('isLiked') {\n <div class=\"flex items-center gap-3\">\n <div class=\"w-12\">\n <xs-image\n [item]=\"i?.user\"\n [typeItem]=\"'user'\"\n [imageType]=\"'small'\"\n [objectFit]=\"'cover'\"\n rounded=\"2xl\"\n customClass=\"lg:h-12 lg:w-12\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col\">\n <a class=\"block my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n {{ i.user?.name ?? textsService.t('TABLE_ITEMS.USER_DELETED') }}\n </a>\n <p class=\"mt-1 text-sm leading-none text-gray-500 dark:text-gray-400 font-extralight\">\n {{ (i.user?.type | XSTypeUser) ?? textsService.unknown }}\n </p>\n </div>\n </div>\n }\n\n @case ('nameStatsPage') {\n <a\n [href]=\"getUrlStatsPage($any(item()))\"\n target=\"_blank\"\n rel=\"noopener\"\n class=\"flex flex-col my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\"\n >\n <span>{{ i.name | truncateText: 60 }}</span>\n <span class=\"text-sm font-extralight dark:text-zinc-400\">{{ i.path }}</span>\n </a>\n }\n\n @case ('nameStatsEvent') {\n <a\n [href]=\"getUrlStatsPage($any(item()))\"\n target=\"_blank\"\n rel=\"noopener\"\n class=\"flex flex-col my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\"\n >\n <span>\n {{ getNameOrCategoryEvent(i.name, 'name')! }}\n <span>{{ getNameOrCategoryEvent(i.name, 'value') }}</span>\n </span>\n <span class=\"text-sm font-extralight dark:text-zinc-400\">\n {{ getNameOrCategoryEvent(i.name, 'category') | titlecase }}\n </span>\n </a>\n }\n\n @case ('type') {\n <xs-badge\n [size]=\"'md'\"\n [icon]=\"'folder'\"\n [label]=\"$any(item())[header().key]\"\n ></xs-badge>\n }\n\n @case ('typeUser') {\n <xs-badge\n [size]=\"'md'\"\n [icon]=\"'folder'\"\n [label]=\"$any(item())[header().key] | XSTypeUser\"\n ></xs-badge>\n }\n\n @case ('typeOrSubtype') {\n <div class=\"flex items-center gap-1 px-2 py-1 text-xs font-extralight text-zinc-500 dark:text-zinc-400\">\n {{ i.type === 'media' || i.type === 'site'\n ? (i.subtype | titlecase)\n : i.type === 'organization'\n ? (i.subtype | typeES)\n : (i.type | typeES) }}\n </div>\n }\n\n @case ('fieldReport') {\n <p class=\"font-extralight\">{{ i.message?.split(': ')[0] ?? '' | truncateText: 50 }}</p>\n }\n\n @case ('year') {\n <p class=\"font-extralight\">{{ i.year }}</p>\n }\n\n @case ('normal') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('normalTypeLink') {\n @if ($any(item())[i.type] && $any(item())[i.type].name) {\n <a>{{ $any(item())[i.type].name }}</a>\n }\n }\n\n @case ('siteType') {\n <span class=\"px-3 py-1 text-xs text-green-500 bg-green-500/10 rounded-xl\">\n {{ i.site?.type ?? '' | titlecase }}\n </span>\n }\n\n @case ('value') {\n <span class=\"font-extralight\">\n {{ $any(item())[header().key] != null ? '\u20AC' + ($any(item())[header().key] | number: '1.2-2') : '' }}\n </span>\n }\n\n @case ('source') {\n @if (i.source === 'youtube' || i.source === 'soundcloud') {\n <xs-icon\n [icon]=\"i.source === 'youtube' ? ['fab', 'youtube'] : ['fab', 'soundcloud']\"\n [ngClass]=\"{\n 'text-red-600': i.source === 'youtube',\n 'text-orange-600': i.source === 'soundcloud',\n }\"\n ></xs-icon>\n }\n @if (i.source && i.source !== 'youtube' && i.source !== 'soundcloud') {\n <span>{{ i.source }}</span>\n }\n }\n\n @case ('xsSemi') {\n <p class=\"text-xs font-semibold\">{{ $any(item())[header().key] ?? '' }}</p>\n }\n\n @case ('xsSemiNumber') {\n <p class=\"text-xs font-semibold\">{{ $any(item())[header().key] ?? 0 }}</p>\n }\n\n @case ('boolean') {\n <p>{{ $any(item())[header().key] ? textsService.yes : textsService.no }}</p>\n }\n\n @case ('booleanImage') {\n <xs-icon\n [icon]=\"$any(item())[header().key] ? 'check' : 'close'\"\n [ngClass]=\"{\n 'text-green-500': $any(item())[header().key],\n 'text-red-500': !$any(item())[header().key],\n }\"\n ></xs-icon>\n }\n\n @case ('booleanImageReverse') {\n <xs-icon\n [icon]=\"!$any(item())[header().key] ? 'check' : 'close'\"\n [ngClass]=\"{\n 'text-green-500': !$any(item())[header().key],\n 'text-red-500': $any(item())[header().key],\n }\"\n ></xs-icon>\n }\n\n @case ('slugTrueFalse') {\n <span class=\"px-2 py-1 rounded-xl bg-zinc-900/50\">\n <xs-icon\n [icon]=\"i.slug && i.slug !== 'None' ? 'check' : 'close'\"\n ></xs-icon>\n </span>\n }\n\n @case ('coordinates') {\n @if ($any(item())[header().key] && ($any(item())[header().key].lat || $any(item())[header().key].lng)) {\n <span>{{ ($any(item())[header().key].lat | number: '1.4-4') || ($any(item())[header().key].lng | number: '1.4-4') }}</span>\n }\n @if ($any(item())[header().key] && ($any(item())[header().key].lon || $any(item())[header().key].lng)) {\n <span>{{ $any(item())[header().key].lon || $any(item())[header().key].lng | number: '1.4-4' }}</span>\n }\n @if (!$any(item())[header().key]) {\n <span>{{ $any(item())[header().key] }}</span>\n }\n }\n\n @case ('typeVisit') {\n <span class=\"px-3 py-1 text-xs text-red-500 bg-red-500/10 rounded-xl\">\n {{ $any(item())[header().key] | typeES }}\n </span>\n }\n\n @case ('language') {\n <xs-badge\n [size]=\"'md'\"\n [url]=\"(i.language === 'es' ? i.language : 'us') | countryFlag\"\n [label]=\"i.language === 'es' ? textsService.t('TABLE_ITEMS.LANGUAGE.ES') : i.language === 'en' ? textsService.t('TABLE_ITEMS.LANGUAGE.EN') : (i.language | titlecase)\"\n ></xs-badge>\n }\n\n @case ('claimed') {\n @let isClaimed = i.user && (!i.user.name || i.user.name !== 'XSMusic');\n <div\n class=\"flex items-center justify-center w-7 h-7 rounded-full text-xs font-bold\"\n [ngClass]=\"{\n 'bg-green-500/20 text-green-400': isClaimed,\n 'bg-red-500/20 text-red-400': !isClaimed,\n }\"\n >\n <xs-icon [icon]=\"isClaimed ? 'check' : 'close'\" size=\"xs\"></xs-icon>\n </div>\n }\n\n @case ('commentTruncate') {\n <a>{{ $any(item())[header().key] | truncateText: 20 }}</a>\n }\n\n @case ('user') {\n @if (i.user) {\n <div class=\"flex gap-3 mr-16 items-center\">\n <div class=\"h-9 w-9\">\n <xs-image\n [item]=\"i.user\"\n [typeItem]=\"'user'\"\n [imageType]=\"'small'\"\n size=\"full\"\n rounded=\"lg\"\n objectFit=\"contain\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col items-center\">\n <a class=\"block mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n {{ i.user?.name }}\n </a>\n <div class=\"flex gap-2 items-start w-full\">\n @if (i.user.country && i.user.country.code) {\n <xs-image\n [src]=\"i.user.country.code | countryFlag\"\n [alt]=\"i.user.country.code\"\n size=\"xs\"\n ></xs-image>\n }\n <p class=\"mt-1 text-sm leading-none text-gray-400 font-extralight\">\n {{ i.user && i.user.type ? (i.user.type | XSTypeUser) : textsService.t('TABLE_ITEMS.ROLE.USER') }}\n </p>\n </div>\n </div>\n </div>\n }\n }\n\n @case ('styles') {\n @if (i.styles) {\n <div class=\"flex items-center gap-1 px-2 py-1 rounded-xl\">\n <div class=\"flex flex-col items-start gap-1\">\n @for (style of getStyles($any(item())) | sliceArray: 0 : 2; track $index) {\n <div class=\"flex items-center gap-1\">\n <div\n class=\"w-2.5 h-2.5 text-xs border border-zinc-900\"\n [ngStyle]=\"{ 'background-color': getColorForStyle($any(style)) }\"\n ></div>\n <span class=\"text-xs font-extralight\">{{ style.name ?? '' | truncateText: 15 | titlecase }}</span>\n </div>\n }\n </div>\n @if (i.styles.length > 2) {\n <span class=\"text-xs font-extralight\">+{{ i.styles.length - 2 }}</span>\n }\n </div>\n @if (i.styles.length === 0) {\n <span class=\"text-xs font-extralight\">{{ textsService.t('TABLE_ITEMS.NO_STYLES') }}</span>\n }\n }\n }\n\n @case ('artists') {\n <p class=\"mr-2 text-sm font-black\">\n @let artists = getArtists($any(item()));\n @if (artists.length > 0) {\n @for (artist of artists | sliceArray: 0 : 3; track $index) {\n @if ($index !== 0) { <span> & </span> }\n {{ artist.name }}\n }\n @if (artists.length > 3) {\n <span>+{{ artists.length - 3 }}</span>\n }\n }\n @if (artists.length === 0) {\n 0\n }\n </p>\n }\n\n @case ('artistsEvent') {\n <p class=\"mr-2 font-black font-sm\">\n {{ i.artists && (i.artists.length ?? 0) }}\n </p>\n }\n\n @case ('displayZones') {\n <div class=\"flex gap-1\">\n @for (zone of i.displayZones; track $index) {\n <p class=\"px-2 py-1 text-xs font-semibold text-black bg-yellow-600 rounded-xl\">\n {{ zone | firstLetterCase }}\n </p>\n }\n </div>\n }\n\n @case ('types') {\n <div class=\"flex flex-col items-start gap-1 px-2 py-1 rounded-xl\">\n @for (type of $any(item())[header().key]; track $index) {\n <div class=\"flex items-center gap-1\">\n <div\n class=\"w-2.5 h-2.5 text-xs border-1\"\n [ngStyle]=\"{ 'background-color': getColorForType(type) }\"\n ></div>\n <span class=\"pl-1 text-xs font-extralight\">{{ type | typeES }}</span>\n </div>\n }\n </div>\n }\n\n @case ('equipmentSetups') {\n <span>{{ i.equipmentSetups || 0 }} {{ (i.equipmentSetups === 1 ? 'usuario' : 'usuarios') }}</span>\n }\n\n @case ('equipmentSetupComponents') {\n {{ i.components?.length || 0 }}\n }\n\n @case ('typeEquipment') {\n <div class=\"flex flex-col items-start gap-1\">\n <div class=\"flex items-center gap-1\">\n <div class=\"w-2.5 h-2.5 text-xs border border-zinc-900 bg-zinc-900/50\"></div>\n <div class=\"flex flex-col\">\n <span class=\"text-xs font-extralight\">{{ i.type?.name }}</span>\n </div>\n </div>\n </div>\n }\n\n @case ('slides') {\n {{ i.slides?.length || 0 }} slides\n }\n\n @case ('socialLogin') {\n @if (socialLoginButtons.length === 1) {\n <xs-button\n [icon]=\"getButtonIcon(socialLoginButtons[0])\"\n [variant]=\"socialLoginButtons[0].variant || 'primary'\"\n [layout]=\"socialLoginButtons[0].layout || 'base'\"\n class=\"max-w-fit\"\n ></xs-button>\n }\n @if (socialLoginButtons.length > 1) {\n <xs-buttons-group\n [buttonsInput]=\"socialLoginButtons\"\n class=\"max-w-fit\"\n ></xs-buttons-group>\n }\n }\n\n @case ('jira') {\n @if (i.jira) {\n <span class=\"text-xs\">{{ i.jira }}</span>\n }\n @if (!i.jira) {\n <span class=\"text-xs\">N/D</span>\n }\n }\n\n @case ('suggestionType') {\n <span class=\"px-3 py-1 text-xs text-red-500 bg-red-500/10 rounded-xl\">\n {{ i.suggestionType ?? i.type }}\n </span>\n }\n\n @case ('typeModel') {\n <xs-badge\n size=\"md\"\n [label]=\"i.appType === 'web' ? 'PWA' : i.appType === 'mobile' ? 'APP' : 'N/D'\"\n [icon]=\"getIconDeviceBrand($any(item()))\"\n ></xs-badge>\n }\n\n @case ('appVersion') {\n <p class=\"text-sm\">{{ i.appVersion }}</p>\n }\n\n @case ('faqCategory') {\n <p>{{ i.category?.name }}</p>\n }\n\n @case ('faqPosition') {\n {{ i.category?.position ?? '' }} / {{ i.position }}\n }\n\n @case ('countryArtist') {\n <div class=\"flex items-center gap-1\">\n <xs-image\n [src]=\"i.country?.code | countryFlag\"\n [alt]=\"i.country?.code\"\n [objectFit]=\"'cover'\"\n [width]=\"20\"\n [height]=\"20\"\n ></xs-image>\n <span class=\"text-xs\">{{ i.country?.name }}</span>\n </div>\n }\n\n @case ('durationPromotion') {\n <span>{{ i.duration }} d\u00EDas</span>\n }\n\n @case ('githubDateDuration') {\n <div class=\"flex flex-col text-xs font-extralight\">\n <div class=\"flex items-center gap-1\">\n <xs-icon size=\"xs\" [icon]=\"['far', 'calendar']\"></xs-icon>\n {{ i.created_at | date: 'dd/MM/yyyy' }}\n </div>\n <div class=\"flex items-center gap-1\">\n <xs-icon size=\"xs\" [icon]=\"'clock'\"></xs-icon>\n {{ i.duration }}\n </div>\n </div>\n }\n\n @case ('organizationItem') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('playlist') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('position') {\n <span class=\"font-black\">#{{ $any(item())[header().key] }}</span>\n }\n\n @case ('recordLabelItem') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('scrapingEvents') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('startEnd') {\n <div class=\"flex flex-col text-xs\">\n <span>{{ i.date | date: 'dd/MM/yyyy' }}</span>\n <span>{{ i.endDate | date: 'dd/MM/yyyy' }}</span>\n </div>\n }\n\n @case ('town') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('scrapingEventHeader') {\n <div class=\"flex items-center gap-2\">\n <div class=\"h-10 w-10 shrink-0 overflow-hidden rounded-lg bg-zinc-800\">\n @if ($any(item())['image']) {\n <xs-image\n [src]=\"$any(item())['image']\"\n alt=\"\"\n customClass=\"object-cover w-full h-full\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col min-w-0\">\n <a\n class=\"font-medium text-sm truncate text-zinc-900 dark:text-zinc-100 hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200\"\n [href]=\"'https://ra.co/events/' + $any(item())['ra']\"\n target=\"_blank\"\n rel=\"nofollow noopener\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </a>\n </div>\n </div>\n }\n\n @case ('scrapingEventSite') {\n @if ($any(item())['site']?._id === adminUser.ANONYMOUS_SITE) {\n <span class=\"text-sm text-zinc-300\">-</span>\n } @else {\n <div class=\"flex items-center gap-1.5\">\n @if ($any(item())['site']?.address?.country?.code) {\n <img\n [src]=\"$any(item())['site'].address.country.code | countryFlag\"\n [alt]=\"$any(item())['site'].address.country.name\"\n class=\"w-4 h-4 shrink-0\"\n />\n }\n <span class=\"text-sm truncate text-zinc-300\">{{ $any(item())['site']?.name }}</span>\n </div>\n }\n }\n\n @case ('normalBadge') {\n <xs-badge size=\"md\" [label]=\"$any(item())[header().key]\"></xs-badge>\n }\n\n @default {\n <span>{{ $any(item())[header().key] }}</span>\n }\n }\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: XSBadgeComponent, selector: "xs-badge", inputs: ["variant", "size", "ariaLabel", "icon", "url", "label", "customClasses"] }, { kind: "component", type: XSButtonsGroupComponent, selector: "xs-buttons-group", inputs: ["buttonsInput", "buttonClick"], outputs: ["buttonClickOutput"] }, { 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: XSTableItemsEntityComponent, selector: "xs-table-items-entity", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsStateComponent, selector: "xs-table-items-state", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsVisitsComponent, selector: "xs-table-items-visits", inputs: ["header", "item", "filters", "admin"] }, { kind: "component", type: XSTableItemsChatComponent, selector: "xs-table-items-chat", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsContactComponent, selector: "xs-table-items-contact", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsPromotionComponent, selector: "xs-table-items-promotion", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsDateComponent, selector: "xs-table-items-date", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsCountryComponent, selector: "xs-table-items-country", inputs: ["header", "item"] }, { kind: "component", type: XSTableItemsRoleComponent, selector: "xs-table-items-role", inputs: ["header", "item"] }, { kind: "pipe", type: i1$1.LowerCasePipe, name: "lowercase" }, { kind: "pipe", type: i1$1.DecimalPipe, name: "number" }, { kind: "pipe", type: i1$1.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }, { kind: "pipe", type: TypeESPipe, name: "typeES" }, { kind: "pipe", type: XSTypeUserPipe, name: "XSTypeUser" }, { kind: "pipe", type: TruncateTextPipe, name: "truncateText" }, { kind: "pipe", type: SliceArrayPipe, name: "sliceArray" }, { kind: "pipe", type: XSFirstLetterPipe, name: "firstLetterCase" }, { kind: "pipe", type: CountryFlagPipe, name: "countryFlag" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
18208
18272
|
}
|
|
18209
18273
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSTableItemsComponent, decorators: [{
|
|
18210
18274
|
type: Component,
|
|
@@ -18231,7 +18295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
|
|
|
18231
18295
|
XSTableItemsDateComponent,
|
|
18232
18296
|
XSTableItemsCountryComponent,
|
|
18233
18297
|
XSTableItemsRoleComponent,
|
|
18234
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let i = $any(item());\n@if (header().key === 'status') {\n <div class=\"flex items-center gap-3\">\n <div\n class=\"w-3 h-3 rounded-full shadow-lg\"\n [ngClass]=\"{\n 'bg-green-500 shadow-green-500/50': i.status === 'active',\n 'bg-yellow-500 shadow-yellow-500/50': i.status === 'pending',\n 'bg-gray-500 shadow-gray-500/50': !i.status || i.status === 'inactive',\n }\"\n ></div>\n <span class=\"text-sm font-medium text-zinc-700 dark:text-zinc-300 capitalize\">\n {{ i.status || textsService.t('TABLE_ITEMS.NO_STATUS') }}\n </span>\n </div>\n} @else if (header().key === 'multilanguage') {\n <span>{{ $any(item())[header().key] ? textsService.t('TABLE_ITEMS.ACTIVE') : textsService.t('TABLE_ITEMS.INACTIVE') }}</span>\n} @else {\n @switch (componentType) {\n @case ('entity') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n @case ('state') {\n <xs-table-items-state [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-state>\n }\n @case ('visits') {\n <xs-table-items-visits [header]=\"header()\" [item]=\"$any(item())\" [filters]=\"filters()\"></xs-table-items-visits>\n }\n @case ('chat') {\n <xs-table-items-chat [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-chat>\n }\n @case ('contact') {\n <xs-table-items-contact [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-contact>\n }\n @case ('promotion') {\n <xs-table-items-promotion [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-promotion>\n }\n @case ('date') {\n <xs-table-items-date [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-date>\n }\n @case ('country') {\n <xs-table-items-country [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-country>\n }\n @case ('role') {\n <xs-table-items-role [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-role>\n }\n\n @case ('imageVisit') {\n <div class=\"w-12\">\n <xs-image\n [item]=\"$any(item())[i.type]\"\n [typeItem]=\"i.type\"\n [imageType]=\"'small'\"\n [viewTransitionName]=\"i._id\"\n rounded=\"2xl\"\n [objectFit]=\"'cover'\"\n customClass=\"lg:h-12 lg:w-12\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n }\n\n @case ('imageName') {\n <div class=\"flex items-center\">\n <div class=\"h-10 w-10 mr-2\">\n <xs-image\n [item]=\"itemForImage\"\n [typeItem]=\"typeForImage\"\n [viewTransitionName]=\"$any(itemForImage)?._id\"\n size=\"full\"\n rounded=\"lg\"\n objectFit=\"cover\"\n customClass=\"mr-2\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col\">\n <p\n class=\"text-base font-bold truncate text-zinc-900 dark:text-zinc-100 leading-tight\"\n [ngClass]=\"{\n 'cursor-pointer hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200': header().action,\n }\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </p>\n @if ($any(itemForDisplay)?.user?.name) {\n <p class=\"text-xs font-extralight\">\n {{ $any(itemForDisplay).user.name | truncateText: 25 }}\n </p>\n }\n </div>\n </div>\n }\n\n @case ('imageNameExternal') {\n <div class=\"flex items-center\">\n <div class=\"h-10 w-10 mr-2 shrink-0\">\n @if ($any(item())[header().key]) {\n <xs-image\n [src]=\"$any(item())[header().key]\"\n alt=\"\"\n customClass=\"w-10 h-10 object-cover rounded-lg\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col min-w-0\">\n <p\n class=\"text-base font-bold truncate text-zinc-900 dark:text-zinc-100 leading-tight\"\n [ngClass]=\"{\n 'cursor-pointer hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200': header().action,\n }\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </p>\n </div>\n </div>\n }\n\n @case ('name') {\n <a\n class=\"text-sm font-black truncate\"\n [ngClass]=\"{ 'cursor-pointer': header().action }\"\n >\n @if ($any(item())[header().key]) {\n {{ $any(item())[header().key] }}\n }\n </a>\n }\n\n @case ('nameLike') {\n <div class=\"flex gap-3 items-center\">\n <div class=\"h-9 w-9\">\n @if (($any(item())[i.type] && $any(item())[i.type].image) || i.playlist?.cover || i.name) {\n <xs-image\n [item]=\"!i.playlist?.cover ? $any(item())[i.type] : i.name ? { _id: '1', image: true } : { _id: i.playlist?.cover, image: true }\"\n [typeItem]=\"!i.playlist?.cover ? i.type : i.name ? 'artist' : 'media'\"\n [size]=\"'full'\"\n rounded=\"lg\"\n [objectFit]=\"'contain'\"\n [generateAvatar]=\"true\"\n ></xs-image>\n }\n @if ($any(item())[i.type] && !$any(item())[i.type].image && !i.playlist?.cover) {\n <xs-image\n [src]=\"'/assets/images/xsmusic-logo.png'\"\n [alt]=\"'XSMusic'\"\n [objectFit]=\"'cover'\"\n rounded=\"lg\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col\">\n @if ($any(item())[i.type] && $any(item())[i.type].name) {\n <a class=\"mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n <p class=\"flex items-center gap-1\">\n {{ $any(item())[i.type].name }}\n @if ($any(item())[i.type].user && $any(item())[i.type].user._id && $any(item())[i.type].user._id !== adminUser) {\n <svg [attr.aria-label]=\"textsService.t('TABLE_ITEMS.VERIFIED')\" fill=\"rgb(0, 149, 246)\" height=\"10\" viewBox=\"0 0 40 40\" width=\"10\">\n <path 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\" fill-rule=\"evenodd\"></path>\n </svg>\n }\n </p>\n </a>\n }\n @if (i.name) {\n <a class=\"my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n <p>{{ i.name }}</p>\n </a>\n }\n <p class=\"mt-1 text-sm leading-none text-gray-500 dark:text-gray-400 font-extralight\">\n @if (i.type !== 'media' && i.type !== 'site' && i.type !== 'organization' && i.type !== 'visit' && !i.name) {\n <span>{{ i.type | typeES }}</span>\n }\n @if (i.type === 'visit') {\n <span>{{ i.visit?.type ?? '' | lowercase | typeES | firstLetterCase }}</span>\n }\n @if (i.type === 'media' || i.type === 'site') {\n <span>{{ $any(item())[i.type]?.type | typeES }}</span>\n }\n @if (i.type === 'organization') {\n <span>{{ $any(item())[i.type]?.types && $any(item())[i.type]?.types.length > 0 ? ($any(item())[i.type]?.types[0] | typeES) : '' }}</span>\n }\n @if (i.name) {\n <span class=\"text-sm font-extralight dark:text-zinc-400\">{{ i.type }}</span>\n }\n </p>\n </div>\n </div>\n }\n\n @case ('visitPage') {\n <div class=\"flex gap-3 items-center\">\n <div class=\"w-8 h-8 shrink-0\">\n @if (i.entityImage && i.entityType) {\n <xs-image\n [item]=\"{ _id: i.entityId, image: true }\"\n [typeItem]=\"i.entityType\"\n [size]=\"'xs'\"\n [rounded]=\"'full'\"\n [objectFit]=\"'cover'\"\n [generateAvatar]=\"true\"\n ></xs-image>\n } @else {\n <div class=\"flex items-center justify-center w-8 h-8 rounded-full bg-zinc-800/50 shrink-0\">\n <xs-icon [icon]=\"i.icon || 'file-text'\" class=\"text-zinc-500 text-xs\"></xs-icon>\n </div>\n }\n </div>\n <div class=\"flex flex-col min-w-0 flex-1\">\n <p class=\"text-sm truncate text-zinc-300 leading-tight\">\n {{ i.pageLabel || i.entityName || i.name || '-' }}\n </p>\n @if (i.entityTypeLabel) {\n <p class=\"text-[10px] text-zinc-500 leading-tight mt-0.5\">\n {{ i.entityTypeLabel }}\n </p>\n }\n </div>\n </div>\n }\n\n @case ('isLiked') {\n <div class=\"flex items-center gap-3\">\n <div class=\"w-12\">\n <xs-image\n [item]=\"i?.user\"\n [typeItem]=\"'user'\"\n [imageType]=\"'small'\"\n [objectFit]=\"'cover'\"\n rounded=\"2xl\"\n customClass=\"lg:h-12 lg:w-12\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col\">\n <a class=\"block my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n {{ i.user?.name ?? textsService.t('TABLE_ITEMS.USER_DELETED') }}\n </a>\n <p class=\"mt-1 text-sm leading-none text-gray-500 dark:text-gray-400 font-extralight\">\n {{ (i.user?.type | XSTypeUser) ?? textsService.unknown }}\n </p>\n </div>\n </div>\n }\n\n @case ('nameStatsPage') {\n <a\n [href]=\"getUrlStatsPage($any(item()))\"\n target=\"_blank\"\n rel=\"noopener\"\n class=\"flex flex-col my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\"\n >\n <span>{{ i.name | truncateText: 60 }}</span>\n <span class=\"text-sm font-extralight dark:text-zinc-400\">{{ i.path }}</span>\n </a>\n }\n\n @case ('nameStatsEvent') {\n <a\n [href]=\"getUrlStatsPage($any(item()))\"\n target=\"_blank\"\n rel=\"noopener\"\n class=\"flex flex-col my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\"\n >\n <span>\n {{ getNameOrCategoryEvent(i.name, 'name')! }}\n <span>{{ getNameOrCategoryEvent(i.name, 'value') }}</span>\n </span>\n <span class=\"text-sm font-extralight dark:text-zinc-400\">\n {{ getNameOrCategoryEvent(i.name, 'category') | titlecase }}\n </span>\n </a>\n }\n\n @case ('type') {\n <xs-badge\n [size]=\"'md'\"\n [icon]=\"'folder'\"\n [label]=\"$any(item())[header().key]\"\n ></xs-badge>\n }\n\n @case ('typeUser') {\n <xs-badge\n [size]=\"'md'\"\n [icon]=\"'folder'\"\n [label]=\"$any(item())[header().key] | XSTypeUser\"\n ></xs-badge>\n }\n\n @case ('typeOrSubtype') {\n <div class=\"flex items-center gap-1 px-2 py-1 text-xs font-extralight text-zinc-500 dark:text-zinc-400\">\n {{ i.type === 'media' || i.type === 'site'\n ? (i.subtype | titlecase)\n : i.type === 'organization'\n ? (i.subtype | typeES)\n : (i.type | typeES) }}\n </div>\n }\n\n @case ('fieldReport') {\n <p class=\"font-extralight\">{{ i.message?.split(': ')[0] ?? '' | truncateText: 50 }}</p>\n }\n\n @case ('year') {\n <p class=\"font-extralight\">{{ i.year }}</p>\n }\n\n @case ('normal') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('normalTypeLink') {\n @if ($any(item())[i.type] && $any(item())[i.type].name) {\n <a>{{ $any(item())[i.type].name }}</a>\n }\n }\n\n @case ('siteType') {\n <span class=\"px-3 py-1 text-xs text-green-500 bg-green-500/10 rounded-xl\">\n {{ i.site?.type ?? '' | titlecase }}\n </span>\n }\n\n @case ('value') {\n <span class=\"font-extralight\">\n {{ $any(item())[header().key] != null ? '\u20AC' + ($any(item())[header().key] | number: '1.2-2') : '' }}\n </span>\n }\n\n @case ('source') {\n @if (i.source === 'youtube' || i.source === 'soundcloud') {\n <xs-icon\n [icon]=\"i.source === 'youtube' ? ['fab', 'youtube'] : ['fab', 'soundcloud']\"\n [ngClass]=\"{\n 'text-red-600': i.source === 'youtube',\n 'text-orange-600': i.source === 'soundcloud',\n }\"\n ></xs-icon>\n }\n @if (i.source && i.source !== 'youtube' && i.source !== 'soundcloud') {\n <span>{{ i.source }}</span>\n }\n }\n\n @case ('xsSemi') {\n <p class=\"text-xs font-semibold\">{{ $any(item())[header().key] ?? '' }}</p>\n }\n\n @case ('xsSemiNumber') {\n <p class=\"text-xs font-semibold\">{{ $any(item())[header().key] ?? 0 }}</p>\n }\n\n @case ('boolean') {\n <p>{{ $any(item())[header().key] ? textsService.yes : textsService.no }}</p>\n }\n\n @case ('booleanImage') {\n <xs-icon\n [icon]=\"$any(item())[header().key] ? 'check' : 'close'\"\n [ngClass]=\"{\n 'text-green-500': $any(item())[header().key],\n 'text-red-500': !$any(item())[header().key],\n }\"\n ></xs-icon>\n }\n\n @case ('booleanImageReverse') {\n <xs-icon\n [icon]=\"!$any(item())[header().key] ? 'check' : 'close'\"\n [ngClass]=\"{\n 'text-green-500': !$any(item())[header().key],\n 'text-red-500': $any(item())[header().key],\n }\"\n ></xs-icon>\n }\n\n @case ('slugTrueFalse') {\n <span class=\"px-2 py-1 rounded-xl bg-zinc-900/50\">\n <xs-icon\n [icon]=\"i.slug && i.slug !== 'None' ? 'check' : 'close'\"\n ></xs-icon>\n </span>\n }\n\n @case ('coordinates') {\n @if ($any(item())[header().key] && ($any(item())[header().key].lat || $any(item())[header().key].lng)) {\n <span>{{ ($any(item())[header().key].lat | number: '1.4-4') || ($any(item())[header().key].lng | number: '1.4-4') }}</span>\n }\n @if ($any(item())[header().key] && ($any(item())[header().key].lon || $any(item())[header().key].lng)) {\n <span>{{ $any(item())[header().key].lon || $any(item())[header().key].lng | number: '1.4-4' }}</span>\n }\n @if (!$any(item())[header().key]) {\n <span>{{ $any(item())[header().key] }}</span>\n }\n }\n\n @case ('typeVisit') {\n <span class=\"px-3 py-1 text-xs text-red-500 bg-red-500/10 rounded-xl\">\n {{ $any(item())[header().key] | typeES }}\n </span>\n }\n\n @case ('language') {\n <xs-badge\n [size]=\"'md'\"\n [url]=\"(i.language === 'es' ? i.language : 'us') | countryFlag\"\n [label]=\"i.language === 'es' ? textsService.t('TABLE_ITEMS.LANGUAGE.ES') : i.language === 'en' ? textsService.t('TABLE_ITEMS.LANGUAGE.EN') : (i.language | titlecase)\"\n ></xs-badge>\n }\n\n @case ('claimed') {\n @let isClaimed = i.user && (!i.user.name || i.user.name !== 'XSMusic');\n <div\n class=\"flex items-center justify-center w-7 h-7 rounded-full text-xs font-bold\"\n [ngClass]=\"{\n 'bg-green-500/20 text-green-400': isClaimed,\n 'bg-red-500/20 text-red-400': !isClaimed,\n }\"\n >\n <xs-icon [icon]=\"isClaimed ? 'check' : 'close'\" size=\"xs\"></xs-icon>\n </div>\n }\n\n @case ('commentTruncate') {\n <a>{{ $any(item())[header().key] | truncateText: 20 }}</a>\n }\n\n @case ('user') {\n @if (i.user) {\n <div class=\"flex gap-3 mr-16 items-center\">\n <div class=\"h-9 w-9\">\n <xs-image\n [item]=\"i.user\"\n [typeItem]=\"'user'\"\n [imageType]=\"'small'\"\n size=\"full\"\n rounded=\"lg\"\n objectFit=\"contain\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col items-center\">\n <a class=\"block mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n {{ i.user?.name }}\n </a>\n <div class=\"flex gap-2 items-start w-full\">\n @if (i.user.country && i.user.country.code) {\n <xs-image\n [src]=\"i.user.country.code | countryFlag\"\n [alt]=\"i.user.country.code\"\n size=\"xs\"\n ></xs-image>\n }\n <p class=\"mt-1 text-sm leading-none text-gray-400 font-extralight\">\n {{ i.user && i.user.type ? (i.user.type | XSTypeUser) : textsService.t('TABLE_ITEMS.ROLE.USER') }}\n </p>\n </div>\n </div>\n </div>\n }\n }\n\n @case ('styles') {\n @if (i.styles) {\n <div class=\"flex items-center gap-1 px-2 py-1 rounded-xl\">\n <div class=\"flex flex-col items-start gap-1\">\n @for (style of getStyles($any(item())) | sliceArray: 0 : 2; track $index) {\n <div class=\"flex items-center gap-1\">\n <div\n class=\"w-2.5 h-2.5 text-xs border border-zinc-900\"\n [ngStyle]=\"{ 'background-color': getColorForStyle($any(style)) }\"\n ></div>\n <span class=\"text-xs font-extralight\">{{ style.name ?? '' | truncateText: 15 | titlecase }}</span>\n </div>\n }\n </div>\n @if (i.styles.length > 2) {\n <span class=\"text-xs font-extralight\">+{{ i.styles.length - 2 }}</span>\n }\n </div>\n @if (i.styles.length === 0) {\n <span class=\"text-xs font-extralight\">{{ textsService.t('TABLE_ITEMS.NO_STYLES') }}</span>\n }\n }\n }\n\n @case ('artists') {\n <p class=\"mr-2 text-sm font-black\">\n @let artists = getArtists($any(item()));\n @if (artists.length > 0) {\n @for (artist of artists | sliceArray: 0 : 3; track $index) {\n @if ($index !== 0) { <span> & </span> }\n {{ artist.name }}\n }\n @if (artists.length > 3) {\n <span>+{{ artists.length - 3 }}</span>\n }\n }\n @if (artists.length === 0) {\n 0\n }\n </p>\n }\n\n @case ('artistsEvent') {\n <p class=\"mr-2 font-black font-sm\">\n {{ i.artists && (i.artists.length ?? 0) }}\n </p>\n }\n\n @case ('displayZones') {\n <div class=\"flex gap-1\">\n @for (zone of i.displayZones; track $index) {\n <p class=\"px-2 py-1 text-xs font-semibold text-black bg-yellow-600 rounded-xl\">\n {{ zone | firstLetterCase }}\n </p>\n }\n </div>\n }\n\n @case ('types') {\n <div class=\"flex flex-col items-start gap-1 px-2 py-1 rounded-xl\">\n @for (type of $any(item())[header().key]; track $index) {\n <div class=\"flex items-center gap-1\">\n <div\n class=\"w-2.5 h-2.5 text-xs border-1\"\n [ngStyle]=\"{ 'background-color': getColorForType(type) }\"\n ></div>\n <span class=\"pl-1 text-xs font-extralight\">{{ type | typeES }}</span>\n </div>\n }\n </div>\n }\n\n @case ('equipmentSetups') {\n <span>{{ i.equipmentSetups || 0 }} {{ (i.equipmentSetups === 1 ? 'usuario' : 'usuarios') }}</span>\n }\n\n @case ('equipmentSetupComponents') {\n {{ i.components?.length || 0 }}\n }\n\n @case ('typeEquipment') {\n <div class=\"flex flex-col items-start gap-1\">\n <div class=\"flex items-center gap-1\">\n <div class=\"w-2.5 h-2.5 text-xs border border-zinc-900 bg-zinc-900/50\"></div>\n <div class=\"flex flex-col\">\n <span class=\"text-xs font-extralight\">{{ i.type?.name }}</span>\n </div>\n </div>\n </div>\n }\n\n @case ('slides') {\n {{ i.slides?.length || 0 }} slides\n }\n\n @case ('socialLogin') {\n @if (socialLoginButtons.length === 1) {\n <xs-button\n [icon]=\"getButtonIcon(socialLoginButtons[0])\"\n [variant]=\"socialLoginButtons[0].variant || 'primary'\"\n [layout]=\"socialLoginButtons[0].layout || 'base'\"\n class=\"max-w-fit\"\n ></xs-button>\n }\n @if (socialLoginButtons.length > 1) {\n <xs-buttons-group\n [buttonsInput]=\"socialLoginButtons\"\n class=\"max-w-fit\"\n ></xs-buttons-group>\n }\n }\n\n @case ('jira') {\n @if (i.jira) {\n <span class=\"text-xs\">{{ i.jira }}</span>\n }\n @if (!i.jira) {\n <span class=\"text-xs\">N/D</span>\n }\n }\n\n @case ('suggestionType') {\n <span class=\"px-3 py-1 text-xs text-red-500 bg-red-500/10 rounded-xl\">\n {{ i.suggestionType ?? i.type }}\n </span>\n }\n\n @case ('typeModel') {\n <xs-badge\n size=\"md\"\n [label]=\"i.appType === 'web' ? 'PWA' : i.appType === 'mobile' ? 'APP' : 'N/D'\"\n [icon]=\"getIconDeviceBrand($any(item()))\"\n ></xs-badge>\n }\n\n @case ('appVersion') {\n <p class=\"text-sm\">{{ i.appVersion }}</p>\n }\n\n @case ('faqCategory') {\n <p>{{ i.category?.name }}</p>\n }\n\n @case ('faqPosition') {\n {{ i.category?.position ?? '' }} / {{ i.position }}\n }\n\n @case ('countryArtist') {\n <div class=\"flex items-center gap-1\">\n <xs-image\n [src]=\"i.country?.code | countryFlag\"\n [alt]=\"i.country?.code\"\n [objectFit]=\"'cover'\"\n [width]=\"20\"\n [height]=\"20\"\n ></xs-image>\n <span class=\"text-xs\">{{ i.country?.name }}</span>\n </div>\n }\n\n @case ('durationPromotion') {\n <span>{{ i.duration }} d\u00EDas</span>\n }\n\n @case ('githubDateDuration') {\n <div class=\"flex flex-col text-xs font-extralight\">\n <div class=\"flex items-center gap-1\">\n <xs-icon size=\"xs\" [icon]=\"['far', 'calendar']\"></xs-icon>\n {{ i.created_at | date: 'dd/MM/yyyy' }}\n </div>\n <div class=\"flex items-center gap-1\">\n <xs-icon size=\"xs\" [icon]=\"'clock'\"></xs-icon>\n {{ i.duration }}\n </div>\n </div>\n }\n\n @case ('organizationItem') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('playlist') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('position') {\n <span class=\"font-black\">#{{ $any(item())[header().key] }}</span>\n }\n\n @case ('recordLabelItem') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('scrapingEvents') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('startEnd') {\n <div class=\"flex flex-col text-xs\">\n <span>{{ i.date | date: 'dd/MM/yyyy' }}</span>\n <span>{{ i.endDate | date: 'dd/MM/yyyy' }}</span>\n </div>\n }\n\n @case ('town') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('scrapingEventHeader') {\n <div class=\"flex items-center gap-2\">\n <div class=\"h-10 w-10 shrink-0 overflow-hidden rounded-lg bg-zinc-800\">\n @if ($any(item())['image']) {\n <xs-image\n [src]=\"$any(item())['image']\"\n alt=\"\"\n customClass=\"object-cover w-full h-full\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col min-w-0\">\n <a\n class=\"font-medium text-sm truncate text-zinc-900 dark:text-zinc-100 hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200\"\n [href]=\"'https://ra.co/events/' + $any(item())['ra']\"\n target=\"_blank\"\n rel=\"nofollow noopener\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </a>\n </div>\n </div>\n }\n\n @case ('scrapingEventSite') {\n @if ($any(item())['site']?._id === adminUser.ANONYMOUS_SITE) {\n <span class=\"text-sm text-zinc-300\">-</span>\n } @else {\n <div class=\"flex items-center gap-1.5\">\n @if ($any(item())['site']?.address?.country?.code) {\n <img\n [src]=\"$any(item())['site'].address.country.code | countryFlag\"\n [alt]=\"$any(item())['site'].address.country.name\"\n class=\"w-4 h-4 shrink-0\"\n />\n }\n <span class=\"text-sm truncate text-zinc-300\">{{ $any(item())['site']?.name }}</span>\n </div>\n }\n }\n\n @case ('normalBadge') {\n <xs-badge size=\"md\" [label]=\"$any(item())[header().key]\"></xs-badge>\n }\n\n @default {\n <span>{{ $any(item())[header().key] }}</span>\n }\n }\n}\n" }]
|
|
18298
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let i = $any(item());\n@if (header().key === 'status') {\n <div class=\"flex items-center gap-3\">\n <div\n class=\"w-3 h-3 rounded-full shadow-lg\"\n [ngClass]=\"{\n 'bg-green-500 shadow-green-500/50': i.status === 'active',\n 'bg-yellow-500 shadow-yellow-500/50': i.status === 'pending',\n 'bg-gray-500 shadow-gray-500/50': !i.status || i.status === 'inactive',\n }\"\n ></div>\n <span class=\"text-sm font-medium text-zinc-700 dark:text-zinc-300 capitalize\">\n {{ i.status || textsService.t('TABLE_ITEMS.NO_STATUS') }}\n </span>\n </div>\n} @else if (header().key === 'multilanguage') {\n <span>{{ $any(item())[header().key] ? textsService.t('TABLE_ITEMS.ACTIVE') : textsService.t('TABLE_ITEMS.INACTIVE') }}</span>\n} @else {\n @switch (componentType) {\n @case ('entity') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n @case ('state') {\n <xs-table-items-state [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-state>\n }\n @case ('visits') {\n <xs-table-items-visits [header]=\"header()\" [item]=\"$any(item())\" [filters]=\"filters()\" [admin]=\"admin()\"></xs-table-items-visits>\n }\n @case ('chat') {\n <xs-table-items-chat [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-chat>\n }\n @case ('contact') {\n <xs-table-items-contact [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-contact>\n }\n @case ('promotion') {\n <xs-table-items-promotion [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-promotion>\n }\n @case ('date') {\n <xs-table-items-date [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-date>\n }\n @case ('country') {\n <xs-table-items-country [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-country>\n }\n @case ('role') {\n <xs-table-items-role [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-role>\n }\n\n @case ('imageVisit') {\n <div class=\"w-12\">\n <xs-image\n [item]=\"$any(item())[i.type]\"\n [typeItem]=\"i.type\"\n [imageType]=\"'small'\"\n [viewTransitionName]=\"i._id\"\n rounded=\"2xl\"\n [objectFit]=\"'cover'\"\n customClass=\"lg:h-12 lg:w-12\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n }\n\n @case ('imageName') {\n <div class=\"flex items-center\">\n <div class=\"h-10 w-10 mr-2\">\n <xs-image\n [item]=\"itemForImage\"\n [typeItem]=\"typeForImage\"\n [viewTransitionName]=\"$any(itemForImage)?._id\"\n size=\"full\"\n rounded=\"lg\"\n objectFit=\"cover\"\n customClass=\"mr-2\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col\">\n <p\n class=\"text-base font-bold truncate text-zinc-900 dark:text-zinc-100 leading-tight\"\n [ngClass]=\"{\n 'cursor-pointer hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200': header().action,\n }\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </p>\n @if ($any(itemForDisplay)?.user?.name) {\n <p class=\"text-xs font-extralight\">\n {{ $any(itemForDisplay).user.name | truncateText: 25 }}\n </p>\n }\n </div>\n </div>\n }\n\n @case ('imageNameExternal') {\n <div class=\"flex items-center\">\n <div class=\"h-10 w-10 mr-2 shrink-0\">\n @if ($any(item())[header().key]) {\n <xs-image\n [src]=\"$any(item())[header().key]\"\n alt=\"\"\n customClass=\"w-10 h-10 object-cover rounded-lg\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col min-w-0\">\n <p\n class=\"text-base font-bold truncate text-zinc-900 dark:text-zinc-100 leading-tight\"\n [ngClass]=\"{\n 'cursor-pointer hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200': header().action,\n }\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </p>\n </div>\n </div>\n }\n\n @case ('name') {\n <a\n class=\"text-sm font-black truncate\"\n [ngClass]=\"{ 'cursor-pointer': header().action }\"\n >\n @if ($any(item())[header().key]) {\n {{ $any(item())[header().key] }}\n }\n </a>\n }\n\n @case ('nameLike') {\n <div class=\"flex gap-3 items-center\">\n <div class=\"h-9 w-9\">\n @if (($any(item())[i.type] && $any(item())[i.type].image) || i.playlist?.cover || i.name) {\n <xs-image\n [item]=\"!i.playlist?.cover ? $any(item())[i.type] : i.name ? { _id: '1', image: true } : { _id: i.playlist?.cover, image: true }\"\n [typeItem]=\"!i.playlist?.cover ? i.type : i.name ? 'artist' : 'media'\"\n [size]=\"'full'\"\n rounded=\"lg\"\n [objectFit]=\"'contain'\"\n [generateAvatar]=\"true\"\n ></xs-image>\n }\n @if ($any(item())[i.type] && !$any(item())[i.type].image && !i.playlist?.cover) {\n <xs-image\n [src]=\"'/assets/images/xsmusic-logo.png'\"\n [alt]=\"'XSMusic'\"\n [objectFit]=\"'cover'\"\n rounded=\"lg\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col\">\n @if ($any(item())[i.type] && $any(item())[i.type].name) {\n <a class=\"mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n <p class=\"flex items-center gap-1\">\n {{ $any(item())[i.type].name }}\n @if ($any(item())[i.type].user && $any(item())[i.type].user._id && $any(item())[i.type].user._id !== adminUser) {\n <svg [attr.aria-label]=\"textsService.t('TABLE_ITEMS.VERIFIED')\" fill=\"rgb(0, 149, 246)\" height=\"10\" viewBox=\"0 0 40 40\" width=\"10\">\n <path 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\" fill-rule=\"evenodd\"></path>\n </svg>\n }\n </p>\n </a>\n }\n @if (i.name) {\n <a class=\"my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n <p>{{ i.name }}</p>\n </a>\n }\n <p class=\"mt-1 text-sm leading-none text-gray-500 dark:text-gray-400 font-extralight\">\n @if (i.type !== 'media' && i.type !== 'site' && i.type !== 'organization' && i.type !== 'visit' && !i.name) {\n <span>{{ i.type | typeES }}</span>\n }\n @if (i.type === 'visit') {\n <span>{{ i.visit?.type ?? '' | lowercase | typeES | firstLetterCase }}</span>\n }\n @if (i.type === 'media' || i.type === 'site') {\n <span>{{ $any(item())[i.type]?.type | typeES }}</span>\n }\n @if (i.type === 'organization') {\n <span>{{ $any(item())[i.type]?.types && $any(item())[i.type]?.types.length > 0 ? ($any(item())[i.type]?.types[0] | typeES) : '' }}</span>\n }\n @if (i.name) {\n <span class=\"text-sm font-extralight dark:text-zinc-400\">{{ i.type }}</span>\n }\n </p>\n </div>\n </div>\n }\n\n @case ('visitPage') {\n <div class=\"flex gap-3 items-center\">\n <div class=\"w-8 h-8 shrink-0\">\n @if (i.entityImage && i.entityType) {\n <xs-image\n [item]=\"{ _id: i.entityId, image: true }\"\n [typeItem]=\"i.entityType\"\n [size]=\"'xs'\"\n [rounded]=\"'full'\"\n [objectFit]=\"'cover'\"\n [generateAvatar]=\"true\"\n ></xs-image>\n } @else {\n <div class=\"flex items-center justify-center w-8 h-8 rounded-full bg-zinc-800/50 shrink-0\">\n <xs-icon [icon]=\"i.icon || 'file-text'\" class=\"text-zinc-500 text-xs\"></xs-icon>\n </div>\n }\n </div>\n <div class=\"flex flex-col min-w-0 flex-1\">\n <p class=\"text-sm truncate text-zinc-300 leading-tight\">\n {{ i.pageLabel || i.entityName || i.name || '-' }}\n </p>\n @if (i.entityTypeLabel) {\n <p class=\"text-[10px] text-zinc-500 leading-tight mt-0.5\">\n {{ i.entityTypeLabel }}\n </p>\n }\n </div>\n </div>\n }\n\n @case ('isLiked') {\n <div class=\"flex items-center gap-3\">\n <div class=\"w-12\">\n <xs-image\n [item]=\"i?.user\"\n [typeItem]=\"'user'\"\n [imageType]=\"'small'\"\n [objectFit]=\"'cover'\"\n rounded=\"2xl\"\n customClass=\"lg:h-12 lg:w-12\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col\">\n <a class=\"block my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n {{ i.user?.name ?? textsService.t('TABLE_ITEMS.USER_DELETED') }}\n </a>\n <p class=\"mt-1 text-sm leading-none text-gray-500 dark:text-gray-400 font-extralight\">\n {{ (i.user?.type | XSTypeUser) ?? textsService.unknown }}\n </p>\n </div>\n </div>\n }\n\n @case ('nameStatsPage') {\n <a\n [href]=\"getUrlStatsPage($any(item()))\"\n target=\"_blank\"\n rel=\"noopener\"\n class=\"flex flex-col my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\"\n >\n <span>{{ i.name | truncateText: 60 }}</span>\n <span class=\"text-sm font-extralight dark:text-zinc-400\">{{ i.path }}</span>\n </a>\n }\n\n @case ('nameStatsEvent') {\n <a\n [href]=\"getUrlStatsPage($any(item()))\"\n target=\"_blank\"\n rel=\"noopener\"\n class=\"flex flex-col my-1 mr-2 text-lg font-extrabold leading-none text-black dark:text-white\"\n >\n <span>\n {{ getNameOrCategoryEvent(i.name, 'name')! }}\n <span>{{ getNameOrCategoryEvent(i.name, 'value') }}</span>\n </span>\n <span class=\"text-sm font-extralight dark:text-zinc-400\">\n {{ getNameOrCategoryEvent(i.name, 'category') | titlecase }}\n </span>\n </a>\n }\n\n @case ('type') {\n <xs-badge\n [size]=\"'md'\"\n [icon]=\"'folder'\"\n [label]=\"$any(item())[header().key]\"\n ></xs-badge>\n }\n\n @case ('typeUser') {\n <xs-badge\n [size]=\"'md'\"\n [icon]=\"'folder'\"\n [label]=\"$any(item())[header().key] | XSTypeUser\"\n ></xs-badge>\n }\n\n @case ('typeOrSubtype') {\n <div class=\"flex items-center gap-1 px-2 py-1 text-xs font-extralight text-zinc-500 dark:text-zinc-400\">\n {{ i.type === 'media' || i.type === 'site'\n ? (i.subtype | titlecase)\n : i.type === 'organization'\n ? (i.subtype | typeES)\n : (i.type | typeES) }}\n </div>\n }\n\n @case ('fieldReport') {\n <p class=\"font-extralight\">{{ i.message?.split(': ')[0] ?? '' | truncateText: 50 }}</p>\n }\n\n @case ('year') {\n <p class=\"font-extralight\">{{ i.year }}</p>\n }\n\n @case ('normal') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('normalTypeLink') {\n @if ($any(item())[i.type] && $any(item())[i.type].name) {\n <a>{{ $any(item())[i.type].name }}</a>\n }\n }\n\n @case ('siteType') {\n <span class=\"px-3 py-1 text-xs text-green-500 bg-green-500/10 rounded-xl\">\n {{ i.site?.type ?? '' | titlecase }}\n </span>\n }\n\n @case ('value') {\n <span class=\"font-extralight\">\n {{ $any(item())[header().key] != null ? '\u20AC' + ($any(item())[header().key] | number: '1.2-2') : '' }}\n </span>\n }\n\n @case ('source') {\n @if (i.source === 'youtube' || i.source === 'soundcloud') {\n <xs-icon\n [icon]=\"i.source === 'youtube' ? ['fab', 'youtube'] : ['fab', 'soundcloud']\"\n [ngClass]=\"{\n 'text-red-600': i.source === 'youtube',\n 'text-orange-600': i.source === 'soundcloud',\n }\"\n ></xs-icon>\n }\n @if (i.source && i.source !== 'youtube' && i.source !== 'soundcloud') {\n <span>{{ i.source }}</span>\n }\n }\n\n @case ('xsSemi') {\n <p class=\"text-xs font-semibold\">{{ $any(item())[header().key] ?? '' }}</p>\n }\n\n @case ('xsSemiNumber') {\n <p class=\"text-xs font-semibold\">{{ $any(item())[header().key] ?? 0 }}</p>\n }\n\n @case ('boolean') {\n <p>{{ $any(item())[header().key] ? textsService.yes : textsService.no }}</p>\n }\n\n @case ('booleanImage') {\n <xs-icon\n [icon]=\"$any(item())[header().key] ? 'check' : 'close'\"\n [ngClass]=\"{\n 'text-green-500': $any(item())[header().key],\n 'text-red-500': !$any(item())[header().key],\n }\"\n ></xs-icon>\n }\n\n @case ('booleanImageReverse') {\n <xs-icon\n [icon]=\"!$any(item())[header().key] ? 'check' : 'close'\"\n [ngClass]=\"{\n 'text-green-500': !$any(item())[header().key],\n 'text-red-500': $any(item())[header().key],\n }\"\n ></xs-icon>\n }\n\n @case ('slugTrueFalse') {\n <span class=\"px-2 py-1 rounded-xl bg-zinc-900/50\">\n <xs-icon\n [icon]=\"i.slug && i.slug !== 'None' ? 'check' : 'close'\"\n ></xs-icon>\n </span>\n }\n\n @case ('coordinates') {\n @if ($any(item())[header().key] && ($any(item())[header().key].lat || $any(item())[header().key].lng)) {\n <span>{{ ($any(item())[header().key].lat | number: '1.4-4') || ($any(item())[header().key].lng | number: '1.4-4') }}</span>\n }\n @if ($any(item())[header().key] && ($any(item())[header().key].lon || $any(item())[header().key].lng)) {\n <span>{{ $any(item())[header().key].lon || $any(item())[header().key].lng | number: '1.4-4' }}</span>\n }\n @if (!$any(item())[header().key]) {\n <span>{{ $any(item())[header().key] }}</span>\n }\n }\n\n @case ('typeVisit') {\n <span class=\"px-3 py-1 text-xs text-red-500 bg-red-500/10 rounded-xl\">\n {{ $any(item())[header().key] | typeES }}\n </span>\n }\n\n @case ('language') {\n <xs-badge\n [size]=\"'md'\"\n [url]=\"(i.language === 'es' ? i.language : 'us') | countryFlag\"\n [label]=\"i.language === 'es' ? textsService.t('TABLE_ITEMS.LANGUAGE.ES') : i.language === 'en' ? textsService.t('TABLE_ITEMS.LANGUAGE.EN') : (i.language | titlecase)\"\n ></xs-badge>\n }\n\n @case ('claimed') {\n @let isClaimed = i.user && (!i.user.name || i.user.name !== 'XSMusic');\n <div\n class=\"flex items-center justify-center w-7 h-7 rounded-full text-xs font-bold\"\n [ngClass]=\"{\n 'bg-green-500/20 text-green-400': isClaimed,\n 'bg-red-500/20 text-red-400': !isClaimed,\n }\"\n >\n <xs-icon [icon]=\"isClaimed ? 'check' : 'close'\" size=\"xs\"></xs-icon>\n </div>\n }\n\n @case ('commentTruncate') {\n <a>{{ $any(item())[header().key] | truncateText: 20 }}</a>\n }\n\n @case ('user') {\n @if (i.user) {\n <div class=\"flex gap-3 mr-16 items-center\">\n <div class=\"h-9 w-9\">\n <xs-image\n [item]=\"i.user\"\n [typeItem]=\"'user'\"\n [imageType]=\"'small'\"\n size=\"full\"\n rounded=\"lg\"\n objectFit=\"contain\"\n [generateAvatar]=\"true\"\n ></xs-image>\n </div>\n <div class=\"flex flex-col items-center\">\n <a class=\"block mr-2 text-lg font-extrabold leading-none text-black dark:text-white\">\n {{ i.user?.name }}\n </a>\n <div class=\"flex gap-2 items-start w-full\">\n @if (i.user.country && i.user.country.code) {\n <xs-image\n [src]=\"i.user.country.code | countryFlag\"\n [alt]=\"i.user.country.code\"\n size=\"xs\"\n ></xs-image>\n }\n <p class=\"mt-1 text-sm leading-none text-gray-400 font-extralight\">\n {{ i.user && i.user.type ? (i.user.type | XSTypeUser) : textsService.t('TABLE_ITEMS.ROLE.USER') }}\n </p>\n </div>\n </div>\n </div>\n }\n }\n\n @case ('styles') {\n @if (i.styles) {\n <div class=\"flex items-center gap-1 px-2 py-1 rounded-xl\">\n <div class=\"flex flex-col items-start gap-1\">\n @for (style of getStyles($any(item())) | sliceArray: 0 : 2; track $index) {\n <div class=\"flex items-center gap-1\">\n <div\n class=\"w-2.5 h-2.5 text-xs border border-zinc-900\"\n [ngStyle]=\"{ 'background-color': getColorForStyle($any(style)) }\"\n ></div>\n <span class=\"text-xs font-extralight\">{{ style.name ?? '' | truncateText: 15 | titlecase }}</span>\n </div>\n }\n </div>\n @if (i.styles.length > 2) {\n <span class=\"text-xs font-extralight\">+{{ i.styles.length - 2 }}</span>\n }\n </div>\n @if (i.styles.length === 0) {\n <span class=\"text-xs font-extralight\">{{ textsService.t('TABLE_ITEMS.NO_STYLES') }}</span>\n }\n }\n }\n\n @case ('artists') {\n <p class=\"mr-2 text-sm font-black\">\n @let artists = getArtists($any(item()));\n @if (artists.length > 0) {\n @for (artist of artists | sliceArray: 0 : 3; track $index) {\n @if ($index !== 0) { <span> & </span> }\n {{ artist.name }}\n }\n @if (artists.length > 3) {\n <span>+{{ artists.length - 3 }}</span>\n }\n }\n @if (artists.length === 0) {\n 0\n }\n </p>\n }\n\n @case ('artistsEvent') {\n <p class=\"mr-2 font-black font-sm\">\n {{ i.artists && (i.artists.length ?? 0) }}\n </p>\n }\n\n @case ('displayZones') {\n <div class=\"flex gap-1\">\n @for (zone of i.displayZones; track $index) {\n <p class=\"px-2 py-1 text-xs font-semibold text-black bg-yellow-600 rounded-xl\">\n {{ zone | firstLetterCase }}\n </p>\n }\n </div>\n }\n\n @case ('types') {\n <div class=\"flex flex-col items-start gap-1 px-2 py-1 rounded-xl\">\n @for (type of $any(item())[header().key]; track $index) {\n <div class=\"flex items-center gap-1\">\n <div\n class=\"w-2.5 h-2.5 text-xs border-1\"\n [ngStyle]=\"{ 'background-color': getColorForType(type) }\"\n ></div>\n <span class=\"pl-1 text-xs font-extralight\">{{ type | typeES }}</span>\n </div>\n }\n </div>\n }\n\n @case ('equipmentSetups') {\n <span>{{ i.equipmentSetups || 0 }} {{ (i.equipmentSetups === 1 ? 'usuario' : 'usuarios') }}</span>\n }\n\n @case ('equipmentSetupComponents') {\n {{ i.components?.length || 0 }}\n }\n\n @case ('typeEquipment') {\n <div class=\"flex flex-col items-start gap-1\">\n <div class=\"flex items-center gap-1\">\n <div class=\"w-2.5 h-2.5 text-xs border border-zinc-900 bg-zinc-900/50\"></div>\n <div class=\"flex flex-col\">\n <span class=\"text-xs font-extralight\">{{ i.type?.name }}</span>\n </div>\n </div>\n </div>\n }\n\n @case ('slides') {\n {{ i.slides?.length || 0 }} slides\n }\n\n @case ('socialLogin') {\n @if (socialLoginButtons.length === 1) {\n <xs-button\n [icon]=\"getButtonIcon(socialLoginButtons[0])\"\n [variant]=\"socialLoginButtons[0].variant || 'primary'\"\n [layout]=\"socialLoginButtons[0].layout || 'base'\"\n class=\"max-w-fit\"\n ></xs-button>\n }\n @if (socialLoginButtons.length > 1) {\n <xs-buttons-group\n [buttonsInput]=\"socialLoginButtons\"\n class=\"max-w-fit\"\n ></xs-buttons-group>\n }\n }\n\n @case ('jira') {\n @if (i.jira) {\n <span class=\"text-xs\">{{ i.jira }}</span>\n }\n @if (!i.jira) {\n <span class=\"text-xs\">N/D</span>\n }\n }\n\n @case ('suggestionType') {\n <span class=\"px-3 py-1 text-xs text-red-500 bg-red-500/10 rounded-xl\">\n {{ i.suggestionType ?? i.type }}\n </span>\n }\n\n @case ('typeModel') {\n <xs-badge\n size=\"md\"\n [label]=\"i.appType === 'web' ? 'PWA' : i.appType === 'mobile' ? 'APP' : 'N/D'\"\n [icon]=\"getIconDeviceBrand($any(item()))\"\n ></xs-badge>\n }\n\n @case ('appVersion') {\n <p class=\"text-sm\">{{ i.appVersion }}</p>\n }\n\n @case ('faqCategory') {\n <p>{{ i.category?.name }}</p>\n }\n\n @case ('faqPosition') {\n {{ i.category?.position ?? '' }} / {{ i.position }}\n }\n\n @case ('countryArtist') {\n <div class=\"flex items-center gap-1\">\n <xs-image\n [src]=\"i.country?.code | countryFlag\"\n [alt]=\"i.country?.code\"\n [objectFit]=\"'cover'\"\n [width]=\"20\"\n [height]=\"20\"\n ></xs-image>\n <span class=\"text-xs\">{{ i.country?.name }}</span>\n </div>\n }\n\n @case ('durationPromotion') {\n <span>{{ i.duration }} d\u00EDas</span>\n }\n\n @case ('githubDateDuration') {\n <div class=\"flex flex-col text-xs font-extralight\">\n <div class=\"flex items-center gap-1\">\n <xs-icon size=\"xs\" [icon]=\"['far', 'calendar']\"></xs-icon>\n {{ i.created_at | date: 'dd/MM/yyyy' }}\n </div>\n <div class=\"flex items-center gap-1\">\n <xs-icon size=\"xs\" [icon]=\"'clock'\"></xs-icon>\n {{ i.duration }}\n </div>\n </div>\n }\n\n @case ('organizationItem') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('playlist') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('position') {\n <span class=\"font-black\">#{{ $any(item())[header().key] }}</span>\n }\n\n @case ('recordLabelItem') {\n <xs-table-items-entity [header]=\"header()\" [item]=\"$any(item())\"></xs-table-items-entity>\n }\n\n @case ('scrapingEvents') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('startEnd') {\n <div class=\"flex flex-col text-xs\">\n <span>{{ i.date | date: 'dd/MM/yyyy' }}</span>\n <span>{{ i.endDate | date: 'dd/MM/yyyy' }}</span>\n </div>\n }\n\n @case ('town') {\n <span>{{ $any(item())[header().key] }}</span>\n }\n\n @case ('scrapingEventHeader') {\n <div class=\"flex items-center gap-2\">\n <div class=\"h-10 w-10 shrink-0 overflow-hidden rounded-lg bg-zinc-800\">\n @if ($any(item())['image']) {\n <xs-image\n [src]=\"$any(item())['image']\"\n alt=\"\"\n customClass=\"object-cover w-full h-full\"\n ></xs-image>\n }\n </div>\n <div class=\"flex flex-col min-w-0\">\n <a\n class=\"font-medium text-sm truncate text-zinc-900 dark:text-zinc-100 hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors duration-200\"\n [href]=\"'https://ra.co/events/' + $any(item())['ra']\"\n target=\"_blank\"\n rel=\"nofollow noopener\"\n >\n {{ $any(itemForDisplay)?.name ?? '' }}\n </a>\n </div>\n </div>\n }\n\n @case ('scrapingEventSite') {\n @if ($any(item())['site']?._id === adminUser.ANONYMOUS_SITE) {\n <span class=\"text-sm text-zinc-300\">-</span>\n } @else {\n <div class=\"flex items-center gap-1.5\">\n @if ($any(item())['site']?.address?.country?.code) {\n <img\n [src]=\"$any(item())['site'].address.country.code | countryFlag\"\n [alt]=\"$any(item())['site'].address.country.name\"\n class=\"w-4 h-4 shrink-0\"\n />\n }\n <span class=\"text-sm truncate text-zinc-300\">{{ $any(item())['site']?.name }}</span>\n </div>\n }\n }\n\n @case ('normalBadge') {\n <xs-badge size=\"md\" [label]=\"$any(item())[header().key]\"></xs-badge>\n }\n\n @default {\n <span>{{ $any(item())[header().key] }}</span>\n }\n }\n}\n" }]
|
|
18235
18299
|
}], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: true }] }], subType: [{ type: i0.Input, args: [{ isSignal: true, alias: "subType", required: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: true }] }], item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], admin: [{ type: i0.Input, args: [{ isSignal: true, alias: "admin", required: false }] }], filters: [{ type: i0.Input, args: [{ isSignal: true, alias: "filters", required: false }] }] } });
|
|
18236
18300
|
|
|
18237
18301
|
class XSTableCheckboxComponent {
|
|
@@ -22052,5 +22116,5 @@ const uiComponentsExportWithDateMini = [
|
|
|
22052
22116
|
* Generated bundle index. Do not edit.
|
|
22053
22117
|
*/
|
|
22054
22118
|
|
|
22055
|
-
export { ApiService, BREADCRUMBS_PROVIDER, Comment, CountryFlagPipe, CountryNamePipe, DEFAULT_FLOW_LABELS, DateChatPipe, DateDisplayMode, DateFunctions, DateLocaleFormatPipe, DateLongPipe, DateToDayOrMonthPipe, Event, FilterArrayPipe, FixRegionPipe, ImageApiPipe, ImportantItems, IncludeEventPipe, LIB_STORIES, LeadStatusPipe, MediaType, NumberDaysPipe, NumberToMonthPipe, OnImageErrorDirective, OrganizationType, PipesModule, PrioritiesPipe, RandomImagePipe, RolePipe, STANDALONE_PIPES, STYLE_INTENSITIES, SiteType, SliceArrayPipe, SocialPipe, SoundcloudNamePipe, StateIconPipe, StateNamePipe, SuggestionTypePipe, TableLinkPipe, TimeAgoPipe, TitleMediaPipe, TruncateTextPipe, TypeESPipe, User, UserRole, UserType, VisitsMonthTotalPipe, XSActionSheetComponent, XSActionSheetService, XSAlertComponent, XSAlertGroupComponent, XSAlertTextsService, XSAuthComponent, XSAvatarService, XSBadgeComponent, XSBlockComponent, XSBrandMediaPipe, XSBreadcrumbsComponent, XSButtonComponent, XSButtonGroupService, XSButtonsGroupComponent, XSChartComponent, XSChatAlertComponent, XSChatConversationComponent, XSChatConversationInfoComponent, XSChatFloatingPanelComponent, XSChatListComponent, XSChatTextareaComponent, XSCustomizeProfileComponent, XSDateFormatPipe, XSDateMiniComponent, XSDatePipe, XSDocumentService, XSEmptyStateComponent, XSFeedbackComponent, XSFilterPanelComponent, XSFindLabelByValuePipe, XSFirstLetterPipe, XSFormlyAddressSearchComponent, XSFormlyArrayComponent, XSFormlyButtonComponent, XSFormlyCheckboxComponent, XSFormlyComponent, XSFormlyDateComponent, XSFormlyDateRangeComponent, XSFormlyDatetimeComponent, XSFormlyEntityPickerComponent, XSFormlyHiddenComponent, XSFormlyHtmlEditorComponent, XSFormlyInputComponent, XSFormlyInputWithActionsComponent, XSFormlyJsonComponent, XSFormlyJsonEditorComponent, XSFormlyLabelComponent, XSFormlyModule, XSFormlySelectButtonComponent, XSFormlySelectComponent, XSFormlySelectionListComponent, XSFormlySocialComponent, XSFormlyTextareaComponent, XSFormlyTextareaSimpleComponent, XSFormlyType, XSFormlyUploadImageComponent, XSFullImageComponent, XSFullImageService, XSIconComponent, XSImageComponent, XSImportMediaBottomBarComponent, XSImportMediaCardComponent, XSImportMediaFlowComponent, XSImportMediaHeaderComponent, XSInfoBlocksComponent, XSItemActionComponent, XSItemTypeArtistComponent, XSItemTypeBaseComponent, XSItemTypeComponent, XSItemTypeEquipmentComponent, XSItemTypeEventComponent, XSItemTypeLastLoginComponent, XSItemTypeLastVisitComponent, XSItemTypeMediaComponent, XSItemTypeOrganizationComponent, XSItemTypePlaylistComponent, XSItemTypeSiteComponent, XSItemTypeTipComponent, XSItemTypeTrackingComponent, XSItemTypeUserComponent, XSItemTypeUserStatsComponent, XSListComponent, XSMapComponent, XSMapInfoBlockComponent, XSMapLibreComponent, XSMapLibreMapperService, XSMapLibrePopupService, XSMapLibreService, XSMapService, XSMaxCountPipe, XSModalAuthComponent, XSModalClaimComponent, XSModalComponent, XSModalConfirmComponent, XSModalDateComponent, XSModalFormComponent, XSModalImageSearchComponent, XSModalInfoComponent, XSModalInputComponent, XSModalSavedFiltersComponent, XSModalService, XSNavbarComponent, XSNavbarSidebarComponent, XSPopoverInfoComponent, XSProfileCommentsComponent, XSProfileInfoComponent, XSProfileTopsComponent, XSSafeUrlPipe, XSScrollAreaComponent, XSSectionTitleComponent, XSSelectComponent, XSSetupNamePipe, XSSpinnerComponent, XSStatsCardComponent, XSStepperComponent, XSTableCheckboxComponent, XSTableComponent, XSTableItemsChatComponent, XSTableItemsComponent, XSTableItemsContactComponent, XSTableItemsCountryComponent, XSTableItemsDateComponent, XSTableItemsEntityComponent, XSTableItemsPromotionComponent, XSTableItemsRoleComponent, XSTableItemsStateComponent, XSTableItemsVisitsComponent, XSTabsComponent, XSThousandsSeparatorPipe, XSTitleCollapseComponent, XSToastChatComponent, XSToastComponent, XSToastGenericComponent, XSToastService, XSTranslateService, XSTypeUserPipe, XSWindowService, XS_ADMIN_URL, XS_API_URL, XS_CHART_DEFAULT_COLORS, XS_DEFAULT_ADMIN_USER_ID, XS_DEFAULT_IMAGE_PATH, XS_DEFAULT_LOGO_URL, XS_ENV_NAME, XsLongPressDirective, countries, countries_africa, countries_americas, countries_asia, countries_europe, countries_oceania, datetimeLocalToIso, deslugify, firstLetterCase, flags, getColorByType, getColors, getCountryItem, getCountryNameByCode, getNumberWithZero, getTitleMedia, getTypeForApi, getTypePlural, getTypeSingular, getUserTypes, iconNameForSocial, iconNameForType, isBrowser, isMobile, isMobileUI, registerXSUiIcons, stringifyId, titleCase, toDatetimeLocalInput, truncateText, typeToValidType, uiComponents, uiComponentsExport };
|
|
22119
|
+
export { ApiService, BREADCRUMBS_PROVIDER, Comment, CountryFlagPipe, CountryNamePipe, DEFAULT_FLOW_LABELS, DateChatPipe, DateDisplayMode, DateFunctions, DateLocaleFormatPipe, DateLongPipe, DateToDayOrMonthPipe, Event, FilterArrayPipe, FixRegionPipe, ImageApiPipe, ImportantItems, IncludeEventPipe, LIB_STORIES, LeadStatusPipe, MediaType, NumberDaysPipe, NumberToMonthPipe, OnImageErrorDirective, OrganizationType, PipesModule, PrioritiesPipe, RandomImagePipe, RolePipe, STANDALONE_PIPES, STYLE_INTENSITIES, SiteType, SliceArrayPipe, SocialPipe, SoundcloudNamePipe, StateIconPipe, StateNamePipe, SuggestionTypePipe, TableLinkPipe, TimeAgoPipe, TitleMediaPipe, TruncateTextPipe, TypeESPipe, User, UserRole, UserType, VisitsMonthTotalPipe, VisitsSplitPipe, XSActionSheetComponent, XSActionSheetService, XSAlertComponent, XSAlertGroupComponent, XSAlertTextsService, XSAuthComponent, XSAvatarService, XSBadgeComponent, XSBlockComponent, XSBrandMediaPipe, XSBreadcrumbsComponent, XSButtonComponent, XSButtonGroupService, XSButtonsGroupComponent, XSChartComponent, XSChatAlertComponent, XSChatConversationComponent, XSChatConversationInfoComponent, XSChatFloatingPanelComponent, XSChatListComponent, XSChatTextareaComponent, XSCustomizeProfileComponent, XSDateFormatPipe, XSDateMiniComponent, XSDatePipe, XSDocumentService, XSEmptyStateComponent, XSFeedbackComponent, XSFilterPanelComponent, XSFindLabelByValuePipe, XSFirstLetterPipe, XSFormlyAddressSearchComponent, XSFormlyArrayComponent, XSFormlyButtonComponent, XSFormlyCheckboxComponent, XSFormlyComponent, XSFormlyDateComponent, XSFormlyDateRangeComponent, XSFormlyDatetimeComponent, XSFormlyEntityPickerComponent, XSFormlyHiddenComponent, XSFormlyHtmlEditorComponent, XSFormlyInputComponent, XSFormlyInputWithActionsComponent, XSFormlyJsonComponent, XSFormlyJsonEditorComponent, XSFormlyLabelComponent, XSFormlyModule, XSFormlySelectButtonComponent, XSFormlySelectComponent, XSFormlySelectionListComponent, XSFormlySocialComponent, XSFormlyTextareaComponent, XSFormlyTextareaSimpleComponent, XSFormlyType, XSFormlyUploadImageComponent, XSFullImageComponent, XSFullImageService, XSIconComponent, XSImageComponent, XSImportMediaBottomBarComponent, XSImportMediaCardComponent, XSImportMediaFlowComponent, XSImportMediaHeaderComponent, XSInfoBlocksComponent, XSItemActionComponent, XSItemTypeArtistComponent, XSItemTypeBaseComponent, XSItemTypeComponent, XSItemTypeEquipmentComponent, XSItemTypeEventComponent, XSItemTypeLastLoginComponent, XSItemTypeLastVisitComponent, XSItemTypeMediaComponent, XSItemTypeOrganizationComponent, XSItemTypePlaylistComponent, XSItemTypeSiteComponent, XSItemTypeTipComponent, XSItemTypeTrackingComponent, XSItemTypeUserComponent, XSItemTypeUserStatsComponent, XSListComponent, XSMapComponent, XSMapInfoBlockComponent, XSMapLibreComponent, XSMapLibreMapperService, XSMapLibrePopupService, XSMapLibreService, XSMapService, XSMaxCountPipe, XSModalAuthComponent, XSModalClaimComponent, XSModalComponent, XSModalConfirmComponent, XSModalDateComponent, XSModalFormComponent, XSModalImageSearchComponent, XSModalInfoComponent, XSModalInputComponent, XSModalSavedFiltersComponent, XSModalService, XSNavbarComponent, XSNavbarSidebarComponent, XSPopoverInfoComponent, XSProfileCommentsComponent, XSProfileInfoComponent, XSProfileTopsComponent, XSSafeUrlPipe, XSScrollAreaComponent, XSSectionTitleComponent, XSSelectComponent, XSSetupNamePipe, XSSpinnerComponent, XSStatsCardComponent, XSStepperComponent, XSTableCheckboxComponent, XSTableComponent, XSTableItemsChatComponent, XSTableItemsComponent, XSTableItemsContactComponent, XSTableItemsCountryComponent, XSTableItemsDateComponent, XSTableItemsEntityComponent, XSTableItemsPromotionComponent, XSTableItemsRoleComponent, XSTableItemsStateComponent, XSTableItemsVisitsComponent, XSTabsComponent, XSThousandsSeparatorPipe, XSTitleCollapseComponent, XSToastChatComponent, XSToastComponent, XSToastGenericComponent, XSToastService, XSTranslateService, XSTypeUserPipe, XSWindowService, XS_ADMIN_URL, XS_API_URL, XS_CHART_DEFAULT_COLORS, XS_DEFAULT_ADMIN_USER_ID, XS_DEFAULT_IMAGE_PATH, XS_DEFAULT_LOGO_URL, XS_ENV_NAME, XsLongPressDirective, countries, countries_africa, countries_americas, countries_asia, countries_europe, countries_oceania, datetimeLocalToIso, deslugify, firstLetterCase, flags, getColorByType, getColors, getCountryItem, getCountryNameByCode, getNumberWithZero, getTitleMedia, getTypeForApi, getTypePlural, getTypeSingular, getUserTypes, iconNameForSocial, iconNameForType, isBrowser, isMobile, isMobileUI, registerXSUiIcons, stringifyId, titleCase, toDatetimeLocalInput, truncateText, typeToValidType, uiComponents, uiComponentsExport };
|
|
22056
22120
|
//# sourceMappingURL=xsmusices-ui.mjs.map
|