text: webpackJsonp([1],{"2ram":function(t,e){},"6A3X":function(t,e){},"7zck":function(t,e){},"9BHd":function(t,e){},BRWN:function(t,e){},CXGn:function(t,e){},MiXd:function(t,e){},NHnr:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("7+uW"),i=a("3EgV"),o=a.n(i),r=a("Rf8U"),s=a.n(r),l=a("mtWM"),c=a.n(l),u=(a("7zck"),a("6A3X"),a("9JMe")),d=a("vRvF"),v=a.n(d),m=a("NYxO"),g=(a("sax8"),{namespaced:!0,state:{drawer:!0,drawerclipped:!0,fixed:!1,config:{},miniVariant:!1,rightDrawer:!1,loggedin:!1,username:null,userkey:null},getters:{},mutations:{loginUser:function(t,e){var a=e.user,n=e.key;t.username=a,t.userkey=n,t.loggedin=!0},setConfig:function(t,e){t.config=e},logoutUser:function(t){t.username=null,t.userkey=null,t.loggedin=!1},toggleNavDrawerMini:function(t){t.miniVariant=!t.miniVariant},setNavDrawerMini:function(t){t.drawerclipped||(t.miniVariant=!0)},toggleNavDrawerClipped:function(t){t.drawerclipped=!t.drawerclipped},setNavDrawerMaxi:function(t){t.miniVariant=!1},toggleRightDrawer:function(t){t.rightDrawer=!t.rightDrawer},toggleDrawer:function(t){t.drawer=!t.drawer}},actions:{toggleAppMode:function(t){var e=t.commit;e("toggleDrawer"),e("toggleRightDrawer")}}}),p={namespaced:!0,state:{loginDialog:{status:!1},logoutDialog:{status:!1},editDialog:{status:!1,model:null},importDialog:{status:!1}},mutations:{openDialog:function(t,e){t[e].status=!0},closeDialog:function(t,e){t[e].status=!1},openEditDialog:function(t,e){t.editDialog.model=e,t.editDialog.status=!0},switchDialog:function(t,e){t[e].status=!t[e]},setDialog:function(t,e){var a=e.name,n=e.obj;this._vm.$info("store dialogs setDialog",a,n),t[a]=n}},getters:{}},f={namespaced:!0,state:{entries:[],valid:[],required:["entryType","title","year","authors","editors"]},mutations:{setEntry:function(t,e){var a=e.no,n=e.obj;t.entries.splice(a,1,n)},changeEntry:function(t,e){for(var a=e.idx,n=e.obj,i=0;i<t.entries.length;i++)a===t.entries[i].idx&&(t.entries[i]=n)},deleteEntry:function(t,e){for(var a=e.idx,n=null,i=0;i<t.entries.length;i++)a===t.entries[i].idx&&(n=i);null!==n&&t.entries.splice(n,1)}},getters:{getEntries:function(t){return t.entries},getEntry:function(t){return function(e){return t.entries[e]}},isValid:function(t){return function(e){for(var a=null,n=0;n<t.entries.length;n++)e===t.entries[n].idx&&(a=n);for(var i=[],o=0;o<t.required.length;o++)console.log(a,i),t.entries[a][t.required[o]]||i.push(t.required[o]);return t.entries[a].tags.length<1&&i.push("tags"),i}}}},h=a("mvHQ"),b=a.n(h),_=a("fZjL"),D=a.n(_),x=a("//Fk"),y=a.n(x),k=a("woOf"),w=a.n(k),S={WKS:{BASEURL:"https://wksgoose.eos.arz.oeaw.ac.at/api/v1/",ENDPOINTS:{BASE:"/"},TIMEOUT:15e3,PARAMS:{_format:"json"},HEADERS:{}},ADLIB:{BASEURL:"http://kgunivie.w07adlibdb1.arz.oeaw.ac.at",ENDPOINTS:{BASE:"/wwwopac.ashx"},TIMEOUT:15e3,PARAMS:{output:"json",action:"search",limit:"1000"},HEADERS:{}},VIAF:{BASEURL:"https://www.viaf.org/viaf/",ENDPOINTS:{BASE:"",SEARCH:"search"},TIMEOUT:5e3,PARAMS:{httpAccept:"application/json"},HEADERS:{}},VOCABS:{BASEURL:"https://vocabs.acdh.oeaw.ac.at/rest/v1/",ENDPOINTS:{ARCHE_CATEGORY:"arche_category/search/",ARCHE_LIFECYCLE_STATUS:"arche_lifecycle_status/search/"},TIMEOUT:5e3,PARAMS:{},HEADERS:{}}},E={collect_collect:{"edit.date":"editdate","edit.time":"edittime","edit.name":"editname",title:"name_0",description:"description_0","current_owner.lref":"collector_people"}},A={};A=function(t){var e={};t&&w()(S,t);for(var a=D()(S),n=a.length-1;n+1;){var i=D()(S[a[n]].ENDPOINTS),o=i.length-1;for(e[a[n]]={};o+1;)e[a[n]][i[o]]=c.a.create({baseURL:S[a[n]].BASEURL+S[a[n]].ENDPOINTS[i[o]],timeout:S[a[n]].TIMEOUT,params:S[a[n]].PARAMS,headers:S[a[n]].HEADERS}),o-=1;n-=1}return e}();var O={data:function(){return{APIS:A}},methods:{getAdlibRecordByID:function(t,e){var a=this;return this.$info("Helpers","getAdlibRecordByID",t,e),t&&e?A.ADLIB.BASE.get("",{params:{database:t,search:"priref="+e}}).then(function(t){return a.$log("response",t.data),y.a.resolve(t.data)},function(t){return a.$log("errortree, request failed",t),y.a.reject(t)}):y.a.reject("no ID was given")},getAdlibRecordsByQuery:function(t,e){var a=this;return this.$info("Helpers","getAdlibRecordByQuery",t,e),t&&e?A.ADLIB.BASE.get("",{params:{database:t,search:e}}).then(function(t){return a.$log("response",t.data),y.a.resolve(t.data)},function(t){return a.$log("errortree, request failed",t),y.a.reject(t)}):y.a.reject("no ID was given")},getViafByID:function(t){var e=this;return this.$info("Helpers","getViafByID(id)",t),t?A.VIAF.BASE.get(t+"/").then(function(t){return e.$log("response",t.data),y.a.resolve(t.data)},function(t){return e.$log("errortree, request failed",t),y.a.reject(t)}):(this.$log("errortree, no id"),y.a.reject("no ID was given"))},getVocabsPromise:function(t,e){var a=e.toUpperCase();return this.$info("Helpers","getVocabsPromise(id, type)",t,a),A.VOCABS[a].get("",{params:{query:t+"*"}})},getVocabsByID:function(t,e){var a=this,n=e.toUpperCase();return this.$info("Helpers","getVocabsByID(id, type)",t,n),t&&n&&A.VOCABS[n]?A.VOCABS[n].get("",{params:{query:t+"*"}}).then(function(t){return a.$log("response",t),y.a.resolve(t.data)},function(t){return a.$log("errortree, request failed",t),y.a.reject(t)}):y.a.reject("failed to recieve vocabs")},splitToGetMultipleCalls:function(t,e){if(this.$info("Helpers","splitToGetMultipleCalls(id, type)",t,e),-1===e.indexOf("Or"))return this.getMultipleApiCallsByTypeAndID(t,e);for(var a=e.split("Or"),n=[],i=0;i<a.length;i+=1)n.push(this.getMultipleApiCallsByTypeAndID(t,a[i]).catch(this.useNull));return y.a.all(n).then(function(t){for(var e=[],a=0;a<t.length;a+=1)if(null!==t[a])for(var n=t[a],i=0;i<n.length;i+=1)e.push(n[i]);return y.a.resolve(e)}).catch(function(t){y.a.reject("Could not receive data",t)})},typeicon:function(t){if(t)switch(t.toUpperCase()){case"X":return"highlight_off";case"check":return"check_circle";case"KEYBOARD":return"keyboard";case"https://vocabs.acdh.oeaw.ac.at/schema#Resource":return"developer_board";case"PERSONS":case"persons":case"https://vocabs.acdh.oeaw.ac.at/schema#Persons":return"person";case"PLACES":case"https://vocabs.acdh.oeaw.ac.at/schema#Place":return"place";case"ORGANISATIONS":case"https://vocabs.acdh.oeaw.ac.at/schema#Organisation":return"device_hub";case"ARCHE_CATEGORY":return"folder_open";case"ARCHE_LIFECYCLE_STATUS":return"donut_large";default:return"folder"}return"folder"},stringToBlob:function(t){return new Blob([t],{type:"text/ttl;"})},dateToString:function(t){var e=t.getFullYear()-2e3,a=void 0;a=t.getMonth()<10?"0".toString()+(t.getMonth()+1):t.getMonth()+1;return(t.getDate()<10?"0".toString()+t.getDate():t.getDate())+"/"+a+"/"+e+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},mapRecord:function(t,e,a){var n={},i=E[t+"_"+e],o=D()(i);console.log(i,o,a);for(var r=0;r<o.length;r++)a[o[r]]&&1===i[o[r]].split("_").length?n[i[o[r]]]=a[o[r]]:a[o[r]]&&"0"===i[o[r]].split("_")[1]?n[i[o[r]].split("_")[0]]=a[o[r]][0]:a[o[r]]&&i[o[r]].split("_")[1]&&"0"!==i[o[r]].split("_")[1]&&(n[i[o[r]].split("_")[0]]=i[o[r]].split("_")[1]+"_"+a[o[r]]);return n}},created:function(){this.$info("Helpers","created")}};var C=[function(t){var e=void 0;try{e=window.localStorage}catch(e){t.commit("n3/updateStorageStatus",!1)}e&&t.subscribe(function(a,n){if(["n3/stopProcessing","JSONschema/setEntry","JSONschema/setSchema"].indexOf(a.type)>-1){var i=function(t){for(var e={},a=D()(t),n=0;n<a.length;n+=1){e[a[n]]={};for(var i=t[a[n]],o=i.p||[],r=0;r<o.length;r+=1)e[a[n]][o[r]]=i[o[r]]}return e}(n),o=JSON.parse(window.localStorage.getItem(R)||"{}"),r=Date.now();o[T]={pState:i,date:r,dateString:O.methods.dateToString(new Date(r))};try{e.setItem(R,b()(o)),t.commit("n3/updateStorageStatus",!0)}catch(e){(function(t){var e=!1;if(t)if(t.code)switch(t.code){case 22:e=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===t.name&&(e=!0)}else-2147024882===t.number&&(e=!0);return e})(e)&&t.commit("n3/updateStorageStatus",!1),t.commit("n3/updateStorageStatus",!1)}}})}];n.default.use(m.a),n.default.use(s.a,c.a);var $=new m.a.Store({modules:{app:g,dialogs:p,entries:f},plugins:C,strict:!1}),R="MetaDataEditor",T="SESSION_"+Date.now().valueOf().toString(36),I=a("/ocq"),j=a("Dd8w"),B=a.n(j),N={data:function(){return{}},name:"FundamentNav",methods:B()({},Object(m.d)("JSONschema",["constructJSONschema"]),Object(m.d)("dialogs",["openDialog"]),Object(m.b)("app",["toggleAppMode"]),Object(m.d)("app",["setConfig","toggleNavDrawerMini","setNavDrawerMini","setNavDrawerMaxi","toggleNavDrawerClipped","toggleRightDrawer","toggleDrawer","toggleNavbar"])),computed:B()({},Object(m.e)("app",["username"])),created:function(){}},U={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("transition",{attrs:{duration:200,name:"slideLeft",mode:"out-in"}},[t.$store.state.app.drawer?a("v-navigation-drawer",{class:t.$store.state.app.config.color,attrs:{"mini-variant":t.$store.state.app.miniVariant,"enable-resize-watcher":"",dark:"",app:""}},[a("v-container",{attrs:{"fill-height":""},on:{mouseover:function(e){e.stopPropagation(),t.setNavDrawerMaxi()},mouseleave:function(e){e.stopPropagation(),t.setNavDrawerMini()}}},[a("v-layout",{attrs:{column:"","justify-space-between":""}},[a("v-list",[a("v-list-tile",[t.username?a("div",{attrs:{color:""}},[a("v-icon",{attrs:{large:""}},[t._v("person")]),t._v("\n                "+t._s(t.username)+"\n              ")],1):t._e()])],1),t._v(" "),a("v-list",[t._l(t.$store.state.app.config.menu,function(e,n){return a("v-list-tile",{key:n,attrs:{value:"true",to:e.startpage}},[a("v-btn",{attrs:{icon:""}},[a("v-icon",{domProps:{innerHTML:t._s(e.icon)}})],1),t._v(" "),a("v-list-tile-content",[a("v-list-tile-title",{staticClass:"toolbarcaption"},[t._v(t._s(e.caption))])],1)],1)}),t._v(" "),t.$store.state.app.loggedin?t._e():a("v-list-tile",{attrs:{value:"true"},on:{click:function(e){e.stopPropagation(),t.openDialog("loginDialog")}}},[a("v-btn",{attrs:{icon:""}},[a("v-icon",[t._v("input")])],1),t._v(" "),a("v-list-tile-content",[a("v-list-tile-title",{staticClass:"toolbarcaption"},[t._v("LOGIN")])],1)],1),t._v(" "),t.$store.state.app.loggedin?a("v-list-tile",{attrs:{value:"true"},on:{click:function(e){e.stopPropagation(),t.openDialog("logoutDialog")}}},[a("v-btn",{attrs:{icon:""}},[a("v-icon",[t._v("power_settings_new")])],1),t._v(" "),a("v-list-tile-content",[a("v-list-tile-title",{staticClass:"toolbarcaption"},[t._v("LOGOUT")])],1)],1):t._e()],2),t._v(" "),a("v-list",[a("v-list-tile",[a("router-link",{attrs:{to:{name:"start"}}},[a("div",{staticClass:"logo"},[a("img",{attrs:{src:"",alt:""}})]),t._v("Database\n              ")])],1)],1)],1)],1)],1):t._e()],1),t._v(" "),a("transition",{attrs:{duration:200,name:"slideRight",mode:"out-in"}},[t.$store.state.app.drawer?t._e():a("v-toolbar",{staticClass:"border-bottom",attrs:{app:"",height:"90"}},[a("v-container",{attrs:{row:""}},[a("v-layout",{staticClass:"compensation",attrs:{row:""}},[a("v-flex",{attrs:{xs3:""}},[a("v-layout",{attrs:{column:"","justify-center":"","fill-height":""}},[a("v-toolbar-title",[a("router-link",{attrs:{to:{name:"start"}}},[a("div",{staticClass:"logo"},[a("h5",{staticStyle:{"font-weight":"200",padding:"0px",margin:"0px","letter-spacing":"3px!important","line-height":"25px"}},[t._v("VC")]),t._v(" "),a("h5",{staticStyle:{"font-weight":"800",padding:"0px",margin:"0px","letter-spacing":"2px!important","line-height":"25px"}},[t._v("HC")])]),t._v("Database\n                ")])],1)],1)],1),t._v(" "),a("v-flex",[a("v-tabs",{attrs:{"icons-and-text":"",color:"grey lighten-4"}},[a("v-tabs-slider",{attrs:{color:"teal lighten-3"}}),t._v(" "),t._l(t.$store.state.app.config.menu,function(e,n){return a("v-tab",{key:n,attrs:{to:e.startpage}},[t._v("\n                "+t._s(e.caption)+"\n                "),a("v-icon",[t._v(t._s(e.icon))])],1)})],2)],1),t._v(" "),a("v-spacer")],1)],1),t._v(" "),a("v-btn",{attrs:{icon:""},on:{click:function(e){e.stopPropagation(),t.rightDrawer=!t.rightDrawer}}},[a("v-icon",[t._v("menu")])],1)],1)],1),t._v(" "),a("v-navigation-drawer",{attrs:{right:!0,"enable-resize-watcher":"",app:""},model:{value:t.$store.state.app.rightDrawer,callback:function(e){t.$set(t.$store.state.app,"rightDrawer",e)},expression:"$store.state.app.rightDrawer"}},[a("router-view",{attrs:{name:"rightdrawertop"}}),t._v(" "),a("router-view",{attrs:{name:"rightdrawerbottom"}})],1)],1)},staticRenderFns:[]};var P=a("VU/8")(N,U,!1,function(t){a("Xnck")},"data-v-27268230",null).exports,V={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-footer mt-5"},[a("v-container",{attrs:{"grid-list-md":""}},[a("v-layout",{attrs:{row:"",wrap:"","justify-space-between":""}},[a("v-flex",{staticClass:"footer-sep mt-3",attrs:{xs12:""}},[a("v-icon",[t._v("message")]),t._v("CONTACT\n      ")],1),t._v(" "),a("v-flex",{staticClass:"mr-4",attrs:{xs12:"",sm2:"",md2:""}},[a("a",{attrs:{href:"https://www.oeaw.ac.at/acdh/acdh-home/",target:"_blank",rel:"noopener","aria-label":"ACDH"}},[a("img",{attrs:{src:"/DESIR_logo_01.png",alt:"DESIR",title:"DESIR Logo"}})])]),t._v(" "),a("v-flex",{attrs:{xs12:"",sm3:""}},[a("p",[t._v("\n          DARIAH Code Sprint\n          "),a("br")]),t._v(" "),a("p",[t._v("31 Jul-2 Aug 2018 Berlin (Germany)")])]),t._v(" "),a("v-spacer"),t._v(" "),a("v-flex",{attrs:{xs12:"",sm3:""}})],1)],1)],1)},staticRenderFns:[]};var F=a("VU/8")({data:function(){return{}},name:"FundamentFooter"},V,!1,function(t){a("ng0Y")},null,null).exports,M={mixins:[O],data:function(){return{snackbar:!1,timeout:3e3,username:"",userkey:""}},computed:B()({},Object(m.e)("dialogs",["loginDialog"])),methods:B()({},Object(m.d)("app",["loginUser"]),Object(m.d)("dialogs",["closeDialog"]),{discard:function(){this.closeDialog("loginDialog")},login:function(){this.loginUser({user:this.username,key:this.userkey}),this.closeDialog("loginDialog"),this.snackbar=!0}})},H={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("v-dialog",{attrs:{id:"askForStore","max-width":"500px"},model:{value:t.loginDialog.status,callback:function(e){t.$set(t.loginDialog,"status",e)},expression:"loginDialog.status"}},[a("v-card",[a("v-card-title",[t._v("\n        BibSonomy Login\n      ")]),t._v(" "),a("v-card-text",[a("v-text-field",{attrs:{type:"text",label:"Username"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}}),t._v(" "),a("v-text-field",{attrs:{type:"text",label:"API Key"},model:{value:t.userkey,callback:function(e){t.userkey=e},expression:"userkey"}})],1),t._v(" "),a("v-card-actions",[a("v-btn",{attrs:{large:"",color:"primary"},on:{click:t.login}},[t._v("\n        LOGIN\n      ")]),t._v(" "),a("v-btn",{attrs:{large:"",color:"secondary"},on:{click:t.discard}},[t._v("\n        CANCEL\n      ")])],1)],1)],1),t._v(" "),a("v-snackbar",{attrs:{timeout:t.timeout},model:{value:t.snackbar,callback:function(e){t.snackbar=e},expression:"snackbar"}},[t._v("\n    You were logged in\n  ")])],1)},staticRenderFns:[]};var L=a("VU/8")(M,H,!1,function(t){a("2ram")},null,null).exports,q={data:function(){return{snackbar:!0,timeout:3e3}},mixins:[O],computed:B()({},Object(m.e)("dialogs",["logoutDialog"])),methods:B()({},Object(m.d)("app",["logoutUser"]),Object(m.d)("dialogs",["closeDialog"]),{discard:function(){this.closeDialog("logoutDialog")},logout:function(){this.logoutUser(),this.closeDialog("logoutDialog"),this.snackbar=!0}})},z={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("v-dialog",{attrs:{id:"askForStore","max-width":"500px"},model:{value:t.logoutDialog.status,callback:function(e){t.$set(t.logoutDialog,"status",e)},expression:"logoutDialog.status"}},[a("v-card",[a("v-card-title",[t._v("\n        VCHC DATABASE LOGIN\n      ")]),t._v(" "),a("v-card-text",[t._v("\n        Do you really want to logout?\n      ")]),t._v(" "),a("v-card-actions",[a("v-btn",{attrs:{large:"",color:"primary"},on:{click:t.logout}},[t._v("\n        LOGOUT\n      ")]),t._v(" "),a("v-btn",{attrs:{large:"",color:"secondary"},on:{click:t.discard}},[t._v("\n        CANCEL\n      ")])],1)],1)],1),t._v(" "),a("v-snackbar",{attrs:{timeout:t.timeout},model:{value:t.snackbar,callback:function(e){t.snackbar=e},expression:"snackbar"}},[t._v("\n    You were logged out\n  ")])],1)},staticRenderFns:[]};var G=a("VU/8")(q,z,!1,function(t){a("aePs")},null,null).exports,Y=a("bOdI"),X=a.n(Y),J=a("KvPw"),W=a.n(J),Q=(a("9BHd"),{render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",{attrs:{appear:"",duration:250,name:"fadeLeft"}},[a("v-card",{staticClass:"border-top mb-3"},[t.src?a("v-card-media",{attrs:{src:t.src,height:"200px"}}):t._e(),t._v(" "),a("v-card-title",{attrs:{"primary-title":""}},[a("div",[a("h3",{staticClass:"headline mb-0",domProps:{textContent:t._s(t.caption)}}),t._v(" "),t._t("default")],2)]),t._v(" "),t.link?a("v-card-actions",[a("v-btn",{staticClass:"primary",attrs:{flat:"",to:t.link}},[t._v("More")])],1):t._e()],1)],1)},staticRenderFns:[]});var K,Z=a("VU/8")({data:function(){return{}},props:["src","caption","link"],name:"FundamentJumbo"},Q,!1,function(t){a("S39o")},"data-v-b701fa9c",null).exports,tt=(K={mixins:[O],components:{vueDropzone:W.a,fundamentcard:Z},data:function(){return{text:null,dropzoneOptions:{url:"/extract",thumbnailWidth:150,maxFilesize:50,headers:{}},testdata:[{entryType:"misc",address:null,booktitle:null,chapter:null,doi:null,edition:null,institution:null,journal:null,number:null,pages:null,publisher:null,series:null,title:"The Sample 1",volume:null,day:null,month:null,year:"1998",authors:"Duke Nukem",editors:"",tags:null},{entryType:"misc",address:null,booktitle:null,chapter:null,doi:null,edition:null,institution:null,journal:null,number:null,pages:null,publisher:null,series:null,title:"Sample 2",volume:null,day:null,month:null,year:"2014",authors:"Albert Einstein",editors:"",tags:null},{entryType:"misc",address:null,booktitle:null,chapter:null,doi:null,edition:null,institution:null,journal:null,number:null,pages:null,publisher:null,series:null,title:"Sample 3",volume:null,day:null,month:null,year:"2005",authors:"Frank Sinatra",editors:"",tags:null}]}},computed:{},methods:B()({},Object(m.d)("entries",["setEntry"]),{results:function(t,e){for(var a=0;a<e.length;a++)e[a].idx=a,e[a].tags=[],this.setEntry({no:a,obj:e[a]});console.log(t,e),this.$router.push({name:"entries",params:{lang:"en"}})},loadTestdata:function(){for(var t=0;t<this.testdata.length;t++)this.testdata[t].idx=t,this.testdata[t].tags=[],this.setEntry({no:t,obj:this.testdata[t]});this.$router.push({name:"entries",params:{lang:"en"}})},submitText:function(t){t.preventDefault();var e=this,a=new FormData;a.append("text",this.text),this.axios.post(this.dropzoneOptions.url,a).then(function(t){e.results(e.text,t.data)})}})},X()(K,"computed",{}),X()(K,"created",function(){}),K),et={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("v-container",{attrs:{"grid-list-md":""}},[a("fundamentcard",{attrs:{caption:"Load test data"}},[a("v-btn",{on:{click:t.loadTestdata}},[t._v("testdata")])],1),t._v(" "),a("fundamentcard",{attrs:{caption:"Load file from disk (PDF/TXT)"}},[a("vue-dropzone",{ref:"myVueDropzone",attrs:{id:"file",options:t.dropzoneOptions},on:{"vdropzone-success":t.results}})],1),t._v(" "),a("fundamentcard",{attrs:{caption:"Paste text"}},[a("v-textarea",{attrs:{name:"textinput",label:"Your text","prepend-icon":"comment",color:"deep-purple","auto-grow":""},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}}),t._v(" "),a("v-btn",{on:{click:t.submitText}},[t._v("Submit Text")])],1)],1)],1)},staticRenderFns:[]};var at=a("VU/8")(tt,et,!1,function(t){a("BRWN")},"data-v-4b477c54",null).exports,nt={mixins:[O],data:function(){return{dropzoneOptions:{url:"/extract",thumbnailWidth:150,maxFilesize:10.5,headers:{"My-Awesome-Header":"header value"}},model:{}}},components:{fundamentcard:Z,importpdf:at},computed:B()({},Object(m.e)("dialogs",["importDialog"])),methods:B()({},Object(m.d)("dialogs",["closeDialog"]),{discard:function(){this.closeDialog("importDialog")},submit:function(){this.closeDialog("importDialog")},onFileChange:function(t){this.$info("Load","onFileChange(e)",t);var e=t.target.files||t.dataTransfer.files;e.length&&this.loadTtl(e[0])}})},it={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-dialog",{attrs:{id:"askForStore",fullscreen:"","hide-overlay":"",transition:"dialog-bottom-transition",scrollable:""},model:{value:t.importDialog.status,callback:function(e){t.$set(t.importDialog,"status",e)},expression:"importDialog.status"}},[a("v-card",[a("v-toolbar",{attrs:{card:"",dark:"",color:"primary"}},[a("v-btn",{attrs:{icon:"",dark:""},nativeOn:{click:function(e){return t.discard(e)}}},[a("v-icon",[t._v("close")])],1),t._v(" "),a("v-toolbar-title",[t._v("Upload PDF for Extraction")]),t._v(" "),a("v-spacer"),t._v(" "),a("v-toolbar-items",[a("v-btn",{attrs:{dark:"",flat:""},nativeOn:{click:function(e){return t.submit(e)}}},[t._v("Save")])],1),t._v(" "),a("v-menu",{attrs:{bottom:"",right:"","offset-y":""}})],1),t._v(" "),a("v-card-text",[a("importpdf")],1),t._v(" "),a("v-card-actions")],1)],1)},staticRenderFns:[]};var ot=a("VU/8")(nt,it,!1,function(t){a("rucs")},null,null).exports,rt={mixins:[O],data:function(){return{}},components:{fundamentcard:Z},computed:B()({},Object(m.e)("dialogs",["editDialog"])),methods:B()({},Object(m.d)("dialogs",["closeDialog"]),{close:function(){this.closeDialog("editDialog")}}),watch:{},created:function(){}},st={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-dialog",{attrs:{id:"askForStore",fullscreen:"","hide-overlay":"",transition:"dialog-bottom-transition",scrollable:""},model:{value:t.editDialog.status,callback:function(e){t.$set(t.editDialog,"status",e)},expression:"editDialog.status"}},[t.editDialog.model?a("v-card",[a("v-toolbar",{attrs:{card:"",dark:"",color:"primary"}},[a("v-btn",{attrs:{icon:"",dark:""},nativeOn:{click:function(e){return t.close(e)}}},[a("v-icon",[t._v("close")])],1),t._v(" "),a("v-toolbar-title",[t._v("Edit imported Entry No "+t._s(t.editDialog.model.idx))]),t._v(" "),a("v-spacer"),t._v(" "),a("v-menu",{attrs:{bottom:"",right:"","offset-y":""}})],1),t._v(" "),a("v-card-text",[a("v-form",{ref:"form",attrs:{"lazy-validation":""}},[a("v-text-field",{attrs:{label:"Entry Type",required:"",rules:[function(t){return!!t||"Item is required"}]},model:{value:t.editDialog.model.entryType,callback:function(e){t.$set(t.editDialog.model,"entryType",e)},expression:"editDialog.model.entryType"}}),t._v(" "),a("v-text-field",{attrs:{label:"Adress"},model:{value:t.editDialog.model.address,callback:function(e){t.$set(t.editDialog.model,"address",e)},expression:"editDialog.model.address"}}),t._v(" "),a("v-text-field",{attrs:{label:"Booktitle"},model:{value:t.editDialog.model.booktitle,callback:function(e){t.$set(t.editDialog.model,"booktitle",e)},expression:"editDialog.model.booktitle"}}),t._v(" "),a("v-text-field",{attrs:{label:"Chapter"},model:{value:t.editDialog.model.chapter,callback:function(e){t.$set(t.editDialog.model,"chapter",e)},expression:"editDialog.model.chapter"}}),t._v(" "),a("v-text-field",{attrs:{label:"DOI"},model:{value:t.editDialog.model.doi,callback:function(e){t.$set(t.editDialog.model,"doi",e)},expression:"editDialog.model.doi"}}),t._v(" "),a("v-text-field",{attrs:{label:"Edition"},model:{value:t.editDialog.model.edition,callback:function(e){t.$set(t.editDialog.model,"edition",e)},expression:"editDialog.model.edition"}}),t._v(" "),a("v-text-field",{attrs:{label:"Institution"},model:{value:t.editDialog.model.institution,callback:function(e){t.$set(t.editDialog.model,"institution",e)},expression:"editDialog.model.institution"}}),t._v(" "),a("v-text-field",{attrs:{label:"Journal"},model:{value:t.editDialog.model.journal,callback:function(e){t.$set(t.editDialog.model,"journal",e)},expression:"editDialog.model.journal"}}),t._v(" "),a("v-text-field",{attrs:{label:"Number"},model:{value:t.editDialog.model.number,callback:function(e){t.$set(t.editDialog.model,"number",e)},expression:"editDialog.model.number"}}),t._v(" "),a("v-text-field",{attrs:{label:"Pages"},model:{value:t.editDialog.model.pages,callback:function(e){t.$set(t.editDialog.model,"pages",e)},expression:"editDialog.model.pages"}}),t._v(" "),a("v-text-field",{attrs:{label:"Publisher"},model:{value:t.editDialog.model.publisher,callback:function(e){t.$set(t.editDialog.model,"publisher",e)},expression:"editDialog.model.publisher"}}),t._v(" "),a("v-text-field",{attrs:{label:"Series"},model:{value:t.editDialog.model.series,callback:function(e){t.$set(t.editDialog.model,"series",e)},expression:"editDialog.model.series"}}),t._v(" "),a("v-text-field",{attrs:{label:"Title",required:"",rules:[function(t){return!!t||"Item is required"}]},model:{value:t.editDialog.model.title,callback:function(e){t.$set(t.editDialog.model,"title",e)},expression:"editDialog.model.title"}}),t._v(" "),a("v-text-field",{attrs:{label:"Volume"},model:{value:t.editDialog.model.volume,callback:function(e){t.$set(t.editDialog.model,"volume",e)},expression:"editDialog.model.volume"}}),t._v(" "),a("v-text-field",{attrs:{label:"Day"},model:{value:t.editDialog.model.day,callback:function(e){t.$set(t.editDialog.model,"day",e)},expression:"editDialog.model.day"}}),t._v(" "),a("v-text-field",{attrs:{label:"month"},model:{value:t.editDialog.model.month,callback:function(e){t.$set(t.editDialog.model,"month",e)},expression:"editDialog.model.month"}}),t._v(" "),a("v-text-field",{attrs:{label:"Year",required:"",rules:[function(t){return!!t||"Item is required"}]},model:{value:t.editDialog.model.year,callback:function(e){t.$set(t.editDialog.model,"year",e)},expression:"editDialog.model.year"}}),t._v(" "),a("v-text-field",{attrs:{label:"Authors",required:"",rules:[function(t){return!!t||"Item is required"}]},model:{value:t.editDialog.model.authors,callback:function(e){t.$set(t.editDialog.model,"authors",e)},expression:"editDialog.model.authors"}}),t._v(" "),a("v-text-field",{attrs:{label:"Editors",required:"",rules:[function(t){return!!t||"Item is required"}]},model:{value:t.editDialog.model.editors,callback:function(e){t.$set(t.editDialog.model,"editors",e)},expression:"editDialog.model.editors"}}),t._v(" "),a("v-combobox",{attrs:{items:t.editDialog.model.tags,chips:"",label:"Tags",multiple:"",rules:[function(t){return!!t||"Item is required"}]},model:{value:t.editDialog.model.tags,callback:function(e){t.$set(t.editDialog.model,"tags",e)},expression:"editDialog.model.tags"}})],1)],1),t._v(" "),a("v-card-actions")],1):t._e()],1)},staticRenderFns:[]};var lt={components:{logindialog:L,logoutdialog:G,importdialog:ot,editdialog:a("VU/8")(rt,st,!1,function(t){a("CXGn")},null,null).exports}},ct={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("logindialog"),this._v(" "),e("logoutdialog"),this._v(" "),e("importdialog"),this._v(" "),e("editdialog")],1)},staticRenderFns:[]};var ut={data:function(){return{}},name:"App",components:{fundamentnav:P,fundamentfooter:F,dialogs:a("VU/8")(lt,ct,!1,function(t){a("bvMD")},null,null).exports},methods:B()({},Object(m.d)("app",["setConfig"])),created:function(){var t=this;c.a.get("/nav.json").then(function(e){return t.setConfig(e.data)}).catch(function(e){return t.$log(e)})}},dt={render:function(){var t=this.$createElement,e=this._self._c||t;return e("v-app",[e("fundamentnav"),this._v(" "),e("v-content",[e("router-view",{attrs:{name:"Content"}}),this._v(" "),e("fundamentfooter")],1),this._v(" "),e("dialogs")],1)},staticRenderFns:[]},vt=a("VU/8")(ut,dt,!1,null,null,null).exports,mt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-parallax",{staticClass:"mt-4 mb-3 border-top",attrs:{src:t.src,height:"250"}},[a("v-layout",{attrs:{column:"","align-center":"","justify-center":""}},[a("h1",[t._v(t._s(t.caption))]),t._v(" "),a("p",[t._v(t._s(t.subtitle))])])],1)},staticRenderFns:[]};var gt={render:function(){var t=this.$createElement,e=this._self._c||t;return e("v-flex",{attrs:{xs12:""}},[e("div",{staticClass:"text-xs-center pb-2 mb-1 sec"},[e("v-icon",[this._v(this._s(this.icon))]),this._v("\n    "+this._s(this.caption)+"\n  ")],1)])},staticRenderFns:[]};var pt={components:{fundamentjumbo:a("VU/8")({data:function(){return{}},props:["src","caption","subtitle"],name:"FundamentJumbo"},mt,!1,function(t){a("aUQX")},"data-v-43a3b338",null).exports,fundamentcard:Z,fundamentsectiondiv:a("VU/8")({data:function(){return{}},props:["icon","caption"],name:"FundamentSectionDiv"},gt,!1,function(t){a("d7+r")},"data-v-229a18fd",null).exports},name:"start",data:function(){return{}},methods:{importPage:function(){this.$router.push({name:"import",params:{lang:"en"}})}}},ft={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{},[e("fundamentjumbo",{attrs:{src:"/intro_bg.jpg",caption:"DESIR Codesprint - GROBID/Bibsonomy/ORCID WebApp",subtitle:""}}),this._v(" "),e("v-container",{attrs:{"grid-list-md":""}},[e("v-layout",{attrs:{"justify-space-around":"",row:"",wrap:""}},[e("v-flex",{attrs:{xs12:"",sm12:""}},[e("fundamentcard",{attrs:{caption:"Bibliography Extractor for BibSonomy"}},[e("p",{staticClass:"card-text"},[this._v("Extraction bibliographic information from files and text and upload to your BibSonomy. Powered by GROBID.")]),this._v(" "),e("p",{staticClass:"card-text"},[e("v-btn",{attrs:{color:"primary"},on:{click:this.importPage}},[this._v("Start extracting now!")])],1)])],1),this._v(" "),e("fundamentsectiondiv",{attrs:{icon:"device_hub",caption:"Bibsonomy"}})],1)],1)],1)},staticRenderFns:[]};var ht=a("VU/8")(pt,ft,!1,function(t){a("c+tA")},"data-v-734fccb4",null).exports,bt={mixins:[O],components:{},data:function(){return{snackbar:!1,snackText:"",timeout:5e3,view:{},data:[],headers:[{text:"booktitle",value:"booktitle"},{text:"entryType",value:"entryType"},{text:"year",value:"year"},{text:"status",value:""},{text:"edit",value:""}]}},methods:B()({},Object(m.d)("entries",["deleteEntry"]),Object(m.d)("dialogs",["openEditDialog"]),{submitAll:function(){for(var t=this,e=[],a=0;a<this.entries.length;a++)e.push(this.entries[a]);if(!e.length)return this.snackbar=!0,void(this.snackText="No entries to submit!");console.log("store items: "+e);var n={headers:{user:this.username,key:this.userkey}};c.a.post("/store",e,n).then(function(e){t.snackbar=!0,t.snackText="Submission successful"}).catch(function(e){t.snackbar=!0,t.snackText=e.message})},itemDelete:function(t){console.log("delete item: "+t),this.deleteEntry({idx:t})}}),computed:B()({},Object(m.e)("entries",["entries"]),Object(m.e)("app",["username","userkey"]),Object(m.c)("entries",["isValid"])),created:function(){console.log(this.$store.state.entries.entries)}},_t={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("v-container",{attrs:{"grid-list-md":""}},[a("h3",[t._v("Extracted Entries")]),t._v(" "),a("v-data-table",{staticClass:"elevation-1",attrs:{headers:t.headers,items:t.entries},scopedSlots:t._u([{key:"items",fn:function(e){return[a("td",[t._v(t._s(e.item.title))]),t._v(" "),a("td",[t._v(t._s(e.item.entryType))]),t._v(" "),a("td",[t._v(t._s(e.item.year))]),t._v(" "),a("td",[a("v-alert",{attrs:{value:0==t.isValid(e.item.idx).length,type:"success"}},[t._v("Item ready to submit.")]),t._v(" "),a("v-alert",{attrs:{value:t.isValid(e.item.idx).length>0,type:"warning"}},[t._v("Item missing "+t._s(t.isValid(e.item.idx))+".")])],1),t._v(" "),a("td",[a("v-btn",{attrs:{text:"",icon:""},on:{click:function(a){t.openEditDialog(e.item)}}},[a("v-icon",[t._v("edit")])],1)],1),t._v(" "),a("td",[a("v-btn",{attrs:{text:"",icon:""},on:{click:function(a){t.itemDelete(e.item.idx)}}},[a("v-icon",{attrs:{color:"red"}},[t._v("delete")])],1)],1)]}}])}),t._v(" "),t.entries.length?a("div",[t.username&&t.userkey?a("v-btn",{on:{click:t.submitAll}},[t._v("Submit to BibSonomy")]):a("v-sheet",{staticClass:"text-center"},[t._v("Please log in to submit items to BibSonomy")])],1):t._e()],1),t._v(" "),a("v-snackbar",{attrs:{timeout:t.timeout},model:{value:t.snackbar,callback:function(e){t.snackbar=e},expression:"snackbar"}},[t._v("\n    "+t._s(t.snackText)+"\n    "),a("v-btn",{attrs:{color:"red",text:""},on:{click:function(e){t.snackbar=!1}}},[t._v("Close")])],1)],1)},staticRenderFns:[]};var Dt=a("VU/8")(bt,_t,!1,function(t){a("MiXd")},"data-v-74eb17ed",null).exports;n.default.use(I.a);var xt=new I.a({routes:[{path:"/",name:"root",redirect:function(t){return"en"!==t.params.lang?"/en":t.fullPath}},{path:"/:lang",components:{default:vt},children:[{path:"start",name:"start",components:{Content:ht}},{path:"import",name:"import",components:{Content:at}},{path:"entries",name:"entries",components:{Content:Dt}},{path:"",redirect:{name:"start"}}]}],scrollBehavior:function(){return{x:0,y:0}}});a("gPEe");n.default.use(v.a,{dev:!1,shortname:!0,levels:["log","warn","debug","error","dir","info"]}),n.default.use(s.a,c.a),n.default.use(o.a,{theme:{primary:"#0059c7",accent:"#2c76be",secondary:"#2c76be",info:"#B2DFDB"}}),Object(u.sync)($,xt),n.default.config.productionTip=!1,new n.default({store:$,router:xt}).$mount("#app")},S39o:function(t,e){},Xnck:function(t,e){},aUQX:function(t,e){},aePs:function(t,e){},bvMD:function(t,e){},"c+tA":function(t,e){},"d7+r":function(t,e){},gPEe:function(t,e){},ng0Y:function(t,e){},rucs:function(t,e){}},["NHnr"]);
  //# sourceMappingURL=app.dce473d5fff8727163ec.js.map