PageSourceSearch

https://www.vivacom.bg/account/chunk-TXBEZ7LG.js

js vivacom.bg collected 2026-09-24 09:32:44 UTC 8,040 bytes, 1 lines download raw bytes

1import{a as re}from"./chunk-2OGYSIN4.js";import{b as ae}from"./chunk-ZO7MWZV5.js";import"./chunk-E5C3DMEE.js";import{a as ie}from"./chunk-QZTWUFVX.js";import"./chunk-MS4AQ6UA.js";import{a as oe}from"./chunk-DTBZ7U2G.js";import{c as ne}from"./chunk-LR32ZC3B.js";import"./chunk-MRUXXFZZ.js";import"./chunk-ZK2UVZHG.js";import"./chunk-YCWVNKHW.js";import"./chunk-IKP3GIDA.js";import{a as te}from"./chunk-6FDE4EML.js";import{$a as Q,Ca as R,Ja as $,Ka as U,La as J,Pa as q,Va as z,_a as K,ab as X,ia as A,la as B,lb as Z,na as O,qa as P,ra as w,wa as k,wc as ee,za as V}from"./chunk-UMFZ3LLX.js";import{a as p,b as Y}from"./chunk-BWEGVNY2.js";import{a as W,b as H}from"./chunk-AG6QEAUI.js";import{b as F,p as L}from"./chunk-SAUKD7DD.js";import{C as x,Jb as b,Lb as S,Mc as y,Nb as I,Ob as j,Pb as N,Qb as s,Qc as d,Rb as r,Rc as g,Sb as a,Sc as D,Tb as M,_b as E,db as i,dc as _,fc as l,oa as v,ob as c,pa as f,tc as m,ub as T,uc as u,vc as G}from"./chunk-KKSGD2T6.js";import"./chunk-EQDQRRRY.js";var de=n=>({customerName:n});function pe(n,C){if(n&1&&(r(0,"div",0),M(1,"mat-progress-spinner",2),a()),n&2){let e=l();i(),s("mode",e.commonService.mode)("strokeWidth",2)("diameter",80)}}function ue(n,C){if(n&1&&(r(0,"mat-option",13)(1,"mat-radio-button",16),m(2),a()()),n&2){let e=C.$implicit,t=C.$index,o=l(2);s("value",e.groupId),i(),s("value",e.groupId)("disabled",o.selectedGroupObj?t+1===o.setSelectedGroup():!1)("checked",o.selectedGroupObj?t+1===o.setSelectedGroup():t===o.setSelectedGroup()),i(),G(" ",e.groupName," ")}}function ge(n,C){if(n&1){let e=E();r(0,"div",1)(1,"div",3)(2,"p",4),m(3),a(),r(4,"p",5),m(5),d(6,"translate"),a(),r(7,"form",6)(8,"div",7)(9,"mat-form-field",8)(10,"label"),m(11),d(12,"translate"),a(),M(13,"input",9),a()(),r(14,"div",10)(15,"mat-form-field",11)(16,"mat-label"),m(17),d(18,"translate"),a(),r(19,"mat-select",12),_("selectionChange",function(o){v(e);let h=l();return f(h.selectGroup(o))}),j(20,ue,3,5,"mat-option",13,I),d(22,"slice"),a()()(),r(23,"div",14)(24,"button",15),_("click",function(){v(e);let o=l();return f(o.submitConnectionForm())}),m(25),d(26,"translate"),a()()()()()}if(n&2){let e=l();i(3),u(e.trs.trsTsParams("account.tileCard.connectionManagement.manageConnectionTitle",y(21,de,e.commonService.fCustomerName))),i(2),u(g(6,10,"account.tileCard.connectionManagement.manageConnectionDesc")),i(2),s("formGroup",e.manageConnectionForm),i(4),u(g(12,12,"account.tileCard.connectionManagement.connectionName")),i(2),s("type","text"),i(4),u(g(18,14,"account.tileCard.connectionManagement.connectionTeam")),i(2),s("panelClass","cm-select"),i(),N(D(22,16,e.connectionManagementService.groupsAndSubGroups,1)),i(4),s("ladda",e.isManageConnectionLaddaActivated)("disabled",e.disableSubmitButton),i(),G(" ",g(26,19,"account.tileCard.connectionManagement.saveChanges")," ")}}var ce=(()=>{class n{get manageConnectionControls(){return this.manageConnectionForm.controls}constructor(e,t,o,h,se,me,le){this.commonService=e,this.trs=t,this.dialog=o,this.formBuilder=h,this.connectionManagementService=se,this.location=me,this.storageService=le,this.loaderTimer$=x(500),this.rootGroupObj={},this.selectedConnectionObj={},this.selectedGroupObj={},this.commonService.isPageTitleActivated=!0,this.commonService.isBackButtonActivated=!0,this.commonService.setPageTitle(this.trs.trsTs("account.tileCard.connectionManagement.manageConnection"),"business-manage-connection"),this.commonService.isPageSubtitleActivated=!0}ngOnInit(){this.rootGroupObj=this.storageService.getJson(p.ROOT_GROUP),this.selectedConnectionObj=this.storageService.getJson(p.SELECTED_CONNECTION),this.selectedGroupObj=this.storageService.getJson(p.SELECTED_GROUP),this.commonService.pageSubtitle=this.selectedConnectionObj.connectionName,this.manageConnectionForm=this.formBuilder.group({connectionName:[{value:this.selectedConnectionObj.connectionName,disabled:!0},[O.required]],connectionTeam:[this.selectedGroupObj?this.selectedGroupObj.groupId:"",[O.required]]},{}),this.disableSubmitButton=!!this.selectedGroupObj}selectGroup(e){return console.log("event",e),this.isInitLoaded=!0,this.selectedGroupObj?e.value===this.selectedGroupObj.groupParentId?this.disableSubmitButton=!0:e.value===this.selectedGroupObj.groupId?this.disableSubmitButton=!0:this.disableSubmitButton=!1:this.disableSubmitButton=!1}setSelectedGroup(){if(this.selectedGroupObj){for(let e=0;e<this.connectionManagementService.groupsAndSubGroups.length;e++)if(this.connectionManagementService.groupsAndSubGroups[e].groupId===this.selectedGroupObj.groupId)return e}else return this.isInitLoaded||this.manageConnectionForm.patchValue({connectionTeam:this.connectionManagementService.groupsAndSubGroups[1].groupId}),0}submitConnectionForm(){if(this.manageConnectionSubmitted=!0,this.isManageConnectionLaddaActivated=!0,console.log("manageConnectionForm",this.manageConnectionForm),this.manageConnectionForm.invali
1d){this.loaderTimer$.subscribe(()=>{this.isManageConnectionLaddaActivated=!1});return}else{let e={customerCode:this.rootGroupObj.rootGroupName,connectionName:"",connectionId:this.selectedConnectionObj.connectionId,connectionOrder:"1",parentGroupId:this.manageConnectionControls.connectionTeam.value};console.log("updateConnectionData move",e),this.connectionManagementService.updateConnection(e).subscribe(t=>{t.status&&t.status==="OK"?this.openConfirmationDialog("success"):this.openConfirmationDialog("error"),this.manageConnectionSubmitted=!1,this.isManageConnectionLaddaActivated=!1},t=>{console.log("Error occurred while updating connection: ",t),this.openConfirmationDialog("error"),this.manageConnectionSubmitted=!1,this.isManageConnectionLaddaActivated=!1})}}openConfirmationDialog(e){this.dialog.open(ie,{width:"812px",panelClass:["global-dialog","gd-v3","text-align-center","confirmation-dialog-v3"],data:{image:e==="success"?"assets/img/success-dialog-icon.svg":"assets/img/unsuccess-dialog-icon.svg",title:e==="success"?this.trs.trsTs("success"):this.trs.trsTs("error"),desc:e==="success"?this.trs.trsTs("account.tileCard.connectionManagement.successDialogDesc"):this.trs.trsTs("messagesPages.errorDescription"),close:this.trs.trsTs("close")}}).afterClosed().subscribe(()=>{e==="success"&&(this.connectionManagementService.isGroupsLoaded=!1,this.connectionManagementService.fetchConnectionGroups(this.rootGroupObj.rootGroupName),this.location.back())})}ngOnDestroy(){this.commonService.isCustomerPickerActivated=!1,this.commonService.isPageSubtitleActivated=!1,this.commonService.pageSubtitle="",this.storageService.remove(p.SELECTED_GROUP),this.storageService.remove(p.SELECTED_CONNECTION)}static{this.\u0275fac=function(t){return new(t||n)(c(ee),c(Z),c(A),c($),c(re),c(F),c(Y))}}static{this.\u0275cmp=T({type:n,selectors:[["app-manage-connection"]],decls:2,vars:2,consts:[[1,"page-spinner"],[1,"manage-connection-page","mt-20"],[3,"mode","strokeWidth","diameter"],[1,"container-460"],[1,"font-size-14","font-bold","mb-10"],[1,"font-size-14","font-light","mb-25"],[3,"formGroup"],[1,"form-field-holder","mb-25"],["floatLabel","never",1,"style-type-v3","with-icon","mb-0"],["matInput","","autocomplete","name","formControlName","connectionName","readonly","",3,"type"],[1,"mb40"],["appearance","fill",1,"select-type","um-pages","select-type-v3","select-with-label","select-with-radio"],["formControlName","connectionTeam","disableOptionCentering","",3,"selectionChange","panelClass"],[3,"value"],[1,"text-align-center"],[1,"new-user-access-btn","radius16","btn-1-v3","bg-main","ladda-fix-v3","black-with-ladda",3,"click","ladda","disabled"],[1,"variant-type-v3","um-pages","not-absolute",3,"value","disabled","checked"]],template:function(t,o){t&1&&(b(0,pe,2,3,"div",0),b(1,ge,27,23,"div",1)),t&2&&(S(o.connectionManagementService.isGroupsLoaded?-1:0),i(),S(o.connectionManagementService.isGroupsLoaded?1:-1))},dependencies:[te,U,k,B,P,w,J,V,R,z,K,q,oe,ne,ae,H,W,X,L,Q],encapsulation:2})}}return n})();var ke=[{path:"",redirectTo:"manage-connection",pathMatch:"full"},{path:"manage-connection",component:ce}];export{ke as MANAGE_CONNECTION_ROUTES};

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.