PageSourceSearch

https://app.socialgest.ai/chunk-TPEX3JQU.js

js socialgest.ai collected 2026-10-05 15:08:54 UTC 10,519 bytes, 219 lines download raw bytes

1import {
2  CalendarListParamsMother,
3  CalendarListStore
4} from "./chunk-24HISPJT.js";
5import {
6  PreviewComponent
7} from "./chunk-OYZR5XO4.js";
8import {
9  Component,
10  computed,
11  inject,
12  setClassMetadata,
13  ɵsetClassDebugInfo,
14  ɵɵadvance,
15  ɵɵconditional,
16  ɵɵconditionalCreate,
17  ɵɵdefineComponent,
18  ɵɵelement,
19  ɵɵelementEnd,
20  ɵɵelementStart,
21  ɵɵnextContext,
22  ɵɵproperty,
23  ɵɵrepeater,
24  ɵɵrepeaterCreate,
25  ɵɵrepeaterTrackByIndex,
26  ɵɵtext
27} from "./chunk-TO7AEA7G.js";
28
29// libs/socialgest/benchmark/src/presenter/benchmark/benchmark.component.ts
30function BenchmarkComponent_Conditional_5_For_1_Template(rf, ctx) {
31  if (rf & 1) {
32    \u0275\u0275element(0, "ui-preview", 4);
33  }
34  if (rf & 2) {
35    const post_r1 = ctx.$implicit;
36    \u0275\u0275property("post", post_r1)("userType", 1);
37  }
38}
39function BenchmarkComponent_Conditional_5_Template(rf, ctx) {
40  if (rf & 1) {
41    \u0275\u0275repeaterCreate(0, BenchmarkComponent_Conditional_5_For_1_Template, 1, 2, "ui-preview", 4, \u0275\u0275repeaterTrackByIndex);
42  }
43  if (rf & 2) {
44    const ctx_r1 = \u0275\u0275nextContext();
45    \u0275\u0275repeater(ctx_r1.xPosts());
46  }
47}
48function BenchmarkComponent_Conditional_10_For_1_Template(rf, ctx) {
49  if (rf & 1) {
50    \u0275\u0275element(0, "ui-preview", 4);
51  }
52  if (rf & 2) {
53    const post_r3 = ctx.$implicit;
54    \u0275\u0275property("post", post_r3)("userType", 3);
55  }
56}
57function BenchmarkComponent_Conditional_10_Template(rf, ctx) {
58  if (rf & 1) {
59    \u0275\u0275repeaterCreate(0, BenchmarkComponent_Conditional_10_For_1_Template, 1, 2, "ui-preview", 4, \u0275\u0275repeaterTrackByIndex);
60  }
61  if (rf & 2) {
62    const ctx_r1 = \u0275\u0275nextContext();
63    \u0275\u0275repeater(ctx_r1.instagramPosts());
64  }
65}
66function BenchmarkComponent_Conditional_15_For_1_Template(rf, ctx) {
67  if (rf & 1) {
68    \u0275\u0275element(0, "ui-preview", 4);
69  }
70  if (rf & 2) {
71    const post_r4 = ctx.$implicit;
72    \u0275\u0275property("post", post_r4)("userType", 4);
73  }
74}
75function BenchmarkComponent_Conditional_15_Template(rf, ctx) {
76  if (rf & 1) {
77    \u0275\u0275repeaterCreate(0, BenchmarkComponent_Conditional_15_For_1_Template, 1, 2, "ui-preview", 4, \u0275\u0275repeaterTrackByIndex);
78  }
79  if (rf & 2) {
80    const ctx_r1 = \u0275\u0275nextContext();
81    \u0275\u0275repeater(ctx_r1.linkedinPosts());
82  }
83}
84function BenchmarkComponent_Conditional_20_For_1_Template(rf, ctx) {
85  if (rf & 1) {
86    \u0275\u0275element(0, "ui-preview", 4);
87  }
88  if (rf & 2) {
89    const post_r5 = ctx.$implicit;
90    \u0275\u0275property("post", post_r5)("userType", 2);
91  }
92}
93function BenchmarkComponent_Conditional_20_Template(rf, ctx) {
94  if (rf & 1) {
95    \u0275\u0275repeaterCreate(0, BenchmarkComponent_Conditional_20_For_1_Template, 1, 2, "ui-preview", 4, \u0275\u0275repeaterTrackByIndex);
96  }
97  if (rf & 2) {
98    const ctx_r1 = \u0275\u0275nextContext();
99    \u0275\u0275repeater(ctx_r1.facebookPosts());
100  }
101}
102function BenchmarkComponent_Conditional_25_For_1_Template(rf, ctx) {
103  if (rf & 1) {
104    \u0275\u0275element(0, "ui-preview", 4);
105  }
106  if (rf & 2) {
107    const post_r6 = ctx.$implicit;
108    \u0275\u0275property("post", post_r6)("userType", 3);
109  }
110}
111function BenchmarkComponent_Conditional_25_Template(rf, ctx) {
112  if (rf & 1) {
113    \u0275\u0275repeaterCreate(0, BenchmarkComponent_Conditional_25_For_1_Template, 1, 2, "ui-preview", 4, \u0275\u0275repeaterTrackByIndex);
114  }
115  if (rf & 2) {
116    const ctx_r1 = \u0275\u0275nextContext();
117    \u0275\u0275repeater(ctx_r1.reelPosts());
118  }
119}
120function BenchmarkComponent_Conditional_30_For_1_Template(rf, ctx) {
121  if (rf & 1) {
122    \u0275\u0275element(0, "ui-preview", 4);
123  }
124  if (rf & 2) {
125    const post_r7 = ctx.$implicit;
126    \u0275\u0275property("post", post_r7)("userType", 10);
127  }
128}
129function BenchmarkComponent_Conditional_30_Template(rf, ctx) {
130  if (rf & 1) {
131    \u0275\u0275repeaterCreate(0, BenchmarkComponent_Conditional_30_For_1_Template, 1, 2, "ui-preview", 4, \u0275\u0275repeaterTrackByIndex);
132  }
133  if (rf & 2) {
134    const ctx_r1 = \u0275\u0275nextContext();
135    \u0275\u0275repeater(ctx_r1.telegramPosts());
136  }
137}
138var BenchmarkComponent = class _BenchmarkComponent {
139  calendarStore = inject(CalendarListStore);
140  xPosts = computed(() =>
140 this.calendarStore.postList().posts.filter((p) => p.userList.first.isX));
141  instagramPosts = computed(() => this.calendarStore.postList().posts.filter((p) => p.userList.first.isInstagram));
142  linkedinPosts = computed(() => this.calendarStore.postList().posts.filter((p) => p.userList.first.isLinkedin));
143  facebookPosts = computed(() => this.calendarStore.postList().posts.filter((p) => p.userList.first.isFacebook));
144  reelPosts = computed(() => this.calendarStore.postList().posts.filter((p) => p.userList.first.isYoutube));
145  telegramPosts = computed(() => this.calendarStore.postList().posts.filter((p) => p.userList.first.isTelegram));
146  constructor() {
147    this.calendarStore.posts(CalendarListParamsMother.for("programmed"));
148  }
149  static \u0275fac = function BenchmarkComponent_Factory(__ngFactoryType__) {
150    return new (__ngFactoryType__ || _BenchmarkComponent)();
151  };
152  static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BenchmarkComponent, selectors: [["lib-benchmark"]], decls: 31, vars: 6, consts: [[1, "flex", "flex-col", "gap-1", "p-5", "w-screen", "h-[calc(100vh-3.5rem)]", "overflow-auto"], [1, "flex", "flex-col", "gap-4"], [1, "text-xl", "font-bold"], [1, "flex", "gap-3"], [3, "post", "userType"]], template: function BenchmarkComponent_Template(rf, ctx) {
153    if (rf & 1) {
154      \u0275\u0275elementStart(0, "section", 0)(1, "div", 1)(2, "h4", 2);
155      \u0275\u0275text(3, "X Preview");
156      \u0275\u0275elementEnd();
157      \u0275\u0275elementStart(4, "div", 3);
158      \u0275\u0275conditionalCreate(5, BenchmarkComponent_Conditional_5_Template, 2, 0);
159      \u0275\u0275elementEnd()();
160      \u0275\u0275elementStart(6, "div", 1)(7, "h4", 2);
161      \u0275\u0275text(8, "Instagram Preview");
162      \u0275\u0275elementEnd();
163      \u0275\u0275elementStart(9, "div", 3);
164      \u0275\u0275conditionalCreate(10, BenchmarkComponent_Conditional_10_Template, 2, 0);
165      \u0275\u0275elementEnd()();
166      \u0275\u0275elementStart(11, "div", 1)(12, "h4", 2);
167      \u0275\u0275text(13, "Linkedin Preview");
168      \u0275\u0275elementEnd();
169      \u0275\u0275elementStart(14, "div", 3);
170      \u0275\u0275conditionalCreate(15, BenchmarkComponent_Conditional_15_Template, 2, 0);
171      \u0275\u0275elementEnd()();
172      \u0275\u0275elementStart(16, "div", 1)(17, "h4", 2);
173      \u0275\u0275text(18, "Facebook Preview");
174      \u0275\u0275elementEnd();
175      \u0275\u0275elementStart(19, "div", 3);
176      \u0275\u0275conditionalCreate(20, BenchmarkComponent_Conditional_20_Template, 2, 0);
177      \u0275\u0275elementEnd()();
178      \u0275\u0275elementStart(21, "div", 1)(22, "h4", 2);
179      \u0275\u0275text(23, "Reel Preview");
180      \u0275\u0275elementEnd();
181      \u0275\u0275elementStart(24, "div", 3);
182      \u0275\u0275conditionalCreate(25, BenchmarkComponent_Conditional_25_Template, 2, 0);
183      \u0275\u0275elementEnd()();
184      \u0275\u0275elementStart(26, "div", 1)(27, "h4", 2);
185      \u0275\u0275text(28, "Telegram Preview");
186      \u0275\u0275elementEnd();
187      \u0275\u0275elementStart(29, "div", 3);
188      \u0275\u0275conditionalCreate(30, BenchmarkComponent_Conditional_30_Template, 2, 0);
189      \u0275\u0275elementEnd()()();
190    }
191    if (rf & 2) {
192      \u0275\u0275advance(5);
193      \u0275\u0275conditional(!ctx.calendarStore.isLoading() ? 5 : -1);
194      \u0275\u0275advance(5);
195      \u0275\u0275conditional(!ctx.calendarStore.isLoading() ? 10 : -1);
196      \u0275\u0275advance(5);
197      \u0275\u0275conditional(!ctx.calendarStore.isLoading() ? 15 : -1);
198      \u0275\u0275advance(5);
199      \u0275\u0275conditional(!ctx.calendarStore.isLoading() ? 20 : -1);
200      \u0275\u0275advance(5);
201      \u0275\u0275conditional(!ctx.calendarStore.isLoading() ? 25 : -1);
202      \u0275\u0275advance(5);
203      \u0275\u0275conditional(!ctx.calendarStore.isLoading() ? 30 : -1);
204    }
205  }, dependencies: [PreviewComponent], encapsulation: 2 });
206};
207(() => {
208  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BenchmarkComponent, [{
209    type: Component,
210    args: [{ selector: "lib-benchmark", standalone: true, imports: [PreviewComponent], template: '<section class="flex flex-col gap-1 p-5 w-screen h-[calc(100vh-3.5rem)] overflow-auto">\n  <div class="flex flex-col gap-4">\n    <h4 class="text-xl font-bold">X Preview</h4>\n    <div class="flex gap-3">\n      @if(!calendarStore.isLoading()){ @for(post of xPosts(); track $index){\n      <ui-preview [post]="post" [userType]="1" />\n      } }\n    </div>\n  </div>\n  <div class="flex flex-col gap-4">\n    <h4 class="text-xl font-bold">Instagram Preview</h4>\n    <div class="flex gap-3">\n      @if(!calendarStore.isLoading()){ @for(post of instagramPosts(); track $index){\n      <ui-preview [post]="post" [userType]="3" />\n      } }\n    </div>\n  </div>\n  <div class="flex flex-col gap-4">\n    <h4 class="text-xl font-bold">Linkedin Preview</h4>\n    <div class="flex gap-3">\n      @if(!calendarStore.isLoading()){ @for(post of linkedinPosts(); track $index){\n      <ui-preview [post]="post" [userType]="4" />\n      } }\n    </div>\n  </div>\n  <div class="flex flex-col gap-4">\n    <h4 class="text-xl font-bold">Facebook Preview</h4>\n    <div class="flex gap-3">\n      @if(!calendarStore.isLoading()){ @for(post of facebookPosts(); track $index){\n      <ui-preview [post]="post" [userType]="2" />\n      } }\n    </div>\n  </div>\n  <div class="flex flex-col gap-4">\n    <h4 class="text-xl font-bold">Reel Preview</h4>\n    <div class="flex gap-3">\n      @if(!calendarStore.isLoading()){ @for(post of reelPosts(); track $index){\n      <ui-preview [post]="post" [userType]="3" />\n      } }\n    </div>\n  </div>\n  <div class="flex flex-col gap-4">\n    <h4 class="text-xl font-bold">Telegram Preview</h4>\n    <div class="flex gap-3">\n      @if(!calendarStore.isLoading()){ @for(post of telegramPosts(); track $index){\n      <ui-preview [post]="post" [userType]="10" />\n      } }\n    </div>\n  </div>\n</section>\n' }]
211  }], () => [], null);
212})();
213(() => {
214  (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BenchmarkComponent, { className: "BenchmarkComponent", filePath: "libs/socialgest/benchmark/src/presenter/benchmark/benchmark.component.ts", lineNumber: 11 });
215})();
216
217export {
218  BenchmarkComponent
219};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.