1"use strict";(self.webpackChunkaccount=self.webpackChunkaccount||[]).push([[865],{5865(T,d,s){s.d(d,{CmpConnectPageComponent:()=>P});var e=s(6563),p=s(7323),m=s(53),n=s(6124),g=s(7067),a=s(5296),h=s(4467),l=s(1833),C=s(9546);const u=["*"];function _(c,r){1&c&&n.nrm(0,"cw-global-loading")}function f(c,r){1&c&&(n.nrm(0,"cw-hint",0),n.nI1(1,"t")),2&c&&n.Y8G("text",n.bMT(1,1,"cmp.connect.error"))}function b(c,r){if(1&c){const t=n.RV6();n.j41(0,"cw-button",4),n.nI1(1,"t"),n.bIt("click",function(){e.eBV(t);const o=n.XpG(2);return e.Njj(o.openSessionPicker())}),n.k0s()}2&c&&n.Y8G("text",n.bMT(1,2,"cmp.connect.btn"))("buttonType","primary")}function x(c,r){if(1&c){const t=n.RV6();n.nrm(0,"img",1),n.nI1(1,"t"),n.SdG(2),n.j41(3,"cw-text-with-links",2),n.nI1(4,"t"),n.bIt("linkClicked",function(){e.eBV(t);const o=n.XpG();return e.Njj(o.openLink("cmp.details.link"))}),n.k0s(),n.nVh(5,b,2,4,"cw-button",3)}if(2&c){const t=n.XpG();n.Y8G("src",n.bMT(1,3,"cmp.image"),n.B4B),n.R7$(3),n.Y8G("text",n.bMT(4,5,"cmp.description.link")),n.R7$(2),n.vxM(t.hideButton?-1:5)}}let v=(()=>{class c{constructor(){this.calloutService=(0,e.WQX)(p._v),this.redirectService=(0,e.WQX)(g.mb),this.translationService=(0,e.WQX)(m.L0),this.httpService=(0,e.WQX)(a.kl),this.renderer2=(0,e.WQX)(n.sFG),this.configService=(0,e.WQX)(h._k),this.userSessionService=(0,e.WQX)(C.hG),this.document=(0,e.WQX)(e.qQL),this.env=(0,e.WQX)(l.M0),this.packageJson=(0,e.WQX)(l.QO),this.hideButton=!1,this.connectChanged=new e.bkB,this.connected=!1,this.login="",this.loading=!0,this.error=!1,this.callback=t=>{t.popupBlocked?this.calloutService.displayCloseableMsg({text:"cmp.connect.popup.warning",type:"warning-message"}):t.cldId&&this.httpService.post(a.s0.CAPI_SECURED,"/cmp/connect",{cldId:t.cldId}).subscribe({next:i=>{i.connected?(this.connected=i.connected,this.login=i.login,this.connectChanged.emit(i)):this.calloutService.displayCloseableMsg({text:"cmp.connect.error",type:"warning-message"})},error:()=>{this.calloutService.displayCloseableMsg({text:"cmp.connect.error",type:"warning-message"})}})}}ngOnInit(){const t=this.renderer2.createElement("script");t.type="text/javascript",t.src=this.env.cmpConnectScript,t.text="",this.renderer2.appendChild(this.document.body,t),this.httpService.get(a.s0.CAPI_SECURED,"/cmp/connect").subscribe({next:i=>{this.connected=i.connected,this.login=i.login,this.connectChanged.emit(i),this.loading=!1,this.error=!1},error:()=>{this.loading=!1,this.error=!0}})}openSessionPicker(){const t=this.createPickerConfig();window.cmpso.open(t,this.callback)}createPickerConfig(){const{country:t,locale:i}=this.configService.getAppConfig(),o=this.userSessionService.getCurrentSessionInfo().user;return{clientName:"cops-account",clientVersion:this.packageJson.version,apiAccessKey:"EHwPn5LMXgTeUgVfsr2nkyOD9F7df5RH",country:t,language:i.slice(0,2),registration:{login:o.login,firstname:o.firstName,lastname:o.lastName}}}openLink(t){this.redirectService.redirectInNewWindow(this.translationService.getTranslationByKey(t))}static{this.\u0275fac=function(i){return new(i||c)}}static{this.\u0275cmp=n.VBU({type:c,selectors:[["cw-cmp-connect"]],inputs:{hideButton:"hideButton"},outputs:{connectChanged:"connectChanged"},ngContentSelectors:u,decls:3,vars:1,consts:[[3,"text"],[1,"cmp-image",3,"src"],[3,"linkClicked","text"],[1,"cmp-primary",3,"text","buttonType"],[1,"cmp-primary",3,"click","text","buttonType"]],template:function(i,o){1&i&&(n.NAR(),n.nVh(0,_,1,0,"cw-global-loading")(1,f,2,3,"cw-hint",0)(2,x,6,7)),2&i&&n.vxM(o.loading?0:o.error?1:2)},dependencies:[p.Qp,p.AW,p.h6,p.p5,m.cD],styles:[".cmp-primary[_ngcontent-%COMP%]{padding-top:2rem;display:flex;justify-content:center}.cmp-image[_ngcontent-%COMP%]{height:14rem;display:block;margin:auto}.cmp-unconnected[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem;padding-bottom:1rem}"]})}}return c})();var k=s(9664),y=s(1615);function M(c,r){if(1&c){const t=n.RV6();n.j41(0,"div",3)(1,"p"),n.EFF(2),n.nI1(3,"t"),n.k0s(),n.j41(4,"div",4)(5,"div")(6,"p",5),n.EFF(7),n.nI1(8,"t"),n.k0s(),n.j41(9,"p",6),n.EFF(10),n.k0s()(),n.j41(11,"cw-button",7),n.nI1(12,"t"),n.bIt("click",function(){e.eBV(t);const o=n.XpG();return e.Njj(o.disconnect())}),n.k0s()(),n.j41(13,"cw-button",8),n.nI1(14,"t"),n.bIt("click",function(){e.eBV(t);const o=n.XpG();return e.Njj(o.openLink("cmp.open.link"))}),n.k0s()()}if(2&c){const t=n.XpG();n.R7$(2),n.JRh(n.bMT(3,8,"cmp.description.logged.in")),n.R7$(5),n.JRh(n.bMT(8,10,"cmp.subheading.logged.in")),n.R7$(3),n.JRh(t.login),n.R7$(),n.Y8G("dataItName","cmp-disconnect-button")("text",n.bMT(12,12,"cmp.disconnect.btn")),n.R7$(2),n.Y8G("dataItName","cmp-open-button")("text",n.bMT(14,14,"cmp.open.btn"))("buttonType","primary")}}function w(c,r){if(1&c){const t=n.RV6();n.j41(0,"cw-cmp-connect",9),n.bIt("connectChanged",function(o){e.eBV(t);const S=n.XpG();return e.Njj(S.connectChange(o))}),n.j41(1,"p"),n.EFF(2),n.nI1(3,"t"),n.k0s(),n.j41(4,"p"),n.EFF(5),n.nI1(6,"t"),n.k0s(),n.j41(7,"p"),n.EFF(8),n.nI1(9,"t"),n.k0s()()}2&c&&(n.R7$(2),n.JRh(n.bMT(3,3,"cmp.description.1")),n.R7$(3),n.JRh(n.bMT(6,5,"cmp.description.2")),n.R7$(3),n.JRh(n.bMT(9,7,"cmp.description.3")))}let P=(()=>{class c{constructor(){this.httpService=(0,e.WQX)(a.kl),this.calloutService=(0,e.WQX)(p._v),this.redirectService=(0,e.WQX)(y.r),this.translationService=(0,e.WQX)(m.L0),this.connected=!1}disconnect(){this.httpService.delete(a.s0.CAPI_SECURED,"/cmp/connect").subscribe({next:t=>{t.connected?this.calloutService.displayCloseableMsg({text:"cmp.disconnect.error",type:"warning-message"}):(this.connected=t.connected,this.login=t.login)},error:()=>this.calloutService.displayCloseableMsg({text:"cmp.disconnect.error",type:"warning-message"})})}openLink(t){this.redirectService.redirectInNewWindow(this.translationService.getTranslationByKey(t))}connectChange(t){this.connected=t.connected,this.login=t.login}static{this.\u0275fac=function(i){return new(i||c)}}static{this.\u0275cmp=n.VBU({type:c,selectors:[["cw-cmp-connect-page"]],decls:7,vars:5,consts:[[3,"page"],[1,"cmp"],[1,"cmp-title"],[1,"cmp-connected"],[1,"cmp-login-wrapper"],[1,"cmp-connected-subheading"],[1,"cmp-login"],[1,"cmp-disconnect",3,"click","dataItName","text"],[1,"cmp-primary",3,"click","dataItName","text","buttonType"],[3,"connectChanged"]],template:function(i,o){1&i&&(n.j41(0,"cw-account-page-template",0)(1,"cw-tile",1)(2,"h2",2),n.EFF(3),n.nI1(4,"t"),n.k0s(),n.nVh(5,M,15,16,"div",3)(6,w,10,9,"cw-cmp-connect"),n.k0s()()),2&i&&(n.Y8G("page","cmp"),n.R7$(3),n.JRh(n.bMT(4,3,"cmp.heading")),n.R7$(2),n.vxM(o.connected?5:6))},dependencies:[p.Qp,k.k,p.my,v,m.cD],styles:["[_ngcontent-%COMP%]:root{--heading-size-small: 1rem;--heading-size-medium: 1.125rem;--heading-size-large: 1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]{--max-width-child: 768px}.cmp[_ngcontent-%COMP%]{width:100%}@media(min-width:512px){.cmp[_ngcontent-%COMP%]{padding:0 3rem}}@media(min-width:1024px){.cmp[_ngcontent-%COMP%]{padding:0 7rem}}.cmp-Header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.cmp-title[_ngcontent-%COMP%]{font-size:1.125rem;text-align:center}.cmp-login[_ngcontent-%COMP%]{font-weight:700}.cmp-login-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media(max-width:511px){.cmp-login-wrapper[_ngcontent-%COMP%]{flex-direction:column}}.cmp-primary[_ngcontent-%COMP%]{padding-top:2rem;display:flex;justify-content:center}.cmp-disconnect[_ngcontent-%COMP%]{max-height:40px}cw-cmp-connect[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem;padding-bottom:1rem}.cmp-connected[_ngcontent-%COMP%]{margin-top:2rem}.cmp-connected[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem;padding-bottom:1rem}.cmp-connected[_ngcontent-%COMP%] .cmp-connected-subheading[_ngcontent-%COMP%]{padding-bottom:.5rem}"]})}}return c})()}}]);
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.