(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{ewmg:function(e,n,t){"use strict";t.r(n);var a=t("Ff2n"),r=t("q1tI"),u=t.n(r),c=t("yE/o"),o=t("gaPq"),i=t("rePB"),g=t("wx14"),l=t("h4VS"),s=t("eHHv"),b=t("lTCR"),p=t.n(b),O=t("0dmp"),f=t("nOHt"),j=t("hePV"),d=t.n(j),w=t("gmoh"),m=t.n(w),v=t("fjVX"),y=t.n(v),P=t("oB+O"),h=t.n(P),S=t("7zkD"),L=t("PaXs"),_=u.a.createElement;function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function D(){var e=Object(l.a)(["\n      mutation createLanguage($language: CreateLanguageInput!) {\n        createLanguage(language: $language) {\n          _id\n        }\n      }\n    "]);return D=function(){return e},e}var k=Object(s.a)(f.withRouter,Object(O.a)(p()(D()),{name:"createLanguage",options:{refetchQueries:["languages"]}}),Object(S.a)({isoCode:{type:String,optional:!1,label:"ISO Sprachcode"}}),Object(s.f)({onSubmitSuccess:function(e){var n=e.router;return function(e){var t=e.data.createLanguage;n.replace({pathname:"/languages/edit",query:{_id:t._id}})}},onSubmit:function(e){var n=e.createLanguage,t=e.schema;return function(e){var a=Object(g.a)({},e);return n({variables:{language:t.clean(a)}})}}}),L.a,Object(s.d)((function(e){e.createLanguage;return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){Object(i.a)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},Object(a.a)(e,["createLanguage"]))})),s.e)((function(e){return _(h.a,e,_(d.a,{name:"isoCode"}),_(y.a,null),_(m.a,{value:"Add language",className:"primary"}))})),C=t("PZVx"),V=u.a.createElement;n.default=Object(C.a)((function(e){e.onSuccess;var n=Object(a.a)(e,["onSuccess"]);return V(o.a,n,V(c.a,null,V("p",null,"Add Language"),V(k,null)))}))},luF5:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/languages/new",function(){return t("ewmg")}])}},[["luF5",0,2,5,1,3,4,6]]]);