1"use strict";(self.webpackChunkb4b_ng_client=self.webpackChunkb4b_ng_client||[]).push([[288],{39191:(g,M,r)=>{r.r(M),r.d(M,{AdministrationModule:()=>ne});var t=r(36895),u=r(97847),a=r(94010),l=r(50620),m=r(62726),e=r(94650);let C=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["b4b-administration"]],decls:1,vars:0,template:function(n,i){1&n&&e._UZ(0,"router-outlet")},dependencies:[m.lC]}),o})();var _=r(4873),f=r(82722),p=r(54004),E=r(63900),O=r(77579),N=r(61135),v=r(19081),P=r(11802);let R=(()=>{class o{constructor(n,i){this.store=n,this.locator=i,this.ngUnsubscribe=new O.x,this.REGISTER_PAGE_PATH="registration/common?token=",this.listOfCommonUrls=new N.X([]),this.list$=this.listOfCommonUrls.pipe((0,f.R)(this.ngUnsubscribe),(0,p.U)(c=>c.map(d=>this.extendCommonUrl(d))))}create(n){return this.store.create(n).pipe((0,E.w)(()=>this.findAll()))}findAll(){return this.store.findAll().pipe((0,p.U)(n=>(this.listOfCommonUrls.next(n),n)))}remove(n){return this.store.remove(n).pipe((0,E.w)(()=>this.findAll()))}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}extendCommonUrl(n){return Object.assign({},{id:n.id,comment:n.comment},{link:this.locator.getFullPath(`${this.REGISTER_PAGE_PATH}${n.id}`)})}}return o.\u0275fac=function(n){return new(n||o)(e.LFG(P.H),e.LFG(v._))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),o})();var U=r(28746),L=r(16997),T=r(70260),A=r(90042),I=r(59076);function F(o,s){if(1&o){const n=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"span"),e._uU(4),e.ALo(5,"truncateText"),e.qZA()(),e.TgZ(6,"div",4)(7,"a",5),e._uU(8),e.qZA()()(),e.TgZ(9,"div",6)(10,"b4b-button",7),e.NdJ("click",function(){e.CHM(n);const c=e.oxw();return e.KtG(c.b4b_onRemove.emit(c.commonUrl.id))}),e.qZA()()()}if(2&o){const n=e.oxw();e.xp6(4),e.Oqu(e.xi3(5,5,n.commonUrl.comment,120)),e.xp6(3),e.Q6J("href",n.commonUrl.link,e.LSH),e.xp6(1),e.Oqu(n.commonUrl.link),e.xp6(2),e.Q6J("icon","delete")("isPending",!1)}}let y=(()=>{class o{constructor(){this.b4b_onRemove=new e.vpe}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["b4b-common-url-list-item"]],inputs:{commonUrl:"commonUrl"},outputs:{b4b_onRemove:"b4b_onRemove"},decls:1,vars:1,consts:[["class","d-flex flex-row justify-content-between",4,"ngIf"],[1,"d-flex","flex-row","justify-content-between"],[1,"align-self-stretch"],[1,"comment-container"],[1,"url-container"],[3,"href"],[1,"align-self-center"],[3,"icon","isPending","click"]],template:function(n,i){1&n&&e.YNc(0,F,11,8,"div",0),2&n&&e.Q6J("ngIf",i.commonUrl)},dependencies:[t.O5,A.r,I.q],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .comment-container[_ngcontent-%COMP%]{margin-bottom:.3rem;word-wrap:break-word}[_nghost-%COMP%] .url-container[_ngcontent-%COMP%]{word-wrap:break-word}"]}),o})();function D(o,s){if(1&o){const n=e.EpF();e.TgZ(0,"div",2)(1,"b4b-common-url-list-item",3),e.NdJ("b4b_onRemove",function(c){e.CHM(n);const d=e.oxw();return e.KtG(d.b4b_onRemove.emit(c))}),e.qZA()()}if(2&o){const n=s.$implicit;e.xp6(1),e.Q6J("commonUrl",n)}}let x=(()=>{class o{constructor(){this.b4b_onRemove=new e.vpe}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["b4b-common-url-list"]],inputs:{commonUrls:"commonUrls"},outputs:{b4b_onRemove:"b4b_onRemove"},decls:2,vars:1,consts:[[1,"list-group","list-group-flush"],["class","list-group-item",4,"ngFor","ngForOf"],[1,"list-group-item"],[3,"commonUrl","b4b_onRemove"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0),e.YNc(1,D,2,1,"div",1),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",i.commonUrls))},dependencies:[t.sg,y]}),o})();var b=r(24006),$=r(37734),Z=r(98350),w=r(96431),B=r(55155);function G(o,s){1&o&&(e.TgZ(0,"b4b-form-error")(1,"span"),e.SDv(2,7),e.qZA()())}function J(o,s){1&o&&(e.TgZ(0,"b4b-form-error")(1,"span"),e.SDv(2,8),e.qZA()())}function X(o,s){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,G,3,0,"b4b-form-error",6),e.YNc(2,J,3,0,"b4b-form-error",6),e.qZA()),2&o){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.controlHasError("required")),e.xp6(1),e.Q6J("ngIf",n.controlHasError("maxlength"))}}let k=(()=>{class o{constructor(){this.isProcessRunning=!1,this.isNeedClearForm=!1,this.b4b_onSubmit=new e.vpe}ngOnChanges(n){n&&n.isNeedClearForm&&n.isNeedClearForm.currentValue&&this.resetForm()}ngOnInit(){this.commonUrlCommentControl=this.createFormControl()}onClick(n){n.valid&&this.b4b_onSubmit.emit({comment:n.value})}controlHasError(n){return this.commonUrlCommentControl.hasError(n)}createFormControl(){return new b.NI(null,[b.kI.required,b.kI.maxLength(120)])}resetForm(){this.commonUrlCommentControl.reset()}}return o.\u0275fac=function(n){return new(n||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["b4b-create-common-url-form"]],inputs:{isProcessRunning:"isProcessRunning",isNeedClearForm:"isNeedClearForm"},outputs:{b4b_onSubmit:"b4b_onSubmit"},features:[e.TTD],decls:9,vars:7,consts:function(){let s,n,i,c;return s="Comment*",n="GENERATE",i="Comment cannot be empty.",c="Exceeds 120 characters. Try something shorter.",[[1,"d-flex","flex-row","justify-content-start"],["for","comment-text-input","b4bFormFieldLabel",""],s,["id","comment-text-input","type","text","b4bInput","",3,"formControl"],[1,"align-self-end","button-container"],["title",n,3,"disabled","size","isPending","click"],[4,"ngIf"],i,c]},template:function(n,i){1&n&&(e.TgZ(0,"form")(1,"div",0)(2,"b4b-form-field")(3,"label",1),e.SDv(4,2),e.qZA(),e._UZ(5,"input",3),e.qZA(),e.TgZ(6,"div",4)(7,"b4b-button",5),e.NdJ("click",function(){return i.onClick(i.commonUrlCommentControl)}),e.qZA()()(),e.YNc(8,X,3,2,"div",6),e.qZA()),2&n&&(e.xp6(5),e.Q6J("formControl",i.commonUrlCommentControl),e.xp6(2),e.Akn("primary"),e.Q6J("disabled",i.commonUrlCommentControl.invalid||i.isProcessRunning)("size","small")("isPending",i.isProcessRunning),e.xp6(1),e.Q6J("ngIf",i.commonUrlCommentControl.dirty))},dependencies:[t.O5,$.V,Z.h,w.S,b._Y,b.Fj,b.JJ,b.JL,b.F,b.oH,A.r,B.A],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] b4b-form-field[_ngcontent-%COMP%]{width:100%;margin-right:20px;margin-bottom:0}[_nghost-%COMP%] .ng-untouched.ng-invalid[_ngcontent-%COMP%]{border:1px solid #949eb5}[_nghost-%COMP%] .button-container[_ngcontent-%COMP%]{width:115px;min-width:115px}"]}),o})();function H(o,s){if(1&o){const n=e.EpF();e.TgZ(0,"div",5)(1,"b4b-common-url-list",6),e.NdJ("b4b_onRemove",function(c){e.CHM(n);const d=e.oxw();return e.KtG(d.onRemove(c))}),e.qZA()()}if(2&o){const n=e.oxw();e.xp6(1),e.Q6J("commonUrls",n.commonUrls)}}let V=(()=>{class o{constructor(n,i){this.commonUrlManager=n,this.alertService=i,this.isProcessRunning=!1,this.isNeedClearForm=!1}ngOnInit(){this.commonUrlManager.list$.subscribe(n=>{this.commonUrls=[...n]}
1),this.commonUrlManager.findAll().subscribe(()=>{},()=>{this.alertService.info("Failed to get list of common URLs")})}generateCommonUrl(n){this.isProcessRunning=!0,this.isNeedClearForm=!1,this.commonUrlManager.create(n).pipe((0,U.x)(()=>this.isProcessRunning=!1)).subscribe(()=>{this.isNeedClearForm=!0},i=>{i.code===_.U.ClientError&&this.alertService.info("Failed to create common URL.")})}onRemove(n){this.commonUrlManager.remove(n).subscribe(()=>{},i=>{i.code===_.U.ClientError&&this.alertService.info("Failed to remove common URL.")})}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(R),e.Y36(L.c))},o.\u0275cmp=e.Xpm({type:o,selectors:[["b4b-access-to-platform"]],features:[e._Bn([R])],decls:7,vars:3,consts:function(){let s;return s="Administration of Registration Links",[[1,"access-to-platform-container"],s,[1,"b4b-container-content-inner"],[3,"isNeedClearForm","isProcessRunning","b4b_onSubmit"],["class","list-container scrollable",4,"ngIf"],[1,"list-container","scrollable"],[3,"commonUrls","b4b_onRemove"]]},template:function(n,i){1&n&&(e.TgZ(0,"div",0)(1,"b4b-panel-headline")(2,"span"),e.SDv(3,1),e.qZA()(),e.TgZ(4,"div",2)(5,"b4b-create-common-url-form",3),e.NdJ("b4b_onSubmit",function(d){return i.generateCommonUrl(d)}),e.qZA(),e.YNc(6,H,2,1,"div",4),e.qZA()()),2&n&&(e.xp6(5),e.Q6J("isNeedClearForm",i.isNeedClearForm)("isProcessRunning",i.isProcessRunning),e.xp6(1),e.Q6J("ngIf",i.commonUrls.length))},dependencies:[t.O5,T.a,x,k],styles:["[_nghost-%COMP%] .access-to-platform-container[_ngcontent-%COMP%]{padding-top:17px}[_nghost-%COMP%] .b4b-container-content-inner[_ngcontent-%COMP%]{width:1000px;max-width:1000px}[_nghost-%COMP%] .list-container[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.125);margin-top:10px;max-height:500px}"]}),o})();var z=r(67759),Q=r(10711),Y=r(768),h=r(39646);let S=(()=>{class o extends Q.V{constructor(n){super(),this.userStore=n,this.DEFAULT_PRIVATE_FILTER={id:"systemRole",value:"PRIVATE_ACCOUNT",operator:"EQ"}}loadEntities(n){return this.userStore.findAll(n)}setFullTextSearchFilterToSearchQuery(n){const i={...n};return i.filters=[...i.filters,this.DEFAULT_PRIVATE_FILTER],(0,h.of)(i)}setSortingToSearchQuery(n){const i={...n};return i.sort=new Y.yv("","firstName","ASC"),(0,h.of)(i)}}return o.\u0275fac=function(n){return new(n||o)(e.LFG(z.U))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),o})();var j=r(43572),K=r(71970),W=r(92077);const q=[{path:"",component:C,children:[{path:"access",component:V},{path:"users",component:(()=>{class o{constructor(n){this.uiService=n,this.canLoadNextPage=!1,this.ngUnsubscribe=new O.x}ngOnInit(){this.listItems=this.uiService.entities$,this.uiService.getAll(),this.uiService.canShowMoreEntities$.pipe((0,f.R)(this.ngUnsubscribe)).subscribe(n=>{this.canLoadNextPage=n||!1})}onShowMoreClick(){this.uiService.appendNextPage()}onDeletePvtMember(n){this.listItems=this.uiService.entities$,this.uiService.getAll(),this.uiService.canShowMoreEntities$.pipe((0,f.R)(this.ngUnsubscribe)).subscribe(i=>{this.canLoadNextPage=i||!1})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(S))},o.\u0275cmp=e.Xpm({type:o,selectors:[["b4b-user-management"]],features:[e._Bn([S])],decls:7,vars:4,consts:function(){let s;return s="Administration of Private Users",[["details-content",""],s,[3,"members","isShowCompanyName","readonly","canLoadNextPage","b4b_onShowMoreClick","b4b_onDeletePvtMember"]]},template:function(n,i){1&n&&(e.TgZ(0,"b4b-detail-view-layout")(1,"div",0)(2,"b4b-panel-headline")(3,"span"),e.SDv(4,1),e.qZA()(),e.TgZ(5,"b4b-card")(6,"b4b-member-list",2),e.NdJ("b4b_onShowMoreClick",function(){return i.onShowMoreClick()})("b4b_onDeletePvtMember",function(d){return i.onDeletePvtMember(d)}),e.qZA()()()()),2&n&&(e.xp6(6),e.Q6J("members",i.listItems)("isShowCompanyName",!1)("readonly",!0)("canLoadNextPage",i.canLoadNextPage))},dependencies:[j.A,K.U,W.b,T.a]}),o})()}]}];let ee=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[m.Bz.forChild(q),m.Bz]}),o})(),ne=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)}
1,o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[t.ez,ee,a.g,u.k,l.m]}),o})()},78590:(g,M,r)=>{r.d(M,{d:()=>u});var t=r(94650);let u=(()=>{class a{constructor(){this.badgeClass=""}ngOnChanges(){this.role&&(this.badgeClass=`badge-${this.role.toLowerCase()}`)}}return a.\u0275fac=function(m){return new(m||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["b4b-member-role-badge"]],inputs:{role:"role"},features:[t.TTD],decls:2,vars:4,template:function(m,e){1&m&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&m&&(t.Gre("badge ",e.badgeClass,""),t.xp6(1),t.Oqu(e.role))},styles:["[_nghost-%COMP%] .badge[_ngcontent-%COMP%]{padding:.3rem 1rem;font-size:14px;border-radius:3px;border:1px solid #89a4af;color:#89a4af;font-weight:400}"]}),a})()},75618:(g,M,r)=>{r.d(M,{j:()=>a});var t=r(94650),u=r(60312);let a=(()=>{class l{constructor(){this.b4b_onCancelClick=new t.vpe,this.b4b_onDeleteClick=new t.vpe,this.b4b_onSuspendClick=new t.vpe}}return l.\u0275fac=function(e){return new(e||l)},l.\u0275cmp=t.Xpm({type:l,selectors:[["b4b-remove-member-modal"]],outputs:{b4b_onCancelClick:"b4b_onCancelClick",b4b_onDeleteClick:"b4b_onDeleteClick",b4b_onSuspendClick:"b4b_onSuspendClick"},decls:18,vars:0,consts:function(){let m,e,C;return m=" Cancel ",e=" DELETE ",C=" SUSPEND ",[[3,"b4b_onClose"],["modal","modal"],["modal
1-header",""],[1,"b4b-modal-header"],["modal-body",""],["modal-footer","",1,"button-bar"],[1,"b4b-btn","modal-button","mr-auto",3,"click"],m,[1,"b4b-btn","b4b-btn-danger","modal-button",3,"click"],e,[1,"b4b-btn","b4b-btn-primary","modal-button","ml-3",3,"click"],C]},template:function(e,C){if(1&e){const _=t.EpF();t.TgZ(0,"b4b-modal",0,1),t.NdJ("b4b_onClose",function(){return C.b4b_onCancelClick.emit()}),t.TgZ(2,"div",2)(3,"span",3),t._uU(4,"Choose action for user account"),t.qZA()(),t.TgZ(5,"div",4)(6,"p"),t._uU(7," Delete - permanently removes user account from Advaneo data marketplace "),t.qZA(),t.TgZ(8,"p"),t._uU(9,"Suspend - temporarily deactivates user account"),t.qZA()(),t.TgZ(10,"div",5)(11,"button",6),t.NdJ("click",function(){t.CHM(_);const p=t.MAs(1);return t.KtG(p.close())}),t.SDv(12,7),t.qZA(),t.TgZ(13,"span")(14,"button",8),t.NdJ("click",function(){t.CHM(_);const p=t.MAs(1);return C.b4b_onDeleteClick.emit(),t.KtG(p.close())}),t.SDv(15,9),t.qZA(),t.TgZ(16,"button",10),t.NdJ("click",function(){t.CHM(_);const p=t.MAs(1);return C.b4b_onSuspendClick.emit(),t.KtG(p.close())}),t.SDv(17,11),t.qZA()()()()}}
1,dependencies:[u.z],styles:["[_nghost-%COMP%] .button-bar[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between}[_nghost-%COMP%] .modal-button[_ngcontent-%COMP%]{padding-right:45px;padding-left:45px;min-width:0}"]}),l})()},38376:(g,M,r)=>{r.d(M,{N:()=>u});var t=r(94650);let u=(()=>{class a{constructor(){this.b4b_onClick=new t.vpe}}return a.\u0275fac=function(m){return new(m||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["b4b-show-more-button"]],inputs:{text:"text"},outputs:{b4b_onClick:"b4b_onClick"},decls:2,vars:1,consts:function(){let l;return l=" " + "\ufffd0\ufffd" + "\n",[[1,"regular-link",3,"click"],l]},template:function(m,e){1&m&&(t.TgZ(0,"span",0),t.NdJ("click",function(){return e.b4b_onClick.emit()}),t.SDv(1,1),t.qZA()),2&m&&(t.xp6(1),t.pQV(e.text),t.QtT(1))},styles:["[_nghost-%COMP%]{width:100%;display:flex;height:2rem;align-content:center;align-items:center}[_nghost-%COMP%] span[_ngcontent-%COMP%]{margin:0 auto}[_nghost-%COMP%] .regular-link[_ngcontent-%COMP%]{font-weight:400}b4b-second-level-filter[_nghost-%COMP%], b4b-second-level-filter [_nghost-%COMP%]{font-weight:500;font-size:14px;line-height:16px;padding-top:10px;border-top:1px solid #DCDDE5}"]}),a})()},20512:(g,M,r)=>{r.d(M,{q:()=>a});var t=r(5523),u=r(94650);let a=(()=>{class l{constructor(e){this.companyStore=e,this.cachedCompanyId="",this.cachedCompanyName=""}transform(e,C){return e&&e!==this.cachedCompanyId&&C&&(this.cachedCompanyId=e,this.cachedCompanyName="",this.companyStore.get(e).subscribe(_=>{this.cachedCompanyName=_[C]},_=>{console.error(_),this.cachedCompanyName="N/A"})),this.cachedCompanyName?this.cachedCompanyName:'<span class="b4b-loaders"></span>'}}return l.\u0275fac=function(e){return new(e||l)(u.Y36(t.Z,16))},l.\u0275pipe=u.Yjl({name:"companyDataLoader",type:l,pure:!1}),l})()}}]);
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.