1import {W}from'./chunk-BVtX1VjJ.js';import {F as Fe}from'./chunk-MBgJdai1.js';import'./chunk-CiclR84H.js';import {h}from'./chunk-DbXgelFM.js';import {b}from'./chunk-BVrLIgui.js';import'./chunk-BSSDec_8.js';import'./chunk-Bkyxm9N3.js';import'./chunk-DB_XA3Em.js';import {g,iP as r,f as qS,b4 as bx,I as eM,bw as EN,N as tM,bx as CN,gq as t$1,gr as n,iQ as R$1,eq as Ex,bP as mx,bS as Tt,i as ta,j as Vv,P as Pd,Q as QM,ak as jv,u as uT,bQ as fN,df as dN,G as Gd,ar as yM,dc as Gm}from'./main-DQKPBURG.js';var G="assets/images/widget/welcome_bg.jpeg";var H="#ffffff";function M(e,s){let r=e.bgMode==="none"&&!e.imageUrl,o=r?null:e.imageUrl||s,t=e.titleColor?e.titleColor:r?null:H;return {backgroundImage:o,titleColor:t}}var R=e=>({"background-image":e}),k=()=>({}),j=e=>({color:e});function P(e,s){if(e&1&&(ta(0,"div",8),Vv(1,"mspot-tiptap-extended-view",9),Pd()),e&2){let r=yM();uT(),jv("content",r.widget.description);}}var N=(()=>{class e{constructor(){this.widget=g(t$1),this.showWidgetHeading=g(n),this.appearance=M(this.widget,G);}get photoUrl(){return this.userData.photoUrl||R$1}get hasDesc(){return this.widget.description&&this.widget.description!=="<p></p>"}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-welcome-widget"]],inputs:{userData:"userData"},decls:13,vars:18,consts:[[3,"widget","showWidgetHeading"],[1,"h-full","w-full","overflow-hidden","rounded-lg"],[1,"flex","h-full","w-full","flex-col","justify-center",3,"ngClass","ngStyle"],[1,"flex","h-full","w-full","flex-col","items-start","gap-6","sm:flex-row"],[1,"shrink-0"],["alt","user Profile Image","mspotImgLoadErr","",1,"rounded-full",2,"height","112px","width","112px",3,"src"],[3,"ngClass"],[1,"text-3xl",3,"ngStyle"],[1,"mt-3"],[3,"content"]],template:function(o,t){o&1&&(ta(0,"mspot-base-client-widget-layout",0)(1,"mspot-card",1)(2,"mspot-card-content",2)(3,"div",3)(4,"div",4),Vv(5,"img",5),Pd(),ta(6,"div",6)(7,"div",7)(8,"b"),QM(9),EN(10,"transloco"),Pd(),QM(11),Pd(),eM(12,P,2,1,"div",8),Pd()()()()()),o&2&&(jv("widget",t.widget)("showWidgetHeading",t.showWidgetHeading),uT(2),jv("ngClass",t.appearance.backgroundImage?"bg-cover bg-center bg-no-repeat":"text-text-strong")("ngStyle",t.appearance.backgroundImage?fN(12,R,"url("+t.appearance.backgroundImage+")"):dN(14,k)),uT(3),jv("src",t.photoUrl,Gm),uT(),jv("ngClass",t.hasDesc?"":"self-center"),uT(),jv("ngStyle",t.appearance.titleColor?fN(15,j,t.appearance.titleColor):dN(17,k)),uT(2),Gd("",t.widget.title||CN(10,10,"text.welcome")," "),uT(2),Gd(" ",t.userData.displayName||t.userData.firstname+" "+t.userData.name," "),uT(),tM(t.hasDesc?12:-1));},dependencies:[W,b,h,Ex,mx,Fe,Tt],encapsulation:2});}}return e})();function V(e,s){e&1&&Vv(0,"mspot-welcome-widget",0),e&2&&jv("userData",s);}var fe=(()=>{class e{constructor(){this.userData$=g(r);}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-welcome-widget-view"]],decls:2,vars:3,consts:[[3,"userData"]],template:function(o,t){if(o&1&&(eM(0,V,1,1,"mspot-welcome-widget",0),EN(1,"async")),o&2){let W;tM((W=CN(1,1,t.userData$))?0:-1,W);}},dependencies:[N,bx],encapsulation:2});}}return e})();export{fe as WelcomeWidgetViewComponent};
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.