(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{ewmg:function(e,a,n){"use strict";n.r(a);var t=n("qNsG"),u=n("q1tI"),r=n.n(u),c=n("yE/o"),g=n("gaPq"),o=n("zrwo"),l=n("kOwS"),i=n("rt45"),s=n("eHHv"),m=n("lTCR"),d=n.n(m),b=n("4KRT"),f=n("nOHt"),p=n("hePV"),w=n.n(p),O=n("gmoh"),v=n.n(O),j=n("fjVX"),E=n.n(j),h=n("oB+O"),L=n.n(h),S=n("7zkD"),_=n("PaXs");function P(){var e=Object(i.a)(["\n      mutation createLanguage($language: CreateLanguageInput!) {\n        createLanguage(language: $language) {\n          _id\n        }\n      }\n    "]);return P=function(){return e},e}var k=Object(s.a)(f.withRouter,Object(b.c)(d()(P()),{name:"createLanguage",options:{refetchQueries:["languages"]}}),Object(S.a)({isoCode:{type:String,optional:!1,label:"ISO Sprachcode"}}),Object(s.f)({onSubmitSuccess:function(e){var a=e.router;return function(e){var n=e.data.createLanguage;a.replace({pathname:"/languages/edit",query:{_id:n._id}})}},onSubmit:function(e){var a=e.createLanguage,n=e.schema;return function(e){var t=Object(l.a)({},e);return a({variables:{language:n.clean(t)}})}}}),_.a,Object(s.d)(function(e){e.createLanguage;var a=Object(t.a)(e,["createLanguage"]);return Object(o.a)({},a)}),s.e)(function(e){return r.a.createElement(L.a,e,r.a.createElement(w.a,{name:"isoCode"}),r.a.createElement(E.a,null),r.a.createElement(v.a,{value:"Add language",className:"primary"}))}),q=n("PZVx");a.default=Object(q.a)(function(e){e.onSuccess;var a=Object(t.a)(e,["onSuccess"]);return r.a.createElement(g.a,a,r.a.createElement(c.a,null,r.a.createElement("p",null,"Add Language"),r.a.createElement(k,null)))})},luF5:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/languages/new",function(){var e=n("ewmg");return{page:e.default||e}}])}},[["luF5",1,0]]]);