(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{"3Kj1":function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/countries/new",function(){return n("NNQ4")}])},NNQ4:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n.n(r),c=n("yE/o"),u=n("gaPq"),a=n("rePB"),i=n("Ff2n"),s=n("wx14"),b=n("h4VS"),p=n("eHHv"),O=n("lTCR"),f=n.n(O),y=n("nOHt"),l=n("0dmp"),j=n("hePV"),w=n.n(j),d=n("gmoh"),m=n.n(d),P=n("fjVX"),v=n.n(P),h=n("oB+O"),C=n.n(h),g=n("7zkD"),_=n("PaXs"),N=o.a.createElement;function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(){var e=Object(b.a)(["\n      mutation create($country: CreateCountryInput!) {\n        createCountry(country: $country) {\n          _id\n        }\n      }\n    "]);return E=function(){return e},e}var D=Object(p.a)(y.withRouter,Object(l.a)(f()(E()),{name:"createCountry",options:{refetchQueries:["countries"]}}),Object(g.a)({isoCode:{type:String,optional:!1,label:"ISO Country code"}}),Object(p.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(s.a)({},e);return t({variables:{country:n.clean(r)}})}}}),_.a,Object(p.d)((function(e){e.createCountry;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(i.a)(e,["createCountry"]))})))((function(e){return N(C.a,e,N(w.a,{name:"isoCode"}),N(v.a,null),N(m.a,{value:"Add country",className:"primary"}))})),k=n("PZVx"),V=o.a.createElement;t.default=Object(k.a)((function(e){return V(u.a,e,V(c.a,null,V("p",null,"New country"),V(D,null)))}))}},[["3Kj1",0,2,5,1,3,4,6]]]);