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