_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[45],{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"),g=t("rePB"),i=t("wx14"),l=t("h4VS"),s=t("eHHv"),b=t("lTCR"),p=t.n(b),O=t("DI+Y"),f=t("nOHt"),j=t("hePV"),w=t.n(j),d=t("gmoh"),m=t.n(d),h=t("fjVX"),v=t.n(h),y=t("oB+O"),P=t.n(y),_=t("7zkD"),S=t("PaXs"),E=u.a.createElement;function L(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 N=Object(s.a)(f.withRouter,Object(O.graphql)(p()(D()),{name:"createLanguage",options:{refetchQueries:["languages"]}}),Object(_.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(i.a)({},e);return n({variables:{language:t.clean(a)}})}}}),S.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?L(Object(t),!0).forEach((function(n){Object(g.a)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(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 E(P.a,e,E(w.a,{name:"isoCode"}),E(v.a,null),E(m.a,{value:"Add language",className:"primary"}))})),k=t("PZVx"),q=u.a.createElement;n.default=Object(k.a)((function(e){e.onSuccess;var n=Object(a.a)(e,["onSuccess"]);return q(o.a,n,q(c.a,null,q("p",null,"Add Language"),q(N,null)))}))},luF5:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/languages/new",function(){return t("ewmg")}])}},[["luF5",0,2,3,1,4,5,6,7]]]);