1import{a as at,b as st}from"./chunk-B6LBQPGY.js";import{a as L}from"./chunk-RPZFT2WK.js";import{Aa as We,Ba as Ke,Ja as qe,Ma as Je,Sa as tt,Va as nt,Xa as ot,ha as He,qa as je,ra as q,sa as ze,tb as rt,ya as Ge,za as Qe}from"./chunk-FUZW3YJX.js";import"./chunk-UH4LHX7G.js";import{L as Ue,V as Ye,W as $e,aa as J,p as Ne,t as Re,x as De}from"./chunk-7OUTJCIL.js";import{$b as le,Ab as ue,Ah as Ze,Bh as et,Cc as Se,Cd as we,Ch as it,Dc as $,Ec as H,Ed as ke,Fb as oe,Gb as re,Gd as de,Hb as ae,Hc as ve,Ia as ge,Ic as xe,Id as z,If as K,Jf as Le,Kb as O,Kc as Ce,Kd as G,Kf as Ve,Lb as d,Lc as ye,Lf as Ae,Ma as r,Mb as se,Mc as j,Mf as Fe,Nb as h,Nf as Be,Ob as F,Of as X,Rb as he,Sb as be,Sc as Pe,Sd as Q,Tb as fe,Td as Me,Wd as W,X as y,Xc as Oe,Xd as Ie,Ya as S,Yd as Te,_b as ce,aa as _e,ab as w,ag as Xe,ba as R,bb as m,fa as C,fc as u,g as p,gc as f,hc as B,ia as D,ic as pe,ja as U,k as N,lc as me,mb as s,me as Ee,nb as c,ob as P,pb as T,qb as E,ra as _,sa as g,sb as x,vb as b,xb as l,za as Y}from"./chunk-C4AW5XO7.js";var k=class k{constructor(){p(this,"apiService",C(Ie))}getPolicySubmissionParams(i,e,t,n){let a=new Oe;return i&&i.length>0&&(a=a.append("years",JSON.stringify(i))),e&&e.length>0&&(a=a.append("categories",JSON.stringify(e))),t&&t.length>0&&(a=a.append("tags",JSON.stringify(t))),n&&n.trim().length>0&&(a=a.append("title",n.trim())),a}getFiltersData(){return this.apiService.get(Q.policySubmissionFilters)}getPolicySubmissions(i){return this.apiService.get(Q.policySubmissions,i)}getPolicySubmissionPageBannerImage(){return this.apiService.get(Q.policySubmissionPageBanner)}};p(k,"\u0275fac",function(e){return new(e||k)}),p(k,"\u0275prov",_e({token:k,factory:k.\u0275fac,providedIn:"root"}));var Z=k;function ut(o,i){o&1&&(s(0,"p",4),d(1),u(2,"translate"),u(3,"translate"),c()),o&2&&(r(),F(" ",f(2,2,"SAVE_SEARCHES.NOTE")," ",f(3,4,"SAVE_SEARCHES.MAXIMUM_SAVE")," "))}function ht(o,i){if(o&1){let e=x();s(0,"div",5)(1,"div",6),b("click",function(){let n=_(e).$implicit,a=l();return g(a.applyFilter(n))}),s(2,"p",7),d(3),c(),s(4,"p",8),d(5),u(6,"translate"),u(7,"date"),c()(),s(8,"div",9)(9,"button",10),u(10,"translate"),b("click",function(){_(e);let n=l();return g(n.copyUrl())}),s(11,"mat-icon",11),d(12,"content_copy"),c()(),s(13,"button",12),u(14,"translate"),b("click",function(){let n=_(e).$implicit,a=l();return g(a.deleteSavedSearch(n))}),s(15,"mat-icon",13),d(16,"delete_outline"),c()()()()}if(o&2){let e=i.$implicit;r(3),h(" ",e.title," "),r(2),F(" ",f(6,6,"SAVE_SEARCHES.DATE_SAVED")," ",B(7,8,e.createdAt,"dd/MM/YYYY")," "),r(4),m("cdkCopyToClipboard",e.url),w("aria-label",f(10,11,"ARIA_LABELS.COPY_SAVED_SEARCH")),r(4),w("aria-label",f(14,13,"ARIA_LABELS.REMOVE_SAVED_SEARCH"))}}function bt(o,i){if(o&1){let e=x();s(0,"div",14)(1,"button",15),b("click",function(){_(e);let n=l();return g(n.loadMoreResults())}),d(2),u(3,"translate"),c()()}o&2&&(r(2),h(" ",f(3,1,"SAVE_SEARCHES.LOAD_MORE")," "))}var V=class V{constructor(){p(this,"savedSearches");p(this,"patchFilter",new Y);p(this,"loadSearches",new Y);p(this,"deleteSearch",new Y);p(this,"isMember");p(this,"currentUser");p(this,"destroy$",new N);p(this,"storageService",C(W));p(this,"toasterService",C(J));p(this,"translateService",C(z));p(this,"memberService",C(tt));p(this,"dialog",C(K))}ngOnInit(){this.currentUser=this.storageService.getItem("userDetails"),this.getUserAccessLevel()}getUserAccessLevel(){this.memberService.getUserAccessLevel().pipe(y(this.destroy$)).subscribe({next:i=>{this.isMember=i!==null&&i<Xe}})}applyFilter(i){this.patchFilter.emit({item:i,fetch:!0}),this.dialog.closeAll()}loadMoreResults(){this.loadSearches.emit(!0)}copyUrl(){this.toasterService.success(this.translateService.instant("SAVE_SEARCHES.URL_COPIED"))}deleteSavedSearch(i){this.dialog.open(Ze,{autoFocus:!1,disableClose:!0,panelClass:"alert-modal",data:{alertType:"deleteSaveSearch"}}).afterClosed().pipe(y(this.destroy$)).subscribe({next:e=>{e!=null&&e.action&&this.deleteSearch.next(i)}})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};p(V,"\u0275fac",function(e){return new(e||V)}),p(V,"\u0275cmp",D({type:V,selectors:[["app-saved-search-list"]],inputs:{savedSearches:"savedSearches"},outputs:{patchFilter:"patchFilter",loadSearches:"loadSearches",deleteSearch:"deleteSearch"},decls:4,vars:3,consts:[["role","menu",3,"click"],["class","font-14 light-text my-1",4,"ngIf"],["class","d-flex list my-2 pb-2","role","menuitem",4,"ngFor","ngForOf"],["class","load-more text-center mb-2","role","menuitem",4,"ngIf"],[1,"font-14","light-text","my-1"],["role","menuitem",1,"d-flex","list","my-2","pb-2"],[1,"col-9","title","pointer",3,"click"],[1,"font-style","font-16","m-0","fw-
1500","text-break"],[1,"font-14","light-text","m-0"],[1,"col-3","d-flex","butttons","justify-content-end"],[1,"btn","border-0",3,"click","cdkCopyToClipboard"],[1,"tertiary-color"],[1,"btn","border-0",3,"click"],[1,"warn-color"],["role","menuitem",1,"load-more","text-center","mb-2"],[1,"btn","load-more","text-uppercase",3,"click"]],template:function(e,t){e&1&&(s(0,"div",0),b("click",function(a){return a.stopPropagation()}),S(1,ut,4,6,"p",1)(2,ht,17,15,"div",2)(3,bt,4,3,"div",3),c()),e&2&&(r(),m("ngIf",t.isMember),r(),m("ngForOf",t.savedSearches.items),r(),m("ngIf",!t.isMember&&t.savedSearches.items.length!==t.savedSearches.totalItems))},dependencies:[$,H,X,Je,j,G],styles:[".save-search-list{min-width:420px;max-width:420px;height:380px}@media (max-width: 992px){ .save-search-list{min-width:unset;max-width:unset;height:unset}} .save-search-list .list:not(:last-child){border-bottom:1px solid var(--border-color)} .save-search-list button.load-more{color:var(--tertiary-color);border:1px solid var(--tertiary-color)}"]}));var te=V;var St=["matDrawer"],ct=(o,i)=>({items:o,totalItems:i}),vt=o=>({"min-height":o}),xt=o=>({collapse:o});function Ct(o,i){}function yt(o,i){if(o&1&&P(0,"img",49),o&2){let e=l(2);m("src",e.policyPageSettings.banner_image,ge)}}function Pt(o,i){if(o&1){let e=x();s(0,"mat-icon",50),b("click",function(){_(e);let n=l(2);return g(n.clearInput())}),c()}}function Ot(o,i){if(o&1){let e=x();s(0,"button",51),u(1,"translate"),b("click",function(){_(e);let n=l(2);return g(n.onSaveSearch())}),s(2,"mat-icon",52),d(3),c()()}if(o&2){let e=l(2);w("aria-label",f(1,2,"ARIA_LABELS.SAVE_SEARCH_BUTTON")),r(3),h(" ",e.hovering?"bookmark":"bookmark_border"," ")}}function wt(o,i){if(o&1){let e=x();s(0,"button",53),b("click",function(){_(e);let n=l(2),a=O(21);return g(n.openMobileFilters(a,!0))}),d(1),u(2,"translate"),u(3,"translate"),s(4,"mat-icon"),d(5,"chevron_right"),c()()}o&2&&(r(),F(" ",f(2,2,"SAVE_SEARCHES.VIEW")," ",f(3,4,"SAVE_SEARCHES.SAVED")," "))}function kt(o,i){if(o&1&&(s(0,"button",54),d(1),u(2,"translate"),P(3,"mat-icon",34),c()),o&2){l(2);let e=O(23);m("matMenuTriggerFor",e),r(),h(" ",f(2,2,"SAVE_SEARCHES.SAVED")," ")}}function Mt(o,i){if(o&1){let e=x();s(0,"div",58),b("click",function(){_(e);let n=l(3);return g(n.onSaveSearch())}),s(1,"button",59),b("mouseenter",function(){_(e);let n=l(3);return g(n.hovering=!0)})("mouseleave",function(){_(e);let n=l(3);return g(n.hovering=!1)}),s(2,"mat-icon",60),d(3),c(),s(4,"span",61),d(5),u(6,"translate"),c()()()}if(o&2){let e=l(3);r(3),h(" ",e.hovering?"bookmark":"bookmark_border",""),r(2),h(" ",f(6,2,"SAVE_SEARCHES.SAVE")," ")}}function It(o,i){if(o&1&&(s(0,"div",62)(1,"p",63),d(2),u(3,"translate"),s(4,"span",64),d(5),c()()()),o&2){let e=l(3);r(2),h(" ",f(3,2,"SAVE_SEARCHES.SEARCH")," "),r(3),h(" ",e.selectedSearch==null?null:e.selectedSearch.title," ")}}function Tt(o,i){if(o&1&&(s(0,"div",55),S(1,Mt,7,4,"div",56)(2,It,6,4,"div",57),c()),o&2){let e=l(2);r(),m("ngIf",!(e.selectedSearch!=null&&e.selectedSearch.id)),r(),m("ngIf",e.selectedSearch==null?null:e.selectedSearch.id)}}function Et(o,i){if(o&1){let e=x();s(0,"p",84),b("click",function(){_(e);let n=l().$implicit,a=l(7);return g(a.filterOnTagClick(n))}),d(1),c()}if(o&2){let e=l().$implicit;r(),h(" ",e," ")}}function Lt(o,i){if(o&1&&(T(0),S(1,Et,2,1,"p",83),E()),o&2){let e=i.$implicit,t=l(7);r(),m("ngIf",!t.selectedTag||t.selectedTag===e)}}function Vt(o,i){if(o&1&&(s(0,"div",81),P(1,"img",82),S(2,Lt,2,1,"ng-container",67),c()),o&2){let e=l(2).$implicit;r(2),m("ngForOf",e.tags)}}function At(o,i){if(o&1){let e=x();s(0,"label",88),b("click",function(){_(e);let n=l(3).$implicit,a=l(4);return g(a.hasSubmissionTypeUrl(n)&&a.openSubmissionTypeUrl(n))}),d(1),c()}if(o&2){let e=l(3).$implicit,t=l(4);m("ngClass",t.hasSubmissionTypeUrl(e)?"pointer":""),r(),h(" ",t.selectedLanguage==="en"?e==null?null:e.submission_category_en:e==null?null:e.submission_category_fr," ")}}function Ft(o,i){if(o&1&&(s(0,"div",85)(1,"div",86),S(2,At,2,2,"label",87),c()()),o&2){let e=l(2).$implicit,t=l(4);r(2),m("ngIf",t.selectedLanguage==="en"?e==null?null:e.submission_category_en:e==null?null:e.submission_category_fr)}}function Bt(o,i){if(o&1){let e=x();s(0,"div",70)(1,"div",71)(2,"div",72)(3,"p",73),d(4),u(5,"translateDate"),c(),s(6,"div",74)(7,"p",75),d(8),u(9,"date"),c(),s(10,"p",76),d(11),u(12,"date"),c()()(),s(13,"div",77)(14,"p",78),b("click",function(){_(e);let n=l().$implicit,a=l(4);return g(a.openDocument(a.selectedLanguage==="en"?n.document_url_en:n.document_url_fr,n.new_tab))}),d(15),c(),S(16,Vt,3,1,"div",79),c()(),S(17,Ft,3,1,"div",80),c()}if(o&2){let e=l().$implicit,t=l(4);r(4),h(" ",pe(5,7,e.submission_date,t.selectedLanguage,"MMM")," "),r(4),h(" ",B(9,11,e.submission_date,"dd")," "),r(3),h(" ",B(12,14,e.submission_date,"YYYY")," "),r(3),m("ngClass",t.selectedLanguage==="en"?e==null?null:e.document_url_en:e!=null&&e.document_url_fr?"pointer":"not-allowed"),r(),h(" ",t.selectedLanguage==="en"?e==null?null:e.title_en:e==null?null:e.title_fr," "),r(),m("ngIf",e.tags&&e.tags.length>0),r(),m("ngIf",t.selectedLanguage==="en"?e.submission_category_en:e.submission_category_fr)}}function Nt(o,i){if(o&1){let e=x();s(0,"p",84),b("click",function(){_(e);let n=l().$implicit,a=l(7);return g(a.filterOnTagClick(n))}),d(1),c()}if(o&2){let e=l().$implicit;r(),h(" ",e," ")}}function Rt(o,i){if(o&1&&(T(0),S(1,Nt,2,1,"p",83),E()),o&2){let e=i.$implicit,t=l(7);r(),m("ngIf",!t.selectedTag||t.selectedTag===e)}}function Dt(o,i){if(o&1&&(s(0,"div",95),P(1,"img",82),S(2,Rt,2,1,"ng-container",67),c()),o&2){let e=l(2).$implicit;r(2),m("ngForOf",e.tags)}}function Ut(o,i){if(o&1){let e=x();s(0,"label",96),b("click",function(){_(e);let n=l(2).$implicit,a=l(4);return g(a.hasSubmissionTypeUrl(n)&&a.openSubmissionTypeUrl(n))}),d(1),c()}if(o&2){let e=l(2).$implicit,t=l(4);m("ngClass",t.hasSubmissionTypeUrl(e)?"pointer":""),r(),h(" ",t.selectedLanguage==="en"?e==null?null:e.submission_category_en:e==null?null:e.submission_category_fr," ")}}function Yt(o,i){if(o&1){let e=x();s(0,"div",89)(1,"div",90)(2,"p",91),P(3,"img",92),d(4),u(5,"translateDate"),c(),s(6,"div")(7,"p",78),b("click",function(){_(e);let n=l().$implicit,a=l(4);return g(a.openDocument(a.selectedLanguage==="en"?n.document_url_en:n.document_url_fr,n.new_tab))}),d(8),c(),S(9,Dt,3,1,"div",93),c(),S(10,Ut,2,2,"label",94),c()()}if(o&2){let e=l().$implicit,t=l(4);r(4),h(" ",pe(5,5,e.submission_date,t.selectedLanguage,"MMMM dd, YYYY")," "),r(3),m("ngClass",t.selectedLanguage==="en"?e==null?null:e.document_url_en:e!=null&&e.document_url_fr?"pointer":"not-allowed"),r(),h(" ",t.selectedLanguage==="en"?e==null?null:e.title_en:e==null?null:e.title_fr," "),r(),m("ngIf",e.tags&&e.tags.length>0),r(),m("ngIf",t.selectedLanguage==="en"?e==null?null:e.submission_category_en:e==null?null:e.submission_category_fr)}}function $t(o,i){if(o&1&&(T(0),S(1,Bt,18,17,"div",68)(2,Yt,11,9,"div",69),E()),o&2){let e=i.$implicit,t=l(4);r(),m("ngIf",t.selectedLanguage==="en"?e.title_en:e.title_fr),r(),m("ngIf",t.selectedLanguage==="en"?e.title_en:e.title_fr)}}function Ht(o,i){if(o&1&&(s(0,"div",66),S(1,$t,3,2,"ng-container",67),c()),o&2){let e=i.$implicit;r(),m("ngForOf",e.submissions)}}function jt(o,i){if(o&1&&(T(0),S(1,Ht,2,1,"div",65),E()),o&2){let e=l(2);r(),m("ngForOf",e.policySubmissions)}}function zt(o,i){o&1&&(s(0,"div",97)(1,"div",98)(2,"p",99),d(3),u(4,"translate"),c()()()),o&2&&(r(3),h(" ",f(4,1,"POLICY_SUBMISSIONS.NO_SUBMISSIONS")," "))}function Gt(o,i){if(o&1){let e=x();s(0,"div",17)(1,"div",18),S(2,yt,1,1,"img",19),c(),s(3,"div",20)(4,"div",21)(5,"button",22),b("click",function(){_(e);let n=l(),a=O(2);return g(n.onMenuDrawerOpen(a))}),s(6,"p",23),d(7,"Menu"),c(),s(8,"mat-icon",24),d(9),c()()(),s(10,"h1",25)(11,"strong"),d(12),u(13,"translate"),c()()(),s(14,"div",26)(15,"div",27)(16,"input",28),u(17,"translate"),u(18,"translate"),fe("ngModelChange",function(n){_(e);let a=l();return be(a.searchText,n)||(a.searchText=n),g(n)}),b("keyup.enter",function(){_(e);let n=l();return g(n.searchResults())}),c(),S(19,Pt,1,0,"mat-icon",29),c(),s(20,"div",30)(21,"button",31),b("click",function(){_(e);let n=l(),a=O(21);
1return g(n.openMobileFilters(a))}),s(22,"p",32),P(23,"mat-icon",33),d(24),u(25,"translate"),u(26,"titlecase"),c(),P(27,"mat-icon",34),c(),s(28,"button",35),b("click",function(){_(e);let n=l();return g(n.searchResults())}),d(29),u(30,"translate"),c(),S(31,Ot,4,4,"button",36),c(),s(32,"div",37),S(33,wt,6,6,"button",38),c(),s(34,"div",39)(35,"div",40)(36,"button",41),d(37),u(38,"translate"),P(39,"mat-icon",34),c(),s(40,"button",41),d(41),u(42,"translate"),P(43,"mat-icon",34),c(),s(44,"button",41),d(45),u(46,"translate"),P(47,"mat-icon",34),c()(),s(48,"div",42)(49,"button",43),b("click",function(){_(e);let n=l();return g(n.clearFilters())}),d(50),u(51,"translate"),u(52,"uppercase"),c()()(),s(53,"div",44)(54,"div",45),S(55,kt,4,4,"button",46)(56,Tt,3,2,"div",47),c(),s(57,"button",35),b("click",function(){_(e);let n=l();return g(n.searchResults())}),d(58),u(59,"translate"),c()()(),S(60,jt,2,1,"ng-container",16)(61,zt,5,3,"div",48),c()}if(o&2){let e=l(),t=O(2),n=O(9),a=O(13),v=O(17);m("ngStyle",ce(53,vt,e.drawerHeight&&t.opened?e.drawerHeight+"px":"")),r(),m("ngClass",e.policyPageSettings.banner_image?"":"bg-secondary"),r(),m("ngIf",e.policyPageSettings.banner_image),r(3),w("aria-label",t.opened?"ARIA_LABELS.CLOSE_BUTTON":"ARIA_LABELS.OPEN_MENU"),r(4),se(t.opened?"chevron_left":"chevron_right"),r(3),h(" ",f(13,29,"POLICY_SUBMISSIONS.POLICY_SUBMISSIONS")," "),r(4),he("ngModel",e.searchText),m("placeholder",f(17,31,"POLICY_SUBMISSIONS.PLACEHOLDER")),w("aria-label",f(18,33,"POLICY_SUBMISSIONS.PLACEHOLDER")),r(3),m("ngIf",e.searchQueryHasValue),r(5),h(" ",f(26,37,f(25,35,"PRODUCTION_LIST_FILTER.FILTER_BY"))," "),r(5),h(" ",f(30,39,"POLICY_SUBMISSIONS.SEARCH")," "),r(2),m("ngIf",e.currentUser==null?null:e.currentUser.id),r(2),m("ngIf",e.savedSearches.length>0),r(3),m("matMenuTriggerFor",n)("disabled",!e.years||e.years.length<=0),r(),h(" ",f(38,41,"POLICY_SUBMISSIONS.SUBMISSION_YEAR")," "),r(3),m("matMenuTriggerFor",a)("disabled",!e.categories||e.categories.length<=0),r(),h(" ",f(42,43,"POLICY_SUBMISSIONS.SUBMISSION_TYPE")," "),r(3),m("matMenuTriggerFor",v)("disabled",!e.tagsList||e.tagsList.length<=0),r(),h(" ",f(46,45,"POLICY_SUBMISSIONS.TAGS")," "),r(5),h(" ",f(52,49,f(51,47,"POLICY_SUBMISSIONS.CLEAR_FILTERS"))," "),r(5),m("ngIf",e.savedSearches.length>0),r(),m("ngIf",(e.currentUser==null?null:e.currentUser.id)&&e.policySubmissions.length>0),r(2),h(" ",f(59,51,"POLICY_SUBMISSIONS.SEARCH")," "),r(2),m("ngIf",e.policySubmissions&&e.policySubmissions.length>0),r(),m("ngIf",(e.policySubmissions==null?null:e.policySubmissions.length)===0)}}function Qt(o,i){if(o&1){let e=x();s(0,"div",100)(1,"mat-checkbox",101),b("change",function(n){let a=_(e).$implicit,v=l();return g(v.onYearsOptionCheck(n.checked,a.year))}),s(2,"label",102),d(3),c()()()}if(o&2){let e=i.$implicit;r(),m("checked",e.checked),r(2),h(" ",e.year," ")}}function Wt(o,i){if(o&1){let e=x();s(0,"mat-checkbox",101),b("change",function(n){_(e);let a=l().$implicit,v=l();return g(v.onCategoriesOptionCheck(n.checked,(a.id==null?null:a.id.toString())||""))}),s(1,"label",102),d(2),c()()}if(o&2){let e=l().$implicit,t=l();m("checked",e.checked),r(2),h(" ",t.selectedLanguage==="en"?e.title_en:e.title_fr," ")}}function Kt(o,i){if(o&1&&(s(0,"div",100),S(1,Wt,3,2,"mat-checkbox",103),c()),o&2){let e=i.$implicit,t=l();r(),m("ngIf",t.selectedLanguage==="en"?e.title_en:e.title_fr)}}function Xt(o,i){if(o&1){let e=x();s(0,"div",100)(1,"mat-checkbox",101),b("change",function(n){let a=_(e).$implicit,v=l();return g(v.onTagsOptionCheck(n.checked,a.title))}),s(2,"label",102),d(3),c()()()}if(o&2){let e=i.$implicit;r(),m("checked",e.checked),r(2),h(" ",e==null?null:e.title," ")}}function qt(o,i){if(o&1){let e=x();s(0,"div",123)(1,"mat-checkbox",101),b("change",function(n){let a=_(e).$implicit,v=l(2);return g(v.onYearsOptionCheck(n.checked,a.year))}),s(2,"label",102),d(3),c()()()}if(o&2){let e=i.$implicit;r(),m("checked",e.checked),r(2),h(" ",e.year," ")}}function Jt(o,i){if(o&1){let e=x();s(0,"mat-checkbox",101),b("change",function(n){_(e);let a=l().$implicit,v=l(2);return g(v.onCategoriesOptionCheck(n.checked,a.id||""))}),s(1,"label",102),d(2),c()()}if(o&2){let e=l().$implicit,t=l(2);m("checked",e.checked),r(2),h(" ",t.selectedLanguage==="en"?e.title_en:e.title_fr," ")}}function Zt(o,i){if(o&1&&(s(0,"div",123),S(1,Jt,3,2,"mat-checkbox",103),c()),o&2){let e=i.$implicit,t=l(2);r(),m("ngIf",t.selectedLanguage==="en"?e.title_en:e.title_fr)}}function ei(o,i){if(o&1){let e=x();s(0,"div",123)(1,"mat-checkbox",101),b("change",function(n){let a=_(e).$implicit,v=l(2);return g(v.onTagsOptionCheck(n.checked,a.title))}),s(2,"label",102),d(3),c()()()}if(o&2){let e=i.$implicit;r(),m("checked",e.checked),r(2),h(" ",e.title," ")}}function ti(o,i){if(o&1){let e=x();s(0,"div",108)(1,"h2",124)(2,"button",125),d(3),u(4,"translate"),c()(),s(5,"div",126)(6,"div",112)(7,"div",127)(8,"a
1pp-saved-search-list",128),b("patchFilter",function(n){_(e);let a=l(2);return g(a.patchFilter(n))})("loadSearches",function(){_(e);let n=l(2);return g(n.loadMoreSearches())})("deleteSearch",function(n){_(e);let a=l(2);return g(a.deleteSaveSearch(n))}),c()()()()()}if(o&2){let e=l(2);r(3),h(" ",f(4,3,"SAVE_SEARCHES.SAVED")," "),r(2),m("ngClass",ce(5,xt,!e.isCollapsed)),r(3),m("savedSearches",le(7,ct,e.savedSearches,e.saveSearchPagination.totalItems))}}function ii(o,i){if(o&1){let e=x();s(0,"div",104)(1,"p",105),d(2),u(3,"translate"),u(4,"titlecase"),c(),s(5,"mat-icon",106),d(6,"close"),c()(),s(7,"mat-dialog-content")(8,"div",107)(9,"div",108)(10,"h2",109)(11,"button",110),d(12),u(13,"translate"),c()(),s(14,"div",111)(15,"div",112),S(16,qt,4,2,"div",113),c()()(),s(17,"div",108)(18,"h2",114)(19,"button",115),d(20),u(21,"translate"),c()(),s(22,"div",116)(23,"div",112),S(24,Zt,2,1,"div",113),c()()(),s(25,"div",108)(26,"h2",114)(27,"button",117),d(28),u(29,"translate"),c()(),s(30,"div",118)(31,"div",112),S(32,ei,4,2,"div",113),c()()(),S(33,ti,9,10,"div",119),c()(),s(34,"mat-dialog-actions")(35,"div",120)(36,"button",121),b("click",function(){_(e);let n=l();return g(n.clearFilters())}),d(37),u(38,"translate"),u(39,"uppercase"),c(),s(40,"button",122),d(41),u(42,"translate"),u(43,"uppercase"),c()()()}if(o&2){let e=l();r(2),se(f(4,12,f(3,10,"PRODUCTION_LIST_FILTER.FILTER"))),r(10),h(" ",f(13,14,"POLICY_SUBMISSIONS.SUBMISSION_YEAR")," "),r(4),m("ngForOf",e.years),r(4),h(" ",f(21,16,"POLICY_SUBMISSIONS.SUBMISSION_TYPE")," "),r(4),m("ngForOf",e.categories),r(4),h(" ",f(29,18,"POLICY_SUBMISSIONS.TAGS")," "),r(4),m("ngForOf",e.tagsList),r(),m("ngIf",e.savedSearches.length>0),r(4),h(" ",f(39,22,f(38,20,"PRODUCTION_LIST_FILTER.CLEAR_FILTERS"))," "),r(4),h(" ",f(43,26,f(42,24,"PRODUCTION_LIST_FILTER.DONE"))," ")}}function ni(o,i){o&1&&(T(0),s(1,"div",129),P(2,"img",130),u(3,"translate"),c(),E()),o&2&&(r(2),ue("alt",f(3,1,"ALT_TEXT.LOADING")))}var A=class A{constructor(){p(this,"isLoading",!1);p(this,"searchText","");p(this,"selectedLanguage","en");p(this,"isTableView",!1);p(this,"policySubmissions",[]);p(this,"destroy$",new N);p(this,"categories",[]);p(this,"years",[]);p(this,"selectedYears",[]);p(this,"currentYear",new Date().getFullYear());p(this,"selectedCategories",[]);p(this,"tagsList",[]);p(this,"selectedTags",[]);p(this,"selectedTag","");p(this,"policyPageSettings",{banner_image:""});p(this,"savedSearches",[]);p(this,"currentPageUrl","");p(this,"hasFilterParam",!1);p(this,"currentUser");p(this,"selectedSearch");p(this,"trigger");p(this,"saveSearchPagination",{totalItems:0,currentPage:1,itemsPerPage:10});p(this,"hovering",!1);p(this,"isCollapsed",!1);p(this,"drawerHeight",0);p(this,"closeOnOverlay",!1);p(this,"matDrawer");p(this,"policyService",C(Z));p(this,"multilingualService",C(Te));p(this,"translateService",C(z));p(this,"dialog",C(K));p(this,"breakpointObserver",C(Ee));p(this,"saveSearchService",C(at));p(this,"activatedRoutes",C(we));p(this,"storageService",C(W));p(this,"toasterService",C(J));p(this,"utilService",C(et));p(this,"router",C(ke));p(this,"usageLogService",C(it));p(this,"window",C(Me))}ngOnInit(){var i;this.usageLogService.addUsageLog("Policy Submissions","View"),this.currentPageUrl="".concat((i=this.window)==null?void 0:i.origin).concat(this.router.url),this.selectedLanguage=this.multilingualService.getCurrentLanguage(),this.currentUser=this.storageService.getItem("userDetails"),this.utilService.setTitle(L.POLICY_SUBMISSION[this.selectedLanguage]),this.isLoading=!0,this.listenToLanguageChange(),this.listenOnBreakpoint(),this.getPageSettings(),this.getFiltersData(),this.checkTableView(),this.checkIfHasFilterParams(),this.getSaveSearches()}listenOnBreakpoint(){this.breakpointObserver.observe(["(max-width: 991px)"]).pipe(y(this.destroy$)).subscribe(i=>{var e;i.matches&&((e=this.matDrawer)!=null&&e.opened)&&this.matDrawer.close()})}checkIfHasFilterParams(){this.activatedRoutes.queryParams.pipe(y(this.destroy$)).subscribe(i=>{i.filter?this.hasFilterParam=!0:this.hasFilterParam=!1})}checkTableView(){this.isTableView=this.breakpointObserver.isMatched("(max-width: 991px)"),this.breakpointObserver.observe(["(max-width: 991px)"]).pipe(y(this.destroy$)).subscribe(i=>{i.matches?this.isTableView=!0:this.isTableView=!1})}listenToLanguageChange(){this.translateService.onLangChange.pipe(y(this.destroy$)).subscribe(i=>{var e;this.selectedLanguage=i.lang,this.utilService.setTitle(L.POLICY_SUBMISSION[this.selectedLanguage]),(e=this.categories)!=null&&e.length&&this.categories.sort((t,n)=>this.selectedLanguage==="en"?(t.title_en||"").localeCompare(n.title_en||""):(t.title_fr||"").localeCompare(n.title_fr||""))})}get searchQueryHasValue(){return this.searchText.length>0}getFiltersData(){this.policyService.getFiltersData().pipe(y(this.destroy$)).subscribe({next:i=>{if((i==null?void 0:i.code)===200){let{years:e,categories:t,tags:n}=i.data;this.setYears(e),this.setCategories(t),this.setTags(n)}else this.isLoading=!1},error:()=>{this.isLoading=!1,this.categories=[],this.years=[],this.tagsList=[]},complete:()=>{this.isLoading=!1,this.hasFilterParam?this.getFilterSearch():this.getPolicySubmissions()}})}setYears(i){if(!(i!=null&&i.length))return;let e=[...i].sort((n,a)=>a-n),t=new Set(e.slice(0,3));this.years=i.map(n=>({id:n,year:n,checked:t.has(n)})),this.years.unshift({id:"All",year:"All",checked:i.length<=3})}setCategories(i){(i==null?void 0:i.length)<=0||(this.categories=i.sort((e,t)=>
1this.selectedLanguage==="en"?e.title_en.localeCompare(t.title_en):e.title_fr.localeCompare(t.title_fr)).map(e=>(e.checked=!0,e)),this.categories.unshift({id:"All",title_en:"All",title_fr:"All",checked:!0}))}setTags(i){(i==null?void 0:i.length)<=0||(this.tagsList=i.map(e=>({title:e,checked:!1})),this.tagsList.unshift({title:"All",checked:!1}))}openMobileFilters(i,e=!1){this.isCollapsed=e,this.dialog.open(i,{height:"100%",autoFocus:!1,panelClass:["availability-filters-dialog","production-filters-dialog"],disableClose:!1}).afterClosed().pipe(y(this.destroy$))}getPolicySubmissions(){this.isLoading=!0,this.getCheckedCategories(),this.getCheckedYears(),this.getCheckedTags();let i=this.policyService.getPolicySubmissionParams(this.selectedYears,this.selectedCategories,this.selectedTags,this.searchText);this.policyService.getPolicySubmissions(i).pipe(y(this.destroy$)).subscribe({next:e=>{e&&e.code===200?this.policySubmissions=e.data:(this.policySubmissions=[],this.isLoading=!1)},error:()=>{this.policySubmissions=[],this.isLoading=!1},complete:()=>{this.isLoading=!1}})}getFilterSearch(){this.saveSearchService.getSearchByUrl(this.currentPageUrl).pipe(y(this.destroy$)).subscribe({next:i=>{(i==null?void 0:i.code)===200&&!i.error?(this.selectedSearch=i.data,this.applySelectedFilter()):this.selectedSearch=null},complete:()=>{this.isLoading=!1},error:()=>{this.isLoading=!1}})}getSaveSearches(i=!1){var e;(e=this.currentUser)!=null&&e.id&&this.saveSearchService.getSearchList(L.POLICY_SUBMISSION.en,this.saveSearchPagination.currentPage,this.saveSearchPagination.itemsPerPage).pipe(y(this.destroy$)).subscribe({next:t=>{var n;(t==null?void 0:t.code)===200&&!t.error?(this.savedSearches=(n=t.data)==null?void 0:n.data,this.saveSearchPagination={totalItems:t.data.totalItems,itemsPerPage:10,currentPage:t.data.currentPage},!i&&!this.hasFilterParam&&(this.selectedSearch=this.savedSearches.find(a=>a.url===this.currentPageUrl)||null)):(this.trigger.closeMenu(),this.savedSearches=[],this.selectedSearch=null)}})}saveSearch(i){this.isLoading=!0;let e=this.policyService.getPolicySubmissionParams(this.selectedYears,this.selectedCategories,this.selectedTags,this.searchText),t=this.saveSearchService.getObjectFromHttpParams(e);this.saveSearchService.saveSearch(i.title,L.POLICY_SUBMISSION.en,i.url,t,!1).pipe(y(this.destroy$)).subscribe({next:n=>{(n==null?void 0:n.code)===200&&!n.error?(this.selectedSearch=n.data,this.dialog.closeAll(),this.toasterService.success(n.message),this.getSaveSearches(!0)):n!=null&&n.message?this.toasterService.error(n.message):this.toasterService.error(this.translateService.instant("SAVE_SEARCHES.MAXIMUM_SAVE"))},complete:()=>{this.isLoading=!1},error:()=>{this.isLoading=!1}})}deleteSaveSearch(i){this.isLoading=!0,this.saveSearchService.deleteSearch(i.id).pipe(y(this.destroy$)).subscribe({next:e=>{var t;(e==null?void 0:e.code)===200&&!e.error?((i==null?void 0:i.id)===((t=this.selectedSearch)==null?void 0:t.id)&&(this.selectedSearch=null),this.toasterService.success(e.message),this.getSaveSearches()):this.toasterService.error(e.message)},complete:()=>{this.isLoading=!1},error:()=>{this.isLoading=!1}})}onSaveSearch(){this.dialog.open(st,{closeOnNavigation:!0,autoFocus:!1,panelClass:"save-search-dialog",data:{type:L.POLICY_SUBMISSION.en,language:this.selectedLanguage}}).componentInstance.dataEvent.pipe(y(this.destroy$)).subscribe(e=>{e!=null&&e.url&&this.saveSearch(e)})}patchFilter(i){this.trigger.closeMenu(),this.selectedSearch=i.item,this.applySelectedFilter()}applySelectedFilter(){var e;let i=(e=this.selectedSearch)==null?void 0:e.applied_filter;i!=null&&i.title&&(this.searchText=i.title),i!=null&&i.years&&(this.years=this.years.map(t=>(t.checked=i.years.includes(+t.year),t)),this.checkAllSelectedYears()),i!=null&&i.categories&&(this.categories=this.categories.map(t=>(t.checked=i.categories.includes(t.id),t)),this.checkAllSelectedCategories()),i!=null&&i.tags&&(this.tagsList=this.tagsList.map(t=>(t.checked=i.tags.includes(t.title),t)),this.checkAllSelectedTags()),this.getPolicySubmissions()}loadMoreSearches(){this.saveSearchPagination.currentPage++,this.get
1SaveSearches(!0)}getCheckedCategories(){this.selectedCategories=this.categories.filter(i=>{var e,t;return(i==null?void 0:i.checked)&&((t=(e=i==null?void 0:i.id)==null?void 0:e.toString())==null?void 0:t.toLowerCase())!=="all"}).map(i=>Number(i.id))}getCheckedYears(){var i,e;this.selectedYears=(e=(i=this.years)==null?void 0:i.filter(t=>{var n,a;return(t==null?void 0:t.checked)&&((a=(n=t==null?void 0:t.id)==null?void 0:n.toString())==null?void 0:a.toLowerCase())!=="all"}))==null?void 0:e.map(t=>Number(t.year))}openDocument(i,e){var t;i&&((t=this.window)==null||t.open(i,e?"_blank":"_self"))}hasLanguageSpecificSubmissions(i){return i.submissions?this.selectedLanguage==="en".toLowerCase()?i.submissions.some(e=>e.title_en&&e.title_en.trim()!==""):i.submissions.some(e=>e.title_fr&&e.title_fr.trim()!==""):!1}getPageSettings(){this.policyService.getPolicySubmissionPageBannerImage().pipe(y(this.destroy$)).subscribe({next:i=>{if(this.policyPageSettings={banner_image:""},i&&i.code===200){let{banner_image:e}=i.data;e&&(this.policyPageSettings={banner_image:e})}}})}onCategoriesOptionCheck(i,e){var t;this.isLoading=!0,(e==null?void 0:e.toString().toLowerCase())==="all"?this.toggleAllCategoriesOptions(i):(this.categories=(t=this.categories)==null?void 0:t.map(n=>(n.id===+e&&(n.checked=i),n)),this.checkAllSelectedCategories()),this.getPolicySubmissions()}onTagsOptionCheck(i,e){var t;this.isLoading=!0,this.selectedTag="",(e==null?void 0:e.toLowerCase())==="all"?this.toggleAllTagsOptions(i):(this.tagsList=(t=this.tagsList)==null?void 0:t.map(n=>(n.title===e&&(n.checked=i),n)),this.checkAllSelectedTags()),this.getPolicySubmissions()}toggleAllTagsOptions(i){var e;this.tagsList=(e=this.tagsList)==null?void 0:e.map(t=>(t.checked=i,t))}checkAllSelectedTags(){var e;let i=this.tagsList.every(t=>{var n;return t.checked||((n=t==null?void 0:t.title)==null?void 0:n.toLowerCase())==="all"});i?this.toggleAllTagsOptions(!0):this.tagsList=(e=this.tagsList)==null?void 0:e.map(t=>((t==null?void 0:t.title.toLowerCase())==="all"&&(t.checked=i),t))}getCheckedTags(){var i,e;this.selectedTags=(e=(i=this.tagsList)==null?void 0:i.filter(t=>{var n,a;return(t==null?void 0:t.checked)&&((a=(n=t==null?void 0:t.title)==null?void 0:n.toString())==null?void 0:a.toLowerCase())!=="all"}))==null?void 0:e.map(t=>t==null?void 0:t.title)}searchResults(){this.selectedSearch=null,this.isLoading=!0,this.getPolicySubmissions()}clearInput(){this.searchText="",this.getPolicySubmissions()}checkAllSelectedCategories(){var e;let i=this.categories.every(t=>{var n,a;return t.checked||((a=(n=t==null?void 0:t.id)==null?void 0:n.toString())==null?void 0:a.toLowerCase())==="all"});i?this.toggleAllCategoriesOptions(!0):this.categories=(e=this.categories)==null?void 0:e.map(t=>{var n,a;return((a=(n=t==null?void 0:t.id)==null?void 0:n.toString())==null?void 0:a.toLowerCase())==="all"&&(t.checked=i),t})}toggleAllCategoriesOptions(i){var e;this.categories=(e=this.categories)==null?void 0:e.map(t=>(t.checked=i,t))}onYearsOptionCheck(i,e){this.isLoading=!0,(e==null?void 0:e.toString().toLowerCase())==="all"?this.toggleAllYearsOptions(i):(this.years=this.years.map(t=>(t.id===e&&(t.checked=i),t)),this.checkAllSelectedYears()),this.getPolicySubmissions()}checkAllSelectedYears(){var e;let i=this.years.every(t=>{var n,a;return t.checked||((a=(n=t==null?void 0:t.id)==null?void 0:n.toString())==null?void 0:a.toLowerCase())==="all"});i?this.toggleAllYearsOptions(!0):this.years=(e=this.years)==null?void 0:e.map(t=>{var n,a;return((a=(n=t==null?void 0:t.id)==null?void 0:n.toString())==null?void 0:a.toLowerCase())==="all"&&(t.checked=i),t})}toggleAllYearsOptions(i){var e;this.years=(e=this.years)==null?void 0:e.map(t=>(t.checked=i,t))}clearFilters(){var i,e,t;this.selectedSearch=null,this.selectedTag="",this.isLoading=!0,this.searchText="",this.categories=(i=this.categories)==null?void 0:i.map(n=>(n.checked=!1,n)),this.years=(e=this.years)==null?void 0:e.map(n=>(n.checked=this.currentYear===+n.year,n)),this.tagsList=(t=this.tagsList)==null?void 0:t.map(n=>(n.checked=!1,n)),this.getPolicySubmissions()}filterOnTagClick(i){var t;let e=i;this.searchText="",this.selectedSearch=null,this.selectedTag=e,this.selectedTags=[this.selectedTag],this.tagsList=(t=this.tagsList)==null?void 0:t.map(n=>(n.checked=n.title===this.selectedTag,n)),this.selectedSearch=null,this.getPolicySubmissions()}openSubmissionTypeUrl(i){var a;let e=i.submission_type_url_en,t=i.submission_type_url_fr,n=null;this.selectedLanguage==="en"?n=e:n=t||e,n&&((a=this.window)==null||a.open(n,"_blank"))}hasSubmissionTypeUrl(i){return this.selectedLanguage==="en"?!!i.submission_type_url_en:!!(i.submission_type_url_fr||i.submission_type_url_en)}onMenuDrawerOpen(i){this.closeOnOverlay=!0,i.autoFocus=!1,i.open(),i._openedStream.pipe(y(this.destroy$)).subscribe(()=>{i.opened&&(this.drawerHeight=this.matDrawer._content.nativeElement.clientHeight)})}closeSideMenu(){setTimeout(()=>{this.matDrawer.close(),this.closeOnOverlay=!1},300)}ngOnDestroy(){this.usageLogService.addUsageLog("Policy Submissions","Exit"),this.destroy$.next(!0),this.destroy$.complete(),this.utilService.setTitle()}};p(A,"\u0275fac",function(e){return new(e||A)}),p(A,"\u0275cmp",D({type:A,selectors:[["app-policy-submissions"]],viewQuery:function(e,t){if(e&1&&(oe(q,5),oe(St,5)),e&2){let n;re(n=ae())&&(t.trigger=n.first),re(n=ae())&&(t.matDrawer=n.first)}},decls:26,vars:16,consts:[["matDrawer",""],["mainContainer",""],["yearsFilter",""],["categoriesFilter",""],["tagsFilter",""],["filtersDialogTemplate",""],["savedSearchList",""],[1,"p-0","bg-f0",3,"backdropClick","hasBackdrop"],["mode","over",1,"menu-drawer"],[3,"closeSideNav","showBackDrop","closeOnOverlay"],[3,"ngTemplateOutlet"],["yPosition","below","role","menu",3,"overlapTrigger"],["role","menuitem",1,"filter-popup-container",3,"click"],["class","label-container",4,"ngFor","ngForOf"],["yPosition","below",1,"save-search-list","p-3",3,"overlapTrigger"],[3,"click","patchFilter","loadSearches","deleteSearch","savedSearches"],[4,"ngIf"],[1,"policy-submissions-container",3,"ngStyle"],[1,"header-image","flex-center",3,"ngClass"],["role","presentation","alt","",3,"src",4,"ngIf"],[1,"text-center","position-relative"],[1,"menu","d-none","d-lg-flex","align-items-center"],[1,"d-flex","flex-center","border-0","pointer","expand-button",3,"click"],[1,"mb-0","ps-1","font-16","fw-500"],[1,"pointer"],[1,"heading","position-relative","font-40","fw-700"],[1,"row","m-0","mb-2","p-2","p-sm-4","bg-white","filter-options"],[1,"col-12","flex-column","search-input-container","flex-sm-row","d-flex","gap-3"],["type","text","name","searchInput",1,"form-control",3,"ngModelChange","keyup.enter","ngModel","placeholder"],["fontIcon","close",3,"click",4,"ngIf"],[1,"col-12","p-0","mt-3","d-flex","justify-content-between","gap-2","d-lg-none"],["type","button",1,"filter-by-button","d-flex","align-items-center","justify-content-between","w-100",3,"click"],[1,"d-flex","gap-2","align-items-center","m-0"],["fontIcon","filter_list"],["fontIcon","arrow_drop_down"],["type","button",1,"btn","btn-dark","text-uppercase","search-button","font-14","fw-bold",3,"click"],["type","button","class","m-0 font-16 save-search-button d-flex align-items-center",3,"click",4,"ngIf"],[1,"col-12","p-0","mt-3","d-lg-none"],["type","button","class","btn view-saved-searches d-flex align-items-center p-0",3,"click",4,"ngIf"],[1,"col-12","mt-4","mb-4","d-none","d-lg-flex","justify-content-between","p-0"],[1,"flex-column","w-100","justify-content-center","gap-3","flex-sm-row","d-flex"],["type","button",1,"d-flex","align-items-center","filter-btn","justify-content-center",3,"matMenuTriggerFor","disabled"],[1,"d-none","d-lg-flex","clear-button-wrapper"],["type","button",1,"btn","clear-all","text-decoration-none","font-16","link-btn","btn-link","text-capitalize",3,"click"],[1,"col-12","mt-3","mt-md-0","d-none","d-lg-flex","flex-center","p-0","justify-content-between"],[1,"d-flex","gap-3","align-items-center"],["type","button","class","d-flex filter-btn align-items-center justify-content-center",3,"matMenuTriggerFor",4,"ngIf"],["class","save-search",4,"ngIf"],["class","row m-0 p-2 p-sm-4 bg-white",4,"ngIf"],["role","presentation","alt","",3,"src"],["fontIcon","close",3,"click"],["type","button",1,"m-0","font-16","save-search-button","d-flex","align-items-center",3,"click"],[1,"bookmark-color"],["type","button",1,"btn","view-saved-searches","d-flex","align-items-center","p-0",3,"click"],["type","button",1,"d-flex","filter-btn","align-items-center","justify-content-center",3,"matMenuTriggerFor"],[1,"save-search"],["class","font-style font-16 d-flex m-0 tertiary-color pointer d-flex align-items-center",3,"click",4,"ngIf"],["class","selected-search",4,"ngIf"],[1,"font-style","font-16","d-flex","m-0","tert
1iary-color","pointer","d-flex","align-items-center",3,"click"],["type","button",1,"tertiary-color","m-0","font-16","pe-2","save-search-button","d-flex","align-items-center",3,"mouseenter","mouseleave"],[1,"bookmark-color","pe-1"],[1,"tertiary-color","m-0","font-16"],[1,"selected-search"],[1,"m-0","px-2","font-16"],[1,"font-16","fw-500"],["class","row m-0",4,"ngFor","ngForOf"],[1,"row","m-0"],[4,"ngFor","ngForOf"],["class","p-4 p-0 d-none d-lg-flex align-items-center bg-white mb-2 border",4,"ngIf"],["class","mobile-container align-items-center d-flex flex-column d-lg-none bg-white mb-2 border",4,"ngIf"],[1,"p-4","p-0","d-none","d-lg-flex","align-items-center","bg-white","mb-2","border"],[1,"col-9","d-flex","align-items-start"],[1,"submission-date","d-flex","flex-column","text-center","border","border-2","border-dark"],[1,"month","flex-center","bg-dark","text-light","font-style","font-14","fw-bold","mb-0"],[1,"d-flex","flex-column"],[1,"date","flex-center","font-style","font-28","mb-0","fw-bold"],[1,"year","flex-center","font-style","font-14","mb-0","text-muted"],[1,"px-0","px-sm-4"],[1,"font-style","text-break","pointer","font-16","m-0","fw-bold","tertiary-color",3,"click","ngClass"],["class","font-style mt-3 mb-0 text-center d-flex gap-2 align-items-center text-break font-14",4,"ngIf"],["class","col-3",4,"ngIf"],[1,"font-style","mt-3","mb-0","text-center","d-flex","gap-2","align-items-center","text-break","font-14"],["src","assets/icons/ic-tag.svg","role","presentation","alt",""],["class","tag font-12 text-break m-0",3,"click",4,"ngIf"],[1,"tag","font-12","text-break","m-0",3,"click"],[1,"col-3"],[1,"category-and-actions","d-flex","justify-content-end","text-center"],["class","font-style submission-category text-break font-16 p-2 mb-0",3,"ngClass","click",4,"ngIf"],[1,"font-style","submission-category","text-break","font-16","p-2","mb-0",3,"click","ngClass"],[1,"mobile-container","align-items-center","d-flex","flex-column","d-lg-none","bg-white","mb-2","border"],[1,"col-12"],[1,"font-style","date","font-14","text-nowrap","m-0","mb-2","text-muted"],["src","/assets/icons/calendar.svg","role","presentation","alt","",1,"me-1","mb-1","calender-icon"],["class","font-style mt-3 mb-0 text-center px-0 px-sm-3 d-flex gap-2 align-items-center text-break font-14",4,"ngIf"],["class","font-style submission-category text-center px-2 text-break font-14 p-1 tertiary-color mb-0 mt-3",3,"ngClass","click",4,"ngIf"],[1,"font-style","mt-3","mb-0","text-center","px-0","px-sm-3","d-flex","gap-2","align-items-center","text-break","font-14"],[1,"font-style","submission-category","text-center","px-2","text-break","font-14","p-1","tertiary-color","mb-0","mt-3",3,"click","ngClass"],[1,"row","m-0","p-2","p-sm-4","bg-white"],[1,"col-12","text-center"],[1,"font-style","mb-0","py-4","mb-0","font-18","text-dark","fw-bold"],[1,"label-container"],["disableRipple","",3,"change","checked"],[1,"text-break","break-word","text-wrap"],["disableRipple","",3,"checked","change",4,"ngIf"],[1,"d-flex","justify-content-between"],["mat-dialog-title","",1,"mb-0"],["mat-icon-button","","disableRipple","","mat-dialog-close","true",1,"me-2","mt-2"],["id","productionListFiltersAccordion",1,"accordion"],[1,"accordion-item"],["id","headingTwo",1,"accordion-header"],["type","button","data-bs-toggle","collapse","data-bs-target","#productionStageFilters","aria-expanded","false",1,"accordion-button","collapsed"],["id","productionStageFilters","aria-labelledby","headingTwo","data-bs-parent","#productionListFiltersAccordion",1,"accordion-collapse","collapse"],[1,"accordion-body"],["class","label-container my-1 font-16",4,"ngFor","ngForOf"],["id","headingOne",1,"accordion-header"],["type","button","data-bs-toggle","collapse","data-bs-target","#districtFilters","aria-expanded","true",1,"accordion-button","collapsed"],["id","districtFilters","aria-labelledby","headingOne","data-bs-parent","#productionListFiltersAccordion",1,"accordion-collapse","collapse"],["type","button","data-bs-toggle","collapse","data-bs-target","#tagsFilter","aria-expanded","true",1,"accordion-button","collapsed"],["
1id","tagsFilter","aria-labelledby","headingOne","data-bs-parent","#productionListFiltersAccordion",1,"accordion-collapse","collapse"],["class","accordion-item",4,"ngIf"],[1,"d-flex","justify-content-between","align-items-center","p-2"],["type","button",1,"btn","text-nowrap","text-decoration-none","text-danger","fw-bold","font-16","link-btn","btn-link",3,"click"],["type","button","mat-button","","mat-dialog-close","true",1,"submit-button"],[1,"label-container","my-1","font-16"],["id","headingFive",1,"accordion-header"],["type","button","data-bs-toggle","collapse","data-bs-target","#saveSearches","aria-expanded","true",1,"accordion-button","collapsed"],["id","saveSearches","aria-labelledby","headingFour","data-bs-parent","#productionListFiltersAccordion",1,"accordion-collapse",3,"ngClass"],[1,"save-search-list"],[3,"patchFilter","loadSearches","deleteSearch","savedSearches"],[1,"dgc-loader","dgc-loader-transparent","d-flex","justify-content-center","align-items-center","w-100","h-100"],["src","/assets/gif/DGC-loader.gif",3,"alt"]],template:function(e,t){if(e&1){let n=x();s(0,"mat-drawer-container",7),b("backdropClick",function(){return _(n),g(t.closeSideMenu())}),s(1,"mat-drawer",8,0)(3,"app-sidenav",9),b("closeSideNav",function(){return _(n),g(t.closeSideMenu())}),c()(),s(4,"mat-drawer-content"),S(5,Ct,0,0,"ng-template",10),c()(),S(6,Gt,62,55,"ng-template",null,1,me),s(8,"mat-menu",11,2)(10,"div",12),b("click",function(v){return _(n),g(v.stopPropagation())}),S(11,Qt,4,2,"div",13),c()(),s(12,"mat-menu",11,3)(14,"div",12),b("click",function(v){return _(n),g(v.stopPropagation())}),S(15,Kt,2,1,"div",13),c()(),s(16,"mat-menu",11,4)(18,"div",12),b("click",function(v){return _(n),g(v.stopPropagation())}),S(19,Xt,4,2,"div",13),c()(),S(20,ii,44,28,"ng-template",null,5,me),s(22,"mat-menu",14,6)(24,"app-saved-search-list",15),b("click",function(v){return _(n),g(v.stopPropagation())})("patchFilter",function(v){return _(n),g(t.patchFilter(v))})("loadSearches",function(){return _(n),g(t.loadMoreSearches())})("deleteSearch",function(v){return _(n),g(t.deleteSaveSearch(v))}),c()(),S(25,ni,4,3,"ng-container",16)}if(e&2){let n=O(7);m("hasBackdrop",!0),r(3),m("showBackDrop",!0)("closeOnOverlay",t.closeOnOverlay),r(2),m("ngTemplateOutlet",n),r(3),m("overlapTrigger",!1),r(3),m("ngForOf",t.years),r(),m("overlapTrigger",!1),r(3),m("ngForOf",t.categories),r(),m("overlapTrigger",!1),r(3),m("ngForOf",t.tagsList),r(3),m("overlapTrigger",!1),r(2),m("savedSearches",le(13,ct,t.savedSearches,t.saveSearchPagination.totalItems)),r(),m("ngIf",t.isLoading)}},dependencies:[Se,$,H,xe,ve,nt,X,je,q,Le,Ve,Fe,Ae,Ye,Ne,Re,De,te,Qe,We,Ge,ye,Ce,j,ot,G],styles:[".menu-drawer[_ngcontent-%COMP%]{height:max-content;background-color:unset;width:auto}.header-title[_ngcontent-%COMP%]{font-weight:600;font-size:var(--font-38);line-height:1.5;color:var(--availability-title-color);font-family:var(--font-style);margin:20px 85px}@media (max-width: 992px){.header-title[_ngcontent-%COMP%]{font-weight:700;font-size:var(--font-22);line-height:1.5;margin:15px}}.menu[_ngcontent-%COMP%]{position:absolute;height:102px;z-index:1;top:-30%}@media (max-width: 992px){.menu[_ngcontent-%COMP%]{height:54px}}.policy-submissions-container[_ngcontent-%COMP%]{margin:auto;padding:30px;width:100%;background-color:var(--website-bg)}.policy-submissions-container[_ngcontent-%COMP%] .side-menu[_ngcontent-%COMP%]{width:200px;height:auto}.policy-submissions-container[_ngcontent-%COMP%] .heading-div[_ngcontent-%COMP%]{background-color:var(--color-gray-light-overlay);height:40px;display:flex;align-items:center}.policy-submissions-container[_ngcontent-%COMP%] .submission-date[_ngcontent-%COMP%]{min-width:80px;min-height:80px;border-radius:8px}.policy-submissions-container[_ngcontent-%COMP%] .submission-date[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.policy-submissions-container[_ngcontent-%COMP%] .submission-date[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{height:34px}.policy-submissions-container[_ngcontent-%COMP%] .calender-icon[_ngcontent-%COMP%]{height:15px}.policy-submissions-container[_ngcontent-%COMP%] .tag[_ngcontent-%COMP%]{cursor:pointer;padding:4px 12px;border-radius:20px;background:var(--search-grey-background);color:var(--chip-color);border:2px solid var(--chip-background)}.policy-submissions-container[_ngcontent-%COMP%] .tag[_ngcontent-%COMP%]:hover{background-color:var(--background-color)}.policy-submissions-container[_ngcontent-%COMP%] .submission-category[_ngcontent-%COMP%]{border-radius:8px;min-width:180px;max-width:180px;color:var(--primary-color)!important;border:1px solid var(--primary-color)}.policy-submissions-container[_ngcontent-%COMP%] .submission-category.pointer[_ngcontent-%COMP%]:hover{background:var(--search-grey-background)}.policy-submissions-container[_ngcontent-%COMP%] .header-image[_ngcontent-%COMP%]{height:236px}.policy-submissions-container[_ngcontent-%COMP%] .header-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:220px;object-fit:cover}.policy-submissions-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:var(--h2-size);width:initial;height:initial}.policy-submissions-container[_ngcontent-%COMP%] .underline[_ngcontent-%COMP%]{text-decoration:underline}.policy-submissions-container[_ngcontent-%COMP%] .link-btn[_ngcontent-%COMP%]{min-width:120px}.policy-submissions-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:45px;border-radius:4px;font-size:var(--font-14);box-shadow:none}.policy-submissions-container[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{margin:20px 0;font-weight:600;font-size:var(--font-38)!important;color:var(--availability-title-color);font-style:normal;font-family:var(--font-style);line-height:1.5}@media (max-width: 576px){.policy-submissions-container[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{font-size:var(--font-20)!important;margin:4px 0}}.policy-submissions-container[_ngcontent-%COMP%] .policy-submissions-year[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]{background-color:#107896;border-radius:25px;width:fit-content;padding:5px 30px}@media (max-width: 576px){.policy-submissions-container[_ngcontent-%COMP%] .policy-submissions-year[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]{font-size:var(--font-20)!important}}.policy-submissions-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]{position:relative;padding:0}.policy-submissions-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;height:52px;border-radius:5px;border:2px solid var(--border-color);padding:0 40px 0 24px;font-family:var(--font-style)}.policy-submissions-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.policy-submissions-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:var(--placeholder-color);font-size:var(--font-16)}@media (max-width: 992px){.policy-submissions-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{font-weight:400;font-size:var(--font-12);line-height:1.5}}@media (max-width: 992px){.policy-submissions-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:40px;padding-left:12px}}.policy-submissions-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{position:absolute;cursor:pointer;right:20px;top:calc(var(--input-height) - 40px);color:var(--placeholder-color)}@media (max-width: 992px){.policy-submissions-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{top:calc(var(--input-height) - 42px);right:12px;width:12px;height:12px;font-size:var(--font-16)}}.policy-submissions-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer;font-weight:500;font-size:var(--font-16);line-height:1.5;height:40px;background-color:var(--background-color);color:var(--primary-color)}@media (min-width: 992px){.policy-submissions-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .policy-submissions-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active:not(.save-searches, .save-search-button[_ngcontent-%COMP%], .clear-all[_ng
1content-%COMP%], .filter-by-button)[_ngcontent-%COMP%]{background-color:var(--bg-dark);color:var(--background-color)}}.policy-submissions-container[_ngcontent-%COMP%] button.search-button[_ngcontent-%COMP%]{color:var(--background-color);background-color:var(--bg-dark);font-weight:600;min-width:135px;max-width:135px}@media (min-width: 992px){.policy-submissions-container[_ngcontent-%COMP%] button.search-button[_ngcontent-%COMP%]:hover{background-color:var(--primary-hover-color)}}@media (max-width: 576px){.policy-submissions-container[_ngcontent-%COMP%] button.search-button[_ngcontent-%COMP%]{font-size:var(--font-12)}}.policy-submissions-container[_ngcontent-%COMP%] button.save-search-button[_ngcontent-%COMP%]{border-radius:4px;font-weight:400;padding:.4rem;background:unset;border:none}@media (min-width: 992px){.policy-submissions-container[_ngcontent-%COMP%] button.save-search-button[_ngcontent-%COMP%]:hover{background-color:var(--search-grey-background)}}.policy-submissions-container[_ngcontent-%COMP%] button.clear-all[_ngcontent-%COMP%]{color:var(--secondary-color);background-color:var(--background-color);border:none;height:36px;min-width:fit-content}@media (min-width: 992px){.policy-submissions-container[_ngcontent-%COMP%] button.clear-all[_ngcontent-%COMP%]:hover{background-color:var(--search-grey-background)}}.policy-submissions-container[_ngcontent-%COMP%] button.filter-by-button[_ngcontent-%COMP%]{border-radius:4px;border:1px solid var(--primary-color);height:40px}.policy-submissions-container[_ngcontent-%COMP%] button.filter-btn[_ngcontent-%COMP%]:active, .policy-submissions-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled:active{background-color:var(--bg-dark);color:var(--background-color)}.policy-submissions-container[_ngcontent-%COMP%] button.filter-btn[_ngcontent-%COMP%]{min-width:250px;border:1px solid var(--primary-color);border-radius:3px}.policy-submissions-container[_ngcontent-%COMP%] button.expand-button[_ngcontent-%COMP%]{background:var(--bg-dark);color:var(--background-color);border-radius:5px;min-height:35px;height:unset;align-items:center}@media (min-width: 992px){.policy-submissions-container[_ngcontent-%COMP%] button.expand-button[_ngcontent-%COMP%]:hover{background:var(--primary-hover-color)}}.policy-submissions-container[_ngcontent-%COMP%] button.expand-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;opacity:.5}.policy-submissions-container[_ngcontent-%COMP%] button.expand-button[_ngcontent-%COMP%] .category-and-actions[_ngcontent-%COMP%] label[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background:var(--light-text)}.filter-popup-container[_ngcontent-%COMP%]{background-color:var(--background-color);max-height:350px;width:100%;color:var(--primary-color);padding:20px}@media (min-width: 992px){.filter-popup-container[_ngcontent-%COMP%]{width:250px}}.filter-popup-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{cursor:pointer;font-weight:500;font-size:var(--font-16);line-height:1.5;font-family:var(--font-style)}.filter-popup-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{accent-color:var(--bg-dark);cursor:pointer;margin-top:2px}.filter-popup-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{min-width:16px;min-height:16px;margin-right:2px}.filter-popup-container[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%]{min-width:230px}.filter-popup-container[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%]:not(:first-child){margin-top:8px}@media (max-width: 576px){.category[_ngcontent-%COMP%]{font-size:var(--font-18)!important}.policy-submissions-container[_ngcontent-%COMP%]{padding:0!important}}.bookmark-color[_ngcontent-%COMP%]{color:var(--primary-color);overflow:hidden!important}.save-search[_ngcontent-%COMP%]{background-color:var(--background-color)}.view-saved-searches[_ngcontent-%COMP%]{height:unset!important;color:var(--tertiary-color)!important;border:none}.view-saved-searches[_ngcontent-%COMP%]:active, .view-saved-searches[_ngcontent-%COMP%]:hover{background:unset!important}@media (max-width: 991px){.filter-options[_ngcontent-%COMP%]{padding:20px!important}.filter-options[_ngcontent-%COMP%] .save-search-button[_ngcontent-%COMP%]{border:1px solid var(--border-color)!important}.filter-options[_ngcontent-%COMP%] .save-search-button[_ngcontent-%COMP%]:active, .filter-options[_ngcontent-%COMP%] .save-search-button[_ngcontent-%COMP%]:hover{background-color:var(--background-color)!important}.policy-submissions-container[_ngcontent-%COMP%] button.search-button[_ngcontent-%COMP%]{min-width:115px;max-width:115px}.policy-submissions-container[_ngcontent-%COMP%] .mobile-container[_ngcontent-%COMP%]{padding:20px}}.clear-button-wrapper[_ngcontent-%COMP%]{min-width:137px;max-width:140px;right:0}"]}));var ie=A;var oi=[{path:"",component:ie}],M=class M{};p(M,"\u0275fac",function(e){return new(e||M)}),p(M,"\u0275mod",U({type:M})),p(M,"\u0275inj",R({imports:[de.forChild(oi),de]}));var ne=M;var I=class I{};p(I,"\u0275fac",function(e){return new(e||I)}),p(I,"\u0275mod",U({type:I})),p(I,"\u0275inj",R({imports:[Pe,ne,He,qe,ze,Be,$e,Ue,rt,Ke]}));var lt=I;
1export{lt as PolicySubmissionsModule};
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.