1import {c}from'./chunk-BSCDFsuj.js';import {l}from'./chunk-CRd-sjb6.js';import {v,h,Y as Yb,g as p,j as u,n,k as ci,d as dS,U as UM,f as fS,m as GM,o as gS,q as mS,R as Rs,p as ps,a as fs,P as Pv,Z as Zu,b as tM,D as DM,e as ey,c as ty,i as iC,L as Lv,s as sw,O as OS,I as IM,w as wS,G as Gv,r as rp,x as op,y as Ug,z as dM,A as rd}from'./main-YHOEWA6S.js';var j=(o,i)=>i.id;function O(o,i){o&1&&Pv(0,"app-loading-indicator",2);}function A(o,i){if(o&1&&Pv(0,"app-svg",11),o&2){let t=OS().$implicit;tM(IM("toast-icon color-",t.color)),Lv("src",t.icon);}}function G(o,i){if(o&1&&(Pv(0,"div",13),UM(1,"safeHtml")),o&2){let t=OS(2).$implicit;Lv("innerHtml",GM(1,1,t.customSvg),sw);}}function J(o,i){if(o&1&&Pv(0,"img",16),o&2){let t=OS(2).$implicit;ey("width",t.imageSize+"px")("height",t.imageSize+"px"),Lv("src",t.image,Ug);}}function Q(o,i){if(o&1&&Pv(0,"img",17),o&2){let t=OS(2).$implicit;ey("width",t.backgroundImageSize+"px")("height",t.backgroundImageSize+"px"),Lv("src",t.backgroundImage,Ug);}}function W(o,i){if(o&1&&(Rs(0,"div",12),dS(1,G,2,3,"div",13),dS(2,J,1,5,"img",14),dS(3,Q,1,5,"img",15),Zu()),o&2){let t=OS().$implicit;ty("has-bg",t.backgroundImage),iC(),fS(t.customSvg?1:-1),iC(),fS(t.image?2:-1),iC(),fS(t.backgroundImage?3:-1);}}function q(o,i){if(o&1&&Pv(0,"h3",18),o&2){let t=OS().$implicit;ey("font-size",t.titleFontSize?t.titleFontSize+"px":void 0),Lv("innerHtml",t.title,sw);}}function X(o,i){if(o&1&&Pv(0,"app-svg",11),o&2){let t=OS(2).$implicit;Lv("src",t.cta.icon);}}function Y(o,i){if(o&1&&(dM(0),UM(1,"translateKey")),o&2){let t=OS(2).$implicit;rd(" ",GM(1,1,t.cta.textKey)," ");}}function Z(o,i){if(o&1&&dM(0),o&2){let t=OS(2).$implicit;rd(" ",t.cta.text," ");}}function tt(o,i){if(o&1){let t=wS();Rs(0,"button",19),Gv("click",function(){rp(t);let m=OS().$implicit;return op(m.cta.onClick())}),dS(1,X,1,1,"app-svg",11),dS(2,Y,2,3)(3,Z,1,1),Zu();}if(o&2){let t=OS().$implicit;ey("max-width",t.cta.maxWidth||"unset%"),Lv("iconButton",t.cta.icon&&!t.cta.text)("hasIcon",t.cta.icon&&!!t.cta.text)("height",t.cta.height||"2")("size",t.cta.size||"2")("color",t.cta.color),iC(),fS(t.cta.icon?1:-1),iC(),fS(t.cta.textKey?2:3);}}function ot(o,i){if(o&1){let t=wS();Rs(0,"button",20),Gv("click",function(){rp(t);let m=OS().$implicit,U=OS(2);return op(U.toastService.close(m))}),Pv(1,"app-svg",21),Zu();}o&2&&Lv("iconButton",true);}function it(o,i){if(o&1&&(Rs(0,"div"),ps("simple-fade-out"),fs("simple-fade-in"),Rs(1,"div",1),dS(2,O,1,0,"app-loading-indicator",2)(3,A,1,4,"app-svg",3),dS(4,W,4,5,"div",4),Rs(5,"div",5),dS(6,q,1,3,"h3",6),Pv(7,"span",7),Zu(),dS(8,tt,4,9,"button",8),Pv(9,"div",9),dS(10,ot,2,1,"button",10),Zu()()),o&2){let t=i.$implicit,_=i.$index;tM(DM("toast toast-size-",t.size," location-",t.location)),ey("top",_*90+"px"),ty("tall",!!t.icon)("vertical",t.vertical),iC(2),fS(t.showLoader?2:t.icon?3:-1),iC(2),fS(t.image||t.customSvg||t.backgroundImage?4:-1),iC(),ty("has-title",!!t.title),iC(),fS(t.title?6:-1),iC(),ey("font-size",(t.fontSize||16)+"px"),Lv("innerHtml",t.message,sw),iC(),fS(t.cta?8:-1),iC(2),fS(t.closable?10:-1);}}function nt(o,i){o&1&&gS(0,it,11,20,"div",0,j),o&2&&mS(i);}var R=class o{toastService=v(h);toasts$=this.toastService.toasts$;static \u0275fac=function(t){return new(t||o)};static \u0275cmp=Yb({type:o,selectors:[["app-toasts"]],decls:2,vars:3,consts:[[3,"class","top","tall","vertical"],[1,"toast-inner"],["size","small"],[3,"src","class"],[1,"image-container",3,"has-bg"],[1,"toast-text"],[1,"style-text-strong",3,"innerHtml","font-size"],[1,"standard-text",3,"innerHtml"],["appButton","","name","confirm","location","toasts","spacing","full","shape","round",1,"toast-cta",3,"iconButton","hasIcon","height","size","max-width","color"],[1,"separator"],["appButton","","name","close","location","toasts","height","0","shape","round","color","simple",1,"close-button",3,"iconButton"],[3,"src"],[1,"image-container"],[1,"toast-image",3,"innerHtml"],["alt","",1,"toast-image",3,"src","width","height"],["alt","",1,"toast-bg-image",3,"src","width","height"],["alt","",1,"toast-image",3,"src"],["alt","",1,"toast-bg-image",3,"src"],[1,"style-text-strong",3,"innerHtml"],["appButton","","name","confirm","location","toasts","spacing","full","shape","round",1,"toast-cta",3,"click","iconButton","hasIcon","height","size","color"],["appButton","","name","close","location","toasts","height","0","shape","round","color","simple",1,"close-button",3,"click","iconButton"],["src","/assets/icons/cross.svg",1,"style-icon-subtle"]],template:function(t,_){if(t&1&&(dS(0,nt,2,0),UM(1,"async")),t&2){let m;
1fS((m=GM(1,1,_.toasts$))?0:-1,m);}},dependencies:[p,u,l,n,ci,c],styles:[`.toast{position:fixed;padding:15px;width:100vw;background-color:var(--%NS%app-popover-bg);box-shadow:var(--%NS%shadow),inset 0 0 0 1px var(--%NS%app-raised-border);border-radius:16px;margin-top:20px;z-index:99999998;transition:top .2s ease}.toast.toast-size-tiny{max-width:240px}.toast.toast-size-small{max-width:380px}.toast.toast-size-medium{max-width:480px}.toast.toast-size-large{max-width:640px}.toast.vertical{padding:20px}.toast.location-head{top:20px;left:50%;transform:translate(-50%)}.toast.location-footer{bottom:20px;left:50%;transform:translate(-50%);top:unset!important}.toast.location-bottom-right{bottom:20px;right:20px;top:unset!important}.toast.location-bottom-left{bottom:20px;left:20px;top:unset!important}.toast.tall{padding:15px 12px}.toast .separator{flex:1 1 auto}.toast .color-gray{color:var(--%NS%text-subtle)}.toast .color-dark{color:var(--%NS%text-strong)}.toast .color-green{color:var(--%NS%success-solid)}.toast .color-warn{color:var(--%NS%danger-solid)}.toast .color-yellow{color:var(--%NS%color-yellow-default)}.toast .color-primary{color:var(--%NS%accent-solid)}.toast .toast-icon{margin-right:8px;flex:0 0 auto}.toast .image-container{margin-right:6px;position:relative;flex:0 0 auto}.toast .image-container.has-bg .toast-image{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:96px;height:96px}.toast .toast-image{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:0 0 auto}.toast .toast-inner{display:flex;align-items:center;gap:10px}.toast .toast-inner button{flex:0 0 auto}.toast app-loading-indicator{margin-left:4px;margin-right:2px}.toast .close-button{flex:0 0 auto;margin-left:8px}.toast.vertical .toast-cta{flex:0 0 auto}.toast.vertical .image-container{margin-right:0;margin-bottom:10px}.toast.vertical .close-button{position:absolute;top:10px;right:10px;margin:0}.toast.vertical .toast-inner{flex-direction:column}.toast.vertical .toast-cta{margin-top:10px}.toast-text{line-height:1.2;overflow:hidden}.vertical .toast-text{text-align:center}.toast-text span{text-overflow:ellipsis;overflow:hidden;display:block}.toast-text h3{font-size:18px;margin:0;line-height:1.2;font-weight:700;white-space:pre-wrap}.vertical .toast-text h3{font-size:21px}.toast-text.has-title p{color:var(--%NS%text-muted);margin-top:4px;display:block;font-size:14px}.toast-text.has-title p b{color:var(--%NS%text-strong)}.standard-text h3{margin-bottom:5px} 2/*# sourceMappingURL=toasts.component-3FGKQRRK.css.map */ 3`,`@keyframes simple-fade-in{0%{opacity:0}to{opacity:var(--%NS%animation-opacity)}}@keyframes simple-fade-out{0%{opacity:var(--%NS%animation-opacity)}to{opacity:0}}.simple-fade-in{animation:simple-fade-in .15s ease-out both;--%NS%animation-opacity: 1}.simple-fade-out{animation:simple-fade-out .15s ease-out both;--%NS%animation-opacity: 1} 4/*# sourceMappingURL=simple-fade-VLOPOFJ4.css.map */ 5`],encapsulation:2})};export{R as ToastsComponent};//# sourceMappingURL=chunk-Bx-oWYNp.js.map 6//# debugId=97327cd1-b644-5f0a-bba9-75797bd613c4
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.