@posiwise/resource-module 0.0.201 → 0.0.203

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.
Files changed (45) hide show
  1. package/fesm2022/{posiwise-resource-module-base-top-banner.component-CrdBpNSj.mjs → posiwise-resource-module-base-top-banner.component-BwujN_up.mjs} +16 -32
  2. package/fesm2022/posiwise-resource-module-base-top-banner.component-BwujN_up.mjs.map +1 -0
  3. package/fesm2022/{posiwise-resource-module-resource-blogs.module-hxktrj98.mjs → posiwise-resource-module-resource-blogs.module-mSKg7oDE.mjs} +52 -70
  4. package/fesm2022/posiwise-resource-module-resource-blogs.module-mSKg7oDE.mjs.map +1 -0
  5. package/fesm2022/{posiwise-resource-module-resource-cards.module-D3yf7FNt.mjs → posiwise-resource-module-resource-cards.module-BSJpkk9V.mjs} +718 -705
  6. package/fesm2022/posiwise-resource-module-resource-cards.module-BSJpkk9V.mjs.map +1 -0
  7. package/fesm2022/{posiwise-resource-module-resource-case-studies.module-CFcO0CI-.mjs → posiwise-resource-module-resource-case-studies.module-rCEpwQ4J.mjs} +62 -61
  8. package/fesm2022/posiwise-resource-module-resource-case-studies.module-rCEpwQ4J.mjs.map +1 -0
  9. package/fesm2022/{posiwise-resource-module-resource-events.module-0PDppSJ6.mjs → posiwise-resource-module-resource-events.module-Djau8zuG.mjs} +53 -54
  10. package/fesm2022/posiwise-resource-module-resource-events.module-Djau8zuG.mjs.map +1 -0
  11. package/fesm2022/{posiwise-resource-module-resource-hub.module-2qzLV9I1.mjs → posiwise-resource-module-resource-hub.module-CQtyBld2.mjs} +141 -122
  12. package/fesm2022/posiwise-resource-module-resource-hub.module-CQtyBld2.mjs.map +1 -0
  13. package/fesm2022/{posiwise-resource-module-resource-integrations.module-DqDd_1U9.mjs → posiwise-resource-module-resource-integrations.module-BXyPZf3W.mjs} +129 -132
  14. package/fesm2022/posiwise-resource-module-resource-integrations.module-BXyPZf3W.mjs.map +1 -0
  15. package/fesm2022/posiwise-resource-module-resource-jobs.module-B53AOs8y.mjs +399 -0
  16. package/fesm2022/posiwise-resource-module-resource-jobs.module-B53AOs8y.mjs.map +1 -0
  17. package/fesm2022/{posiwise-resource-module-resource-post.module-BFuEjqA9.mjs → posiwise-resource-module-resource-post.module-DIaB5kyW.mjs} +206 -212
  18. package/fesm2022/posiwise-resource-module-resource-post.module-DIaB5kyW.mjs.map +1 -0
  19. package/fesm2022/{posiwise-resource-module-resource-release-notes.module-BbofH_0n.mjs → posiwise-resource-module-resource-release-notes.module-Btxs8la7.mjs} +59 -71
  20. package/fesm2022/posiwise-resource-module-resource-release-notes.module-Btxs8la7.mjs.map +1 -0
  21. package/fesm2022/{posiwise-resource-module-resource-root.module-C9c17Dhm.mjs → posiwise-resource-module-resource-root.module-BukwL-wp.mjs} +129 -132
  22. package/fesm2022/posiwise-resource-module-resource-root.module-BukwL-wp.mjs.map +1 -0
  23. package/fesm2022/{posiwise-resource-module-resource-videos.module-BsnB9vFd.mjs → posiwise-resource-module-resource-videos.module-CFkPbXn3.mjs} +50 -71
  24. package/fesm2022/posiwise-resource-module-resource-videos.module-CFkPbXn3.mjs.map +1 -0
  25. package/fesm2022/{posiwise-resource-module-resource-white-papers.module-BC-OyhAK.mjs → posiwise-resource-module-resource-white-papers.module-DBjSfwx4.mjs} +54 -68
  26. package/fesm2022/posiwise-resource-module-resource-white-papers.module-DBjSfwx4.mjs.map +1 -0
  27. package/fesm2022/{posiwise-resource-module-resource.service-IK3r0iUB.mjs → posiwise-resource-module-resource.service-DAXsq-WG.mjs} +7 -8
  28. package/fesm2022/posiwise-resource-module-resource.service-DAXsq-WG.mjs.map +1 -0
  29. package/fesm2022/posiwise-resource-module.mjs +252 -219
  30. package/fesm2022/posiwise-resource-module.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/types/posiwise-resource-module.d.ts +159 -168
  33. package/fesm2022/posiwise-resource-module-base-top-banner.component-CrdBpNSj.mjs.map +0 -1
  34. package/fesm2022/posiwise-resource-module-resource-blogs.module-hxktrj98.mjs.map +0 -1
  35. package/fesm2022/posiwise-resource-module-resource-cards.module-D3yf7FNt.mjs.map +0 -1
  36. package/fesm2022/posiwise-resource-module-resource-case-studies.module-CFcO0CI-.mjs.map +0 -1
  37. package/fesm2022/posiwise-resource-module-resource-events.module-0PDppSJ6.mjs.map +0 -1
  38. package/fesm2022/posiwise-resource-module-resource-hub.module-2qzLV9I1.mjs.map +0 -1
  39. package/fesm2022/posiwise-resource-module-resource-integrations.module-DqDd_1U9.mjs.map +0 -1
  40. package/fesm2022/posiwise-resource-module-resource-post.module-BFuEjqA9.mjs.map +0 -1
  41. package/fesm2022/posiwise-resource-module-resource-release-notes.module-BbofH_0n.mjs.map +0 -1
  42. package/fesm2022/posiwise-resource-module-resource-root.module-C9c17Dhm.mjs.map +0 -1
  43. package/fesm2022/posiwise-resource-module-resource-videos.module-BsnB9vFd.mjs.map +0 -1
  44. package/fesm2022/posiwise-resource-module-resource-white-papers.module-BC-OyhAK.mjs.map +0 -1
  45. package/fesm2022/posiwise-resource-module-resource.service-IK3r0iUB.mjs.map +0 -1
@@ -1,31 +1,32 @@
1
- import { t as ResourceService } from "./posiwise-resource-module-resource.service-IK3r0iUB.mjs";
2
- import { o as ResourceCardComponent } from "./posiwise-resource-module-resource-cards.module-D3yf7FNt.mjs";
1
+ import { t as ResourceService } from "./posiwise-resource-module-resource.service-DAXsq-WG.mjs";
2
+ import { a as ResourceCardComponent } from "./posiwise-resource-module-resource-cards.module-BSJpkk9V.mjs";
3
3
  import { ResourceSharedModule } from "./posiwise-resource-module.mjs";
4
4
  import * as i0 from "@angular/core";
5
- import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Component, NgModule } from "@angular/core";
5
+ import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Component, NgModule, inject } from "@angular/core";
6
+ import { AuthService, CustomToastService, TagService } from "@posiwise/common-services";
6
7
  import { HelperService } from "@posiwise/helper-service";
7
- import * as i3$1 from "@posiwise/common-services";
8
- import * as i6 from "@angular/router";
9
- import { RouterModule } from "@angular/router";
10
- import * as i3 from "@posiwise/resource-contact-us";
11
- import * as i10 from "@angular/common";
12
- import * as i5 from "@angular/forms";
13
- import { UntypedFormBuilder, Validators } from "@angular/forms";
14
- import * as i8$1 from "@posiwise/alpha-module";
15
- import * as i7$1 from "@posiwise/directives";
16
- import * as i9 from "@posiwise/pipes";
17
- import * as i7 from "@posiwise/shared-components";
18
- import * as i9$1 from "primeng/textarea";
19
- import * as i11 from "@jsverse/transloco";
8
+ import * as i1 from "@angular/router";
9
+ import { RouterLink, RouterModule } from "@angular/router";
10
+ import { Trial4ContactUsComponent } from "@posiwise/resource-contact-us";
11
+ import { DatePipe, NgClass } from "@angular/common";
12
+ import * as i1$1 from "@angular/forms";
13
+ import { FormBuilder, FormsModule, ReactiveFormsModule, Validators } from "@angular/forms";
14
+ import * as i2 from "@posiwise/alpha-module";
15
+ import { HubSpotMeetingsSharedModule } from "@posiwise/alpha-module";
16
+ import { ButtonBusyDirective, LazyImgDirective } from "@posiwise/directives";
17
+ import { DateFormatPipe } from "@posiwise/pipes";
18
+ import { NoDataComponent } from "@posiwise/shared-components";
19
+ import { Textarea } from "primeng/textarea";
20
+ import { TranslocoPipe } from "@jsverse/transloco";
20
21
  import { AppBaseComponent } from "@posiwise/app-base-component";
21
- import * as i4 from "@posiwise/utils";
22
- import * as i2 from "@angular/platform-browser";
22
+ import { Bind } from "primeng/bind";
23
+ import { ResourceHeaderComponent } from "@posiwise/utils";
24
+ import { DomSanitizer, Meta, Title } from "@angular/platform-browser";
23
25
  import { ADMIN_ROUTERS } from "@posiwise/common-utilities";
24
- import * as i8 from "primeng/tooltip";
25
- import { TooltipModule } from "primeng/tooltip";
26
+ import { Tooltip, TooltipModule } from "primeng/tooltip";
26
27
  var ResourceBlog = class {
27
28
  static getResourcePostsForm() {
28
- return new UntypedFormBuilder().group({
29
+ return new FormBuilder().group({
29
30
  related_entity_id: [""],
30
31
  related_entity_type: [""],
31
32
  comment: [null, Validators.required],
@@ -34,14 +35,14 @@ var ResourceBlog = class {
34
35
  }
35
36
  };
36
37
  var RelatedResourcesComponent = class RelatedResourcesComponent extends AppBaseComponent {
37
- constructor(resourceService, injector, sanitizer, tagService, authService, toastr, cdr) {
38
- super(injector);
39
- this.resourceService = resourceService;
40
- this.sanitizer = sanitizer;
41
- this.tagService = tagService;
42
- this.authService = authService;
43
- this.toastr = toastr;
44
- this.cdr = cdr;
38
+ constructor() {
39
+ super();
40
+ this.resourceService = inject(ResourceService);
41
+ this.sanitizer = inject(DomSanitizer);
42
+ this.tagService = inject(TagService);
43
+ this.authService = inject(AuthService);
44
+ this.toastr = inject(CustomToastService);
45
+ this.cdr = inject(ChangeDetectorRef);
45
46
  this.resourceCards = [
46
47
  {
47
48
  title: "BLOG: Here’s why you should QA your distributor invoices",
@@ -139,15 +140,7 @@ var RelatedResourcesComponent = class RelatedResourcesComponent extends AppBaseC
139
140
  version: "22.2.3",
140
141
  ngImport: i0,
141
142
  type: RelatedResourcesComponent,
142
- deps: [
143
- { token: ResourceService },
144
- { token: i0.Injector },
145
- { token: i2.DomSanitizer },
146
- { token: i3$1.TagService },
147
- { token: i3$1.AuthService },
148
- { token: i3$1.CustomToastService },
149
- { token: i0.ChangeDetectorRef }
150
- ],
143
+ deps: [],
151
144
  target: i0.ɵɵFactoryTarget.Component
152
145
  });
153
146
  }
@@ -156,7 +149,7 @@ var RelatedResourcesComponent = class RelatedResourcesComponent extends AppBaseC
156
149
  minVersion: "17.0.0",
157
150
  version: "22.2.3",
158
151
  type: RelatedResourcesComponent,
159
- isStandalone: false,
152
+ isStandalone: true,
160
153
  selector: "pw-related-resources",
161
154
  usesInheritance: true,
162
155
  ngImport: i0,
@@ -164,45 +157,36 @@ var RelatedResourcesComponent = class RelatedResourcesComponent extends AppBaseC
164
157
  styles: ["textarea{font-size:1rem!important}.resource-body-section{background-color:#fff}.resource-body-section .container{padding:3rem 1.5rem 4rem!important;max-width:850px!important;margin:0 auto;text-align:left}.user-not-logged-in{background:#fafbfc;border:1px solid #e2e5ea;border-radius:8px;font-size:14px;font-weight:400;color:#5a6473;padding:1rem 1.5rem;box-shadow:none!important;margin-bottom:2rem!important}.user-not-logged-in a{color:#1a1d21!important;text-decoration:none;font-weight:600;transition:color .15s ease-out}.user-not-logged-in a:hover,.user-not-logged-in a:focus-visible{color:var(--first)!important}.user-not-logged-in a:focus-visible{outline:2px solid var(--first);outline-offset:2px;border-radius:2px}.resource-book-section{background:#fff;padding-top:4rem;padding-bottom:0}.resource-book-section .container{max-width:850px;margin:0 auto;padding:0 1.5rem!important;text-align:left}.resource-book-section .resource-contact{line-height:1.6;font-size:1rem;color:#3d4654}.resource-book-section .resource-contact a{text-decoration:underline;color:#1a1d21;margin:0 .2rem;transition:color .15s ease-out}.resource-book-section .resource-contact a:hover{color:var(--first)!important}.resource-offer-section{background:#fff;padding-top:1rem}.resource-offer-section .container{max-width:850px;margin:0 auto;padding:0 1.5rem;text-align:left}.resource-divider{border:0;border-top:1px solid #e2e5ea;margin:2rem auto;max-width:850px;height:0;background:none}::ng-deep .body-quill{border-width:0!important;max-width:850px;display:block;margin-left:auto;margin-right:auto}::ng-deep .ql-snow .ql-editor.post-body-text blockquote{font-size:22px;line-height:1.45;font-weight:600;color:#1a1d21;border-left:4px solid var(--first);padding:6px 0 6px 22px;margin:8px 0}::ng-deep .ql-snow .ql-editor.post-body-text mark{background:linear-gradient(transparent 55%,color-mix(in srgb,var(--first) 22%,transparent) 55%);color:inherit;padding:0 2px}::ng-deep .p-textarea{border-radius:8px;border:1px solid #e2e5ea;font-size:1rem!important}.card{background-color:#fff;border-radius:12px}.comment-row{gap:1.5rem;padding-bottom:3rem;max-width:850px;display:block;margin-left:auto;margin-right:auto}.comment-label{font-size:14px!important;font-weight:600!important;letter-spacing:.04em;text-transform:uppercase;color:#5a6473}.response-row{max-width:850px;display:block;margin-left:auto;margin-right:auto;margin-top:2rem!important}@media(width<=768px){.resource-body-section .container{padding:2rem 1rem 3rem}.resource-book-section{padding-top:2rem!important}.resource-book-section .resource-contact{font-size:.9375rem!important}}\n"],
165
158
  dependencies: [
166
159
  {
167
- kind: "component",
168
- type: ResourceCardComponent,
169
- selector: "pw-resource-cards",
170
- inputs: [
171
- "categoryId",
172
- "isHeaderVisible",
173
- "isRelated",
174
- "resourceTitle",
175
- "postSlice",
176
- "header",
177
- "tag",
178
- "resourceLink",
179
- "user",
180
- "userLoggedIn"
181
- ]
160
+ kind: "ngmodule",
161
+ type: FormsModule
182
162
  },
183
163
  {
184
164
  kind: "directive",
185
- type: i5.ɵNgNoValidate,
165
+ type: i1$1.ɵNgNoValidate,
186
166
  selector: "form:not([ngNoForm]):not([ngNativeValidate])"
187
167
  },
188
168
  {
189
169
  kind: "directive",
190
- type: i5.DefaultValueAccessor,
170
+ type: i1$1.DefaultValueAccessor,
191
171
  selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
192
172
  },
193
173
  {
194
174
  kind: "directive",
195
- type: i5.NgControlStatus,
175
+ type: i1$1.NgControlStatus,
196
176
  selector: "[formControlName],[ngModel],[formControl]"
197
177
  },
198
178
  {
199
179
  kind: "directive",
200
- type: i5.NgControlStatusGroup,
180
+ type: i1$1.NgControlStatusGroup,
201
181
  selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
202
182
  },
183
+ {
184
+ kind: "ngmodule",
185
+ type: ReactiveFormsModule
186
+ },
203
187
  {
204
188
  kind: "directive",
205
- type: i5.FormGroupDirective,
189
+ type: i1$1.FormGroupDirective,
206
190
  selector: "[formGroup]",
207
191
  inputs: ["formGroup"],
208
192
  outputs: ["ngSubmit"],
@@ -210,7 +194,7 @@ var RelatedResourcesComponent = class RelatedResourcesComponent extends AppBaseC
210
194
  },
211
195
  {
212
196
  kind: "directive",
213
- type: i5.FormControlName,
197
+ type: i1$1.FormControlName,
214
198
  selector: "[formControlName]",
215
199
  inputs: [
216
200
  "formControlName",
@@ -221,7 +205,28 @@ var RelatedResourcesComponent = class RelatedResourcesComponent extends AppBaseC
221
205
  },
222
206
  {
223
207
  kind: "directive",
224
- type: i6.RouterLink,
208
+ type: Textarea,
209
+ selector: "[pTextarea], [pInputTextarea]",
210
+ inputs: [
211
+ "pTextareaPT",
212
+ "pTextareaUnstyled",
213
+ "autoResize",
214
+ "pSize",
215
+ "variant",
216
+ "fluid",
217
+ "invalid"
218
+ ],
219
+ outputs: ["onResize"]
220
+ },
221
+ {
222
+ kind: "directive",
223
+ type: ButtonBusyDirective,
224
+ selector: "[buttonBusy]",
225
+ inputs: ["buttonBusy", "busyText"]
226
+ },
227
+ {
228
+ kind: "directive",
229
+ type: RouterLink,
225
230
  selector: "[routerLink]",
226
231
  inputs: [
227
232
  "target",
@@ -240,18 +245,16 @@ var RelatedResourcesComponent = class RelatedResourcesComponent extends AppBaseC
240
245
  },
241
246
  {
242
247
  kind: "directive",
243
- type: i7$1.ButtonBusyDirective,
244
- selector: "[buttonBusy]",
245
- inputs: ["buttonBusy", "busyText"]
248
+ type: LazyImgDirective,
249
+ selector: "img"
246
250
  },
247
251
  {
248
- kind: "directive",
249
- type: i7$1.LazyImgDirective,
250
- selector: "img"
252
+ kind: "ngmodule",
253
+ type: HubSpotMeetingsSharedModule
251
254
  },
252
255
  {
253
256
  kind: "component",
254
- type: i8$1.HubSpotMeetingsComponent,
257
+ type: i2.HubSpotMeetingsComponent,
255
258
  selector: "pw-book-a-demo",
256
259
  inputs: [
257
260
  "isBlog",
@@ -260,28 +263,30 @@ var RelatedResourcesComponent = class RelatedResourcesComponent extends AppBaseC
260
263
  ]
261
264
  },
262
265
  {
263
- kind: "directive",
264
- type: i9$1.Textarea,
265
- selector: "[pTextarea], [pInputTextarea]",
266
+ kind: "component",
267
+ type: ResourceCardComponent,
268
+ selector: "pw-resource-cards",
266
269
  inputs: [
267
- "pTextareaPT",
268
- "pTextareaUnstyled",
269
- "autoResize",
270
- "pSize",
271
- "variant",
272
- "fluid",
273
- "invalid"
274
- ],
275
- outputs: ["onResize"]
270
+ "categoryId",
271
+ "isHeaderVisible",
272
+ "isRelated",
273
+ "resourceTitle",
274
+ "postSlice",
275
+ "header",
276
+ "tag",
277
+ "resourceLink",
278
+ "user",
279
+ "userLoggedIn"
280
+ ]
276
281
  },
277
282
  {
278
283
  kind: "pipe",
279
- type: i10.DatePipe,
284
+ type: DatePipe,
280
285
  name: "date"
281
286
  },
282
287
  {
283
288
  kind: "pipe",
284
- type: i11.TranslocoPipe,
289
+ type: TranslocoPipe,
285
290
  name: "transloco"
286
291
  }
287
292
  ],
@@ -299,22 +304,40 @@ i0.ɵɵngDeclareClassMetadata({
299
304
  args: [{
300
305
  selector: "pw-related-resources",
301
306
  changeDetection: ChangeDetectionStrategy.OnPush,
302
- standalone: false,
307
+ imports: [
308
+ FormsModule,
309
+ ReactiveFormsModule,
310
+ Bind,
311
+ Textarea,
312
+ ButtonBusyDirective,
313
+ RouterLink,
314
+ LazyImgDirective,
315
+ HubSpotMeetingsSharedModule,
316
+ ResourceCardComponent,
317
+ DatePipe,
318
+ TranslocoPipe
319
+ ],
320
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
303
321
  template: "\n\n<section class=\"resource-body-section\">\n <div class=\"container\">\n <div class=\"ql-snow body-quill\"\n >\n <div class=\"ql-editor body post-body-text\"\n [innerHTML]=\"post?.body\">\n </div>\n </div>\n <section class=\"resource-offer-section\">\n\n <div class=\"row mt-5 mb-4 response-row\">\n <div class=\"col-12\">\n @if (userLoggedIn) {\n <form\n class=\"p-fluid mb-5\"\n [formGroup]=\"commentForm\"\n (ngSubmit)=\"onComment()\"\n >\n <div class=\"card shadow-sm no-border p-4\">\n <div class=\"field\">\n <label for=\"related-resources-comment\" class=\"font-bold text-lg mb-4 comment-label\">💬 LEAVE A COMMENT</label>\n <textarea\n id=\"related-resources-comment\"\n pInputTextarea\n formControlName=\"comment\"\n rows=\"6\"\n fluid\n placeholder=\"What's on your mind?\"\n\n aria-label=\"What's on your mind?\" ></textarea>\n @if (commentForm.get('comment')?.invalid && commentForm.get('comment')?.touched) {\n <small\n class=\"text-danger\"\n >Please enter comment</small\n >\n }\n </div>\n <div class=\"text-end mt-3\">\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"sign-btn sign-header-btn\">\n {{ 'Button.Submit' | transloco }}\n </button>\n </div>\n </div>\n </form>\n } @else {\n <p class=\"text-center pt-3 pb-3 user-not-logged-in text-muted shadow-sm mb-5\">\n <a [routerLink]=\"['/login']\" class=\"text-primary fw-bold\">Log in</a> to leave a comment!\n </p>\n }\n </div>\n </div>\n\n @if (postComments.length > 0) {\n <div class=\"row mt-5 comment-row\">\n @for (comment of postComments; track trackByComment($index, comment)) {\n <div class=\"col-12\">\n <div class=\"card no-border shadow-sm p-3 mb-3\">\n <div class=\"d-flex align-items-start\">\n <img\n [src]=\"comment?.author?.avatar?.[0]?.url || 'assets/img/icons/male.png'\"\n alt=\"avatar\"\n class=\"rounded-circle me-3\"\n width=\"50\"\n height=\"50\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\"\n />\n <div class=\"flex-grow-1\">\n <div class=\"fw-bold text-dark\">\n {{ comment.user?.first_name || '' }} {{ comment.user?.last_name || '' }}\n </div>\n <div class=\"text-muted small mb-2\">{{ comment.created_at | date: 'dd MMM yyyy, h:mm a' }}</div>\n <div class=\"text-body\">\n {{ comment.comment }}\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n\n\n </section>\n </div>\n <hr class=\"resource-divider\" />\n </section>\n\n @if (hasValidDemoLinks) {\n <section class=\"resource-book-section\">\n <div class=\"container\">\n <p class=\"resource-contact\">\n Any questions, get in touch <a href=\"mailto:{{ company_email }}\">here</a>,\n <a [href]=\"linkedInUrl\" target=\"_blank\">connect on LinkedIn</a>, or book a meeting below:\n </p>\n </div>\n <pw-book-a-demo [isBlog]=\"true\" [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-book-a-demo>\n <hr class=\"resource-divider\" />\n </section>\n }\n\n\n @if (blogPostTag?.tag_category_id) {\n <pw-resource-cards [tag]=\"blogPostTag\" [categoryId]=\"blogPostTag?.tag_category_id\" [resourceTitle]=\"blogPostTag?.title\" [isHeaderVisible]=\"true\" resourceLink=\"/resources/blogs\" [isRelated]=\"true\" [resourceTitle]=\"'Other resources you may be interested in:'\" [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource-cards>\n }\n",
304
322
  styles: ["textarea{font-size:1rem!important}.resource-body-section{background-color:#fff}.resource-body-section .container{padding:3rem 1.5rem 4rem!important;max-width:850px!important;margin:0 auto;text-align:left}.user-not-logged-in{background:#fafbfc;border:1px solid #e2e5ea;border-radius:8px;font-size:14px;font-weight:400;color:#5a6473;padding:1rem 1.5rem;box-shadow:none!important;margin-bottom:2rem!important}.user-not-logged-in a{color:#1a1d21!important;text-decoration:none;font-weight:600;transition:color .15s ease-out}.user-not-logged-in a:hover,.user-not-logged-in a:focus-visible{color:var(--first)!important}.user-not-logged-in a:focus-visible{outline:2px solid var(--first);outline-offset:2px;border-radius:2px}.resource-book-section{background:#fff;padding-top:4rem;padding-bottom:0}.resource-book-section .container{max-width:850px;margin:0 auto;padding:0 1.5rem!important;text-align:left}.resource-book-section .resource-contact{line-height:1.6;font-size:1rem;color:#3d4654}.resource-book-section .resource-contact a{text-decoration:underline;color:#1a1d21;margin:0 .2rem;transition:color .15s ease-out}.resource-book-section .resource-contact a:hover{color:var(--first)!important}.resource-offer-section{background:#fff;padding-top:1rem}.resource-offer-section .container{max-width:850px;margin:0 auto;padding:0 1.5rem;text-align:left}.resource-divider{border:0;border-top:1px solid #e2e5ea;margin:2rem auto;max-width:850px;height:0;background:none}::ng-deep .body-quill{border-width:0!important;max-width:850px;display:block;margin-left:auto;margin-right:auto}::ng-deep .ql-snow .ql-editor.post-body-text blockquote{font-size:22px;line-height:1.45;font-weight:600;color:#1a1d21;border-left:4px solid var(--first);padding:6px 0 6px 22px;margin:8px 0}::ng-deep .ql-snow .ql-editor.post-body-text mark{background:linear-gradient(transparent 55%,color-mix(in srgb,var(--first) 22%,transparent) 55%);color:inherit;padding:0 2px}::ng-deep .p-textarea{border-radius:8px;border:1px solid #e2e5ea;font-size:1rem!important}.card{background-color:#fff;border-radius:12px}.comment-row{gap:1.5rem;padding-bottom:3rem;max-width:850px;display:block;margin-left:auto;margin-right:auto}.comment-label{font-size:14px!important;font-weight:600!important;letter-spacing:.04em;text-transform:uppercase;color:#5a6473}.response-row{max-width:850px;display:block;margin-left:auto;margin-right:auto;margin-top:2rem!important}@media(width<=768px){.resource-body-section .container{padding:2rem 1rem 3rem}.resource-book-section{padding-top:2rem!important}.resource-book-section .resource-contact{font-size:.9375rem!important}}\n"]
305
323
  }]
306
324
  }],
307
- ctorParameters: () => [
308
- { type: ResourceService },
309
- { type: i0.Injector },
310
- { type: i2.DomSanitizer },
311
- { type: i3$1.TagService },
312
- { type: i3$1.AuthService },
313
- { type: i3$1.CustomToastService },
314
- { type: i0.ChangeDetectorRef }
315
- ]
325
+ ctorParameters: () => []
316
326
  });
317
327
  var ResourcePostDetailsComponent = class ResourcePostDetailsComponent extends AppBaseComponent {
328
+ constructor() {
329
+ super(...arguments);
330
+ this.resourceService = inject(ResourceService);
331
+ this.tagService = inject(TagService);
332
+ this.authService = inject(AuthService);
333
+ this.titleService = inject(Title);
334
+ this.meta = inject(Meta);
335
+ this.sanitizer = inject(DomSanitizer);
336
+ this.cdr = inject(ChangeDetectorRef);
337
+ this.routers = ADMIN_ROUTERS;
338
+ this.postCategoryTags = [];
339
+ this.isLoaded = false;
340
+ }
318
341
  static {
319
342
  this.CATEGORY_LABEL_KEYS = {
320
343
  "Blog Posts": "Resource.Posts.Category.BlogPosts",
@@ -329,19 +352,6 @@ var ResourcePostDetailsComponent = class ResourcePostDetailsComponent extends Ap
329
352
  static {
330
353
  this.DEFAULT_CATEGORY_LABEL_KEY = "Resource.Posts.Category.Default";
331
354
  }
332
- constructor(resourceService, tagService, authService, titleService, meta, injector, sanitizer, cdr) {
333
- super(injector);
334
- this.resourceService = resourceService;
335
- this.tagService = tagService;
336
- this.authService = authService;
337
- this.titleService = titleService;
338
- this.meta = meta;
339
- this.sanitizer = sanitizer;
340
- this.cdr = cdr;
341
- this.routers = ADMIN_ROUTERS;
342
- this.postCategoryTags = [];
343
- this.isLoaded = false;
344
- }
345
355
  ngOnInit() {
346
356
  this.masterSubscriptionId = this.appConfig.master_subscription.subscription_id;
347
357
  this.getUserSubscriptionId().subscribe((response) => {
@@ -457,16 +467,7 @@ var ResourcePostDetailsComponent = class ResourcePostDetailsComponent extends Ap
457
467
  version: "22.2.3",
458
468
  ngImport: i0,
459
469
  type: ResourcePostDetailsComponent,
460
- deps: [
461
- { token: ResourceService },
462
- { token: i3$1.TagService },
463
- { token: i3$1.AuthService },
464
- { token: i2.Title },
465
- { token: i2.Meta },
466
- { token: i0.Injector },
467
- { token: i2.DomSanitizer },
468
- { token: i0.ChangeDetectorRef }
469
- ],
470
+ deps: null,
470
471
  target: i0.ɵɵFactoryTarget.Component
471
472
  });
472
473
  }
@@ -475,7 +476,7 @@ var ResourcePostDetailsComponent = class ResourcePostDetailsComponent extends Ap
475
476
  minVersion: "17.0.0",
476
477
  version: "22.2.3",
477
478
  type: ResourcePostDetailsComponent,
478
- isStandalone: false,
479
+ isStandalone: true,
479
480
  selector: "pw-resource-post-details",
480
481
  usesInheritance: true,
481
482
  ngImport: i0,
@@ -484,13 +485,41 @@ var ResourcePostDetailsComponent = class ResourcePostDetailsComponent extends Ap
484
485
  dependencies: [
485
486
  {
486
487
  kind: "directive",
487
- type: i10.NgClass,
488
+ type: NgClass,
488
489
  selector: "[ngClass]",
489
490
  inputs: ["class", "ngClass"]
490
491
  },
491
492
  {
492
493
  kind: "directive",
493
- type: i6.RouterLink,
494
+ type: Tooltip,
495
+ selector: "[pTooltip]",
496
+ inputs: [
497
+ "tooltipPosition",
498
+ "tooltipEvent",
499
+ "positionStyle",
500
+ "tooltipStyleClass",
501
+ "tooltipZIndex",
502
+ "escape",
503
+ "showDelay",
504
+ "hideDelay",
505
+ "life",
506
+ "positionTop",
507
+ "positionLeft",
508
+ "autoHide",
509
+ "fitContent",
510
+ "hideOnEscape",
511
+ "showOnEllipsis",
512
+ "pTooltip",
513
+ "tooltipDisabled",
514
+ "tooltipOptions",
515
+ "appendTo",
516
+ "pTooltipPT",
517
+ "pTooltipUnstyled"
518
+ ]
519
+ },
520
+ {
521
+ kind: "directive",
522
+ type: RouterLink,
494
523
  selector: "[routerLink]",
495
524
  inputs: [
496
525
  "target",
@@ -509,12 +538,12 @@ var ResourcePostDetailsComponent = class ResourcePostDetailsComponent extends Ap
509
538
  },
510
539
  {
511
540
  kind: "directive",
512
- type: i7$1.LazyImgDirective,
541
+ type: LazyImgDirective,
513
542
  selector: "img"
514
543
  },
515
544
  {
516
545
  kind: "component",
517
- type: i7.NoDataComponent,
546
+ type: NoDataComponent,
518
547
  selector: "pw-no-data",
519
548
  inputs: [
520
549
  "message",
@@ -522,42 +551,14 @@ var ResourcePostDetailsComponent = class ResourcePostDetailsComponent extends Ap
522
551
  "withImage"
523
552
  ]
524
553
  },
525
- {
526
- kind: "directive",
527
- type: i8.Tooltip,
528
- selector: "[pTooltip]",
529
- inputs: [
530
- "tooltipPosition",
531
- "tooltipEvent",
532
- "positionStyle",
533
- "tooltipStyleClass",
534
- "tooltipZIndex",
535
- "escape",
536
- "showDelay",
537
- "hideDelay",
538
- "life",
539
- "positionTop",
540
- "positionLeft",
541
- "autoHide",
542
- "fitContent",
543
- "hideOnEscape",
544
- "showOnEllipsis",
545
- "pTooltip",
546
- "tooltipDisabled",
547
- "tooltipOptions",
548
- "appendTo",
549
- "pTooltipPT",
550
- "pTooltipUnstyled"
551
- ]
552
- },
553
554
  {
554
555
  kind: "pipe",
555
- type: i9.DateFormatPipe,
556
+ type: DateFormatPipe,
556
557
  name: "dateFormat"
557
558
  },
558
559
  {
559
560
  kind: "pipe",
560
- type: i11.TranslocoPipe,
561
+ type: TranslocoPipe,
561
562
  name: "transloco"
562
563
  }
563
564
  ],
@@ -575,28 +576,27 @@ i0.ɵɵngDeclareClassMetadata({
575
576
  args: [{
576
577
  selector: "pw-resource-post-details",
577
578
  changeDetection: ChangeDetectionStrategy.OnPush,
578
- standalone: false,
579
+ imports: [
580
+ NgClass,
581
+ Tooltip,
582
+ RouterLink,
583
+ LazyImgDirective,
584
+ NoDataComponent,
585
+ DateFormatPipe,
586
+ TranslocoPipe
587
+ ],
588
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
579
589
  template: "<section class=\"resource-hero-section\">\n <div class=\"container d-flex flex-wrap\" [ngClass]=\"getImageUrl() ? 'container-top' : 'container-no-image'\">\n <div class=\"hero-left\">\n <p class=\"blog-label\">{{ postCategoryLabelKey | transloco }}</p>\n\n <h1 class=\"hero-title\">\n @if (post?.title) {\n <span [innerHTML]=\"post.title\"></span>\n } @else {\n &nbsp;\n }\n @if (userLoggedIn && hasBlogAccess) {\n <a\n class=\"ms-3 text-decoration-none\"\n pTooltip=\"Edit this post\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n aria-label=\"Edit this blog post\"\n [routerLink]=\"['/admin/resources/', post?.slug]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </h1>\n\n\n <div class=\"author-info\">\n <img [src]=\"post?.author?.avatar?.[0]?.url || 'assets/img/icons/male.png'\" alt=\"User Profile Logo\" class=\"author-img\" />\n <div class=\"author-meta\">\n <p>Article by {{ post?.author?.first_name }} {{ post?.author?.last_name }}</p>\n <p class=\"date\">{{post?.published_at | dateFormat}}</p>\n </div>\n </div>\n </div>\n\n @if (isLoaded) {\n <div class=\"hero-right\">\n @if (getImageUrl()) {\n <img\n [src]=\"getImageUrl()\"\n alt=\"Blog Post\"\n class=\"hero-image\"\n />\n } @else {\n <pw-no-data\n class=\"data-image\"\n [withImage]=\"true\"\n [message]=\"'Resource.Tag.NoImageMessage' | transloco\"\n [description]=\"'Resource.Tag.NoDataMessage' | transloco\"\n ></pw-no-data>\n }\n </div>\n }\n </div>\n</section>\n",
580
590
  styles: [".container-top,.container-no-image{padding-top:6rem!important}.container{padding-bottom:2.5rem!important}.edit-icon{vertical-align:middle!important}.resource-hero-section{background:#fff;position:relative}.resource-hero-section .container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.resource-hero-section .blog-label{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#5a6473;margin-bottom:12px}.resource-hero-section .hero-title{font-size:48px;font-weight:500;line-height:1.15;letter-spacing:-.015em;color:#1a1d21!important;margin-bottom:24px}.resource-hero-section .hero-title span{color:inherit!important}.resource-hero-section .hero-title strong{font-weight:700}.resource-hero-section .hero-left{flex:1 1 480px;max-width:640px}.resource-hero-section .author-info{display:flex;align-items:center;gap:.75rem;max-width:100%;overflow:hidden}.resource-hero-section .author-info .author-img{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#eef0f3;flex-shrink:0}.resource-hero-section .author-info .author-meta p{font-size:14px;font-weight:500;color:var(--text);margin-bottom:0!important}.resource-hero-section .author-info .author-meta .date{font-size:13px;font-weight:400;color:#7c8696}.resource-hero-section .hero-right{flex:0 0 400px;max-width:400px}.resource-hero-section .hero-right .hero-image{width:100%;height:auto;border-radius:12px;display:block}@media(width<=768px){.resource-hero-section .hero-title{font-size:32px;letter-spacing:-.01em}.resource-hero-section .hero-right{margin-top:1.5rem;text-align:center;width:100%}.resource-hero-section .hero-right .data-image{width:100%}.resource-hero-section .hero-right .hero-image{max-width:360px;width:100%}.resource-hero-section .author-info{flex-direction:row;justify-content:flex-start}}@media(width>=768px)and (width<=1200px){.resource-hero-section .hero-title{font-size:40px}.resource-hero-section .hero-right{width:40%}}@media(width<=768px){.container{padding:5rem 1.5rem 2rem!important}}\n"]
581
591
  }]
582
- }],
583
- ctorParameters: () => [
584
- { type: ResourceService },
585
- { type: i3$1.TagService },
586
- { type: i3$1.AuthService },
587
- { type: i2.Title },
588
- { type: i2.Meta },
589
- { type: i0.Injector },
590
- { type: i2.DomSanitizer },
591
- { type: i0.ChangeDetectorRef }
592
- ]
592
+ }]
593
593
  });
594
594
  var ResourcePostComponent = class ResourcePostComponent extends AppBaseComponent {
595
- constructor(titleService, authService, cdr, injector) {
596
- super(injector);
597
- this.titleService = titleService;
598
- this.authService = authService;
599
- this.cdr = cdr;
595
+ constructor() {
596
+ super(...arguments);
597
+ this.titleService = inject(Title);
598
+ this.authService = inject(AuthService);
599
+ this.cdr = inject(ChangeDetectorRef);
600
600
  this.userLoggedIn = void 0;
601
601
  }
602
602
  ngOnInit() {
@@ -619,12 +619,7 @@ var ResourcePostComponent = class ResourcePostComponent extends AppBaseComponent
619
619
  version: "22.2.3",
620
620
  ngImport: i0,
621
621
  type: ResourcePostComponent,
622
- deps: [
623
- { token: i2.Title },
624
- { token: i3$1.AuthService },
625
- { token: i0.ChangeDetectorRef },
626
- { token: i0.Injector }
627
- ],
622
+ deps: null,
628
623
  target: i0.ɵɵFactoryTarget.Component
629
624
  });
630
625
  }
@@ -633,7 +628,7 @@ var ResourcePostComponent = class ResourcePostComponent extends AppBaseComponent
633
628
  minVersion: "14.0.0",
634
629
  version: "22.2.3",
635
630
  type: ResourcePostComponent,
636
- isStandalone: false,
631
+ isStandalone: true,
637
632
  selector: "app-resource-post",
638
633
  usesInheritance: true,
639
634
  ngImport: i0,
@@ -642,22 +637,7 @@ var ResourcePostComponent = class ResourcePostComponent extends AppBaseComponent
642
637
  dependencies: [
643
638
  {
644
639
  kind: "component",
645
- type: i3.Trial4ContactUsComponent,
646
- selector: "pw-trial-4-contact-us",
647
- inputs: [
648
- "subscriptionId",
649
- "sourceId",
650
- "masterSubscriptionId",
651
- "experimentName",
652
- "microserviceName",
653
- "shardName",
654
- "user",
655
- "userLoggedIn"
656
- ]
657
- },
658
- {
659
- kind: "component",
660
- type: i4.ResourceHeaderComponent,
640
+ type: ResourceHeaderComponent,
661
641
  selector: "pw-resource-header",
662
642
  inputs: ["user", "userLoggedIn"]
663
643
  },
@@ -670,6 +650,21 @@ var ResourcePostComponent = class ResourcePostComponent extends AppBaseComponent
670
650
  kind: "component",
671
651
  type: RelatedResourcesComponent,
672
652
  selector: "pw-related-resources"
653
+ },
654
+ {
655
+ kind: "component",
656
+ type: Trial4ContactUsComponent,
657
+ selector: "pw-trial-4-contact-us",
658
+ inputs: [
659
+ "subscriptionId",
660
+ "sourceId",
661
+ "masterSubscriptionId",
662
+ "experimentName",
663
+ "microserviceName",
664
+ "shardName",
665
+ "user",
666
+ "userLoggedIn"
667
+ ]
673
668
  }
674
669
  ],
675
670
  changeDetection: i0.ChangeDetectionStrategy.OnPush
@@ -686,17 +681,17 @@ i0.ɵɵngDeclareClassMetadata({
686
681
  args: [{
687
682
  selector: "app-resource-post",
688
683
  changeDetection: ChangeDetectionStrategy.OnPush,
689
- standalone: false,
684
+ imports: [
685
+ ResourceHeaderComponent,
686
+ ResourcePostDetailsComponent,
687
+ RelatedResourcesComponent,
688
+ Trial4ContactUsComponent
689
+ ],
690
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
690
691
  template: "<pw-resource-header [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource-header>\n<pw-resource-post-details></pw-resource-post-details>\n<pw-related-resources></pw-related-resources>\n<pw-trial-4-contact-us [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-trial-4-contact-us>",
691
692
  styles: ["::ng-deep .resource-header .navbar-nav .nav-item .nav-link{color:#000!important}\n"]
692
693
  }]
693
- }],
694
- ctorParameters: () => [
695
- { type: i2.Title },
696
- { type: i3$1.AuthService },
697
- { type: i0.ChangeDetectorRef },
698
- { type: i0.Injector }
699
- ]
694
+ }]
700
695
  });
701
696
  const routes = [{
702
697
  path: "",
@@ -724,15 +719,13 @@ var ResourcePostModule = class ResourcePostModule {
724
719
  version: "22.2.3",
725
720
  ngImport: i0,
726
721
  type: ResourcePostModule,
727
- declarations: [
728
- ResourcePostComponent,
729
- ResourcePostDetailsComponent,
730
- RelatedResourcesComponent
731
- ],
732
722
  imports: [
733
723
  ResourceSharedModule,
734
724
  TooltipModule,
735
- i6.RouterModule
725
+ i1.RouterModule,
726
+ ResourcePostComponent,
727
+ ResourcePostDetailsComponent,
728
+ RelatedResourcesComponent
736
729
  ]
737
730
  });
738
731
  }
@@ -745,7 +738,10 @@ var ResourcePostModule = class ResourcePostModule {
745
738
  imports: [
746
739
  ResourceSharedModule,
747
740
  TooltipModule,
748
- RouterModule.forChild(routes)
741
+ RouterModule.forChild(routes),
742
+ ResourcePostComponent,
743
+ ResourcePostDetailsComponent,
744
+ RelatedResourcesComponent
749
745
  ]
750
746
  });
751
747
  }
@@ -758,15 +754,13 @@ i0.ɵɵngDeclareClassMetadata({
758
754
  decorators: [{
759
755
  type: NgModule,
760
756
  args: [{
761
- declarations: [
762
- ResourcePostComponent,
763
- ResourcePostDetailsComponent,
764
- RelatedResourcesComponent
765
- ],
766
757
  imports: [
767
758
  ResourceSharedModule,
768
759
  TooltipModule,
769
- RouterModule.forChild(routes)
760
+ RouterModule.forChild(routes),
761
+ ResourcePostComponent,
762
+ ResourcePostDetailsComponent,
763
+ RelatedResourcesComponent
770
764
  ],
771
765
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
772
766
  }]
@@ -774,4 +768,4 @@ i0.ɵɵngDeclareClassMetadata({
774
768
  });
775
769
  export { ResourcePostModule };
776
770
 
777
- //# sourceMappingURL=posiwise-resource-module-resource-post.module-BFuEjqA9.mjs.map
771
+ //# sourceMappingURL=posiwise-resource-module-resource-post.module-DIaB5kyW.mjs.map