(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{107:function(t,e,r){"use strict";var n={layout:"empty",props:["error"]},o=(r(544),r(55)),component=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"error-container"},[404===t.error.statusCode?e("div",{staticClass:"background-image e404__background-image"}):500===t.error.statusCode?e("div",{staticClass:"background-image e500__background-image"}):t._e(),t._v(" "),e("div",{staticClass:"content"},[e("p",{staticClass:"error-description"},[t._v("\n      Sorry, it looks like something went wrong. Please try again or go back to the\n      "),e("NuxtLink",{attrs:{to:"/"}},[t._v(" Home page")]),t._v(".\n    ")],1)])])}),[],!1,null,null,null);e.a=component.exports},150:function(t,e,r){"use strict";(function(t){var n=r(10),o=(r(35),r(14),r(7),r(49),r(48),r(280)),c=r.n(o),l=r(281),d="https://3j02p846qd.execute-api.us-west-2.amazonaws.com/prod/",f=function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(path){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(l.a)("get",path));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(path,data){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(l.a)("post",path,data));case 1:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),h=function(){var e=Object(n.a)(regeneratorRuntime.mark((function e(path,r){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],o={headers:{Authorization:r}},e.next=4,c.a.get(d.concat(path||""),o).then((function(e){(n=e.data).body&&(n=JSON.parse(t.from(n.body).toString("utf-8")))})).catch((function(t){return console.error(t)}));case 4:return e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),v=function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(path,data,e){var r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],n={headers:{Authorization:e}},t.next=4,c.a.post(d.concat(path||""),data||"",n).then((function(t){r=t})).catch((function(t){return console.error(t)}));case 4:return t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();e.a={GET:f,get:h,POST:m,post:v}}).call(this,r(23).Buffer)},281:function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var n,o=r(10),c=(r(48),r(99)),l=r(150),d=function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e,path,data){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.a.currentAuthenticatedUser().then((function(u){return n=u.signInUserSession.idToken.jwtToken})).catch((function(t){return console.log(t)}));case 2:if("post"!==e){t.next=6;break}return t.next=5,l.a.post(path,data,n);case 5:case 9:return t.abrupt("return",t.sent);case 6:if("get"!==e){t.next=10;break}return t.next=9,l.a.get(path,n);case 10:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},284:function(t,e,r){"use strict";var n=r(4),o=r(415),c=r.n(o);r(632);e.a=function(){n.a.use(c.a,{timeout:2500,theme:"semanticui",layout:"bottomRight",progressBar:!0})}},285:function(t,e,r){"use strict";r(101).default.configure({aws_project_region:"us-west-2",aws_user_pools_id:"us-west-2_WjQMGzv9y",aws_user_pools_web_client_id:"3q8168bsot7rpv2qhh0hbouoev"})},380:function(t,e,r){var content=r(545);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(27).default)("73ba1be6",content,!0,{sourceMap:!1})},387:function(t,e,r){"use strict";var n=r(10),o=(r(48),r(150)),c=function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(path){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o.a.GET(path));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),l={latamCtoCenters:function(){return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c("centers/latamCtoCenters");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()},userCenter:function(t){return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c("centers/user/".concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()}};e.a=l},420:function(t,e,r){"use strict";var n=r(693),o=r(703),c=r(694),l=r(662),d=r(696),f=r(700),m=r(270),h=r(273),v=r(171),_=r(274),x=r(112),w=r(699),y=r(697),k=r(269),R=r(698),C=r(695),j=r(10),O=(r(16),r(42),r(14),r(7),r(50),r(48),r(99)),S=r(422),U=r(423),T=r(387),A={name:"private",components:{AddEditProcedure:S.default,ExportData:U.default},data:function(){return{collapseOnScroll:!0,clipped:!1,drawer:!1,fixed:!1,loading:!0,user:{username:"",center:"",group:""},items:[{icon:"mdi-apps",title:"Home",to:"/"},{icon:"mdi-align-vertical-bottom",title:"Enrollment Data",to:{path:"/dashboard",query:{tab:0}}},{icon:"mdi-chart-donut",title:"Clinical Data",to:{path:"/dashboard",query:{tab:1}}},{icon:"mdi-chart-donut",title:"Angiographic Data",to:{path:"/dashboard",query:{tab:2}}},{icon:"mdi-align-vertical-bottom",title:"Procedural Data",to:{path:"/dashboard",query:{tab:3}}},{icon:"mdi-align-vertical-bottom",title:"Outcomes",to:{path:"/dashboard",query:{tab:4}}},{icon:"mdi-align-vertical-bottom",title:"Data Quality Ranking",to:{path:"/dashboard",query:{tab:6}}},{icon:"mdi-chart-donut",title:"General Data Quality",to:{path:"/dashboard",query:{tab:7}}},{icon:"mdi-chart-donut",title:"Center Data Quality",to:{path:"/dashboard",query:{tab:8}}},{icon:"mdi-account",title:"Users",to:"/accounts"},{icon:"mdi-folder-account-outline",title:"Internal Documents",to:"/documents"},{icon:"mdi-text-box-plus",title:"Publication Panel",to:"/proposals"},{icon:"mdi-power",title:"Exit",to:"/logout",color:"#ff003b"}]}},methods:{load:function(t){"/webmail"===t?window.open("https://latamctoregistry.awsapps.com/mail"):this.$router.push(t)},userCenter:function(t){return Object(j.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",T.a.userCenter(t));case 1:case"end":return e.stop()}}),e)})))()}},created:function(){var t=this;return Object(j.a)(regeneratorRuntime.mark((function e(){var r,n,o,c,l,d,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.a.currentAuthenticatedUser();case 2:return r=e.sent,n=r.signInUserSession.idToken.payload["cognito:groups"],o=n.includes("master"),c=n.includes("standard"),l=n.includes("judge"),d=n.includes("sponsor"),o||(t.items=t.items.filter((function(t){return"/accounts"!==t.to}))),t.user.username=r.username,e.next=12,t.userCenter(r.username);case 12:f=e.sent,Object.keys(f).length>0&&(t.user.center=f.center_name),d&&(t.user.group="Sponsor"),l&&(t.user.group="Judge"),c&&(t.$store.commit("setSubmitting",!0),t.user.group="Competitor"),o&&(t.user.group="Master",t.$store.commit("setGroup","master")),t.loading=!1;case 19:case"end":return e.stop()}}),e)})))()}},D=r(55),component=Object(D.a)(A,(function(){var t=this,e=t._self._c;return e(n.a,{attrs:{light:""}},[e(o.a,{attrs:{"clipped-left":t.clipped,fixed:"",app:"",prominent:"",rounded:"","hide-on-scroll":""}},[e(c.a,{staticClass:"mt-9",on:{click:function(e){e.stopPropagation(),t.drawer=!t.drawer}}}),t._v(" "),e(C.a),t._v(" "),e("nuxt-link",{staticClass:"d-flex align-center",attrs:{to:{name:"index"}}},[e("img",{attrs:{src:r(586),height:"120"}})]),t._v(" "),e(C.a),t._v(" "),e(d.a,{staticClass:"mr-8",attrs:{cols:"1"}},[e("AddEditProcedure"),t._v(" "),e("ExportData")],1)],1),t._v(" "),e(y.a,{attrs:{dark:"",width:"330",clipped:t.clipped,color:"#272d95",app:""},model:{value:t.drawer,callback:function(e){t.drawer=e},expression:"drawer"}},[t.loading?e(k.a,{staticClass:"mt-5 ml-4",attrs:{indeterminate:"",color:"white"}}):e(R.a,{staticClass:"ml-2",attrs:{justify:"start"}},[e(d.a,[e(l.a,{staticClass:"my-3"},[t._v(t._s(t.user.username))]),t._v(" "),e(l.a,[t._v(t._s(t.user.center||t.user.group))])],1)],1),t._v(" "),e(h.a,t._l(t.items,(function(r,i){return e(v.a,{key:i,attrs:{router:"",exact:""},on:{click:function(e){return t.load(r.to)}}},[e(_.a,[e(m.a,{attrs:{color:r.color}},[t._v(t._s(r.icon))])],1),t._v(" "),e(x.a,[e(x.c,{domProps:{textContent:t._s(r.title)}})],1)],1)})),1)],1),t._v(" "),e(w.a,[e(f.a,[e("nuxt")],1)],1)],1)}),[],!1,null,null,null);e.a=component.exports},421:function(t,e,r){"use strict";var n=r(693),o={name:"public"},c=r(55),component=Object(c.a)(o,(function(){var t=this._self._c;return t(n.a,[t("nuxt")],1)}),[],!1,null,null,null);e.a=component.exports},422:function(t,e,r){"use strict";r.r(e);var n=r(296),o=r(270),c=r(701),l={name:"AddEditProcedure",computed:{REDCAP_URL:function(){return"http://redcap.cardiologia.org.br/redcap_v11.1.25"}}},d=r(55),component=Object(d.a)(l,(function(){var t=this,e=t._self._c;return e(c.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(r){var c=r.on;return[e(n.a,t._g({staticClass:"ml-3",attrs:{icon:"",rounded:"",href:"".concat(t.REDCAP_URL,"/DataEntry/record_status_dashboard.php?pid=108&rd_id="),target:"_blank"}},c),[e(o.a,[t._v("mdi-file-edit")])],1)]}}])},[t._v(" "),e("span",[t._v("Add or Edit Procedure")])])}),[],!1,null,"9a7afe5c",null);e.default=component.exports},423:function(t,e,r){"use strict";r.r(e);var n=r(296),o=r(270),c=r(701),l={name:"ExportData",computed:{REDCAP_URL:function(){return"http://redcap.cardiologia.org.br/redcap_v11.1.25"}}},d=r(55),component=Object(d.a)(l,(function(){var t=this,e=t._self._c;return e(c.a,{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(r){var c=r.on;return[e(n.a,t._g({staticClass:"ml-3",attrs:{icon:"",rounded:"",href:"".concat(t.REDCAP_URL,"/DataExport/index.php?pid=108&report_id=487"),target:"_blank"}},c),[e(o.a,[t._v("mdi-file-export")])],1)]}}])},[t._v(" "),e("span",[t._v("Export Data")])])}),[],!1,null,"e37462ea",null);e.default=component.exports},448:function(t,e,r){r(449),t.exports=r(450)},485:function(t,e,r){"use strict";r.r(e);var n=r(10),o=(r(48),r(99));function c(){return(c=Object(n.a)(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.redirect,t.prev=1,t.next=4,o.a.currentAuthenticatedUser();case 4:t.next=10;break;case 6:t.prev=6,t.t0=t.catch(1),console.log(t.t0),r("/auth");case 10:case"end":return t.stop()}}),t,null,[[1,6]])})))).apply(this,arguments)}e.default=function(t){return c.apply(this,arguments)}},489:function(t,e){},491:function(t,e){},513:function(t,e){},535:function(t,e,r){"use strict";r.r(e);var n=r(10),o=(r(48),r(42),r(50),r(99));function c(){return(c=Object(n.a)(regeneratorRuntime.mark((function t(e){var r,n,c,l,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.redirect,t.prev=1,t.next=4,o.a.currentAuthenticatedUser();case 4:n=t.sent,c=n.signInUserSession.idToken.payload["cognito:groups"].includes("standard"),l=n.signInUserSession.idToken.payload["cognito:groups"].includes("sponsor"),d=n.signInUserSession.idToken.payload["cognito:groups"].includes("master"),c||l||d||r("/auth"),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(1),console.log(t.t0),r("/auth");case 15:case"end":return t.stop()}}),t,null,[[1,11]])})))).apply(this,arguments)}e.default=function(t){return c.apply(this,arguments)}},536:function(t,e,r){"use strict";r.r(e);var n=r(10),o=(r(48),r(42),r(50),r(99));function c(){return(c=Object(n.a)(regeneratorRuntime.mark((function t(e){var r,n,c,l,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.redirect,t.prev=1,t.next=4,o.a.currentAuthenticatedUser();case 4:n=t.sent,c=n.signInUserSession.idToken.payload["cognito:groups"].includes("judge"),l=n.signInUserSession.idToken.payload["cognito:groups"].includes("sponsor"),d=n.signInUserSession.idToken.payload["cognito:groups"].includes("master"),c||l||d||r("/auth"),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(1),console.log(t.t0),r("/auth");case 15:case"end":return t.stop()}}),t,null,[[1,11]])})))).apply(this,arguments)}e.default=function(t){return c.apply(this,arguments)}},537:function(t,e,r){"use strict";r.r(e);var n=r(10),o=(r(48),r(42),r(50),r(99));function c(){return(c=Object(n.a)(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.redirect,t.prev=1,t.next=4,o.a.currentAuthenticatedUser();case 4:t.sent.signInUserSession.idToken.payload["cognito:groups"].includes("master")||r("/auth"),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),console.log(t.t0),r("/auth");case 12:case"end":return t.stop()}}),t,null,[[1,8]])})))).apply(this,arguments)}e.default=function(t){return c.apply(this,arguments)}},544:function(t,e,r){"use strict";r(380)},545:function(t,e,r){var n=r(26),o=r(425),c=r(546),l=r(547),d=n((function(i){return i[1]})),f=o(c),m=o(l);d.push([t.i,".error-container{align-items:center;color:#fff;display:flex;height:100vh;justify-content:center;position:relative;text-align:center}.background-image{background-position:50%;background-size:cover;filter:brightness(50%);height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.e404__background-image{background-image:url("+f+")}.e500__background-image{background-image:url("+m+")}.content{align-items:center;display:flex;flex-direction:column;z-index:999}.error-description{color:#fff;font-family:Lato;font-size:30px;justify-content:center;line-height:1.5;max-width:80%}",""]),d.locals={},t.exports=d},546:function(t,e,r){t.exports=r.p+"img/404.39ba517.webp"},547:function(t,e,r){t.exports=r.p+"img/500.7a203bd.png"},586:function(t,e,r){t.exports=r.p+"img/Logo-LATAM-CTO-Registry-Reemplazar-por-original.c7b187d.png"},630:function(t,e,r){"use strict";r.r(e),r.d(e,"state",(function(){return o})),r.d(e,"getters",(function(){return c})),r.d(e,"mutations",(function(){return l})),r.d(e,"actions",(function(){return d})),r.d(e,"session",(function(){return f}));r(14),r(7);var n=r(99),o=function(){return{user:null,submitting:!1,group:"",contactTryings:0,loading:!1}},c={user:function(t){return t.user?t.user:f.get("user")},submitting:function(t){return t.submitting?t.submitting:f.get("submitting")},group:function(t){return t.group?t.group:f.get("group")},contactTryings:function(t){return t.contactTryings},loading:function(t){return t.loading}},l={setUser:function(t,e){f.set("user",e),t.user=e},setSubmitting:function(t,e){f.set("submitting",e),t.submitting=e},setGroup:function(t,e){f.set("group",e),t.group=e},incrementContactTryings:function(t){t.contactTryings++},setLoading:function(t,e){t.loading=e}},d={signIn:function(t,e){var r=t.commit,o=e.username,c=e.password;return r("setLoading",!0),n.a.signIn(o,c).then((function(t){return r("setUser",t),t})).catch((function(t){throw t})).finally((function(){r("setLoading",!1)}))},logout:function(t){var e=t.commit;return n.a.signOut().then((function(){e("setUser",null)})).catch((function(t){throw t}))}},f={get:function(t){return JSON.parse(sessionStorage.getItem(t))},set:function(t,e){sessionStorage.setItem(t,JSON.stringify(e))}}}},[[448,78,17,79]]]);