1import{a as le}from"./chunk-VYTX7HS7.js";import{a as re}from"./chunk-KTAWQDIE.js";import{a as D}from"./chunk-2VRAAUPA.js";import"./chunk-C5CRZOJ5.js";import{a as oe}from"./chunk-EAVU6FKB.js";import{a as ne}from"./chunk-Y5PJK74Z.js";import{A as ee,Q as te,b as d,d as X,l as Y}from"./chunk-IFJTU6ME.js";import"./chunk-RKCOPN34.js";import{a as W}from"./chunk-ODTTGKMO.js";import"./chunk-QMMQVUFM.js";import"./chunk-LPN474UB.js";import"./chunk-3MD2RA4R.js";import{a as Q}from"./chunk-F23RLOLM.js";import{u as ie,v as ae}from"./chunk-2ZE24QFG.js";import{a as K,b as T}from"./chunk-NDNTYIQO.js";import"./chunk-BYXBJQAS.js";import{a as J}from"./chunk-UR3FAGYE.js";import"./chunk-QN6QO5YC.js";import"./chunk-Y3RG3PT7.js";import"./chunk-BM5GPCAY.js";import"./chunk-52IJE7X7.js";import"./chunk-4ABICL44.js";import"./chunk-MP6IWAIX.js";import{i as Z}from"./chunk-QV7PEWQ3.js";import"./chunk-X3TYSUAA.js";import"./chunk-DZLE6ECL.js";import{q as H,u as G}from"./chunk-J7VMM4IS.js";import{s as U,v as x}from"./chunk-LOYRB3VW.js";import{$b as r,Fc as b,Gc as I,Hc as M,Ia as B,Ja as P,Jc as j,Kc as O,Lb as f,Pb as m,Rb as E,Uc as _,Vc as y,Wb as S,Wc as q,Zb as F,_b as $,ac as l,bc as s,fc as L,ic as z,jc as p,mc as N,sb as a,tb as A,u as R,wc as c,xa as w,xc as C,yc as g,zc as V}from"./chunk-VMF3GCJ4.js";import"./chunk-6F4HVVOU.js";var k=x(te,t=>t.screenings??[]);var ge=x(k,ee,(t,o)=>[...t].sort((e,n)=>{let i=0;if(o.orderBy===d.title&&(i=e.firstTitle.localeCompare(n.firstTitle)),o.orderBy===d.startDateTime&&e.date&&n.date){let h=new Date(e.date).getTime(),v=new Date(n.date).getTime();if(i=h-v,i===0&&e.beginhour&&n.beginhour){let[ce,me]=e.beginhour.split(":").map(Number),[pe,de]=n.beginhour.split(":").map(Number);i=ce-pe||me-de}}o.orderBy===d.duration&&(i=e.duration-n.duration),o.orderBy===d.venue&&e.venueName&&n.venueName&&(i=e.venueName.localeCompare(n.venueName));let u={all_delegates:1,restricted:2,requests_only:3};if(o.orderBy===d.accessRights){let h=e.accessRights?.onlineScreenings?.accessType,v=n.accessRights?.onlineScreenings?.accessType;!h&&!v?i=0:h?v?i=u[h]-u[v]:i=-1:i=1}return o.sortOrder===W.asc?i:-i})),se=x(ge,D("marketScreening"),(t,o)=>t.slice(o.currentPage*o.pageSize,(o.currentPage+1)*o.pageSize));var fe=(t,o)=>o.screeningId,_e=()=>[];function he(t,o){t&1&&c(0," All delegates ")}function ve(t,o){if(t&1&&(c(0),_(1,"AccessRightsValue")),t&2){let e=p(3).$implicit;g(" ",y(1,1,e==null||e.accessRights==null||e.accessRights.onlineScreenings==null?null:e.accessRights.onlineScreenings.restrictedAccess)," ")}}function Se(t,o){if(t&1&&(r(0,"span",33),f(1,he,1,0)(2,ve,2,3),l()),t&2){let e=p(2).$implicit;a(),S((e==null||e.accessRights==null||e.accessRights.onlineScreenings==null?null:e.accessRights.onlineScreenings.accessType)==="all_delegates"||!(!(e==null||e.accessRights==null||e.accessRights.onlineScreenings==null)&&e.accessRights.onlineScreenings.accessType)?1:2)}}function Ce(t,o){if(t&1&&f(0,Se,3,1,"span",33),t&2){let e=p().$implicit;S(e.accessRights&&(e.screeners||O(1,_e)).length>0?0:-1)}}function ye(t,o){if(t&1&&(r(0,"span",33),c(1),l()),t&2){let e=p().$implicit;a(),g(" ",(e==null||e.accessRights==null?null:e.accessRights.onsite)||""," ")}}function xe(t,o){if(t&1){let e=L();r(0,"tr"),s(1,"td",16),r(2,"td",17)(3,"div",18),s(4,"img",19),l()(),r(5,"td",20)(6,"div",21),s(7,"app-svg",22),r(8,"div",23)(9,"div",24)(10,"span",25),c(11),l(),r(12,"span",26),c(13),l()()()()(),r(14,"td",27)(15,"div",21),s(16,"app-svg",22),r(17,"div",28)(18,"span",29),c(19),_(20,"date"),l(),r(21,"span",30),c(22),l()()()(),r(23,"td",31)(24,"div",21),s(25,"app-svg",22),r(26,"div",32)(27,"span",33),c(28),l()()()(),r(29,"td",34)(30,"div",21),s(31,"app-svg",22),r(32,"div",32),f(33,Ce,1,2)(34,ye,2,1,"span",33),l()()(),r(35,"td",35)(36,"div",36)(37,"button",37),z("click",function(){let i=B(e).$implicit,u=p(2);return P(u.editScreening(i))}),s(38,"div",38),l()()()()}if(t&2){let e=o.$implicit;a(4),N("alt",e.logo==null?null:e.logo.alt),m("appImage",e.logo)("appImageFallback","/assets/img/ph_film2.svg"),a(3),m("id","table-separator")("height",40)("width",2)("classModifier","flex-none"),a(4),C(e.firstTitle),a(2),V(" ",e.by==null?null:e.by.firstname,"\xA0 ",e.by==null?null:e.by.lastname," "),a(3),m("id","table-separator")("height",40)("width",2)("classModifier","flex-none"),a(3),C(q(20,28,e.date,"mediumDate")),a(3),C(e.beginhour),a(3),m("id","table-separator")("height",40)("width",2)("classModifier","flex-none"),a(3),C(e.venueName),a(3),m("id","table-separator")("height",40)("width",2)("classModifier","flex-none"),a(2),S(e.canEdit?33:34),a(4),E("disabled",!e.canEdit)}}
1function De(t,o){if(t&1&&s(0,"app-pagination",15),t&2){let e,n=o;p(2);let i=M(2);m("totalItems",(e=i)!==null&&e!==void 0?e:0)("currentPage",n.currentPage)("pageSize",n.pageSize)("entry","marketScreening")}}function ke(t,o){if(t&1&&(r(0,"div",5)(1,"div",6)(2,"table")(3,"thead")(4,"tr"),s(5,"th",7)(6,"th",8),r(7,"th",9),s(8,"app-sortable-header",10),c(9),l(),r(10,"th",11),s(11,"app-sortable-header",10),c(12),l(),r(13,"th",12),s(14,"app-sortable-header",10),c(15),l(),r(16,"th",13),s(17,"app-sortable-header",10),c(18),l(),s(19,"th",14),l()(),r(20,"tbody"),F(21,xe,39,31,"tr",null,fe),l()()(),f(23,De,1,4,"app-pagination",15),_(24,"async"),l()),t&2){let e,n=o.$implicit,i=p(),u=M(0);a(8),m("column",i.companyDataColumnsEnum.title),a(),g(" ",n("Company.Markets.Title")," "),a(2),m("column",i.companyDataColumnsEnum.startDateTime),a(),g(" ",n("Company.Markets.StartDateTime")," "),a(2),m("column",i.companyDataColumnsEnum.venue),a(),g(" ",n("Company.Markets.Venue")," "),a(2),m("column",i.companyDataColumnsEnum.accessRights),a(),g(" ",n("Company.Markets.AccessRights")," "),a(3),$(u),a(2),S((e=y(24,9,i.pagination$))?23:-1,e)}}var nt=(()=>{class t{constructor(e){this.store=e,this.w100=!0,this.marketScreeningList$=this.store.select(se),this.totalItem$=this.store.select(k).pipe(R(n=>n?.length)),this.pagination$=this.store.select(D("marketScreening")),this.companyDataColumnsEnum=d,this.object=Object,this.store.dispatch(X.setPagination({currentPage:0,pageSize:10,entry:"marketScreening"})),this.store.dispatch(Y.requestScreenings())}editScreening(e){this.store.dispatch(K.prepare({id:T.editScreening,data:{[T.editScreening]:{screenerId:e.screenerId,screeningId:e.screeningId,screeners:e.screeners??[],accessRights:e.accessRights}}}))}static{this.\u0275fac=function(n){return new(n||t)(A(U))}}static{this.\u0275cmp=w({type:t,selectors:[["app-company-data-markets-screenings"]],hostVars:2,hostBindings:function(n,i){n&2&&E("w-100",i.w100)},standalone:!0,features:[j],decls:10,vars:6,consts:[[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-column","gap-8"],[1,"c-data","d-flex","flex-column","w-100"],[1,"container-tunnel-template","w-100","overflow-x-hidden","m-b-80"],["class","table-container",4,"transloco"],[1,"table-container"],[1,"scroll-x"],[1,"empty-col-left"],[1,"poster-col"],[1,"title-col"],[3,"column"],[1,"prod-status-col"],[1,"scr-lineup-col"],[1,"access-right-col"],[1,"actions-col"],[3,"totalItems","currentPage","pageSize","entry"],[1,"empty-col-left-cell"],[1,"poster-cell"],[1,"poster-film"],["width","77","height","100",3,"appImage","appImageFallback","alt"],[1,"title-cell"],[1,"d-flex","align-center"],[3,"id","height","width","classModifier"],[1,"user-info","gap-4","p-l-12"],[1,"d-flex","flex-column","gap-2"],[1,"c-title"],[1,"name","condensed","text-green-dark"],[1,"prod-status-cell"],[1,"job-details"],[1,"job-status","capitalize"],[1,"job-status"],[1,"scr-lineup-cell"],[1,"user-detail"],[1,"capitalize"],[1,"access-right-cell"],[1,"actions-cell"],[1,"action-buttons"],[1,"action-btn","for-screenings","edit","relative","h-100",3,"click"],[1,"icon"]],template:function(n,i){n&1&&(b(0),_(1,"async"),b(2),_(3,"async"),r(4,"div",0),s(5,"app-company-data-nav-markets"),r(6,"div",1)(7,"div",2)(8,"div",3),f(9,ke,25,11,"div",4),l()()()()),n&2&&(I(y(1,0,i.marketScreeningList$)),a(2),I(y(3,3,i.totalItem$)))},dependencies:[le,H,ae,Z,re,J,ie,oe,Q,G,ne],encapsulation:2,changeDetection:0})}}return t})();export{nt as CompanyDataMarketsScreeningsComponent};
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.