PageSourceSearch

https://www.scanbox.com/da/chunk-KB5L33YX.js

js scanbox.com collected 2026-09-24 18:35:15 UTC 6,139 bytes, 1 lines download raw bytes

1import{j as H,m as z,n as W,q as G}from"./chunk-4OHY5U2Y.js";import{a as X,b as V}from"./chunk-LDA7OF6H.js";import{E as B,R as u,ab as j,d as k,pa as U,qa as R,ra as $}from"./chunk-ETZXHS7I.js";import{Eb as d,Ec as v,Fc as A,Gc as b,Oc as L,Pb as f,Pc as N,Qb as o,Uc as C,Wc as E,_c as P,ac as r,ba as F,bb as O,bc as a,cb as _,cc as s,dc as x,ec as y,ga as m,ha as I,hb as n,ib as h,je as T,ke as D,lc as g,pc as p,xb as M,za as w}from"./chunk-6REZEGAO.js";var S=(()=>{class t{constructor(e,i,l){this.http=e,this.usheruApi=i,this.env=l;}getSocialFeed(){if(this.isLocalEnv&&this.placeholderData?.socialFeed){let e=typeof this.placeholderData.socialFeed=="boolean"?"1":this.placeholderData.socialFeed;return console.warn("Using placeholder data for socialFeed"),this.http.get(`https://cdnstatic.usheru.com/assets/placeholder-data/socialFeed-${e}.json`);}return this.http.get(`${this.env.api.url}/socialFeed`,{headers:this.usheruApi.getStandardHeader()});}get isLocalEnv(){return this.env.mode=="develop"||this.env.mode=="demo";}get placeholderData(){return this.env?.placeholderData;}static{this.ɵfac=function(i){return new(i||t)(m(k),m(j),m(u));};}static{this.ɵprov=F({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var K=()=>["/social"],Q=t=>({link:t});function Y(t,c){if(t&1&&s(0,"fa-icon",19),t&2){let e=c.ngIf;o("icon",e);}}function Z(t,c){if(t&1&&s(0,"video",20),t&2){let e=p().$implicit;o("src",e.attachment,_);}}function ee(t,c){if(t&1&&s(0,"img",21),t&2){let e=p().$implicit;o("src",e.attachment,_)("alt",e.authorName+" main picture");}}function te(t,c){if(t&1&&(r(0,"div",7)(1,"div",8)(2,"div",9),s(3,"img",10),a(),r(4,"div",11)(5,"div",12),d(6,Y,1,1,"fa-icon",13),r(7,"div",14),v(8),a(),r(9,"div",15),v(10),a()(),s(11,"p",16),C(12,"readMore"),C(13,"safe"),a()(),d(14,Z,1,1,"video",17)(15,ee,1,2,"img",18),a()),t&2){let e=c.$implicit,i=p(2);n(3),o("src",e.authorPicture,_)("alt",e.authorName+" picture"),n(3),o("ngIf",i.getIcon(e.socialNetwork)),n(2),b(" ",e.authorName," "),n(2),A(e.dateCreate),n(),o("innerHTML",E(13,11,E(12,8,e.message,N(14,Q,e.link)),"html"),O),n(3),o("ngIf",e.attachment&&e.attachment.length>0&&e.type==="video"),n(),o("ngIf",e.attachment&&e.attachment.length>0&&e.type==="img");}}function ie(t,c){if(t&1&&(x(0),r(1,"div",3)(2,"span"),g(3,0),a(),r(4,"a",4),g(5,1),a()(),r(6,"div",5),d(7,te,16,16,"div",6),a(),y()),t&2){let e=p();n(2),f("data-translate","movie-template-a.menu.socialUpdates"),n(2),o("routerLink",L(4,K)),f("data-translate","public.slider.viewAll"),n(3),o("ngForOf",e.posts);}}var xe=(()=>{class t{constructor(e,i){this.socialService=e,this.cd=i,this.env=I(u),this.socialFeedFound=new w(),this.showBlueSky=this.env?.showBlueSky;}ngOnInit(){this.socialService.getSocialFeed().subscribe(e=>{this.posts=e.map(i=>(i.attachment.endsWith(".mp4")||i.attachment.endsWith(".mov")||i.attachment.endsWith(".avi")||i.attachment.endsWith(".flv")||i.attachment.endsWith(".wmv")||i.attachment.endsWith(".webm")?i.type="video":i.type="img",i)),this.socialFeedFound.emit(this.posts.length>0),this.cd.detectChanges();});}getIcon(e){switch(e){case"Bluesky":return this.showBlueSky?G:void 0;case"twitter":return H;case"facebook":return W;case"instagram":return z;default:return;}}getIconProp(e){switch(e){case"blluesky":return"bluesky";case"facebook":return"facebook";case"twitter":return"twitter";case"instagram":return"instagram";default:return null;}}static{this.ɵfac=function(i){return new(i||t)(h(S),h(P));};}static{this.ɵcmp=M({type:t,selectors:[["ush-social-feed"]],inputs:{socialFeeds:"socialFeeds",hidedElementIfNoData:"hidedElementIfNoData"},outputs:{socialFeedFound:"socialFeedFound"},decls:1,vars:1,consts:()=>{let e;e="Sociale opdateringer";let i;return i="Vis alle",[e,i,[4,"ngIf"],[1,"header-title","header-msg","title"],[1,"button","news-view-all","view-all-header","viewAll",3,"routerLink"],[1,"posts-wrapper"],["class","post",4,"ngFor","ngForOf"],[1,"post"],[1,"post-header"],[1,"post-author-pic-container"],[1,"author-picture",3,"src","alt"],[1,"post-body"],[1,"post-body-header"],["size","lg",3,"icon",4,"ngIf"],[1,"post-author-name"],[1,"post-created-date"],[1,"post-text","text",3,"innerHTML"],["controls","true","controlslist","nodownload",3,"src",4,"ngIf"],["class","post-atachment",3,"src","alt",4,"ngIf"],["size","lg",3,"icon"],["controls","true","controlslist","nodownload",3,"src"],[1,"post-atachment",3,"src","alt"]];},template:function(i,l){i&1&&d(0,ie,8,5,"ng-container",2),i&2&&o("ngIf",l.posts);},dependencies:[D,B,T,X,$,R,U,V],styles:[".posts-wrapper[_ngcontent-%COMP%]{-webkit-column-count:1;column-count:1}@media (min-width: 576px){.posts-wrapper[_ngcontent-%COMP%]{-webkit-column-count:2;column-count:2}}@media all and (min-width: 992px){.posts-wrapper[_ngcontent-%COMP%]{-webkit-column-count:3;column-count:3}}@media (min-width: 1700px){.posts-wrapper[_ngcontent-%COMP%]{-webkit-column-count:4;column-count:4}}.author-picture[_ngcontent-%COMP%]{width:45px;height:45px;border-radius:50%}.header-title[_ngcontent-%COMP%]{display:none}.post[_ngcontent-%COMP%]{margin-top:10px;border-radius:var(--socialFeedBorderRadius);border:var(--socialFeedBorder);padding:5px;overflow:overlay;break-inside:avoid-column;width:100%;box-shadow:var(--socialFeedBoxShadow);display:inline-block;
1background:var(--socialFeedElemBackground)}.post[_ngcontent-%COMP%]:hover, .post[_ngcontent-%COMP%]:focus{box-shadow:var(--socialFeedBoxShadowHover)}video[_ngcontent-%COMP%]{width:100%}.post-body[_ngcontent-%COMP%]{padding-left:var(--socialFeedPadding);width:80%}.post-atachment[_ngcontent-%COMP%]{width:100%}.post-header[_ngcontent-%COMP%]{display:flex;padding:var(--socialFeedPadding)}.post-text[_ngcontent-%COMP%]{color:var(--socialFeedTextColor)}.post-body-header[_ngcontent-%COMP%]{display:flex;margin-bottom:10px;color:var(--socialFeedTitleColor)}.post-body-header[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-right:8px}.post-created-date[_ngcontent-%COMP%]{flex-grow:1;text-align:end;color:var(--colorDarkGrey)}[_nghost-%COMP%]     .read-button{color:#08c}"]});}}return t;})();export{xe as a};/**i18n:3f52c5d957d37696c22d3f5b50ff28379c4cd4c78295f8e4d13b13c1b7111899*/

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.