PageSourceSearch

https://www.theunionsports.com/6570.3cde07fb34c42212.js

js theunionsports.com collected 2026-10-04 06:37:08 UTC 67,588 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkthe_union_gk=self.webpackChunkthe_union_gk||[]).push([[6570],{76570:(Ft,U,c)=>{c.r(U),c.d(U,{ResourcesModule:()=>Dt});var d=c(88692),X=c(1061),h=c(22864),e=c(64537),C=c(96993),ee=c(53778),te=c(65737),se=c(18318),v=c(42384),L=c(84539),y=c(75391);function ne(t,r){if(1&t&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&t){const s=e.oxw();e.xp6(1),e.hij(" ",s.resoucesSection.RESOURCES," ")}}function oe(t,r){if(1&t&&(e.TgZ(0,"span",10),e._uU(1),e.qZA()),2&t){const s=e.oxw().ngIf;e.xp6(1),e.hij(" ",s.unread_count," ")}}function ie(t,r){if(1&t&&(e.ynx(0),e.YNc(1,oe,2,1,"span",9),e.BQk()),2&t){const s=r.ngIf;e.xp6(1),e.Q6J("ngIf",(null==s?null:s.unread_count)>0)}}function re(t,r){if(1&t&&(e.TgZ(0,"span",10),e._uU(1),e.qZA()),2&t){const s=e.oxw().ngIf;e.xp6(1),e.hij(" ",null==s?null:s.unread_count," ")}}function ae(t,r){if(1&t&&(e.ynx(0),e.YNc(1,re,2,1,"span",9),e.BQk()),2&t){const s=r.ngIf;e.xp6(1),e.Q6J("ngIf",(null==s?null:s.unread_count)>0)}}const b=function(){return{exact:!0}},O=function(t){return[t]};function ce(t,r){if(1&t&&(e.TgZ(0,"div",6)(1,"a",7),e._uU(2),e.YNc(3,ie,2,1,"ng-container",8),e.ALo(4,"async"),e.qZA(),e.TgZ(5,"a",7),e._uU(6),e.YNc(7,ae,2,1,"ng-container",8),e.ALo(8,"async"),e.qZA(),e.TgZ(9,"a",7),e._uU(10),e.qZA(),e.TgZ(11,"a",7),e._uU(12),e.qZA()()),2&t){const s=e.oxw();e.xp6(1),e.Q6J("routerLinkActiveOptions",e.DdM(18,b))("routerLink",e.VKq(19,O,s.appRoutingUrls.RESOURCES_ANNOUNCEMENTS)),e.xp6(1),e.hij(" ",s.resoucesSection.ANNOUNCEMENTS," "),e.xp6(1),e.Q6J("ngIf",e.lcZ(4,14,s.announcementsCount$)),e.xp6(2),e.Q6J("routerLinkActiveOptions",e.DdM(21,b))("routerLink",e.VKq(22,O,s.appRoutingUrls.RESOURCES_TIPS_TUTORIALS)),e.xp6(1),e.hij(" ",s.resoucesSection.GUIDES," "),e.xp6(1),e.Q6J("ngIf",e.lcZ(8,16,s.tipsTutorialsCount$)),e.xp6(2),e.Q6J("routerLinkActiveOptions",e.DdM(24,b))("routerLink",e.VKq(25,O,s.appRoutingUrls.RESOURCES_SERVICE_PROVIDERS)),e.xp6(1),e.hij(" ",s.resoucesSection.SERVICE_PROVIDERS," "),e.xp6(1),e.Q6J("routerLinkActiveOptions",e.DdM(27,b))("routerLink",e.VKq(28,O,s.appRoutingUrls.CREATOR_SUPPORT)),e.xp6(1),e.hij(" ",s.resoucesSection.CREATOR_SUPPORT," ")}}let le=(()=>{const r=class{constructor(i,o,n,a,l){this.router=i,this.cs=o,this.headerFooterStateService=n,this.resourcesService=a,this.resoucesSection=L.HB,this.appRoutingUrls=C.dp,this.permissionKeys=ee.S,this.PERMISSION_TYPE=te.BX,this.announcementsCount$=this.resourcesService.announcementsCount$,this.tipsTutorialsCount$=this.resourcesService.tipsTutorialsCount$,this.isBrowser=(0,d.NF)(l),this.headerFooterStateService.updateState({isHeaderVisible:!0}),this.headerFooterStateService.updateFooterState({isFooterVisible:!1})}ngOnInit(){this.isBrowser&&this.resourcesService.fetchResourcesCount()}isResourceDetailsRoute(){return this.router.url.includes(C.dp.RESOURCES_RESOURCE_DETAILS)||this.router.url.includes(C.dp.RESOURCES_SERVICE_PROVIDER_DETAILS)}};let t=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(h.F0),e.Y36(v.v),e.Y36(se.P),e.Y36(y.z),e.Y36(e.Lbi))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-resources-container"]],decls:6,vars:2,consts:[[1,"main-wrapper","container","resources-container","mt-0"],[1,"main-content"],[1,"inner-content"],["class","main-title",4,"ngIf"],["class","main-tab",4,"ngIf"],[1,"main-title"],[1,"main-tab"],["routerLinkActive","active-button",1,"btn","btn-secondary",3,"routerLinkActiveOptions","routerLink"],[4,"ngIf"],["class","count-circle",4,"ngIf"],[1,"count-circle"]],template:function(o,n){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e.YNc(3,ne,2,1,"div",3),e.YNc(4,ce,13,30,"div",4),e._UZ(5,"router-outlet"),e.qZA()()()),2&o&&(e.xp6(3),e.Q6J("ngIf",!n.isResourceDetailsRoute()),e.xp6(1),e.Q6J("ngIf",!n.isResourceDetailsRoute()))},dependencies:[d.O5,h.lC,h.rH,h.Od,d.Ov],styles:[".resources-container[_ngcontent-%COMP%]   .main-tab[_ngcontent-%COMP%]{margin-bottom:26px}@media screen and (min-width: 993px){.resources-container[_ngcontent-%COMP%]   .main-tab[_ngcontent-%COMP%]{flex-wrap:wrap;row-gap:16px}.resources-container[_ngcontent-%COMP%]   .main-tab[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{max-width:max-content}}
1.resources-container[_ngcontent-%COMP%]   .count-circle[_ngcontent-%COMP%]{background:var(--theme-text-danger);height:24px;width:24px;min-width:24px;display:inline-block;margin-left:8px;border-radius:50%;font-size:12px;font-weight:400;line-height:24px;text-align:center}"]}),t})();var m=c(59302),p=c(76004),P=c(26877),T=c(38023),g=c(13528),_=c(44689),I=c(50668),D=c(82082),w=c(24519),k=c(26695);let M=(()=>{const r=class{constructor(){this.variant="search"}};let t=r;return r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-resources-toolbar-skeleton"]],inputs:{variant:"variant"},standalone:!0,features:[e.jDz],decls:3,vars:4,consts:[[1,"resources-toolbar-skeleton"],[1,"resources-toolbar-skeleton__bar"],["className","h-40 w-100% r-28 c-bgt"]],template:function(o,n){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-skeleton",2),e.qZA()()),2&o&&(e.ekj("resources-toolbar-skeleton--search","search"===n.variant),e.xp6(1),e.ekj("resources-toolbar-skeleton__bar--select","select"===n.variant))},dependencies:[d.ez,k._],styles:[".resources-toolbar-skeleton[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-bottom:16px}.resources-toolbar-skeleton__bar[_ngcontent-%COMP%]{width:252px}.resources-toolbar-skeleton__bar--select[_ngcontent-%COMP%]{width:31%;min-width:252px}"]}),t})();var E=c(6913),R=c(36194),pe=c(32177),F=c(10885);function de(t,r){if(1&t&&(e.TgZ(0,"div",18)(1,"span",19),e._uU(2),e.qZA()()),2&t){const s=e.oxw().$implicit;e.xp6(2),e.hij(" ",null==s?null:s.type," ")}}const Y=function(t){return{"has-image":t}};function ue(t,r){if(1&t&&(e.TgZ(0,"div",20),e._UZ(1,"img",21),e.qZA()),2&t){const s=e.oxw().$implicit;e.Q6J("ngClass",e.VKq(4,Y,!(null==s||!s.logo))),e.xp6(1),e.Q6J("originalUrl",null==s?null:s.logo)("src",null==s?null:s.logo,e.LSH)("format","webp")}}function me(t,r){if(1&t&&(e.TgZ(0,"h5",22),e._uU(1),e.qZA()),2&t){const s=e.oxw().$implicit;e.xp6(1),e.Oqu(null==s?null:s.title)}}function ge(t,r){if(1&t&&(e.TgZ(0,"h5",23),e._uU(1),e.qZA()),2&t){const s=e.oxw().$implicit;e.xp6(1),e.hij(" ",null==s?null:s.sub_title," ")}}function he(t,r){if(1&t&&(e.TgZ(0,"p",24),e._uU(1),e.qZA()),2&t){const s=e.oxw().$implicit;e.xp6(1),e.hij(" ",null==s?null:s.description," ")}}function _e(t,r){if(1&t&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"abbreviateNumberPipe"),e.TgZ(3,"span"),e._uU(4),e.qZA()()),2&t){const s=e.oxw().$implicit,i=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,2,s.likes_count)," "),e.xp6(3),e.hij(" ",s.likes_count>1?i.labels.LIKES:i.labels.LIKE," ")}}function fe(t,r){if(1&t&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"abbreviateNumberPipe"),e.TgZ(3,"span"),e._uU(4),e.qZA()()),2&t){const s=e.oxw().$implicit,i=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,2,s.comments_count)," "),e.xp6(3),e.hij(" ",s.comments_count>1?i.labels.COMMENTS:i.labels.COMMENT," ")}}function ve(t,r){if(1&t&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"convertDate"),e.qZA()),2&t){const s=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,null==s?null:s.publish_timestamp)," ")}}function xe(t,r){if(1&t&&(e.TgZ(0,"p"),e._UZ(1,"span",26),e._uU(2),e.qZA()),2&t){const s=e.oxw(4);e.xp6(2),e.hij(" ",s.labels.UNREAD," ")}}function Ce(t,r){if(1&t&&(e.TgZ(0,"div",25),e.YNc(1,ve,3,3,"p",16),e.YNc(2,xe,3,1,"p",16),e.qZA()),2&t){const s=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",null==s?null:s.publish_timestamp),e.xp6(1),e.Q6J("ngIf",(null==s?null:s.hasOwnProperty("is_viewed"))&&!1===s.is_viewed)}}const Te=function(t,r,s){return[t,r,s]};function ye(t,r){if(1&t&&(e.TgZ(0,"div",4)(1,"div",5)(2,"div",6),e._UZ(3,"img",7),e.qZA(),e.YNc(4,de,3,1,"div",8),e.TgZ(5,"div",9)(6,"div",10),e.YNc(7,ue,2,6,"div",11),e.qZA(),e.YNc(8,me,2,1,"h5",12),e.YNc(9,ge,2,1,"h5",13),e.YNc(10,he,2,1,"p",14),e.TgZ(11,"div",15),e.YNc(12,_e,5,4,"p",16),e.YNc(13,fe,5,4,"p",16),e.qZA(),e.YNc(14,Ce,3,2,"div",17),e.qZA()()()),2&t){const s=r.$implicit,i=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.VKq(13,Y,!(null==s||!s.image_url)))("routerLink",e.kEZ(15,Te,i.isServiceProvider?i.appRoutingUrls.RESOURCES_SERVICE_PROVIDER_DETAILS:i.appRoutingUrls.RESOURCES_RESOURCE_DETAILS,null==s?null:s.pk,null==s?null:s.sk)),e.xp6(2),e.Q6J("originalUrl",null==s?null:s.image_url)("src",null==s?null:s.image_url,e.LSH)("format","webp"),e.xp6(1),e.Q6J("ngIf",null==s?null:s.type),e.xp6(3),e.Q6J("ngIf",null==s?null:s.logo),e.xp6(1),e.Q6J("ngIf",null==s?null:s.title),e.xp6(1),e.Q6J("ngIf",null==s?null:s.sub_title),e.xp6(1),e.Q6J("ngIf",null==s?null:s.description),e.xp6(2),e.Q6J("ngIf",null==s?null:s.likes_count),e.xp6(1),e.Q6J("ngIf",(null==s?null:s.comments_count)&&(null==s?null:s.is_comment_enable)),e.xp6(1),e.Q6J("ngIf",(null==s?null:s.publish_timestamp)||!(null!=s&&s.is_viewed))}}function be(t,r){if(1&t&&(e.TgZ(0,"div",2),e.YNc(1,ye,15,19,"div",3),e.qZA()),2&t){const s=e.oxw();e.xp6(1),e.Q6J("ngForOf",s.getData)}}let Z=(()=>{const r=class{constructor(i){this.cs=i,this.getData=[],this.isServiceProvider=!1,this.appRoutingUrls=C.dp,this.labels=p.wS,this.destroy$=new T.x}ngOnInit(){}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let t=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(v.v))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-resources-card"]],inputs:{getData:"getData",isServiceProvider:"isServiceProvider"},decls:2,vars:1,consts:[[1,"merchandiseCards","experienceCards","resourcesCards"],["class","row",4,"ngIf"],[1,"row"],["class","col-6 col-lg-4 resourcesCards-main",4,"ngFor","ngForOf"],[1,"col-6","col-lg-4","resourcesCards-main"],[1,"cardsNFTS","header",3,"ngClass","routerLink"],[1,"cardsNFTS-image"],["appDisableRightClick","","appMobileOptimization","","alt","Resource Image","loading","lazy","decoding","async",3,"originalUrl","src","format"],["class","cardsNFTS-head align-left",4,"ngIf"],[1,"cardsNFTS-title"],[1,"btn-group","resource-card-margin"],["class","profileImage mb-1",3,"ngClass",4,"ngIf"],["class","word-length",4,"ngIf"],["class","word-length resourcesCards-subTitle",4,"ngIf"],["class","multi-ellipsis-text",4,"ngIf"],[1,"d-flex","align-items-center","gap-4","resourcesCards-footer","mb-1"],[4,"ngIf"],["class","d-flex align-items-center justify-content-between gap-4 resourcesCards-footer",4,"ngIf"],[1,"cardsNFTS-head","align-left"],[1,"ml-0","provider-type-badge"],[1,"profileImage","mb-1",3,"ngClass"],["appDisableRightClick","","appMobileOptimization","","alt","Logo","loading","lazy","decoding","async",3,"originalUrl","src","format"],[1,"word-length"],[1,"word-length","resourcesCards-subTitle"],[1,"multi-ellipsis-text"],[1,"d-flex","align-items-center","justify-content-between","gap-4","resourcesCards-footer"],[1,"circle-icon-on"]],template:function(o,n){1&o&&(e.TgZ(0,"div",0),e.YNc(1,be,2,1,"div",1),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",n.getData.length))},dependencies:[d.mk,d.sg,d.O5,h.rH,E.m,R.J,pe.B,F.g],styles:[".resourcesCards[_ngcontent-%COMP%]   .multi-ellipsis-text[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;line-height:19px}.resourcesCards[_ngcontent-%COMP%]   .word-length[_ngcontent-%COMP%], .resourcesCards[_ngcontent-%COMP%]   .multi-ellipsis-text[_ngcontent-%COMP%]{margin-bottom:3px!important}.resourcesCards[_ngcontent-%COMP%]   .resourcesCards-subTitle[_ngcontent-%COMP%]{font-size:18px!important}.resourcesCards[_ngcontent-%COMP%]   .resourcesCards-footer[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;font-size:13px;line-height:100%;letter-spacing:0px;color:#d9d9d9;margin-bottom:3px;text-transform:none}.resourcesCards[_ngcontent-%COMP%]   .cardsNFTS[_ngcontent-%COMP%]   .cardsNFTS-head[_ngcontent-%COMP%]{justify-content:flex-start}.resourcesCards[_ngcontent-%COMP%]   .cardsNFTS[_ngcontent-%COMP%]   .cardsNFTS-head[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{min-width:auto;padding:10px;border-radius:28px;display:inline-block;font-size:13px;text-align:center;color:#fff}.resourcesCards[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{padding:0!important;z-index:1!important}.resourcesCards[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .profileImage[_ngcontent-%COMP%]{z-index:1!important}@media screen and (max-width: 992px){.resourcesCards[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .profileImage[_ngcontent-%COMP%]{width:30px!important;height:30px!important}}
1.resourcesCards[_ngcontent-%COMP%]   .middot[_ngcontent-%COMP%]{font-size:30px!important;font-weight:700!important;line-height:0!important}@media screen and (max-width: 992px){.resourcesCards[_ngcontent-%COMP%]   .resourcesCards-subTitle[_ngcontent-%COMP%]{font-size:16px!important}.resourcesCards[_ngcontent-%COMP%]   .cardsNFTS[_ngcontent-%COMP%]   .cardsNFTS-head[_ngcontent-%COMP%]{margin:0!important}.resourcesCards[_ngcontent-%COMP%]   .cardsNFTS[_ngcontent-%COMP%]   .cardsNFTS-head[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:10px}.resourcesCards[_ngcontent-%COMP%]   .multi-ellipsis-text[_ngcontent-%COMP%]{display:none}}.resourcesCards-main[_ngcontent-%COMP%]{position:relative}.resource-card-margin[_ngcontent-%COMP%]{margin-left:0;margin-bottom:10px}"]}),t})();function Oe(t,r){if(1&t){const s=e.EpF();e.TgZ(0,"div",6)(1,"app-search-bar",7),e.NdJ("handleSearch",function(o){e.CHM(s);const n=e.oxw();return e.KtG(n.handleSearch(o))}),e.qZA()()}if(2&t){const s=e.oxw();e.xp6(1),e.Q6J("placeholder",s.labels.SEARCH_ANNOUNCEMENTS)}}function Pe(t,r){1&t&&e._UZ(0,"app-resources-toolbar-skeleton",8)}function we(t,r){if(1&t&&e._UZ(0,"app-resources-card",9),2&t){const s=e.oxw();e.Q6J("getData",s.transformedAnnouncements)}}function Me(t,r){1&t&&e._UZ(0,"app-resource-card-grid-skeleton")}function Se(t,r){if(1&t&&(e.TgZ(0,"div",10),e._UZ(1,"app-circle-background-icon",11),e.TgZ(2,"p"),e._uU(3),e.qZA()()),2&t){const s=e.oxw();e.xp6(3),e.Oqu(s.messages.NO_ANNOUNCEMENTS_FOUND)}}let Ie=(()=>{const r=class{constructor(i,o,n){this.cs=i,this.apiCacheService=o,this.transformedAnnouncements=[],this.isLoading=!1,this.payload={search:null},this.labels=p.wS,this.messages=p.Vm,this.destroy$=new T.x,this.isBrowser=(0,d.NF)(n)}ngOnInit(){this.isBrowser?this.getAnnouncementsList(this.payload):this.isLoading=!0}handleSearch(i){this.payload.search=i||"",this.getAnnouncementsList(this.payload)}getAnnouncementsList(i){this.isLoading=!0;let o="";i.search&&(o=`search=${encodeURIComponent(i.search)}`),this.apiCacheService.get(`${m.Y9.announcements}${o?.length?"?":""}${o}`,this.isBrowser?_.Y.ALWAYS_FRESH:_.Y.PRERENDERED).pipe((0,g.R)(this.destroy$)).subscribe(a=>{a.status&&Array.isArray(a.data)?(this.transformedAnnouncements=a.data.map(l=>({...l,description:"",sequence_number:l.sequence_number??null})),this.transformedAnnouncements=(0,P.hA)(this.transformedAnnouncements)):(this.cs.showWarningMessage(a.message||p.Vm.FAILED_TO_LOAD_ANNOUNCEMENTS),this.transformedAnnouncements=[]),this.isLoading=!1},a=>{this.cs.showErrorMessage(a.message||p.Vm.SOMETHING_WENT_WRONG),this.isLoading=!1,this.transformedAnnouncements=[]})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let t=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(v.v),e.Y36(_.G),e.Y36(e.Lbi))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-announcement-component"]],decls:6,vars:5,consts:[[1,"announcement-wrapper"],["class","announcement-search",4,"ngIf"],["variant","search",4,"ngIf"],[3,"getData",4,"ngIf"],[4,"ngIf"],["class","not-found-pane card-not-found m-0",4,"ngIf"],[1,"announcement-search"],[3,"placeholder","handleSearch"],["variant","search"],[3,"getData"],[1,"not-found-pane","card-not-found","m-0"],["icomoonClassName","icon-liteannouncement"]],template:function(o,n){1&o&&(e.TgZ(0,"div",0),e.YNc(1,Oe,2,1,"div",1),e.YNc(2,Pe,1,0,"app-resources-toolbar-skeleton",2),e.YNc(3,we,1,1,"app-resources-card",3),e.YNc(4,Me,1,0,"app-resource-card-grid-skeleton",4),e.YNc(5,Se,4,1,"div",5),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",!n.isLoading||n.transformedAnnouncements.length),e.xp6(1),e.Q6J("ngIf",n.isLoading&&!n.transformedAnnouncements.length),e.xp6(1),e.Q6J("ngIf",n.transformedAnnouncements.length),e.xp6(1),e.Q6J("ngIf",n.isLoading),e.xp6(1),e.Q6J("ngIf",!(n.isLoading||null!=n.transformedAnnouncements&&n.transformedAnnouncements.length)))},dependencies:[d.O5,I.z,D.F,w.V,M,Z],styles:[".announcement-wrapper[_ngcontent-%COMP%]{min-width:345px}.announcement-wrapper[_ngcontent-%COMP%]   .announcement-search[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:16px}"]}),t})();var N=c(67030),J=c(22274),x=c(59735),Q=c(87578),q=c(3942),ke=c(91228),Ee=c(74028);function Re(t,r){1&t&&e._UZ(0,"app-skeleton",17)}function Ze(t,r){1&t&&e._UZ(0,"app-skeleton",17)}function Ne(t,r){1&t&&(e.TgZ(0,"div",18),e._UZ(1,"app-skeleton",19),e.TgZ(2,"div",20)(3,"div",21),e._UZ(4,"app-skeleton",22)(5,"app-skeleton",23),e.qZA(),e._UZ(6,"app-skeleton",24),e.qZA()())}let $=(()=>{const r=class{constructor(){this.contentLines=Array(6),this.comments=Array(3)}};let t=r;return r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-resource-details-skeleton"]],standalone:!0,features:[e.jDz],decls:18,vars:3,consts:[[1,"skeleton-resource-details"],[1,"skeleton-back-row"],["className","h-24 w-250 r-4 c-bgt"],[1,"skeleton-content-card"],["className","h-22 w-60% r-4 c-post"],["className","h-13 w-180 r-4 c-post"],[1,"skeleton-body"],["className","h-16 w-100% r-4 c-post",4,"ngFor","ngForOf"],["className","h-16 w-70% r-4 c-post"],["className","h-200 w-100% r-16 c-post"],["className","h-16 w-50% r-4 c-post"],[1,"skeleton-comments-section"],["className","h-20 w-120 r-4 c-post"],[1,"skeleton-comment-input"],["className","h-40 w-40 r-50% c-post"],["className","h-40 w-100% r-20 c-post"],["class","skeleton-comment-item",4,"ngFor","ngForOf"],["className","h-16 w-100% r-4 c-post"],[1,"skeleton-comment-item"],["className","h-36 w-36 r-50% c-post"],[1,"skeleton-comment-body"],[1,"skeleton-comment-header"],["className","h-14 w-120 r-4 c-post"],["className","h-12 w-60 r-4 c-post"],["className","h-14 w-80% r-4 c-post"]],template:function(o,n){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-skeleton",2),e.qZA(),e.TgZ(3,"div",3),e._UZ(4,"app-skeleton",4)(5,"app-skeleton",5),e.TgZ(6,"div",6),e.YNc(7,Re,1,0,"app-skeleton",7),e._UZ(8,"a
1pp-skeleton",8)(9,"app-skeleton",9),e.YNc(10,Ze,1,0,"app-skeleton",7),e._UZ(11,"app-skeleton",10),e.qZA()(),e.TgZ(12,"div",11),e._UZ(13,"app-skeleton",12),e.TgZ(14,"div",13),e._UZ(15,"app-skeleton",14)(16,"app-skeleton",15),e.qZA(),e.YNc(17,Ne,7,0,"div",16),e.qZA()()),2&o&&(e.xp6(7),e.Q6J("ngForOf",n.contentLines),e.xp6(3),e.Q6J("ngForOf",n.contentLines),e.xp6(7),e.Q6J("ngForOf",n.comments))},dependencies:[d.ez,d.sg,k._],styles:[".skeleton-resource-details[_ngcontent-%COMP%]{padding:4px}.skeleton-back-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.skeleton-content-card[_ngcontent-%COMP%]{margin-top:25px;border-radius:20px;padding:24px;background:var(--configSecondaryBgColor);display:flex;flex-direction:column;gap:15px}.skeleton-body[_ngcontent-%COMP%]{margin-top:10px;display:flex;flex-direction:column;gap:12px}.skeleton-comments-section[_ngcontent-%COMP%]{margin-top:24px;padding:24px;border-radius:20px;background:var(--configSecondaryBgColor);display:flex;flex-direction:column;gap:16px}.skeleton-comment-input[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.skeleton-comment-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;padding:8px 0}.skeleton-comment-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;flex:1}.skeleton-comment-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}"]}),t})();function Ae(t,r){1&t&&e._UZ(0,"app-resource-details-skeleton")}function Ue(t,r){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const s=e.oxw(2);e.xp6(1),e.Oqu(s.resourceName)}}function Le(t,r){if(1&t&&(e.TgZ(0,"div",18),e._uU(1),e.ALo(2,"date"),e.qZA()),2&t){const s=e.oxw(3);e.xp6(1),e.hij("Updated on: ",e.xi3(2,1,null==s.resource?null:s.resource.updated_at,"longDate"),"")}}function De(t,r){if(1&t&&(e.TgZ(0,"div",13)(1,"div",14)(2,"h2",15),e._uU(3),e.qZA(),e.YNc(4,Le,3,4,"div",16),e.qZA(),e._UZ(5,"app-text-editor-v2",17),e.qZA()),2&t){const s=e.oxw(2);e.xp6(3),e.Oqu(s.resource.title),e.xp6(1),e.Q6J("ngIf",null==s.resource?null:s.resource.updated_at),e.xp6(1),e.Q6J("editorText",null==s.resource?null:s.resource.description)}}function Fe(t,r){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"abbreviateNumberPipe"),e.qZA()),2&t){const s=e.oxw(2);e.xp6(1),e.hij(" (",e.lcZ(2,1,s.resource.likes_count),") ")}}function Ye(t,r){if(1&t&&(e.TgZ(0,"div",22),e._uU(1),e.TgZ(2,"span",23),e._uU(3),e.ALo(4,"abbreviateNumberPipe"),e.qZA()()),2&t){const s=e.oxw(3);e.xp6(1),e.hij(" ",s.labels.COMMENTS_TITLE," "),e.xp6(2),e.hij("(",e.lcZ(4,2,null==s.resource?null:s.resource.comments_count),")")}}function Je(t,r){if(1&t){const s=e.EpF();e.TgZ(0,"div",19),e.YNc(1,Ye,5,4,"div",20),e.TgZ(2,"app-comments",21),e.NdJ("getCommentEmit",function(o){e.CHM(s);const n=e.oxw(2);return e.KtG(n.getCommentEvent(o))})("getReplyCommentEmit",function(o){e.CHM(s);const n=e.oxw(2);return e.KtG(n.getReplyCommentEvent(o))})("commentLikeStatusEmit",function(o){e.CHM(s);const n=e.oxw(2);return e.KtG(n.commentLikeStatusEvent(o))})("commentWithoutImageEmit",function(o){e.CHM(s);const n=e.oxw(2);return e.KtG(n.commentWithoutImageEvent(o))})("commentWithImageEmit",function(o){e.CHM(s);const n=e.oxw(2);return e.KtG(n.commentWithImage(o))})("replyWithoutImageEmit",function(o){e.CHM(s);const n=e.oxw(2);return e.KtG(n.replyWithoutImageEvent(o))})("replyWithImageEmit",function(o){e.CHM(s);const n=e.oxw(2);return e.KtG(n.replyWithImageEvent(o))})("getReplyPagesEmit",function(o){e.CHM(s);const n=e.oxw(2);return e.KtG(n.getReplyPagesEvent(o))}),e.qZA()()}if(2&t){const s=e.oxw(2);e.xp6(1),e.Q6J("ngIf",null==s.resource?null:s.resource.comments_count),e.xp6(1),e.Q6J("items",s.resource)("isResourceType",!0)("isReportAnInappropriate",!1)}}function Qe(t,r){if(1&t){const s=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"a",4),e.NdJ("click",function(){e.CHM(s);const o=e.oxw();return e.KtG(o.goToBack())}),e._UZ(3,"em",5),e.qZA(),e.YNc(4,Ue,2,1,"span",0),e.qZA(),e.YNc(5,De,6,3,"div",6),e.TgZ(6,"div",7)(7,"label",8)(8,"input",9),e.NdJ("change",function(o){e.CHM(s);const n=e.oxw();return e.KtG(n.likeCreatorResource(o,n.resource))}),e.qZA(),e._UZ(9,"em",10),e.TgZ(10,"span",11),e._uU(11),e.qZA()(),e.YNc(12,Fe,3,3,"span",0),e.qZA(),e.YNc(13,Je,3,4,"div",12),e.qZA()}if(2&t){const s=e.oxw();e.xp6(4),e.Q6J("ngIf",s.resourceName),e.xp6(1),e.Q6J("ngIf",s.resource),e.xp6(3),e.Q6J("disabled",s.isLikeDisabled)("checked",null==s.resource?null:s.resource.is_liked),e.xp6(3),e.hij(" ",s.labels.LIKE," "),e.xp6(1),e.Q6J("ngIf",s.resource.likes_count),e.xp6(1),e.Q6J("ngIf",null==s.resource?null:s.resource.isComment)}}function qe(t,r){if(1&t&&(e.TgZ(0,"div")(1,"p"),e._uU(2),e.qZA()()),2&t){const s=e.oxw();e.xp6(2),e.Oqu(s.messages.NO_RESOURCES_FOUND)}}let $e=(()=>{const r=class{constructor(i,o,n,a,l,u,f,S){this.route=i,this.router=o,this.apiCallService=n,this.cs=a,this.authService=l,this.location=u,this.resourcesService=f,this.store=S,this.isLoading=!0,this.resourceName=null,this.messages=p.Vm,this.labels=p.wS,this.destroy$=new T.x,this.isLikeDisabled=!1,this.userProfileSubscription()}
1ngOnInit(){const i=this.route.snapshot.paramMap.get("type"),o=this.route.snapshot.paramMap.get("id");if(i&&o){const n=encodeURIComponent(o);this.fetchResourceByTypeAndId(i,n),this.extractResourceNameFromRoute()}}goToBack(){this.authService.getHistory()?this.router.navigate([`${this.authService.getHistory()}`]):this.location.back(),this.authService.setLocationHistory("")}extractResourceNameFromRoute(){const i=this.router.url;this.resourceName=null;for(const o in p.wu)if(i.includes(o)){this.resourceName=p.wu[o];break}}fetchResourceByTypeAndId(i,o){this.isLoading=!0;const n=p.eZ[i];if(!n)return this.cs.showErrorMessage(p.Vm.INVALID_URL),void(this.isLoading=!1);this.apiCallService.get(`${n}/${o}`,!0).pipe((0,g.R)(this.destroy$)).subscribe(l=>{l.status&&l.data?(Object.keys(l.data)?.length||this.router.navigate(["/not-found"]),this.resource={...l.data,isComment:l.data.is_comment_enable},this.resource.is_liked=this.resource.likes?.some(u=>u.sk==this.userProfile?.sk),this.resourcesService.fetchResourcesCount()):(this.cs.showErrorMessage(l.message||p.Vm.FAILED_TO_LOAD_RESOURCES),this.router.navigate([C.dp.NOT_FOUND])),this.isLoading=!1},l=>{this.cs.showErrorMessage(l.message||p.Vm.SOMETHING_WENT_WRONG),this.router.navigate([C.dp.NOT_FOUND]),this.isLoading=!1})}getCommentEvent(i){let o="",n="";i?.lastEvaluatedKey?.sk&&i?.lastEvaluatedKey?.pk&&(o=this.cs.encodeToUTF(i?.lastEvaluatedKey?.sk)||"",n=this.cs.encodeToUTF(i?.lastEvaluatedKey?.pk)||""),this.apiCallService.get(m.Y9.createrResourceComments+`/${i?.encSK}?last_evaluated_key_sk=${o}&last_evaluated_key_pk=${n}&limit=${x.Mx.FIVE}`,i.isLoader||!1).pipe((0,g.R)(this.destroy$)).subscribe({next:a=>{a.status?this.cs.getCommentHandling.next({data:{items:a?.data},status:!0,items:i.items,isLoadMore:i.isLoadMore,lastEvaluatedKey:a?.LastEvaluatedKey}):(this.cs.getCommentHandling.next({status:!1,items:i.items}),this.cs.showErrorMessage(a.message))},error:a=>{this.cs.getCommentHandling.next({status:!1,items:i.items}),this.cs.showErrorMessage(a.message)}})}getReplyCommentEvent(i){this.apiCallService.get(m.Y9.createrResourceComments+`/reply/${i?.commentId}?limit=${x.Mx.FIVE}`,!1).pipe((0,g.R)(this.destroy$)).subscribe({next:o=>{o.status?this.cs.getReplyCommentHandling.next({data:{items:o?.data},status:!0,commentId:i.commentId,commentKey:i.commentKey,resourceId:i.commentItem?.pk||"",lastEvaluatedKey:o?.LastEvaluatedKey}):(this.cs.getReplyCommentHandling.next({status:!1,commentId:i.commentId,commentKey:i.commentKey,resourceId:i.commentItem?.pk||""}),this.cs.showErrorMessage(o.message))},error:o=>{this.cs.getReplyCommentHandling.next({status:!1,commentId:i.commentId,commentKey:i.commentKey}),this.cs.showErrorMessage(o.message)}})}commentLikeStatusEvent(i){const o=i?.commentKey?.startsWith("REPLY#");let a,n={};n=o?{replyId:i?.commentKey||"",commentId:this.cs.decodeToUTF(i?.postId)||"",resourceId:i?.resourceId||""}:{replyId:i?.replyId||"",commentId:i?.commentKey||"",resourceId:this.cs.decodeToUTF(i?.postId)||""},a=this.apiCallService.put(m.Y9.commentLike,n,!1),this.handleSubscription(a,i.commentKey,i.checkbox)}handleSubscription(i,o,n){i.subscribe(a=>{a.status?this.cs.commentLikeStatus.next({event:n,commentKey:o,status:!0}):(this.cs.commentLikeStatus.next({event:n,commentKey:o,status:!1}),this.cs.showErrorMessage(a.message))},a=>{this.cs.commentLikeStatus.next({event:n,commentKey:o,status:!1}),this.cs.showErrorMessage(a.message)})}commentWithoutImageEvent(i){this.apiCallService.post(m.Y9.createrResourceComments,{resourceId:i.sk,comment:i?.formData?.comment||"",image_url:i?.formData?.image_url,reply_tag:i?.formData?.reply_tag||[]},!1).pipe((0,g.R)(this.destroy$)).subscribe({next:n=>{n.status?(this.updateCommentCount(i.sk),this.cs.commentWithoutImage.next({status:!0,data:n})):(this.cs.commentWithoutImage.next({status:!1,data:n}),this.cs.showErrorMessage(n.message))},error:n=>{this.cs.commentWithoutImage.next({status:!1}),this.cs.showErrorMessage(n.message)}})}commentWithImage(i){const{formData:o}=i;this.apiCallService.post(m.Y9.createrResourceComments,{resourceId:i.sk,comment:o?.comment||"",image_url:o?.image_url,reply_tag:o?.reply_tag||[]},!1).subscribe({next:a=>{a.status?(this.updateCommentCount(i.sk),this.cs.commentWithImage.next({status:!0,data:a})):(this.cs.commentWithImage.next({status:!1}
1),this.cs.showErrorMessage(a.message))},error:a=>{this.cs.commentWithImage.next({status:!1}),this.cs.showErrorMessage(a.message)}})}getReplyPagesEvent(i){const{commentId:o,lastEvaluatedKey:n}=i;let a="",l="";const u=this.cs.encodeToUTF(o);n?.sk&&n?.pk&&(a=this.cs.encodeToUTF(n?.sk)||"",l=this.cs.encodeToUTF(n?.pk)||""),this.apiCallService.get(m.Y9.createrResourceComments+`/reply/${u}?last_evaluated_key_sk=${a}&last_evaluated_key_pk=${l}&limit=${x.Mx.FIVE}`,!1).subscribe({next:f=>{const S={...f,data:{items:f?.data}};f.status?this.cs.getReplyPages.next({res:S,commentId:o,status:!0}):(this.cs.getReplyPages.next({res:S,commentId:o,status:!1}),this.cs.showErrorMessage(f.message))},error:f=>{this.cs.showErrorMessage(f.message)}})}replyWithImageEvent(i){const{encCommentId:o,postSK:n,formData:a}=i,l={resourceId:n,commentId:this.cs.decodeToUTF(o),comment:a?.comment||"",image_url:a?.image_url,reply_tag:a?.reply_tag||[]};this.apiCallService.post(m.Y9.replyResourceComments,l,!1).subscribe({next:u=>{u.status?(this.updateReplyCommentCount(n),this.cs.replyWithImage.next({status:!0,postSK:n,data:u,encCommentId:o})):(this.cs.replyWithImage.next({status:!1,postSK:n,encCommentId:o}),this.cs.showErrorMessage(u.message))},error:u=>{this.cs.replyWithImage.next({status:!1,postSK:n,encCommentId:o}),this.cs.showErrorMessage(u.message)}})}replyWithoutImageEvent(i){const{encCommentId:o,postSK:n,formData:a}=i,l={resourceId:n,commentId:this.cs.decodeToUTF(o),comment:a?.comment||"",image_url:a?.image_url,reply_tag:a?.reply_tag||[]};this.apiCallService.post(m.Y9.replyResourceComments,l,!1).subscribe({next:u=>{u.status?(this.updateReplyCommentCount(n),this.cs.replyWithoutImage.next({status:!0,data:u,postSK:n,encCommentId:o})):(this.cs.replyWithoutImage.next({status:!1,postSK:n}),this.cs.showErrorMessage(u.message))},error:u=>{this.cs.replyWithoutImage.next({status:!1,postSK:n}),this.cs.showErrorMessage(u.message)}})}updateReplyCommentCount(i){this.resource&&this.resource.sk===i&&(this.resource.comments_count=(this.resource.comments_count||x.Mx.ZERO)+Number(x.Mx.ONE))}updateCommentCount(i){this.resource&&this.resource.sk===i&&(this.resource.comments_count=(this.resource.comments_count||x.Mx.ZERO)+Number(x.Mx.ONE))}likeCreatorResource(i,o){this.isLikeDisabled=!0;const n=this.cs.encodeToUTF(o?.sk);this.apiCallService.put(`${m.Y9.likeCreatorResource}/${n}`,{},!1).pipe((0,g.R)(this.destroy$)).subscribe({next:a=>{a&&(this.isLikeDisabled=!1,i.target.checked?this.resource.likes_count=(this.resource.likes_count||0)+x.Mx.ONE:this.resource.likes_count-=x.Mx.ONE)},error:()=>{this.isLikeDisabled=!1,i.target.checked=!i.target.checked}})}userProfileSubscription(){this.store.select(Q.SJ).pipe((0,g.R)(this.destroy$)).subscribe(i=>{i.sk&&(this.userProfile=i)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let t=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(h.gz),e.Y36(h.F0),e.Y36(N.F),e.Y36(v.v),e.Y36(J.AuthService),e.Y36(d.Ye),e.Y36(y.z),e.Y36(q.yh))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-resources-product-details"]],decls:3,vars:3,consts:[[4,"ngIf"],["class","resource",4,"ngIf"],[1,"resource"],[1,"back-button-container","d-flex","gap-4"],[3,"click"],[1,"icon-arrow-back"],["appDisableRightClick","","class","resouces-details-wrapper",4,"ngIf"],[1,"like-resources","d-flex","align-items-end"],[1,"d-flex","align-items-end"],["type","checkbox","id","like","name","like",3,"disabled","checked","change"],[1,"icon-love"],[1,"likes-count"],["class","cards mt-4",4,"ngIf"],["appDisableRightClick","",1,"resouces-details-wrapper"],[1,"resources-header"],[1,"resouces-title"],["class","updated-at",4,"ngIf"],[3,"editorText"],[1,"updated-at"],[1,"cards","mt-4"],["class","mb-2 comments-title",4,"ngIf"],[3,"items","isResourceType","isReportAnInappropriate","getCommentEmit","getReplyCommentEmit","commentLikeStatusEmit","commentWithoutImageEmit","commentWithImageEmit","replyWithoutImageEmit","replyWithImageEmit","getReplyPagesEmit"],[1,"mb-2","comments-title"],[1,"comments-count"]],template:function(o,n){1&o&&(e.YNc(0,Ae,1,0,"app-resource-details-skeleton",0),e.YNc(1,Qe,14,7,"div",1),e.YNc(2,qe,3,1,"div",0)),2&o&&(e.Q6J("ngIf",!n.cs.isBrowser||n.isLoading),e.xp6(1),e.Q6J("ngIf",!n.isLoading&&n.resource),e.xp6(1),e.Q6J("ngIf",!n.isLoading&&!n.resource))},dependencies:[d.O5,E.m,ke.C,Ee.r,$,d.uU,F.g],styles:[".resouces-details-wrapper[_ngcontent-%COMP%]{border-radius:20px;padding:24px;position:relative;margin-top:25px}.resouces-details-wrapper[_ngcontent-%COMP%]   .resources-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:15px}.resouces-details-wrapper[_ngcontent-%COMP%]   .resources-header[_ngcontent-%COMP%]   .resouces-title[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;line-height:140%;text-transform:none}.resouces-details-wrapper[_ngcontent-%COMP%]   .resources-header[_ngcontent-%COMP%]   .updated-at[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;font-size:13px;line-height:100%;opacity:.5}.resouces-details-wrapper[_ngcontent-%COMP%]   .resources-header[_ngcontent-%COMP%]   .resource-images[_ngcontent-%COMP%]{position:relative;height:auto;border-radius:20px}.resouces-details-wrapper[_ngcontent-%COMP%]   .resources-header[_ngcontent-%COMP%]   .resource-images[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:auto;max-width:100%;max-height:600px;object-fit:contain;position:inherit;border-radius:16px;display:block}
1.resouces-details-wrapper[_ngcontent-%COMP%]   .ql-editor[_ngcontent-%COMP%]{margin-top:24px;padding:0!important;font-size:16px}@media screen and (max-width: 992px){.resouces-details-wrapper[_ngcontent-%COMP%]   .ql-editor[_ngcontent-%COMP%]{font-size:13px}}.resource[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]{padding:4px}.resource[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer}.resource[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .resource[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:Roboto;font-weight:700;font-size:24px;line-height:100%}.resource[_ngcontent-%COMP%]   .comments-title[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;font-size:20px;line-height:140%;letter-spacing:0px}.resource[_ngcontent-%COMP%]   .comments-title[_ngcontent-%COMP%]   .comments-count[_ngcontent-%COMP%]{opacity:.5}.resource[_ngcontent-%COMP%]   .cards[_ngcontent-%COMP%]{padding:24px}@media screen and (max-width: 768px){.resource[_ngcontent-%COMP%]   .cards[_ngcontent-%COMP%]{border-radius:32px;padding:24px 10px}}  .resource app-comments .cards-comment-list{padding-top:0!important}.like-resources[_ngcontent-%COMP%]{font-size:30px;cursor:pointer;display:flex;align-items:center;margin:10px 10px -20px;justify-content:flex-end}.like-resources[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ em[_ngcontent-%COMP%], .like-resources[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ span[_ngcontent-%COMP%]{color:#09c6da}.like-resources[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{position:relative;text-shadow:0 0 4px rgba(0,0,0,.5)}.like-resources[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;inset:0;opacity:0;cursor:pointer}.like-resources[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;margin-bottom:5px;padding-left:5px}@media screen and (max-width: 992px){.like-resources[_ngcontent-%COMP%]{right:12px}}"]}),t})();function ze(t,r){if(1&t){const s=e.EpF();e.TgZ(0,"div",6)(1,"app-search-bar",7),e.NdJ("handleSearch",function(o){e.CHM(s);const n=e.oxw();return e.KtG(n.handleSearch(o))}),e.qZA()()}if(2&t){const s=e.oxw();e.xp6(1),e.Q6J("placeholder",s.labels.SEARCH_GUIDES)}}function Ve(t,r){1&t&&e._UZ(0,"app-resources-toolbar-skeleton",8)}function je(t,r){if(1&t&&e._UZ(0,"app-resources-card",9),2&t){const s=e.oxw();e.Q6J("getData",s.transformedTipsTutorials)}}function Be(t,r){1&t&&e._UZ(0,"app-resource-card-grid-skeleton")}function He(t,r){if(1&t&&(e.TgZ(0,"div",10),e._UZ(1,"app-circle-background-icon",11),e.TgZ(2,"p"),e._uU(3),e.qZA()()),2&t){const s=e.oxw();e.xp6(3),e.Oqu(s.messages.NO_TIPS_TUTORIALS_FOUND)}}let Ke=(()=>{const r=class{constructor(i,o,n){this.cs=i,this.apiCacheService=o,this.transformedTipsTutorials=[],this.isLoading=!1,this.payload={search:null},this.labels=p.wS,this.messages=p.Vm,this.destroy$=new T.x,this.isBrowser=(0,d.NF)(n)}ngOnInit(){this.isBrowser?this.getTipsTutorialsList(this.payload):this.isLoading=!0}handleSearch(i){this.payload.search=i||"",this.getTipsTutorialsList(this.payload)}getTipsTutorialsList(i){this.isLoading=!0;let o="";i.search&&(o=`search=${encodeURIComponent(i.search)}`),this.apiCacheService.get(`${m.Y9.tipsTutorials}${o?.length?"?":""}${o}`,this.isBrowser?_.Y.ALWAYS_FRESH:_.Y.PRERENDERED).pipe((0,g.R)(this.destroy$)).subscribe(a=>{a.status&&Array.isArray(a.data)?(this.transformedTipsTutorials=a.data.map(l=>({...l,description:"",sequence_number:l.sequence_number??null})),this.transformedTipsTutorials=(0,P.hA)(this.transformedTipsTutorials)):(this.cs.showErrorMessage(a.message||p.Vm.FAILED_TO_LOAD_TIPS_TUTORIALS),this.transformedTipsTutorials=[]),this.isLoading=!1},a=>{this.cs.showErrorMessage(a.message||p.Vm.SOMETHING_WENT_WRONG),this.isLoading=!1,this.transformedTipsTutorials=[]})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let t=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(v.v),e.Y36(_.G),e.Y36(e.Lbi))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-tips-tutorials-component"]],decls:6,vars:5,consts:[[1,"tips-tutorials-wrapper"],["class","tips-tutorials-search",4,"ngIf"],["variant","search",4,"ngIf"],[3,"getData",4,"ngIf"],[4,"ngIf"],["class","not-found-pane card-not-found m-0",4,"ngIf"],[1,"tips-tutorials-search"],[3,"placeholder","handleSearch"],["variant","search"],[3,"getData"],[1,"n
1ot-found-pane","card-not-found","m-0"],["icomoonClassName","icon-liteCreator-resource-1"]],template:function(o,n){1&o&&(e.TgZ(0,"div",0),e.YNc(1,ze,2,1,"div",1),e.YNc(2,Ve,1,0,"app-resources-toolbar-skeleton",2),e.YNc(3,je,1,1,"app-resources-card",3),e.YNc(4,Be,1,0,"app-resource-card-grid-skeleton",4),e.YNc(5,He,4,1,"div",5),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",!n.isLoading||n.transformedTipsTutorials.length),e.xp6(1),e.Q6J("ngIf",n.isLoading&&!n.transformedTipsTutorials.length),e.xp6(1),e.Q6J("ngIf",n.transformedTipsTutorials.length),e.xp6(1),e.Q6J("ngIf",n.isLoading),e.xp6(1),e.Q6J("ngIf",!(n.isLoading||null!=n.transformedTipsTutorials&&n.transformedTipsTutorials.length)))},dependencies:[d.O5,I.z,D.F,w.V,M,Z],styles:[".tips-tutorials-wrapper[_ngcontent-%COMP%]{min-width:345px}.tips-tutorials-wrapper[_ngcontent-%COMP%]   .tips-tutorials-search[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:16px}"]}),t})();var We=c(20092),z=c(72632);function Ge(t,r){if(1&t&&(e.TgZ(0,"div",6),e._UZ(1,"app-select",7),e.qZA()),2&t){const s=e.oxw();e.xp6(1),e.Q6J("field",s.typeFilterFormField)("form",s.form)}}function Xe(t,r){1&t&&e._UZ(0,"app-resources-toolbar-skeleton",8)}function et(t,r){if(1&t&&e._UZ(0,"app-resources-card",9),2&t){const s=e.oxw();e.Q6J("getData",s.transformedServiceProviders)("isServiceProvider",!0)}}function tt(t,r){1&t&&e._UZ(0,"app-resource-card-grid-skeleton")}function st(t,r){if(1&t&&(e.TgZ(0,"div",10),e._UZ(1,"app-circle-background-icon",11),e.TgZ(2,"p"),e._uU(3),e.qZA()()),2&t){const s=e.oxw();e.xp6(3),e.Oqu(s.messages.NO_SERVICE_PROVIDERS_FOUND)}}let nt=(()=>{const r=class{constructor(i,o,n,a){this.cs=i,this.fb=o,this.apiCacheService=n,this.transformedServiceProviders=[],this.isLoading=!1,this.payload={filter:null},this.labels=p.wS,this.messages=p.Vm,this.typeFilterFormField=p.Xd,this.form=null,this.destroy$=new T.x,this.isBrowser=(0,d.NF)(a)}ngOnInit(){this.isBrowser?(this.form=this.fb.group({filter:[p.Fv.ALL_SERVICE_PROVIDERS]}),this.form.get("filter")?.valueChanges.subscribe(()=>{this.payload.filter=this.form.get("filter")?.value,this.getAnnouncementsList(this.payload)}),this.getServiceProviderTypeFilterData(),this.getAnnouncementsList(this.payload)):this.isLoading=!0}getServiceProviderTypeFilterData(){this.apiCacheService.get(m.Y9.serviceProvidersFilter+"?enable=true",_.Y.PRERENDERED).pipe((0,g.R)(this.destroy$)).subscribe({next:i=>{if(Object.keys(i?.data)?.length){const o=i.data.map(n=>({label:n?.title,value:n?.sk,sequence_number:n?.sequence_number}));(0,P.hA)(o),this.typeFilterFormField.options=[{label:p.Fv.ALL_SERVICE_PROVIDERS,value:""},...o]}}})}getAnnouncementsList(i){this.isLoading=!0;let o="";i.filter&&(o=`provider_type_id=${encodeURIComponent(i.filter)}`),this.apiCacheService.get(`${m.Y9.serviceProviders}${o?.length?"?":""}${o}`,_.Y.PRERENDERED).pipe((0,g.R)(this.destroy$)).subscribe(a=>{a.status&&Array.isArray(a.data)?this.transformedServiceProviders=(0,P.hA)(a.data.map(l=>({...l,image_url:l.preview_image||"",logo:l.logo||"",title:l.name||"",type:l.provider_type?.title||""}))):(this.cs.showWarningMessage(a.message||p.Vm.FAILED_TO_LOAD_ANNOUNCEMENTS),this.transformedServiceProviders=[]),this.isLoading=!1},a=>{this.cs.showErrorMessage(a.message||p.Vm.SOMETHING_WENT_WRONG),this.isLoading=!1,this.transformedServiceProviders=[]})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let t=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(v.v),e.Y36(We.qu),e.Y36(_.G),e.Y36(e.Lbi))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-provider-component"]],decls:6,vars:5,consts:[[1,"service-provider-wrapper"],["class","trans-type-filter monetize-card",4,"ngIf"],["variant","select",4,"ngIf"],[3,"getData","isServiceProvider",4,"ngIf"],[4,"ngIf"],["class","not-found-pane card-not-found m-0",4,"ngIf"],[1,"trans-type-filter","monetize-card"],[3,"field","form"],["variant","select"],[3,"getData","isServiceProvider"],[1,"not-found-pane","card-not-found","m-0"],["icomoonClassName","icon-liteservice-provider"]],template:function(o,n){1&o&&(e.TgZ(0,"div",0),e.YNc(1,Ge,2,2,"div",1),e.YNc(2,Xe,1,0,"app-resources-toolbar-skeleton",2),e.YNc(3,et,1,2,"app-resources-card",3),e.YNc(4,tt,1,0,"app-resource-card-grid-skeleton",4),e.YNc(5,st,4,1,"div",5),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",!n.isLoading||n.transformedServiceProviders.length),e.xp6(1),e.Q6J("ngIf",n.isLoading&&!n.transformedServiceProviders.length),e.xp6(1),e.Q6J("ngIf",n.transformedServiceProviders.length),e.xp6(1),e.Q6J("ngIf",n.isLoading),e.xp6(1),e.Q6J("ngIf",!(n.isLoading||null!=n.transformedServiceProviders&&n.transformedServiceProviders.length)))},dependencies:[d.O5,z.o,I.z,w.V,M,Z],styles:[".service-provider-wrapper[_ngcontent-%COMP%]{min-width:345px}  .service-provider-wrapper .trans-type-filter{width:31%;min-width:252px;margin-left:auto;margin-bottom:16px}  .service-provider-wrapper .trans-type-filter .ng-select-container{height:40px!important}  .service-provider-wrapper .trans-type-filter .ng-select-container .ng-option{white-space:pre-wrap!important}  .service-provider-wrapper .trans-type-filter .form-group{margin:0!important}  .service-provider-wrapper .monetize-card{padding:0!important;margin-bottom:16px!important;background:none!important;border:none!important}"]}),t})();var V=c(57262),A=c(61354);function ot(t,r){1&t&&e._UZ(0,"app-skeleton",19)}let j=(()=>{const r=class{constructor(){this.portfolioItems=Array(4)}};let t=r;return r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-provider-details-skeleton"]],standalone:!0,features:[e.jDz],decls:20,vars:1,consts:[[1,"skeleton-service-provider-details"],[1,"skeleton-back-row"],["className","h-24 w-250 r-4 c-bgt"],[1,"skeleton-content-card"],[1,"skeleton-provider-header"],[1,"skeleton-provider-info"],["className","h-100 w-100 r-50% c-post"],[1,"skeleton-provider-text"],["className","h-24 w-200 r-4 c-post"],["className","h-26 w-120 r-28 c-post"],["className","h-40 w-150 r-28 c-post"],[1,"skeleton-about-section"],["className","h-24 w-80 r-4 c-post"],["className","h-16 w-100% r-4 c-post"],["className","h-16 w-60% r-4 c-post"],[1,"skeleton-portfolio-section"],["className","h-24 w-100 r-4 c-post"],[1,"skeleton-portfolio-gri
1d"],["className","h-114 w-113 r-15 c-post",4,"ngFor","ngForOf"],["className","h-114 w-113 r-15 c-post"]],template:function(o,n){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-skeleton",2),e.qZA(),e.TgZ(3,"div",3)(4,"div",4)(5,"div",5),e._UZ(6,"app-skeleton",6),e.TgZ(7,"div",7),e._UZ(8,"app-skeleton",8)(9,"app-skeleton",9),e.qZA()(),e._UZ(10,"app-skeleton",10),e.qZA(),e.TgZ(11,"div",11),e._UZ(12,"app-skeleton",12)(13,"app-skeleton",13)(14,"app-skeleton",13)(15,"app-skeleton",14),e.qZA(),e.TgZ(16,"div",15),e._UZ(17,"app-skeleton",16),e.TgZ(18,"div",17),e.YNc(19,ot,1,0,"app-skeleton",18),e.qZA()()()()),2&o&&(e.xp6(19),e.Q6J("ngForOf",n.portfolioItems))},dependencies:[d.ez,d.sg,k._],styles:[".skeleton-service-provider-details[_ngcontent-%COMP%]{padding:4px}.skeleton-back-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.skeleton-content-card[_ngcontent-%COMP%]{margin-top:25px;border-radius:20px;padding:24px;background:var(--configSecondaryBgColor)}.skeleton-provider-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}.skeleton-provider-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.skeleton-provider-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.skeleton-about-section[_ngcontent-%COMP%], .skeleton-portfolio-section[_ngcontent-%COMP%]{margin-top:30px;display:flex;flex-direction:column;gap:10px}.skeleton-portfolio-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}"]}),t})();var rt=c(37524),B=c.n(rt),H=c(98329),K=c(14625),at=c(82954);const ct=["serviceProviderModal"],lt=function(t){return{"has-image":t}},pt=function(t){return{type:"button",class:"btn btn-default w-100",label:t}},dt=function(t,r){return{type:"button",class:"btn btn-primary w-100",label:t,disabled:r}};let ut=(()=>{const r=class{constructor(i,o){this.cs=i,this.formService=o,this.contentType="",this.post=null,this.headerType="",this.bodyText="",this.footerText="",this.confirmed=new e.vpe,this.canceled=new e.vpe,this.labels=p.wS}ngOnInit(){this.fields=B()({sections:[{title:"",fields:[{type:L.sf.TEXT_AREA,label:"",name:"reason",class:"col-12",placeholder:"Include any notes to be included in the introduction.",validation:{required:{message:"Notes are required"}}}]}],buttons:[]}),this.form=this.formService.toFormGroup(this.fields)}openModal(){this.serviceProviderModal?.openModal()}closeModal(){this.serviceProviderModal?.closeModal()}handleCancel(){this.canceled.emit(),this.closeModal(),this.form.reset()}handleConfirm(){this.confirmed.emit()}};let t=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(v.v),e.Y36(H.D))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-provider-modal"]],viewQuery:function(o,n){if(1&o&&e.Gf(ct,5),2&o){let a;e.iGM(a=e.CRH())&&(n.serviceProviderModal=a.first)}},inputs:{contentType:"contentType",modalHeader:"modalHeader",post:"post",headerType:"headerType",bodyText:"bodyText",footerText:"footerText"},outputs:{confirmed:"confirmed",canceled:"canceled"},decls:20,vars:22,consts:[[3,"headerLabel","dynamicClass","showConfirmationBtn","modalOptions","confirmed","canceled"],["serviceProviderModal",""],[1,"d-flex","flex-column","c-gap-30","text-left","resource-modal-wrapper"],[1,"modal-header-title"],[1,"modal-title","resouces-details-wrapper","get-introduced-header","d-flex","align-items-center","gap-4"],[1,"admin-userprofile",3,"ngClass"],["appMobileOptimization","","alt","Logo","loading","lazy","decoding","async",3,"originalUrl","src","format"],[1,"resouces-title"],[1,"resource-modal-body"],[1,"resource-modal-main-body"],[3,"form","fields"],[1,"d-flex","justify-content-end","gap-2","mt-3","align-items-center"],[3,"btnField","handleButtonClick"],[1,"resource-modal-footer"]],template:function(o,n){1&o&&(e.TgZ(0,"app-alert-modal",0,1),e.NdJ("confirmed",function(){return n.handleConfirm()})("canceled",function(){return n.handleCancel()}),e.TgZ(2,"div",2)(3,"div",3)(4,"h4",4)(5,"div",5),e._UZ(6,"img",6),e.qZA(),e.TgZ(7,"p",7),e._uU(8),e.qZA()()(),e.TgZ(9,"div",8)(10,"p"),e._uU(11),e.qZA()(),e.TgZ(12,"div",9),e._UZ(13,"app-dynamic-form-builder",10),e.TgZ(14,"div",11)(15,"app-button",12),e.NdJ("handleButtonClick",function(){return n.handleCancel()}),e.qZA(),e.TgZ(16,"app-button",12),e.NdJ("handleButtonClick",function(){return n.handleConfirm()}),e.qZA()()(),e.TgZ(17,"div",13)(18,"p"),e._uU(19),e.qZA()()()()),2&o&&(e.Q6J("headerLabel","")("dynamicClass","service-provider-modal")("showConfirmationBtn",!1)("modalOptions","modal-xl"),e.xp6(5),e.Q6J("ngClass",e.VKq(15,lt,!(null==n.post||!n.post.logo))),e.xp6(1),e.Q6J("originalUrl",null==n.post?null:n.post.logo)("src",null==n.post?null:n.post.logo,e.LSH)("format","webp"),e.xp6(2),e.hij(" ",n.modalHeader," "),e.xp6(3),e.hij(" ",n.bodyText," "),e.xp6(2),e.Q6J("form",n.form)("fields",n.fields),e.xp6(2),e.Q6J("btnField",e.VKq(17,pt,n.labels.CANCEL)),e.xp6(1),e.Q6J("btnField",e.WLB(19,dt,n.labels.GET_INTRODUCED,n.form.invali
1d)),e.xp6(3),e.hij(" ",n.footerText," "))},dependencies:[d.mk,K.U,A.r,at.F,R.J],styles:[".service-provider-modal{min-width:550px!important}  .service-provider-modal .modal-body{padding:36px 30px!important}  .service-provider-modal .resource-modal-wrapper{display:inline;flex-direction:column;gap:14px}  .service-provider-modal .resource-modal-wrapper .resouces-title{text-align:left;font-family:Roboto;font-weight:700;font-size:24px!important;line-height:100%!important;letter-spacing:0px!important}  .service-provider-modal .resource-modal-wrapper .resource-modal-body p{font-family:Roboto;text-align:left;font-weight:400;font-size:18px!important;letter-spacing:0px!important;opacity:.7}@media screen and (max-width: 992px){  .service-provider-modal .resource-modal-wrapper .resource-modal-body p{font-size:16px!important}}  .service-provider-modal .resource-modal-wrapper .resource-modal-footer p{font-family:Roboto;font-weight:400;text-align:left;font-size:14px!important;line-height:170%!important;letter-spacing:0px;opacity:.7}  .service-provider-modal .resource-modal-wrapper .admin-userprofile{border-radius:100%;position:relative;width:58px;height:58px;min-width:58px;min-height:58px;z-index:1}  .service-provider-modal .resource-modal-wrapper .admin-userprofile img{width:100%;height:100%;object-fit:cover;border-radius:100%}@media screen and (max-width: 992px){  .service-provider-modal .resource-modal-wrapper .admin-userprofile{width:58px;height:58px}}  .service-provider-modal .resource-modal-main-body{margin-top:-20px}  .service-provider-modal .resource-modal-main-body app-dynamic-form-builder .fb-monetize-card{padding:0!important;text-align:left!important}@media screen and (max-width: 992px){  .service-provider-modal{min-width:auto!important}}"]}),t})();const mt=["overlay"],gt=["serviceProviderModal"];function ht(t,r){1&t&&e._UZ(0,"app-service-provider-details-skeleton")}function _t(t,r){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const s=e.oxw(2);e.xp6(1),e.Oqu(s.resourceName)}}const ft=function(t){return{type:"button",class:"btn btn-success",label:t}};function vt(t,r){if(1&t&&e._UZ(0,"app-button",25),2&t){const s=e.oxw(3);e.Q6J("btnField",e.VKq(1,ft,s.labels.ALREADY_LEAD_GENERATED))}}const xt=function(t){return{type:"button",class:"btn btn-primary",label:t}};function Ct(t,r){if(1&t){const s=e.EpF();e.TgZ(0,"app-button",26),e.NdJ("handleButtonClick",function(){e.CHM(s);const o=e.oxw(3);return e.KtG(o.openServiceProviderModal())}),e.qZA()}if(2&t){const s=e.oxw(3);e.Q6J("btnField",e.VKq(1,xt,s.labels.GET_INTRODUCED))}}function Tt(t,r){if(1&t){const s=e.EpF();e.TgZ(0,"div",29)(1,"img",30),e.NdJ("click",function(){const n=e.CHM(s).index,a=e.oxw(4);return e.KtG(a.showLightbox(n))}),e.qZA()()}if(2&t){const s=r.$implicit;e.xp6(1),e.Q6J("originalUrl",s)("src",s,e.LSH)("format","webp")}}function yt(t,r){if(1&t&&(e.TgZ(0,"div",27),e.YNc(1,Tt,2,3,"div",28),e.qZA()),2&t){const s=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",null==s.resource?null:s.resource.media_urls)}}const bt=function(t){return{"has-image":t}};function Ot(t,r){if(1&t&&(e.TgZ(0,"div",11)(1,"div",12)(2,"div",13)(3,"div",14)(4,"div",15),e._UZ(5,"img",16),e.qZA(),e.TgZ(6,"div",17)(7,"div",18),e._uU(8),e.qZA(),e.TgZ(9,"div",19),e._uU(10),e.qZA()()(),e.TgZ(11,"div"),e.YNc(12,vt,1,3,"app-button",20),e.YNc(13,Ct,1,3,"app-button",21),e.qZA()(),e.TgZ(14,"div",22),e._uU(15),e.qZA(),e.TgZ(16,"div",23),e._uU(17),e.qZA(),e.TgZ(18,"div",22),e._uU(19),e.qZA(),e.YNc(20,yt,2,1,"div",24),e.qZA()()),2&t){const s=e.oxw(2);e.xp6(4),e.Q6J("ngClass",e.VKq(12,bt,!(null==s.resource||!s.resource.logo))),e.xp6(1),e.Q6J("originalUrl",null==s.resource?null:s.resource.logo)("src",null==s.resource?null:s.resource.logo,e.LSH)("format","webp"),e.xp6(3),e.hij(" ",null==s.resource?null:s.resource.name," "),e.xp6(2),e.hij(" ",null==s.resource||null==s.resource.provider_type?null:s.resource.provider_type.title," "),e.xp6(2),e.Q6J("ngIf",null==s.resource?null:s.resource.is_already_lead_generated),e.xp6(1),e.Q6J("ngIf",!(null!=s.resource&&s.resource.is_already_lead_generated)),e.xp6(2),e.hij(" ",s.messages.ABOUT," "),e.xp6(2),e.hij(" ",null==s.resource?null:s.resource.description," "),e.xp6(2),e.hij(" ",s.messages.PORTFOLIO," "),e.xp6(1),e.Q6J("ngIf",(null==s.resource||null==s.resource.media_urls?null:s.resource.media_urls.length)>0)}}function Pt(t,r){if(1&t){const s=e.EpF();e.TgZ(0,"div",6)(1,"div",7)(2,"a",8),e.NdJ("click",function(){e.CHM(s);const o=e.oxw();return e.KtG(o.goToBack())}),e._UZ(3,"em",9),e.qZA(),e.YNc(4,_t,2,1,"span",0),e.qZA(),e.YNc(5,Ot,21,14,"div",10),e.qZA()}if(2&t){const s=e.oxw();e.xp6(4),e.Q6J("ngIf",s.resourceName),e.xp6(1),e.Q6J("ngIf",s.resource)}}function wt(t,r){if(1&t&&(e.TgZ(0,"div")(1,"p"),e._uU(2),e.qZA()()),2&t){const s=e.oxw();e.xp6(2),e.Oqu(s.messages.NO_RESOURCES_FOUND)}}let Mt=(()=>{const r=class{constructor(i,o,n,a,l,u,f){this.route=i,this.router=o,this.apiCallService=n,this.cs=a,this.authService=l,this.location=u,this.resourcesService=f,this.isLoading=!0,this.resourceName=null,this.messages=p.Vm,this.labels=p.wS,this.bodyText="",this.footerText="",this.providerId="",this.destroy$=new T.x,this.previewImages=[],this.selectedImageIndex=-1}
1ngOnInit(){const i=this.route.snapshot.paramMap.get("type");this.providerId=this.route.snapshot.paramMap.get("id");const o=this.route.snapshot.paramMap.get("id");if(i&&o){const n=encodeURIComponent(o);this.fetchResourceByTypeAndId(i,n),this.extractResourceNameFromRoute()}}goToBack(){this.authService.getHistory()?this.router.navigate([`${this.authService.getHistory()}`]):this.location.back(),this.authService.setLocationHistory("")}extractResourceNameFromRoute(){const i=this.router.url;this.resourceName=null;for(const o in p.wu)if(i.includes(o)){this.resourceName=p.wu[o];break}}fetchResourceByTypeAndId(i,o){this.isLoading=!0;const n=p.eZ[i];if(!n)return this.cs.showErrorMessage(p.Vm.INVALID_URL),void(this.isLoading=!1);this.apiCallService.get(`${n}/${o}`,!0).pipe((0,g.R)(this.destroy$)).subscribe(l=>{l.status&&l.data?(Object.keys(l.data)?.length||this.router.navigate(["/not-found"]),this.resource={...l.data},this.resourcesService.fetchResourcesCount()):(this.cs.showErrorMessage(l.message||p.Vm.FAILED_TO_LOAD_RESOURCES),this.router.navigate([C.dp.NOT_FOUND])),this.isLoading=!1},l=>{this.cs.showErrorMessage(l.message||p.Vm.SOMETHING_WENT_WRONG),this.router.navigate([C.dp.NOT_FOUND]),this.isLoading=!1})}handleConfirm(){this.apiCallService.post(m.Y9.serviceProvidersGetIntroduced,{service_provider_id:this.providerId,content:this.serviceProviderModal?.form?.value?.reason},!0).pipe((0,g.R)(this.destroy$)).subscribe(o=>{o.status&&(this.resource.is_already_lead_generated=!0,this.cs.showSuccessMessage(o.message),this.serviceProviderModal?.closeModal())},o=>{this.cs.showErrorMessage(o.message||p.Vm.SOMETHING_WENT_WRONG)})}openServiceProviderModal(){this.footerText=this.messages.GET_INTRODUCED_TO_SERVICE_PROVIDER_FOOTER.replace(/<name>/g,this.resource?.name),this.bodyText=this.messages.GET_INTRODUCED_TO_SERVICE_PROVIDER.replace(/<name>/g,this.resource?.name),this.serviceProviderModal?.openModal()}showLightbox(i){this.previewImages=this.resource?.media_urls.map(o=>({url:o,id:o+i,index:i})),this.selectedImageIndex=i,this.overlay&&this.overlay.openModal()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let t=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(h.gz),e.Y36(h.F0),e.Y36(N.F),e.Y36(v.v),e.Y36(J.AuthService),e.Y36(d.Ye),e.Y36(y.z))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-provider-details"]],viewQuery:function(o,n){if(1&o&&(e.Gf(mt,5),e.Gf(gt,5)),2&o){let a;e.iGM(a=e.CRH())&&(n.overlay=a.first),e.iGM(a=e.CRH())&&(n.serviceProviderModal=a.first)}},decls:7,vars:11,consts:[[4,"ngIf"],["class","resource",4,"ngIf"],[3,"images","page","showNavigators","modalHeader"],["overlay",""],[3,"modalHeader","post","bodyText","footerText","confirmed"],["serviceProviderModal",""],[1,"resource"],[1,"back-button-container","d-flex","gap-4"],[3,"click"],[1,"icon-arrow-back"],["class","resouces-details-wrapper",4,"ngIf"],[1,"resouces-details-wrapper"],[1,"text-left","reason-modal-body","mb-10","d-flex","flex-column"],[1,"d-flex","justify-content-between","flex-wrap","gap-4"],[1,"d-flex","gap-4","align-items-center"],[1,"admin-userprofile",3,"ngClass"],["appDisableRightClick","","appMobileOptimization","","alt","Provider Logo","loading","lazy","decoding","async",3,"originalUrl","src","format"],[1,"d-flex","flex-column"],[1,"mt-20","mb-10","resouces-title"],[1,"resource-service-desc","resource-type"],[3,"btnField",4,"ngIf"],[3,"btnField","handleButtonClick",4,"ngIf"],[1,"resouces-title","mt-30","mb-10"],[1,"service-description","service-desc"],["class","d-flex service-images",4,"ngIf"],[3,"btnField"],[3,"btnField","handleButtonClick"],[1,"d-flex","service-images"],["class","creator-resource-image",4,"ngFor","ngForOf"],[1,"creator-resource-image"],["appDisableRightClick","","appMobileOptimization","","alt","Portfolio Image","loading","lazy","decoding","async",1,"uploaded-image",3,"originalUrl","src","format","click"]],template:function(o,n){1&o&&(e.YNc(0,ht,1,0,"app-service-provider-details-skeleton",0),e.YNc(1,Pt,6,2,"div",1),e._UZ(2,"app-image-overlay-v2",2,3),e.TgZ(4,"app-service-provider-modal",4,5),e.NdJ("confirmed",function(){return n.handleConfirm()}),e.qZA(),e.YNc(6,wt,3,1,"div",0)),2&o&&(e.Q6J("ngIf",!n.cs.isBrowser||n.isLoading),e.xp6(1),e.Q6J("ngIf",!n.isLoading&&n.resource),e.xp6(1),e.Q6J("images",n.previewImages)("page",n.selectedImageIndex)("showNavigators",!0)("modalHeader",n.labels.PORTFOLIO_PREVIEW),e.xp6(2),e.Q6J("modalHeader",n.messages.GET_INTRODUCED_TO+" "+(null==n.resource?null:n.resource.name))("post",n.resource)("bodyText",n.bodyText)("footerText",n.footerText),e.xp6(2),e.Q6J("ngIf",!n.isLoading&&!n.resource))},dependencies:[d.mk,d.sg,d.O5,A.r,E.m,R.J,V.U,j,ut],styles:[".resouces-details-wrapper[_ngcontent-%COMP%]{border-radius:20px;padding:24px;position:relative;margin-top:25px}
1.resouces-details-wrapper[_ngcontent-%COMP%]   .ql-editor[_ngcontent-%COMP%]{font-size:16px}.resouces-details-wrapper[_ngcontent-%COMP%]   .resouces-title[_ngcontent-%COMP%]{font-family:Roboto;font-weight:700;font-size:24px;line-height:24px;letter-spacing:0px}@media screen and (max-width: 992px){.resouces-details-wrapper[_ngcontent-%COMP%]   .resouces-title[_ngcontent-%COMP%]{font-size:20px}}.resouces-details-wrapper[_ngcontent-%COMP%]   .service-images[_ngcontent-%COMP%]{gap:8px;flex-wrap:wrap}@media screen and (max-width: 428px){.resouces-details-wrapper[_ngcontent-%COMP%]   .service-images[_ngcontent-%COMP%]{justify-content:space-around}}.resouces-details-wrapper[_ngcontent-%COMP%]   .resource-service-desc[_ngcontent-%COMP%]{text-align:center;border-radius:200px}.resouces-details-wrapper[_ngcontent-%COMP%]   .service-description[_ngcontent-%COMP%]{font-size:18px!important}@media screen and (max-width: 992px){.resouces-details-wrapper[_ngcontent-%COMP%]   .service-description[_ngcontent-%COMP%]{font-size:16px!important}}.resouces-details-wrapper[_ngcontent-%COMP%]   .service-desc[_ngcontent-%COMP%], .resouces-details-wrapper[_ngcontent-%COMP%]   .resource-service-desc[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;font-size:16px;line-height:170%;letter-spacing:0px;opacity:.7}.resouces-details-wrapper[_ngcontent-%COMP%]   .resource-service-desc[_ngcontent-%COMP%]{padding:4px 12px;font-size:13px!important}.resouces-details-wrapper[_ngcontent-%COMP%]   .resource-type[_ngcontent-%COMP%]{opacity:1!important;width:-moz-fit-content;width:fit-content}.resouces-details-wrapper[_ngcontent-%COMP%]   .admin-userprofile[_ngcontent-%COMP%]{border-radius:100%;position:relative;width:100px;height:100px;min-width:100px;z-index:1}.resouces-details-wrapper[_ngcontent-%COMP%]   .admin-userprofile[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:100%}@media screen and (max-width: 992px){.resouces-details-wrapper[_ngcontent-%COMP%]   .admin-userprofile[_ngcontent-%COMP%]{width:80px;height:80px;min-width:80px}}.resouces-details-wrapper[_ngcontent-%COMP%]   .creator-resource-image[_ngcontent-%COMP%]{position:relative;width:113px;height:114px;max-height:150px;min-height:93px;cursor:pointer}.resouces-details-wrapper[_ngcontent-%COMP%]   .creator-resource-image[_ngcontent-%COMP%]   .uploaded-image[_ngcontent-%COMP%]{width:100%;border-radius:15px;height:100%;object-fit:cover}.resouces-details-wrapper[_ngcontent-%COMP%]   .mt-30[_ngcontent-%COMP%]{margin-top:30px}.resouces-details-wrapper[_ngcontent-%COMP%]   .mb-10[_ngcontent-%COMP%]{margin-bottom:10px}.resource[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]{padding:4px}.resource[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer}.resource[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .resource[_ngcontent-%COMP%]   .back-button-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:Roboto;font-weight:700;font-size:24px;line-height:100%}"]}),t})();var W=c(65571),G=c(773);function St(t,r){1&t&&e._UZ(0,"app-creator-support-skeleton",2),2&t&&e.Q6J("showSupportForm",!0)}const It=function(t,r,s){return{type:"button",class:"btn btn-primary mt-20",label:t,disabled:r,loading:s}};function kt(t,r){if(1&t){const s=e.EpF();e.TgZ(0,"div",10)(1,"div",11),e._UZ(2,"em",12),e.TgZ(3,"span",13),e._uU(4),e.qZA(),e.TgZ(5,"span",14),e._uU(6),e.qZA()(),e._UZ(7,"app-dynamic-form-builder",15),e.TgZ(8,"div",16)(9,"app-button",17),e.NdJ("handleButtonClick",function(){e.CHM(s);const o=e.oxw(2);return e.KtG(o.submitRequest())}),e.qZA()()()}if(2&t){const s=e.oxw(2);e.xp6(4),e.hij(" ",s.messages.HAVE_QUESTION," "),e.xp6(2),e.hij(" ",s.messages.HAVE_QUESTION_SUB," "),e.xp6(1),e.Q6J("form",s.form)("fields",s.formFields),e.xp6(2),e.Q6J("btnField",e.kEZ(5,It,s.LABELS.SUBMIT,s.form.invalid||s.isLoading,s.isLoading))}}function Et(t,r){if(1&t&&(e.TgZ(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),e._UZ(5,"app-faq",8),e.qZA()()()(),e.YNc(6,kt,10,9,"div",9),e.qZA()),2&t){const s=e.oxw();e.xp6(5),e.Q6J("module",s.LABELS.CREATOR)("heading",s.LABELS.FAQS),e.xp6(1),e.Q6J("ngIf",s.form)}}const Rt=[{path:"",component:le,children:[{path:"",redirectTo:"announcements",pathMatch:"full"},{path:"announcements",component:Ie},{path:"resource-details/:type/:id",component:$e},{path:"tips-tutorials",component:Ke},{path:"service-providers",component:nt},{path:"service-provider-details/:type/:id",component:Mt},{path:"creator-support",component:(()=>{const r=class{constructor(i,o,n,a,l,u){this.cs=i,this.apiCallService=o,this.formService=n,this.store=a,this.apiCacheService=l,this.destroy$=new T.x,this.LABELS=p.wS,this.messages=p.Vm,this.oneAtATime=!0,this.isLoading=!1,this.form=null,this.isBrowser=(0,d.NF)(u)}ngOnInit(){this.isBrowser?this.userProfileSubscription():this.isLoading=!0}submitRequest(){const i=this.form.getRawValue(),o=Object.assign({name:this.userProfile?.legal_fname?this.userProfile?.legal_fname+" "+this.userProfile?.legal_lname||"":this.userProfile?.first_name+" "+this.userProfile?.last_name||"",phone:i.phone_number||this.userProfile?.phone_number,email:this.userProfile?.email,inquiry_type:i.inquiry_type,comment:i.help_query,is_logged_in:!0});this.isLoading=!0,this.apiCallService.post(m.Y9.customerSupport,o,!0).subscribe({next:n=>{this.isLoading=!1,n.status?(this.form.reset(),this.cs.showSuccessMessage(n.data)):this.cs.showErrorMessage(n.message)},error:n=>{this.isLoading=!1,this.cs.showErrorMessage(n.message)}})}userProfileSubscription(){this.store.select(Q.SJ).pipe((0,g.R)(this.destroy$)).subscribe(i=>{if(i.sk){this.userProfile=i;let o=B()(p.Lg);if(this.userProfile?.phone_number&&Object.keys(this.userProfile?.phone_number)?.length){const n=o.sections[0].fields.findIndex(a=>"phone_number"===a.name);n>-1&&o.sections[0].fields.splice(n,1)}this.formFields=o,this.form=this.formService.toFormGroup(this.formFields),this.getEnquiryTypes()}})}getEnquiryTypes(){this.apiCacheService.get(m.Y9.enquiryType,_.Y.PRERENDERED).pipe((0,g.R)(this.destroy$)).subscribe({next:i=>{i.data&&this.formFields?.sections?.[0]?.fields?.[0]&&(this.formFields.sections[0].fields[0].options=i.data.map(o=>({name:o.title,title:o.sk})))}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let t=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(v.v),e.Y36(N.F),e.Y36(H.D),e.Y36(q.yh),e.Y36(_.G),e.Y36(e.Lbi))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-creator-support"]],decls:2,vars:2,consts:[[3,"showSupportForm",4,"ngIf"],["class","creator-support-wrapper",4,"ngIf"],[3,"showSupportForm"],[1,"creator-support-wrapper"],[1,"promotional","promotional-detail"],[1,"promotional-content"],[1,"container"],[1,"promotionalList"],[3,"module","heading"],["class","support-card pad-0",4,"ngIf"],[1,"support-card","pad-0"],[1,"support-header","d-flex","flex-column"],[1,"icon-litecustomer-support"],[1,"question-header"],[1,"question-sub-header"],[3,"form","fields"],[1,"submit-support-btn"],[3,"btnField","handleButtonClick"]],template:function(o,n){1&o&&(e.YNc(0,St,1,1,"app-creator-support-skeleton",0),e.YNc(1,Et,7,3,"div",1)),2&o&&(e.Q6J("ngIf",!n.cs.isBrowser||!n.form),e.xp6(1),e.Q6J("ngIf",n.cs.isBrowser&&n.form))},dependencies:[d.O5,K.U,A.r,W.v,G.$],styles:[".creator-support-wrapper{min-width:345px}  .creator-support-wrapper .promotional-content .container{padding:0;margin:0}  .creator-support-wrapper .creator-support-faq{font-family:Roboto;font-weight:700;font-size:24px;line-height:100%;letter-spacing:0px}@media screen and (max-width: 992px){  .creator-support-wrapper{margin-top:-30px}}
1  .creator-support-wrapper .support-card{background:var(--configSecondaryBgColor);border-radius:30px}@media screen and (max-width: 992px){  .creator-support-wrapper .support-card{border-radius:16px}}  .creator-support-wrapper .promotionalList{padding:0!important}  .creator-support-wrapper .question-header{font-weight:700;font-size:20px;line-height:160%;letter-spacing:0px}  .creator-support-wrapper .question-sub-header{font-weight:400;font-size:14px;line-height:160%;letter-spacing:0px;opacity:.5}  .creator-support-wrapper .support-header{padding:25px 30px 0}  .creator-support-wrapper .support-header em{font-size:48px;margin-bottom:10px}  .creator-support-wrapper .fb-monetize-card{box-shadow:none!important}  .creator-support-wrapper .pad-0{padding:0!important}  .creator-support-wrapper .submit-support-btn{padding:0 30px 25px;margin-top:-40px}"]}),t})()}]}];let Zt=(()=>{const r=class{};let t=r;return r.\u0275fac=function(o){return new(o||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[h.Bz.forChild(Rt),h.Bz]}),t})();var Nt=c(30404),At=c(98835),Ut=c(95709),Lt=c(80164);let Dt=(()=>{const r=class{};let t=r;return r.\u0275fac=function(o){return new(o||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[y.z],imports:[d.ez,Zt,Nt.m,At.WalletModule,Ut.DashboardModule,z.o,Lt.d,X.fx.forRoot(),W.v,V.U,w.V,G.$,$,j,M]}),t})()}}]);

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