1import{a as L,b as De,c as Le}from"./chunk-V4MYFMT2.js";import{a as Ue,b as Be}from"./chunk-MQDCJZE3.js";import{b as G}from"./chunk-Y3CDIXTZ.js";import{a as Ee}from"./chunk-7O5KE4XQ.js";import{c as Se,d as Ie}from"./chunk-K3MUZP5Q.js";import"./chunk-BVCJYP5M.js";import"./chunk-JK6VBQRQ.js";import{a as $,b as K}from"./chunk-Z36TISWV.js";import"./chunk-V5JHT2G4.js";import"./chunk-WH6ILIPS.js";import{a as V}from"./chunk-LKIIPTIG.js";import{b as Te}from"./chunk-R2NO6V5K.js";import"./chunk-FV2Q4OA6.js";import"./chunk-QPZCEWML.js";import"./chunk-L44SDTPC.js";import"./chunk-CLQP3QCS.js";import"./chunk-TWVMK4TV.js";import"./chunk-EGNI2XJ3.js";import"./chunk-A3N634GV.js";import"./chunk-F457L6VT.js";import"./chunk-6BC3ZOBR.js";import"./chunk-4U4PLY73.js";import"./chunk-RQ4F2COW.js";import"./chunk-7RWCIHFI.js";import"./chunk-GP7G4HVV.js";import"./chunk-X5ROTD3U.js";import{a as Oe}from"./chunk-V4NS6LW3.js";import"./chunk-VFTYDXHH.js";import"./chunk-LJSWAOQY.js";import"./chunk-RFPVTC6I.js";import"./chunk-SPFBMSSO.js";import"./chunk-TZOYHBJT.js";import"./chunk-34KEMFZC.js";import{g as we,h as Pe}from"./chunk-4BUGZAA4.js";import"./chunk-3TCRHIAB.js";import"./chunk-76JNFTGE.js";import{Bb as oe,g as Y}from"./chunk-C7VFP4N4.js";import{b as Me,c as B,d as D}from"./chunk-CYMQMRSQ.js";import{E as ye,f as Ce,n as ke}from"./chunk-SAPP7HDL.js";import"./chunk-YJOTM47P.js";import{g as be,i as ve}from"./chunk-2PJAPLDY.js";import"./chunk-UQ5LDOFJ.js";import"./chunk-C2CO7BOS.js";import"./chunk-UVTXHEDZ.js";import{a as _e,g as H,h as he,i as xe,q as U,t as ne}from"./chunk-3APTCJCW.js";import"./chunk-KDTKTPR2.js";import"./chunk-TPWGF6XO.js";import{Ac as Z,Ad as ge,Bc as ee,Cb as o,Dc as O,Ha as pe,Ia as b,Ib as k,Ic as P,Ja as v,Jc as c,Ka as X,La as ce,Qc as W,Rc as j,Sc as z,Tb as S,Ua as q,Wc as te,Xc as m,Yb as _,Yc as h,Za as me,Zc as x,eb as ue,id as C,jd as E,kc as T,lc as p,nc as M,pd as u,qd as g,rd as I,sc as w,sd as ie,uc as fe,vc as R,wc as N,xc as l,yb as J,yc as d,zc as f}from"./chunk-MH4BPXDL.js";import"./chunk-E3LNTQT4.js";import{l as A}from"./chunk-CU44V7JF.js";var le=t=>({count:t}),We=(t,a)=>a.id;function je(t,a){if(t&1&&(l(0,"span",7),m(1),u(2,"translate"),d()),t&2){let i=c().$implicit,e=c();p("ngClass",e.getStatusClass(i.status)),o(),x(" ",g(2,2,"FEATURE_STATUS."+i.status)," ")}}function ze(t,a){if(t&1&&(l(0,"span",9),m(1),d()),t&2){let i=c().$implicit;o(),h(i.time)}}function He(t,a){if(t&1&&(m(0),u(1,"translate")),t&2){let i=c(2).$implicit;x(" ",I(1,1,"UPDATES.UPDATE_LIKE",E(4,le,i.likes||0))," ")}}function Ye(t,a){if(t&1&&(m(0),u(1,"translate")),t&2){let i=c(2).$implicit;x(" ",I(1,1,"UPDATES.UPDATE_LIKES",E(4,le,i.likes))," ")}}function $e(t,a){if(t&1){let i=O();l(0,"button",10),u(1,"translate"),P("click",function(n){b(i);let r=c().$implicit,s=c();return v(s.onToggleLike(n,r.id))}),f(2,"vds-icon",11),d(),l(3,"span",12),_(4,He,2,6)(5,Ye,2,6),d()}if(t&2){let i=c().$implicit;T("aria-pressed",!!i.liked)("aria-label",I(1,6,"UPDATES.UPDATE_LIKE",E(9,le,i.likes||0))),o(2),M("heart-icons--liked",i.liked),p("name",i.liked?"vds-heart-filled":"vds-heart"),o(2),w((i.likes||0)===1?4:5)}}function Ke(t,a){if(t&1){let i=O();l(0,"li",2),P("click",function(){let n=b(i).$implicit,r=c();return v(r.onItemActivate(n))})("keydown",function(n){let r=b(i).$implicit,s=c();return v(s.onItemKeydown(n,r))}),f(1,"vds-icon",3),l(2,"span",4),m(3),d(),l(4,"div",5)(5,"div",6),_(6,je,3,4,"span",7),d(),l(7,"div",8),_(8,ze,2,1,"span",9)(9,$e,6,11),d()()()}if(t&2){let i=a.$implicit,e=c();M("clickable-update-item",!!(i.video!=null&&i.video.url)),T("role",i.video!=null&&i.video.url?"button":null)("tabindex",i.video!=null&&i.video.url?0:null)("aria-label",i.video!=null&&i.video.url?i.text:null),o(),p("name",e.getItemIcon(i)),o(2),h(i.text),o(3),w(i.status?6:-1),o(2),w(e.isApproved(i)?8:9)}}var Fe=(()=>{let a=class a{constructor(){this.selectUpdateItem=new q,this.toggleLike=new q}isApproved(e){return e.status===L.COMPLETED}getItemIcon(e){return this.isApproved(e)?"vds-play-circle":e.video?.url?"vds-lock-closed":"vds-lock"}getStatusClass(e){switch(e){case L.PLANNED:return"status-badge--planned";case L.IN_PROGRESS:return"status-badge--in-progress";case L.TESTING:return"status-badge--testing";case L.COMPLETED:return"status-badge--completed";default:return""}}onItemActivate(e){e.video?.url&&this.selectUpdateItem.emit(e.id)}onItemKeydown(e,n){(e.key==="Enter"||e.key===" ")&&(e.key===" "&&e.preventDefault(),this.onItemActivate(n))}onToggleLike(e,n){e.stopPropagation(),this.toggleLike.emit(n)}};a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=S({type:a,selectors:[["app-platform-update-list"]],inputs:{item:"item"},outputs:{selectUpdateItem:"selectUpdateItem",toggleLike:"toggleLike"},decls:3,vars:0,consts:[[1,"platform-update-list"],[1,"update-item",3,"clickable-update-item"],[1,"update-item",3,"click","keydown"],["size","20",1,"item-icon",3,"name"],[1,"item-name"],[1,"item-meta"],[1,"item-tag"],[1,"status-badge",3,"ngClass"],[1,"item-trailing"],[1,"item-time"],["type","button",1,"heart-icon-container",3,"click"],["size","20",1,"heart-icons",3,"name"],[1,"item-likes"]],template:function(n,r){n&1&&(l(0,"ul",0),R(1,Ke,10,9,"li",1,We),d()),n&2&&(o(),N(r.item.updates))},dependencies:[U,H,D,B,Te],styles:[`@charset "UTF-8";.disable-text-copies{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies{-webkit-user-select:text!important;-moz-user-select:text!important;
1-ms-user-select:text!important;user-select:text!important}.icon-circle{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}:root{--001: #fefefe;--002: #f1f3f5}.theme-dark{--001: #16191e;--002: #22262e}:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}.platform-update-list{list-style:none;padding:0;margin:0}.platform-update-list .update-item{display:flex;flex-direction:row;align-items:center;gap:.5rem;min-height:2.75rem;padding:.625rem 1rem;box-sizing:border-box;background-color:#fefefe;color:#686f7a}.platform-update-list .update-item.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item,.theme-dark .platform-update-list .update-item{background-color:#16191e}.platform-update-list .update-item.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item,.theme-dark .platform-update-list .update-item{color:#c1c8d3}.platform-update-list .update-item.clickable-update-item{cursor:pointer}.platform-update-list .update-item:focus-visible{outline:.125rem solid;outline-offset:-.125rem;outline-color:#15beae}.platform-update-list .update-item:focus-visible.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item:focus-visible,.theme-dark .platform-update-list .update-item:focus-visible{outline-color:#129f91}.platform-update-list .update-item .item-icon{flex:0 0 1.25rem;width:1.25rem;height:1.25rem}.platform-update-list .update-item .item-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Inter,DM Sans,-apple-system,BlinkMacSystemFont,sans-serif;font-size:.75rem;line-height:1.125rem;font-weight:400;letter-spacing:0;color:#686f7a}.platform-update-list .update-item .item-name.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .item-name,.theme-dark .platform-update-list .update-item .item-name{color:#c1c8d3}.platform-update-list .update-item .item-meta{display:contents}.platform-update-list .update-item .item-tag{flex:0 0 6.5625rem;display:flex;justify-content:flex-end}.platform-update-list .update-item .item-trailing{flex:0 0 6.4375rem;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:.5rem}.platform-update-list .update-item .item-time,.platform-update-list .update-item .item-likes{flex:0 0 4.4375rem;width:4.4375rem;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-family:Inter,DM Sans,-apple-system,BlinkMacSystemFont,sans-serif;font-size:.75rem;line-height:1.125rem;font-weight:400;letter-spacing:0;color:#686f7a}.platform-update-list .update-item .item-time.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .item-time,.theme-dark .platform-update-list .update-item .item-time,.platform-update-list .update-item .item-likes.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .item-likes,.theme-dark .platform-update-list .update-item .item-likes{color:#c1c8d3}.platform-update-list .update-item .status-badge{display:inline-flex;align-items:center;justify-content:center;height:1.5rem;padding:.1875rem .5rem;box-sizing:border-box;white-space:nowrap;border-radius:9999px;font-family:Inter,DM Sans,-apple-system,BlinkMacSystemFont,sans-serif;font-size:.75rem;line-height:1rem;font-weight:500;letter-spacing:0}.platform-update-list .update-item .status-badge.status-badge--planned{background-color:#a2acbd33;color:#686f7a}.platform-update-list .update-item .status-badge.status-badge--planned.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .status-badge.status-badge--planned,.theme-dark .platform-update-list .update-item .status-badge.status-badge--planned{background-color:#a2acbd33}.platform-update-list .update-item .status-badge.status-badge--planned.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .status-badge.status-badge--planned,.theme-dark .platform-update-list .update-item .status-badge.status-badge--planned{color:#c1c8d3}.platform-update-list .update-item .status-badge.status-badge--in-progress{background-color:#3387ff33;color:#296bcb}.platform-update-list .update-item .status-badge.status-badge--in-progress.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .status-badge.status-badge--in-progress,.theme-dark .platform-update-list .update-item .status-badge.status-badge--in-progress{background-color:#3387ff33}.platform-update-list .update-item .status-badge.status-badge--in-progress.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .status-badge.status-badge--in-progress,.theme-dark .platform-update-list .update-item .status-badge.status-badge--in-progress{color:#a4c9ff}.platform-update-list .update-item .status-badge.status-badge--testing{background-color:#ffc90033;color:#ae8900}.platform-update-list .update-item .status-badge.status-badge--testing.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .status-badge.status-badge--testing,.theme-dark .platform-update-list .update-item .status-badge.status-badge--testing{background-color:#ffc90033}.platform-update-list .update-item .status-badge.status-badge--testing.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .status-badge.status-badge--testing,.theme-dark .platform-update-list .update-item .status-badge.status-badge--testing{color:#d2a501}.platform-update-list .update-item .status-badge.status-badge--completed{background-color:#16ca7533;color:#0e7d49}.platform-update-list .update-item .status-badge.status-badge--completed.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .status-badge.status-badge--completed,.theme-dark .platform-update-list .update-item .status-badge.status-badge--completed{background-color:#16ca7533}.platform-update-list .update-item .status-badge.status-badge--completed.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .status-badge.status-badge--completed,.theme-dark .platform-update-list .update-item .status-badge.status-badge--completed{color:#67dca5}.platform-update-list .update-item .heart-icon-container{display:flex;align-items:center;justify-content:center;padding:0;border:none;background:transparent;cursor:pointer}.platform-update-list .update-item .heart-icon-container:focus-visible{outline:.125rem solid;outline-offset:.125rem;outline-color:#15beae}.platform-update-list .update-item .heart-icon-container:focus-visible.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .heart-icon-container:focus-visible,.theme-dark .platform-update-list .update-item .heart-icon-container:focus-visible{outline-color:#129f91}.platform-update-list .update-item .heart-icon-container .heart-icons{display:flex;color:#a3acbd}.platform-update-list .update-item .heart-icon-container .heart-icons.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .heart-icon-container .heart-icons,.theme-dark .platform-update-list .update-item .heart-icon-container .heart-icons{color:#868f9d}.platform-update-list .update-item .heart-icon-container .heart-icons--liked{color:#18bbd3}.platform-update-list .update-item .heart-icon-container .heart-icons--liked.theme-dark,:host-context(.theme-dark) .platform-update-list .update-item .heart-icon-container .heart-icons--liked,.theme-dark .platform-update-list .update-item .heart-icon-container .heart-icons--liked{color:#139baf}@media screen and (max-width: 600px){.platform-update-list .update-item{flex-wrap:wrap;row-gap:.375rem;padding:.75rem 1rem}.platform-update-list .update-item .item-name{flex:1 1 auto;white-space:normal}.platform-update-list .update-item .item-meta{display:flex;flex:0 0 100%;align-items:center;gap:.5rem}.platform-update-list .update-item .item-tag,.platform-update-list .update-item .item-trailing{flex:0 0 auto;justify-content:flex-start}.platform-update-list .update-item .item-time,.platform-update-list .update-item .item-likes{flex:0 0 auto;width:auto;text-align:left}} 2`],encapsulation:2});let t=a;return t})();var Xe=()=>({width:"800px",height:"60px"}),qe=t=>({year:t}),Je=t=>({"no-border":t}),Ve=t=>({count:t}),Ze=()=>({width:"100%",height:"56px"}),et=()=>({width:"100%",height:"60px"}),tt=()=>({width:"100%",height:"300px"});function it(t,a){t&1&&f(0,"ngx-skeleton-loader",12),t&2&&p("count",3)("theme",C(2,Xe))}function nt(t,a){t&1&&f(0,"img",13)}function ot(t,a){t&1&&(l(0,"vds-text",14),m(1),u(2,"translate"),l(3,"strong"),m(4),u(5,"translate"),d(),m(6),u(7,"translate"),d()),t&2&&(o(),x(" ",g(2,3,"UPDATES.EXPLORE_TEXT_PART1")," "),o(3),h(g(5,5,"UPDATES.EXPLORE_TEXT_PART2")),o(2),x("",g(7,7,"
2UPDATES.EXPLORE_TEXT_PART3")," "))}function at(t,a){t&1&&(l(0,"div")(1,"vds-text",15)(2,"span",16),m(3),u(4,"translate"),d(),f(5,"br"),l(6,"span",17),m(7),u(8,"translate"),d(),l(9,"span",18),m(10),u(11,"translate"),d()()()),t&2&&(o(3),h(g(4,3,"UPDATES.UPDATES_DESCRIPTION")),o(4),h(g(8,5,"UPDATES.EASIER_LIFE_STRONG")),o(3),h(g(11,7,"UPDATES.EASIER_LIFE_YES")))}function rt(t,a){if(t&1&&(l(0,"div",19)(1,"vds-text",20)(2,"span",21),m(3),u(4,"translate"),d()()()),t&2){let i=c(2);o(3),h(I(4,1,"UPDATES.NEWS_YEAR_TITLE",E(4,qe,i.currentYear)))}}function lt(t,a){if(t&1&&(l(0,"div",24)(1,"vds-text",25)(2,"span",26),m(3),d()()()),t&2){let i=c().$implicit,e=c(2);p("ngClass",E(2,Je,i.year===e.currentYear.toString())),o(3),h(i.year)}}function st(t,a){t&1&&f(0,"mat-icon",39)}function dt(t,a){t&1&&f(0,"mat-icon",40)}function pt(t,a){if(t&1&&(Z(0),m(1),u(2,"translate"),ee()),t&2){let i=c(2).$implicit;o(),x(" ",I(2,1,"UPDATES.UPDATE_COUNT_ONE",E(4,Ve,i.updates.length))," ")}}function ct(t,a){if(t&1&&(m(0),u(1,"translate")),t&2){let i=c(2).$implicit;x(" ",I(1,1,"UPDATES.UPDATE_COUNT_OTHER",E(4,Ve,i.updates.length))," ")}}function mt(t,a){if(t&1){let i=O();l(0,"div",27)(1,"div",28),P("click",function(){b(i);let n=c().$implicit,r=c(2);return v(r.toggleSection(n))})("keydown",function(n){b(i);let r=c().$implicit,s=c(2);return v(s.onSectionKeydown(n,r))}),l(2,"div",29),_(3,st,1,0,"mat-icon",30)(4,dt,1,0,"mat-icon",31),l(5,"vds-text",32)(6,"span",33),m(7),d()()(),l(8,"vds-text",34)(9,"span",35),_(10,pt,3,6,"ng-container",36)(11,ct,2,6,"ng-template",null,1,ie),d()()(),l(13,"div",37)(14,"app-platform-update-list",38),P("selectUpdateItem",function(n){b(i);let r=c(3);return v(r.selectUpdateItem(n))})("toggleLike",function(n){b(i);let r=c(3);return v(r.toggleLike(n))}),d()()()}if(t&2){let i=te(12),e=c().$implicit,n=c(2);T("data-current-month",n.isCurrentMonthSection(e)?"true":null),o(),T("aria-expanded",e.expanded),o(2),p("ngIf",!e.expanded),o(),p("ngIf",e.expanded),o(3),h(e.month),o(3),p("ngIf",e.updates.length===1)("ngIfElse",i),o(3),M("is-expanded",e.expanded),o(),p("item",e)}}function ut(t,a){if(t&1&&(Z(0),_(1,lt,4,4,"div",22)(2,mt,15,10,"div",23),ee()),t&2){let i=a.$implicit,e=c(2);o(),p("ngIf",e.isYearItem(i)&&i.year!==e.currentYear.toString()),o(),p("ngIf",e.isUpdateSection(i))}}function ft(t,a){t&1&&f(0,"ngx-skeleton-loader",12),t&2&&p("count",5)("theme",C(2,Ze))}function gt(t,a){if(t&1){let i=O();l(0,"div",3),P("scrolled",function(){b(i);let n=c();return v(n.loadMoreUpdates())}),l(1,"div",4),_(2,it,1,3,"ngx-skeleton-loader",5)(3,nt,1,0,"img",6)(4,ot,8,9,"vds-text",7)(5,at,12,9,"div",8),l(6,"div",9),_(7,rt,5,6,"div",10)(8,ut,3,2,"ng-container",11)(9,ft,1,3,"ngx-skeleton-loader",5),d()()()}if(t&2){let i=c();p("infiniteScrollDistance",2),o(2),p("ngIf",i.isLoading&&i.showHeader),o(),p("ngIf",!i.isLoading&&i.showHeader),o(),p("ngIf",!i.isLoading&&i.showHeader),o(),p("ngIf",!i.isLoading&&i.showHeader),o(2),p("ngIf",!i.isLoading),o(),p("ngForOf",i.processedUpdatesData),o(),p("ngIf",i.isLoading)}}function _t(t,a){t&1&&f(0,"img",13)}function ht(t,a){t&1&&(l(0,"vds-text",14),m(1),u(2,"translate"),l(3,"strong"),m(4),u(5,"translate"),d()()),t&2&&(o(),x(" ",g(2,2,"NOTHING_TO_SHOW_1")," "),o(3),h(g(5,4,"NOTHING_TO_SHOW_2")))}function xt(t,a){t&1&&(l(0,"div")(1,"vds-text",15)(2,"span",18),m(3),u(4,"translate"),d()()()),t&2&&(o(3),h(g(4,1,"EMPTY_SHOW_UPDATES_TEXT")))}function bt(t,a){t&1&&(l(0,"div",44),f(1,"img",45),l(2,"span",46),m(3),u(4,"translate"),d()()),t&2&&(o(3),h(g(4,1,"EMPTY_SHOW_UPDATES_TEXT_IMG")))}function vt(t,a){if(t&1&&(l(0,"div",4),_(1,_t,1,0,"img",6)(2,ht,6,6,"vds-text",7)(3,xt,5,3,"div",8)(4,bt,5,3,"div",43),d()),t&2){let i=c(2);o(),p("ngIf",i.showHeader),o(),p("ngIf",i.showHeader),o(),p("ngIf",i.showHeader),o(),p("ngIf",!i.isLoading)}}function Ct(t,a){t&1&&f(0,"ngx-skeleton-loader",12),t&2&&p("count",3)("theme",C(2,et))}function kt(t,a){t&1&&f(0,"ngx-skeleton-loader",12),t&2&&p("count",1)("theme",C(2,tt))}function yt(t,a){if(t&1&&(l(0,"div",41),_(1,vt,5,4,"div",42)(2,Ct,1,3,"ngx-skeleton-loader",5)(3,kt,1,3,"ngx-skeleton-loader",5),d()),t&2){let i=c();o(),p("ngIf",!i.isLoading),o(),p("ngIf",i.isLoading),o(),p("ngIf",i.isLoading)}}var se=(()=>{let a=class a{get isEmpty(){return this.processedUpdatesData.length===0&&this.updatesData.length===0}constructor(e,n,r,s){this.cdRef=e,this.platformUpdatesService=n,this.videoDialog=r,this.hostRef=s,this.showHeader=!0,this.isTabVisible=!0,this.updatesData=[],this.processedUpdatesData=[],this.isLoading=!1,this.hasMoreUpdates=!0,this.lastUpdateItem=null}ngOnChanges(e){let n=e.isTabVisible;n&&!n.firstChange&&n.currentValue===!0&&this.scrollToCurrentMonthWhenVisible()}ngOnInit(){return A(this,null,function*(){let e=new Date;this.currentYear=e.getFullYear(),this.currentMonth=e.toLocaleStr
2ing("default",{month:"long"}),this.currentMonthNumber=e.getMonth()+1,yield this.loadUpdates()})}loadUpdates(e=null){return A(this,null,function*(){if(!(this.isLoading||!this.hasMoreUpdates)){this.isLoading=!0;try{let n=yield this.platformUpdatesService.getPlatformUpdatesFromCloudFunction({page_size:100,last_item:e}),r=n.data;this.lastUpdateItem=n.lastItem,this.hasMoreUpdates=n.hasMore,e?r.forEach(s=>{let y=this.updatesData.find(F=>F.year===s.year&&F.month===s.month);y?y.updates=[...y.updates,...s.updates]:this.updatesData.push(s)}):this.updatesData=r,this.generateProcessedUpdatesData(),e||this.scrollToCurrentMonthWhenVisible()}catch(n){console.error("Error fetching platform updates:",n)}finally{this.isLoading=!1,this.cdRef.detectChanges()}}})}loadMoreUpdates(){this.loadUpdates(this.lastUpdateItem)}generateProcessedUpdatesData(){this.processedUpdatesData=[];let e=[...this.updatesData].sort((r,s)=>{let y=parseInt(r.year),F=parseInt(s.year);if(y!==F)return y-F;let Q=a.MONTH_NAME_TO_NUMBER[r.month?.toLowerCase()]??0,Re=a.MONTH_NAME_TO_NUMBER[s.month?.toLowerCase()]??0;return Q-Re});this.expandCurrentMonth(e);let n="";for(let r of e)r.year!==n&&(this.processedUpdatesData.push({year:r.year}),n=r.year),this.processedUpdatesData.push(r)}expandCurrentMonth(e){if(!e?.length)return;for(let s of this.updatesData)s.expanded=!1;let r=e.find(s=>this.isCurrentMonthSection(s))??e.find(s=>s.updates?.length>0);r&&(r.expanded=!0)}scrollToCurrentMonthWhenVisible(){this.isTabVisible&&setTimeout(()=>this.scrollToCurrentMonthIfNeeded(),0)}scrollToCurrentMonthIfNeeded(){let n=this.hostRef.nativeElement.querySelector('[data-current-month="true"]');n&&n.scrollIntoView({behavior:"smooth",block:"start"})}isYearItem(e){return e.year!==void 0&&e.month===void 0}isCurrentMonthSection(e){return e.year!==this.currentYear.toString()?!1:a.MONTH_NAME_TO_NUMBER[e.month?.toLowerCase()]===this.currentMonthNumber}isUpdateSection(e){return e.month!==void 0}toggleSection(e){e.expanded=!e.expanded}onSectionKeydown(e,n){(e.key==="Enter"||e.key===" ")&&(e.key===" "&&e.preventDefault(),this.toggleSection(n))}selectUpdateItem(e){let n;for(let r of this.updatesData)if(n=r.updates.find(s=>s.id===e),n)break;n?.video?.url&&this.openVideoDialog(n)}openVideoDialog(e){this.videoDialog.open({videoUrl:e.video?.url??"",thumbnailUrl:e.video?.thumbnailUrl??"",title:e.video?.title??e.text})}toggleLike(e){for(let n of this.updatesData){let r=n.updates.findIndex(Q=>Q.id===e);if(r===-1)continue;let s=n.updates[r];if(s.status===L.COMPLETED)return;let y=!s.liked,F=y?(s.likes||0)+1:Math.max(0,(s.likes||0)-1);n.updates[r]=De.from({id:s.id,year:s.year,month:s.month,text:s.text,icon:s.icon,status:s.status,time:s.time,video:s.video,likes:F,created_at:Se.firestore.Timestamp.fromDate(s.createdAt),liked:y}),this.cdRef.detectChanges(),this.platformUpdatesService.toggleLike(e,y);return}}};a.MONTH_NAME_TO_NUMBER={janeiro:1,january:1,fevereiro:2,february:2,mar\u00E7o:3,march:3,abril:4,april:4,maio:5,may:5,junho:6,june:6,julho:7,july:7,agosto:8,august:8,setembro:9,september:9,outubro:10,october:10,novembro:11,november:11,dezembro:12,december:12},a.\u0275fac=function(n){return new(n||a)(k(ge),k(Le),k(G),k(me))},a.\u0275cmp=S({type:a,selectors:[["app-platform-updates"]],inputs:{showHeader:"showHeader",isTabVisible:"isTabVisible"},features:[pe],decls:3,vars:2,consts:[["emptyState",""],["pluralUpdates",""],["class","platform-updates","infiniteScroll","",3,"infiniteScrollDistance","scrolled",4,"ngIf","ngIfElse"],["infiniteScroll","",1,"platform-updates",3,"scrolled","infiniteScrollDistance"],[1,"platform-updates-header-section"],["class","skeleton-loader",3,"count","theme",4,"ngIf"],["src","../../../../../assets/images/vedius-updates.svg","alt","Vedius update",4,"ngIf"],["variant","display-lg","color","dark",4,"ngIf"],[4,"ngIf"],[1,"updates-column"],["class","list-title",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"skeleton-loader",3,"count","theme"],["src","../../../../../assets/images/vedius-updates.svg","alt","Vedius update"],["variant","display-lg","color","dark"],["variant","functional-md"],[1,"dusk-neutral-color","platform-updates-header-section-info"],[1,"dusk-neutral-color","text-strong","platform-updates-header-section-info-br"],[1,"dusk-neutral-color","platform-updates-header-section-info-br"],[1,"list-title"],["variant","display-sm"],[1,"dusk-neutral-color","text-semi-bold","list-title-text"],["class","year-header-item",3,"ngClass",4,"ngIf"],["class","update-section",4,"ngIf"],[1,"year-header-item",3,"ngClass"],["variant","heading-md"],[1,"year-header-item-text"],[1,"update-section"],["role","button","tabindex","0",1,"section-header",3,"click","keydown"],[1,"section-header-container"],["svgIcon","arrow-down",4,"ngIf"],["svgIcon","arrow-up-dark",4,"ngIf"],["variant","functional-lg"],[1,"update-context-header-title"],["variant","functional-sm"],[1,"section-header-updates-count"],[4,"ngIf","ngIfElse"],[1,"section-content"],[3,"selectUpdateItem","toggleLike","item"],["svgIcon","arrow-down"],["svgIcon","arrow-up-dark"],[1,"platform-updates"],["class","platform-updates-header-section",4,"ngIf"],["class","columns-container-empty",4,"ngIf"],[1,"columns-container-empty"],["src","../../../../../assets/images/empty-updates.svg","alt","Empty updates"],[1,"platform-updates-header-section-info-br-empty"]],template:function(n,r){if(n&1&&_(0,gt,10,8,"div",2)(1,yt,4,3,"ng-template",null,0,ie),n&2){let s=te(2);p("ngIf",!r.isEmpty)("ngIfElse",s)}},dependencies:[U,H,he,xe,V,D,B,Pe,we,Be,Fe,K,$],styles:[`@charset "UTF-8";.disable-text-copies{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies{-webkit-user-select:text!important;-moz-user-select:text!important;
2-ms-user-select:text!important;user-select:text!important}.icon-circle{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}:root{--001: #fefefe;--002: #f1f3f5}.theme-dark{--001: #16191e;--002: #22262e}:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}.platform-updates{height:100%;width:100%;margin:0 auto;overflow-y:auto;padding:40px 24px;box-sizing:border-box;background:#f5f6f8}@media (max-width: 600px){.platform-updates{padding:24px;padding-bottom:calc(24px + var(--vedius-sidebar-bottom-height, 72px))}}.platform-updates .dusk-neutral-color{color:#192840}.platform-updates .text-strong{font-weight:700}.platform-updates .platform-updates-header-section{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:24px}.platform-updates .platform-updates-header-section .platform-updates-header-section-info{font-family:Inter;line-height:20px}.platform-updates .platform-updates-header-section .platform-updates-header-section-info-br.text-strong{display:inline-block;margin-top:14px;font-family:Inter;line-height:20px}.platform-updates .platform-updates-header-section .platform-updates-header-section-info-br:not(.text-strong){font-family:Inter;line-height:20px}.platform-updates .updates-column{display:flex;flex-direction:column;width:100%;min-width:0}.platform-updates .updates-column .list-title{margin-bottom:32px}.platform-updates .updates-column .list-title .list-title-text{font-family:DM Sans;font-size:24px;line-height:32px;letter-spacing:-.02em;vertical-align:middle}.platform-updates .columns-container-empty{display:flex;flex-direction:column;width:100%;justify-content:center;align-items:center;gap:4px;margin-top:40px}.platform-updates .columns-container-empty img{height:150px;width:150px}.platform-updates .columns-container-empty .platform-updates-header-section-info-br-empty{display:inline-block;text-align:center;margin:0 auto;font-family:Inter;line-height:20px;max-width:560px;color:#425168}.platform-updates .year-header-item{padding:16px 0;border-bottom:1px solid #eee;margin-bottom:10px;font-weight:700}.platform-updates .year-header-item .year-header-item-text{font-weight:700;color:#425168}.platform-updates .year-header-item.no-border{border-bottom:none;margin-bottom:0}.platform-updates .update-section{padding:16px 0;border-bottom:1px solid #eee}.platform-updates .update-section .section-header{display:flex;justify-content:space-between;align-items:center;cursor:pointer}.platform-updates .update-section .section-header:focus-visible{outline:.125rem solid;outline-offset:.125rem;outline-color:#15beae}.platform-updates .update-section .section-header:focus-visible.theme-dark,:host-context(.theme-dark) .platform-updates .update-section .section-header:focus-visible,.theme-dark .platform-updates .update-section .section-header:focus-visible{outline-color:#129f91}.platform-updates .update-section .section-header .section-header-container{display:flex;gap:12px}.platform-updates .update-section .section-header .section-header-container .update-context-header-title{font-size:16px;font-weight:500;line-height:24px;font-family:Inter;color:#425168}.platform-updates .update-section .section-header .section-header-updates-count{font-family:Inter;font-weight:500;font-size:12px;line-height:18px;margin-right:16px;color:#6d7a8e}.platform-updates .update-section .section-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}.platform-updates .update-section .section-content>*{overflow:hidden;min-height:0}.platform-updates .update-section .section-content.is-expanded{grid-template-rows:1fr;margin-top:8px}.platform-updates .update-section .section-content.is-expanded>*{border-radius:.5rem;overflow:hidden;background-color:#fefefe}.platform-updates .update-section .section-content.is-expanded>*.theme-dark,:host-context(.theme-dark) .platform-updates .update-section .section-content.is-expanded>*,.theme-dark .platform-updates .update-section .section-content.is-expanded>*{background-color:#16191e} 3`],encapsulation:2});let t=a;return t})();var wt=["currentPlayer"],Pt=()=>({width:"140px",height:"24px"}),Mt=()=>({width:"100px",height:"32px","border-radius":"8px"}),Ot=()=>({width:"100%",height:"100%","border-radius":"20px 20px 0 0"}),Tt=()=>({width:"80%",height:"20px",margin:"0 0 8px 0"}),Et=()=>({width:"50%",height:"16px",margin:"0"}),St=()=>({width:"120px",height:"24px"}),It=()=>({width:"110px",height:"32px","border-radius":"8px"}),Ut=()=>({width:"100%",height:"100%","border-radius":"12px 12px 0 0"}),Bt=()=>({width:"90%",height:"16px",margin:"0 0 4px 0"}),Dt=()=>({width:"60%",height:"12px",margin:"0"}),Lt=(t,a)=>a.id;function Ft(t,a){t&1&&(l(0,"div",15),f(1,"ngx-skeleton-loader",16),l(2,"div",17),f(3,"ngx-skeleton-loader",7)(4,"ngx-skeleton-loader",7),d()()),t&2&&(o(),p("count",1)("theme",C(6,Ut)),o(2),p("count",1)("theme",C(7,Bt)),o(),p("count",1)("theme",C(8,Dt)))}function Vt(t,a){if(t&1&&(l(0,"div",2)(1,"section",5)(2,"header",6),f(3,"ngx-skeleton-loader",7)(4,"ngx-skeleton-loader",8),d(),l(5,"div",9),f(6,"ngx-skeleton-loader",10),l(7,"div",11),f(8,"ngx-skeleton-loader",7)(9,"ngx-skeleton-loader",7),d()()(),l(10,"section",12)(11,"header",6),f(12,"ngx-skeleton-loader",7)(13,"ngx-skeleton-loader",8),d(),l(14,"div",13)(15,"div",14),R(16,Ft,5,9,"div",15,fe),d()()()()),t&2){let i=c();o(3),p("count",1)("theme",C(14,Pt)),o(),p("count",1)("theme",C(15,Mt)),o(2),p("count",1)("theme",C(16,Ot)),o(2),p("count",1)("theme",C(17,Tt)),o(),p("count",1)("theme",C(18,Et)),o(3),p("count",1)("theme",C(19,St)),o(),p("count",1)("theme",C(20,It)),o(3),N(i.skeletonCards)}}function At(t,a){t&1&&(l(0,"div",3)(1,"vds-text",18),m(2),u(3,"translate"),d()()),t&2&&(o(2),x(" ",g(3,1,"PLATFORM_NEWS.WEEKLY_BRIEF.EMPTY_STATE")," "))}function Rt(t,a){t&1&&(m(0),u(1,"translate")),t&2&&x(" ",g(1,1,"PLATFORM_NEWS.WEEKLY_BRIEF.PUBLISHED_TODAY")," ")}function Nt(t,a){t&1&&(m(0),u(1,"translate")),t&2&&x(" ",g(1,1,"PLATFORM_NEWS.WEEKLY_BRIEF.LAST_PUBLICATION")," ")}function Wt(t,a){if(t&1){let i=O();l(0,"vds-video",30,0),P("videoPlay",function(){b(i);let n=c(3);return v(n.markCurrentAsViewed())}),d()}if(t&2){let i=c(3);p("url",i.currentBrief.videoUrl)("autoplay",!0)}}function jt(t,a){if(t&1&&f(0,"img",31),t&2){let i=c(4);p("src",i.getThumbnailUrl(i.currentBrief),J)("alt",i.currentBrief.title)}}function zt(t,a){if(t&1&&(l(0,"span",35),m(1),d()),t&2){let i=c(4);o(),h(i.currentBrief.videoDuration)}}
3function Ht(t,a){if(t&1&&(_(0,jt,1,2,"img",31),l(1,"span",32),X(),l(2,"svg",33),f(3,"path",34),d()(),_(4,zt,2,1,"span",35)),t&2){let i=c(3);w(i.getThumbnailUrl(i.currentBrief)?0:-1),o(4),w(i.currentBrief.videoDuration?4:-1)}}function Yt(t,a){if(t&1){let i=O();l(0,"div",25),P("click",function(){b(i);let n=c(2);return v(n.onCurrentCardClick(n.currentBrief))})("keydown",function(n){b(i);let r=c(2);return v(r.onCurrentCardKeydown(n,r.currentBrief))}),l(1,"div",26),_(2,Wt,2,2,"vds-video",27)(3,Ht,5,2),d(),l(4,"div",28)(5,"vds-text",19),m(6),d(),l(7,"vds-text",29),m(8),d()()()}if(t&2){let i=c(2);T("role",i.isCurrentPlaying?null:"button")("aria-label",i.isCurrentPlaying?null:i.currentBrief.title+", "+i.currentBrief.subtitle)("tabindex",i.isCurrentPlaying?null:0),o(),M("is-playing",i.isCurrentPlaying),o(),w(i.isCurrentPlaying?2:3),o(4),h(i.currentBrief.title),o(2),h(i.currentBrief.subtitle)}}function $t(t,a){if(t&1&&f(0,"img",31),t&2){let i=c().$implicit,e=c(2);p("src",e.getThumbnailUrl(i),J)("alt",i.title)}}function Kt(t,a){if(t&1&&(l(0,"span",35),m(1),d()),t&2){let i=c().$implicit;o(),h(i.videoDuration)}}function Gt(t,a){if(t&1){let i=O();l(0,"div",36),P("click",function(){let n=b(i).$implicit,r=c(2);return v(r.onCardClick(n))})("keydown",function(n){let r=b(i).$implicit,s=c(2);return v(s.onCardKeydown(n,r))}),l(1,"div",26),_(2,$t,1,2,"img",31),l(3,"span",32),X(),l(4,"svg",33),f(5,"path",34),d()(),_(6,Kt,2,1,"span",35),d(),ce(),l(7,"div",28)(8,"vds-text",37),m(9),d(),l(10,"vds-text",38),m(11),d()()()}if(t&2){let i=a.$implicit,e=c(2);T("aria-label",i.title+", "+i.subtitle),o(2),w(e.getThumbnailUrl(i)?2:-1),o(4),w(i.videoDuration?6:-1),o(3),h(i.title),o(2),h(i.subtitle)}}function Qt(t,a){if(t&1&&(l(0,"div",4)(1,"section",5)(2,"header")(3,"vds-text",19),m(4),u(5,"translate"),d(),l(6,"div",20)(7,"vds-text",21),_(8,Rt,2,3)(9,Nt,2,3),d()()(),_(10,Yt,9,8,"div",22),d(),l(11,"section",12)(12,"header")(13,"vds-text",23),m(14),u(15,"translate"),d(),l(16,"div",20)(17,"vds-text",21),m(18),u(19,"translate"),d()()(),l(20,"div",13)(21,"div",14),R(22,Gt,12,5,"div",24,Lt),d()()()()),t&2){let i=c();o(4),x(" ",g(5,5,"PLATFORM_NEWS.WEEKLY_BRIEF.THIS_WEEK")," "),o(4),w(i.isStartDateTodayOrFuture(i.currentBrief)?8:9),o(2),w(i.currentBrief?10:-1),o(4),x(" ",g(15,7,"PLATFORM_NEWS.WEEKLY_BRIEF.PREVIOUS")," "),o(4),x(" ",g(19,9,"PLATFORM_NEWS.WEEKLY_BRIEF.OTHER_WEEKS")," "),o(4),N(i.previousBriefs)}}var de=(()=>{let a=class a{constructor(e,n,r){this.weeklyBriefService=e,this.translateService=n,this.videoDialog=r,this.currentBrief=null,this.previousBriefs=[],this.isLoading=!0,this.isCurrentPlaying=!1,this.skeletonCards=[1,2,3,4]}ngOnInit(){this.loadWeeklyBriefs()}loadWeeklyBriefs(){return A(this,null,function*(){try{this.isLoading=!0;let e=yield this.weeklyBriefService.getLastWeeklyBrief();e&&(this.currentBrief=this.mapToViewModel(e));let r=(yield this.weeklyBriefService.getWeeklyBriefs({page_size:11})).items.filter(s=>!e||s.key.value!==e.key.value).map(s=>this.mapToViewModel(s));this.previousBriefs=r.filter(s=>s.id!==this.currentBrief?.id)}catch(e){console.error("Error loading weekly briefs:",e)}finally{this.isLoading=!1}})}mapToViewModel(e){return{id:e.key.value,title:e.title,subtitle:this.weeklyBriefService.getMonthYearLabel(e.startDate),thumbnailUrl:e.thumbnailUrl.url||"",videoDuration:e.videoDuration,videoUrl:e.videoUrl.url||"",publishedLabel:this.weeklyBriefService.getRelativeDateLabel(e.createdAt),dateRangeLabel:this.getDateRangeLabel(e.startDate,e.endDate),startDate:e.startDate}}isStartDateTodayOrFuture(e){if(!e?.startDate)return!1;let n=new Date,r=new Date(e.startDate);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),r.getTime()>=n.getTime()}getDateRangeLabel(e,n){let r=s=>s.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"});return`${r(e)} \xE0 ${r(n)}`}isYoutubeUrl(e){return!!e&&oe.test(e)}getYoutubeFallbackUrl(e){if(!e.videoUrl||!this.isYoutubeUrl(e.videoUrl))return"";let n=e.videoUrl.match(oe);return`https://i.ytimg.com/vi/${n&&n[1]?n[1]:e.videoUrl}/hqdefault.jpg`}getThumbnailUrl(e){return e.thumbnailUrl?e.thumbnailUrl:this.getYoutubeFallbackUrl(e)}onCardKeydown(e,n){(e.key==="Enter"||e.key===" ")&&(e.key===" "&&e.preventDefault(),this.onCardClick(n))}onCurrentCardKeydown(e,n){this.isCurrentPlaying||(e.key==="Enter"||e.key===" ")&&(e.key===" "&&e.preventDefault(),this.onCurrentCardClick(n))}onCurrentCardClick(e){if(!(this.isCurrentPlaying||!e.videoUrl)){if(!this.isYoutubeUrl(e.videoUrl)){this.onCardClick(e);return}this.isCurrentPlaying=!0}}markCurrentAsViewed(){this.currentBrief&&this.weeklyBriefService.markAsViewed(this.currentBrief.id).c
3atch(e=>{console.error("Error marking brief as viewed:",e)})}pauseCurrentVideo(){this.currentPlayerRef?.pauseVideo()}onCardClick(e){e.videoUrl&&this.videoDialog.open({videoUrl:e.videoUrl,thumbnailUrl:this.getThumbnailUrl(e),title:e.title,duration:e.videoDuration,badgeLabel:e.id===this.currentBrief?.id?this.translateService.instant("PLATFORM_NEWS.BADGE_NEW"):void 0,weeklyBriefId:e.id})}};a.\u0275fac=function(n){return new(n||a)(k(Ie),k(Me),k(G))},a.\u0275cmp=S({type:a,selectors:[["app-weekly-brief"]],viewQuery:function(n,r){if(n&1&&W(wt,5),n&2){let s;j(s=z())&&(r.currentPlayerRef=s.first)}},decls:4,vars:1,consts:[["currentPlayer",""],[1,"weekly-brief"],[1,"weekly-brief-wrapper","skeleton-loading"],[1,"empty-state"],[1,"weekly-brief-wrapper"],[1,"current-brief"],[1,"skeleton-header"],[1,"skeleton-loader",3,"count","theme"],[1,"skeleton-loader","skeleton-badge",3,"count","theme"],[1,"skeleton-current-card"],[1,"skeleton-loader","skeleton-thumbnail",3,"count","theme"],[1,"skeleton-details"],[1,"previous-briefs"],[1,"previous-briefs-scroll"],[1,"briefs-grid"],[1,"skeleton-previous-card"],[1,"skeleton-loader","skeleton-thumbnail-small",3,"count","theme"],[1,"skeleton-details-small"],["variant","body-lg","color","dark"],["variant","heading-lg","color","dark"],[1,"badge-secondary"],["variant","functional-md","color","default"],[1,"current-brief-card"],["variant","heading-md","color","dark"],["role","button","tabindex","0",1,"brief-card"],[1,"current-brief-card",3,"click","keydown"],[1,"thumbnail-container"],[3,"url","autoplay"],[1,"brief-details","brief-details-inverted"],["variant","body-md","color","secondary"],[3,"videoPlay","url","autoplay"],["loading","lazy",3,"src","alt"],["aria-hidden","true",1,"play-overlay"],["viewBox","0 0 24 24","focusable","false"],["d","M8 5.14v13.72L19 12 8 5.14z","fill","currentColor"],[1,"duration"],["role","button","tabindex","0",1,"brief-card",3,"click","keydown"],["variant","heading-sm","color","dark"],["variant","body-sm","color","secondary"]],template:function(n,r){n&1&&(l(0,"div",1),_(1,Vt,18,21,"div",2)(2,At,4,3,"div",3)(3,Qt,24,11,"div",4),d()),n&2&&(o(),w(r.isLoading?1:!r.currentBrief&&r.previousBriefs.length===0?2:3))},dependencies:[U,D,B,K,$,V,Ee],styles:['@charset "UTF-8";.disable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies[_ngcontent-%COMP%]{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}.icon-circle[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}[_ngcontent-%COMP%]:root{--001: #fefefe;--002: #f1f3f5}.theme-dark[_ngcontent-%COMP%]{--001: #16191e;--002: #22262e}[_ngcontent-%COMP%]:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}.weekly-brief[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column;background:#f5f6f8}.weekly-brief[_ngcontent-%COMP%] .badge-secondary[_ngcontent-%COMP%]{display:flex;padding:4px 12px;align-items:center;gap:6px;border-radius:12px;border:1px solid #d3dae5;background:#f5f6f8}.weekly-brief[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:80px 24px;width:100%;color:#192840}.weekly-brief[_ngcontent-%COMP%] .weekly-brief-wrapper.skeleton-loading[_ngcontent-%COMP%] .skeleton-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.weekly-brief[_ngcontent-%COMP%] .weekly-brief-wrapper.skeleton-loading[_ngcontent-%COMP%] .skeleton-current-card[_ngcontent-%COMP%]{width:100%;border-radius:12px;overflow:hidden;background:#fff;border:1px solid #d3dae5}.weekly-brief[_ngcontent-%COMP%] .weekly-brief-wrapper.skeleton-loading[_ngcontent-%COMP%] .skeleton-thumbnail[_ngcontent-%COMP%]{display:block;width:100%;aspect-ratio:544/306;min-height:180px}.weekly-brief[_ngcontent-%COMP%] .weekly-brief-wrapper.skeleton-loading[_ngcontent-%COMP%] .skeleton-detail
3s[_ngcontent-%COMP%]{padding:20px;display:flex;flex-direction:column}.weekly-brief[_ngcontent-%COMP%] .weekly-brief-wrapper.skeleton-loading[_ngcontent-%COMP%] .skeleton-previous-card[_ngcontent-%COMP%]{width:100%;border-radius:12px;overflow:hidden;background:#fff;border:1px solid #d3dae5}.weekly-brief[_ngcontent-%COMP%] .weekly-brief-wrapper.skeleton-loading[_ngcontent-%COMP%] .skeleton-thumbnail-small[_ngcontent-%COMP%]{display:block;width:100%;aspect-ratio:202/113.6;min-height:100px}.weekly-brief[_ngcontent-%COMP%] .weekly-brief-wrapper.skeleton-loading[_ngcontent-%COMP%] .skeleton-details-small[_ngcontent-%COMP%]{padding:12px;display:flex;flex-direction:column}.weekly-brief[_ngcontent-%COMP%] .weekly-brief-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:80px;align-items:flex-start;width:100%;padding:40px 24px;box-sizing:border-box}@media (max-width: 600px){.weekly-brief[_ngcontent-%COMP%] .weekly-brief-wrapper[_ngcontent-%COMP%]{margin-bottom:80px}}@media (max-width: 960px){.weekly-brief[_ngcontent-%COMP%] .weekly-brief-wrapper[_ngcontent-%COMP%]{flex-direction:column;gap:40px}}@media (min-width: 601px) and (max-width: 960px){.weekly-brief[_ngcontent-%COMP%] .weekly-brief-wrapper[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;max-height:calc(100vh - 220px);min-height:0;padding-bottom:40px}}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%]{flex:1 1 50%;min-width:0;display:flex;flex-direction:column;height:100%}@media (max-width: 960px){.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%]{flex:1 1 auto;min-width:unset;width:100%}}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%]{cursor:pointer;overflow:visible;background:transparent;width:100%;height:100%}@media (max-width: 600px){.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%]{height:auto;display:flex;flex-direction:column}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%] .brief-details[_ngcontent-%COMP%]{flex-shrink:0}}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%]{position:relative;width:100%;aspect-ratio:544/306;overflow:hidden;background:#f5f6f8;border-radius:20px 20px 0 0;height:100%;max-height:calc(100vh - 420px)}@media (max-width: 600px){.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%]{aspect-ratio:16/9;flex:0 0 auto;height:auto;max-height:none}}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%] vds-video[_ngcontent-%COMP%]{display:block;position:absolute;inset:0}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%] .vds-video-container{height:100%;aspect-ratio:auto;border-radius:0;box-shadow:none}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%] .play-overlay[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;display:flex;align-items:center;justify-content:center;width:64px;height:64px;padding-left:4px;box-sizing:border-box;border-radius:9999px;background:#00000080;color:#fff;pointer-events:none}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%] .play-overlay[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:24px;height:24px}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%] .duration[_ngcontent-%COMP%]{position:absolute;bottom:12px;right:12px;background:#000;color:#fff;padding:4px 8px;border-radius:4px;font-size:.875rem;font-weight:400;line-height:20px;font-family:Inter}.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%] .brief-details[_ngcontent-%COMP%]{padding:20px;
3display:flex;flex-direction:column;gap:4px;border-radius:0 0 20px 20px;border-right:1px solid #d3dae5;border-bottom:1px solid #d3dae5;border-left:1px solid #d3dae5;background:#fff}@media (min-width: 961px){.weekly-brief[_ngcontent-%COMP%] .current-brief[_ngcontent-%COMP%] .current-brief-card[_ngcontent-%COMP%] .color-neutral-day[_ngcontent-%COMP%]{color:#fff}}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%]{flex:1 1 50%;min-width:0;display:flex;flex-direction:column}@media (max-width: 960px){.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%]{flex:1 1 auto;width:100%}}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-shrink:0}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;padding-right:8px;max-height:calc(100vh - 320px);scrollbar-gutter:stable}@supports not selector(::-webkit-scrollbar){.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]{scrollbar-width:thin;scrollbar-color:#c1c8d3 #f1f3f5}}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#f1f3f5;border-radius:624.9375rem}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track .theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track, .theme-dark [_nghost-%COMP%] .weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track, .theme-dark[_ngcontent-%COMP%] .weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#22262e}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#c1c8d3;border-radius:624.9375rem;min-height:200px}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb .theme-dark[_ngcontent-%COMP%], .theme-dark[_nghost-%COMP%] .weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .theme-dark [_nghost-%COMP%] .weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .theme-dark[_ngcontent-%COMP%] .weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#686f7a}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:.375rem}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{min-height:2.5rem}@media (max-width: 960px){.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]{padding-right:0;max-height:none}}@media (min-width: 601px) and (max-width: 960px){.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .previous-briefs-scroll[_ngcontent-%COMP%]{overflow:visible;max-height:none;flex:none}}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .briefs-gri
3d[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}@media (max-width: 600px){.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .briefs-grid[_ngcontent-%COMP%]{gap:16px}}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .brief-card[_ngcontent-%COMP%]{cursor:pointer;border-radius:12px;overflow:hidden;background:#fff;width:100%}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%]{position:relative;width:100%;aspect-ratio:202/113.6;overflow:hidden;background:#f5f6f8;border-radius:12px 12px 0 0}@media (max-width: 600px){.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%]{aspect-ratio:16/9}}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%] .play-overlay[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding-left:3px;box-sizing:border-box;border-radius:9999px;background:#00000080;color:#fff;pointer-events:none}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%] .play-overlay[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .brief-card[_ngcontent-%COMP%] .thumbnail-container[_ngcontent-%COMP%] .duration[_ngcontent-%COMP%]{position:absolute;bottom:8px;right:8px;background:#000;color:#fff;padding:4px 8px;border-radius:4px;font-size:.875rem;font-weight:400;line-height:20px;font-family:Inter}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .brief-card[_ngcontent-%COMP%] .brief-details[_ngcontent-%COMP%]{padding:12px;display:flex;flex-direction:column;gap:0px;border-radius:0 0 12px 12px;border-right:1px solid #d3dae5;border-bottom:1px solid #d3dae5;border-left:1px solid #d3dae5;background:#fff}@media (max-width: 600px){.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .brief-card[_ngcontent-%COMP%] .brief-details[_ngcontent-%COMP%]{height:70px}.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .brief-card[_ngcontent-%COMP%] .brief-details[_ngcontent-%COMP%] vds-text[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}}@media (min-width: 961px){.weekly-brief[_ngcontent-%COMP%] .previous-briefs[_ngcontent-%COMP%] .brief-card[_ngcontent-%COMP%] .color-neutral-day[_ngcontent-%COMP%]{color:#fff}}']});let t=a;return t})();var Xt=["weekly-brief","updates"],Ae="vds-stable-document-scrollbar",Qi=(()=>{let a=class a{constructor(e,n,r,s,y){this.translateService=e,this.route=n,this.router=r,this.documentRef=s,this.platformId=y,this.tabs=[],this.activeTabId="weekly-brief"}ngOnInit(){this.createTabs();let e=this.route.snapshot.queryParamMap.get("tab");e&&Xt.includes(e)&&(this.activeTabId=e),ne(this.platformId)&&this.documentRef.documentElement.classList.add(Ae)}ngOnDestroy(){ne(this.platformId)&&this.documentRef.documentElement.classList.remove(Ae)}createTabs(){this.tabs=[{label:this.translateService.get(Y.PlatformNewsWeeklyBriefTab),value:"weekly-brief",badge:this.translateService.get(Y.PlatformNewsBadgeNew),badgeColor:"action"},{label:this.translateService.get(Y.PlatformNewsUpdatesTab),value:"updates"}]}onTabChange(e){this.activeTabId!==e&&(this.activeTabId==="weekly-brief"&&this.weeklyBriefRef?.pauseCurrentVideo(),this.activeTabId=e,this.router.navigate([],{relativeTo:this.route,queryParams:{tab:e},queryParamsHandling:"merge",replaceUrl:!0}))}};a.\u0275fac=function(n){return new(n||a)(k(Oe),k(be),k(ve),k(_e),k(ue))},a.\u0275cmp=S({type:a,selectors:[["app-platform-news"]],viewQuery:function(n,r){if(n&1&&(W(de,5),W(se,5)),n&2){let s;j(s=z())&&(r.weeklyBriefRef=s.first),j(s=z())&&(r.platformUpdatesRef=s.first)}},decls:16,vars:14,consts:[[1,"platform-news"],[1,"platform-news__header"],[1,"platform-news__header-content"],[1,"platform-news__heading"],["variant","display-sm","color","dark"],["variant","body-lg","color","secondary"],[3,"ngModelChange","options","ngModel"],[1,"tab-content"],[3,"showHeader","isTabVisible"]],template:function(n,r){n&1&&(l(0,"div",0)(1,"header",1)(2,"div",2)(3,"div",3)(4,"vds-text",4),m(5),u(6,"translate"),d(),l(7,"vds-text",5),m(8),u(9,"translate"),d()(),l(10,"vds-tabs",6),P("ngModelChange",function(y){return r.onTabChange(y)}),d()()(),l(11,"div",7)(12,"div"),f(13,"app-weekly-brief"),d(),l(14,"div"),f(15,"app-platform-updates",8),d()()()),n&2&&(o(5),x(" ",g(6,10,"PLATFORM_NEWS.TITLE")," "),o(3),x(" ",g(9,12,"PLATFORM_NEWS.SUBTITLE")," "),o(2),p("options",r.tabs)("ngModel",r.activeTabId),o(2),M("hidden",r.activeTabId!=="weekly-brief"),o(2),M("hidden",r.activeTabId!=="updates"),o(),p("showHeader",!1)("isTabVisible",r.activeTabId==="updates"))},dependencies:[U,ye,Ce,ke,D,B,V,Ue,se,de],styles:[`@charset "UTF-8";.disable-text-copies{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies{-webkit-user-select:text!important;-moz-user-select:text!important;
3-ms-user-select:text!important;user-select:text!important}.icon-circle{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}:root{--001: #fefefe;--002: #f1f3f5}.theme-dark{--001: #16191e;--002: #22262e}:root{--elevation-low-bottom: 0 8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-above: 0 -8px 12px 0 rgba(0, 0, 0, .08);--elevation-low-left: -8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-low-right: 8px 0 12px 0 rgba(0, 0, 0, .08);--elevation-high-bottom: 0 12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-above: 0 -12px 40px 0 rgba(0, 0, 0, .12);--elevation-high-left: -12px 0 40px 0 rgba(0, 0, 0, .12);--elevation-high-right: 12px 0 40px 0 rgba(0, 0, 0, .12)}.platform-news{height:100%;width:100%;display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;min-height:100vh}.platform-news .hidden{display:none!important}.platform-news .platform-news__header{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:1.5rem 0 0;border-bottom:1px solid;background-color:#fefefe;border-bottom-color:#c1c8d3}.platform-news .platform-news__header.theme-dark,:host-context(.theme-dark) .platform-news .platform-news__header,.theme-dark .platform-news .platform-news__header{background-color:#16191e}.platform-news .platform-news__header.theme-dark,:host-context(.theme-dark) .platform-news .platform-news__header,.theme-dark .platform-news .platform-news__header{border-bottom-color:#686f7a}.platform-news .platform-news__header-content{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:2rem;width:100%;padding:0 1.5rem}.platform-news .platform-news__heading{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;width:100%}.platform-news .tab-content{width:100%;flex:1;min-height:0;overflow:hidden;display:flex}.platform-news .tab-content>div{flex-direction:column;width:100%}.platform-news .tab-content app-platform-updates{display:flex;height:100%}.platform-news .tab-content .weekly-brief-placeholder{display:flex;align-items:center;justify-content:center;padding:80px 24px;color:#192840} 4`],encapsulation:2});let t=a;return t})();export{Qi as PlatformNewsComponent};
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.