text: (function(e){function n(n){for(var r,c,o=n[0],i=n[1],s=n[2],f=0,d=[];f<o.length;f++)c=o[f],a[c]&&d.push(a[c][0]),a[c]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);h&&h(n);while(d.length)d.shift()();return u.push.apply(u,s||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],r=!0,c=1;c<t.length;c++){var o=t[c];0!==a[o]&&(r=!1)}r&&(u.splice(n--,1),e=i(i.s=t[0]))}return e}var r={},c={app:0},a={app:0},u=[];function o(e){return i.p+"js/"+({about:"about"}[e]||e)+"."+{about:"d84b2538","chunk-e6ef3c24":"1df9e18f","chunk-10886a86":"56d6340d","chunk-9bc7fa3a":"41af451b","chunk-276085ac":"2cfd2fa6","chunk-17f92f8a":"be6f0f6f","chunk-154ab212":"2f18d255","chunk-f125f85e":"5b51cd08","chunk-8b56b886":"39b09a4e","chunk-5c26a384":"9c076e25","chunk-0f63f84e":"e7d76c8a","chunk-2b616d82":"ecf8e1f5","chunk-b96bc52e":"16d38b3f","chunk-c6c91f72":"be2fad08","chunk-eccb515e":"5f68e2a1","chunk-f6cc46da":"787c5f05","chunk-36d26e45":"60b275f8","chunk-49c71729":"57d0e91b","chunk-6447b93a":"564bdd38","chunk-490c26ee":"f0c4cedf","chunk-4756b3e3":"c43104a6"}[e]+".js"}function i(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-e6ef3c24":1,"chunk-10886a86":1,"chunk-9bc7fa3a":1,"chunk-276085ac":1,"chunk-17f92f8a":1,"chunk-154ab212":1,"chunk-f125f85e":1,"chunk-8b56b886":1,"chunk-5c26a384":1,"chunk-0f63f84e":1,"chunk-2b616d82":1,"chunk-b96bc52e":1,"chunk-c6c91f72":1,"chunk-eccb515e":1,"chunk-f6cc46da":1,"chunk-36d26e45":1,"chunk-49c71729":1,"chunk-6447b93a":1,"chunk-490c26ee":1,"chunk-4756b3e3":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise(function(n,t){for(var r="css/"+({about:"about"}[e]||e)+"."+{about:"31d6cfe0","chunk-e6ef3c24":"e87b1a56","chunk-10886a86":"d0687181","chunk-9bc7fa3a":"e4b7c789","chunk-276085ac":"5af7d052","chunk-17f92f8a":"d5065d7a","chunk-154ab212":"b2a3c49a","chunk-f125f85e":"a593d77b","chunk-8b56b886":"07d22910","chunk-5c26a384":"3fa450ee","chunk-0f63f84e":"db0e8796","chunk-2b616d82":"dc35c75d","chunk-b96bc52e":"95c9378f","chunk-c6c91f72":"1ed6c9fe","chunk-eccb515e":"db0e8796","chunk-f6cc46da":"dc35c75d","chunk-36d26e45":"0d073a29","chunk-49c71729":"2ee77cc8","chunk-6447b93a":"0d073a29","chunk-490c26ee":"8a41b27c","chunk-4756b3e3":"b6f964b1"}[e]+".css",a=i.p+r,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var s=u[o],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===r||f===a))return n()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){s=d[o],f=s.getAttribute("data-href");if(f===r||f===a)return n()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=n,h.onerror=function(n){var r=n&&n.target&&n.target.src||a,u=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=r,delete c[e],h.parentNode.removeChild(h),t(u)},h.href=a;var l=document.getElementsByTagName("head")[0];l.appendChild(h)}).then(function(){c[e]=0}));var r=a[e];if(0!==r)if(r)n.push(r[2]);else{var u=new Promise(function(n,t){r=a[e]=[n,t]});n.push(r[2]=u);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=o(e),s=function(n){f.onerror=f.onload=null,clearTimeout(d);var t=a[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src,u=new Error("Loading chunk "+e+" failed.\n("+r+": "+c+")");u.type=r,u.request=c,t[1](u)}a[e]=void 0}};var d=setTimeout(function(){s({type:"timeout",target:f})},12e4);f.onerror=f.onload=s,document.head.appendChild(f)}return Promise.all(n)},i.m=e,i.c=r,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)i.d(t,r,function(n){return e[n]}.bind(null,r));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="/",i.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=n,s=s.slice();for(var d=0;d<s.length;d++)n(s[d]);var h=f;u.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"4f73":function(e,n,t){"use strict";var r=t("58ae"),c=t.n(r);c.a},"56d7":function(e,n,t){"use strict";t.r(n);t("cadf"),t("551c"),t("f751"),t("097d");var r=t("2b0e"),c=t("bb71");t("da64");r["a"].use(c["a"],{iconfont:"md",theme:{primary:"#049bff",secondary:"#ff9b04",info:"#ff1d04"}});var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-app",[t("v-content",[t("router-view")],1)],1)},u=[],o={name:"App",data:function(){return{}}},i=o,s=(t("5c0b"),t("2877")),f=t("6544"),d=t.n(f),h=t("7496"),l=t("549c"),p=Object(s["a"])(i,a,u,!1,null,null,null),m=p.exports;d()(p,{VApp:h["a"],VContent:l["a"]});var b=t("8c4f"),E=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-layout",{attrs:{column:"","justify-center":"","align-center":"","fill-height":""}},[t("font-awesome-icon",{staticClass:"placeholder--icon",attrs:{size:"10x",icon:["fab","empire"]}}),t("div",{staticClass:"display-1 font-weight-light grey--text"},[e._v("St. Maria Assumpta")])],1)},k=[],g={name:"AssumptaPlaceholder"},v=g,w=(t("4f73"),t("a722")),O=Object(s["a"])(v,E,k,!1,null,null,null);O.exports;d()(O,{VLayout:w["a"]}),r["a"].use(b["a"]);var R,_=new b["a"]({routes:[{path:"/",name:"home",component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-5c26a384"),t.e("chunk-4756b3e3")]).then(t.bind(null,"bb51"))}},{path:"/app",name:"app",component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-490c26ee")]).then(t.bind(null,"7104"))},children:[{path:"employers/list",name:"employers",component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-10886a86"),t.e("chunk-8b56b886")]).then(t.bind(null,"5516"))}},{path:"employers/add",name:"employers-add",component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-5c26a384"),t.e("chunk-49c71729")]).then(t.bind(null,"a51e"))}},{path:"members",alias:"/app/members/list",component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-5c26a384"),t.e("chunk-10886a86"),t.e("chunk-c6c91f72")]).then(t.bind(null,"f906"))}},{path:"members/list",name:"members-list",component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-5c26a384"),t.e("chunk-10886a86"),t.e("chunk-c6c91f72")]).then(t.bind(null,"f906"))}},{path:"members/add",component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-5c26a384"),t.e("chunk-10886a86"),t.e("chunk-f6cc46da")]).then(t.bind(null,"c15c"))}},{path:"members/:id/edit",props:!0,component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-5c26a384"),t.e("chunk-10886a86"),t.e("chunk-2b616d82")]).then(t.bind(null,"2d81"))}},{path:"questions",component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-10886a86"),t.e("chunk-17f92f8a"),t.e("chunk-154ab212")]).then(t.bind(null,"4775"))}},{path:"questions/:id/edit",props:!0,component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-5c26a384"),t.e("chunk-10886a86"),t.e("chunk-0f63f84e")]).then(t.bind(null,"4317"))}},{path:"questions/:questionId/add-answer",props:!0,component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-5c26a384"),t.e("chunk-6447b93a")]).then(t.bind(null,"2a43"))}},{path:"questions/add",component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-5c26a384"),t.e("chunk-10886a86"),t.e("chunk-eccb515e")]).then(t.bind(null,"8f4c"))}},{path:"answers/:id/edit",props:!0,component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-5c26a384"),t.e("chunk-36d26e45")]).then(t.bind(null,"d587"))}},{path:"credit-requests",component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-10886a86"),t.e("chunk-17f92f8a"),t.e("chunk-f125f85e")]).then(t.bind(null,"a2ca"))}},{path:"credit-requests/add",component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-276085ac"),t.e("chunk-5c26a384"),t.e("chunk-10886a86"),t.e("chunk-b96bc52e")]).then(t.bind(null,"f3b1"))}},{path:"credit-requests/:id/edit",props:!0,component:function(){return Promise.all([t.e("chunk-e6ef3c24"),t.e("chunk-10886a86"),t.e("chunk-9bc7fa3a")]).then(t.bind(null,"b8da"))}}]},{path:"/about",name:"about",component:function(){return t.e("about").then(t.bind(null,"f820"))}}]}),S=t("bd86"),y=(t("7514"),t("75fc")),T=(t("6762"),t("2fdb"),t("96cf"),t("3b8d")),A=t("2f62"),D=t("dde5"),M=t("63e0");function j(e,n){return function(){var t=Object(T["a"])(regeneratorRuntime.mark(function t(r,c){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return r.commit("loading",!0),t.prev=1,t.next=4,e(r,c);case 4:r.commit("message","SUCCESS[ ".concat(n," ]")),t.next=12;break;case 7:t.prev=7,t.t0=t["catch"](1),console.log("FAIL: [".concat(n,"]")),r.commit("message","FAIL[ ".concat(n," ]")),console.log(t.t0);case 12:return t.prev=12,r.commit("loading",!1),t.finish(12);case 15:case"end":return t.stop()}},t,null,[[1,7,12,15]])}));return function(e,n){return t.apply(this,arguments)}}()}r["a"].use(A["a"]);var x=new A["a"].Store({state:{loading:!1,employers:[],members:[],questions:[],answers:[],criterias:[],lastMessage:"Hello, Good Person!"},mutations:{loading:function(e,n){e.loading=n},employers:function(e,n){e.employers=n},members:function(e,n){e.members=n},message:function(e,n){var t=new Date;e.lastMessage="".concat(t,": ").concat(n)},questions:function(e,n){e.questions=n},addAnswers:function(e,n){var t=e.answers.map(function(e){return e.id}),r=n.filter(function(e){return!t.includes(e.id)});e.answers=[e.answers].concat(Object(y["a"])(r))}},getters:{getQuestionById:function(e){return function(n){var t=parseInt(n),r=e.questions.find(function(e){return e.id===t});return r}},getAnswersByQuestion:function(e){return function(n){return e.answers.filter(function(e){return e.questionId===n})}}},actions:(R={},Object(S["a"])(R,M["a"].EMPLOYERS_LOAD_ITEMS,function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Pegawai.list();case 2:t=e.sent,n.commit("employers",t);case 4:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()),Object(S["a"])(R,M["a"].EMPLOYERS_ADD,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Pegawai.add(t);case 2:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"add employers")),Object(S["a"])(R,M["a"].EMPLOYERS_DELETE,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Pegawai.remove(t);case 2:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"remove employer")),Object(S["a"])(R,M["a"].MEMBERS_LOAD_ITEMS,function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Member.list();case 2:t=e.sent,n.commit("members",t);case 4:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()),Object(S["a"])(R,M["a"].MEMBERS_ADD,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Member.add(t);case 2:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"add member")),Object(S["a"])(R,M["a"].MEMBER_DELETE,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Member.remove(t);case 2:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"delete member")),Object(S["a"])(R,M["a"].MEMBER_UPDATE,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Member.update(t);case 2:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"update member")),Object(S["a"])(R,M["a"].QUESTIONS_ADD,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Question.add(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"add question")),Object(S["a"])(R,M["a"].QUESTIONS_LOAD_ITEMS,function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Question.list();case 2:t=e.sent,n.commit("questions",t);case 4:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()),Object(S["a"])(R,M["a"].QUESTIONS_REMOVE,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",D["f"].Question.remove(t));case 1:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}())),Object(S["a"])(R,M["a"].QUESTIONS_UPDATE,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){var r,c;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return r=t.id,c=t.payload,e.next=3,D["f"].Question.update({id:r,payload:c});case 3:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"update question")),Object(S["a"])(R,M["a"].QUESTION_LOAD_ANSWERS,function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){var r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Answer.byQuestion(t);case 2:r=e.sent,n.commit("addAnswers",r);case 4:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}()),Object(S["a"])(R,M["a"].QUESTION_ADD_ANSWER,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Answer.add(t);case 2:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"add answer")),Object(S["a"])(R,M["a"].QUESTION_REMOVE_ANSWER,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].Answer.remove(t);case 2:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"remove answer")),Object(S["a"])(R,M["a"].QUESTION_UPDATE_ANSWER,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){var r,c;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return r=t.id,c=t.payload,e.next=3,D["f"].Answer.update({id:r,payload:c});case 3:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"update answer")),Object(S["a"])(R,M["a"].CREDIT_REQUEST_ADD,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].CreditRequest.add(t);case 2:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}())),Object(S["a"])(R,M["a"].CREDIT_REQUEST_UPDATE,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].CreditRequest.update(t);case 2:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"update pengajuan pinjaman")),Object(S["a"])(R,M["a"].CREDIT_REQUEST_REMOVE,j(function(){var e=Object(T["a"])(regeneratorRuntime.mark(function e(n,t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,D["f"].CreditRequest.remove(t);case 2:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),"hapus pengajuan pinjaman")),R)}),I=t("9483");Object(I["a"])("".concat("/","service-worker.js"),{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered:function(){console.log("Service worker has been registered.")},cached:function(){console.log("Content has been cached for offline use.")},updatefound:function(){console.log("New content is downloading.")},updated:function(){console.log("New content is available; please refresh.")},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(e){console.error("Error during service worker registration:",e)}});var P=t("ecee"),U=t("c074"),N=t("f2d1"),Q=t("ad3d"),q=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-avatar",{attrs:{color:e.color,size:e.size,tile:""}},[t("span",{staticClass:"white--text"},[e._v(e._s(e.x.toUpperCase()))])])},L=[],C=["red darken-1","pink","blue darken-2","cyan","brown","indigo","teal","orange","yellow darken-2"],B={props:["x","size"],name:"TextAvatar",data:function(){return{color:C[0]}},mounted:function(){this.color=C[Math.floor(Math.random()*C.length)]}},V=B,W=t("8212"),Y=Object(s["a"])(V,q,L,!1,null,null,null),F=Y.exports;d()(Y,{VAvatar:W["a"]}),r["a"].config.productionTip=!1,P["c"].add(N["c"],N["a"],N["b"],U["j"],U["h"],U["b"],U["c"],U["i"],U["f"],U["e"],U["g"],U["d"],U["a"]),r["a"].component("font-awesome-icon",Q["a"]),r["a"].component("text-avatar",F),window.vue=new r["a"]({router:_,store:x,render:function(e){return e(m)}}).$mount("#app")},"58ae":function(e,n,t){},"5c0b":function(e,n,t){"use strict";var r=t("6879"),c=t.n(r);c.a},"63e0":function(e,n,t){"use strict";n["a"]={EMPLOYERS_LOAD_ITEMS:"EMPLOYERS_LOAD_ITEMS",EMPLOYERS_ADD:"EMPLOYERS_ADD",EMPLOYERS_DELETE:"EMPLOYERS_DELETE",MEMBERS_LOAD_ITEMS:"MEMBERS_LOAD_ITEMS",MEMBERS_ADD:"MEMBERS_ADD",MEMBER_UPDATE:"MEMBER_UPDATE",MEMBER_DELETE:"MEMBER_DELETE",QUESTIONS_LOAD_ITEMS:"QUESTIONS_LOAD_ITEMS",QUESTIONS_ADD:"QUESTIONS_ADD",QUESTIONS_UPDATE:"QUESTIONS_UPDATE",QUESTIONS_REMOVE:"QUESTION_REMOVE",QUESTION_LOAD_ANSWERS:"QUESTION_LOAD_ANSWERS",QUESTION_ADD_ANSWER:"QUESTION_ADD_ANSWER",QUESTION_UPDATE_ANSWER:"QUESTION_UPDATE_ANSWER",QUESTION_REMOVE_ANSWER:"QUESTION_REMOVE_ANSWER",CREDIT_REQUEST_ADD:"CREDIT_REQUEST_ADD",CREDIT_REQUEST_UPDATE:"CREDIT_REQUEST_UPDATE",CREDIT_REQUEST_REMOVE:"CREDIT_REQUEST_REMOVE"}},6879:function(e,n,t){},dde5:function(e,n,t){"use strict";t.d(n,"b",function(){return i}),t.d(n,"d",function(){return f}),t.d(n,"e",function(){return d}),t.d(n,"a",function(){return h}),t.d(n,"c",function(){return p});var r=t("cebc"),c=t("bc3a"),a=t.n(c),u="https://stateless-metaphor.herokuapp.com/api/v1",o=a.a.create({baseURL:u}),i={login:function(e,n){var t={username:e,password:n};return o.post("/auth",t).then(function(e){return e.data})}},s={list:function(){return o.get("/employers").then(function(e){return e.data})},add:function(e){return o.post("/employers",e).then(function(e){return e.data})},remove:function(e){return o.delete("/employers/".concat(e))}},f={list:function(){return o.get("/members").then(function(e){return e.data})},add:function(e){return o.post("/members",e).then(function(e){return e.data})},update:function(e){var n=e.id,t=e.payload;return o.put("/members/".concat(n),t).then(function(e){return e.data})},remove:function(e){return o.delete("/members/".concat(e))}},d={list:function(){return o.get("/questions").then(function(e){return e.data})},listAllNested:function(){return o.get("/questions/allNested").then(function(e){return e.data})},add:function(e){return o.post("/questions",e).then(function(e){return e.data})},remove:function(e){return o.delete("/questions/".concat(e))},update:function(e){var n=e.id,t=e.payload;return console.log(t),o.put("/questions/".concat(n),t).then(function(e){return e.data})},getOneById:function(e){return o.get("/questions/".concat(e)).then(function(e){return e.data})}},h={byQuestion:function(e){return o.get("/questions/".concat(e,"/answers")).then(function(e){return e.data}).then(function(n){return n.map(function(n){return Object(r["a"])({},n,{questionId:e})})})},getOneById:function(e){return o.get("/answers/".concat(e)).then(function(e){return e.data})},add:function(e){return o.post("/answers",e).then(function(e){return e.data})},update:function(e){var n=e.id,t=e.payload;return o.put("/answers/".concat(n),t).then(function(e){return e.data})},remove:function(e){return o.delete("/answers/".concat(e))}},l={list:function(){return o.get("/criterias").then(function(e){return e.data})}},p={list:function(){return o.get("/credit-requests").then(function(e){return e.data})},listSorted:function(){return o.get("/profile-matching/run").then(function(e){return e.data})},getOneById:function(e){return o.get("/credit-requests/".concat(e)).then(function(e){return e.data})},add:function(e){return o.post("/credit-requests",e).then(function(e){return e.data})},update:function(e){var n=e.id,t=e.payload;return o.put("/credit-requests/".concat(n),t).then(function(e){return e.data})},remove:function(e){return o.delete("/credit-requests/".concat(e))}};n["f"]={Pegawai:s,Member:f,Question:d,Answer:h,CreditRequest:p,Criteria:l}}});
  //# sourceMappingURL=app.936cdd39.js.map