@posiwise/resource-module 0.0.206 → 0.0.207

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 (43) hide show
  1. package/fesm2022/{posiwise-resource-module-base-top-banner.component-BwujN_up.mjs → posiwise-resource-module-base-top-banner.component-DvZKkqPA.mjs} +4 -4
  2. package/fesm2022/posiwise-resource-module-base-top-banner.component-DvZKkqPA.mjs.map +1 -0
  3. package/fesm2022/{posiwise-resource-module-resource-blogs.module-DEXimOOY.mjs → posiwise-resource-module-resource-blogs.module-LKr-SjAo.mjs} +3 -3
  4. package/fesm2022/{posiwise-resource-module-resource-blogs.module-DEXimOOY.mjs.map → posiwise-resource-module-resource-blogs.module-LKr-SjAo.mjs.map} +1 -1
  5. package/fesm2022/{posiwise-resource-module-resource-cards.module-DWV2LWdy.mjs → posiwise-resource-module-resource-cards.module-DOpH-f0N.mjs} +15 -15
  6. package/fesm2022/posiwise-resource-module-resource-cards.module-DOpH-f0N.mjs.map +1 -0
  7. package/fesm2022/{posiwise-resource-module-resource-case-studies.module-CQHAhbsv.mjs → posiwise-resource-module-resource-case-studies.module-CzB9wtnf.mjs} +4 -4
  8. package/fesm2022/posiwise-resource-module-resource-case-studies.module-CzB9wtnf.mjs.map +1 -0
  9. package/fesm2022/{posiwise-resource-module-resource-edit-card.component-2VvTki2u.mjs → posiwise-resource-module-resource-edit-card.component-d9cDJUJf.mjs} +3 -3
  10. package/fesm2022/posiwise-resource-module-resource-edit-card.component-d9cDJUJf.mjs.map +1 -0
  11. package/fesm2022/{posiwise-resource-module-resource-events.module-D8mxidoP.mjs → posiwise-resource-module-resource-events.module-BO9CcIFp.mjs} +5 -5
  12. package/fesm2022/posiwise-resource-module-resource-events.module-BO9CcIFp.mjs.map +1 -0
  13. package/fesm2022/{posiwise-resource-module-resource-hub.module-DklN3KeA.mjs → posiwise-resource-module-resource-hub.module-B3EZao2L.mjs} +10 -10
  14. package/fesm2022/posiwise-resource-module-resource-hub.module-B3EZao2L.mjs.map +1 -0
  15. package/fesm2022/{posiwise-resource-module-resource-integrations.module-iTlhrAYt.mjs → posiwise-resource-module-resource-integrations.module-Djkoz9EF.mjs} +11 -11
  16. package/fesm2022/posiwise-resource-module-resource-integrations.module-Djkoz9EF.mjs.map +1 -0
  17. package/fesm2022/{posiwise-resource-module-resource-jobs.module-DpTqKqS9.mjs → posiwise-resource-module-resource-jobs.module-Dw-7KbET.mjs} +4 -4
  18. package/fesm2022/{posiwise-resource-module-resource-jobs.module-DpTqKqS9.mjs.map → posiwise-resource-module-resource-jobs.module-Dw-7KbET.mjs.map} +1 -1
  19. package/fesm2022/{posiwise-resource-module-resource-post.module-PU-KBg_G.mjs → posiwise-resource-module-resource-post.module-C343zv-t.mjs} +13 -13
  20. package/fesm2022/posiwise-resource-module-resource-post.module-C343zv-t.mjs.map +1 -0
  21. package/fesm2022/{posiwise-resource-module-resource-release-notes.module-WESwTVu8.mjs → posiwise-resource-module-resource-release-notes.module-CE21Yiss.mjs} +4 -4
  22. package/fesm2022/{posiwise-resource-module-resource-release-notes.module-WESwTVu8.mjs.map → posiwise-resource-module-resource-release-notes.module-CE21Yiss.mjs.map} +1 -1
  23. package/fesm2022/{posiwise-resource-module-resource-root.module-TMvR1c1H.mjs → posiwise-resource-module-resource-root.module-BzvAo30C.mjs} +3 -3
  24. package/fesm2022/posiwise-resource-module-resource-root.module-BzvAo30C.mjs.map +1 -0
  25. package/fesm2022/{posiwise-resource-module-resource-videos.module-BCDet6S9.mjs → posiwise-resource-module-resource-videos.module-OJpXslFg.mjs} +3 -3
  26. package/fesm2022/{posiwise-resource-module-resource-videos.module-BCDet6S9.mjs.map → posiwise-resource-module-resource-videos.module-OJpXslFg.mjs.map} +1 -1
  27. package/fesm2022/{posiwise-resource-module-resource-white-papers.module-DtxUgC_Z.mjs → posiwise-resource-module-resource-white-papers.module-rr8wWULi.mjs} +3 -3
  28. package/fesm2022/{posiwise-resource-module-resource-white-papers.module-DtxUgC_Z.mjs.map → posiwise-resource-module-resource-white-papers.module-rr8wWULi.mjs.map} +1 -1
  29. package/fesm2022/{posiwise-resource-module-resource.service-DAXsq-WG.mjs → posiwise-resource-module-resource.service-BBvcVvWN.mjs} +10 -10
  30. package/fesm2022/posiwise-resource-module-resource.service-BBvcVvWN.mjs.map +1 -0
  31. package/fesm2022/posiwise-resource-module.mjs +13 -13
  32. package/package.json +1 -1
  33. package/types/posiwise-resource-module.d.ts +17 -16
  34. package/fesm2022/posiwise-resource-module-base-top-banner.component-BwujN_up.mjs.map +0 -1
  35. package/fesm2022/posiwise-resource-module-resource-cards.module-DWV2LWdy.mjs.map +0 -1
  36. package/fesm2022/posiwise-resource-module-resource-case-studies.module-CQHAhbsv.mjs.map +0 -1
  37. package/fesm2022/posiwise-resource-module-resource-edit-card.component-2VvTki2u.mjs.map +0 -1
  38. package/fesm2022/posiwise-resource-module-resource-events.module-D8mxidoP.mjs.map +0 -1
  39. package/fesm2022/posiwise-resource-module-resource-hub.module-DklN3KeA.mjs.map +0 -1
  40. package/fesm2022/posiwise-resource-module-resource-integrations.module-iTlhrAYt.mjs.map +0 -1
  41. package/fesm2022/posiwise-resource-module-resource-post.module-PU-KBg_G.mjs.map +0 -1
  42. package/fesm2022/posiwise-resource-module-resource-root.module-TMvR1c1H.mjs.map +0 -1
  43. package/fesm2022/posiwise-resource-module-resource.service-DAXsq-WG.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"posiwise-resource-module-resource-white-papers.module-DtxUgC_Z.mjs","names":[],"sources":["../../../../libs/resource-module/src/lib/public/components/white-papers/white-papers-top-banner/white-papers-top-banner.component.ts","../../../../libs/resource-module/src/lib/public/components/white-papers/white-papers-top-banner/white-papers-top-banner.component.html","../../../../libs/resource-module/src/lib/public/components/white-papers/white-papers.component.ts","../../../../libs/resource-module/src/lib/public/components/white-papers/white-papers.component.html","../../../../libs/resource-module/src/lib/public/modules/white-papers/resource-white-papers.module.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\nimport { LazyImgDirective } from '@posiwise/directives';\n\nimport { BaseTopBannerComponent } from '../../base/base-top-banner.component';\nimport { ResourceTopBannerEditComponent } from '../../resource-top-banner-edit/resource-top-banner-edit.component';\n\n@Component({\n selector: 'pw-white-paper-top-banner',\n templateUrl: './white-papers-top-banner.component.html',\n styleUrls: [\n '../../resource-case-studies/resource-case-studies.component.scss',\n './white-papers-top-banner.component.scss',\n '../../resources/resources-shared.component.scss',\n '../../resource-post/related-resources/related-resources.component.scss'\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ResourceTopBannerEditComponent, LazyImgDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class WhitePaperTopBannerComponent extends BaseTopBannerComponent {\n contactUsUrl = this.appConfig?.pages_config?.contact_us?.url;\n\n protected getSearchTerm(): string {\n return 'White Papers';\n }\n}\n","<section class=\"bg-white pricing-section\">\n <div class=\"resource-banner\">\n @if (isLoaded) {\n <div class=\"container d-flex flex-column flex-lg-row align-items-center justify-content-between\">\n <!-- Left Content -->\n <div class=\"text-content\">\n <div class=\"resource-heading\">\n <h1 class=\"resource-header-text mb-4\">\n <span class=\"d-inline-flex align-items-center gap-2 flex-wrap\">\n <span [innerHTML]=\"blogPostTag?.title || 'White papers &amp; Tools'\"></span>\n @if (canEditResourcesValue) {\n <pw-resource-top-banner-edit\n [blogPostTag]=\"blogPostTag\"\n [user]=\"user\"\n [userLoggedIn]=\"userLoggedIn\"\n (getUpdatedTag)=\"getPostTags()\"\n ></pw-resource-top-banner-edit>\n }\n </span>\n </h1>\n </div>\n </div>\n <div class=\"text-extension mt-4\">\n <div class=\"cta-buttons d-flex flex-column justify-between h-100\">\n <div class=\"flex-grow-1\">\n @if (blogPostTag?.description && blogPostTag.description !== 'null' ) {\n <p class=\"intro\" [innerHTML]=\"blogPostTag.description\"></p>\n } @else {\n <p class=\"intro\">\n If you like your insights practical and your downloads actually useful &mdash; you&rsquo;re in the right place.\n </p>\n }\n </div>\n <div class=\"d-flex gap-3 flex-wrap mt-3\">\n <a [href]=\"contactUsUrl\" target=\"_blank\" rel=\"noopener noreferrer\"\n class=\"cta-btn filled\">Talk to us <i class=\"fa fa-chevron-right cta-btn__icon\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </div>\n <!-- Right Content -->\n <div class=\"image-content ms-lg-5 mt-5 mt-lg-0\">\n <div class=\"resource-math-img\"></div>\n <img class=\"resource-laptop-img dyn-img\"\n [src]=\"(blogPostTag?.image?.url && !(blogPostTag?.image?.url.includes('no_image_uploaded_squared'))) ? blogPostTag?.image?.url : '/assets/img/resource/white-paper-women.webp'\"\n alt=\"White papers and tools banner\"\n width=\"600\"\n height=\"450\"\n loading=\"eager\"\n fetchpriority=\"high\" />\n </div>\n </div>\n }\n </div>\n</section>\n","import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\nimport { Trial4ContactUsComponent } from '@posiwise/resource-contact-us';\nimport { ResourceHeaderComponent } from '@posiwise/utils';\n\nimport { BaseResourceComponent } from '../base/base-resource.component';\nimport { ResourceVaultComponent } from '../resource-vault/resource-vault.component';\n\nimport { WhitePaperTopBannerComponent } from './white-papers-top-banner/white-papers-top-banner.component';\n\n@Component({\n selector: 'pw-resource-white-papers',\n templateUrl: './white-papers.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n ResourceHeaderComponent,\n WhitePaperTopBannerComponent,\n ResourceVaultComponent,\n Trial4ContactUsComponent\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class WhitePaperComponent extends BaseResourceComponent {\n protected getResourceType(): string {\n return 'White Papers';\n }\n}\n","<pw-resource-header [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource-header>\n<main>\n\n<pw-white-paper-top-banner></pw-white-paper-top-banner>\n\n@if (blogPostTag?.tag_category_id) {\n <pw-resource--vault [tag]=\"blogPostTag\" [categoryId]=\"blogPostTag?.tag_category_id\" [resourceTitle]=\"blogPostTag?.title\" [postSlice]=\"true\" [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource--vault>\n}\n\n</main>\n<pw-trial-4-contact-us [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-trial-4-contact-us>\n","import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\n\nimport { WhitePaperComponent } from '../../components/white-papers/white-papers.component';\nimport { WhitePaperTopBannerComponent } from '../../components/white-papers/white-papers-top-banner/white-papers-top-banner.component';\nimport { ResourceSharedModule } from '../../shared/resource-shared.module';\n\nconst routes: Routes = [\n {\n path: '',\n component: WhitePaperComponent,\n data: {\n title: 'Resources - White Papers',\n permission: 'Pages.Blog',\n preload: false\n }\n }\n];\n\n@NgModule({\n imports: [\n ResourceSharedModule,\n RouterModule.forChild(routes),\n WhitePaperComponent,\n WhitePaperTopBannerComponent\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class ResourceWhitePapersModule {}\n"],"mappings":";;;;;;;;;;AAoBA,IAAa,+BAAb,MAAa,qCAAqC,uBAAsB;CAbxE,cAAA;;EAcI,KAAA,eAAe,KAAK,WAAW,cAAc,YAAY;CAK5D;CAHa,gBAAa;EACnB,OAAO;CACX;CALS;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA4B,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAA5B;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAA4B,cAAA;GAAA,UAAA;GAAA,iBAAA;GAAA,UAAA;GAAA,UCpBzC;GAsDA,QAAA;IAAA;IAAA;IAAA;IAAA;GAAA;GAAA,cAAA,CAAA;IAAA,MAAA;IAAA,MDrCc;IAA8B,UAAA;IAAA,QA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AInB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAZ/B,MAAA;EACa,MAAA,CAAA;GAAA,UAAA;GAA0B,iBAEnB,wBAAwB;GAAM,SACtC;IACL;IACA;IACA;IACA;GACH;GAAA,SACQ,CAAC,sBAAsB;GAAC,UAAA;EAAA,CAAA;;;AEbrC,MAAM,SAAiB,CACnB;CACI,MAAM;CACN,WAAW;CACX,MAAM;EACF,OAAO;EACP,YAAY;EACZ,SAAS;CACZ;AACJ,CACJ;AAWD,IAAa,4BAAb,MAAa,0BAAyB;CAAzB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAyB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAzB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAyB,SAAA;IAP9B;IAAoB,GAAA;IAEpB;IACA;GAA4B;EAAA,CAAA;CAAA;CAIvB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAyB,SAAA;IAP9B;IACA,aAAa,SAAS,MAAM;IAC5B;IACA;GAA4B;EAAA,CAAA;CAAA;;AAIvB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAyB,YAAA,CAAA;EATrC,MAAA;EAAS,MAAA,CAAA;GACN,SAAS;IACL;IACA,aAAa,SAAS,MAAM;IAC5B;IACA;GACH;GACD,SAAS,CAAC,sBAAsB;EACnC,CAAA"}
1
+ {"version":3,"file":"posiwise-resource-module-resource-white-papers.module-rr8wWULi.mjs","names":[],"sources":["../../../../libs/resource-module/src/lib/public/components/white-papers/white-papers-top-banner/white-papers-top-banner.component.ts","../../../../libs/resource-module/src/lib/public/components/white-papers/white-papers-top-banner/white-papers-top-banner.component.html","../../../../libs/resource-module/src/lib/public/components/white-papers/white-papers.component.ts","../../../../libs/resource-module/src/lib/public/components/white-papers/white-papers.component.html","../../../../libs/resource-module/src/lib/public/modules/white-papers/resource-white-papers.module.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\nimport { LazyImgDirective } from '@posiwise/directives';\n\nimport { BaseTopBannerComponent } from '../../base/base-top-banner.component';\nimport { ResourceTopBannerEditComponent } from '../../resource-top-banner-edit/resource-top-banner-edit.component';\n\n@Component({\n selector: 'pw-white-paper-top-banner',\n templateUrl: './white-papers-top-banner.component.html',\n styleUrls: [\n '../../resource-case-studies/resource-case-studies.component.scss',\n './white-papers-top-banner.component.scss',\n '../../resources/resources-shared.component.scss',\n '../../resource-post/related-resources/related-resources.component.scss'\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ResourceTopBannerEditComponent, LazyImgDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class WhitePaperTopBannerComponent extends BaseTopBannerComponent {\n contactUsUrl = this.appConfig?.pages_config?.contact_us?.url;\n\n protected getSearchTerm(): string {\n return 'White Papers';\n }\n}\n","<section class=\"bg-white pricing-section\">\n <div class=\"resource-banner\">\n @if (isLoaded) {\n <div class=\"container d-flex flex-column flex-lg-row align-items-center justify-content-between\">\n <!-- Left Content -->\n <div class=\"text-content\">\n <div class=\"resource-heading\">\n <h1 class=\"resource-header-text mb-4\">\n <span class=\"d-inline-flex align-items-center gap-2 flex-wrap\">\n <span [innerHTML]=\"blogPostTag?.title || 'White papers &amp; Tools'\"></span>\n @if (canEditResourcesValue) {\n <pw-resource-top-banner-edit\n [blogPostTag]=\"blogPostTag\"\n [user]=\"user\"\n [userLoggedIn]=\"userLoggedIn\"\n (getUpdatedTag)=\"getPostTags()\"\n ></pw-resource-top-banner-edit>\n }\n </span>\n </h1>\n </div>\n </div>\n <div class=\"text-extension mt-4\">\n <div class=\"cta-buttons d-flex flex-column justify-between h-100\">\n <div class=\"flex-grow-1\">\n @if (blogPostTag?.description && blogPostTag.description !== 'null' ) {\n <p class=\"intro\" [innerHTML]=\"blogPostTag.description\"></p>\n } @else {\n <p class=\"intro\">\n If you like your insights practical and your downloads actually useful &mdash; you&rsquo;re in the right place.\n </p>\n }\n </div>\n <div class=\"d-flex gap-3 flex-wrap mt-3\">\n <a [href]=\"contactUsUrl\" target=\"_blank\" rel=\"noopener noreferrer\"\n class=\"cta-btn filled\">Talk to us <i class=\"fa fa-chevron-right cta-btn__icon\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </div>\n <!-- Right Content -->\n <div class=\"image-content ms-lg-5 mt-5 mt-lg-0\">\n <div class=\"resource-math-img\"></div>\n <img class=\"resource-laptop-img dyn-img\"\n [src]=\"(blogPostTag?.image?.url && !(blogPostTag?.image?.url.includes('no_image_uploaded_squared'))) ? blogPostTag?.image?.url : '/assets/img/resource/white-paper-women.webp'\"\n alt=\"White papers and tools banner\"\n width=\"600\"\n height=\"450\"\n loading=\"eager\"\n fetchpriority=\"high\" />\n </div>\n </div>\n }\n </div>\n</section>\n","import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\nimport { Trial4ContactUsComponent } from '@posiwise/resource-contact-us';\nimport { ResourceHeaderComponent } from '@posiwise/utils';\n\nimport { BaseResourceComponent } from '../base/base-resource.component';\nimport { ResourceVaultComponent } from '../resource-vault/resource-vault.component';\n\nimport { WhitePaperTopBannerComponent } from './white-papers-top-banner/white-papers-top-banner.component';\n\n@Component({\n selector: 'pw-resource-white-papers',\n templateUrl: './white-papers.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n ResourceHeaderComponent,\n WhitePaperTopBannerComponent,\n ResourceVaultComponent,\n Trial4ContactUsComponent\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class WhitePaperComponent extends BaseResourceComponent {\n protected getResourceType(): string {\n return 'White Papers';\n }\n}\n","<pw-resource-header [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource-header>\n<main>\n\n<pw-white-paper-top-banner></pw-white-paper-top-banner>\n\n@if (blogPostTag?.tag_category_id) {\n <pw-resource--vault [tag]=\"blogPostTag\" [categoryId]=\"blogPostTag?.tag_category_id\" [resourceTitle]=\"blogPostTag?.title\" [postSlice]=\"true\" [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource--vault>\n}\n\n</main>\n<pw-trial-4-contact-us [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-trial-4-contact-us>\n","import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\n\nimport { WhitePaperComponent } from '../../components/white-papers/white-papers.component';\nimport { WhitePaperTopBannerComponent } from '../../components/white-papers/white-papers-top-banner/white-papers-top-banner.component';\nimport { ResourceSharedModule } from '../../shared/resource-shared.module';\n\nconst routes: Routes = [\n {\n path: '',\n component: WhitePaperComponent,\n data: {\n title: 'Resources - White Papers',\n permission: 'Pages.Blog',\n preload: false\n }\n }\n];\n\n@NgModule({\n imports: [\n ResourceSharedModule,\n RouterModule.forChild(routes),\n WhitePaperComponent,\n WhitePaperTopBannerComponent\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class ResourceWhitePapersModule {}\n"],"mappings":";;;;;;;;;;AAoBA,IAAa,+BAAb,MAAa,qCAAqC,uBAAsB;CAbxE,cAAA;;EAcI,KAAA,eAAe,KAAK,WAAW,cAAc,YAAY;CAK5D;CAHa,gBAAa;EACnB,OAAO;CACX;CALS;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA4B,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAA5B;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAA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,CAAC,sBAAsB;EACnC,CAAA"}
@@ -18,25 +18,25 @@ var ResourceService = class ResourceService {
18
18
  };
19
19
  if (tagCategoryIds) params["tag_category_ids"] = tagCategoryIds;
20
20
  if (tagIds) params["tag_ids"] = tagIds;
21
- return this.api.getWithParams(`${this.resource}/get_all`, { ...params });
21
+ return this.api.getList(`${this.resource}/get_all`, { ...params });
22
22
  }
23
23
  getAdminPosts(subscriptionId, paging) {
24
- return this.api.getWithParams(`${this.resource}/admin_get_all`, {
24
+ return this.api.getList(`${this.resource}/admin_get_all`, {
25
25
  ...HelperService.getPagingParams(paging),
26
26
  subscription_id: subscriptionId
27
27
  });
28
28
  }
29
29
  addPost(post) {
30
- return this.api.post(this.resource, this.toPostFormData(post));
30
+ return this.api.postItem(this.resource, this.toPostFormData(post));
31
31
  }
32
32
  getPostBySlug(slug) {
33
- return this.api.get(`${this.resource}/${slug}`);
33
+ return this.api.getItem(`${this.resource}/${slug}`);
34
34
  }
35
35
  deletePost(id) {
36
- return this.api.delete(`${this.resource}/${id}`);
36
+ return this.api.deleteItem(`${this.resource}/${id}`);
37
37
  }
38
38
  updatePost(post, id) {
39
- return this.api.put(`${this.resource}/${id}`, this.toPostFormData(post));
39
+ return this.api.putItem(`${this.resource}/${id}`, this.toPostFormData(post));
40
40
  }
41
41
  toPostFormData(post) {
42
42
  const formData = new FormData();
@@ -49,16 +49,16 @@ var ResourceService = class ResourceService {
49
49
  return this.api.get(`${this.comments}/get_all`);
50
50
  }
51
51
  postComments(post) {
52
- return this.api.post(this.comments, post);
52
+ return this.api.postItem(this.comments, post);
53
53
  }
54
54
  getResourceInsight(subscription_id, starting_at, ending_at) {
55
- return this.api.getWithParams(`/admin/posts_analytics?type=views&subscription_id=${subscription_id}`, {
55
+ return this.api.getItem(`/admin/posts_analytics?type=views&subscription_id=${subscription_id}`, {
56
56
  starting_at,
57
57
  ending_at
58
58
  });
59
59
  }
60
60
  getResourcePostsInsight(id) {
61
- return this.api.get(`${this.resource}/${id}/insights`);
61
+ return this.api.getList(`${this.resource}/${id}/insights`);
62
62
  }
63
63
  static {
64
64
  this.ɵfac = i0.ɵɵngDeclareFactory({
@@ -88,4 +88,4 @@ i0.ɵɵngDeclareClassMetadata({
88
88
  });
89
89
  export { ResourceService as t };
90
90
 
91
- //# sourceMappingURL=posiwise-resource-module-resource.service-DAXsq-WG.mjs.map
91
+ //# sourceMappingURL=posiwise-resource-module-resource.service-BBvcVvWN.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"posiwise-resource-module-resource.service-BBvcVvWN.mjs","names":[],"sources":["../../../../libs/resource-module/src/lib/resource.service.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\n\nimport { MainApiHttpService } from '@posiwise/common-services';\nimport { Paging } from '@posiwise/common-utilities';\nimport { HelperService } from '@posiwise/helper-service';\n\nimport type { PublicPost } from './public/shared/resource-pager';\n\ntype PostFormValue = string | number | boolean | Blob | null | undefined;\n\n@Injectable()\nexport class ResourceService {\n private readonly api = inject(MainApiHttpService);\n\n private readonly resource = '/posts';\n\n private readonly comments = '/comments';\n\n getPublicPosts<T = PublicPost>(\n master_subscription_id,\n page: number,\n pageSize: number,\n search: string,\n tagCategoryIds?: string,\n tagIds?: string,\n extraParams: Record<string, string | number> = {}\n ) {\n const params = {\n ...extraParams,\n page,\n page_size: pageSize,\n search: search,\n master_subscription_id\n };\n\n if (tagCategoryIds) {\n params['tag_category_ids'] = tagCategoryIds;\n }\n\n if (tagIds) {\n params['tag_ids'] = tagIds;\n }\n return this.api.getList<T>(`${this.resource}/get_all`, { ...params });\n }\n\n getAdminPosts<T>(subscriptionId, paging?: Paging) {\n return this.api.getList<T>(`${this.resource}/admin_get_all`, {\n ...HelperService.getPagingParams(paging),\n subscription_id: subscriptionId\n });\n }\n\n addPost<T>(post) {\n return this.api.postItem<T>(this.resource, this.toPostFormData(post));\n }\n\n getPostBySlug<T = PublicPost>(slug: string) {\n return this.api.getItem<T>(`${this.resource}/${slug}`);\n }\n\n deletePost(id) {\n return this.api.deleteItem<{ message: string }>(`${this.resource}/${id}`);\n }\n\n updatePost<T>(post, id) {\n return this.api.putItem<T>(`${this.resource}/${id}`, this.toPostFormData(post));\n }\n\n // FormData sends null as the TEXT \"null\", which main-api then stored (a post's\n // external_url became \"null\" and its card linked to /null). Unset fields are left out.\n private toPostFormData(post: Record<string, PostFormValue>): FormData {\n const formData = new FormData();\n Object.entries(post).forEach(([key, value]) => {\n if (value !== null && value !== undefined) {\n formData.append(key, value instanceof Blob ? value : String(value));\n }\n });\n return formData;\n }\n\n private getComments() {\n return this.api.get(`${this.comments}/get_all`);\n }\n\n postComments<T>(post) {\n return this.api.postItem<T>(this.comments, post);\n }\n\n getResourceInsight<T>(subscription_id, starting_at?: string, ending_at?: string) {\n return this.api.getItem<T>(\n `/admin/posts_analytics?type=views&subscription_id=${subscription_id}`,\n { starting_at, ending_at }\n );\n }\n\n getResourcePostsInsight<T>(id) {\n return this.api.getList<T>(`${this.resource}/${id}/insights`);\n }\n}\n"],"mappings":";;;;AAWA,IAAa,kBAAb,MAAa,gBAAe;CAD5B,cAAA;EAEqB,KAAA,MAAM,OAAO,kBAAkB;EAE/B,KAAA,WAAW;EAEX,KAAA,WAAW;CAkF/B;CAhFG,eACI,wBACA,MACA,UACA,QACA,gBACA,QACA,cAA+C,CAAA,GAAE;EAEjD,MAAM,SAAS;GACX,GAAG;GACH;GACA,WAAW;GACH;GACR;EACH;EAED,IAAI,gBACA,OAAO,sBAAsB;EAGjC,IAAI,QACA,OAAO,aAAa;EAExB,OAAO,KAAK,IAAI,QAAW,GAAG,KAAK,SAAQ,WAAY,EAAE,GAAG,OAAM,CAAE;CACxE;CAEA,cAAiB,gBAAgB,QAAe;EAC5C,OAAO,KAAK,IAAI,QAAW,GAAG,KAAK,SAAQ,iBAAkB;GACzD,GAAG,cAAc,gBAAgB,MAAM;GACvC,iBAAiB;EACpB,CAAA;CACL;CAEA,QAAW,MAAI;EACX,OAAO,KAAK,IAAI,SAAY,KAA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AAA,MAAA;CAAe,YAAA,CAAA,EAD3B,MAAA,WAAA,CAAA"}
@@ -1,5 +1,5 @@
1
- import { t as ResourceService } from "./posiwise-resource-module-resource.service-DAXsq-WG.mjs";
2
- import { a as ResourceCardComponent, c as ResourceNoteCardComponent, d as Trial4ContactUsModule, n as UpcomingEventCardComponent, o as CaseStudyCardComponent, r as ResourceVaultComponent, s as ResourceVideoCardComponent, t as ResourceCardsModule, u as ResourceEditCardLazyComponent } from "./posiwise-resource-module-resource-cards.module-DWV2LWdy.mjs";
1
+ import { t as ResourceService } from "./posiwise-resource-module-resource.service-BBvcVvWN.mjs";
2
+ import { a as ResourceCardComponent, c as ResourceNoteCardComponent, d as Trial4ContactUsModule, n as UpcomingEventCardComponent, o as CaseStudyCardComponent, r as ResourceVaultComponent, s as ResourceVideoCardComponent, t as ResourceCardsModule, u as ResourceEditCardLazyComponent } from "./posiwise-resource-module-resource-cards.module-DOpH-f0N.mjs";
3
3
  import * as i0 from "@angular/core";
4
4
  import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, NgModule, Output, ViewChild, inject } from "@angular/core";
5
5
  import { TagService } from "@posiwise/common-services";
@@ -29,47 +29,47 @@ const routes = [
29
29
  {
30
30
  path: "",
31
31
  pathMatch: "full",
32
- loadChildren: () => import("./posiwise-resource-module-resource-root.module-TMvR1c1H.mjs").then((m) => m.ResourceRootModule)
32
+ loadChildren: () => import("./posiwise-resource-module-resource-root.module-BzvAo30C.mjs").then((m) => m.ResourceRootModule)
33
33
  },
34
34
  {
35
35
  path: "hub",
36
- loadChildren: () => import("./posiwise-resource-module-resource-hub.module-DklN3KeA.mjs").then((m) => m.ResourceHubModule)
36
+ loadChildren: () => import("./posiwise-resource-module-resource-hub.module-B3EZao2L.mjs").then((m) => m.ResourceHubModule)
37
37
  },
38
38
  {
39
39
  path: "blogs",
40
- loadChildren: () => import("./posiwise-resource-module-resource-blogs.module-DEXimOOY.mjs").then((m) => m.ResourceBlogsModule)
40
+ loadChildren: () => import("./posiwise-resource-module-resource-blogs.module-LKr-SjAo.mjs").then((m) => m.ResourceBlogsModule)
41
41
  },
42
42
  {
43
43
  path: "videos",
44
- loadChildren: () => import("./posiwise-resource-module-resource-videos.module-BCDet6S9.mjs").then((m) => m.ResourceVideosModule)
44
+ loadChildren: () => import("./posiwise-resource-module-resource-videos.module-OJpXslFg.mjs").then((m) => m.ResourceVideosModule)
45
45
  },
46
46
  {
47
47
  path: "integrations",
48
- loadChildren: () => import("./posiwise-resource-module-resource-integrations.module-iTlhrAYt.mjs").then((m) => m.ResourceIntegrationsModule)
48
+ loadChildren: () => import("./posiwise-resource-module-resource-integrations.module-Djkoz9EF.mjs").then((m) => m.ResourceIntegrationsModule)
49
49
  },
50
50
  {
51
51
  path: "release-notes",
52
- loadChildren: () => import("./posiwise-resource-module-resource-release-notes.module-WESwTVu8.mjs").then((m) => m.ResourceReleaseNotesModule)
52
+ loadChildren: () => import("./posiwise-resource-module-resource-release-notes.module-CE21Yiss.mjs").then((m) => m.ResourceReleaseNotesModule)
53
53
  },
54
54
  {
55
55
  path: "events",
56
- loadChildren: () => import("./posiwise-resource-module-resource-events.module-D8mxidoP.mjs").then((m) => m.ResourceEventsModule)
56
+ loadChildren: () => import("./posiwise-resource-module-resource-events.module-BO9CcIFp.mjs").then((m) => m.ResourceEventsModule)
57
57
  },
58
58
  {
59
59
  path: "white-papers",
60
- loadChildren: () => import("./posiwise-resource-module-resource-white-papers.module-DtxUgC_Z.mjs").then((m) => m.ResourceWhitePapersModule)
60
+ loadChildren: () => import("./posiwise-resource-module-resource-white-papers.module-rr8wWULi.mjs").then((m) => m.ResourceWhitePapersModule)
61
61
  },
62
62
  {
63
63
  path: "case-studies",
64
- loadChildren: () => import("./posiwise-resource-module-resource-case-studies.module-CQHAhbsv.mjs").then((m) => m.ResourceCaseStudiesModule)
64
+ loadChildren: () => import("./posiwise-resource-module-resource-case-studies.module-CzB9wtnf.mjs").then((m) => m.ResourceCaseStudiesModule)
65
65
  },
66
66
  {
67
67
  path: "careers",
68
- loadChildren: () => import("./posiwise-resource-module-resource-jobs.module-DpTqKqS9.mjs").then((m) => m.ResourceJobsModule)
68
+ loadChildren: () => import("./posiwise-resource-module-resource-jobs.module-Dw-7KbET.mjs").then((m) => m.ResourceJobsModule)
69
69
  },
70
70
  {
71
71
  path: "view/:slug",
72
- loadChildren: () => import("./posiwise-resource-module-resource-post.module-PU-KBg_G.mjs").then((m) => m.ResourcePostModule)
72
+ loadChildren: () => import("./posiwise-resource-module-resource-post.module-C343zv-t.mjs").then((m) => m.ResourcePostModule)
73
73
  }
74
74
  ];
75
75
  var BlogPublicRoutingModule = class BlogPublicRoutingModule {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/resource-module",
3
- "version": "0.0.206",
3
+ "version": "0.0.207",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0",
@@ -21,8 +21,8 @@ import * as i12$1 from "ngx-captcha";
21
21
  import { SafeResourceUrl } from "@angular/platform-browser";
22
22
  import { AppBaseComponent } from "@posiwise/app-base-component";
23
23
  import { Paging, Resource, ResourcePost, User } from "@posiwise/common-utilities";
24
+ import { ListResponse, TagService } from "@posiwise/common-services";
24
25
  import { Observable } from "rxjs";
25
- import { TagService } from "@posiwise/common-services";
26
26
  import * as i14 from "@posiwise/alpha-module";
27
27
  import { CustomUploaderComponent } from "@posiwise/utils";
28
28
  declare namespace resource_public_routing_module_d_exports {
@@ -58,25 +58,22 @@ export declare class ResourceService {
58
58
  private readonly api;
59
59
  private readonly resource;
60
60
  private readonly comments;
61
- getPublicPosts(master_subscription_id: any, page: number, pageSize: number, search: string, tagCategoryIds?: string, tagIds?: string, extraParams?: Record<string, string | number>): import("rxjs").Observable<any>;
62
- getAdminPosts(subscriptionId: any, paging?: Paging): import("rxjs").Observable<any>;
63
- addPost(post: any): import("rxjs").Observable<any>;
64
- getPostBySlug(slug: string): import("rxjs").Observable<any>;
65
- deletePost(id: any): import("rxjs").Observable<any>;
66
- updatePost(post: any, id: any): import("rxjs").Observable<any>;
61
+ getPublicPosts<T = PublicPost>(master_subscription_id: any, page: number, pageSize: number, search: string, tagCategoryIds?: string, tagIds?: string, extraParams?: Record<string, string | number>): import("rxjs").Observable<import("@posiwise/common-services").ListResponse<T>>;
62
+ getAdminPosts<T>(subscriptionId: any, paging?: Paging): import("rxjs").Observable<import("@posiwise/common-services").ListResponse<T>>;
63
+ addPost<T>(post: any): import("rxjs").Observable<import("@posiwise/common-services").WriteResponse<T>>;
64
+ getPostBySlug<T = PublicPost>(slug: string): import("rxjs").Observable<import("@posiwise/common-services").ItemResponse<T>>;
65
+ deletePost(id: any): import("rxjs").Observable<import("@posiwise/common-services").WriteResponse<{
66
+ message: string;
67
+ }>>;
68
+ updatePost<T>(post: any, id: any): import("rxjs").Observable<import("@posiwise/common-services").WriteResponse<T>>;
67
69
  private toPostFormData;
68
70
  private getComments;
69
- postComments(post: any): import("rxjs").Observable<any>;
70
- getResourceInsight(subscription_id: any, starting_at?: string, ending_at?: string): import("rxjs").Observable<any>;
71
- getResourcePostsInsight(id: any): import("rxjs").Observable<any>;
71
+ postComments<T>(post: any): import("rxjs").Observable<import("@posiwise/common-services").WriteResponse<T>>;
72
+ getResourceInsight<T>(subscription_id: any, starting_at?: string, ending_at?: string): import("rxjs").Observable<import("@posiwise/common-services").ItemResponse<T>>;
73
+ getResourcePostsInsight<T>(id: any): import("rxjs").Observable<import("@posiwise/common-services").ListResponse<T>>;
72
74
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceService, never>;
73
75
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
74
76
  }
75
- /** One page of `/posts/get_all`; `object_count` is the total after filtering. */
76
- interface ResourcePostsPage<T> {
77
- posts?: T[];
78
- object_count?: number;
79
- }
80
77
  /** Sort sent to `/posts/get_all` so that pages line up with the order the cards are shown. */
81
78
  declare const NEWEST_PUBLISHED_FIRST: {
82
79
  order_by: string;
@@ -86,6 +83,10 @@ declare const NEWEST_PUBLISHED_FIRST: {
86
83
  type PublicPost = Resource & {
87
84
  showcase?: boolean;
88
85
  when?: string;
86
+ published_at?: string;
87
+ rectangular_picture?: {
88
+ url?: string;
89
+ };
89
90
  };
90
91
  /** What to list: the subscription plus a tag category or specific tags. */
91
92
  interface PublicPostsQuery {
@@ -114,7 +115,7 @@ declare class ResourcePager<T> {
114
115
  private fetched;
115
116
  private total;
116
117
  private generation;
117
- constructor(fetchPage: (page: number, pageSize: number) => Observable<ResourcePostsPage<T>>, onChange: () => void, keep?: (post: T) => boolean, pageSize?: number);
118
+ constructor(fetchPage: (page: number, pageSize: number) => Observable<ListResponse<T>>, onChange: () => void, keep?: (post: T) => boolean, pageSize?: number);
118
119
  /** A pager over the public `/posts` list, newest-published first. */
119
120
  static forPublicPosts(service: ResourceService, query: () => PublicPostsQuery, onChange: () => void, keep: (post: PublicPost) => boolean, pageSize?: number): ResourcePager<PublicPost>;
120
121
  get hasMore(): boolean;
@@ -1 +0,0 @@
1
- {"version":3,"file":"posiwise-resource-module-base-top-banner.component-BwujN_up.mjs","names":[],"sources":["../../../../libs/resource-module/src/lib/public/components/base/base-top-banner.component.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n inject,\n OnInit\n} from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { AuthService, TagService } from '@posiwise/common-services';\nimport { Resource, User } from '@posiwise/common-utilities';\nimport { HelperService } from '@posiwise/helper-service';\n\nimport { forkJoin } from 'rxjs';\n\nimport { ResourceService } from '../../../resource.service';\n\n@Component({\n template: '',\n\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport abstract class BaseTopBannerComponent extends AppBaseComponent implements OnInit {\n protected readonly resourceService = inject(ResourceService);\n protected readonly tagService = inject(TagService);\n private readonly authService = inject(AuthService);\n private readonly titleService = inject(Title);\n protected readonly cdr = inject(ChangeDetectorRef);\n\n subscriptionId: number;\n masterSubscriptionId = this.appConfig.master_subscription.subscription_id;\n posts: Resource[] = [];\n testimonialsPosts = [];\n userLoggedIn: boolean;\n blogPostTag;\n tagCategory;\n blogTestimonialsPostTag;\n isLoaded = false;\n user: User;\n isMasterSubscription;\n\n canEditResourcesValue = false;\n\n ngOnInit() {\n this.getUserSubscriptionId().subscribe(response => {\n this.subscriptionId = response;\n this.cdr.markForCheck();\n });\n this.authService.getToken$().subscribe(res => {\n this.userLoggedIn = !!res;\n if (this.userLoggedIn) {\n this.localStorage.getItem$('product').subscribe(res => {\n const data = res ? JSON.parse(res) : null;\n this.subscriptionId = data?.subscriptionId;\n this.cdr.markForCheck();\n });\n this.userService.getUserInfo().subscribe(data => {\n this.user = data;\n this.updateCanEditResourcesValue();\n this.getTags();\n this.cdr.markForCheck();\n });\n } else {\n this.getTags();\n }\n this.cdr.markForCheck();\n });\n }\n\n protected getTags() {\n this.isLoaded = false;\n forkJoin({\n categories: this.tagService.getAllTagCategories(\n { search: this.getSearchTerm() },\n this.getEffectiveSubscriptionId()\n ),\n tags: this.tagService.getTagsByType(\n 'post_categories',\n {},\n this.getEffectiveSubscriptionId()\n )\n })\n .subscribe(({ categories, tags }) => {\n this.tagCategory = categories?.tag_categories?.[0];\n this.blogPostTag = tags.tags.find(\n tag => tag.tag_category_id === this.tagCategory?.id\n );\n this.updateSEOMetadata();\n this.cdr.markForCheck();\n })\n .add(() => {\n this.isLoaded = true;\n this.cdr.markForCheck();\n });\n }\n\n /** Helper method to get effective subscription ID */\n protected getEffectiveSubscriptionId(): number {\n return HelperService.getEffectiveSubscriptionId(\n this.user,\n this.subscriptionId,\n this.masterSubscriptionId\n );\n }\n\n protected updateSEOMetadata() {\n if (this.blogPostTag) {\n // Update page title if meta_title is available\n if (this.blogPostTag.meta_title) {\n this.titleService.setTitle(this.blogPostTag.meta_title);\n }\n\n // Update meta description if meta_description is available\n if (this.blogPostTag.meta_description) {\n this.updateMetaDescription(this.blogPostTag.meta_description);\n }\n }\n }\n\n private updateMetaDescription(description: string) {\n let metaDescription = document.querySelector('meta[name=\"description\"]');\n if (!metaDescription) {\n metaDescription = document.createElement('meta');\n metaDescription.setAttribute('name', 'description');\n document.head.appendChild(metaDescription);\n }\n metaDescription.setAttribute('content', description);\n }\n\n // Abstract method that each component must implement\n protected abstract getSearchTerm(): string;\n\n private updateCanEditResourcesValue(): void {\n if (this.userLoggedIn && this.user) {\n this.canEditResourcesValue = HelperService.canEditResources(\n this.user,\n this.userLoggedIn,\n this.permissionService\n );\n } else {\n this.canEditResourcesValue = false;\n }\n }\n\n canEditResources(): boolean {\n return this.canEditResourcesValue;\n }\n}\n"],"mappings":";;;;;;;;AAuBA,IAAsB,yBAAtB,MAAsB,+BAA+B,iBAAgB;CALrE,cAAA;;EAMuB,KAAA,kBAAkB,OAAO,eAAe;EACxC,KAAA,aAAa,OAAO,UAAU;EAChC,KAAA,cAAc,OAAO,WAAW;EAChC,KAAA,eAAe,OAAO,KAAK;EACzB,KAAA,MAAM,OAAO,iBAAiB;EAGjD,KAAA,uBAAuB,KAAK,UAAU,oBAAoB;EAC1D,KAAA,QAAoB,CAAA;EACpB,KAAA,oBAAoB,CAAA;EAKpB,KAAA,WAAW;EAIX,KAAA,wBAAwB;CA0G3B;CAxGG,WAAQ;EACJ,KAAK,sBAAqB,CAAE,CAAC,WAAU,aAAW;GAC9C,KAAK,iBAAiB;GACtB,KAAK,IAAI,aAAY;EACzB,CAAC;EACD,KAAK,YAAY,UAAS,CAAE,CAAC,WAAU,QAAM;GACzC,KAAK,eAAe,CAAC,CAAC;GACtB,IAAI,KAAK,cAAc;IACnB,KAAK,aAAa,SAAS,SAAS,CAAC,CAAC,WAAU,QAAM;KAClD,MAAM,OAAO,MAAM,KAAK,MAAM,GAAG,IAAI;KACrC,KAAK,iBAAiB,MAAM;KAC5B,KAAK,IAAI,aAAY;IACzB,CAAC;IACD,KAAK,YAAY,YA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