(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4f877cb8"],{"74ae":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",[t("div",{directives:[{name:"permission",rawName:"v-permission",value:"institutions.create",expression:"'institutions.create'"}],staticClass:"flex flex-wrap-reverse items-center"},[t("div",{staticClass:"p-3 mb-4 mr-4 rounded-lg cursor-pointer flex items-center justify-between text-lg font-medium text-base text-primary border border-solid border-primary",on:{click:e.addNew}},[t("feather-icon",{attrs:{icon:"PlusIcon",svgClasses:"h-4 w-4"}}),t("span",{staticClass:"ml-2 text-base text-primary"},[e._v(e._s(e.$t("AddNew")))])],1)]),t("Grid",{attrs:{service:e.service,route_name:"institutions",column_formats:{organization_id:function(t,n){return e._.get(n,"organization.name","")||""}}},scopedSlots:e._u([{key:"gridThead",fn:function(){return[t("vs-th",{key:"id",attrs:{"sort-key":"id"}},[e._v("ID")]),t("vs-th",{key:"name",attrs:{"sort-key":"name"}},[e._v(e._s(e.$t("name")))]),t("vs-th",{key:"organization_id",attrs:{"sort-key":null}},[e._v(e._s(e.$t("organization")))])]},proxy:!0}])})],1)},i=[],s=(n("14d9"),n("b574")),a={data:function(){return{selected:[],service:null}},methods:{addNew:function(){this.$router.push("/institutions/create")}},beforeMount:function(){this.service=s["a"].build(this.$vs)}},o=a,u=n("2877"),c=Object(u["a"])(o,r,i,!1,null,null,null);t["default"]=c.exports},b574:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("d4ec"),i=n("bee2"),s=n("8f33"),a=n("262e"),o=(n("99af"),n("c0e9")),u=function(e){function t(){return Object(r["a"])(this,t),Object(s["a"])(this,t,arguments)}return Object(a["a"])(t,e),Object(i["a"])(t,[{key:"addUser",value:function(e,t){return this.post("/".concat(e,"/users"),{user:t}).then((function(e){return e}))}},{key:"removeUser",value:function(e,t){return this.delete("/".concat(e,"/users/").concat(t)).then((function(e){return e}))}},{key:"getUserStudentIdentifier",value:function(e){return this.get("/active/students/".concat(e,"/identifier"))}}],[{key:"build",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new this(this.resource,null,e)}}])}(o["a"]);u.resource="/api/v1/institutions"}}]);