(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[13],{"7gdK":function(e,t,n){"use strict";(function(e){n("bbsP");var a=n("/wGt"),r=(n("eE3J"),n("GSZB")),c=n("tJVT"),l=n("q1tI"),u=n.n(l),o=n("/MKj"),i=n("fVK0"),s=n("jfUH"),d=n("yPhJ"),f=n("txBY"),m=n("ywuK"),b=n.n(m),h=n("Utjr"),j=Object(h["d"])((function(){return n.e(20).then(n.bind(null,"Y3Wu"))})),w=function(e){var t=e.model,n=e.defaultTab,o=e.updateAdmin,i=Object(l["useState"])(!1),s=Object(c["a"])(i,2),f=s[0],m=s[1],h=Object(l["useState"])(!1),w=Object(c["a"])(h,2),E=w[0],p=w[1],v=Object(d["useAdminEditor"])({modelName:t}),O=v.check,y=v.reset,A=v.verifys,S=v.conf,k=v.tabs,K=function(){m(!0),p((function(e){return!e}))};return u.a.createElement(a["a"],{width:"50%",visible:E,onClose:K,placement:"right",handler:u.a.createElement("div",{className:b.a.handle,onClick:K},u.a.createElement(r["a"],{type:E?"close":"layout",style:{color:"#fff",fontSize:20}})),style:{zIndex:999},footer:u.a.createElement(d["AdminEditorButtons"],{conf:S,check:O,reset:y,verifys:A,afterSubmit:K,updateAdmin:o,modelName:t})},f&&u.a.createElement(j,{defaultTab:n,tabs:k}))},E=e.flow(Object(s["e"])("shouldShow"),Object(s["d"])((function(t){var n=t.model,a=t.currentUser.permissions;return{shouldShow:e.includes(a,i["a"].CHANGE_ADMIN)&&n&&Object(s["X"])(n)}})),Object(o["c"])((function(e){var t=e.user.currentUser;return{currentUser:t}})),f["a"]);t["a"]=E((function(e){var t=e.model,n=Object(s["rb"])(t);return n?u.a.createElement(w,e):null}))}).call(this,n("LvDl"))},HELq:function(e,t,n){"use strict";n.r(t);var a=n("q1tI"),r=n.n(a),c=n("IAeB"),l=n("7gdK");t["default"]=function(e){var t=e.match.params.model;return r.a.createElement(r.a.Fragment,null,r.a.createElement(c["b"],e),r.a.createElement(l["a"],{model:t,key:t,defaultTab:"detail"}))}},ywuK:function(e,t,n){e.exports={handle:"handle____zXwB"}}},0,[20]]);