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