(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{QtF9:function(o,e,n){"use strict";n.r(e),n.d(e,"MainModule",(function(){return Q}));var t=n("ofXK"),c=n("a5BO"),i=n("LPYB"),r=n("zQsl"),b=n("Cr32"),d=n("PCNd"),a=n("tyNb"),s=n("fXoL"),l=n("R1hj"),p=n("pqks");function u(o,e){if(1&o){const o=s.Sb();s.Rb(0,"div",3),s.Rb(1,"a",4),s.cc("click",(function(){return s.Bc(o),s.gc().open("https://providersdev.cgmservicios.com/proveedores-module/#/dashboard/default")})),s.Rb(2,"div",5),s.Rb(3,"div",6),s.Rb(4,"div",7),s.Rb(5,"div",8),s.Rb(6,"div",9),s.Mb(7,"app-feather-icons",10),s.Qb(),s.Qb(),s.Rb(8,"div",11),s.Rb(9,"span",12),s.Lc(10,"Proveedores"),s.Qb(),s.Rb(11,"h3",13),s.Lc(12,"$ "),s.Rb(13,"span",14),s.Lc(14,"6659"),s.Qb(),s.Rb(15,"small"),s.Lc(16," This Month"),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb()}2&o&&(s.yb(7),s.lc("icon","box"),s.yb(6),s.lc("CountTo",6659)("from",0)("duration",2))}function v(o,e){1&o&&(s.Rb(0,"div",3),s.Rb(1,"a",15),s.Rb(2,"div",5),s.Rb(3,"div",16),s.Rb(4,"div",7),s.Rb(5,"div",8),s.Rb(6,"div",9),s.Mb(7,"app-feather-icons",17),s.Qb(),s.Qb(),s.Rb(8,"div",11),s.Rb(9,"span",12),s.Lc(10,"Ordenes de Compra"),s.Qb(),s.Rb(11,"h3",13),s.Lc(12,"$ "),s.Rb(13,"span",14),s.Lc(14,"9856"),s.Qb(),s.Rb(15,"small"),s.Lc(16," This Month"),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb()),2&o&&(s.yb(7),s.lc("icon","clipboard"),s.yb(6),s.lc("CountTo",9856)("from",0)("duration",2))}function m(o,e){if(1&o){const o=s.Sb();s.Rb(0,"div",3),s.Rb(1,"a",4),s.cc("click",(function(){return s.Bc(o),s.gc().openContracts("https://providersdev.cgmservicios.com/proveedores-contratos/#/dashboard/default")})),s.Rb(2,"div",5),s.Rb(3,"div",18),s.Rb(4,"div",7),s.Rb(5,"div",8),s.Rb(6,"div",9),s.Mb(7,"app-feather-icons",19),s.Qb(),s.Qb(),s.Rb(8,"div",11),s.Rb(9,"span",12),s.Lc(10,"Contratos"),s.Qb(),s.Rb(11,"h3",13),s.Lc(12,"$ "),s.Rb(13,"span",14),s.Lc(14,"893"),s.Qb(),s.Rb(15,"small"),s.Lc(16," This Month"),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb(),s.Qb()}2&o&&(s.yb(7),s.lc("icon","book-open"),s.yb(6),s.lc("CountTo",893)("from",0)("duration",2))}const g=[{path:"",children:[{path:"default",component:(()=>{class o{constructor(o){this.sessionService=o,this.modules=[]}ngOnInit(){this.sessionService.getUserAdminModules().subscribe(o=>{console.log("modules",o),this.modules=o});var o=window.location.origin;console.log("base_url",o)}open(o){localStorage.setItem("token_provider_module",localStorage.getItem("token_provi_admin")),localStorage.setItem("provider_module_entity",JSON.parse(localStorage.getItem("select_entity_provi")).entity_id),window.open(o,"_blank")}openContracts(o){localStorage.setItem("token_contract",localStorage.getItem("token_provi_admin")),window.open(o,"_blank")}openOC(o){localStorage.setItem("token_contract",localStorage.getItem("token_provi_admin")),window.open(o,"_blank")}isModule(o){return this.modules.findIndex(e=>e.id_tipo_doc===o)>=0}}return o.\u0275fac=function(e){return new(e||o)(s.Lb(l.a))},o.\u0275cmp=s.Fb({type:o,selectors:[["app-main"]],decls:5,vars:3,consts:[[1,"container-fluid"],[1,"p-grid"],["class","p-col-4",4,"ngIf"],[1,"p-col-4"],[1,"new-window",3,"click"],[1,"card","o-hidden","widget-cards"],[1,"bg-warning","card-body"],[1,"media","static-top-widget","row"],[1,"icons-widgets","col-4"],[1,"align-self-center","text-center"],[1,"font-warning",3,"icon"],[1,"media-body","col-8"],[1,"m-0"],[1,"mb-0"],[1,"counter",3,"CountTo","from","duration"],["href","https://proveedoresdev.cgmservicios.com/proveedores-ordenes/#/dashboard/default"],[1,"bg-secondary","card-body"],[1,"font-secondary",3,"icon"],[1,"bg-primary","card-body"],[1,"font-primary",3,"icon"]],template:function(o,e){1&o&&(s.Rb(0,"div",0),s.Rb(1,"div",1),s.Jc(2,u,17,4,"div",2),s.Jc(3,v,17,4,"div",2),s.Jc(4,m,17,4,"div",2),s.Qb(),s.Qb()),2&o&&(s.yb(2),s.lc("ngIf",e.modules.length>0&&e.isModule(3)),s.yb(1),s.lc("ngIf",e.modules.length>0&&e.isModule(2)),s.yb(1),s.lc("ngIf",e.modules.length>0&&e.isModule(1)))},directives:[t.k,p.a,c.a],styles:[".info-top[_ngcontent-%COMP%]{border-right:1.5px dashed}.revision-color[_ngcontent-%COMP%]{color:#ffc107}.reject-color[_ngcontent-%COMP%]{color:#dc3545}.entregado-color[_ngcontent-%COMP%]{color:#13c9ca}.approve-color[_ngcontent-%COMP%]{color:#20c997}.total-color[_ngcontent-%COMP%]{color:#575655}.new-window[_ngcontent-%COMP%]{cursor:pointer}"]}),o})(),data:{title:"Acceso",breadcrumb:"Principal"}}]}];let f=(()=>{class o{}return o.\u0275mod=s.Jb({type:o}),o.\u0275inj=s.Ib({factory:function(e){return new(e||o)},imports:[[a.h.forChild(g)],a.h]}),o})(),Q=(()=>{class o{}return o.\u0275mod=s.Jb({type:o}),o.\u0275inj=s.Ib({factory:function(e){return new(e||o)},imports:[[t.b,f,c.b,d.a,i.a,r.a,b.a]]}),o})()}}]);