PageSourceSearch

https://vedius-brasil.firebaseapp.com/chunk-VLSH4AIW.js

js vedius-brasil.firebaseapp.com collected 2026-10-03 14:09:00 UTC 13,410 bytes, 2 lines download raw bytes

1import"./chunk-DHGPBOST.js";import{a as G}from"./chunk-7O5KE4XQ.js";import{d as Q}from"./chunk-K3MUZP5Q.js";import"./chunk-V5JHT2G4.js";import{a as j,b as H}from"./chunk-XM23J7BA.js";import{a as Y,c as K}from"./chunk-WH6ILIPS.js";import{a as N}from"./chunk-LKIIPTIG.js";import{a as F}from"./chunk-OSVOK6WL.js";import"./chunk-WXXKR7LF.js";import"./chunk-R2NO6V5K.js";import"./chunk-FV2Q4OA6.js";import"./chunk-QPZCEWML.js";import"./chunk-L44SDTPC.js";import"./chunk-CLQP3QCS.js";import{b as z}from"./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"./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"./chunk-4BUGZAA4.js";import"./chunk-3TCRHIAB.js";import{p as U}from"./chunk-76JNFTGE.js";import{Bb as E,Ra as L}from"./chunk-C7VFP4N4.js";import{b as O,c as R,d as D}from"./chunk-CYMQMRSQ.js";import"./chunk-SAPP7HDL.js";import"./chunk-YJOTM47P.js";import"./chunk-2PJAPLDY.js";import"./chunk-UQ5LDOFJ.js";import"./chunk-C2CO7BOS.js";import"./chunk-UVTXHEDZ.js";import{q as A}from"./chunk-3APTCJCW.js";import"./chunk-KDTKTPR2.js";import"./chunk-TPWGF6XO.js";import{Cb as r,Dc as k,Ia as u,Ic as c,Ja as b,Jc as s,Ka as M,Qc as P,Rc as I,Sc as T,Tb as S,Xc as f,Yb as w,Yc as C,Zc as y,kc as W,lc as h,nc as x,pd as g,qd as _,sc as m,xa as p,xc as a,yb as B,yc as d,zc as V}from"./chunk-MH4BPXDL.js";import"./chunk-CU44V7JF.js";var X=["videoPlayer"];function $(i,l){if(i&1){let o=k();a(0,"vds-video",19,0),c("videoPlay",function(){u(o);let e=s();return b(e.onVideoPlay())})("videoReady",function(){u(o);let e=s();return b(e.onVideoReady())}),d()}if(i&2){let o=s();h("url",o.videoUrl)}}function J(i,l){if(i&1){let o=k();a(0,"img",20),c("error",function(){u(o);let e=s();return b(e.onPosterError())}),d()}if(i&2){let o=s();h("src",o.posterUrl,B)("alt",o.title)}}function Z(i,l){if(i&1){let o=k();a(0,"button",21),g(1,"translate"),c("click",function(){u(o);let e=s();return b(e.watchNow())}),M(),a(2,"svg",22),V(3,"path",23),d()()}i&2&&W("aria-label",_(1,1,"WEEKLY_BRIEF_MODAL.WATCH_NOW"))}function ee(i,l){if(i&1&&(a(0,"div",9)(1,"span",24),f(2),d()()),i&2){let o=s();r(2),C(o.badgeLabel)}}function te(i,l){if(i&1&&(a(0,"span",10),f(1),d()),i&2){let o=s();r(),C(o.formattedDuration)}}function ie(i,l){if(i&1&&(a(0,"vds-text",13),f(1),d()),i&2){let o=s();r(),y(" ",o.description," ")}}function oe(i,l){if(i&1){let o=k();a(0,"vds-button",25),c("click",function(){u(o);let e=s();return b(e.dontShowAgain())}),f(1),g(2,"translate"),d()}if(i&2){let o=s();h("fullWidth",o.isMobile),r(),y(" ",_(2,2,"WEEKLY_BRIEF_MODAL.DONT_SHOW_AGAIN")," ")}}var Ee=(()=>{let l=class l{constructor(){this.modalRef=p(K),this.data=p(Y),this.weeklyBriefService=p(Q),this.translateService=p(O),this.breakpointObserver=p(U),this.isMobile=!1,this.variant="promo",this.videoUrl="",this.thumbnailUrl="",this.title="",this.description="",this.duration="",this.badgeLabel=null,this.briefId=null,this.hasStartedPlayback=!1,this.thumbnailFailed=!1,this.pendingPlayOnReady=!1,this.markAsViewedSent=!1}onEscapeKey(t){t.key===z&&this.watchLater()}get isPromo(){return this.variant==="promo"}get posterUrl(){return this.thumbnailFailed?this.youtubePosterUrl:this.thumbnailUrl||this.youtubePosterUrl}get youtubePosterUrl(){let t=this.isYoutubeUrl(this.videoUrl)?this.getYouTubeVideoId(this.videoUrl):void 0;return t?`https://i.ytimg.com/vi/${t}/hqdefault.jpg`:""}onPosterError(){this.thumbnailFailed||(this.thumbnailFailed=!0)}isYoutubeUrl(t){return!!t&&E.test(t)}getYouTubeVideoId(t){if(!t)return;let e=t.match(E);return e&&e[1]?e[1]:t}ngOnInit(){this.breakpointObserver.observe([L]).subscribe(t=>{this.isMobile=t.matches}),this.applyData()}applyData(){let{weeklyBrief:t,video:e}=this.data;if(this.variant=this.data.variant??(e?"viewer":"promo"),e){this.videoUrl=e.videoUrl??"",this.thumbnailUrl=e.thumbnailUrl??"",this.title=e.title??"",this.description="",this.duration=e.duration??"",this.badgeLabel=e.badgeLabel??null,this.briefId=e.weeklyBriefId??null;return}this.videoUrl=t?.videoUrl?.url??"",this.thumbnailUrl=t?.thumbnailUrl?.url??"",this.title=this.translateService.instant("WEEKLY_BRIEF_MODAL.TITLE"),this.description=this.translateService.instant("WEEKLY_BRIEF_MODAL.DESCRIPTION"),this.duration=t?.videoDuration??"",this.badgeLabel=this.translateService.instant("PLATFORM_NEWS.BADGE_NEW"),this.briefId=t?.key.value??null}get formattedDuration(){return this.duration||"0:00"}onVideoPlay(){this.hasStartedPlayback=!0,this.sendMarkAsViewedOnce()}sendMarkAsViewedOnce(){this.markAsViewedSent||!this.briefId||(this.markAsViewedSent=!0,this.weeklyBriefService.markAsViewed(this.briefId).catch(t=>{console.error("[WeeklyBriefModal] Error marking brief as viewed:",t)}))}watchNow(){this.sendMarkAsViewedOnce(),this.pendingPlayOnReady=!0,this.videoPlayer?.playVideo()}onVideoReady(){this.pendingPlayOnReady&&(this.pendingPlayOnReady=!1,this.videoPlayer?.playVideo())}watchLater(){this.modalRef.close()}dontShowAgain(){this.modalRef.close(),this.briefId&&this.weeklyBriefService.dismissWeeklyBrief(this.briefId).catch(t=>{console.error("[WeeklyBriefModal] Error dismissing weekly brief:",t)})}};l.\u0275fac=function(e){return new(e||l)},l.\u0275cmp=S({type:l,selectors:[["app-weekly-brief-modal"]],viewQuery:function(e,n){if(e&1&&P(X,5),e&2){let v;I(v=T())&&(n.videoPlayer=v.first)}},hostBindings:function(e,n){e&1&&c("keyup",function(q){return n.onEscapeKey(q)})},decls:23,vars:20,consts:[["videoPlayer",""],["surface","001"],[1,"weekly-brief-modal__content"],[1,"weekly-brief-modal"],[1,"video-section"],[1,"thumbnail-container"],[3,"url"],[1,"thumbnail-cover",3,"src","alt"],["type","button",1,"play-overlay"],[1,"badge-new"],[1,"duration"],[1,"content"],["variant","display-lg","color","dark",1,"modal-title"],["variant","body-lg","color","secondary",1,"modal-description"],[1,"modal-footer"],["variant","tertiary","size","md",3,"fullWidth"],[1,"footer-actions"],["variant","secondary","size","md",3,"click","fullWidth"],["variant","primary","size","md","leadingIcon","vds-play-circle",3,"click","fullWidth"],[3,"videoPlay","videoReady","url"],[1,"thumbnail-cover",3,"error","src","alt"],["type","button",1,"play-overlay",3,"click"],["viewBox","0 0 24 24","aria-hidden","true","focusable","false"],["d","M8 5.14v13.72L19 12 8 5.14z","fill","currentColor"],[1,"badge-new-text"],["variant","tertiary","size","md",3,"click","fullWidth"]],template:function(e,n){e&1&&(a(0,"vds-modal",1)(1,"vds-modal-content",2)(2,"div",3)(3,"div",4)(4,"div",5),w(5,$,2,1,"vds-video",6)(6,J,1,2,"img",7)(7,Z,4,3,"button",8)(8,ee,3,1,"div",9)(9,te,2,1,"span",10),d()(),a(10,"div",11)(11,"vds-text",12),f(12),d(),w(13,ie,2,1,"vds-text",13),d(),a(14,"div",14),w(15,oe,3,4,"vds-button",15),a(16,"div",16)(17,"vds-button",17),c("click",function(){return n.watchLater()}),f(18),g(19,"translate"),d(),a(20,"vds-button",18),c("click",function(){return n.watchNow()}),f(21),g(22,"translate"),d()()()()()()),e&2&&(r(4),x("is-playing",n.hasStartedPlayback),r(),m(n.videoUrl?5:-1),r(),m(n.hasStartedPlayback?-1:6),r(),m(n.hasStartedPlayback?-1:7),r(),m(n.badgeLabel&&!n.hasStartedPlayback?8:-1),r(),m(!n.hasStartedPlayback&&n.duration?9:-1),r(3),y(" ",n.title," "),r(),m(n.description?13:-1),r(),x("modal-footer--v
1iewer",!n.isPromo),r(),m(n.isPromo?15:-1),r(2),h("fullWidth",n.isMobile),r(),y(" ",_(19,16,"WEEKLY_BRIEF_MODAL.WATCH_LATER")," "),r(2),h("fullWidth",n.isMobile),r(),y(" ",_(22,18,"WEEKLY_BRIEF_MODAL.WATCH_NOW")," "))},dependencies:[j,H,N,F,G,D,R,A],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;-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)}app-weekly-brief-modal{display:block;width:100%}app-weekly-brief-modal vds-modal-content.weekly-brief-modal__content .vds-modal-content{padding:0;gap:0}.weekly-brief-modal{display:flex;flex-direction:column;gap:0;max-width:37.5rem;width:100%;box-sizing:border-box;overflow:hidden;box-shadow:var(--elevation-high-bottom, 0 .75rem 2.5rem 0 rgba(0, 0, 0, .12));border-radius:1.5rem;background-color:#fefefe}.weekly-brief-modal.theme-dark,:host-context(.theme-dark) .weekly-brief-modal,.theme-dark .weekly-brief-modal{background-color:#16191e}.weekly-brief-modal .video-section{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:2.5rem 2.5rem 0;background-color:#f1f3f5}.weekly-brief-modal .video-section.theme-dark,:host-context(.theme-dark) .weekly-brief-modal .video-section,.theme-dark .weekly-brief-modal .video-section{background-color:#22262e}.weekly-brief-modal .thumbnail-container{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:.75rem .75rem 0 0;box-shadow:0 .75rem 2.5rem #0000001f,0 .125rem .375rem #0000000f}.weekly-brief-modal .thumbnail-container vds-video{display:block;width:100%;height:100%}.weekly-brief-modal .thumbnail-container .thumbnail-cover{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;background:#000;pointer-events:none}.weekly-brief-modal .thumbnail-container:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(180deg,#0000 47.81%,#00000052)}.weekly-brief-modal .thumbnail-container.is-playing:after{display:none}.weekly-brief-modal .thumbnail-container .play-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:3;display:flex;align-items:center;justify-content:center;width:4rem;height:4rem;padding:0 0 0 .25rem;border:none;border-radius:9999px;background:#00000080;color:#fff;cursor:pointer;transition:background-color .2s ease}.weekly-brief-modal .thumbnail-container .play-overlay svg{width:1.5rem;height:1.5rem}.weekly-brief-modal .thumbnail-container .play-overlay:hover,.weekly-brief-modal .thumbnail-container .play-overlay:focus-visible{background:#000000a6}.weekly-brief-modal .thumbnail-container .play-overlay:focus-visible{outline:.125rem solid;outline-offset:.125rem;outline-color:#15beae}.weekly-brief-modal .thumbnail-container .play-overlay:focus-visible.theme-dark,:host-context(.theme-dark) .weekly-brief-modal .thumbnail-container .play-overlay:focus-visible,.theme-dark .weekly-brief-modal .thumbnail-container .play-overlay:focus-visible{outline-color:#129f91}.weekly-brief-modal .thumbnail-container .badge-new{position:absolute;top:.75rem;left:.75rem;z-index:4;display:inline-flex;align-items:center;height:1.5rem;padding:0 .5rem;background:#e0fffa;border-radius:9999px}.weekly-brief-modal .thumbnail-container .badge-new .badge-new-text{color:#1c625b;font-family:Inter,DM Sans,-apple-system,BlinkMacSystemFont,sans-serif;font-size:.75rem;line-height:1rem;font-weight:500;letter-spacing:0}.weekly-brief-modal .thumbnail-container .duration{position:absolute;bottom:.75rem;right:1.25rem;z-index:2;padding:.25rem .5rem;border-radius:.5rem;background:#000000b3;color:#fff;font-family:Inter,DM Sans,-apple-system,BlinkMacSystemFont,sans-serif;font-size:.875rem;line-height:1.25rem;font-weight:400;letter-spacing:0}.weekly-brief-modal .content{display:flex;flex-direction:column;gap:0;padding:.75rem 1.25rem}.weekly-brief-modal .modal-footer{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:1rem 1.75rem 1.25rem 1.25rem}
1.weekly-brief-modal .modal-footer--viewer{justify-content:flex-end}.weekly-brief-modal .modal-footer .footer-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}@media (max-width: 600px){.weekly-brief-modal{max-width:100%;border-radius:1.5rem 1.5rem 0 0;box-shadow:var(--elevation-low-above, 0 -.5rem .75rem 0 rgba(0, 0, 0, .08))}.weekly-brief-modal .video-section{padding:1.25rem 1.25rem 0}.weekly-brief-modal .content{padding:.75rem 1.25rem}.weekly-brief-modal .modal-footer{flex-direction:column-reverse;align-items:stretch;justify-content:flex-start;gap:.5rem;padding:.75rem 1.75rem 1.25rem 1.25rem}.weekly-brief-modal .modal-footer .footer-actions{width:100%;flex-direction:column-reverse;align-items:stretch;gap:.5rem}}.vds-platform-video-dialog.vds-modal-panel,.vds-platform-video-dialog .mdc-dialog__surface{border-radius:1.5rem}@media (max-width: 600px){.vds-platform-video-dialog.vds-modal-panel,.vds-platform-video-dialog .mdc-dialog__surface{border-radius:1.5rem 1.5rem 0 0}}
2`],encapsulation:2});let i=l;return i})();export{Ee as WeeklyBriefModalComponent};

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.