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