@posiwise/resource-module 0.0.199 → 0.0.200

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 (30) hide show
  1. package/fesm2022/{posiwise-resource-module-base-top-banner.component-Bxj0WwXC.mjs → posiwise-resource-module-base-top-banner.component-db9D53MI.mjs} +2 -2
  2. package/fesm2022/{posiwise-resource-module-base-top-banner.component-Bxj0WwXC.mjs.map → posiwise-resource-module-base-top-banner.component-db9D53MI.mjs.map} +1 -1
  3. package/fesm2022/{posiwise-resource-module-resource-blogs.module-Czhlpgcb.mjs → posiwise-resource-module-resource-blogs.module-C7DtGCXR.mjs} +4 -4
  4. package/fesm2022/{posiwise-resource-module-resource-blogs.module-Czhlpgcb.mjs.map → posiwise-resource-module-resource-blogs.module-C7DtGCXR.mjs.map} +1 -1
  5. package/fesm2022/{posiwise-resource-module-resource-cards.module-BX8R0Cng.mjs → posiwise-resource-module-resource-cards.module-mbvmvJpV.mjs} +2 -2
  6. package/fesm2022/{posiwise-resource-module-resource-cards.module-BX8R0Cng.mjs.map → posiwise-resource-module-resource-cards.module-mbvmvJpV.mjs.map} +1 -1
  7. package/fesm2022/{posiwise-resource-module-resource-case-studies.module-ClEua35f.mjs → posiwise-resource-module-resource-case-studies.module-CPcpQWlI.mjs} +3 -3
  8. package/fesm2022/{posiwise-resource-module-resource-case-studies.module-ClEua35f.mjs.map → posiwise-resource-module-resource-case-studies.module-CPcpQWlI.mjs.map} +1 -1
  9. package/fesm2022/{posiwise-resource-module-resource-events.module-CFngKia0.mjs → posiwise-resource-module-resource-events.module-yyacWPwv.mjs} +3 -3
  10. package/fesm2022/{posiwise-resource-module-resource-events.module-CFngKia0.mjs.map → posiwise-resource-module-resource-events.module-yyacWPwv.mjs.map} +1 -1
  11. package/fesm2022/{posiwise-resource-module-resource-hub.module-BIlT8XPx.mjs → posiwise-resource-module-resource-hub.module-C-SpVctG.mjs} +3 -3
  12. package/fesm2022/{posiwise-resource-module-resource-hub.module-BIlT8XPx.mjs.map → posiwise-resource-module-resource-hub.module-C-SpVctG.mjs.map} +1 -1
  13. package/fesm2022/{posiwise-resource-module-resource-integrations.module-D7xWr2Y2.mjs → posiwise-resource-module-resource-integrations.module-0Ei4NMHQ.mjs} +4 -4
  14. package/fesm2022/{posiwise-resource-module-resource-integrations.module-D7xWr2Y2.mjs.map → posiwise-resource-module-resource-integrations.module-0Ei4NMHQ.mjs.map} +1 -1
  15. package/fesm2022/{posiwise-resource-module-resource-post.module-DijUa5vO.mjs → posiwise-resource-module-resource-post.module-C8O8oiWv.mjs} +3 -3
  16. package/fesm2022/{posiwise-resource-module-resource-post.module-DijUa5vO.mjs.map → posiwise-resource-module-resource-post.module-C8O8oiWv.mjs.map} +1 -1
  17. package/fesm2022/{posiwise-resource-module-resource-release-notes.module-u6O3JD9u.mjs → posiwise-resource-module-resource-release-notes.module-CZeNqmRV.mjs} +4 -4
  18. package/fesm2022/{posiwise-resource-module-resource-release-notes.module-u6O3JD9u.mjs.map → posiwise-resource-module-resource-release-notes.module-CZeNqmRV.mjs.map} +1 -1
  19. package/fesm2022/{posiwise-resource-module-resource-root.module-3WYuuuw6.mjs → posiwise-resource-module-resource-root.module-CQd_uoG7.mjs} +2 -2
  20. package/fesm2022/{posiwise-resource-module-resource-root.module-3WYuuuw6.mjs.map → posiwise-resource-module-resource-root.module-CQd_uoG7.mjs.map} +1 -1
  21. package/fesm2022/{posiwise-resource-module-resource-videos.module-BTPdGGSf.mjs → posiwise-resource-module-resource-videos.module-DUz-VKpv.mjs} +4 -4
  22. package/fesm2022/{posiwise-resource-module-resource-videos.module-BTPdGGSf.mjs.map → posiwise-resource-module-resource-videos.module-DUz-VKpv.mjs.map} +1 -1
  23. package/fesm2022/{posiwise-resource-module-resource-white-papers.module-DY-hDx94.mjs → posiwise-resource-module-resource-white-papers.module-Badb-ZZo.mjs} +4 -4
  24. package/fesm2022/{posiwise-resource-module-resource-white-papers.module-DY-hDx94.mjs.map → posiwise-resource-module-resource-white-papers.module-Badb-ZZo.mjs.map} +1 -1
  25. package/fesm2022/{posiwise-resource-module-resource.service-B09CoD3d.mjs → posiwise-resource-module-resource.service-Dyxc3yQ6.mjs} +9 -6
  26. package/fesm2022/posiwise-resource-module-resource.service-Dyxc3yQ6.mjs.map +1 -0
  27. package/fesm2022/posiwise-resource-module.mjs +12 -12
  28. package/package.json +1 -1
  29. package/types/posiwise-resource-module.d.ts +1 -0
  30. package/fesm2022/posiwise-resource-module-resource.service-B09CoD3d.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"posiwise-resource-module-resource-white-papers.module-DY-hDx94.mjs","names":["i1.ResourceService","i4.ResourceTopBannerEditComponent","i5","i1.ResourceService","i3.ResourceVaultComponent","i6.WhitePaperTopBannerComponent"],"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,\n ChangeDetectorRef, Component, Injector } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\nimport { AuthService, TagService } from '@posiwise/common-services';\n\nimport { ResourceService } from '../../../../resource.service';\nimport { BaseTopBannerComponent } from '../../base/base-top-banner.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\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\nexport class WhitePaperTopBannerComponent extends BaseTopBannerComponent {\n contactUsUrl = this.appConfig?.pages_config?.contact_us?.url;\n\n constructor(\n resourceService: ResourceService,\n tagService: TagService,\n authService: AuthService,\n titleService: Title,\n cdr: ChangeDetectorRef,\n injector: Injector\n ) {\n super(resourceService, tagService, authService, titleService, cdr, injector);\n }\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.png'\"\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,\n ChangeDetectorRef, Component, Injector } from '@angular/core';\n\nimport { AuthService, TagService } from '@posiwise/common-services';\n\nimport { ResourceService } from '../../../resource.service';\nimport { BaseResourceComponent } from '../base/base-resource.component';\n\n@Component({\n selector: 'pw-resource-white-papers',\n templateUrl: './white-papers.component.html',\n\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\nexport class WhitePaperComponent extends BaseResourceComponent {\n constructor(\n resourceService: ResourceService,\n tagService: TagService,\n authService: AuthService,\n cdr: ChangeDetectorRef,\n injector: Injector\n ) {\n super(resourceService, tagService, authService, cdr, injector);\n }\n\n protected getResourceType(): string {\n return 'White Papers';\n }\n}\n","<pw-resource-header [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource-header>\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<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 declarations: [WhitePaperComponent, WhitePaperTopBannerComponent],\n imports: [ResourceSharedModule, RouterModule.forChild(routes)],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class ResourceWhitePapersModule {}\n"],"mappings":";;;;;;;;;;;;;AAsBA,IAAa,+BAAb,MAAa,qCAAqC,uBAAsB;CAGpE,YACI,iBACA,YACA,aACA,cACA,KACA,UAAkB;EAElB,MAAM,iBAAiB,YAAY,aAAa,cAAc,KAAK,QAAQ;EAV/E,KAAA,eAAe,KAAK,WAAW,cAAc,YAAY;CAWzD;CAEU,gBAAa;EACnB,OAAO;CACX;CAhBS;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA4B,MAAA;IAAA,EAAA,OAAAA,gBAAA;IAAA,EAAA,OAAA,GAAA,WAAA;IAAA,EAAA,OAAA,GAAA,YAAA;IAAA,EAAA,OAAA,GAAA,MAAA;IAAA,EAAA,OAAA,GAAA,kBAAA;IAAA,EAAA,OAAA,GAAA,SAAA;GAAA;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,UCtBzC;GAsDA,QAAA;IAAA;IAAA;IAAA;IAAA;GAAA;GAAA,cAAA,CAAA;IAAA,MAAA;IAAA,MAAAC;IAAA,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;IAAA;IAAA,SAAA,CAAA,eAAA;GAAA,GAAA;IAAA,MAAA;IAAA,MAAAC,KAAA;IAAA,UAAA;GAAA,CAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;ADhCa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA4B,YAAA,CA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,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAP/B,MAAA;EACa,MAAA,CAAA;GAAA,UAAA;GAA0B,iBAGnB,wBAAwB;GAAM,YACnC;GAAK,UAAA;EAAA,CAAA;;;;;;;;;;AENrB,MAAM,SAAiB,CACnB;CACI,MAAM;CACN,WAAW;CACX,MAAM;EACF,OAAO;EACP,YAAY;EACZ,SAAS;CACZ;AACJ,CACJ;AAOD,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,cAAA,CAJnB,qBAAqB,4BAA4B;GAAA,SAAA,CACtD,sBAAoB,GAAA,YAAA;EAAA,CAAA;CAAA;CAGrB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAyB,SAAA,CAHxB,sBAAsB,aAAa,SAAS,MAAM,CAAC;EAAA,CAAA;CAAA;;AAGpD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAyB,YAAA,CAAA;EALrC,MAAA;EAAS,MAAA,CAAA;GACN,cAAc,CAAC,qBAAqB,4BAA4B;GAChE,SAAS,CAAC,sBAAsB,aAAa,SAAS,MAAM,CAAC;GAC7D,SAAS,CAAC,sBAAsB;EACnC,CAAA"}
1
+ {"version":3,"file":"posiwise-resource-module-resource-white-papers.module-Badb-ZZo.mjs","names":["i1.ResourceService","i4.ResourceTopBannerEditComponent","i5","i1.ResourceService","i3.ResourceVaultComponent","i6.WhitePaperTopBannerComponent"],"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,\n ChangeDetectorRef, Component, Injector } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\nimport { AuthService, TagService } from '@posiwise/common-services';\n\nimport { ResourceService } from '../../../../resource.service';\nimport { BaseTopBannerComponent } from '../../base/base-top-banner.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\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\nexport class WhitePaperTopBannerComponent extends BaseTopBannerComponent {\n contactUsUrl = this.appConfig?.pages_config?.contact_us?.url;\n\n constructor(\n resourceService: ResourceService,\n tagService: TagService,\n authService: AuthService,\n titleService: Title,\n cdr: ChangeDetectorRef,\n injector: Injector\n ) {\n super(resourceService, tagService, authService, titleService, cdr, injector);\n }\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.png'\"\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,\n ChangeDetectorRef, Component, Injector } from '@angular/core';\n\nimport { AuthService, TagService } from '@posiwise/common-services';\n\nimport { ResourceService } from '../../../resource.service';\nimport { BaseResourceComponent } from '../base/base-resource.component';\n\n@Component({\n selector: 'pw-resource-white-papers',\n templateUrl: './white-papers.component.html',\n\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\nexport class WhitePaperComponent extends BaseResourceComponent {\n constructor(\n resourceService: ResourceService,\n tagService: TagService,\n authService: AuthService,\n cdr: ChangeDetectorRef,\n injector: Injector\n ) {\n super(resourceService, tagService, authService, cdr, injector);\n }\n\n protected getResourceType(): string {\n return 'White Papers';\n }\n}\n","<pw-resource-header [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource-header>\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<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 declarations: [WhitePaperComponent, WhitePaperTopBannerComponent],\n imports: [ResourceSharedModule, RouterModule.forChild(routes)],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class ResourceWhitePapersModule {}\n"],"mappings":";;;;;;;;;;;;;AAsBA,IAAa,+BAAb,MAAa,qCAAqC,uBAAsB;CAGpE,YACI,iBACA,YACA,aACA,cACA,KACA,UAAkB;EAElB,MAAM,iBAAiB,YAAY,aAAa,cAAc,KAAK,QAAQ;EAV/E,KAAA,eAAe,KAAK,WAAW,cAAc,YAAY;CAWzD;CAEU,gBAAa;EACnB,OAAO;CACX;CAhBS;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA4B,MAAA;IAAA,EAAA,OAAAA,gBAAA;I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MAAA;GAAyB,cAAA,CAJnB,qBAAqB,4BAA4B;GAAA,SAAA,CACtD,sBAAoB,GAAA,YAAA;EAAA,CAAA;CAAA;CAGrB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAyB,SAAA,CAHxB,sBAAsB,aAAa,SAAS,MAAM,CAAC;EAAA,CAAA;CAAA;;AAGpD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAyB,YAAA,CAAA;EALrC,MAAA;EAAS,MAAA,CAAA;GACN,cAAc,CAAC,qBAAqB,4BAA4B;GAChE,SAAS,CAAC,sBAAsB,aAAa,SAAS,MAAM,CAAC;GAC7D,SAAS,CAAC,sBAAsB;EACnC,CAAA"}
@@ -27,9 +27,7 @@ var ResourceService = class ResourceService {
27
27
  });
28
28
  }
29
29
  addPost(post) {
30
- const formData = new FormData();
31
- for (const key in post) if (key in post) formData.append(key, post[key]);
32
- return this.api.post(this.resource, formData);
30
+ return this.api.post(this.resource, this.toPostFormData(post));
33
31
  }
34
32
  getPostBySlug(slug) {
35
33
  return this.api.get(`${this.resource}/${slug}`);
@@ -38,9 +36,14 @@ var ResourceService = class ResourceService {
38
36
  return this.api.delete(`${this.resource}/${id}`);
39
37
  }
40
38
  updatePost(post, id) {
39
+ return this.api.put(`${this.resource}/${id}`, this.toPostFormData(post));
40
+ }
41
+ toPostFormData(post) {
41
42
  const formData = new FormData();
42
- for (const key in post) if (key in post) formData.append(key, post[key]);
43
- return this.api.put(`${this.resource}/${id}`, formData);
43
+ Object.entries(post).forEach(([key, value]) => {
44
+ if (value !== null && value !== void 0) formData.append(key, value instanceof Blob ? value : String(value));
45
+ });
46
+ return formData;
44
47
  }
45
48
  getComments() {
46
49
  return this.api.get(`${this.comments}/get_all`);
@@ -86,4 +89,4 @@ i0.ɵɵngDeclareClassMetadata({
86
89
  });
87
90
  export { ResourceService as t };
88
91
 
89
- //# sourceMappingURL=posiwise-resource-module-resource.service-B09CoD3d.mjs.map
92
+ //# sourceMappingURL=posiwise-resource-module-resource.service-Dyxc3yQ6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"posiwise-resource-module-resource.service-Dyxc3yQ6.mjs","names":[],"sources":["../../../../libs/resource-module/src/lib/resource.service.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { MainApiHttpService } from '@posiwise/common-services';\nimport { Paging } from '@posiwise/common-utilities';\nimport { HelperService } from '@posiwise/helper-service';\n\n@Injectable()\nexport class ResourceService {\n private readonly resource = '/posts';\n\n private readonly comments = '/comments';\n\n constructor(private readonly api: MainApiHttpService) {}\n\n getPublicPosts(\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.getWithParams(`${this.resource}/get_all`, {\n ...params\n });\n }\n\n getAdminPosts(subscriptionId, paging?: Paging) {\n return this.api.getWithParams(`${this.resource}/admin_get_all`, {\n ...HelperService.getPagingParams(paging),\n subscription_id: subscriptionId\n });\n }\n\n addPost(post) {\n return this.api.post(this.resource, this.toPostFormData(post));\n }\n\n getPostBySlug(slug: string) {\n return this.api.get(`${this.resource}/${slug}`);\n }\n\n deletePost(id) {\n return this.api.delete(`${this.resource}/${id}`);\n }\n\n updatePost(post, id) {\n return this.api.put(`${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): 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(post) {\n return this.api.post(this.comments, post);\n }\n\n getResourceInsight(subscription_id, starting_at?: string, ending_at?: string) {\n return this.api.getWithParams(\n `/admin/posts_analytics?type=views&subscription_id=${subscription_id}`,\n { starting_at, ending_at }\n );\n }\n\n getResourcePostsInsight(id) {\n return this.api.get(`${this.resource}/${id}/insights`);\n }\n}\n"],"mappings":";;;;AAOA,IAAa,kBAAb,MAAa,gBAAe;CAKxB,YAA6B,KAAuB;EAAvB,KAAA,MAAA;EAJZ,KAAA,WAAW;EAEX,KAAA,WAAW;CAE2B;CAEvD,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,cAAc,GAAG,KAAK,SAAQ,WAAY,EACtD,GAAG,OACN,CAAA;CACL;CAEA,cAAc,gBAAgB,QAAe;EACzC,OAAO,KAAK,IAAI,cAAc,GAAG,KAAK,SAAQ,iBAAkB;GAC5D,GAAG,cAAc,gBAAgB,MAAM;GACvC,iBAAiB;EACpB,CAAA;CACL;CAEA,QAAQ,MAAI;EACR,OAAO,KAAK,IAAI,KAAK,KAAK,UAAU,KAAK,eAAe,IAAI,CAAC;CACjE;CAEA,cAAc,MAAY;EACtB,OAAO,KAAK,IAAI,IAAI,GAAG,KAAK,SAAQ,GAAI,MAAM;CAClD;CAEA,WAAW,IAAE;EACT,OAAO,KAAK,IAAI,OAAO,GAAG,KAAK,SAAQ,GAAI,IAAI;CACnD;CAEA,WAAW,MAAM,IAAE;EACf,OAAO,KAAK,IAAI,IAAI,GAAG,KAAK,SAAQ,GAAI,MAAM,KAAK,eAAe,IAAI,CAAC;CAC3E;CAIQ,eAAe,MAAI;EACvB,MAAM,WAAW,IAAI,SAAQ;EAC7B,OAAO,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,KAAK,WAAU;GAC1C,IAAI,UAAU,QAAQ,UAAU,QAC5B,SAAS,OAAO,KAAK,iBAAiB,OAAO,QAAQ,OAAO,KAAK,CAAC;EAE1E,CAAC;EACD,OAAO;CACX;CAEQ,cAAW;EACf,OAAO,KAAK,IAAI,IAAI,GAAG,KAAK,SAAQ,SAAU;CAClD;CAEA,aAAa,MAAI;EACb,OAAO,KAAK,IAAI,KAAK,KAAK,UAAU,IAAI;CAC5C;CAEA,mBAAmB,iBAAiB,aAAsB,WAAkB;EACxE,OAAO,KAAK,IAAI,cACZ,qDAAqD,mBACrD;GAAE;GAAa;EAAS,CAAE;CAElC;CAEA,wBAAwB,IAAE;EACtB,OAAO,KAAK,IAAI,IAAI,GAAG,KAAK,SAAQ,GAAI,GAAE,UAAW;CACzD;CAxFS;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAe,MAAA,CAAA,EAAA,OAAA,GAAA,mBAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAf;EAAA,KAAA,QAAA,GAAA,sBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;EAAe,CAAA;CAAA;;AAAf,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAe,YAAA,CAAA,EAD3B,MAAA,WAAA,CAAA"}
@@ -1,5 +1,5 @@
1
- import { t as ResourceService } from "./posiwise-resource-module-resource.service-B09CoD3d.mjs";
2
- import { c as ResourceNoteCardComponent, i as ResourceVaultComponent, l as ResourceEditCardLazyComponent, n as UpcomingEventCardComponent, o as ResourceCardComponent, r as ResourceVideoCardComponent, s as CaseStudyCardComponent, t as ResourceCardsModule, u as Trial4ContactUsModule } from "./posiwise-resource-module-resource-cards.module-BX8R0Cng.mjs";
1
+ import { t as ResourceService } from "./posiwise-resource-module-resource.service-Dyxc3yQ6.mjs";
2
+ import { c as ResourceNoteCardComponent, i as ResourceVaultComponent, l as ResourceEditCardLazyComponent, n as UpcomingEventCardComponent, o as ResourceCardComponent, r as ResourceVideoCardComponent, s as CaseStudyCardComponent, t as ResourceCardsModule, u as Trial4ContactUsModule } from "./posiwise-resource-module-resource-cards.module-mbvmvJpV.mjs";
3
3
  import * as i0 from "@angular/core";
4
4
  import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Component, EventEmitter, Input, NgModule, Output, ViewChild } from "@angular/core";
5
5
  import { HelperService } from "@posiwise/helper-service";
@@ -51,43 +51,43 @@ const routes = [
51
51
  {
52
52
  path: "",
53
53
  pathMatch: "full",
54
- loadChildren: () => import("./posiwise-resource-module-resource-root.module-3WYuuuw6.mjs").then((m) => m.ResourceRootModule)
54
+ loadChildren: () => import("./posiwise-resource-module-resource-root.module-CQd_uoG7.mjs").then((m) => m.ResourceRootModule)
55
55
  },
56
56
  {
57
57
  path: "hub",
58
- loadChildren: () => import("./posiwise-resource-module-resource-hub.module-BIlT8XPx.mjs").then((m) => m.ResourceHubModule)
58
+ loadChildren: () => import("./posiwise-resource-module-resource-hub.module-C-SpVctG.mjs").then((m) => m.ResourceHubModule)
59
59
  },
60
60
  {
61
61
  path: "blogs",
62
- loadChildren: () => import("./posiwise-resource-module-resource-blogs.module-Czhlpgcb.mjs").then((m) => m.ResourceBlogsModule)
62
+ loadChildren: () => import("./posiwise-resource-module-resource-blogs.module-C7DtGCXR.mjs").then((m) => m.ResourceBlogsModule)
63
63
  },
64
64
  {
65
65
  path: "videos",
66
- loadChildren: () => import("./posiwise-resource-module-resource-videos.module-BTPdGGSf.mjs").then((m) => m.ResourceVideosModule)
66
+ loadChildren: () => import("./posiwise-resource-module-resource-videos.module-DUz-VKpv.mjs").then((m) => m.ResourceVideosModule)
67
67
  },
68
68
  {
69
69
  path: "integrations",
70
- loadChildren: () => import("./posiwise-resource-module-resource-integrations.module-D7xWr2Y2.mjs").then((m) => m.ResourceIntegrationsModule)
70
+ loadChildren: () => import("./posiwise-resource-module-resource-integrations.module-0Ei4NMHQ.mjs").then((m) => m.ResourceIntegrationsModule)
71
71
  },
72
72
  {
73
73
  path: "release-notes",
74
- loadChildren: () => import("./posiwise-resource-module-resource-release-notes.module-u6O3JD9u.mjs").then((m) => m.ResourceReleaseNotesModule)
74
+ loadChildren: () => import("./posiwise-resource-module-resource-release-notes.module-CZeNqmRV.mjs").then((m) => m.ResourceReleaseNotesModule)
75
75
  },
76
76
  {
77
77
  path: "events",
78
- loadChildren: () => import("./posiwise-resource-module-resource-events.module-CFngKia0.mjs").then((m) => m.ResourceEventsModule)
78
+ loadChildren: () => import("./posiwise-resource-module-resource-events.module-yyacWPwv.mjs").then((m) => m.ResourceEventsModule)
79
79
  },
80
80
  {
81
81
  path: "white-papers",
82
- loadChildren: () => import("./posiwise-resource-module-resource-white-papers.module-DY-hDx94.mjs").then((m) => m.ResourceWhitePapersModule)
82
+ loadChildren: () => import("./posiwise-resource-module-resource-white-papers.module-Badb-ZZo.mjs").then((m) => m.ResourceWhitePapersModule)
83
83
  },
84
84
  {
85
85
  path: "case-studies",
86
- loadChildren: () => import("./posiwise-resource-module-resource-case-studies.module-ClEua35f.mjs").then((m) => m.ResourceCaseStudiesModule)
86
+ loadChildren: () => import("./posiwise-resource-module-resource-case-studies.module-CPcpQWlI.mjs").then((m) => m.ResourceCaseStudiesModule)
87
87
  },
88
88
  {
89
89
  path: "view/:slug",
90
- loadChildren: () => import("./posiwise-resource-module-resource-post.module-DijUa5vO.mjs").then((m) => m.ResourcePostModule)
90
+ loadChildren: () => import("./posiwise-resource-module-resource-post.module-C8O8oiWv.mjs").then((m) => m.ResourcePostModule)
91
91
  }
92
92
  ];
93
93
  var BlogPublicRoutingModule = class BlogPublicRoutingModule {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/resource-module",
3
- "version": "0.0.199",
3
+ "version": "0.0.200",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0",
@@ -183,6 +183,7 @@ export declare class ResourceService {
183
183
  getPostBySlug(slug: string): import("rxjs").Observable<any>;
184
184
  deletePost(id: any): import("rxjs").Observable<any>;
185
185
  updatePost(post: any, id: any): import("rxjs").Observable<any>;
186
+ private toPostFormData;
186
187
  private getComments;
187
188
  postComments(post: any): import("rxjs").Observable<any>;
188
189
  getResourceInsight(subscription_id: any, starting_at?: string, ending_at?: string): import("rxjs").Observable<any>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"posiwise-resource-module-resource.service-B09CoD3d.mjs","names":[],"sources":["../../../../libs/resource-module/src/lib/resource.service.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { MainApiHttpService } from '@posiwise/common-services';\nimport { Paging } from '@posiwise/common-utilities';\nimport { HelperService } from '@posiwise/helper-service';\n\n@Injectable()\nexport class ResourceService {\n private readonly resource = '/posts';\n\n private readonly comments = '/comments';\n\n constructor(private readonly api: MainApiHttpService) {}\n\n getPublicPosts(\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.getWithParams(`${this.resource}/get_all`, {\n ...params\n });\n }\n\n getAdminPosts(subscriptionId, paging?: Paging) {\n return this.api.getWithParams(`${this.resource}/admin_get_all`, {\n ...HelperService.getPagingParams(paging),\n subscription_id: subscriptionId\n });\n }\n\n addPost(post) {\n const formData = new FormData();\n\n // eslint-disable-next-line no-restricted-syntax\n for (const key in post) {\n if (key in post) {\n formData.append(key, post[key]);\n }\n }\n\n return this.api.post(this.resource, formData);\n }\n\n getPostBySlug(slug: string) {\n return this.api.get(`${this.resource}/${slug}`);\n }\n\n deletePost(id) {\n return this.api.delete(`${this.resource}/${id}`);\n }\n\n updatePost(post, id) {\n const formData = new FormData();\n\n // eslint-disable-next-line no-restricted-syntax\n for (const key in post) {\n if (key in post) {\n formData.append(key, post[key]);\n }\n }\n\n return this.api.put(`${this.resource}/${id}`, formData);\n }\n\n private getComments() {\n return this.api.get(`${this.comments}/get_all`);\n }\n\n postComments(post) {\n return this.api.post(this.comments, post);\n }\n\n getResourceInsight(subscription_id, starting_at?: string, ending_at?: string) {\n return this.api.getWithParams(\n `/admin/posts_analytics?type=views&subscription_id=${subscription_id}`,\n { starting_at, ending_at }\n );\n }\n\n getResourcePostsInsight(id) {\n return this.api.get(`${this.resource}/${id}/insights`);\n }\n}\n"],"mappings":";;;;AAOA,IAAa,kBAAb,MAAa,gBAAe;CAKxB,YAA6B,KAAuB;EAAvB,KAAA,MAAA;EAJZ,KAAA,WAAW;EAEX,KAAA,WAAW;CAE2B;CAEvD,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,cAAc,GAAG,KAAK,SAAQ,WAAY,EACtD,GAAG,OACN,CAAA;CACL;CAEA,cAAc,gBAAgB,QAAe;EACzC,OAAO,KAAK,IAAI,cAAc,GAAG,KAAK,SAAQ,iBAAkB;GAC5D,GAAG,cAAc,gBAAgB,MAAM;GACvC,iBAAiB;EACpB,CAAA;CACL;CAEA,QAAQ,MAAI;EACR,MAAM,WAAW,IAAI,SAAQ;EAG7B,KAAK,MAAM,OAAO,MACd,IAAI,OAAO,MACP,SAAS,OAAO,KAAK,KAAK,IAAI;EAItC,OAAO,KAAK,IAAI,KAAK,KAAK,UAAU,QAAQ;CAChD;CAEA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