import{a as G}from"./chunk-5CAI5DSD.js";import{b as V}from"./chunk-UYW47L62.js";import{ia as j,ja as B,ka as H}from"./chunk-WCR24CAA.js";import{a as F}from"./chunk-24KGVTXQ.js";import{s as z}from"./chunk-QYQ7WNYU.js";import{f as U}from"./chunk-UFQSDOZD.js";import{E as Z,p as N}from"./chunk-GR55BOSQ.js";import{$c as O,Fc as g,Gc as s,Hc as m,Ic as y,Jc as M,Lc as A,Nc as b,Oa as h,Rc as S,Tb as l,Tc as f,Ub as a,Uc as E,Vc as L,Ya as x,ad as k,bd as T,cd as R,hb as w,ib as u,md as P,nc as d,rb as v,sb as _,tc as p,vc as I,yc as C,yd as D}from"./chunk-HC2G7LSI.js";var Q=new h("NOTIFICATION_CATEGORY");var Y='<svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g id="After-D-&-D-review" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="Alerte-cart---All-[mobil]" transform="translate(-340.000000, -251.000000)" fill="#000000"> <g id="Alerte-/-Succes---1-row-Copy" transform="translate(12.000000, 230.000000)"> <g id="icons/functional_UI/A-E/ic_Error_severe-Copy" transform="translate(328.000000, 21.000000)"> <polygon id="cross" points="12 2 10 0 6 4 2 0 0 2 4 6 0 10 2 12 6 8 10 12 12 10 8 6"></polygon> </g> </g> </g> </g></svg>',W='<svg width="22px" height="18px" viewBox="0 0 22 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g id="After-D-&-D-review" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="Alerte-cart---All-[mobil]" transform="translate(-29.000000, -248.000000)" fill="#CD3C14"> <g id="Alerte-/-Succes---1-row-Copy" transform="translate(12.000000, 230.000000)"> <g id="icons/functional_UI/A-E/ic_Error_severe" transform="translate(17.860000, 18.000000)"> <path d="M19.9723328,14.6167651 L19.9725728,14.6167651 C19.9725728,14.6167651 12.0859328,1.11676513 12.0859328,1.11676513 C11.8903328,0.782445131 11.6121728,0.504285131 11.2778528,0.308685131 C10.2028928,-0.319874869 8.82217283,0.042045131 8.19361283,1.11676513 L8.19361283,1.11676513 L0.326172831,14.5834051 L0.325452831,14.5848451 L0.306732831,14.6165251 L0.306972831,14.6165251 C0.105132831,14.9621251 -0.000947169395,15.3552451 6.37218799e-06,15.7555651 C0.0021728306,16.9975651 1.01113283,18.0026851 2.25313283,18.0002894 L18.0261728,18.0002894 C18.4264928,18.0010051 18.8196128,17.8949251 19.1652128,17.6930851 C20.2375328,17.0664451 20.5989728,15.6890851 19.9723328,14.6167651 L19.9723328,14.6167651 Z M13.0920128,13.9025251 C12.7708928,14.2236451 12.2500928,14.2238851 11.9287328,13.9027651 C11.9287328,13.9025251 11.9287328,13.9025251 11.9287328,13.9025251 L9.99865283,11.9712451 L8.06857283,13.9025251 C7.74985283,14.2265251 7.22881283,14.2308451 6.90481283,13.9121251 C6.58081283,13.5934051 6.57649283,13.0723651 6.89521283,12.7483651 C6.89857283,12.7450051 6.90193283,12.7416451 6.90529283,12.7385251 L8.83537283,10.8074851 L6.97393283,8.94508513 C6.65449283,8.62180513 6.65785283,8.10076513 6.98113283,7.78132513 C7.30153283,7.46500513 7.81681283,7.46500513 8.13721283,7.78108513 L9.99865283,9.64348513 L11.8600928,7.78108513 C12.1785728,7.45684513 12.6996128,7.45204513 13.0238528,7.77052513 C13.3480928,8.08900513 13.3528928,8.60980513 13.0344128,8.93428513 C13.0308128,8.93788513 13.0272128,8.94148513 13.0236128,8.94508513 L11.1621728,10.8074851 L13.0922528,12.7382851 C13.4133728,13.0598851 13.4133728,13.5809251 13.0922528,13.9025251 L13.0920128,13.9025251 Z" id="Error_Severe"></path> </g> </g> </g> </g></svg>',X='<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g id="After-D-&-D-review" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="Alerte-cart---All-[mobil]" transform="translate(-29.000000, -310.000000)" fill="#FF0000"> <g id="Alerte-/-Succes---1-row-Copy" transform="translate(12.000000, 294.000000)"> <g id="icons/functional_UI/A-E/ic_Error_severe" transform="translate(17.781976, 16.794000)"> <path d="M10.230024,0 C4.58013602,0 -3.55271368e-15,4.58016002 -3.55271368e-15,10.23 C-3.55271368e-15,15.8798401 4.58013602,20.4600001 10.230024,20.4600001 C15.8799121,20.4600001 20.4600481,15.8798881 20.4600481,10.23 C20.4600481,4.58011202 15.8799121,0 10.230024,0 Z M9.27189604,3.89640002 C9.51688804,3.63465602 9.83798404,3.50085601 10.229976,3.48744001 C10.621632,3.50085601 10.942776,3.63465602 11.187744,3.89640002 C11.445888,4.17249602 11.57508,4.55712802 11.57532,5.05029602 C11.57532,5.41240802 11.067336,12.0733441 10.942752,12.3435361 C10.818168,12.6137281 10.595064,12.7489681 10.274232,12.7489681 C10.258248,12.7489681 10.245432,12.7443121 10.229976,12.7434721 C10.2144,12.7443121 10.201176,12.7489681 10.185384,12.7489681 C9.86458404,12.7489681 9.64184804,12.6138241 9.51717604,12.3435361 C9.39237604,12.0733441 8.88458404,5.41233602 8.88458404,5.05029602 C8.88458404,4.55714402 9.01368804,4.17251202 9.27189604,3.89640002 Z M11.174448,16.6161121 C10.9188984,16.8490978 10.5844804,16.9764666 10.238688,16.9725121 C9.88957785,16.9774051 9.5512132,16.8518075 9.28984804,16.6203121 C9.01968804,16.3857521 8.88458404,16.0576721 8.88458404,15.6360721 C8.88458404,15.2676721 9.01368804,14.9542401 9.27189604,14.6957761 C9.53010404,14.4373121 9.84648804,14.3081361 10.221048,14.308248 C10.595064,14.308248 10.914368,14.4374241 11.17896,14.6957761 C11.4371474,14.9397319 11.5810128,15.2809039 11.575464,15.6360721 C11.575464,16.0517361 11.441792,16.3784161 11.174448,16.6161121 L11.174448,16.6161121 Z" id="icons/functional_UI/E-M/ic_Important"></path> </g> </g> </g> </g></svg>',q='<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g id="After-D-&-D-review" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="Alerte-cart---All-[mobil]" transform="translate(-29.000000, -374.000000)" fill="#527EDB"> <g id="Alerte-/-Succes---1-row-Copy" transform="translate(12.000000, 358.000000)"> <g id="icons/functional_UI/A-E/ic_Error_severe" transform="translate(17.800000, 16.812000)"> <path d="M10.2,0 C4.56672002,0 0,4.56672002 0,10.2 C0,15.8332801 4.56672002,20.4000001 10.2,20.4000001 C15.8332801,20.4000001 20.4000001,15.8332801 20.4000001,10.2 C20.4000001,4.56672002 15.8332801,0 10.2,0 Z M10.2,2.40000001 C11.1941126,2.40000001 12.0000001,3.20588746 12.0000001,4.20000002 C12.0000001,5.19411257 11.1941126,6.00000003 10.2,6.00000003 C9.20588749,6.00000003 8.40000004,5.19411257 8.40000004,4.20000002 C8.40000004,3.20588746 9.20588749,2.40000001 10.2,2.40000001 L10.2,2.40000001 Z M13.2000001,16.8000241 L7.80000003,16.8000241 L7.80000003,16.1823121 L7.92688803,16.1783041 C8.30020803,16.1663041 8.57764804,16.0602481 8.75172004,15.8630401 C8.81354404,15.7917121 8.91866404,15.5486401 8.91866404,14.7313681 L8.91866404,9.27856804 C8.91866404,8.50116004 8.81011204,8.20816803 8.71920004,8.09918403 C8.59058404,7.94580003 8.32281603,7.85565603 7.92312003,7.83144003 L7.80000003,7.82400003 L7.80000003,7.20000003 L12.0000001,7.20000003 L12.0000001,14.7313681 C12.0000001,15.5093281 12.2029681,15.8022001 12.2937601,15.9107761 C12.4219201,16.0641121 12.6700801,16.1541841 13.0767601,16.1784241 L13.2000001,16.1856241 L13.2000001,16.8000241 L13.2000001,16.8000241 Z" id="icons/functional_UI/E-M/ic_Info"></path> </g> </g> </g> </g></svg>',J='<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g id="After-D-&-D-review" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="Alerte-cart---All-[mobil]" transform="translate(-29.000000, -438.000000)" fill="#0A6E31"> <g id="Alerte-/-Succes---1-row-Copy" transform="translate(12.000000, 422.000000)"> <g id="icons/functional_UI/A-E/ic_Error_severe" transform="translate(17.800000, 16.800000)"> <path d="M15.3059521,7.53264003 L9.68556004,14.6290321 C9.68556004,14.6290321 9.04327204,15.5079841 8.13700803,14.5600321 C7.31911203,13.7048161 5.05473602,11.004408 5.05473602,11.004408 C5.05473602,11.004408 4.53895202,10.3488 5.30572802,9.62424004 C5.95262402,9.01303204 6.44911203,9.26160004 6.60285603,9.41498404 C6.85413603,9.66573604 8.47180804,11.297016 8.47180804,11.297016 C8.47180804,11.297016 8.66690404,11.492232 8.95963204,11.171592 L13.8970801,6.23625603 C13.8970801,6.23625603 14.4973681,5.67804002 15.1666801,6.27768003 C15.8586241,6.89738403 15.3059521,7.53264003 15.3059521,7.53264003 Z M10.2,2.39998127 C14.1889445,2.40675395 17.5244489,5.43363857 17.9172454,9.40320204 C18.3100419,13.3727655 15.6324478,16.9946587 11.7221852,17.7830555 C7.81192254,18.5714523 3.94006422,16.2700759 2.76399564,12.4584377 C1.58792705,8.64679943 3.48994192,4.56391325 7.16462403,3.01200001 C8.1249372,2.60586239 9.15733811,2.39770717 10.2,2.39998127 L10.2,2.39998127 Z M10.2,0 C4.56669602,0 0,4.56669602 0,10.2 C0,15.8333041 4.56669602,20.4000001 10.2,20.4000001 C15.8333041,20.4000001 20.4000001,15.8333041 20.4000001,10.2 C20.4000001,4.56669602 15.8333041,0 10.2,0 L10.2,0 Z" id="icons/functional_UI/M-S/ic_Modifier_done"></path> </g> </g> </g> </g></svg>',K='<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g id="After-D-&-D-review" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="Alerte-cart---All-[mobil]" transform="translate(-29.000000, -310.000000)" fill="#FFCC00"> <g id="Alerte-/-Succes---1-row-Copy" transform="translate(12.000000, 294.000000)"> <g id="icons/functional_UI/A-E/ic_Error_severe" transform="translate(17.781976, 16.794000)"> <path d="M10.230024,0 C4.58013602,0 -3.55271368e-15,4.58016002 -3.55271368e-15,10.23 C-3.55271368e-15,15.8798401 4.58013602,20.4600001 10.230024,20.4600001 C15.8799121,20.4600001 20.4600481,15.8798881 20.4600481,10.23 C20.4600481,4.58011202 15.8799121,0 10.230024,0 Z M9.27189604,3.89640002 C9.51688804,3.63465602 9.83798404,3.50085601 10.229976,3.48744001 C10.621632,3.50085601 10.942776,3.63465602 11.187744,3.89640002 C11.445888,4.17249602 11.57508,4.55712802 11.57532,5.05029602 C11.57532,5.41240802 11.067336,12.0733441 10.942752,12.3435361 C10.818168,12.6137281 10.595064,12.7489681 10.274232,12.7489681 C10.258248,12.7489681 10.245432,12.7443121 10.229976,12.7434721 C10.2144,12.7443121 10.201176,12.7489681 10.185384,12.7489681 C9.86458404,12.7489681 9.64184804,12.6138241 9.51717604,12.3435361 C9.39237604,12.0733441 8.88458404,5.41233602 8.88458404,5.05029602 C8.88458404,4.55714402 9.01368804,4.17251202 9.27189604,3.89640002 Z M11.174448,16.6161121 C10.9188984,16.8490978 10.5844804,16.9764666 10.238688,16.9725121 C9.88957785,16.9774051 9.5512132,16.8518075 9.28984804,16.6203121 C9.01968804,16.3857521 8.88458404,16.0576721 8.88458404,15.6360721 C8.88458404,15.2676721 9.01368804,14.9542401 9.27189604,14.6957761 C9.53010404,14.4373121 9.84648804,14.3081361 10.221048,14.308248 C10.595064,14.308248 10.914368,14.4374241 11.17896,14.6957761 C11.4371474,14.9397319 11.5810128,15.2809039 11.575464,15.6360721 C11.575464,16.0517361 11.441792,16.3784161 11.174448,16.6161121 L11.174448,16.6161121 Z" id="icons/functional_UI/E-M/ic_Important"></path> </g> </g> </g> </g></svg>';var t0=["alertContent"],e0=["*"];function n0(n,i){if(n&1&&(y(0),m(1,"mat-icon",7),M()),n&2){let c=f();l(),C("",c.type,"-icon"),p("svgIcon",c.type)}}function i0(n,i){n&1&&m(0,"mat-icon",8)}function o0(n,i){if(n&1){let c=A();g(0,"button",9),S("click",function(t){w(c);let e=f();return u(e.close.next(t))}),m(1,"mat-icon",10),s()}}var k0=(()=>{let i=class i{constructor(o,t,e,r,$){this.defaultNotificationCategory=o,this.domSanitizer=t,this.elementRef=e,this.matIconRegistry=r,this.store=$,this.animation=!0,this.autoScrollIntoView=!0,this.dismissible=null,this.close=new _,this.matIconRegistry.addSvgIconLiteral("close",this.domSanitizer.bypassSecurityTrustHtml(Y)),this.matIconRegistry.addSvgIconLiteral("error",this.domSanitizer.bypassSecurityTrustHtml(W)),this.matIconRegistry.addSvgIconLiteral("exclamation",this.domSanitizer.bypassSecurityTrustHtml(X)),this.matIconRegistry.addSvgIconLiteral("info",this.domSanitizer.bypassSecurityTrustHtml(q)),this.matIconRegistry.addSvgIconLiteral("success",this.domSanitizer.bypassSecurityTrustHtml(J)),this.matIconRegistry.addSvgIconLiteral("warning",this.domSanitizer.bypassSecurityTrustHtml(K))}ngAfterViewInit(){this.scrollToAlert(),this.trackAlert()}isDismissible(){return this.dismissible!==null?this.dismissible:this.close.observers.length>0}scrollToAlert(){this.autoScrollIntoView&&this.type==="error"&&this.elementRef.nativeElement&&this.elementRef.nativeElement.scrollIntoView&&V(this.elementRef.nativeElement)}trackAlert(){let o=this.notificationCategory||this.defaultNotificationCategory||"unknown",t;this.notificationCode?t=this.notificationCode+": "+this.content?.nativeElement?.innerText:t=this.content?.nativeElement?.innerText,this.store.dispatch(F.event({event:{errorMessage:t,errorType:o,event:"error",gtmType:this.type}}))}};i.\u0275fac=function(t){return new(t||i)(a(Q,8),a(U),a(v),a(j),a(z))},i.\u0275cmp=x({type:i,selectors:[["oro-alert"]],viewQuery:function(t,e){if(t&1&&O(t0,5),t&2){let r;k(r=T())&&(e.content=r.first)}},hostAttrs:[1,"d-block"],hostVars:1,hostBindings:function(t,e){t&2&&b("@expandCollapse",e.animation)},inputs:{animation:"animation",autoScrollIntoView:"autoScrollIntoView",dismissible:"dismissible",notificationCategory:"notificationCategory",notificationCode:"notificationCode",type:"type"},outputs:{close:"close"},standalone:!0,features:[P],ngContentSelectors:e0,decls:9,vars:8,consts:[["noType",""],["alertContent",""],["role","alert"],[1,"alert-icon"],[4,"ngIf","ngIfElse"],[1,"alert-text"],["class","alert-close","type","button",3,"click",4,"ngIf"],["aria-hidden","false",3,"svgIcon"],["aria-hidden","false","svgIcon","exclamation"],["type","button",1,"alert-close",3,"click"],["aria-hidden","false","svgIcon","close"]],template:function(t,e){if(t&1&&(E(),g(0,"div",2)(1,"div",3),d(2,n0,2,4,"ng-container",4)(3,i0,1,0,"ng-template",null,0,D),s(),g(5,"div",5,1),L(7),s(),d(8,o0,2,0,"button",6),s()),t&2){let r=R(4);C("alert alert-",e.type,""),l(2),p("ngIf",e.type)("ngIfElse",r),l(3),I("space-right",e.isDismissible()),l(3),p("ngIf",e.isDismissible())}},dependencies:[Z,N,H,B],styles:['.alert[_ngcontent-%COMP%]{align-items:center;border-radius:6px;display:flex;margin:auto auto 10px;max-width:1320px;min-height:51px;overflow:hidden;padding:16px 20px 16px 18px;position:relative;width:100%}.alert-error[_ngcontent-%COMP%]{background-color:#fff5f5}.alert-error[_ngcontent-%COMP%] .alert-text[_ngcontent-%COMP%] li:before{background-color:var(--red)}.alert-info[_ngcontent-%COMP%]{background-color:#e5f6fd}.alert-success[_ngcontent-%COMP%]{background-color:#edf7ed}@media (min-width: 768px){.alert-success[_ngcontent-%COMP%] .alert-icon[_ngcontent-%COMP%]{top:13px}}.alert-warning[_ngcontent-%COMP%]{background-color:#fff4e5}@media (min-width: 768px){.alert-warning[_ngcontent-%COMP%] .alert-icon[_ngcontent-%COMP%]{top:13px}}.alert-icon[_ngcontent-%COMP%]{left:15px;max-height:22px;max-width:22px;position:absolute;top:15px}@media (min-width: 768px){.alert-icon[_ngcontent-%COMP%]{left:16px;top:1rem}}.alert-icon[_ngcontent-%COMP%] .mat-icon{height:22px!important;overflow:visible;width:22px!important}.alert-text[_ngcontent-%COMP%]{color:var(--black);font-size:13px;height:100%;letter-spacing:-.1px;line-height:18px;margin-bottom:0;margin-left:36px;max-width:100%}.alert-text.space-right[_ngcontent-%COMP%]{margin-right:1rem}.alert-text[_ngcontent-%COMP%] a, .alert-text[_ngcontent-%COMP%] button{background-color:transparent;border:none;color:var(--black)!important;font-weight:700}.alert-text[_ngcontent-%COMP%] a.btn-outline-secondary:hover{color:var(--white)!important}.alert-text[_ngcontent-%COMP%] ul{margin:0;padding:4px 0 0}.alert-text[_ngcontent-%COMP%] li{line-height:18px;list-style:none;margin-bottom:4px;padding-left:21px;position:relative}.alert-text[_ngcontent-%COMP%] li:before{content:"";left:0;height:9px;width:9px;position:absolute;top:5px}.alert-text[_ngcontent-%COMP%] pre{font-size:10px;margin-bottom:0;overflow:hidden;padding-top:.5rem;text-wrap:pretty}.alert-close[_ngcontent-%COMP%]{background-color:transparent;border:none;display:flex;height:25px;justify-content:center;margin-left:auto;position:absolute;right:13px;top:1rem;width:25px}.alert-close[_ngcontent-%COMP%] .mat-icon{cursor:pointer;height:12px!important;overflow:visible;width:12px!important}'],data:{animation:[G({leaveMaxHeight:"20px"})]},changeDetection:0});let n=i;return n})();export{Q as a,k0 as b};