1import{a as ve}from"./chunk-AMANVJDT.js";import{a as be}from"./chunk-RM5B73ZA.js";import"./chunk-ZDQHURQH.js";import"./chunk-PHE35NED.js";import{a as x}from"./chunk-HF46FQSU.js";import{g as he,i as ge}from"./chunk-SOQSONQE.js";import{b as fe,c as ue}from"./chunk-TC5FCLVY.js";import{c as M}from"./chunk-PUUFDSR5.js";import"./chunk-5WRB4FCB.js";import{L as me,T as ce,V as le,Y as de,z as se}from"./chunk-IE3GEG6D.js";import"./chunk-JLQQPUG2.js";import{a as pe}from"./chunk-E3GK6ZJN.js";import{b as ae}from"./chunk-OYHRIJHA.js";import{H as _,d as Z,r as ie,s as ne,t as oe,z as re}from"./chunk-JLTXE2K3.js";import{$b as h,Ac as Q,B as j,Cc as X,Db as V,Hb as l,Ib as v,Ja as c,Kb as y,La as g,Ma as S,N as O,O as A,Ob as q,Pa as R,Q as N,Qb as z,Ra as u,V as b,_b as d,ab as m,ac as G,b as w,ba as U,bb as r,ca as F,cb as a,cc as $,db as f,ed as ee,gd as te,hb as B,i as E,ib as P,id as T,mc as W,nb as H,sb as L,ta as Y,ua as k,ub as D,uc as J,vc as K,ya as o}from"./chunk-Y66N7V4O.js";import"./chunk-7CEBWOAQ.js";var Se=(()=>{let e=class e{constructor(n){this.app=n}ngOnInit(){this.app.updateTitle()}};e.\u0275fac=function(i){return new(i||e)(c(ae))},e.\u0275cmp=g({type:e,selectors:[["ng-component"]],standalone:!1,decls:2,vars:0,consts:[[1,"custom-portal-container","container-fluid","p-0"]],template:function(i,p){i&1&&(r(0,"div",0),f(1,"router-outlet"),a())},dependencies:[ee],encapsulation:2});let t=e;return t})();function Te(t,e){if(t&1&&(r(0,"span",9),l(1),a()),t&2){let s=D();o(),y("",s.tableData.length," of ",s.pagination.data_count)}}function Me(t,e){if(t&1&&(r(0,"li",13)(1,"div",14)(2,"h4")(3,"a",15),l(4),a()(),r(5,"small")(6,"a",16),d(7,"surveyShortUrl"),r(8,"span"),l(9),d(10,"surveyShortUrl"),d(11,"ltrimSlashes"),a()(),l(12," \u2014 "),r(13,"span"),l(14),d(15,"date"),a()()(),r(16,"div",17)(17,"small",18)(18,"span"),l(19),a()()()()),t&2){let s=e.$implicit;o(3),m("routerLink",z("./../../reports/",s.survey.unique_identifier,"/dashboards/",s.unique_identifier)),o(),v(s.name),o(2),m("href",q(h(7,9,s.survey.url)),k),o(3),v(h(11,13,h(10,11,s.survey.url))),o(5),v(h(15,15,s.updated_at)),o(5),v(s.survey.responses)}}function we(t,e){t&1&&(f(0,"div",19),d(1,"transloco")),t&2&&m("innerHTML",h(1,1,"reporting.your_dashboards.empty"),Y)}function Ee(t,e){if(t&1&&(B(0),r(1,"ul",10),u(2,Me,20,17,"li",11),a(),u(3,we,2,3,"div",12),P()),t&2){let s=D();o(),m("@fadeIn",void 0),o(),m("ngForOf",s.tableData),o(),m("ngIf",!s.tableData.length)}}function je(t,e){t&1&&f(0,"sa-ghost-menu-cards",20),t&2&&m("@fadeIn",void 0)("@fadeOut",void 0)("ghosts",3)("type","small")}function Oe(t,e){if(t&1){let s=H();r(0,"a",21),L("click",function(){U(s);let i=D();return F(i.loadMore())}),a()}}var Ae="YOUR_DASHBOARDS",De=(()=>{let e=class e extends be{constructor(n,i,p,I){super(),this.toast=n,this.userService=i,this.api=p,this.cdRef=I,this.refreshDashboards=new w,this.COMPONENT_ID=Ae}handleRequest(){let n=this.userService.getUser().id;this.tableData$=this.refreshDashboards.pipe(O([]),A(()=>this.hasState?(this.hasState=!1,E({dashboards:this.tableData,total_count:this.pagination.data_count,cached:!0})):this.api.getAuthorizedDashboards(n,this.pagination)),N(i=>{this.tableData=i.cached?i.dashboards:[...this.tableData,...i.dashboards],this.pagination.data_count=i.total_count},i=>{this.toast.error(),console.error(i)})),this.cdRef.detectChanges()}loadMore(){this.pagination.page++,this.pagination.offset+=this.pagination.limit,this.refreshDashboards.next(null)}};e.\u0275fac=function(i){return new(i||e)(c(Z),c(_),c(x),c(W))},e.\u0275cmp=g({type:e,selectors:[["sa-reporting-viewer-dashboards"]],standalone:!1,features:[R],decls:11,vars:7,consts:[["loadingDashboards",""],[1,"items-container","box"],[1,"d-flex"],[3,"name"],["transloco","reporting.your_dashboards.title"],["class","ms-auto",4,"ngIf"],[1,"content"],[4,"ngIf","ngIfElse"],["class","view-all","role","button","transloco","app.tables.pagination.load_more",3,"click",4,"ngIf"],[1,"ms-auto"],[1,"card-container","inline"],["class","row",4,"ngFor","ngForOf"],["class","empty",3,"innerHTML",4,"ngIf"],[1,"row"],[1,"col-10","name"],[3,"routerLink"],["target","_blank",3,"href"],[1,"col-2","d-flex","justify-content-end"],[1,"text-bubble"],[1,"empty",3,"innerHTML"],[3,"ghosts","type"],["role","button","transloco","app.tables.pagination.load_more",1,"view-all",3,"click"]],template:function(i,p){if(i&1&&(r(0,"div",1)(1,"h3",2),f(2,"sa-app-icon",3)(3,"span",4),u(4,Te,2,2,"span",5),a(),r(5,"div",6),u(6,Ee,4,3,"ng-container",7),d(7,"async"),u(8,je,1,4,"ng-template",null,0,$),a(),u(10,Oe,1,0,"a",8),a()),i&2){let I=V(9);o(2),m("name","comments"),o(2),m("ngIf",p.pagination.data_count),o(2),m("ngIf",h(7,5,p.tableData$))("ngIfElse",I),o(4),m("ngIf",p.tableData.length&&p.tableData.length<p.pagination.data_count)}},dependencies:[J,K,ne,se,te,he,Q,X,oe,me,ce],encapsulation:2,data:{animation:[M("fadeOut",ue()),M("fadeIn",fe())]}});let t=e;return t})();var ye=(()=>{let e=class e{constructor(n,i,p){this.dateTimeService=n,this.translate=i,this.userService=p,this.greetingText="app.nav.greetings.default"}ngOnInit(){this.name=this.userService.getName(!0),this.translate.selectTranslate(this.dateTimeService.getGreetingText()).pipe(j(1)).subscribe(n=>this.greetingText=n)}};e.\u0275fac=function(i){return new(i||e)(c(re),c(ie),c(_))},e.\u0275cmp=g({type:e,selectors:[["ng-component"]],standalone:!1,decls:9,vars:5,consts:[[1,"row","justify-content-center"],[1,"col-12","col-lg-10","my-3"],[1,"row","px-3"],[1,"row"],[1,"col-lg-6","col-sm-12","mx-auto"]],template:function(i,p){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1"),l(4),d(5,"truncate"),a()(),r(6,"div",3)(7,"div",4),f(8,"sa-reporting-viewer-dashboards"),a()()()()),i&2&&(o(4),y("",p.greetingText," ",G(5,2,p.name,18)))},dependencies:[De,le],encapsulation:2,changeDetection:0});let t=e;return t})();var Ue=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"",component:Se,children:[{path:"home",component:ye},{path:"reports/:surveyUID",loadChildren:()=>import("./chunk-VZ5TRB4G.js").then(t=>t.ReportsModule)},{path:"account",loadChildren:()=>import("./chunk-X5A6DC25.js").then(t=>t.AccountModule)},{path:"notfound",component:ve},{path:"**",redirectTo:"/notfound"}]}],_e=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=S({type:e}),e.\u0275inj=b({imports:[T.forChild(Ue),T]});let t=e;return t})();var Mt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=S({type:e}),e.\u0275inj=b({providers:[pe,x],imports:[de,_e,ge]}
1);let t=e;return t})();export{Mt as ReportingViewerPortalModule}; 2//# sourceMappingURL=chunk-7CFQ624Y.js.map
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.