1import{$ as Ri,Y as rt,Z as Ai,_ as Hi,a as ji,aa as zi,b as Li,ba as Gi,ca as Ui,da as Qi}from"./chunk-7NGJDN6K.js";import{Ai as Ei,Bi as Ii,Cf as Si,Ci as Di,Di as Pi,Ei as Oi,Ff as wi,If as ki,Kf as Mi,Le as tt,Li as Vi,Ni as Fi,Oi as $i,Pi as Qe,Qi as _e,Ri as Ni,Ve as di,Ye as pi,bf as ci,ef as mi,hf as ze,if as it,jf as ui,kf as _i,lf as Ge,mf as fi,nf as ot,ng as Bi,of as nt,og as Ti,pf as gi,qf as Ci,rf as Ue,sf as hi,tf as at,uf as vi,vf as bi,wf as ue,xf as xi,yf as yi}from"./chunk-CX6YMSGX.js";import"./chunk-N442KJ26.js";import{g as li}from"./chunk-HLGHUSYN.js";import"./chunk-UXSVB27O.js";import{b as ri,c as si}from"./chunk-6QHIQXVW.js";import"./chunk-WOLCLZ6X.js";import"./chunk-4VXFLDGK.js";import"./chunk-YU7D5BMD.js";import"./chunk-NNXBHDOB.js";import"./chunk-536AK6C6.js";import{n as ni,t as ai}from"./chunk-CUX5BUFY.js";import"./chunk-GPHMGVSO.js";import"./chunk-ZLJGY27S.js";import"./chunk-M2TAWMPY.js";import"./chunk-2GWYYFMG.js";import{F as oi,M as He,P as Re,b as Le,g as Ae}from"./chunk-7OJ5M642.js";import"./chunk-JXRCXGW2.js";import"./chunk-L5WY7QGD.js";import"./chunk-UVKPBBPN.js";import"./chunk-2LJ3QLWH.js";import"./chunk-F3HWH7KS.js";import"./chunk-L7ZSVT3K.js";import"./chunk-UYJL52O5.js";import"./chunk-AR2TJAAO.js";import"./chunk-YWXKARGP.js";import{a as Rt}from"./chunk-NRIXG4OA.js";import"./chunk-E3H2SU7T.js";import"./chunk-6YP5NGSL.js";import"./chunk-EDWGO7OB.js";import"./chunk-MWWR7KL2.js";import"./chunk-7T3L6NU4.js";import"./chunk-4JKQ56WU.js";import{H as Zt,S as ei,_ as ti,ba as ii}from"./chunk-EBL63NO3.js";import"./chunk-FGF3ZRJZ.js";import"./chunk-NU4UMHZR.js";import{J as Gt,ba as Ut,ca as Ne,d as zt,da as Qt}from"./chunk-LKENTAGM.js";import"./chunk-EFIROY7Z.js";import"./chunk-J7GCEBBK.js";import"./chunk-EXAEX7DZ.js";import{j as ae,k as Vt}from"./chunk-CNX3QOJ6.js";import"./chunk-LNPBCZD5.js";import"./chunk-2MY6JKIH.js";import"./chunk-FOKGZF7R.js";import"./chunk-45VGL5U4.js";import{b as Xt}from"./chunk-2K4OH7IF.js";import{m as R,n as K}from"./chunk-XRUTMHKH.js";import"./chunk-7VMXNFDS.js";import{b as me}from"./chunk-GKOGE2IB.js";import"./chunk-5ITWCN6T.js";import{ta as Ot}from"./chunk-O5RUXMA4.js";import{$ as Jt,X as je,e as qt}from"./chunk-LNYOUNLW.js";import{a as pe,b as ce,ie as Kt,ue as Wt,we as Yt}from"./chunk-U3HKYUZR.js";import{p as $e}from"./chunk-KQNRDADQ.js";import"./chunk-ZJKNJ4US.js";import{J as de,j as Nt,l as jt,n as Lt,o as At,q as Fe,r as Ht}from"./chunk-77OBDGT4.js";import{a as re,b as se}from"./chunk-GXM435NX.js";import{M as Ve,b as Te,c as Ft,e as et,h as Ee,i as Ie,k as le,n as O,p as De,r as $t,w as Pe,x as Oe}from"./chunk-FR6PHPIW.js";import{a as A,b as Mt,c as H,d as Bt}from"./chunk-LAM65DIC.js";import{p as P,s as kt}from"./chunk-UALT4QK5.js";import{L as Pt,c as q,e as ne}from"./chunk-WFRYFWYB.js";import{i as It,j as Dt,l as Ze}from"./chunk-ZZCPUYJK.js";import"./chunk-SMQD2KGU.js";import{$b as xe,Ac as m,Ae as St,Bc as r,Bd as xt,Cc as s,Cd as ke,Dc as u,E as _t,Ea as f,Ee as wt,Fe as Q,Hb as a,Hc as ht,Ic as vt,Ie as Me,J as ft,Jc as Je,Je as oe,Kd as l,Kh as Be,Ld as d,Ma as h,Md as D,Mg as L,Na as v,Nc as S,O as G,Pd as he,Sd as yt,Ua as I,Uc as b,Wc as p,Yb as M,Zb as be,cc as k,dd as J,ed as Se,fd as j,hd as we,id as _,jd as x,kd as y,ld as Ce,m as ut,n as Z,na as ee,q as ge,r as W,ra as gt,tc as g,uc as Ct,vc as C,vd as Xe,vh as Tt,wd as bt,wi as Et,x as $,xc as ye,xh as B,ya as N,yc as te,yd as U,yh as T,z,za as ve,zb as Y,zc as ie}from"./chunk-PWVL2XWU.js";import"./chunk-BCYZMV3Z.js";import{a as V,b as F}from"./chunk-RDWB2H4N.js";var qi=(()=>{class t{constructor(){this.store=f(P),this.isIQMode=f(q)}canActivate(){return this.isIQMode?(this.store.dispatch(Ti({result:!0})),!0):(this.store.dispatch(Bi()),this.store.select(Fi).pipe(ft(e=>e),$(()=>!0)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var oo=(t,n)=>["..",t,n];function no(t,n){t&1&&(u(0,"i",4),l(1,"transloco")),t&2&&m("ngbTooltip",d(1,1,"Dataviv.Edition.access_view_info_no_password"))}function ao(t,n){if(t&1&&(r(0,"span",6),_(1),s()),t&2){let e=p();a(),x(e.boardIndex)}}function ro(t,n){t&1&&(u(0,"i",4),l(1,"transloco")),t&2&&m("ngbTooltip",d(1,1,"Dataviv.Edition.access_view_info_no_password"))}function so(t,n){if(t&1&&(r(0,"div",20),l(1,"transloco"),u(2,"dtv-ed-ui-share-board-button",25),s()),t&2){let e=p(2);m("ngbTooltip",d(1,2,"Dataviv.Edition.share_view")),a(2),m("boardInfo",e.boardInfo)}}function lo(t,n){if(t&1){let e=S();r(0,"div",19),b("click",function(o){return h(e),o.stopPropagation(),v(o.preventDefault())}),g(1,ro,2,3,"i",4),g(2,so,3,4,"div",20),r(3,"button",21),l(4,"transloco"),b("click",function(){h(e);let o=p();return v(o.duplicate.emit())}),u(5,"i",22),s(),r(6,"button",21),l(7,"transloco"),b("click",function(){h(e);let o=p();return v(o.substituteVariable.emit())}),u(8,"i",23),s(),r(9,"button",21),l(10,"transloco"),b("click",function(){h(e);let o=p();return v(o.delete.emit())}),u(11,"i",24),s()()}if(t&2){let e=p();a(),C((e.accessRight===0||e.boardInfo.bypassRestrictedResultsAccess)&&e.smallCard?1:-1),a(),C(e.isIQMode?-1:2),a(),m("ngbTooltip",d(4,5,"Dataviv.Edition.clone_board")),a(3),m("ngbTooltip",d(7,7,"Dataviv.Edition.substitute_variable")),a(3),m("ngbTooltip",d(10,9,"Dataviv.Edition.delete_view"))}}function po(t,n){if(t&1){let e=S();
1u(0,"span",27,2),r(2,"button",28),b("click",function(o){h(e);let c=p(2);return o.stopPropagation(),o.preventDefault(),v(c.isRenaming=!0)}),u(3,"i",29),s()}if(t&2){let e=p(2);m("title",e.boardInfo.name)("innerHtml",e.boardInfo.name||"---",Y)}}function co(t,n){if(t&1){let e=S();r(0,"sol-inline-editor",30),b("valueChanged",function(o){h(e);let c=p(2);return v(c.onNameChanged(o))})("click",function(o){return h(e),o.stopPropagation(),v(o.preventDefault())})("cancel",function(){h(e);let o=p(2);return v(o.isRenaming=!1)}),s()}if(t&2){let e=p(2);m("value",e.boardInfo.name||"---")("required",!0)("saveAuto",!1)}}function mo(t,n){if(t&1&&(r(0,"p",10),g(1,po,4,2)(2,co,1,3,"sol-inline-editor",26),s()),t&2){let e=p();a(),C(e.isRenaming?2:1)}}function uo(t,n){if(t&1&&u(0,"p",11),t&2){let e=p();m("innerHtml",e.boardInfo.name||"---",Y)}}function _o(t,n){if(t&1&&(r(0,"span",38),l(1,"toHexadecimal"),_(2),l(3,"uppercase"),s()),t&2){let e=n.$implicit;Se("background",D(1,3,e.color,"#")),a(2),x(d(3,6,e.name))}}function fo(t,n){if(t&1&&(r(0,"div",36),l(1,"transloco"),te(2,_o,4,8,"span",37,ye),s()),t&2){let e=p(3);j("pointer",e.isUserAllowed),m("ngbTooltip",d(1,4,"Dataviv.Edition.editTagsOnClick"))("disableTooltip",!e.isUserAllowed),a(2),ie(e.boardInfo.tags)}}function go(t,n){t&1&&(r(0,"span",35),l(1,"transloco"),u(2,"i",39),_(3),l(4,"transloco"),s()),t&2&&(m("ngbTooltip",d(1,2,"Dataviv.Edition.editTagsOnClick")),a(3),x(d(4,4,"Dataviv.Edition.tags")))}function Co(t,n){if(t&1){let e=S();r(0,"div",33),b("click",function(o){h(e);let c=p(2);return o.stopPropagation(),o.preventDefault(),v(c.enterEditTags())}),g(1,fo,4,6,"div",34)(2,go,5,6,"span",35),s()}if(t&2){let e=p(2);a(),C((e.boardInfo.tags==null?null:e.boardInfo.tags.length)>0?1:e.isUserAllowed?2:-1)}}function ho(t,n){if(t&1){let e=S();r(0,"div",32)(1,"sol-multiselect-tags",40),l(2,"transloco"),b("submitEdit",function(o){h(e);let c=p(2);return v(c.submitEdit(o))}),s()()}if(t&2){let e=p(2);a(),m("allTags",e.tags)("originTags",e.boardInfo.tags)("tooltip",d(2,3,"Dataviv.Edition.addTagMessage"))}}function vo(t,n){if(t&1&&g(0,Co,3,1,"div",31)(1,ho,3,5,"div",32),t&2){let e=p();C(e.isEditingTags?1:0)}}function bo(t,n){if(t&1&&(r(0,"span"),u(1,"fa-duotone-icon",41),r(2,"span",42),_(3),s(),_(4," \xA0 "),u(5,"fa-duotone-icon",43),r(6,"span",44),_(7),s(),_(8," \xA0 "),s()),t&2){let e=p();a(),m("icon",e.faDesktop),a(2),x(e.desktopPages),a(2),m("icon",e.faMobileScreen),a(2),x(e.mobilePages)}}function xo(t,n){if(t&1){let e=S();r(0,"sol-inline-editor",45),b("valueChanged",function(o){h(e);let c=p();return v(c.onNameChanged(o))})("cancel",function(){h(e);let o=p();return v(o.isRenaming=!1)}),s()}if(t&2){let e=p();m("value",e.boardInfo.name||"---")("required",!0)("saveAuto",!1)}}function yo(t,n){if(t&1&&(r(0,"span"),_(1),l(2,"transloco"),u(3,"br"),s()),t&2){let e=p(2);a(),Ce("",e.desktopPages," ",d(2,2,"Dataviv.Edition.count_desktop_page"))}}function So(t,n){if(t&1&&(r(0,"span"),_(1),l(2,"transloco"),u(3,"br"),s()),t&2){let e=p(2);a(),Ce("",e.desktopPages," ",d(2,2,"Dataviv.Edition.count_desktop_pages"))}}function wo(t,n){t&1&&(r(0,"span"),_(1),l(2,"transloco"),s()),t&2&&(a(),x(d(2,1,"Dataviv.Edition.no_mobile_pages")))}function ko(t,n){if(t&1&&(r(0,"span"),_(1),l(2,"transloco"),s()),t&2){let e=p(2);a(),Ce("",e.mobilePages," ",d(2,2,"Dataviv.Edition.count_mobile_page"))}}function Mo(t,n){if(t&1&&(r(0,"span"),_(1),l(2,"transloco"),s()),t&2){let e=p(2);a(),Ce("",e.mobilePages," ",d(2,2,"Dataviv.Edition.count_mobile_pages"))}}function Bo(t,n){if(t&1&&(g(0,yo,4,4,"span"),g(1,So,4,4,"span"),g(2,wo,3,3,"span"),g(3,ko,3,4,"span"),g(4,Mo,3,4,"span")),t&2){let e=p();C(e.desktopPages<=1?0:-1),a(),C(e.desktopPages>1?1:-1),a(),C(e.mobilePages<1?2:-1),a(),C(e.mobilePages===1?3:-1),a(),C(e.mobilePages>1?4:-1)}}var Ki=(()=>{class t{constructor(){this.isV4Mode=f(ne),this.isIQMode=f(q),this.nameChange=new I,this.duplicate=new I,this.substituteVariable=new I,this.delete=new I,this.updateTags=new I,this.isRenaming=!1,this.isEditingTags=!1,this.faDesktop=ai,this.faMobileScreen=ni,this.dtvEditorRoute=Pt}get desktopPages(){return this.boardInfo.pageCountByDevice.Desktop?this.boardInfo.pageCountByDevice.Desktop:0}get mobilePages(){return this.boardInfo.pageCountByDevice.Mobile?this.boardInfo.pageCountByDevice.Mobile:0}enterEditTags(){this.isUserAllowed&&(this.isEditingTags=!0)}onNameChanged(e){this.isRenaming=!1,this.nameChange.emit(e)}submitEdit(e){e&&this.updateTags.emit({boardIds:[this.boardInfo.id],addedTags:e.addedTags,removedTags:e.removedTags}),this.isEditingTags=!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["dtv-ed-ui-board-card"]],inputs:{boardInfo:"boardInfo",smallCard:"smallCard",isUserAllowed:"isUserAllowed",accessRight:"accessRight",boardIndex:"boardIndex",showIndex:"showIndex",tags:"tags"},outputs:{nameChange:"nameChange",duplicate:"duplicate",substituteVariable:"substituteVariable",delete:"delete",updateTags:"updateTags"},decls:25,vars:28,consts:[["rename",""],["tooltipDeviceContent",""],["boardName",""],[1,"card","media","middle","board-card",3,"routerLink","target"],["container","body",1,"secure-access","far","fa-lock-open","text-danger",3,"ngbTooltip"],[1,"media-left","text-center"],[1,"index","fw-bold"],[1,"media-body"],[1,"panel-control","m-0","p-0"],[1,"btn-group","pe-1"],[1,"fs-16","mt-3","pt-3","overflow-hidden","text-thin","board-name","pe-3","mb-0","fw-600"],[1,"fs-16","mt-3","pt-4","overflow-hidden","text-truncate","text-thin","board-name","line-height-130",3,"innerHtml"],[1,"text-black-50","overflow-hidden","text-truncate","m-0","board-description","pe-3",3,"innerHtml"],[1,"row","w-100","ms-0","pe-2","pb-2","pt-1"],[1,"col-8","ps-0","pe-3","overflow-hidden","text-truncate","text-gray"],[1,"far","fa-clock-rotate-left"],["container","body",1,"pe-3",3,"ngbTooltip"],[1,"col-4","p-0","text-end"],["container","body","tooltipClass","device-page-count-tooltip",3,"ngbTooltip"],[1,"btn-group","pe-1",3,"click"],["container","body",1,"btn-default",3,"ngbTooltip"],["type","button","container","body",1,"btn","btn-default","px-1","pb-1","text-gray",3,"click","ngbTooltip"],[1,"far","fa-clone"],[1,"far","fa-object-subtract"],[1,"far","fa-tras
1h"],[3,"boardInfo"],[3,"value","required","saveAuto"],[1,"pt-2","text-truncate",3,"title","innerHtml"],[1,"rename","ms-1","pt-2","px-2","pb-1","btn","btn-link",3,"click"],[1,"far","fa-pencil"],[3,"valueChanged","click","cancel","value","required","saveAuto"],[1,"d-flex","tags-container","flex-wrap","me-3"],[1,"me-3"],[1,"d-flex","tags-container","flex-wrap","me-3",3,"click"],[1,"tags","w-100","h-100","pb-1","d-flex","flex-wrap","align-items-center",3,"pointer","ngbTooltip","disableTooltip"],[1,"add-tags","p-2","my-auto","pointer",3,"ngbTooltip"],[1,"tags","w-100","h-100","pb-1","d-flex","flex-wrap","align-items-center",3,"ngbTooltip","disableTooltip"],[1,"tag","text-black","fw-bold","text-truncate",3,"background"],[1,"tag","text-black","fw-bold","text-truncate"],[1,"fa-solid","fa-plus","fa-xl","me-1"],[3,"submitEdit","allTags","originTags","tooltip"],["primaryColor","#A13AB0","secondaryColor","#D8A3E0",3,"icon"],[1,"ps-1",2,"color","#a13ab0"],["primaryColor","#B9367F","secondaryColor","#D283AF",3,"icon"],[1,"ps-1",2,"color","#b9367f"],[3,"valueChanged","cancel","value","required","saveAuto"]],template:function(i,o){if(i&1&&(r(0,"a",3),g(1,no,2,3,"i",4),r(2,"div",5),g(3,ao,2,1,"span",6),s(),r(4,"div",7)(5,"div",8),g(6,lo,12,11,"div",9),s(),g(7,mo,3,1,"p",10)(8,uo,1,1,"p",11),u(9,"p",12),g(10,vo,2,1),r(11,"div",13)(12,"div",14),u(13,"i",15),r(14,"span",16),l(15,"transloco"),_(16),l(17,"date"),s()(),r(18,"div",17)(19,"span",18),g(20,bo,9,4,"span"),s()()()()(),k(21,xo,1,3,"ng-template",null,0,he)(23,Bo,5,5,"ng-template",null,1,he)),i&2){let c=J(24);j("media-sm",o.smallCard),m("routerLink",o.isUserAllowed&&!o.isEditingTags?ke(25,oo,o.dtvEditorRoute,o.boardInfo.id):null)("target",o.isV4Mode?"_parent":"_self"),a(),C((o.accessRight===0||o.boardInfo.bypassRestrictedResultsAccess)&&!o.smallCard?1:-1),a(),j("text-white",!o.smallCard)("sol4-bg",!o.smallCard&&o.isV4Mode)("move",o.showIndex),a(),C(o.showIndex?3:-1),a(3),C(o.isUserAllowed?6:-1),a(),C(o.isUserAllowed?7:8),a(2),m("innerHtml",o.boardInfo.description+"\xA0",Y),a(),C(o.smallCard?-1:10),a(4),m("ngbTooltip",d(15,20,"Dataviv.Edition.date_last_edit_access")),a(2),y(" ",D(17,22,o.boardInfo.saveDate,"short")||"-"," "),a(3),m("ngbTooltip",c),a(),C(o.boardInfo.pageCountByDevice?20:-1)}},dependencies:[de,Ai,Dt,Zt,T,ii,Xt,oe,B,Me,$e],styles:["[_nghost-%COMP%] .text-danger{color:#ff0b0b!important}[_nghost-%COMP%] .k-multiselect{max-height:3.3rem!important}[_nghost-%COMP%] .media{display:table;width:100%;table-layout:fixed;position:relative;border:1px solid var(--main-content-bg);margin-top:15px;margin-bottom:10px;border-radius:10px}[_nghost-%COMP%] .media .media-left{width:22px;display:table-cell;vertical-align:middle;border-bottom-left-radius:8px;border-top-left-radius:8px;background-color:#c785d0}[_nghost-%COMP%] .media .media-left.move{cursor:move!important}[_nghost-%COMP%] .media .media-left .icon-circle{border-radius:50%}[_nghost-%COMP%] .media .media-left .index{margin-top:-10px;font-size:.75rem}[_nghost-%COMP%] .media .media-left .fa-chart-area{font-size:1.29375rem}[_nghost-%COMP%] .media .rename{visibility:hidden}[_nghost-%COMP%] .media:hover{border-color:#a13ab0!important;box-shadow:2px 2px 4px #00000026}[_nghost-%COMP%] .media:hover .rename{visibility:visible}[_nghost-%COMP%] .media:hover .media-left{background-color:#a13ab0}[_nghost-%COMP%] .media:hover .board-name span{text-decoration:underline}[_nghost-%COMP%] .media:hover .add-tags{visibility:visible}[_nghost-%COMP%] .media .media-body{width:100%;display:table-cell;padding-left:.75rem;max-height:10.625rem}[_nghost-%COMP%] .media .media-body .btn-default{width:1.5rem;height:1.5rem;border-radius:.25rem;padding-top:.1rem}[_nghost-%COMP%] .media .media-body .btn-default:hover{background-color:#f7f7f7}[_nghost-%COMP%] .media .media-body .btn-group{padding-top:.35rem}[_nghost-%COMP%] .media .media-body dtv-ed-ui-share-board-button button{padding:.25rem;padding-top:0!important}[_nghost-%COMP%] .media .media-body .board-name{min-height:2.3rem;display:flex}[_nghost-%COMP%] .media .media-body .board-name a{overflow:hidden;text-overflow:ellipsis;color:#000}[_nghost-%COMP%] .media .media-body .board-name sol-inline-editor{display:block;flex-grow:1}[_nghost-%COMP%] .media .media-body .board-description{font-size:.8121875rem}[_nghost-%COMP%] .media .media-body a, [_nghost-%COMP%] .media .media-body .btn-link{color:#4d5155}[_nghost-%COMP%] .media .media-body sol-multiselect-tags, [_nghost-%COMP%] .media .media-body .k-multiselect{width:100%}[_nghost-%COMP%] .media .media-body .tags-container span.tag{padding:.125rem .3rem;border-radius:.2rem;margin-right:.3125rem;margin-top:.1rem;margin-bottom:.1rem;line-height:normal}[_nghost-%COMP%] .media .media-body .tags-container, [_nghost-%COMP%] .media .media-body .k-multiselect{height:3.3rem}[_nghost-%COMP%] .media .media-body .tags, [_nghost-%COMP%] .media .media-body .k-multiselect{overflow-y:auto}[_nghost-%COMP%] .media .media-body .tags{font-size:10px}[_nghost-%COMP%] .media .media-body .tags.pointer:hover, [_nghost-%COMP%] .media .media-body .add-tags:hover{background-color:#f8f9fa}[_nghost-%COMP%] .media .media-body .text-gray{color:#666}[_nghost-%COMP%] .media .panel-control{position:absolute;height:auto;right:0;top:0}[_nghost-%COMP%] .media .secure-access{margin:12px 0 0 46px;position:absolute}[_nghost-%COMP%] .media.media-sm .media-left{width:70px;color:#fff}[_nghost-%COMP%] .media.media-sm .secure-access{margin:5px 4px;position:relative}[_nghost-%COMP%] .media.media-sm .media-body{padding:5px 5px 5px 12px}[_nghost-%COMP%] .media.media-sm .media-body .panel-control{position:relative;float:right}[_nghost-%COMP%] .media.media-sm .media-body .board-name{min-height:auto;padding-top:0!important;margin-top:0!important}[_nghost-%COMP%] .media.media-sm .media-body .board-description{height:auto!important;white-space:nowrap!important}[_nghost-%COMP%] .media .add-tags{visibility:hidden}[_nghost-%COMP%] ul{list-style-type:none;padding:0;margin:0}[_nghost-%COMP%] ul li{padding-top:.375rem;padding-bottom:.375rem;cursor:pointer}[_nghost-%COMP%] ul li i{margin-right:.625rem}[_nghost-%COMP%] ul li:hover{background-color:#f8f9fa}[_nghost-%COMP%] .popover-body{padding:.25rem .625rem;width:12rem}"],changeDetection:0})}}return t})();var Wi=(()=>{class t{transform(e){return e==="saveDate"?"Dataviv.Edition.date_last_edit_access":e==="creationDate"?"Dataviv.Edition.date_creation":e==="boardIndex"?"Dataviv.Edition.view_sort_
1customized":"Dataviv.Edition.view_name"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=xe({name:"searchOrder",type:t,pure:!0})}}return t})();function Eo(t,n){if(t&1&&(r(0,"span"),l(1,"toHexadecimal"),_(2),l(3,"uppercase"),s()),t&2){let e=n.$implicit;we("tag-"+d(1,3,e.color)),a(2),x(d(3,5,e.name))}}function Io(t,n){if(t&1&&(r(0,"span",35),l(1,"toHexadecimal"),_(2),l(3,"uppercase"),s()),t&2){let e=n.$implicit;Se("background",D(1,3,e.color,"#")),a(2),x(d(3,6,e.name))}}function Do(t,n){if(t&1){let e=S();r(0,"div",26)(1,"div",28)(2,"span"),_(3),l(4,"transloco"),s()(),r(5,"div")(6,"span",29)(7,"kendo-multiselect",30,0),k(9,Eo,4,7,"ng-template",31)(10,Io,4,8,"ng-template",32),s(),r(11,"button",33),b("click",function(){h(e);let o=J(8),c=p();return v(c.handleToggleClick(o))})("mousedown",function(o){return h(e),v(o.preventDefault())}),u(12,"span",34),s()()()()}if(t&2){let e=p();a(3),x(d(4,3,"Dataviv.Edition.tagFilter")),a(4),m("data",e.tags)("clearButton",!1)}}function Po(t,n){if(t&1){let e=S();r(0,"sol-select-culture",36),b("updateLanguage",function(o){h(e);let c=p();return v(c.cultureChanged.emit(o))}),s()}if(t&2){let e=p();m("projectCultures",e.projectCultures)("currentProjectCulture",e.currentProjectCulture)("caretDirection",1)}}var qe=class st{constructor(){this.cultureChanged=new I,this.optionsChanged=new I,this.searchForm=new le({useList:new O(null,null),order:new O(null,null),reverseOrder:new O(null,null),searchQuery:new O(null,null),tagsFilter:new O(null,null)})}set options(n){this.searchForm.setValue(n,{emitEvent:!1})}ngOnInit(){this.searchForm.valueChanges.pipe(ce(this)).subscribe(n=>this.optionsChanged.emit(n))}handleToggleClick(n){n.focus(),n.toggle()}static{this.\u0275fac=function(e){return new(e||st)}}static{this.\u0275cmp=M({type:st,selectors:[["dtv-ed-ui-toolbar"]],inputs:{currentProjectCulture:"currentProjectCulture",projectCultures:"projectCultures",options:"options",useList:"useList",tags:"tags"},outputs:{cultureChanged:"cultureChanged",optionsChanged:"optionsChanged"},decls:44,vars:43,consts:[["multiselect",""],[1,"clearfix"],[1,"navbar-form","mt-5",3,"formGroup"],[1,"display-toggle-btn","btn-group","pe-3"],["id","useCard","type","radio","formControlName","useList",1,"btn-check",3,"value"],["for","useCard",1,"btn","btn-light",3,"ngbTooltip"],[1,"far","fa-th"],["id","useList","type","radio","formControlName","useList",1,"btn-check",3,"value"],["for","useList","container","body",1,"btn","btn-light",3,"ngbTooltip"],[1,"far","fa-th-list"],[1,"btn-group","pe-3"],["ngbDropdown","",1,"btn-group"],["id","dropdownSort","ngbDropdownToggle","",1,"btn","btn-light"],["ngbDropdownMenu",""],["ngbDropdownItem",""],["type","radio","formControlName","order","value","saveDate"],["type","radio","formControlName","order","value","creationDate"],["type","radio","formControlName","order","value","name"],["type","radio","formControlName","order","value","boardIndex"],["id","reverseOrder","type","checkbox","formControlName","reverseOrder",1,"btn-check"],["for","reverseOrder",1,"btn","btn-light","m-0"],[1,"dropdown-caret","far"],[1,"filter-inputs","d-flex"],[1,"searchbox"],[1,"sol-search-input"],["type","text","solMatInput","","formControlName","searchQuery",1,"form-control",3,"placeholder"],[1,"tagsFilter","d-flex","align-items-center"],["placement","bottom-right",3,"projectCultures","currentProjectCulture","caretDirection"],[1,"me-1"],[1,"position-relative"],["valueField","name","textField","name","formControlName","tagsFilter",3,"data","clearButton"],["kendoMultiSelectTagTemplate",""],["kendoMultiSelectItemTemplate",""],["type","button","unselectable","on","aria-label","Select",1,"toggle-icon","k-input-button","k-button","k-icon-button","k-button-md","k-button-flat","k-button-flat-base","position-absolute",3,"click","mousedown"],["unselectable","on",1,"k-button-icon","k-font-icon","k-icon","k-i-caret-alt-down"],[1,"rounded-tag","text-black"],["placement","bottom-right",3,"updateLanguage","projectCultures","currentProjectCulture","caretDirection"]],template:function(e,i){e&1&&(r(0,"div",1)(1,"form",2)(2,"div",3),u(3,"input",4),r(4,"label",5),l(5,"transloco"),u(6,"i",6),s(),u(7,"input",7),r(8,"label",8),l(9,"transloco"),u(10,"i",9),s()(),r(11,"div",10)(12,"div",11)(13,"button",12),_(14),l(15,"searchOrder"),l(16,"transloco"),s(),r(17,"div",13)(18,"label",14),u(19,"input",15),_(20),l(21,"transloco"),s(),r(22,"label",14),u(23,"input",16),_(24),l(25,"transloco"),s(),r(26,"label",14),u(27,"input",17),_(28),l(29,"transloco"),s(),r(30,"label",14),u(31,"input",18),_(32),l(33,"transloco"),s()()(),u(34,"input",19),r(35,"label",20),u(36,"i",21),s()(),r(37,"div",22)(38,"div",23)(39,"div",24),u(40,"input",25),l(41,"transloco"),s()(),g(42,Do,13,5,"div",26),s(),g(43,Po,1,3,"sol-select-culture",27),s()()),e&2&&(a(),m("formGroup",i.searchForm),a(2),m("value",!1),a(),m("ngbTooltip",d(5,25,"Dataviv.Edition.card")),a(2),j("switch-not-checked",i.useList),a(),m("value",!0),a(),m("ngbTooltip",d(9,27,"Dataviv.Edition.table")),a(2),j("switch-not-checked",!i.useList),a(4),y(" ",d(16,31,d(15,29,i.searchForm.controls.order.value))," "),a(6),y(" ",d(21,33,"Dataviv.Edition.date_last_edit_access")," "),a(4),y(" ",d(25,35,"Dataviv.Edition.date_creation")," "),a(4),y(" ",d(29,37,"Dataviv.Edition.view_name")," "),a(4),y(" ",d(33,39,"Dataviv.Edition.view_sort_
1customized")," "),a(4),j("fa-sort-alpha-down-alt",i.searchForm.controls.reverseOrder.value&&i.searchForm.controls.order.value==="name")("fa-sort-alpha-down",!i.searchForm.controls.reverseOrder.value&&i.searchForm.controls.order.value==="name")("fa-sort-numeric-down-alt",i.searchForm.controls.reverseOrder.value&&i.searchForm.controls.order.value!=="name")("fa-sort-numeric-down",!i.searchForm.controls.reverseOrder.value&&i.searchForm.controls.order.value!=="name"),a(4),m("placeholder",d(41,41,"Dataviv.Edition.search")),a(2),C(i.useList?-1:42),a(),C(i.projectCultures.length>1?43:-1))},dependencies:[Ve,De,Ft,Te,$t,Ee,Ie,Oe,Pe,At,Lt,jt,Nt,qt,ti,T,Kt,Yt,Wt,de,B,Wi,$e,Me],styles:[".navbar-form[_ngcontent-%COMP%]{display:table}.navbar-form[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:table-cell}.input-group.floating[_ngcontent-%COMP%]{margin-bottom:0}@media(min-width:200px){.navbar-form[_ngcontent-%COMP%]{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}@media(min-width:932px){.searchbox[_ngcontent-%COMP%]{width:200px;margin-right:1rem}}@media(max-width:1050px){.searchbox[_ngcontent-%COMP%]{display:block}}@media(max-width:932px){.filter-inputs[_ngcontent-%COMP%]{display:block!important}}[_nghost-%COMP%] .k-multiselect{width:12.5rem;min-height:1.75rem}[_nghost-%COMP%] .k-multiselect .k-svg-icon{width:.75rem!important;height:.75rem!important}[_nghost-%COMP%] .k-multiselect kendo-taglist.k-input-values{padding-right:1.5rem}[_nghost-%COMP%] .k-multiselect .k-chip{border-radius:.2rem}[_nghost-%COMP%] .k-multiselect .k-chip:has(.tag-d5d8db){background-color:#d5d8db}[_nghost-%COMP%] .k-multiselect .k-chip:has(.tag-ffafcb){background-color:#ffafcb}[_nghost-%COMP%] .k-multiselect .k-chip:has(.tag-b3a7ef){background-color:#b3a7ef}[_nghost-%COMP%] .k-multiselect .k-chip:has(.tag-76dfb3){background-color:#76dfb3}[_nghost-%COMP%] .k-multiselect .k-chip:has(.tag-ff958d){background-color:#ff958d}[_nghost-%COMP%] .k-multiselect .k-chip:has(.tag-ffbb8a){background-color:#ffbb8a}[_nghost-%COMP%] .k-multiselect .k-chip:has(.tag-fff9ad){background-color:#fff9ad}[_nghost-%COMP%] .k-multiselect .k-chip:has(.tag-befeeb){background-color:#befeeb}[_nghost-%COMP%] .k-multiselect .k-chip:has(.tag-78b6df){background-color:#78b6df}.rounded-tag[_ngcontent-%COMP%]{border-radius:.2rem;padding:.2rem}.toggle-icon[_ngcontent-%COMP%]{position:absolute;right:0rem;z-index:2}.filter-inputs[_ngcontent-%COMP%]{margin-top:.125rem}"],changeDetection:0})}};qe=Z([pe()],qe);var Yi=(()=>{class t{constructor(){this.store=f(P),this.isIQMode=f(q),this.showConvertEurekaBoards=this.store.selectSignal(Gt),this.boardViewsFormats=Hi,this.autoAnalysis=Ri,this.importViews=yt(()=>{let e=this.showConvertEurekaBoards(),i=[Gi];return e&&i.push(zi),i})}onCardClicked(e){this.store.dispatch(ue({boardFormat:e,fromBlankState:!0}))}onImportCardClicked(e){e===li.Eureka?this.store.dispatch(ze()):this.isIQMode?this.store.dispatch(Ci()):this.store.dispatch(Ue())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["dtv-ed-ui-board-manager-blankstate"]],inputs:{blankstateTitle:"blankstateTitle",desc:"desc"},decls:20,vars:14,consts:[[1,"text-muted"],[1,"mt-4","mb-0","fw-bold"],["cardHeight","200px",3,"cardClicked","entries"],[1,"d-flex","flex-wrap"]],template:function(i,o){i&1&&(r(0,"h1"),_(1),s(),r(2,"span",0)(3,"i"),_(4),s()(),r(5,"h2",1),_(6),l(7,"transloco"),s(),r(8,"sol-card-selector",2),b("cardClicked",function(w){return o.onCardClicked(w)}),s(),r(9,"div",3)(10,"div")(11,"h2",1),_(12),l(13,"transloco"),s(),r(14,"sol-card-selector",2),b("cardClicked",function(w){return o.onCardClicked(w)}),s()(),r(15,"div")(16,"h2",1),_(17),l(18,"transloco"),s(),r(19,"sol-card-selector",2),b("cardClicked",function(w){return o.onImportCardClicked(w)}),s()()()),i&2&&(a(),y(" ",o.blankstateTitle,` 2`),a(3),x(o.desc),a(2),x(d(7,8,"Dataviv.Edition.views_cards.views_format_cards_title")),a(2),m("entries",o.boardViewsFormats),a(4),x(d(13,10,"Dataviv.Edition.views_cards.views_auto_cards_title")),a(2),m("entries",o.autoAnalysis),a(3),x(d(18,12,"Dataviv.Edition.views_cards.views_import_cards_title")),a(2),m("entries",o.importViews()))},dependencies:[ei,T,B],styles:["[_nghost-%COMP%] sol-card-selector div.card-selector{padding-top:0!important}"],changeDetection:0})}}return t})();var Oo=(t,n)=>
2({"col-md-6 col-sm-10 board-card-sm":t,"col-xl-3 col-lg-4 col-md-6":n}),Vo=(t,n)=>n.id;function Fo(t,n){t&1&&(r(0,"div",1),u(1,"sol-loader"),s())}function $o(t,n){t&1&&(u(0,"dtv-ed-ui-board-manager-blankstate",3),l(1,"transloco"),l(2,"transloco")),t&2&&m("blankstateTitle",d(1,2,"Dataviv.Edition.blankState.title"))("desc",d(2,4,"Dataviv.Edition.blankState.desc"))}function No(t,n){if(t&1){let e=S();r(0,"button",10),b("click",function(){h(e);let o=p(5);return v(o.openCreateWizard())}),u(1,"i",11),_(2),l(3,"transloco"),s()}if(t&2){let e=p(5);j("sol4-bg",e.isV4Mode),a(2),y("",d(3,3,"Dataviv.Edition.board_new")," ")}}function jo(t,n){t&1&&(r(0,"span",7),u(1,"i",12),_(2),l(3,"transloco"),s()),t&2&&(a(2),x(d(3,1,"Dataviv.Edition.access_not_allowed")))}function Lo(t,n){t&1&&Je(0)}function Ao(t,n){if(t&1){let e=S();r(0,"div",15),b("dragulaModelChange",function(o){h(e);let c=p(6);return v(c.collectionSorted(o))}),k(1,Lo,1,0,"ng-container",16),s()}if(t&2){p();let e=J(3),i=p(3);m("dragulaModel",i),a(),m("ngTemplateOutlet",e)}}function Ho(t,n){t&1&&Je(0)}function Ro(t,n){if(t&1&&(r(0,"div",14),k(1,Ho,1,0,"ng-container",16),s()),t&2){p();let e=J(3);a(),m("ngTemplateOutlet",e)}}function zo(t,n){if(t&1){let e=S();r(0,"div",17)(1,"dtv-ed-ui-board-card",18),l(2,"async"),b("updateTags",function(o){h(e);let c=p(7);return v(c.updateTags(o))})("nameChange",function(o){let c=h(e).$implicit,w=p(7);return v(w.nameChange(o,c))})("duplicate",function(){let o=h(e).$implicit,c=p(7);return v(c.duplicate(o))})("substituteVariable",function(){let o=h(e).$implicit,c=p(7);return v(c.substituteVariable(o))})("delete",function(){let o=h(e).$implicit,c=p(7);return v(c.delete(o))}),s()()}if(t&2){let e=n.$implicit,i=p(6).$implicit,o=p();m("ngClass",ke(10,Oo,i.searchOptions.useList,!i.searchOptions.useList)),a(),m("boardInfo",e)("isUserAllowed",i.isUserAllowed)("smallCard",i.searchOptions.useList)("accessRight",i.accessRight)("boardIndex",e.boardIndex+1)("showIndex",i.searchOptions.order==="boardIndex")("tags",d(2,8,o.tags$))}}function Go(t,n){if(t&1&&te(0,zo,3,13,"div",17,Vo),t&2){let e=p(4);ie(e)}}function Uo(t,n){if(t&1&&(g(0,Ao,2,2,"div",13)(1,Ro,2,1,"div",14),k(2,Go,2,0,"ng-template",null,0,he)),t&2){let e=p(4).$implicit;C(e.searchOptions.order==="boardIndex"&&e.isUserAllowed?0:1)}}function Qo(t,n){t&1&&(r(0,"div",14)(1,"div",19)(2,"div",20)(3,"h3",21),_(4),l(5,"transloco"),s()()()()),t&2&&(a(4),x(d(5,1,"Dataviv.Edition.no_board_found")))}function qo(t,n){if(t&1&&g(0,Qo,6,3,"div",14),t&2){let e=p(4).$implicit;C(e.searchOptions.searchQuery||e.searchOptions.tagsFilter.length>0?0:-1)}}function Ko(t,n){if(t&1){let e=S();r(0,"div",4)(1,"h1",5),_(2),l(3,"transloco"),s(),r(4,"div"),g(5,No,4,5,"button",6)(6,jo,4,3,"span",7),s()(),r(7,"dtv-ed-ui-toolbar",8),l(8,"async"),l(9,"async"),l(10,"async"),b("optionsChanged",function(o){h(e);let c=p(4);return v(c.updateOptions(o))})("cultureChanged",function(o){h(e);let c=p(4);return v(c.updateCulture(o))}),s(),u(11,"div",9),g(12,Uo,4,1)(13,qo,1,1)}if(t&2){let e=p(2),i=p().$implicit,o=p();a(2),x(d(3,8,"Dataviv.Edition.view_page_title")),a(3),C(i.isUserAllowed?5:6),a(2),m("projectCultures",d(8,10,o.projectCultures$))("currentProjectCulture",d(9,12,o.currentProjectCulture$))("options",i.searchOptions)("useList",i.searchOptions.useList)("tags",d(10,14,o.tags$)),a(5),C(e.length>0?12:13)}}function Wo(t,n){if(t&1&&(g(0,Ko,14,16),l(1,"async")),t&2){let e=p(3);C(d(1,1,e.loaded$)?0:-1)}}function Yo(t,n){if(t&1&&(g(0,$o,3,6,"dtv-ed-ui-board-manager-blankstate",3),l(1,"async"),Ct(2,Wo,2,3)),t&2){let e=p().$implicit,i=p();C(d(1,1,n.length===0&&!e.searchOptions.searchQuery&&e.searchOptions.tagsFilter.length===0&&i.loaded$)?0:2)}}function Jo(t,n){if(t&1&&(ht(0),u(1,"dtv-ed-ui-feedback-button"),g(2,Yo,3,3),l(3,"async"),vt()),t&2){let e,i=p();a(2),C((e=d(3,1,i.boardCollection$))?2:-1,e)}}var Xo=kt(Vi,Ei,$i,(t,n,e)=>({accessRight:t,searchOptions:n,isUserAllowed:e})),Ke=class lt{constructor(){this.store=f(P),this.isV4Mode=f(ne),this.duplicationStore=f(rt),this.tokenService=f(Ni),this.boardCollection$=this.store.select(Oi),this.tags$=this.store.select(Pi),this.loading$=this.store.select(Ii),this.loaded$=this.store.select(Di),this.configuration$=this.store.select(Xo),this.projectCultures$=this.store.select(Ut),this.currentProjectCulture$=this.store.select(Qt),_t(window,"beforeunload").pipe(ce(this),ee(()=>this.store.select(Ot))).subscribe(n=>{this.tokenService.releaseTokenBeacon(n)})}ngOnInit(){this.store.dispatch(ki()),this.store.dispatch(di()),this.store.dispatch(Si())}collectionSorted(n){let e=n.map(i=>i.id);this.store.dispatch(mi({orderedBoardIds:e}))}updateOptions(n){this.store.dispatch(Mi({options:n}))}updateCulture(n){this.store.dispatch(zt.updateSelectedProjectCulture({payload:n.iso}))}nameChange(n,e){let{id:i}=e;this.store.dispatch(ci({id:i,name:n}))}duplicate(n){this.duplicationStore.openDuplicateBoardDialog({boardId:n.id,fromEditor:!1})}substituteVariable(n){this.store.dispatch(Ge({boardId:n.id}))}delete(n){this.store.dispatch(pi({boardInfo:n}))}updateTags(n){this.store.dispatch(wi({tagsBoards:n}))}openCreateWizard(){this.store.dispatch(ue({fromBlankState:!1}))}static{this.\u0275fac=function(e){return new(e||lt)}}static{this.\u0275cmp=M({type:lt,selectors:[["dtv-ed-ui-manager-home"]],features:[U([rt])],decls:3,vars:4,consts:[["list",""],[1,"loading-wrapper"],[4,"ngrxLet"],[1,"col-auto",3,"blankstateTitle","desc"],[1,"d-flex","justify-content-between","align-items-center"],[1,"mb-0"],[1,"ms-3","btn","btn-primary","btn-lg","createView",3,"sol4-bg"],[1,"access_not_allowed"],[3,"optionsChanged","cultureChanged","projectCultures","currentProjectCulture","options","useList","tags"],[1,"mb-3"],[1,"ms-3","btn","btn-primary","btn-lg","createView",3,"click"],[1,"far","fa-plus","me-3"],[1,"far","fa-exclamation-triangle","pe-3"],["dragula","BOARDS",1,"row",3,"dragulaModel"],[1,"row"],["dragula","BOARDS",1,"row",3,"dragulaModelChange","dragulaModel"],[4,"ngTemplateOutlet"],[3,"ngClass"],[3,"updateTags","nameChange","duplicate","substituteVariable","delete","boardInfo","isUserAllowed","smallCard","accessRight","boardIndex","showIndex","tags"],[1,"col-md-8","offset-md-2"],[1,"border","bg-light","p-5"],[1,"text-center","mt-3"]],template:function(e,i){e&1&&(g(0,Fo,2,0,"div",1),l(1,"async"),k(2,Jo,4,3,"ng-container",2)),e&2&&(C(d(1,2,i.loading$)?0:-1),a(2),m("ngrxLet",i.configuration$))},dependencies:[Jt,Rt,Li,qe,si,ri,wt,St,Ki,T,Yi,Q,B],styles:["hr[_ng
2content-%COMP%]{border-color:#0000000d}#dataviv_comm[_ngcontent-%COMP%]{font-family:Calibri,Arial}#dataviv_comm[_ngcontent-%COMP%] div.desc[_ngcontent-%COMP%]{margin-top:50px;margin-bottom:50px}#dataviv_comm[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-top:50px;max-width:100%}[_nghost-%COMP%]{background-color:var(--main-content-bg);padding:var(--main-content-padding);min-height:var(--main-content-min-height)}[_nghost-%COMP%] p.blankstate-desc{max-width:430px}.access_not_allowed[_ngcontent-%COMP%]{color:#df5038;font-size:1.5rem}.btn-convert-eureka-views[_ngcontent-%COMP%]{text-decoration:underline;font-size:.7rem}"],changeDetection:0})}};Ke=Z([pe()],Ke);var Zo=[{path:"",component:Ke,canActivate:[ji,qi]}],Ji=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=be({type:t})}static{this.\u0275inj=ve({imports:[Ze.forChild(Zo),Ze]})}}return t})();var dt=(()=>{class t extends me{constructor(){super({eurekaBoardInfos:[]}),this.surveyService=f(_e),this.store=f(P),this.notificationService=f(K),this.fetchProjectAndCulture$=this.select(this.store.select(ae),this.store.select(Ne),(e,i)=>({projectName:e,culture:i})),this.eurekaBoardInfos$=this.select(e=>e.eurekaBoardInfos),this.addBoardInfos=this.updater((e,i)=>({eurekaBoardInfos:[...e.eurekaBoardInfos,...i]})),this.getBoardInfos=this.effect(()=>this.fetchProjectAndCulture$.pipe(ee(({projectName:e,culture:i})=>this.surveyService.fetchEurekaBoardsInfo(e,i).pipe(se({next:o=>this.addBoardInfos(o),error:o=>this.notificationService.showNotification(R.Error,null,L(o))})))))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=N({token:t,factory:t.\u0275fac})}}return t})();var en=t=>({value:t});function tn(t,n){if(t&1&&(r(0,"div",4),u(1,"input",5),r(2,"label",6),_(3),s()()),t&2){let e=n.$implicit;a(),m("id",Xe(e.id))("formControlName",e.id),a(),m("for",Xe(e.id)),a(),y(" ",e.label," ")}}function on(t,n){if(t&1&&(r(0,"form",2),te(1,tn,4,6,"div",4,ye),s()),t&2){let e=p();m("formGroup",e.form),a(),ie(n)}}function nn(t,n){if(t&1&&(r(0,"div",3),_(1),l(2,"transloco"),s()),t&2){let e=p();a(),y(" ",D(2,1,"Errors.MinSelected",xt(4,en,e.form.errors.min))," ")}}var We=class pt{constructor(){this.activeModal=f(Fe),this.eurekaBoardInfosStore=f(dt),this.eurekaBoardInfos$=this.eurekaBoardInfosStore.eurekaBoardInfos$,this.submitted=!1,this.form=new le({},Et(1))}ngOnInit(){this.eurekaBoardInfosStore.getBoardInfos(),this.eurekaBoardInfos$.pipe(ce(this)).subscribe(n=>this.addCheckboxes(n))}addCheckboxes(n){Object.keys(this.form.controls).forEach(i=>this.form.removeControl(i)),n.forEach(i=>this.form.addControl(i.id,new O(!1)))}submit(){if(this.submitted=!0,this.form.valid){let n=Object.keys(this.form.value).filter(e=>this.form.value[e]);this.activeModal.close(n)}}static{this.\u0275fac=function(e){return new(e||pt)}}static{this.\u0275cmp=M({type:pt,selectors:[["dtv-ed-ui-convert-eureka-board-dialog"]],features:[U([dt])],decls:10,vars:13,consts:[[3,"submit","close","title","submitText"],[1,"text-muted","ps-2","fst-italic"],[1,"row","pt-5",3,"formGroup"],[1,"text-danger"],[1,"col-6","pb-1"],["type","checkbox",3,"id","formControlName"],[1,"lang-label",3,"for"]],template:function(e,i){if(e&1&&(r(0,"sol-modal-layout",0),l(1,"transloco"),l(2,"transloco"),b("submit",function(){return i.submit()})("close",function(){return i.activeModal.dismiss()}),r(3,"div")(4,"span",1),_(5),l(6,"transloco"),s()(),g(7,on,3,1,"form",2),l(8,"async"),g(9,nn,3,6,"div",3),s()),e&2){let o;m("title",d(1,5,"Dataviv.Edition.convert_eureka_views"))("submitText",d(2,7,"Dataviv.Edition.convert")),a(5),y(" ",d(6,9,"Dataviv.Edition.convert_eureka_views_select")," "),a(2),C((o=d(8,11,i.eurekaBoardInfos$))?7:-1,o),a(2),C(i.form.invalid&&i.form.errors&&(i.form.dirty||i.form.touched||i.submitted)?9:-1)}},dependencies:[je,Ve,De,Te,Ee,Ie,Oe,Pe,T,Q,B],encapsulation:2,changeDetection:0})}};We=Z([pe()],We);var ct=(()=>{class t extends me{constructor(){super({boardInfos:[],loading:!1,gridState:{skip:0,take:10}}),this.boardService=f(Qe),this.store=f(P),this.notificationService=f(K),this.boardInfos$=this.select(e=>Be(e.boardInfos,e.gridState)),this.loading$=this.select(e=>e.loading),this.gridState$=this.select(e=>e.gridState),this.updateGridState=this.updater((e,i)=>F(V({},e),{gridState:i})),this.setLoading=this.updater((e,i)=>F(V({},e),{loading:i})),this.addBoardInfos=this.updater((e,i)=>F(V({},e),{boardInfos:[...e.boardInfos,...i],loading:!1})),this.setError=this.updater((e,i)=>(this.notificationService.showNotification(R.Error,null,i),F(V({},e),{boardInfos:[],loading:!1}))),this.getBoardInfos=this.effect(e=>e.pipe(re(()=>this.store.select(Ne)),ee(([i,o])=>this.boardService.fetchBoardInfos(i,o).pipe(se({next:c=>this.addBoardInfos(c),error:c=>this.setError(L(c))})))))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=N({token:t,factory:t.\u0275fac})}}return t})();function rn(t,n){if(t&1&&u(0,"span",7),t&2){let e=n.$implicit;m("innerHTML",e.name,Y)}}function sn(t,n){if(t&1&&(_(0),l(1,"date")),t&2){let e=n.$implicit;y(" ",D(1,1,e.lastEditionAccessDate,"short")," ")}}function ln(t,n){if(t&1&&u(0,"span",7),t&2){let e=n.$implicit;m("innerHTML",e.description,Y)}}function dn(t,n){if(t&1){let e=S();
2r(0,"kendo-grid",1),l(1,"async"),l(2,"async"),b("dataStateChange",function(o){h(e);let c=p();return v(c.dataStateChange(o))})("selectedKeysChange",function(o){h(e);let c=p();return v(c.boardsSelected.emit(o))}),u(3,"kendo-grid-checkbox-column",2),r(4,"kendo-grid-column",3),l(5,"transloco"),k(6,rn,1,1,"ng-template",4),s(),r(7,"kendo-grid-column",5),l(8,"transloco"),k(9,sn,2,4,"ng-template",4),s(),r(10,"kendo-grid-column",6),l(11,"transloco"),k(12,ln,1,1,"ng-template",4),s()()}if(t&2){let e=n,i=p();m("data",d(1,22,i.query$))("loading",d(2,24,i.loading$))("filterable",!0)("pageable",!0)("sortable",!0)("selectable",!0)("resizable",!0)("skip",e.skip)("pageSize",e.take)("sort",e.sort)("filter",e.filter)("height",450),a(3),m("width",50)("resizable",!1)("showSelectAll",!0),a(),m("width",300)("title",d(5,26,"Dataviv.Edition.view_name_2")),a(3),m("filterable",!1)("width",150)("title",d(8,28,"Dataviv.Edition.last_edition_date")),a(3),m("filterable",!1)("title",d(11,30,"Dataviv.Edition.edit_view_description"))}}var Xi=(()=>{class t{constructor(){this.boardInfosStore=f(ct),this.boardsSelected=new I,this.gridState$=this.boardInfosStore.gridState$,this.query$=this.boardInfosStore.boardInfos$,this.loading$=this.boardInfosStore.loading$}ngOnInit(){this.boardInfosStore.setLoading(!0),this.boardInfosStore.getBoardInfos(this.surveyName)}dataStateChange(e){this.boardInfosStore.updateGridState(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["dtv-ed-ui-board-list"]],inputs:{surveyName:"surveyName"},outputs:{boardsSelected:"boardsSelected"},features:[U([ct])],decls:2,vars:3,consts:[["kendoGridSelectBy","id",3,"data","loading","filterable","pageable","sortable","selectable","resizable","skip","pageSize","sort","filter","height"],["kendoGridSelectBy","id",3,"dataStateChange","selectedKeysChange","data","loading","filterable","pageable","sortable","selectable","resizable","skip","pageSize","sort","filter","height"],[3,"width","resizable","showSelectAll"],["field","name",3,"width","title"],["kendoGridCellTemplate",""],["field","lastEditionAccessDate",3,"filterable","width","title"],["field","description",3,"filterable","title"],[3,"innerHTML"]],template:function(i,o){if(i&1&&(g(0,dn,13,32,"kendo-grid",0),l(1,"async")),i&2){let c;C((c=d(1,1,o.gridState$))?0:-1,c)}},dependencies:[He,Re,Ae,oi,Le,T,Q,oe,B],styles:[".fa-circle.color-0[_ngcontent-%COMP%]{color:green}.fa-circle.color-1[_ngcontent-%COMP%]{color:red}.fa-circle.color-2[_ngcontent-%COMP%]{color:orange}[_nghost-%COMP%] td{cursor:pointer}"],changeDetection:0})}}return t})();var mt=(()=>{class t extends me{constructor(){super({surveyInfos:[],loading:!1,gridState:{skip:0,take:10}}),this.surveyService=f(_e),this.notificationService=f(K),this.surveyInfos$=this.select(e=>Be(e.surveyInfos,e.gridState)),this.loading$=this.select(e=>e.loading),this.gridState$=this.select(e=>e.gridState),this.updateGridState=this.updater((e,i)=>F(V({},e),{gridState:i})),this.setLoading=this.updater((e,i)=>F(V({},e),{loading:i})),this.addSurveyInfos=this.updater((e,i)=>F(V({},e),{surveyInfos:[...e.surveyInfos,...i],loading:!1})),this.setError=this.updater((e,i)=>(this.notificationService.showNotification(R.Error,null,i),F(V({},e),{surveyInfos:[],loading:!1}))),this.getSurveysInfo=this.effect(()=>this.surveyService.fetchSurveysInfo().pipe(se({next:e=>this.addSurveyInfos(e),error:e=>this.setError(L(e))})))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=N({token:t,factory:t.\u0275fac})}}return t})();var Zi=(()=>{class t{transform(e){return e.openStatus===tt.Open?"Dataviv.Edition.manager_survey_status_open":e.openStatus===tt.Closed?"Dataviv.Edition.manager_survey_status_closed":"Dataviv.Edition.manager_survey_status_outperiod"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=xe({name:"surveyStatus",type:t,pure:!0})}}return t})();function pn(t,n){if(t&1&&(u(0,"i",8),l(1,"surveyStatus"),l(2,"transloco")),t&2){let e=n.$implicit;we(bt("fas fa-circle color-",e.openStatus)),m("ngbTooltip",d(2,6,d(1,4,e)))}}function cn(t,n){if(t&1&&(_(0),l(1,"date")),t&2){let e=n.$implicit;y(" ",D(1,1,e.creationDate,"short")," ")}}function mn(t,n){if(t&1&&(_(0),l(1,"date")),t&2){let e=n.$implicit;y(" ",D(1,1,e.responseDate,"short")," ")}}function un(t,n){if(t&1){let e=S();
2r(0,"kendo-grid",1),l(1,"async"),l(2,"async"),b("dataStateChange",function(o){h(e);let c=p();return v(c.dataStateChange(o))})("selectedKeysChange",function(o){h(e);let c=p();return v(c.surveySelected.emit(o[0]))}),r(3,"kendo-grid-column",2),l(4,"transloco"),k(5,pn,3,8,"ng-template",3),s(),u(6,"kendo-grid-column",4),l(7,"transloco"),u(8,"kendo-grid-column",5),l(9,"transloco"),r(10,"kendo-grid-column",6),l(11,"transloco"),k(12,cn,2,4,"ng-template",3),s(),r(13,"kendo-grid-column",7),l(14,"transloco"),k(15,mn,2,4,"ng-template",3),s(),_(16," >"),s()}if(t&2){let e=n,i=p();m("data",d(1,25,i.query$))("loading",d(2,27,i.loading$))("filterable",!0)("pageable",!0)("sortable",!0)("selectable",!0)("resizable",!0)("skip",e.skip)("pageSize",e.take)("sort",e.sort)("filter",e.filter)("height",450),a(3),m("filterable",!1)("width",100)("title",d(4,29,"Dataviv.Edition.manager_survey_status")),a(3),m("title",d(7,31,"Dataviv.Edition.manager_survey_survey")),a(2),m("filterable",!1)("width",100)("title",d(9,33,"Dataviv.Edition.manager_survey_responses")),a(2),m("filterable",!1)("width",150)("title",d(11,35,"Dataviv.Edition.manager_survey_creationdate")),a(3),m("filterable",!1)("width",150)("title",d(14,37,"Dataviv.Edition.manager_survey_lastresponsedate"))}}var eo=(()=>{class t{constructor(){this.surveyInfosStore=f(mt),this.surveySelected=new I,this.gridState$=this.surveyInfosStore.gridState$,this.query$=this.surveyInfosStore.surveyInfos$,this.loading$=this.surveyInfosStore.loading$}ngOnInit(){this.surveyInfosStore.setLoading(!0),this.surveyInfosStore.getSurveysInfo()}dataStateChange(e){this.surveyInfosStore.updateGridState(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["dtv-ed-ui-survey-list"]],outputs:{surveySelected:"surveySelected"},features:[U([mt])],decls:2,vars:3,consts:[["kendoGridSelectBy","surveyName",3,"data","loading","filterable","pageable","sortable","selectable","resizable","skip","pageSize","sort","filter","height"],["kendoGridSelectBy","surveyName",3,"dataStateChange","selectedKeysChange","data","loading","filterable","pageable","sortable","selectable","resizable","skip","pageSize","sort","filter","height"],["field","openStatus","headerClass","text-center",1,"text-center",3,"filterable","width","title"],["kendoGridCellTemplate",""],["field","name",3,"title"],["field","recordsCount","headerClass","text-center",1,"text-center",3,"filterable","width","title"],["field","creationDate",3,"filterable","width","title"],["field","responseDate",3,"filterable","width","title"],["container","body",3,"ngbTooltip"]],template:function(i,o){if(i&1&&(g(0,un,17,39,"kendo-grid",0),l(1,"async")),i&2){let c;C((c=d(1,1,o.gridState$))?0:-1,c)}},dependencies:[He,Re,Ae,Le,de,T,Q,oe,B,Zi],styles:[".fa-circle.color-0[_ngcontent-%COMP%]{color:green}.fa-circle.color-1[_ngcontent-%COMP%]{color:red}.fa-circle.color-2[_ngcontent-%COMP%]{color:orange}[_nghost-%COMP%] td{cursor:pointer}"],changeDetection:0})}}return t})();function _n(t,n){if(t&1){let e=S();r(0,"div",2)(1,"dtv-ed-ui-survey-list",3),b("surveySelected",function(o){h(e);let c=p();return v(c.setCurrentSurvey(o))}),s()()}}function fn(t,n){if(t&1){let e=S();r(0,"div",4)(1,"div",5)(2,"span",6),_(3),l(4,"transloco"),s()(),r(5,"div",7)(6,"span",8),_(7),s(),r(8,"button",9),b("click",function(){h(e);let o=p();return v(o.clearSurvey())}),u(9,"i",10),_(10),l(11,"transloco"),s()()(),r(12,"div",2)(13,"dtv-ed-ui-board-list",11),b("boardsSelected",function(o){h(e);let c=p();return v(c.setSelectedBoards(o))}),s()()}if(t&2){let e=p();a(3),x(d(4,4,"Dataviv.Edition.survey")),a(4),x(e.form.controls.surveyName.value),a(3),y("\xA0",d(11,6,"Dataviv.Edition.change")," "),a(3),m("surveyName",e.form.controls.surveyName.value)}}var Ye=(function(t){return t[t.survey=0]="survey",t[t.view=1]="view",t})(Ye||{}),to=(()=>{class t{constructor(){this.activeModal=f(Fe),this.form=new le({surveyName:new O(null,et.required),boardIds:new O(null,et.required)})}ngOnInit(){this.status=Ye.survey}clearSurvey(){this.form.patchValue({surveyName:null,boardIds:null}),this.status=Ye.survey}setCurrentSurvey(e){this.form.patchValue({surveyName:e,boardIds:null}),this.status=Ye.view}setSelectedBoards(e){this.form.patchValue({boardIds:e})}submit(){this.form.valid&&this.activeModal.close(this.form.value)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["dtv-ed-ui-import-boards-dialog"]],decls:5,vars:5,consts:[[3,"submit","close","title","submitDisabled"],[1,"wrapper"],[1,"mt-3"],[3,"surveySelected"],[1,"row","align-items-center"],[1,"col-1"],[1,"text-start","fw-bold"],[1,"col-6"],[1,"text-primary","fw-bold","me-3"],[1,"btn","btn-link",3,"click"],[1,"fa","fa-edit"],[3,"boardsSelected","surveyName"]],template:function(i,o){i&1&&(r(0,"sol-modal-layout",0),l(1,"transloco"),b("submit",function(){return o.submit()})("close",function(){return o.activeModal.dismiss()}),r(2,"div",1),g(3,_n,2,0,"div",2)(4,fn,14,8),s()()),i&2&&(m("title",d(1,3,"Dataviv.Edition.import_views"))("submitDisabled",o.form.invali
2d),a(3),C(o.status===0?3:4))},dependencies:[je,eo,Xi,T,B],styles:[".wrapper[_ngcontent-%COMP%]{min-height:500px}"],changeDetection:0})}}return t})();var io=(()=>{class t{constructor(){this.actions$=f(Mt),this.store=f(P),this.boardService=f(Qe),this.surveyService=f(_e),this.notificationService=f(K),this.translateService=f(Tt),this.ngbModal=f(Ht),this.isV4Mode=f(ne),this.isIQMode=f(q),this.router=f(It),this.openSubstituteVariableDialog$=A(()=>this.actions$.pipe(H(Ge),z(({boardId:e})=>{let i=this.ngbModal.open(Qi,{size:"lg",backdrop:"static",centered:!0});return i.componentInstance.fromManager=!0,ge(i.result).pipe($(({sourceId:o,targetIds:c,createNewBoard:w})=>ot({boardId:e,sourceId:o,targetIds:c,createNewBoard:w})),G(()=>W(fi())))}))),this.substituteVariable$=A(()=>this.actions$.pipe(H(ot),re(()=>[this.store.select(ae)]),z(([{boardId:e,sourceId:i,targetIds:o,createNewBoard:c},w])=>this.boardService.substituteVariable(w,e,i,o,c).pipe($(fe=>nt({boardInfos:fe})),G(fe=>W(gi({error:L(fe)}))))))),this.afterSubstituteVariable$=A(()=>this.actions$.pipe(H(nt),gt(({boardInfos:e})=>{e?.length>0?this.notificationService.showNotification(R.Success,null,this.translateService.translate("Dataviv.Edition.substitution_success")):this.notificationService.showNotification(R.Error,null,this.translateService.translate("Dataviv.Edition.substitution_error"))})),{dispatch:!1}),this.openImportBoardsDialog$=A(()=>this.actions$.pipe(H(Ue),z(()=>{let e=this.ngbModal.open(to,{size:"xl",backdrop:"static",centered:!0});return ge(e.result).pipe($(({surveyName:i,boardIds:o})=>at({surveyName:i,boardIds:o})),G(()=>W(hi())))}))),this.importBoards$=A(()=>this.actions$.pipe(H(at),re(()=>[this.store.select(ae)]),z(([{surveyName:e,boardIds:i},o])=>this.boardService.importBoards(o,e,i).pipe($(c=>{if(c.length===1){let w=c[0].id,fe=["/projects",o,"dataviv","editor",w];this.isV4Mode?window.parent.location.href=c[0].urlReportingEdit:this.router.navigate(fe)}return vi({boardInfos:c})}),G(c=>W(bi({error:L(c)}))))))),this.openCreateBoardDialog$=A(()=>this.actions$.pipe(H(ue),z(({boardFormat:e,fromBlankState:i})=>{let o=this.ngbModal.open(Ui,{windowClass:"board-properties-dialog",backdrop:"static",centered:!0}),c=o.componentInstance;return c.boardFormat=e,c.fromBlankState=i,ge(o.result).pipe($(w=>(w.properties?.weighting?.itemInfo?.id===null&&(w.properties.weighting=null),yi({payload:w}))),G(()=>W(xi())))}))),this.openConvertEurekaBoardDialog$=A(()=>this.actions$.pipe(H(ze),z(()=>{let e=this.ngbModal.open(We,{backdrop:"static",centered:!0});return ge(e.result).pipe($(i=>it({boardIds:i})),G(()=>ut))}))),this.convertEurekaBoards$=A(()=>this.actions$.pipe(H(it),re(()=>[this.store.select(ae),this.store.select(Vt)]),z(([{boardIds:e},i])=>this.surveyService.convertEurekaBoards(i,e).pipe($(o=>{if(o.length===1){let c=o[0].id,w=["/projects",i,"dataviv","editor",c];this.isV4Mode||this.isIQMode?window.parent.location.href=o[0].urlReportingEdit:this.router.navigate(w)}return ui({boardInfos:o})}),G(o=>W(_i({error:L(o)})))))))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=N({token:t,factory:t.\u0275fac})}}return t})();var Rs=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=be({type:t})}static{this.\u0275inj=ve({imports:[Ji,Bt.forFeature([io])]})}}return t})();export{Rs as default};
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.