代码拉取完成,页面将自动刷新
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[23,6],{"2Igm":function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"f",(function(){return B})),n.d(t,"h",(function(){return z})),n.d(t,"g",(function(){return J})),n.d(t,"b",(function(){return oe})),n.d(t,"a",(function(){return le})),n.d(t,"e",(function(){return ye})),n.d(t,"i",(function(){return Ve})),n.d(t,"j",(function(){return ct}));n("Xi6J");var r=n("kl6h"),a=(n("iQDF"),n("+eQT")),i=n("0Owb"),o=n("q1tI"),l=n.n(o),c=n("wd/R"),u=n.n(c),s=(n("XDpg"),n("Nv36")),d=n("0lfv"),p=function(e){var t,n=e.type,r=e.value,o=e.onChange,c=void 0===o?function(){}:o,p=e.dateFormatType;if("Time"===n)return l.a.createElement(f,{value:r||0,type:p,onChange:c});var m=10===(null===(t=String(r))||void 0===t?void 0:t.length)&&!isNaN(Number(r));return m&&(r=1e3*Number(r)),l.a.createElement(a["a"],Object(i["a"])({},e,{locale:s["a"],value:r?u()(r):null,showTime:"DateTime"===n,format:"DateTime"===n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD",onChange:function(e,t){if(!m||p){var r=Object(d["k"])(t,p,n);c(r)}else c(u()(t).unix())}}))},m=function(e){var t=e.type,n=e.value,r=e.onChange,o=void 0===r?function(){}:r,c=e.dateFormatType,p=(n||[]).filter((function(e){return"NaN"===String(e)}));if(n=(null===p||void 0===p?void 0:p.length)>0?void 0:n,"Time"===t)return l.a.createElement(g,{value:n,type:c,onChange:o});var m=!1,f=(n||[]).map((function(e){var t,n=e;return 10!==(null===(t=String(n))||void 0===t?void 0:t.length)||isNaN(Number(n))||(m=!0,n=1e3*Number(n)),n}));return l.a.createElement(a["a"].RangePicker,Object(i["a"])({},e,{locale:s["a"],value:(null===f||void 0===f?void 0:f.length)>1?[u()(null===f||void 0===f?void 0:f[0])||null,u()(null===f||void 0===f?void 0:f[1])||null]:void 0,showTime:"DateTime"===t,format:"DateTime"===t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD",onChange:function(e,n){if(!m||c){var r=n.map((function(e){return e&&Object(d["k"])(e,c,t)}));if(r.filter((function(e){return!e})).length>0)return o(void 0);o(r)}else o(n.map((function(e){return u()(e).unix()})))}}))},f=function(e){var t=e.value,n=e.type,a=e.onChange,i=b(t,n);return l.a.createElement(r["a"],{defaultValue:u()(i),onChange:function(e,t){a(h(t))}})},g=function(e){var t=e.value,n=e.type,a=e.onChange,i=(t||[]).map((function(e){return b(e,n)}));return l.a.createElement(r["a"].RangePicker,{defaultValue:i.length>1?[u()(null===i||void 0===i?void 0:i[0])||void 0,u()(null===i||void 0===i?void 0:i[1])||void 0]:void 0,onChange:function(e,t){var n=t.map((function(e){return e&&h(e)}));if(n.filter((function(e){return!e})).length>0)return a(void 0);a(n)}})},v=[36e5,6e4,1e3],b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"timestamp-ms",n=Object(d["t"])(),r=Object(d["V"])(e,t);return"".concat(n," ").concat(r)},h=function(e){return e.split(":").map(Number).reduce((function(e,t,n){return e+t*v[n]}),0)},y=(n("5Dmo"),n("3S7+")),E=(n("Mwp2"),n("VXEj")),O=(n("DYRE"),n("zeV3")),x=(n("Q9mQ"),n("diRs")),I=(n("tU7J"),n("wFql")),D=n("YO/a"),C=(n("+L6B"),n("2/Rp")),w=(n("miYZ"),n("tsqr")),j=n("tJVT"),S=n("Ag4f"),N=function(e){var t=e.index,n=e.fileUri,r=e.type,a="file"===r?"\u6587\u4ef6":"\u56fe\u7247",i=Object(o["useState"])(!1),c=Object(j["a"])(i,2),u=c[0],s=c[1];return u="undefined"===typeof t?u:u===t,l.a.createElement("div",{className:"flex justify-center"},Object(d["L"])(n)&&l.a.createElement(C["a"],{type:"link",size:"small",loading:u,onClick:function(){s("undefined"===typeof t||t),Object(d["g"])(n).then((function(){w["default"].success("\u4e0b\u8f7d".concat(a,"\u6210\u529f"))})).catch((function(e){console.log(e),console.log(e.message),w["default"].error("\u4e0b\u8f7d".concat(a,"\u5931\u8d25 ").concat(e.message))})).finally((function(){s(!1)}))}},"\u4e0b\u8f7d",a),l.a.createElement(C["a"],{type:"link",size:"small",onClick:function(){if(Object(d["L"])(n)){var e=Object(d["i"])(n);Object(d["e"])(e),w["default"].success("\u590d\u5236\u94fe\u63a5\u6210\u529f\uff01")}else Object(d["e"])(n)}},"\u8bbf\u95ee\u94fe\u63a5",l.a.createElement(S["a"],null)))},T=I["a"].Text,A={width:"80%"},B=function(e){var t=e.urls,n=e.displayName;if(null===t||void 0===t||!t.length)return l.a.createElement("span",null,"\u7a7a");var r=Object(d["c"])({displayName:n,type:"File"});if(A.width="".concat(r-30,"px"),Array.isArray(t))return l.a.createElement(E["b"],{split:!1,dataSource:t,itemLayout:"horizontal",renderItem:function(e,t){var n=(null===e||void 0===e?void 0:e.split("/").pop())||"";return l.a.createElement(E["b"].Item,null,l.a.createElement(O["b"],null,l.a.createElement(D["a"],{style:{fontSize:"16px"}}),l.a.createElement(x["a"],{content:l.a.createElement(N,{type:"file",fileUri:e,index:t})},l.a.createElement(T,{ellipsis:!0,style:A},n))))}});var a=t,i=(null===a||void 0===a?void 0:a.split("/").pop())||"";return Object(d["L"])(a)?l.a.createElement(O["b"],null,l.a.createElement(D["a"],{style:{fontSize:"16px"}}),l.a.createElement(x["a"],{content:l.a.createElement(N,{type:"file",fileUri:a})},l.a.createElement(T,{ellipsis:!0,style:A},i))):l.a.createElement(O["b"],null,l.a.createElement(D["a"],{style:{fontSize:"16px"}}),l.a.createElement(y["a"],{title:i},l.a.createElement(T,{ellipsis:!0,style:A},i)))},R=(n("2qtc"),n("kLXV")),k=(n("fV52"),n("3I+P")),P=(n("T2oS"),n("W9HT")),L=(n("XCrF"),n("1GRj")),F=(n("R9oj"),n("ECub")),M=n("hHl9"),G=n.n(M),_="60px",U="200px",W={margin:"auto",overflow:"hidden"},z=function(e){var t=e.urls;if(null===t||void 0===t||!t.length)return l.a.createElement(F["a"],{image:G.a,imageStyle:{height:"60px"},description:"\u672a\u8bbe\u5b9a\u56fe\u7247"});if(Array.isArray(t))return l.a.createElement(V,{fileUris:t});var n=t;return Object(d["L"])(n)?l.a.createElement(V,{fileUris:[t]}):l.a.createElement(L["a"],{src:n,width:U,height:_,style:W})},V=function(e){var t=e.fileUris,n=Object(o["useState"])(!0),r=Object(j["a"])(n,2),a=r[0],i=r[1],c=Object(o["useState"])([]),u=Object(j["a"])(c,2),s=u[0],p=u[1];return Object(o["useEffect"])((function(){if(null!==t&&void 0!==t&&t.length){var e=t.filter((function(e){return Object(d["L"])(e)}));Object(d["b"])(e).then((function(e){var n=t.map((function(t){var n=t;if(Object(d["L"])(t)){var r=e.find((function(e){return e.fileID===t}));n=(null===r||void 0===r?void 0:r.tempFileURL)||""}return n}));p(n)})).catch((function(e){console.log(e),w["default"].error("\u83b7\u53d6\u56fe\u7247\u94fe\u63a5\u5931\u8d25 ".concat(e.message))})).finally((function(){i(!1)}))}}),[]),a?l.a.createElement(P["a"],null):l.a.createElement(H,{urls:s,fileUris:t})},H=function(e){var t=e.urls,n=e.fileUris,r=Object(o["useState"])(!1),a=Object(j["a"])(r,2),i=a[0],c=a[1],u=Object(o["useState"])(0),s=Object(j["a"])(u,2),d=s[0],p=s[1];return 1===(null===t||void 0===t?void 0:t.length)?l.a.createElement(O["b"],{direction:"vertical"},l.a.createElement(L["a"],{src:null===t||void 0===t?void 0:t[0],width:U,height:_,style:W}),(null===n||void 0===n?void 0:n.length)&&l.a.createElement(N,{type:"image",fileUri:n[d]})):l.a.createElement(l.a.Fragment,null,l.a.createElement(O["b"],{direction:"vertical",style:{width:"100%"}},l.a.createElement(L["a"],{src:null===t||void 0===t?void 0:t[0],width:U,height:_,style:W}),l.a.createElement(C["a"],{size:"small",type:"link",onClick:function(){return c(!0)}},"\u67e5\u770b\u66f4\u591a")),l.a.createElement(R["a"],{title:"\u56fe\u7247",visible:i,footer:null,width:700,onCancel:function(){return c(!1)}},l.a.createElement(O["b"],{direction:"vertical",style:{width:"100%"}},l.a.createElement(k["a"],{dots:{className:"carousel-dots"},afterChange:function(e){p(e)}},t.map((function(e,t){return l.a.createElement(L["a"],{key:t,src:e,width:"100%",className:"modal-image",style:W})}))),(null===n||void 0===n?void 0:n.length)&&l.a.createElement(N,{type:"image",fileUri:n[d]}))))},q=(n("BoS7"),n("Sdc0")),J=function(e){var t=e.value,n=e.onChange;return l.a.createElement(q["a"],{checked:t,checkedChildren:"True",unCheckedChildren:"False",onChange:n})},Y=n("jrin"),X=n("9og8"),K=(n("+BJd"),n("mr32")),Z=(n("OaEy"),n("2fM7")),Q=n("WmNS"),$=n.n(Q),ee=n("9kvl"),te=n("1reR"),ne=n("CXPE"),re=Z["a"].Option,ae=I["a"].Text,ie=I["a"].Paragraph,oe=function(e){var t=e.value,n=e.field,r=n.connectMany,a=Object(d["c"])(n),i=Object(te["c"])("content"),o=i.state.schemas;return t&&"string"!==typeof t&&"string"!==typeof(null===t||void 0===t?void 0:t[0])?r?l.a.createElement(ie,{style:{width:a}},t.filter((function(e){return e})).map((function(e,t){return l.a.createElement(K["a"],{key:t},ce(e,o,n))}))):l.a.createElement(ae,{ellipsis:!0,style:{width:a}},ce(t,o,n)):l.a.createElement("span",null,"-")},le=function(e){var t=e.value,n=void 0===t?[]:t,r=e.onChange,a=e.field,i=Object(d["z"])(),c=Object(te["c"])("content"),u=a.connectField,s=a.connectResource,p=a.connectMany,m=c.state.schemas,f=Object(o["useState"])([]),g=Object(j["a"])(f,2),v=g[0],b=g[1],h=Object(o["useState"])(!0),y=Object(j["a"])(h,2),E=y[0],O=y[1],x=Object(o["useState"])(),I=Object(j["a"])(x,2),D=I[0],C=I[1];Object(ee["k"])(Object(X["a"])($.a.mark((function e(){var t,n,r,a,o,l;return $.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(O(!0),t=m.find((function(e){return e._id===s})),console.log("\u5173\u8054",t),t){e.next=9;break}return e.next=6,Object(ne["f"])(i,s);case 6:n=e.sent,r=n.data,t=r;case 9:return a={page:1,pageSize:1e3},D&&(a.fuzzyFilter=Object(Y["a"])({},u,D)),e.next=13,Object(ne["h"])(i,t.collectionName,a);case 13:o=e.sent,l=o.data,b(l),O(!1);case 17:case"end":return e.stop()}}),e)}))),{cacheKey:s,onError:function(e){w["default"].error(e.message||"\u83b7\u53d6\u6570\u636e\u9519\u8bef"),O(!1)},refreshDeps:[D],debounceInterval:500});var S=se(n,p);return l.a.createElement(Z["a"],{showSearch:!0,loading:E,value:S,onChange:r,onSearch:function(e){var t=ue(m,a),n="Number"===(null===t||void 0===t?void 0:t.type);C(n?Number(e):e)},filterOption:!1,placeholder:"\u5173\u8054\u5b57\u6bb5",style:{width:"240px"},disabled:E&&!D,mode:p?"multiple":void 0,notFoundContent:E?l.a.createElement(P["a"],{size:"small"}):null},E?l.a.createElement(re,{value:""},l.a.createElement(P["a"],{size:"small"})):null!==v&&void 0!==v&&v.length?l.a.createElement(l.a.Fragment,null,l.a.createElement(re,{value:""},"\u7a7a"),null===v||void 0===v?void 0:v.map((function(e){return l.a.createElement(re,{value:e._id,key:e._id},ce(e,m,a))}))):l.a.createElement(re,{value:"",disabled:!0},"\u7a7a"))},ce=function(e,t,n){var r,a=n.connectField,i=n.connectResource,o=t.find((function(e){return e._id===i})),l=null===o||void 0===o?void 0:o.fields.find((function(e){return e.name===a}));return null!==l&&void 0!==l&&l.connectResource?Object(d["F"])(null===(r=e[a])||void 0===r?void 0:r[l.connectField]):Object(d["F"])(e[a])},ue=function(e,t){var n,r=t.connectField,a=t.connectResource,i=e.find((function(e){return e._id===a})),o=null===i||void 0===i?void 0:i.fields.find((function(e){return e.name===r}));if(null!==(n=o)&&void 0!==n&&n.connectResource){var l=e.find((function(e){var t;return e._id===(null===(t=o)||void 0===t?void 0:t.connectResource)}));o=null===l||void 0===l?void 0:l.fields.find((function(e){var t;return e.name===(null===(t=o)||void 0===t?void 0:t.connectField)}))}return o},se=function(e,t){return t?e.filter((function(e){return e})).map((function(e){return"string"===typeof e?e:null===e||void 0===e?void 0:e._id})):"string"===typeof e?e:null===e||void 0===e?void 0:e._id},de=(n("MXD1"),n("CFYs")),pe=(n("DZo9"),n("8z0m")),me=n("LtfV"),fe=n("emwk"),ge=n("PpiC"),ve=function(e){var t=e.tip,n=void 0===t?"\u52a0\u8f7d\u4e2d":t,r=Object(ge["a"])(e,["tip"]);return l.a.createElement("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},l.a.createElement(P["a"],Object(i["a"])({tip:n,size:"large"},r)))},be=n("Dezk"),he=pe["a"].Dragger,ye=function(e){var t=e.value,n=e.type,r=e.field,a=e.onChange,i=void 0===a?function(){}:a,o=e.resourceLinkType,c=void 0===o?"fileId":o,u=r.isMultiple,s=Object(d["y"])(),p=null===s||void 0===s?void 0:s.upload;if(u||Array.isArray(t))return l.a.createElement(Oe,{type:n,onChange:i,fileUris:t,resourceLinkType:c});var m=t;return l.a.createElement(Ee,{type:n,fileUri:m,onChange:i,uploadType:p,resourceLinkType:c})},Ee=function(e){var t=e.type,n=e.fileUri,r=e.onChange,a=e.uploadType,i=e.resourceLinkType,c=Object(o["useState"])(0),u=Object(j["a"])(c,2),s=u[0],p=u[1],m=Object(o["useState"])(!1),f=Object(j["a"])(m,2),g=f[0],v=f[1],b=Object(o["useState"])([]),h=Object(j["a"])(b,2),y=h[0],E=h[1],O="file"===t?"\u6587\u4ef6":"\u56fe\u7247";return Object(o["useEffect"])((function(){if(n){var e=Object(d["s"])(n);if("file"!==t)return Object(d["L"])(n)?void Object(d["E"])(n).then((function(t){E([{url:t,uid:n,name:e||"\u5df2\u4e0a\u4f20".concat(O),status:"done"}])})).catch((function(e){w["default"].error("\u52a0\u8f7d\u56fe\u7247\u5931\u8d25 ".concat(e.message))})):E([{url:n,uid:n,name:e||"\u5df2\u4e0a\u4f20".concat(O),status:"done"}]);E([{url:n,uid:n,name:e||"\u5df2\u4e0a\u4f20".concat(O),status:"done"}])}}),[]),l.a.createElement(l.a.Fragment,null,l.a.createElement(he,{fileList:y,listType:"image"===t?"picture":"text",onRemove:function(e){r(null),E([])},beforeUpload:function(e){return v(!0),p(0),Object(d["W"])({file:e,uploadType:a,onProgress:function(e){p(e)}}).then((function(t){var n=t.fileId,a=t.url;r("fileId"===i?n:a),E([{url:a,uid:n,name:e.name,status:"done"}]),w["default"].success("\u4e0a\u4f20".concat(O,"\u6210\u529f"))})),!1}},l.a.createElement("p",{className:"ant-upload-drag-icon"},l.a.createElement(me["a"],null)),l.a.createElement("p",{className:"ant-upload-text"},"\u70b9\u51fb\u6216\u62d6\u62fd",O,"\u4e0a\u4f20")),g&&l.a.createElement(de["a"],{style:{paddingTop:"10px"},percent:s}))},Oe=function(e){var t,n=e.fileUris,r=void 0===n?[]:n,a=e.type,i=e.onChange,c=void 0===i?function(){}:i,u=e.resourceLinkType,s=void 0===u?"fileId":u;Array.isArray(r)||"string"!==typeof r||(r=[r]);var p=r.every((function(e){return!Object(d["L"])(e)})),m=Object(be["a"])({transformLoading:!(null===(t=r)||void 0===t||!t.length||p||"file"===a),transformedFileUrls:r}),f=Object(j["a"])(m,2),g=f[0],v=g.transformLoading,b=g.transformedFileUrls,h=f[1],y="file"===a?"\u6587\u4ef6":"\u56fe\u7247";return Object(o["useEffect"])((function(){var e;if(null!==(e=r)&&void 0!==e&&e.length&&!p&&"file"!==a){var t=r.filter((function(e){return Object(d["L"])(e)}));Object(d["b"])(t).then((function(e){var t=r.map((function(t){var n=t;if(Object(d["L"])(t)){var r=e.find((function(e){return e.fileID===t}));n=(null===r||void 0===r?void 0:r.tempFileURL)||""}return n}));h({transformLoading:!1,transformedFileUrls:t})})).catch((function(e){h({transformLoading:!1}),w["default"].error("\u83b7\u53d6\u56fe\u7247\u94fe\u63a5\u5931\u8d25 ".concat(e.message))}))}}),[r]),v?l.a.createElement(ve,{size:"default",tip:"\u56fe\u7247\u52a0\u8f7d\u4e2d"}):l.a.createElement(fe["a"],{onChange:c,value:b,resourceLinkType:s,uploadTip:"\u70b9\u51fb\u6216\u62d6\u62fd".concat(y,"\u4e0a\u4f20"),listType:"image"===a?"picture":"text"})},xe=(n("y8nQ"),n("Vl3Y")),Ie=(n("giR+"),n("fyUT")),De=(n("5NDa"),n("5rEg")),Ce=n("wlus"),we=n("xvlK"),je=(n("fOrg"),n("+KLJ")),Se=(n("14J3"),n("BMrR")),Ne=(n("jCWc"),n("kPKH")),Te=n("ovOe"),Ae=n.n(Te),Be=function(e){var t=e.value,n=void 0===t?{}:t,r=e.onChange,a=void 0===r?function(e){}:r,i=Object(o["useState"])(!1),c=Object(j["a"])(i,2),u=c[0],s=c[1];return l.a.createElement(l.a.Fragment,null,l.a.createElement(Se["a"],{justify:"space-between"},l.a.createElement(Ne["a"],null,l.a.createElement("h4",{className:"mb-0"},"\u70b9\u51fb\u4e0b\u65b9\u5bf9\u8c61\u8fdb\u884c\u7f16\u8f91")),l.a.createElement(Ne["a"],null,l.a.createElement(O["b"],{size:"large"},l.a.createElement(O["b"],null,l.a.createElement(q["a"],{onChange:function(e){if(e)a([n]);else{var t=Array.isArray(n)?n[0]||{}:n;a(t)}}}),"JSON \u6570\u7ec4"),l.a.createElement(C["a"],{size:"small",type:"primary",onClick:function(){return s(!0)}},"JSON \u5b57\u7b26\u4e32")))),l.a.createElement(Ae.a,{name:!1,src:n,style:{padding:"10px 0",borderRadius:"3px"},collapsed:!0,displayDataTypes:!1,onEdit:function(e){a(e.updated_src)},onDelete:function(e){a(e.updated_src)},onAdd:function(e){a(e.updated_src)},collapseStringsAfterLength:64}),l.a.createElement(R["a"],{centered:!0,footer:null,title:"JSON \u5bf9\u8c61\u5feb\u6377\u8f93\u5165",visible:u,onCancel:function(){return s(!1)}},l.a.createElement(je["a"],{message:"\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u5c06\u88ab\u683c\u5f0f\u5316\u540e\uff0c\u66ff\u6362\u5f53\u524d\u503c"}),l.a.createElement("br",null),l.a.createElement(xe["a"],{onFinish:function(e){var t=e.json;s(!1),a(JSON.parse(t))}},l.a.createElement(xe["a"].Item,{name:"json",label:"JSON \u5b57\u7b26\u4e32",rules:[{required:!0,message:"\u8f93\u5165 JSON \u5b57\u7b26\u4e32"},{validator:function(e,t){try{var n=JSON.parse(t);return"object"!==typeof n?Promise.reject("\u975e\u6cd5\u7684 JSON \u5b57\u7b26\u4e32"):Promise.resolve()}catch(r){return Promise.reject("\u975e\u6cd5\u7684 JSON \u5b57\u7b26\u4e32")}}}]},l.a.createElement(De["a"].TextArea,{autoSize:{minRows:5},placeholder:"\u8f93\u5165\u5408\u6cd5 JSON \u5bf9\u8c61\u5b57\u7b26\u4e32"})),l.a.createElement(xe["a"].Item,null,l.a.createElement("div",{style:{textAlign:"right"}},l.a.createElement(C["a"],{type:"primary",htmlType:"submit"},"\u786e\u8ba4"))))))},Re=function(e){var t=e.value,n=Object(o["useState"])(!1),r=Object(j["a"])(n,2),a=r[0],i=r[1];return"undefined"===typeof t||null===t?l.a.createElement("span",null,"\u7a7a"):l.a.createElement(l.a.Fragment,null,l.a.createElement(O["b"],null,l.a.createElement(C["a"],{type:"link",onClick:function(){return i(!0)}},"\u67e5\u770b")),l.a.createElement(R["a"],{centered:!0,title:"JSON \u5bf9\u8c61",visible:a,onCancel:function(){return i(!1)}},l.a.createElement(Ae.a,{name:!1,src:t,style:{padding:"10px 0",borderRadius:"3px"},collapsed:!0,displayDataTypes:!1,collapseStringsAfterLength:32})))},ke=l.a.lazy((function(){return n.e(34).then(n.bind(null,"6Ws4"))})),Pe=l.a.lazy((function(){return n.e(33).then(n.bind(null,"BWp0"))})),Le=De["a"].TextArea,Fe=Z["a"].Option,Me=I["a"].Text,Ge=function(e){return l.a.createElement(o["Suspense"],{fallback:l.a.createElement(P["a"],null)},l.a.createElement(ke,e))},_e=function(e){return l.a.createElement(o["Suspense"],{fallback:l.a.createElement(P["a"],null)},l.a.createElement(Pe,e))};function Ue(e){var t;switch(e){case"Url":t={type:"url",message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u7f51\u5740"};break;case"Email":t={type:"email",message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1"};break;case"Number":t={type:"number",message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u6570\u5b57"};break;case"Tel":t={pattern:/^\d+$/,message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u7535\u8bdd\u53f7\u7801"};break;default:t=null}return t}var We=function(e){var t=e.isRequired,n=e.displayName,r=e.min,a=e.max,i=e.type,o=[];if(t&&o.push({required:t,message:"".concat(n," \u5b57\u6bb5\u662f\u5fc5\u987b\u8981\u7684")}),r){var l="String"===i||"MultiLineString"===i?"string":"number";o.push({min:r,type:l,message:"string"===l?"\u4e0d\u80fd\u5c0f\u4e8e\u6700\u5c0f\u957f\u5ea6 ".concat(r):"\u4e0d\u80fd\u5c0f\u4e8e\u6700\u5c0f\u503c ".concat(r)})}if(a){var c="String"===i||"MultiLineString"===i?"string":"number";o.push({max:a,type:c,message:"string"===c?"\u4e0d\u80fd\u5927\u4e8e\u6700\u5927\u957f\u5ea6 ".concat(a):"\u4e0d\u80fd\u5927\u4e8e\u6700\u5927\u503c ".concat(a)})}var u=Ue(e.type);return u&&o.push(u),o};function ze(e,t){var n,r=e.name,a=e.type,o=e.min,c=e.max,u=e.enumElements;switch(a){case"String":n=l.a.createElement(De["a"],{type:"text"});break;case"MultiLineString":n=l.a.createElement(Le,null);break;case"Boolean":n=l.a.createElement(q["a"],{checkedChildren:"True",unCheckedChildren:"False"});break;case"Number":n=l.a.createElement(Ie["a"],{style:{width:"100%"},min:o,max:c});break;case"Url":n=l.a.createElement(De["a"],null);break;case"Email":n=l.a.createElement(De["a"],null);break;case"Tel":n=l.a.createElement(De["a"],{style:{width:"100%"}});break;case"Time":case"Date":case"DateTime":n=l.a.createElement(p,{type:a,dateFormatType:e.dateFormatType});break;case"Image":n=l.a.createElement(ye,{type:"image",field:e,resourceLinkType:e.resourceLinkType});break;case"File":case"Media":n=l.a.createElement(ye,{type:"file",field:e,resourceLinkType:e.resourceLinkType});break;case"Enum":n=l.a.createElement(Z["a"],null,null!==u&&void 0!==u&&u.length?null===u||void 0===u?void 0:u.map((function(e,t){return l.a.createElement(Fe,{value:e.value,key:t},e.label)})):l.a.createElement(Fe,{value:"",disabled:!0},"\u7a7a"));break;case"Array":n=l.a.createElement(xe["a"].List,{name:r},(function(e,t){var n=t.add,r=t.remove;return l.a.createElement("div",null,null===e||void 0===e?void 0:e.map((function(e,t){return l.a.createElement(xe["a"].Item,{key:t},l.a.createElement(xe["a"].Item,Object(i["a"])({},e,{noStyle:!0,validateTrigger:["onChange","onBlur"]}),l.a.createElement(De["a"],{style:{width:"60%"}})),l.a.createElement(Ce["a"],{className:"dynamic-delete-button",style:{margin:"0 8px"},onClick:function(){r(e.name)}}))})),l.a.createElement(xe["a"].Item,null,l.a.createElement(C["a"],{type:"dashed",onClick:function(){n()},style:{width:"60%"}},l.a.createElement(we["a"],null)," \u6dfb\u52a0\u5b57\u6bb5")))}));break;case"Markdown":n=l.a.createElement(Ge,{id:t});break;case"RichText":n=l.a.createElement(_e,{id:t});break;case"Connect":n=l.a.createElement(le,{field:e});break;case"Object":n=l.a.createElement(Be,null);break;default:n=l.a.createElement(De["a"],null)}return n}function Ve(e,t){var n,r=We(e),a=e.name,i=e.type,o=e.description,c=e.displayName,u=ze(e,t);switch(i){case"Boolean":n=l.a.createElement(xe["a"].Item,{key:t,name:a,rules:r,label:l.a.createElement(Me,{strong:!0},c),extra:o,valuePropName:"checked"},u);break;default:n=l.a.createElement(xe["a"].Item,{key:t,name:a,rules:r,label:l.a.createElement(Me,{strong:!0},c),extra:o},u)}return n}var He,qe,Je=n("qqnG"),Ye=n("T7iU"),Xe=n.n(Ye),Ke=(n("ePZ7"),n("bRgd")),Ze=n("2BaD"),Qe=n("jN4g"),$e=n("vOnD"),et=I["a"].Text,tt=I["a"].Title,nt=$e["a"].div(He||(He=Object(Je["a"])(["\n max-height: 300px;\n overflow: auto;\n padding-right: 10px;\n"]))),rt=$e["a"].div(qe||(qe=Object(Je["a"])(["\n display: flex;\n position: absolute;\n top: 10px;\n right: 10px;\n z-index: 10;\n color: #fff;\n"]))),at=function(e){var t=e.field,n=e.uri,r=t.mediaType,a=Object(be["a"])({loading:!0,playlist:[]}),i=Object(j["a"])(a,2),c=i[0],u=c.loading,s=c.playlist,p=i[1];return Object(o["useEffect"])((function(){if(null!==n&&void 0!==n&&n.length){var e=Array.isArray(n)?n:[n];Object(d["L"])(e[0])?Object(d["b"])(e).then((function(e){p({playlist:e.map((function(e){return e.tempFileURL}))})})).catch((function(e){console.log(e),w["default"].error("\u83b7\u53d6\u8d44\u6e90\u94fe\u63a5\u5931\u8d25 ".concat(e.message))})).finally((function(){p({loading:!1})})):p({playlist:e,loading:!1})}else p({loading:!1})}),[]),u?l.a.createElement(P["a"],null):n?l.a.createElement("div",{className:"relative"},l.a.createElement(it,{playlist:s,mediaType:r})):l.a.createElement("span",null,"-")},it=function(e){var t=e.playlist,n=e.mediaType,r=void 0===n?"video":n,a=(null===t||void 0===t?void 0:t.length)>1,i=Object(be["a"])({player:null,visible:!1,currentUrl:t[0]}),c=Object(j["a"])(i,2),u=c[0],s=u.currentUrl,p=u.player,m=u.visible,f=c[1],g=function(){null===p||void 0===p||p.stop(),f({visible:!1})},v=function(e){f({currentUrl:e})},b=Object(d["H"])(s);return Object(o["useEffect"])((function(){if(m)if(p)p.source={type:"video"===r?"video":"audio",sources:[{src:s}]},p.on("ready",(function(){null===p||void 0===p||p.play()}));else{var e="video"===r?"#v-".concat(b):"#a-".concat(b),t=new Xe.a(e);f({player:t})}}),[m,s]),l.a.createElement(l.a.Fragment,null,l.a.createElement(y["a"],{title:"\u64ad\u653e"},l.a.createElement(Ke["a"],{className:"text-3xl",onClick:function(){return f({visible:!0})}})),l.a.createElement(R["a"],{width:720,footer:null,closable:!1,visible:m,bodyStyle:{padding:0},onCancel:g},"music"===r?l.a.createElement("div",null,l.a.createElement("div",{className:"w-full flex"},l.a.createElement("div",{className:"flex-auto"},l.a.createElement("audio",{id:"a-".concat(b),controls:!0},l.a.createElement("source",{src:s}))),l.a.createElement("div",{className:"flex items-center pr-5"},l.a.createElement(y["a"],{title:"\u5173\u95ed"},l.a.createElement(Ze["a"],{className:"text-xl",onClick:g})))),a&&l.a.createElement(ot,{playlist:t,current:s,onChange:v})):l.a.createElement("div",{className:"relative"},l.a.createElement("video",{id:"v-".concat(b),controls:!0,style:{width:"680px"}},l.a.createElement("source",{src:s})),a&&l.a.createElement(ot,{playlist:t,current:s,onChange:v}),l.a.createElement(rt,null,l.a.createElement(y["a"],{title:"\u5173\u95ed"},l.a.createElement(Qe["a"],{className:"text-3xl",onClick:g}))))))},ot=function(e){var t=e.playlist,n=e.current,r=e.onChange;return l.a.createElement("div",{className:"p-5"},l.a.createElement(tt,{level:4},"\u64ad\u653e\u5217\u8868"),l.a.createElement(nt,null,t.map((function(e,t){return l.a.createElement("div",{className:"flex justify-between my-2",key:t},l.a.createElement(et,{ellipsis:!0,style:{maxWidth:"500px",color:n===e?"#0052d9":""}},Object(d["s"])(e)),l.a.createElement("div",null,l.a.createElement(y["a"],{title:"\u64ad\u653e"},l.a.createElement(Ke["a"],{className:"text-2xl",onClick:function(){return r(e)}}))))}))))},lt=I["a"].Text;function ct(e){var t=e.name,n=e.type,r=e.displayName,a=e.copyable,i=Object(d["c"])(e);switch(n){case"String":return function(e,n,r,o){return l.a.createElement(y["a"],{title:e},l.a.createElement(lt,{ellipsis:!0,style:{width:i},onClick:function(){a&&(Object(d["e"])(n[t]),w["default"].success("\u590d\u5236 ".concat(t," \u6210\u529f\uff01")))}},e))};case"Text":case"MultiLineString":return function(e,t,n,r){return l.a.createElement(y["a"],{title:e},l.a.createElement(lt,{ellipsis:!0,style:{width:i}},e))};case"Boolean":return function(e,n,r,a){return l.a.createElement(lt,null,n[t]?"True":"False")};case"Number":return function(e,n,r,a){var i=Object(d["F"])(n[t]);return l.a.createElement(lt,null,i," ")};case"Url":return function(e,n,r,a){return l.a.createElement(I["a"].Link,{href:n[t],target:"_blank"},e)};case"Email":return function(e,t,n,r){return l.a.createElement(lt,null,e)};case"Tel":return function(e,t,n,r){return l.a.createElement(lt,null,e)};case"Time":case"Date":case"DateTime":return function(r,a,i,o){var c="undefined"===typeof a[t]?"-":Object(d["j"])(a[t],e.dateFormatType,n);return l.a.createElement(lt,null,c)};case"Image":return function(e,n,r,a){return l.a.createElement(z,{urls:n[t]})};case"File":return function(e,n,a,i){return l.a.createElement(B,{urls:n[t],displayName:r})};case"Media":return function(n,r,a,i){return l.a.createElement(at,{uri:r[t],field:e})};case"Array":return function(e,n,r,a){var i;return n[t]?l.a.createElement(O["b"],{direction:"vertical"},null===(i=n[t])||void 0===i?void 0:i.map((function(e,t){return l.a.createElement(K["a"],{key:t},e)}))):e};case"Markdown":return function(e,t,n,r){return l.a.createElement(lt,{ellipsis:!0,style:{width:i}},e)};case"RichText":return function(e,t,n,r){return l.a.createElement(lt,{ellipsis:!0,style:{width:i}},e)};case"Connect":return function(n,r,a,i){return l.a.createElement(oe,{value:r[t],field:e})};case"Object":return function(e,n,r,a){return l.a.createElement(Re,{value:n[t]})};default:return function(e,t,n,r){return e}}}},"7JMM":function(e,t,n){"use strict";n.r(t);n("B9cy");var r=n("Ol7k"),a=(n("DYRE"),n("zeV3")),i=(n("+L6B"),n("2/Rp")),o=n("tJVT"),l=n("q1tI"),c=n.n(l),u=n("1reR"),s=n("nhC9"),d=n("xvlK"),p=n("4KAj"),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888.3 757.4h-53.8c-4.2 0-7.7 3.5-7.7 7.7v61.8H197.1V197.1h629.8v61.8c0 4.2 3.5 7.7 7.7 7.7h53.8c4.2 0 7.7-3.4 7.7-7.7V158.7c0-17-13.7-30.7-30.7-30.7H158.7c-17 0-30.7 13.7-30.7 30.7v706.6c0 17 13.7 30.7 30.7 30.7h706.6c17 0 30.7-13.7 30.7-30.7V765.1c0-4.3-3.5-7.7-7.7-7.7zM902 476H588v-76c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-76h314c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"import",theme:"outlined"},f=m,g=n("6VBw"),v=function(e,t){return l["createElement"](g["a"],Object.assign({},e,{ref:t,icon:f}))};v.displayName="ImportOutlined";var b=l["forwardRef"](v),h=n("tMyG"),y=n("0lfv"),E=(n("fOrg"),n("+KLJ")),O=(n("2qtc"),n("kLXV")),x=(n("miYZ"),n("tsqr")),I=n("9og8"),D=(n("sRBo"),n("kaz8")),C=(n("DZo9"),n("8z0m")),w=(n("tU7J"),n("wFql")),j=n("WmNS"),S=n.n(j),N=n("LtfV"),T=n("Wk8H"),A=w["a"].Title,B=w["a"].Paragraph,R=C["a"].Dragger,k=D["a"].Group,P=function(e){var t=e.visible,n=e.onClose,r=Object(u["c"])("schema"),i=r.state.schemas,s=Object(l["useState"])(!1),d=Object(o["a"])(s,2),p=d[0],m=d[1],f=Object(l["useState"])(!1),g=Object(o["a"])(f,2),v=g[0],b=g[1],h=Object(l["useState"])([]),E=Object(o["a"])(h,2),C=E[0],w=E[1],j=Object(l["useMemo"])((function(){return null!==i&&void 0!==i&&i.length?null===i||void 0===i?void 0:i.map((function(e){var t=e.displayName,n=e.collectionName;return{label:t,value:n}})):[]}),[i]),N=Object(l["useCallback"])((function(e){var t=e.target.checked;b(t),m(!1),w(t?j.map((function(e){return e.value})):[])}),[i]),T=Object(l["useCallback"])((function(e){w(e),b(e.length===j.length),m(!!e.length&&e.length<j.length)}),[i]);return c.a.createElement(O["a"],{centered:!0,visible:t,title:"\u9009\u62e9\u5bfc\u51fa\u9700\u8981\u5bfc\u51fa\u7684\u6a21\u578b",onOk:Object(I["a"])(S.a.mark((function e(){var t,r;return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=C.map((function(e){var t=i.find((function(t){return t.collectionName===e})),n=t.fields,r=t.collectionName,a=t.displayName,o=t.description,l=t.operations,c=t._id;return{fields:n,collectionName:r,displayName:a,description:o,operations:l,_id:c}})),r="schema-export-".concat(Object(y["O"])(8),".json"),Object(y["R"])(JSON.stringify(t),r),x["default"].success("\u5bfc\u51fa\u6a21\u578b\u6210\u529f\uff01"),n();case 5:case"end":return e.stop()}}),e)}))),okButtonProps:{disabled:!(null!==C&&void 0!==C&&C.length)},onCancel:function(){return n()}},i.length?c.a.createElement(a["b"],{direction:"vertical"},c.a.createElement(D["a"],{indeterminate:p,onChange:N,checked:v},"\u5168\u9009"),c.a.createElement(k,{options:j,value:C,onChange:T})):c.a.createElement("span",null,"\u65e0\u53ef\u5bfc\u51fa\u6a21\u578b"))},L=function(e){var t=e.visible,n=e.onClose,r=Object(y["z"])(),a=Object(u["c"])("schema"),i=Object(u["c"])("content"),s=a.state.schemas,d=Object(l["useState"])(!1),p=Object(o["a"])(d,2),m=p[0],f=p[1],g=Object(l["useState"])([]),v=Object(o["a"])(g,2),b=v[0],h=v[1],D=Object(l["useState"])([]),C=Object(o["a"])(D,2),w=C[0],j=C[1],k=Object(l["useCallback"])(function(){var e=Object(I["a"])(S.a.mark((function e(t){var n,r,a,i,o;return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(y["P"])(t);case 2:if(n=e.sent,n){e.next=6;break}return x["default"].error("\u5bfc\u5165\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a\uff01"),e.abrupt("return");case 6:if(e.prev=6,r=JSON.parse(n),a=r.every((function(e){var t;return(null===(t=e.fields)||void 0===t?void 0:t.length)&&e.displayName&&e.collectionName})),a){e.next=12;break}return x["default"].error("\u5bfc\u5165\u6570\u636e\u683c\u5f0f\u9519\u8bef"),e.abrupt("return");case 12:if(i=r.some((function(e){return s.find((function(t){return t.collectionName===e.collectionName}))})),!i){e.next=16;break}return x["default"].error("\u5bfc\u5165\u6a21\u578b\u96c6\u5408\u540d\u548c\u5df2\u6709\u6a21\u578b\u96c6\u5408\u540d\u5b58\u5728\u51b2\u7a81\uff0c\u65e0\u6cd5\u5bfc\u5165\uff0c\u8bf7\u4fee\u6539\u51b2\u7a81\u540e\u91cd\u65b0\u5bfc\u5165\uff01"),e.abrupt("return");case 16:o=r.map((function(e){return{uid:t.uid,schema:e}})),j(w.concat(o)),e.next=24;break;case 20:return e.prev=20,e.t0=e["catch"](6),x["default"].error("\u5bfc\u5165\u6570\u636e\u683c\u5f0f\u9519\u8bef\uff0c\u975e\u6cd5\u7684 JSON \u5b57\u7b26\u4e32"),e.abrupt("return",!1);case 24:return e.abrupt("return",!0);case 25:case"end":return e.stop()}}),e,null,[[6,20]])})));return function(t){return e.apply(this,arguments)}}(),[s,w]),P=Object(l["useCallback"])(Object(I["a"])(S.a.mark((function e(){var t;return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,t=w.map(function(){var e=Object(I["a"])(S.a.mark((function e(t){return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(T["a"])(r,t.schema);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=5,Promise.all(t);case 5:x["default"].success("\u5bfc\u5165\u6a21\u578b\u6210\u529f\uff01"),a.mr.getSchemas(r),i.mr.getContentSchemas(r),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](1),x["default"].error("\u5bfc\u5165\u6a21\u578b\u5931\u8d25");case 13:return e.prev=13,n(),e.finish(13);case 16:f(!1);case 17:case"end":return e.stop()}}),e,null,[[1,10,13,16]])}))),[w,r]);return c.a.createElement(O["a"],{centered:!0,title:"\u5bfc\u5165\u6a21\u578b",closable:!0,visible:t,onOk:P,onCancel:function(){return n()},okButtonProps:{loading:m}},c.a.createElement(A,{level:4},"\u6ce8\u610f\u4e8b\u9879"),c.a.createElement(E["a"],{message:"\u4ec5\u652f\u6301\u5bfc\u5165 JSON \u683c\u5f0f\u7684\u6570\u636e"}),c.a.createElement("br",null),c.a.createElement(R,{accept:".json",listType:"text",fileList:b,onChange:function(e){var t=e.file,n=e.fileList;if("removed"===t.status)return h(n),void j(w.filter((function(e){return e.uid!==t.uid})));if(t instanceof File){var r=b.find((function(e){return e.name===t.name}));if(r)return void x["default"].error("\u5df2\u6dfb\u52a0\u6587\u4ef6 ".concat(t.name,"\uff0c\u8bf7\u52ff\u91cd\u590d\u6dfb\u52a0"));k(t).then((function(e){e&&h(n)})).catch((function(e){x["default"].error(e.message)}))}},beforeUpload:function(){return!1}},c.a.createElement("p",{className:"ant-upload-drag-icon"},c.a.createElement(N["a"],null)),c.a.createElement("p",{className:"ant-upload-text"},"\u70b9\u51fb\u6216\u62d6\u62fd\u4e0a\u4f20\u6587\u4ef6\uff0c\u5f00\u59cb\u5bfc\u5165\u6570\u636e")),c.a.createElement("br",null),w.length?c.a.createElement(c.a.Fragment,null,c.a.createElement(B,null,"\u5171\u8ba1 ",w.length," \u4e2a\u6a21\u578b"),w.map((function(e,t){var n;return c.a.createElement(B,{key:t},"\u6a21\u578b\u540d\u79f0\uff1a",null===e||void 0===e?void 0:e.schema.displayName,"\uff0c\u6570\u636e\u5e93\u540d\uff1a",null===e||void 0===e?void 0:e.schema.collectionName,"\uff0c\u5171\u8ba1"," ",null===e||void 0===e||null===(n=e.schema.fields)||void 0===n?void 0:n.length," \u4e2a\u5b57\u6bb5")})),c.a.createElement(E["a"],{message:"\u8bf7\u786e\u8ba4\u5bfc\u5165\u6a21\u578b\u96c6\u5408\u540d\u4e0e\u5df2\u6709\u6a21\u578b\u96c6\u5408\u540d\u4e0d\u5b58\u5728\u51b2\u7a81\uff0c\u5426\u5219\u4f1a\u5bfc\u5165\u5931\u8d25\uff01",type:"warning"})):null)},F=(n("R9oj"),n("ECub")),M=(n("T2oS"),n("W9HT")),G=(n("14J3"),n("BMrR")),_=(n("jCWc"),n("kPKH")),U=n("k1fw"),W=(n("5Dmo"),n("3S7+")),z={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:t}},{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z",fill:e}}]}},name:"edit",theme:"twotone"},V=z,H=function(e,t){return l["createElement"](g["a"],Object.assign({},e,{ref:t,icon:V}))};H.displayName="EditTwoTone";var q=l["forwardRef"](H),J=n("BeEn"),Y=n("lfch"),X={fontSize:"16px"},K=function(){var e=Object(u["c"])("schema"),t=e.state.currentSchema,n=Object(l["useState"])(!1),r=Object(o["a"])(n,2),i=r[0],s=r[1],d=Object(l["useCallback"])((function(){var e=O["a"].confirm({centered:!0,title:"\u786e\u8ba4\u5bfc\u51fa\u6a21\u578b\u6570\u636e\uff1f",onCancel:function(){e.destroy()},onOk:function(){var e="schema-".concat(t.collectionName,"-").concat(Object(y["O"])(8),".json"),n=t.fields,r=t.collectionName,a=t.displayName;Object(y["R"])(JSON.stringify([{fields:n,collectionName:r,displayName:a}]),e),x["default"].success("\u6a21\u578b\u5bfc\u51fa\u6210\u529f\uff01")}})}),[t]),m=Object(l["useCallback"])((function(){e.mr.copySchema()}),[t]);return c.a.createElement(c.a.Fragment,null,c.a.createElement(a["b"],{size:"middle"},c.a.createElement(W["a"],{title:"\u7f16\u8f91\u6a21\u578b"},c.a.createElement(q,{style:X,onClick:function(){e.mr.editSchema()}})),c.a.createElement(W["a"],{title:"\u5220\u9664\u6a21\u578b"},c.a.createElement(J["a"],{style:X,onClick:function(){return s(!0)}})),c.a.createElement(W["a"],{title:"\u5bfc\u51fa\u6a21\u578b"},c.a.createElement(p["a"],{style:Object(U["a"])(Object(U["a"])({},X),{},{color:"#0052d9"}),onClick:d})),c.a.createElement(W["a"],{title:"\u590d\u5236\u5f53\u524d\u6a21\u578b\u4e3a\u65b0\u7684\u6a21\u578b"},c.a.createElement(Y["a"],{style:Object(U["a"])(Object(U["a"])({},X),{},{color:"#0052d9"}),onClick:m}))),c.a.createElement(Z,{visible:i,onClose:function(){return s(!1)}}))},Z=function(e){var t=e.visible,n=e.onClose,r=Object(y["z"])(),i=Object(u["c"])("schema"),s=Object(u["c"])("content"),d=i.state.currentSchema,p=Object(l["useState"])(!1),m=Object(o["a"])(p,2),f=m[0],g=m[1],v=Object(l["useState"])(!1),b=Object(o["a"])(v,2),h=b[0],E=b[1];return Object(l["useEffect"])((function(){E(!1)}),[t]),c.a.createElement(O["a"],{centered:!0,title:"\u5220\u9664\u5185\u5bb9\u6a21\u578b",visible:t,onCancel:function(){return n()},okButtonProps:{loading:f},onOk:Object(I["a"])(S.a.mark((function e(){return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,g(!0),e.next=4,Object(T["b"])(r,null===d||void 0===d?void 0:d._id,h);case 4:x["default"].success("\u5220\u9664\u5185\u5bb9\u6a21\u578b\u6210\u529f\uff01"),i.dispatch("getSchemas",r),s.dispatch("getContentSchemas",r),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),x["default"].error("\u5220\u9664\u5185\u5bb9\u6a21\u578b\u5931\u8d25\uff01");case 12:return e.prev=12,n(),g(!1),e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[0,9,12,16]])})))},c.a.createElement(a["b"],{direction:"vertical"},c.a.createElement(w["a"].Text,null,"\u786e\u8ba4\u5220\u3010",null===d||void 0===d?void 0:d.displayName," (",null===d||void 0===d?void 0:d.collectionName,")\u3011\u5185\u5bb9\u6a21\u578b\uff1f"),c.a.createElement(D["a"],{checked:h,onChange:function(e){return E(e.target.checked)}},"\u540c\u65f6\u5220\u9664\u6570\u636e\u8868\uff08\u8b66\u544a\uff1a\u5220\u9664\u540e\u6570\u636e\u65e0\u6cd5\u627e\u56de\uff09")))},Q=K,$=(n("OaEy"),n("2fM7")),ee=(n("BoS7"),n("Sdc0")),te=(n("y8nQ"),n("Vl3Y")),ne=n("oBTY"),re=n("jrin"),ae=(n("5NDa"),n("5rEg")),ie=n("9kvl"),oe=n("8+cs"),le=(n("giR+"),n("fyUT")),ce=n("2Igm"),ue=n("wlus"),se=$["a"].Option,de=w["a"].Text,pe=function(e){var t=e.value,n=e.onChange,r=t;return"object"===typeof t&&(r=JSON.stringify(t)),c.a.createElement(ae["a"].TextArea,{value:r,placeholder:"\u8bf7\u8f93\u5165 JSON \u5b57\u7b26\u4e32",onChange:n})},me=function(e,t){var n=t.dateFormatType,r=t.enumElementType;switch(e){case"Number":return c.a.createElement(le["a"],{style:{width:"60%"},placeholder:"\u6b64\u503c\u7684\u9ed8\u8ba4\u503c"});case"Boolean":return c.a.createElement(ce["g"],null);case"Date":case"DateTime":return c.a.createElement(ce["c"],{style:{width:"60%"},type:e,dateFormatType:n});case"Object":return c.a.createElement(pe,null);case"Enum":return"number"===r?c.a.createElement(le["a"],{style:{width:"60%"},placeholder:"\u6b64\u503c\u7684\u9ed8\u8ba4\u503c"}):c.a.createElement(ae["a"],{placeholder:"\u6b64\u503c\u7684\u9ed8\u8ba4\u503c"});default:return c.a.createElement(ae["a"],{placeholder:"\u6b64\u503c\u7684\u9ed8\u8ba4\u503c"})}};function fe(e,t){var n,r,o=t.schemas,l=t.connectSchema,u=t.selectedField,s=t.fieldAction,p=t.formValue;switch(e){case"String":case"MultiLineString":case"Number":if("_id"===u.name)return;return c.a.createElement(te["a"].Item,{style:{marginBottom:0}},c.a.createElement(G["a"],{gutter:[24,0]},c.a.createElement(_["a"],{flex:"1 1 auto"},c.a.createElement(te["a"].Item,{label:"Number"===u.type?"\u6700\u5c0f\u503c":"\u6700\u5c0f\u957f\u5ea6",name:"min"},c.a.createElement(le["a"],{style:{width:"100%"},placeholder:"Number"===u.type?"\u6700\u5c0f\u503c\uff0c\u5982 1":"\u6700\u5c0f\u957f\u5ea6\uff0c\u5982 1"}))),c.a.createElement(_["a"],{flex:"1 1 auto"},c.a.createElement(te["a"].Item,{label:"Number"===u.type?"\u6700\u5927\u503c":"\u6700\u5927\u957f\u5ea6",name:"max"},c.a.createElement(le["a"],{style:{width:"100%"},placeholder:"Number"===u.type?"\u6700\u5927\u503c\uff0c\u5982 1000":"\u6700\u5927\u957f\u5ea6\uff0c\u5982 1000"})))));case"Date":case"DateTime":return c.a.createElement(te["a"].Item,{label:"\u65f6\u95f4\u5b58\u50a8\u683c\u5f0f",name:"dateFormatType",validateTrigger:["onChange"]},c.a.createElement($["a"],{placeholder:"\u65f6\u95f4\u5b58\u50a8\u683c\u5f0f"},c.a.createElement(se,{value:"timestamp-ms"},"Unix Timestamp \u6beb\u79d2"),c.a.createElement(se,{value:"timestamp-s"},"Unix Timestamp \u79d2"),c.a.createElement(se,{value:"date"},"Date \u5bf9\u8c61"),c.a.createElement(se,{value:"string"},"\u65f6\u95f4\u5b57\u7b26\u4e32")));case"Enum":return c.a.createElement(c.a.Fragment,null,c.a.createElement(te["a"].Item,{label:"\u679a\u4e3e\u5143\u7d20\u7c7b\u578b",name:"enumElementType",validateTrigger:["onChange"]},c.a.createElement($["a"],{placeholder:"\u5143\u7d20\u503c\u7c7b\u578b"},c.a.createElement(se,{value:"string"},"\u5b57\u7b26\u4e32"),c.a.createElement(se,{value:"number"},"\u6570\u5b57"))),c.a.createElement(te["a"].Item,{label:"\u679a\u4e3e\u5143\u7d20"},c.a.createElement(te["a"].List,{name:"enumElements"},(function(e,t){var n=t.add,r=t.remove;return c.a.createElement("div",null,null===e||void 0===e?void 0:e.map((function(e,t){return c.a.createElement(ge,{key:t,field:e,onRemove:r,formValue:p})})),c.a.createElement(te["a"].Item,null,c.a.createElement(i["a"],{type:"dashed",onClick:function(){n()},style:{width:"60%"}},c.a.createElement(d["a"],null)," \u6dfb\u52a0\u679a\u4e3e\u5143\u7d20")))}))));case"File":case"Image":return c.a.createElement(c.a.Fragment,null,c.a.createElement(te["a"].Item,{label:"\u8d44\u6e90\u94fe\u63a5\u683c\u5f0f",name:"resourceLinkType",validateTrigger:["onChange"]},c.a.createElement($["a"],{placeholder:"\u8d44\u6e90\u94fe\u63a5\u683c\u5f0f"},c.a.createElement(se,{value:"fileId"},"FileId"),c.a.createElement(se,{value:"https"},"HTTPS"))),c.a.createElement(te["a"].Item,null,c.a.createElement("div",{className:"form-item"},c.a.createElement(te["a"].Item,{style:{marginBottom:0}},c.a.createElement(de,null,"\u5141\u8bb8\u591a\u4e2a\u5185\u5bb9"),c.a.createElement(te["a"].Item,{name:"isMultiple",valuePropName:"checked",style:{marginBottom:0}},c.a.createElement(ee["a"],null)),c.a.createElement(de,{type:"secondary"},"\u5728\u521b\u5efa\u5185\u5bb9\u65f6\uff0c\u5141\u8bb8\u521b\u5efa\u591a\u4e2a\u5185\u5bb9\uff0c\u6570\u636e\u5c06\u4ee5\u6570\u7ec4\u683c\u5f0f\u5b58\u50a8")))));case"Media":return c.a.createElement(c.a.Fragment,null,c.a.createElement(te["a"].Item,{label:"\u8d44\u6e90\u94fe\u63a5\u683c\u5f0f",name:"resourceLinkType",validateTrigger:["onChange"]},c.a.createElement($["a"],{placeholder:"\u8d44\u6e90\u94fe\u63a5\u683c\u5f0f"},c.a.createElement(se,{value:"fileId"},"FileId"),c.a.createElement(se,{value:"https"},"HTTPS"))),c.a.createElement(te["a"].Item,null,c.a.createElement("div",{className:"form-item"},c.a.createElement(te["a"].Item,{style:{marginBottom:0}},c.a.createElement(de,null,"\u5141\u8bb8\u591a\u4e2a\u5185\u5bb9"),c.a.createElement(te["a"].Item,{name:"isMultiple",valuePropName:"checked",style:{marginBottom:0}},c.a.createElement(ee["a"],null)),c.a.createElement(de,{type:"secondary"},"\u5728\u521b\u5efa\u5185\u5bb9\u65f6\uff0c\u5141\u8bb8\u521b\u5efa\u591a\u4e2a\u5185\u5bb9\uff0c\u6570\u636e\u5c06\u4ee5\u6570\u7ec4\u683c\u5f0f\u5b58\u50a8")))),c.a.createElement(te["a"].Item,{label:"\u5a92\u4f53\u7c7b\u578b",name:"mediaType",validateTrigger:["onChange"]},c.a.createElement($["a"],{placeholder:"\u5a92\u4f53\u7c7b\u578b"},c.a.createElement(se,{value:"video"},"\u89c6\u9891"),c.a.createElement(se,{value:"music"},"\u97f3\u9891"))));case"Connect":return c.a.createElement(c.a.Fragment,null,c.a.createElement(te["a"].Item,{label:"\u5173\u8054"},c.a.createElement(a["b"],null,c.a.createElement(te["a"].Item,{label:"\u5173\u8054\u5185\u5bb9",name:"connectResource",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5173\u8054\u5185\u5bb9\uff01"}]},c.a.createElement($["a"],{style:{width:200}},null===o||void 0===o?void 0:o.map((function(e){return c.a.createElement(se,{value:e._id,key:e._id},e.displayName)})))),c.a.createElement(te["a"].Item,{label:"\u5c55\u793a\u5b57\u6bb5",name:"connectField",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5173\u8054\u9700\u8981\u5c55\u793a\u7684\u5b57\u6bb5\uff01"}]},c.a.createElement($["a"],{style:{width:200},placeholder:"\u5173\u8054\u5b57\u6bb5"},null!==l&&void 0!==l&&null!==(n=l.fields)&&void 0!==n&&n.length?null===(r=l.fields)||void 0===r?void 0:r.map((function(e){return c.a.createElement(se,{value:e.name,key:e.name},e.displayName)})):c.a.createElement(se,{value:"",key:u.name,disabled:!0},"\u7a7a"))))),c.a.createElement(te["a"].Item,null,c.a.createElement("div",{className:"form-item"},c.a.createElement(te["a"].Item,{name:"connectMany",valuePropName:"checked",style:{marginBottom:0}},c.a.createElement(ee["a"],{disabled:"edit"===s})),c.a.createElement(te["a"].Item,{style:{marginBottom:0}},c.a.createElement("span",null,"\u662f\u5426\u5173\u8054\u591a\u9879\uff08\u652f\u6301\u9009\u62e9\u591a\u4e2a\u5173\u8054\u6587\u6863\uff09"),"edit"===s&&c.a.createElement(c.a.Fragment,null,c.a.createElement("br",null),c.a.createElement(de,{type:"warning"},"\u5173\u8054\u591a\u9879\u4e0e\u5173\u8054\u5355\u9879\u65e0\u6cd5\u8f6c\u6362"))))));default:return""}}var ge=function(e){var t=e.field,n=e.formValue,r=e.onRemove,a=(null===n||void 0===n?void 0:n.enumElementType)||"string";return c.a.createElement(te["a"].Item,null,c.a.createElement(te["a"].Item,{noStyle:!0,name:[t.name,"label"],validateTrigger:["onChange","onBlur"]},c.a.createElement(ae["a"],{placeholder:"\u679a\u4e3e\u5143\u7d20\u5c55\u793a\u522b\u540d\uff0c\u5982 \u201c\u5df2\u53d1\u5e03\u201d",style:{width:"45%"}})),"number"===a&&c.a.createElement(te["a"].Item,{noStyle:!0,name:[t.name,"value"],validateTrigger:["onChange","onBlur"]},c.a.createElement(le["a"],{placeholder:"\u679a\u4e3e\u5143\u7d20\u503c\uff0c\u5982 100",style:{width:"45%",marginLeft:"2%"}})),"string"===a&&c.a.createElement(te["a"].Item,{noStyle:!0,name:[t.name,"value"],validateTrigger:["onChange","onBlur"]},c.a.createElement(ae["a"],{placeholder:"\u679a\u4e3e\u5143\u7d20\u503c\uff0c\u5982 published",style:{width:"45%",marginLeft:"2%"}})),c.a.createElement(ue["a"],{className:"dynamic-delete-button",style:{margin:"0 0 0 15px"},onClick:function(){r(t.name)}}))},ve=ae["a"].TextArea,be=w["a"].Text,he=["File","Image","Array","Connect"],ye=["_status"],Ee=function(e){var t,n=e.visible,r=e.onClose,s=Object(y["z"])(),d=Object(u["c"])("schema"),p=Object(u["c"])("content"),m=Object(l["useState"])(),f=Object(o["a"])(m,2),g=f[0],v=f[1],b=Object(l["useState"])(),h=Object(o["a"])(b,2),D=h[0],C=h[1],w=d.state,j=w.currentSchema,N=w.schemas,A=w.fieldAction,B=w.selectedField,R=w.selectedFieldIndex,k=Object(ie["k"])(function(){var e=Object(I["a"])(S.a.mark((function e(t){var n,a,i,o,l,c,u,m;return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=Object(y["B"])(j),a=n.findIndex((function(e){return e.name===t.name})),i=a>-1?n[a]:null,!i||"create"!==A&&("edit"!==A||i.id===t.id||a===R)){e.next=5;break}throw new Error("\u5df2\u5b58\u5728\u540c\u540d\u5b57\u6bb5 ".concat(t.name,"\uff0c\u8bf7\u52ff\u91cd\u590d\u521b\u5efa"));case 5:return o=Object.keys(t).filter((function(e){return"undefined"!==typeof t[e]})).reduce((function(e,n){return Object(U["a"])(Object(U["a"])({},e),{},Object(re["a"])({},n,t[n]))}),{}),l=(null===j||void 0===j?void 0:j.fields)||[],"create"===A&&(l.push(Object(U["a"])(Object(U["a"])({},o),{},{order:l.length,type:B.type,id:Object(y["O"])(32)})),c=Object(y["x"])(j),l.push.apply(l,Object(ne["a"])(c))),"edit"===A&&(u=l.findIndex((function(e){return e.id===(null===B||void 0===B?void 0:B.id)||e.name===(null===B||void 0===B?void 0:B.name)})),m=Object(U["a"])(Object(U["a"])({},B),o),u>-1?l.splice(u,1,m):l.push(m)),e.next=11,Object(T["d"])(s,(null===j||void 0===j?void 0:j._id)||"",{fields:l});case 11:d.mr.getSchemas(s),p.mr.getContentSchemas(s),r();case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{manual:!0,onError:function(e){return x["default"].error("create"===A?"\u6dfb\u52a0\u5b57\u6bb5\u5931\u8d25\uff1a".concat(e.message):"\u66f4\u65b0\u5b57\u6bb5\u5931\u8d25:".concat(e.message))},onSuccess:function(){return x["default"].success("create"===A?"\u6dfb\u52a0\u5b57\u6bb5\u6210\u529f":"\u66f4\u65b0\u5b57\u6bb5\u6210\u529f")}}),P=k.run,L=k.loading,F=null===(t=oe["b"].find((function(e){return e.type===B.type})))||void 0===t?void 0:t.name,M="create"===A?"\u6dfb\u52a0\u3010".concat(null===B||void 0===B?void 0:B.name,"\u3011\u5b57\u6bb5"):c.a.createElement(a["b"],null,c.a.createElement(be,null,"\u7f16\u8f91\u3010",null===B||void 0===B?void 0:B.displayName,"\u3011"),c.a.createElement(be,{type:"secondary"},"#",F));Object(l["useEffect"])((function(){if(null!==B&&void 0!==B&&B.connectResource){var e=N.find((function(e){return e._id===B.connectResource}));C(e)}B&&v(B)}),[B]);var W=ye.includes(null===g||void 0===g?void 0:g.name),z=fe(null===B||void 0===B?void 0:B.type,{schemas:N,connectSchema:D,selectedField:B,fieldAction:A,formValue:g}),V=Object(l["useMemo"])((function(){return xe(A,B)}),[B]);return c.a.createElement(O["a"],{centered:!0,destroyOnClose:!0,width:700,footer:null,visible:n,title:M,maskClosable:!1,onOk:function(){return r()},onCancel:function(){return r()}},"create"===A&&(null===B||void 0===B?void 0:B.description)&&c.a.createElement(E["a"],{type:"info",message:null===B||void 0===B?void 0:B.description}),c.a.createElement("br",null),c.a.createElement(te["a"],{layout:"vertical",labelCol:{span:6},initialValues:V,onValuesChange:function(e,t){if(e.connectResource){var n=N.find((function(e){return e._id===t.connectResource}));C(n)}v(t)},onFinish:function(e){if("Object"===(null===B||void 0===B?void 0:B.type))try{e.defaultValue=JSON.parse(e.defaultValue)}catch(mt){}e.dateFormatType&&e.defaultValue&&(e.defaultValue=Object(y["k"])(e.defaultValue,e.dateFormatType)),P(e)}},c.a.createElement(te["a"].Item,{label:"\u5c55\u793a\u540d\u79f0",name:"displayName",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5c55\u793a\u540d\u79f0\uff01"}]},c.a.createElement(ae["a"],{placeholder:"\u5c55\u793a\u540d\u79f0\uff0c\u5982\u6587\u7ae0\u6807\u9898",disabled:B.isSystem})),c.a.createElement(te["a"].Item,{label:"\u6570\u636e\u5e93\u5b57\u6bb5\u540d",name:"name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u5e93\u540d\u79f0\uff01"},{message:"\u5b57\u6bb5\u540d\u53ea\u80fd\u4f7f\u7528\u82f1\u6587\u5b57\u6bcd\u3001\u6570\u5b57\u3001-\u3001_ \u7b49\u7b26\u53f7",pattern:/^[a-z0-9A-Z_-]+$/}]},c.a.createElement(ae["a"],{placeholder:"\u6570\u636e\u5e93\u5b57\u6bb5\u540d\uff0c\u5982 title",disabled:B.isSystem})),/^_/.test(null===g||void 0===g?void 0:g.name)&&!B.isSystem&&c.a.createElement(E["a"],{type:"warning",message:"\u7cfb\u7edf\u4f1a\u4f7f\u7528 _ \u5f00\u5934\u7684\u5355\u8bcd\u4f5c\u4e3a\u7cfb\u7edf\u5b57\u6bb5\u540d\uff0c\u4e3a\u4e86\u907f\u514d\u548c\u7cfb\u7edf\u5b57\u6bb5\u51b2\u7a81\uff0c\u5efa\u8bae\u60a8\u4f7f\u7528\u5176\u4ed6\u547d\u540d\u89c4\u5219"}),W&&!B.isSystem&&c.a.createElement(E["a"],{type:"error",className:"mt-2 mb-2",message:"".concat(g.name," \u662f\u7cfb\u7edf\u4fdd\u7559\u5b57\u6bb5\uff0c\u8bf7\u4f7f\u7528\u5176\u4ed6\u540d\u79f0")}),c.a.createElement(te["a"].Item,{label:"\u63cf\u8ff0",name:"description"},c.a.createElement(ve,{placeholder:"\u5b57\u6bb5\u63cf\u8ff0\uff0c\u5982\u535a\u5ba2\u6587\u7ae0\u6807\u9898"})),Oe(B)?null:c.a.createElement(te["a"].Item,{label:"\u9ed8\u8ba4\u503c",name:"defaultValue",rules:"Object"===(null===B||void 0===B?void 0:B.type)?[{validator:function(e,t){if("undefined"===typeof t||"object"===typeof t&&null!==t)return Promise.resolve();try{var n=JSON.parse(t);return"object"!==typeof n?Promise.reject("\u975e\u6cd5\u7684 JSON \u5b57\u7b26\u4e32"):Promise.resolve()}catch(mt){return Promise.reject("\u975e\u6cd5\u7684 JSON \u5b57\u7b26\u4e32")}}}]:[]},me(null===B||void 0===B?void 0:B.type,{enumElementType:null===g||void 0===g?void 0:g.enumElementType,dateFormatType:null===g||void 0===g?void 0:g.dateFormatType})),z,c.a.createElement(te["a"].Item,null,c.a.createElement("div",{className:"form-item"},c.a.createElement(te["a"].Item,{style:{marginBottom:0}},c.a.createElement(be,null,"\u662f\u5426\u5fc5\u9700"),c.a.createElement(te["a"].Item,{name:"isRequired",valuePropName:"checked",style:{marginBottom:0}},c.a.createElement(ee["a"],{disabled:B.isSystem})),c.a.createElement(be,{type:"secondary"},"\u5728\u521b\u5efa\u5185\u5bb9\u65f6\uff0c\u6b64\u6bb5\u662f\u5fc5\u9700\u586b\u5199\u7684")))),c.a.createElement(te["a"].Item,null,c.a.createElement("div",{className:"form-item"},c.a.createElement(te["a"].Item,{style:{marginBottom:0}},c.a.createElement(be,null,"\u662f\u5426\u9690\u85cf"),c.a.createElement(te["a"].Item,{name:"isHidden",valuePropName:"checked",style:{marginBottom:0}},c.a.createElement(ee["a"],null)),c.a.createElement(be,{type:"secondary"},"\u5728\u5185\u5bb9\u96c6\u5408\u8868\u683c\u5c55\u793a\u65f6\u9690\u85cf\u8be5\u5b57\u6bb5")))),c.a.createElement(te["a"].Item,null,c.a.createElement("div",{className:"form-item"},c.a.createElement(te["a"].Item,{style:{marginBottom:0}},c.a.createElement(be,null,"\u8bbe\u4e3a\u6392\u5e8f\u5b57\u6bb5"),c.a.createElement(G["a"],{align:"middle"},c.a.createElement(_["a"],{flex:"1 1 auto"},c.a.createElement(te["a"].Item,{noStyle:!0,name:"isOrderField",valuePropName:"checked"},c.a.createElement(ee["a"],{disabled:"_id"===(null===B||void 0===B?void 0:B.name)}))),c.a.createElement(_["a"],{flex:"0 0 auto"},(null===g||void 0===g?void 0:g.isOrderField)&&c.a.createElement(te["a"].Item,{noStyle:!0,name:"orderDirection"},c.a.createElement($["a"],{style:{width:"200px"},placeholder:"\u9009\u62e9\u6392\u5e8f\u89c4\u5219"},c.a.createElement($["a"].Option,{key:"desc",value:"desc"},"\u964d\u5e8f\uff08\u8d8a\u5927\u8d8a\u9760\u524d\uff09"),c.a.createElement($["a"].Option,{key:"asc",value:"asc"},"\u5347\u5e8f\uff08\u8d8a\u5c0f\u8d8a\u9760\u524d\uff09"))))),c.a.createElement(be,{type:"secondary"},"\u83b7\u53d6\u5185\u5bb9\u65f6\u6839\u636e\u6b64\u5b57\u6bb5\u6392\u5e8f")))),c.a.createElement(te["a"].Item,null,c.a.createElement(a["b"],{size:"large",style:{width:"100%",justifyContent:"flex-end"}},c.a.createElement(i["a"],{onClick:function(){return r()}},"\u53d6\u6d88"),c.a.createElement(i["a"],{type:"primary",htmlType:"submit",loading:L,disabled:W},"create"===A?"\u6dfb\u52a0":"\u66f4\u65b0")))))},Oe=function(e){return he.includes(null===e||void 0===e?void 0:e.type)||(null===e||void 0===e?void 0:e.isSystem)},xe=function(e,t){var n=t.type;if("edit"===e)return Object(y["J"])(n)&&!t.dateFormatType&&(t.dateFormatType="timestamp-ms"),Object(y["I"])(n)&&!t.resourceLinkType&&(t.resourceLinkType="fileId"),t;var r={};return"Enum"===n&&(r.enumElementType="string"),"Date"!==n&&"DateTime"!==n||(r.dateFormatType="timestamp-ms"),"File"!==n&&"Image"!==n||(r.resourceLinkType="fileId"),"Media"===n&&(r.mediaType="music"),r},Ie=function(e){var t=e.visible,n=e.onClose,r=Object(y["z"])(),a=Object(u["c"])("schema"),i=Object(u["c"])("content"),s=Object(l["useState"])(!1),d=Object(o["a"])(s,2),p=d[0],m=d[1],f=a.state,g=f.currentSchema,v=f.selectedField;return c.a.createElement(O["a"],{centered:!0,destroyOnClose:!0,visible:t,title:"\u5220\u9664\u3010".concat(null===v||void 0===v?void 0:v.displayName,"\u3011\u5b57\u6bb5"),okButtonProps:{loading:p},onOk:Object(I["a"])(S.a.mark((function e(){var t,o;return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return m(!0),t=(g.fields||[]).slice(),o=t.findIndex((function(e){return e.id===v.id||e.name===v.name})),o>-1&&t.splice(o,1),e.prev=4,e.next=7,Object(T["d"])(r,null===g||void 0===g?void 0:g._id,{fields:t});case 7:g.fields.splice(o,1),x["default"].success("\u5220\u9664\u5b57\u6bb5\u6210\u529f"),a.mr.getSchemas(r),i.mr.getContentSchemas(r),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](4),x["default"].error("\u5220\u9664\u5b57\u6bb5\u5931\u8d25");case 16:return e.prev=16,n(),m(!1),e.finish(16);case 20:case"end":return e.stop()}}),e,null,[[4,13,16,20]])}))),onCancel:function(){return n()}},"\u786e\u8ba4\u5220\u9664\u3010",v.displayName,"\uff08",null===v||void 0===v?void 0:v.name,"\uff09\u3011\u5b57\u6bb5\u5417\uff1f")},De=n("0Owb"),Ce=(n("IzEo"),n("bx4M")),we=(n("+BJd"),n("mr32")),je={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-32 156c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:t}},{tag:"path",attrs:{d:"M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8zm-24 112a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}}]}},name:"exclamation-circle",theme:"twotone"},Se=je,Ne=function(e,t){return l["createElement"](g["a"],Object.assign({},e,{ref:t,icon:Se}))};Ne.displayName="ExclamationCircleTwoTone";var Te=l["forwardRef"](Ne),Ae=n("i5Jm"),Be=n("dI71"),Re=n("wx14"),ke=n("ANjH"),Pe=n("/MKj");function Le(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Fe(e,t){var n=Object(l["useState"])((function(){return{inputs:t,result:e()}}))[0],r=Object(l["useRef"])(!0),a=Object(l["useRef"])(n),i=r.current||Boolean(t&&a.current.inputs&&Le(t,a.current.inputs)),o=i?a.current:{inputs:t,result:e()};return Object(l["useEffect"])((function(){r.current=!1,a.current=o}),[o]),o.result}function Me(e,t){return Fe((function(){return e}),t)}var Ge=Fe,_e=Me,Ue=n("9R94"),We=function(e){var t=e.top,n=e.right,r=e.bottom,a=e.left,i=n-a,o=r-t,l={top:t,right:n,bottom:r,left:a,width:i,height:o,x:a,y:t,center:{x:(n+a)/2,y:(r+t)/2}};return l},ze=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Ve=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},He=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},qe={top:0,right:0,bottom:0,left:0},Je=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?qe:n,a=e.border,i=void 0===a?qe:a,o=e.padding,l=void 0===o?qe:o,c=We(ze(t,r)),u=We(Ve(t,i)),s=We(Ve(u,l));return{marginBox:c,borderBox:We(t),paddingBox:u,contentBox:s,margin:r,border:i,padding:l}},Ye=function(e){var t=e.slice(0,-2),n=e.slice(-2);if("px"!==n)return 0;var r=Number(t);return isNaN(r)&&Object(Ue["a"])(!1),r},Xe=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Ke=function(e,t){var n=e.borderBox,r=e.border,a=e.margin,i=e.padding,o=He(n,t);return Je({borderBox:o,border:r,margin:a,padding:i})},Ze=function(e,t){return void 0===t&&(t=Xe()),Ke(e,t)},Qe=function(e,t){var n={top:Ye(t.marginTop),right:Ye(t.marginRight),bottom:Ye(t.marginBottom),left:Ye(t.marginLeft)},r={top:Ye(t.paddingTop),right:Ye(t.paddingRight),bottom:Ye(t.paddingBottom),left:Ye(t.paddingLeft)},a={top:Ye(t.borderTopWidth),right:Ye(t.borderRightWidth),bottom:Ye(t.borderBottomWidth),left:Ye(t.borderLeftWidth)};return Je({borderBox:e,margin:n,padding:r,border:a})},$e=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Qe(t,n)},et=n("Wwog"),tt=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];t=a,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r},nt=tt,rt=n("i8i4"),at=n.n(rt),it=!0,ot=/[ \t]{2,}/g,lt=/^[ \t]*/gm,ct=function(e){return e.replace(ot," ").replace(lt,"").trim()},ut=function(e){return ct("\n %creact-beautiful-dnd\n\n %c"+ct(e)+"\n\n %c\ud83d\udc77\u200d This is a development only message. It will be removed in production builds.\n")},st=function(e){return[ut(e),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},dt="__react-beautiful-dnd-disable-dev-warnings";function pt(e,t){var n;it||"undefined"!==typeof window&&window[dt]||(n=console)[e].apply(n,st(t))}pt.bind(null,"warn");var mt=pt.bind(null,"error");function ft(){}function gt(e,t){return Object(Re["a"])({},e,{},t)}function vt(e,t,n){var r=t.map((function(t){var r=gt(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var bt=!0,ht="Invariant failed";function yt(e){this.message=e}function Et(e,t){if(!e)throw new yt(bt?ht:ht+": "+(t||""))}yt.prototype.toString=function(){return this.message};var Ot=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,t.callbacks=null,t.unbind=ft,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort();var r=e.error;r instanceof yt&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Object(Be["a"])(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=vt(window,[{eventName:"error",fn:this.onWindowError}])},n.componentWillUnmount=function(){this.unbind()},n.componentDidCatch=function(e){if(!(e instanceof yt))throw e;this.setState({})},n.render=function(){return this.props.children(this.setCallbacks)},t}(c.a.Component),xt="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",It=function(e){return e+1},Dt=function(e){return"\n You have lifted an item in position "+It(e.source.index)+"\n"},Ct=function(e,t){var n=e.droppableId===t.droppableId,r=It(e.index),a=It(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+a+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+a+"\n "},wt=function(e,t,n){var r=t.droppableId===n.droppableId;return r?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},jt=function(e){var t=e.destination;if(t)return Ct(e.source,t);var n=e.combine;return n?wt(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},St=function(e){return"\n The item has returned to its starting position\n of "+It(e.index)+"\n"},Nt=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+St(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Ct(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+wt(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+St(e.source)+"\n "},Tt={dragHandleUsageInstructions:xt,onDragStart:Dt,onDragUpdate:jt,onDragEnd:Nt},At={x:0,y:0},Bt=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Rt=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},kt=function(e,t){return e.x===t.x&&e.y===t.y},Pt=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Lt=function(e,t,n){var r;return void 0===n&&(n=0),r={},r[e]=t,r["x"===e?"y":"x"]=n,r},Ft=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Mt=function(e,t){return Math.min.apply(Math,t.map((function(t){return Ft(e,t)})))},Gt=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},_t=function(e,t){var n=We({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n},Ut=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Wt=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},zt={top:0,right:0,bottom:0,left:0},Vt=function(e,t){return t?Ut(e,t.scroll.diff.displacement):e},Ht=function(e,t,n){var r;return n&&n.increasedBy?Object(Re["a"])({},e,(r={},r[t.end]=e[t.end]+n.increasedBy[t.line],r)):e},qt=function(e,t){return t&&t.shouldClipSubject?_t(t.pageMarginBox,e):We(e)},Jt=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,a=e.frame,i=Vt(t.marginBox,a),o=Ht(i,r,n),l=qt(o,a);return{page:t,withPlaceholder:n,active:l}},Yt=function(e,t){e.frame||Et(!1);var n=e.frame,r=Rt(t,n.scroll.initial),a=Pt(r),i=Object(Re["a"])({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:a},max:n.scroll.max}}),o=Jt({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i}),l=Object(Re["a"])({},e,{frame:i,subject:o});return l};function Xt(e){return Number.isInteger?Number.isInteger(e):"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}function Kt(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Zt(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Qt(e,t){if(e.find)return e.find(t);var n=Zt(e,t);return-1!==n?e[n]:void 0}function $t(e){return Array.prototype.slice.call(e)}var en=Object(et["a"])((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),tn=Object(et["a"])((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),nn=Object(et["a"])((function(e){return Kt(e)})),rn=Object(et["a"])((function(e){return Kt(e)})),an=Object(et["a"])((function(e,t){var n=rn(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function on(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function ln(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var cn=Object(et["a"])((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),un=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,a=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;var o=on(i);if(!o)return null;function l(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return Object(Re["a"])({},i,{at:t})}var c=i.displaced.all,u=c.length?c[0]:null;if(t)return u?l(u):null;var s=cn(n,a);if(!u){if(!s.length)return null;var d=s[s.length-1];return l(d.descriptor.id)}var p=Zt(s,(function(e){return e.descriptor.id===u}));-1===p&&Et(!1);var m=p-1;if(m<0)return null;var f=s[m];return l(f.descriptor.id)},sn=function(e,t){return e.descriptor.droppableId===t.descriptor.id},dn={point:At,value:0},pn={invisible:{},visible:{},all:[]},mn={displaced:pn,displacedBy:dn,at:null},fn=function(e,t){return function(n){return e<=n&&n<=t}},gn=function(e){var t=fn(e.top,e.bottom),n=fn(e.left,e.right);return function(r){var a=t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right);if(a)return!0;var i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right),l=i&&o;if(l)return!0;var c=r.top<e.top&&r.bottom>e.bottom,u=r.left<e.left&&r.right>e.right,s=c&&u;if(s)return!0;var d=c&&o||u&&i;return d}},vn=function(e){var t=fn(e.top,e.bottom),n=fn(e.left,e.right);return function(e){var r=t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right);return r}},bn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},hn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},yn=function(e){return function(t){var n=fn(t.top,t.bottom),r=fn(t.left,t.right);return function(t){return e===bn?n(t.top)&&n(t.bottom):r(t.left)&&r(t.right)}}},En=function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:At;return Ut(e,n)},On=function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)},xn=function(e,t,n){return n(t)(e)},In=function(e){var t=e.target,n=e.destination,r=e.viewport,a=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,o=a?En(t,n):t;return On(o,n,i)&&xn(o,r,i)},Dn=function(e){return In(Object(Re["a"])({},e,{isVisibleThroughFrameFn:gn}))},Cn=function(e){return In(Object(Re["a"])({},e,{isVisibleThroughFrameFn:vn}))},wn=function(e){return In(Object(Re["a"])({},e,{isVisibleThroughFrameFn:yn(e.destination.axis)}))},jn=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,a=t.visible;if(r[e])return!1;var i=a[e];return!i||i.shouldAnimate};function Sn(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return We(ze(n,r))}function Nn(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,a=e.viewport,i=e.forceShouldAnimate,o=e.last;return t.reduce((function(e,t){var l=Sn(t,r),c=t.descriptor.id;e.all.push(c);var u=Dn({target:l,destination:n,viewport:a,withDroppableDisplacement:!0});if(!u)return e.invisible[t.descriptor.id]=!0,e;var s=jn(c,o,i),d={draggableId:c,shouldAnimate:s};return e.visible[c]=d,e}),{all:[],visible:{},invisible:{}})}function Tn(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function An(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,a=e.destination,i=Tn(t,{inHomeList:n});return{displaced:pn,displacedBy:r,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:i}}}}function Bn(e){var t=e.draggable,n=e.insideDestination,r=e.destination,a=e.viewport,i=e.displacedBy,o=e.last,l=e.index,c=e.forceShouldAnimate,u=sn(t,r);if(null==l)return An({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var s=Qt(n,(function(e){return e.descriptor.index===l}));if(!s)return An({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var d=cn(t,n),p=n.indexOf(s),m=d.slice(p),f=Nn({afterDragging:m,destination:r,displacedBy:i,last:o,viewport:a.frame,forceShouldAnimate:c});return{displaced:f,displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function Rn(e,t){return Boolean(t.effected[e])}var kn=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,a=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var o=a.draggableId,l=r[o],c=l.descriptor.index,u=Rn(o,i);return u?t?c:c-1:t?c+1:c},Pn=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,a=e.location;if(!r.length)return null;var i=a.index,o=t?i+1:i-1,l=r[0].descriptor.index,c=r[r.length-1].descriptor.index,u=n?c:c+1;return o<l||o>u?null:o},Ln=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,a=e.draggables,i=e.destination,o=e.insideDestination,l=e.previousImpact,c=e.viewport,u=e.afterCritical,s=l.at;if(s||Et(!1),"REORDER"===s.type){var d=Pn({isMovingForward:t,isInHomeList:n,location:s.destination,insideDestination:o});return null==d?null:Bn({draggable:r,insideDestination:o,destination:i,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:d})}var p=kn({isMovingForward:t,destination:i,displaced:l.displaced,draggables:a,combine:s.combine,afterCritical:u});return null==p?null:Bn({draggable:r,insideDestination:o,destination:i,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:p})},Fn=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,a=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return Rn(r,n)?i?At:Pt(a.point):i?a.point:At},Mn=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,a=ln(n);a||Et(!1);var i=a.draggableId,o=r[i].page.borderBox.center,l=Fn({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Bt(o,l)},Gn=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},_n=function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2},Un=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Wn=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Lt(t.line,n.marginBox[t.end]+Gn(t,r),Un(t,n.marginBox,r))},zn=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Lt(t.line,n.marginBox[t.start]-_n(t,r),Un(t,n.marginBox,r))},Vn=function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Lt(t.line,n.contentBox[t.start]+Gn(t,r),Un(t,n.contentBox,r))},Hn=function(e){var t=e.impact,n=e.draggable,r=e.draggables,a=e.droppable,i=e.afterCritical,o=an(a.descriptor.id,r),l=n.page,c=a.axis;if(!o.length)return Vn({axis:c,moveInto:a.page,isMoving:l});var u=t.displaced,s=t.displacedBy,d=u.all[0];if(d){var p=r[d];if(Rn(d,i))return zn({axis:c,moveRelativeTo:p.page,isMoving:l});var m=Ke(p.page,s.point);return zn({axis:c,moveRelativeTo:m,isMoving:l})}var f=o[o.length-1];if(f.descriptor.id===n.descriptor.id)return l.borderBox.center;if(Rn(f.descriptor.id,i)){var g=Ke(f.page,Pt(i.displacedBy.point));return Wn({axis:c,moveRelativeTo:g,isMoving:l})}return Wn({axis:c,moveRelativeTo:f.page,isMoving:l})},qn=function(e,t){var n=e.frame;return n?Bt(t,n.scroll.diff.displacement):t},Jn=function(e){var t=e.impact,n=e.draggable,r=e.droppable,a=e.draggables,i=e.afterCritical,o=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?Hn({impact:t,draggable:n,draggables:a,droppable:r,afterCritical:i}):Mn({impact:t,draggables:a,afterCritical:i}):o},Yn=function(e){var t=Jn(e),n=e.droppable,r=n?qn(n,t):t;return r},Xn=function(e,t){var n=Rt(t,e.scroll.initial),r=Pt(n),a=We({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),i={frame:a,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}};return i};function Kn(e,t){return e.map((function(e){return t[e]}))}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}var Qn=function(e){var t=e.impact,n=e.viewport,r=e.destination,a=e.draggables,i=e.maxScrollChange,o=Xn(n,Bt(n.scroll.current,i)),l=r.frame?Yt(r,Bt(r.frame.scroll.current,i)):r,c=t.displaced,u=Nn({afterDragging:Kn(c.all,a),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:c,forceShouldAnimate:!1}),s=Nn({afterDragging:Kn(c.all,a),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),d={},p={},m=[c,u,s];c.all.forEach((function(e){var t=Zn(e,m);t?p[e]=t:d[e]=!0}));var f=Object(Re["a"])({},t,{displaced:{all:c.all,invisible:d,visible:p}});return f},$n=function(e,t){return Bt(e.scroll.diff.displacement,t)},er=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=e.viewport,a=$n(r,t),i=Rt(a,n.page.borderBox.center);return Bt(n.client.borderBox.center,i)},tr=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,a=e.viewport,i=e.withDroppableDisplacement,o=e.onlyOnMainAxis,l=void 0!==o&&o,c=Rt(r,t.page.borderBox.center),u=Ut(t.page.borderBox,c),s={target:u,destination:n,withDroppableDisplacement:i,viewport:a};return l?wn(s):Cn(s)},nr=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,a=e.draggables,i=e.previousImpact,o=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var s=an(r.descriptor.id,a),d=sn(n,r),p=un({isMovingForward:t,draggable:n,destination:r,insideDestination:s,previousImpact:i})||Ln({isMovingForward:t,isInHomeList:d,draggable:n,draggables:a,destination:r,insideDestination:s,previousImpact:i,viewport:o,afterCritical:u});if(!p)return null;var m=Yn({impact:p,draggable:n,droppable:r,draggables:a,afterCritical:u}),f=tr({draggable:n,destination:r,newPageBorderBoxCenter:m,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(f){var g=er({pageBorderBoxCenter:m,draggable:n,viewport:o});return{clientSelection:g,impact:p,scrollJumpRequest:null}}var v=Rt(m,l),b=Qn({impact:p,viewport:o,destination:r,draggables:a,maxScrollChange:v});return{clientSelection:c,impact:b,scrollJumpRequest:v}},rr=function(e){var t=e.subject.active;return t||Et(!1),t},ar=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,a=e.droppables,i=e.viewport,o=r.subject.active;if(!o)return null;var l=r.axis,c=fn(o[l.start],o[l.end]),u=nn(a).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return gn(i.frame)(rr(e))})).filter((function(e){var n=rr(e);return t?o[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<o[l.crossAxisStart]})).filter((function(e){var t=rr(e),n=fn(t[l.start],t[l.end]);return c(t[l.start])||c(t[l.end])||n(o[l.start])||n(o[l.end])})).sort((function(e,n){var r=rr(e)[l.crossAxisStart],a=rr(n)[l.crossAxisStart];return t?r-a:a-r})).filter((function(e,t,n){return rr(e)[l.crossAxisStart]===rr(n[0])[l.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var s=u.filter((function(e){var t=fn(rr(e)[l.start],rr(e)[l.end]);return t(n[l.line])}));return 1===s.length?s[0]:s.length>1?s.sort((function(e,t){return rr(e)[l.start]-rr(t)[l.start]}))[0]:u.sort((function(e,t){var r=Mt(n,Wt(rr(e))),a=Mt(n,Wt(rr(t)));return r!==a?r-a:rr(e)[l.start]-rr(t)[l.start]}))[0]},ir=function(e,t){var n=e.page.borderBox.center;return Rn(e.descriptor.id,t)?Rt(n,t.displacedBy.point):n},or=function(e,t){var n=e.page.borderBox;return Rn(e.descriptor.id,t)?Ut(n,Pt(t.displacedBy.point)):n},lr=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,a=e.insideDestination,i=e.afterCritical,o=a.filter((function(e){return Cn({target:or(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var a=Ft(t,qn(r,ir(e,i))),o=Ft(t,qn(r,ir(n,i)));return a<o?-1:o<a?1:e.descriptor.index-n.descriptor.index}));return o[0]||null},cr=Object(et["a"])((function(e,t){var n=t[e.line];return{value:n,point:Lt(e.line,n)}})),ur=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Lt(r.line,t[r.line]);var a=e.subject.page.contentBox[r.size],i=an(e.descriptor.id,n),o=i.reduce((function(e,t){return e+t.client.marginBox[r.size]}),0),l=o+t[r.line],c=l-a;return c<=0?null:Lt(r.line,c)},sr=function(e,t){return Object(Re["a"])({},e,{scroll:Object(Re["a"])({},e.scroll,{max:t})})},dr=function(e,t,n){var r=e.frame;sn(t,e)&&Et(!1),e.subject.withPlaceholder&&Et(!1);var a=cr(e.axis,t.displaceBy).point,i=ur(e,a,n),o={placeholderSize:a,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=Jt({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return Object(Re["a"])({},e,{subject:l})}var c=i?Bt(r.scroll.max,i):r.scroll.max,u=sr(r,c),s=Jt({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:u});return Object(Re["a"])({},e,{subject:s,frame:u})},pr=function(e){var t=e.subject.withPlaceholder;t||Et(!1);var n=e.frame;if(!n){var r=Jt({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return Object(Re["a"])({},e,{subject:r})}var a=t.oldFrameMaxScroll;a||Et(!1);var i=sr(n,a),o=Jt({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return Object(Re["a"])({},e,{subject:o,frame:i})},mr=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,a=e.draggable,i=e.draggables,o=e.destination,l=e.viewport,c=e.afterCritical;if(!n){if(r.length)return null;var u={displaced:pn,displacedBy:dn,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},s=Yn({impact:u,draggable:a,droppable:o,draggables:i,afterCritical:c}),d=sn(a,o)?o:dr(o,a,i),p=tr({draggable:a,destination:d,newPageBorderBoxCenter:s,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return p?u:null}var m=Boolean(t[o.axis.line]<=n.page.borderBox.center[o.axis.line]),f=function(){var e=n.descriptor.index;return n.descriptor.id===a.descriptor.id||m?e:e+1}(),g=cr(o.axis,a.displaceBy);return Bn({draggable:a,insideDestination:r,destination:o,viewport:l,displacedBy:g,last:pn,index:f})},fr=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,a=e.isOver,i=e.draggables,o=e.droppables,l=e.viewport,c=e.afterCritical,u=ar({isMovingForward:t,pageBorderBoxCenter:n,source:a,droppables:o,viewport:l});if(!u)return null;var s=an(u.descriptor.id,i),d=lr({pageBorderBoxCenter:n,viewport:l,destination:u,insideDestination:s,afterCritical:c}),p=mr({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:s,viewport:l,afterCritical:c});if(!p)return null;var m=Yn({impact:p,draggable:r,droppable:u,draggables:i,afterCritical:c}),f=er({pageBorderBoxCenter:m,draggable:r,viewport:l});return{clientSelection:f,impact:p,scrollJumpRequest:null}},gr=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},vr=function(e,t){var n=gr(e);return n?t[n]:null},br=function(e){var t=e.state,n=e.type,r=vr(t.impact,t.dimensions.droppables),a=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],o=r||i,l=o.axis.direction,c="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(c&&!a)return null;var u="MOVE_DOWN"===n||"MOVE_RIGHT"===n,s=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,m=p.draggables,f=p.droppables;return c?nr({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:s,destination:o,draggables:m,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):fr({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:s,isOver:o,draggables:m,droppables:f,viewport:t.viewport,afterCritical:t.afterCritical})};function hr(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function yr(e){var t=fn(e.top,e.bottom),n=fn(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Er(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function Or(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,a=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=Lt(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Ft(a,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}function xr(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,a=nn(r).filter((function(e){if(!e.isEnabled)return!1;var n=e.subject.active;if(!n)return!1;if(!Er(t,n))return!1;if(yr(n)(t.center))return!0;var r=e.axis,a=n.center[r.crossAxisLine],i=t[r.crossAxisStart],o=t[r.crossAxisEnd],l=fn(n[r.crossAxisStart],n[r.crossAxisEnd]),c=l(i),u=l(o);return!c&&!u||(c?i<a:o>a)}));return a.length?1===a.length?a[0].descriptor.id:Or({pageBorderBox:t,draggable:n,candidates:a}):null}var Ir=function(e,t){return We(Ut(e,t))},Dr=function(e,t){var n=e.frame;return n?Ir(t,n.scroll.diff.value):t};function Cr(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}function wr(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var jr=function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,a=e.insideDestination,i=e.last,o=e.viewport,l=e.afterCritical,c=r.axis,u=cr(r.axis,n.displaceBy),s=u.value,d=t[c.start],p=t[c.end],m=cn(n,a),f=Qt(m,(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[c.line],r=Rn(t,l),a=Cr({displaced:i,id:t});return r?a?p<=n:d<n-s:a?p<=n+s:d<n})),g=wr({draggable:n,closest:f,inHomeList:sn(n,r)});return Bn({draggable:n,insideDestination:a,destination:r,viewport:o,last:i,displacedBy:u,index:g})},Sr=4,Nr=function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,a=e.destination,i=e.insideDestination,o=e.afterCritical;if(!a.isCombineEnabled)return null;var l=a.axis,c=cr(a.axis,t.displaceBy),u=c.value,s=n[l.start],d=n[l.end],p=cn(t,i),m=Qt(p,(function(e){var t=e.descriptor.id,n=e.page.borderBox,a=n[l.size],i=a/Sr,c=Rn(t,o),p=Cr({displaced:r.displaced,id:t});return c?p?d>n[l.start]+i&&d<n[l.end]-i:s>n[l.start]-u+i&&s<n[l.end]-u-i:p?d>n[l.start]+u+i&&d<n[l.end]+u-i:s>n[l.start]+i&&s<n[l.end]-i}));if(!m)return null;var f={displacedBy:c,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:m.descriptor.id,droppableId:a.descriptor.id}}};return f},Tr=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,a=e.droppables,i=e.previousImpact,o=e.viewport,l=e.afterCritical,c=Ir(n.page.borderBox,t),u=xr({pageBorderBox:c,draggable:n,droppables:a});if(!u)return mn;var s=a[u],d=an(s.descriptor.id,r),p=Dr(s,c);return Nr({pageBorderBoxWithDroppableScroll:p,draggable:n,previousImpact:i,destination:s,insideDestination:d,afterCritical:l})||jr({pageBorderBoxWithDroppableScroll:p,draggable:n,destination:s,insideDestination:d,last:i.displaced,viewport:o,afterCritical:l})},Ar=function(e,t){var n;return Object(Re["a"])({},e,(n={},n[t.descriptor.id]=t,n))},Br=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,a=gr(t),i=gr(n);if(!a)return r;if(a===i)return r;var o=r[a];if(!o.subject.withPlaceholder)return r;var l=pr(o);return Ar(r,l)},Rr=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,a=e.previousImpact,i=e.impact,o=Br({previousImpact:a,impact:i,droppables:r}),l=gr(i);if(!l)return o;var c=r[l];if(sn(t,c))return o;if(c.subject.withPlaceholder)return o;var u=dr(c,t,n);return Ar(o,u)},kr=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,a=e.viewport,i=e.impact,o=e.scrollJumpRequest,l=a||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,s=Rt(u,t.initial.client.selection),d={offset:s,selection:u,borderBoxCenter:Bt(t.initial.client.borderBoxCenter,s)},p={selection:Bt(d.selection,l.scroll.current),borderBoxCenter:Bt(d.borderBoxCenter,l.scroll.current),offset:Bt(d.offset,l.scroll.diff.value)},m={client:d,page:p};if("COLLECTING"===t.phase)return Object(Re["a"])({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:m});var f=c.draggables[t.critical.draggable.id],g=i||Tr({pageOffset:p.offset,draggable:f,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=Rr({draggable:f,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables}),b=Object(Re["a"])({},t,{current:m,dimensions:{draggables:c.draggables,droppables:v},impact:g,viewport:l,scrollJumpRequest:o||null,forceShouldAnimate:!o&&null});return b};function Pr(e,t){return e.map((function(e){return t[e]}))}var Lr=function(e){var t=e.impact,n=e.viewport,r=e.draggables,a=e.destination,i=e.forceShouldAnimate,o=t.displaced,l=Pr(o.all,r),c=Nn({afterDragging:l,destination:a,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:o});return Object(Re["a"])({},t,{displaced:c})},Fr=function(e){var t=e.impact,n=e.draggable,r=e.droppable,a=e.draggables,i=e.viewport,o=e.afterCritical,l=Yn({impact:t,draggable:n,draggables:a,droppable:r,afterCritical:o});return er({pageBorderBoxCenter:l,draggable:n,viewport:i})},Mr=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&Et(!1);var a=t.impact,i=r||t.viewport,o=n||t.dimensions,l=o.draggables,c=o.droppables,u=l[t.critical.draggable.id],s=gr(a);s||Et(!1);var d=c[s],p=Lr({impact:a,viewport:i,destination:d,draggables:l}),m=Fr({impact:p,draggable:u,droppable:d,draggables:l,viewport:i,afterCritical:t.afterCritical});return kr({impact:p,clientSelection:m,state:t,dimensions:o,viewport:i})},Gr=function(e){return{index:e.index,droppableId:e.droppableId}},_r=function(e){var t=e.draggable,n=e.home,r=e.draggables,a=e.viewport,i=cr(n.axis,t.displaceBy),o=an(n.descriptor.id,r),l=o.indexOf(t);-1===l&&Et(!1);var c=o.slice(l+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),s={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u},d=Nn({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:a.frame,forceShouldAnimate:!1}),p={displaced:d,displacedBy:i,at:{type:"REORDER",destination:Gr(t.descriptor)}};return{impact:p,afterCritical:s}},Ur=function(e,t){return{draggables:e.draggables,droppables:Ar(e.droppables,t)}},Wr=function(e){0},zr=function(e){0},Vr=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,a=Ke(t.client,n),i=Ze(a,r),o=Object(Re["a"])({},t,{placeholder:Object(Re["a"])({},t.placeholder,{client:a}),client:a,page:i});return o},Hr=function(e){var t=e.frame;return t||Et(!1),t},qr=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,a=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=n[t],o=Hr(i),l=o.scroll.diff.value,c=Bt(a,l),u=Vr({draggable:e,offset:c,initialWindowScroll:r.scroll.initial});return u}))},Jr=function(e){var t=e.state,n=e.published;Wr();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId],r=Yt(n,e.scroll);return r})),a=Object(Re["a"])({},t.dimensions.droppables,{},en(r)),i=tn(qr({additions:n.additions,updatedDroppables:a,viewport:t.viewport})),o=Object(Re["a"])({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete o[e]}));var l={droppables:a,draggables:o},c=gr(t.impact),u=c?l.droppables[c]:null,s=l.draggables[t.critical.draggable.id],d=l.droppables[t.critical.droppable.id],p=_r({draggable:s,home:d,draggables:o,viewport:t.viewport}),m=p.impact,f=p.afterCritical,g=u&&u.isCombineEnabled?t.impact:m,v=Tr({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:g,viewport:t.viewport,afterCritical:f});zr();var b=Object(Re["a"])({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:m,dimensions:l,afterCritical:f,forceShouldAnimate:!1});if("COLLECTING"===t.phase)return b;var h=Object(Re["a"])({phase:"DROP_PENDING"},b,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1});return h},Yr=function(e){return"SNAP"===e.movementMode},Xr=function(e,t,n){var r=Ur(e.dimensions,t);return!Yr(e)||n?kr({state:e,dimensions:r}):Mr({state:e,dimensions:r})};function Kr(e){return e.isDragging&&"SNAP"===e.movementMode?Object(Re["a"])({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Zr={phase:"IDLE",completed:null,shouldFlush:!1},Qr=function(e,t){if(void 0===e&&(e=Zr),"FLUSH"===t.type)return Object(Re["a"])({},Zr,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&Et(!1);var n=t.payload,r=n.critical,a=n.clientSelection,i=n.viewport,o=n.dimensions,l=n.movementMode,c=o.draggables[r.draggable.id],u=o.droppables[r.droppable.id],s={selection:a,borderBoxCenter:c.client.borderBox.center,offset:At},d={client:s,page:{selection:Bt(s.selection,i.scroll.initial),borderBoxCenter:Bt(s.selection,i.scroll.initial),offset:Bt(s.selection,i.scroll.diff.value)}},p=nn(o.droppables).every((function(e){return!e.isFixedOnPage})),m=_r({draggable:c,home:u,draggables:o.draggables,viewport:i}),f=m.impact,g=m.afterCritical,v={phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:o,initial:d,current:d,isWindowScrollAllowed:p,impact:f,afterCritical:g,onLiftImpact:f,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null};return v}if("COLLECTION_STARTING"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&Et(!1);var b=Object(Re["a"])({phase:"COLLECTING"},e,{phase:"COLLECTING"});return b}if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Et(!1),Jr({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;hr(e)||Et(!1);var h=t.payload.client;return kt(h,e.current.client.selection)?e:kr({state:e,clientSelection:h,impact:Yr(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Kr(e);if("COLLECTING"===e.phase)return Kr(e);hr(e)||Et(!1);var y=t.payload,E=y.id,O=y.newScroll,x=e.dimensions.droppables[E];if(!x)return e;var I=Yt(x,O);return Xr(e,I,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;hr(e)||Et(!1);var D=t.payload,C=D.id,w=D.isEnabled,j=e.dimensions.droppables[C];j||Et(!1),j.isEnabled===w&&Et(!1);var S=Object(Re["a"])({},j,{isEnabled:w});return Xr(e,S,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;hr(e)||Et(!1);var N=t.payload,T=N.id,A=N.isCombineEnabled,B=e.dimensions.droppables[T];B||Et(!1),B.isCombineEnabled===A&&Et(!1);var R=Object(Re["a"])({},B,{isCombineEnabled:A});return Xr(e,R,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;hr(e)||Et(!1),e.isWindowScrollAllowed||Et(!1);var k=t.payload.newScroll;if(kt(e.viewport.scroll.current,k))return Kr(e);var P=Xn(e.viewport,k);return Yr(e)?Mr({state:e,viewport:P}):kr({state:e,viewport:P})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!hr(e))return e;var L=t.payload.maxScroll;if(kt(L,e.viewport.scroll.max))return e;var F=Object(Re["a"])({},e.viewport,{scroll:Object(Re["a"])({},e.viewport.scroll,{max:L})});return Object(Re["a"])({phase:"DRAGGING"},e,{viewport:F})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&Et(!1);var M=br({state:e,type:t.type});return M?kr({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var G=t.payload.reason;"COLLECTING"!==e.phase&&Et(!1);var _=Object(Re["a"])({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:G});return _}if("DROP_ANIMATE"===t.type){var U=t.payload,W=U.completed,z=U.dropDuration,V=U.newHomeClientOffset;"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Et(!1);var H={phase:"DROP_ANIMATING",completed:W,dropDuration:z,newHomeClientOffset:V,dimensions:e.dimensions};return H}if("DROP_COMPLETE"===t.type){var q=t.payload.completed;return{phase:"IDLE",completed:q,shouldFlush:!1}}return e},$r=function(e){return{type:"BEFORE_INITIAL_CAPTURE",payload:e}},ea=function(e){return{type:"LIFT",payload:e}},ta=function(e){return{type:"INITIAL_PUBLISH",payload:e}},na=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},ra=function(){return{type:"COLLECTION_STARTING",payload:null}},aa=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},ia=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},oa=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},la=function(e){return{type:"MOVE",payload:e}},ca=function(e){return{type:"MOVE_BY_WINDOW_SCROLL",payload:e}},ua=function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}},sa=function(){return{type:"MOVE_UP",payload:null}},da=function(){return{type:"MOVE_DOWN",payload:null}},pa=function(){return{type:"MOVE_RIGHT",payload:null}},ma=function(){return{type:"MOVE_LEFT",payload:null}},fa=function(){return{type:"FLUSH",payload:null}},ga=function(e){return{type:"DROP_ANIMATE",payload:e}},va=function(e){return{type:"DROP_COMPLETE",payload:e}},ba=function(e){return{type:"DROP",payload:e}},ha=function(e){return{type:"DROP_PENDING",payload:e}},ya=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Ea(e,t){}var Oa=function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(a){if("LIFT"===a.type){var i=a.payload,o=i.id,l=i.clientSelection,c=i.movementMode,u=n();"DROP_ANIMATING"===u.phase&&r(va({completed:u.completed})),"IDLE"!==n().phase&&Et(!1),r(fa()),r($r({draggableId:o,movementMode:c}));var s={shouldPublishImmediately:"SNAP"===c},d={draggableId:o,scrollOptions:s},p=e.startPublishing(d),m=p.critical,f=p.dimensions,g=p.viewport;Ea(m,f),r(ta({critical:m,dimensions:f,clientSelection:l,movementMode:c,viewport:g}))}else t(a)}}}},xa=function(e){return function(){return function(t){return function(n){"INITIAL_PUBLISH"===n.type&&e.dragging(),"DROP_ANIMATE"===n.type&&e.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||e.resting(),t(n)}}}},Ia={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Da={opacity:{drop:0,combining:.7},scale:{drop:.75}},Ca={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},wa=Ca.outOfTheWay+"s "+Ia.outOfTheWay,ja={fluid:"opacity "+wa,snap:"transform "+wa+", opacity "+wa,drop:function(e){var t=e+"s "+Ia.drop;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+wa,placeholder:"height "+wa+", width "+wa+", margin "+wa},Sa=function(e){return kt(e,At)?null:"translate("+e.x+"px, "+e.y+"px)"},Na={moveTo:Sa,drop:function(e,t){var n=Sa(e);return n?t?n+" scale("+Da.scale.drop+")":n:null}},Ta=Ca.minDropTime,Aa=Ca.maxDropTime,Ba=Aa-Ta,Ra=1500,ka=.6,Pa=function(e){var t=e.current,n=e.destination,r=e.reason,a=Ft(t,n);if(a<=0)return Ta;if(a>=Ra)return Aa;var i=a/Ra,o=Ta+Ba*i,l="CANCEL"===r?o*ka:o;return Number(l.toFixed(2))},La=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,a=e.viewport,i=e.afterCritical,o=r.draggables,l=r.droppables,c=gr(t),u=c?l[c]:null,s=l[n.descriptor.droppableId],d=Fr({impact:t,draggable:n,draggables:o,afterCritical:i,droppable:u||s,viewport:a}),p=Rt(d,n.client.borderBox.center);return p},Fa=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,a=e.home,i=e.viewport,o=e.onLiftImpact;if(!r.at||"DROP"!==n){var l=Lr({draggables:t,impact:o,destination:a,viewport:i,forceShouldAnimate:!0});return{impact:l,didDropInsideDroppable:!1}}if("REORDER"===r.at.type)return{impact:r,didDropInsideDroppable:!0};var c=Object(Re["a"])({},r,{displaced:pn});return{impact:c,didDropInsideDroppable:!0}},Ma=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var a=t(),i=r.payload.reason;if("COLLECTING"!==a.phase){if("IDLE"!==a.phase){var o="DROP_PENDING"===a.phase&&a.isWaiting;o&&Et(!1),"DRAGGING"!==a.phase&&"DROP_PENDING"!==a.phase&&Et(!1);var l=a.critical,c=a.dimensions,u=c.draggables[a.critical.draggable.id],s=Fa({reason:i,lastImpact:a.impact,afterCritical:a.afterCritical,onLiftImpact:a.onLiftImpact,home:a.dimensions.droppables[a.critical.droppable.id],viewport:a.viewport,draggables:a.dimensions.draggables}),d=s.impact,p=s.didDropInsideDroppable,m=p?on(d):null,f=p?ln(d):null,g={index:l.draggable.index,droppableId:l.droppable.id},v={draggableId:u.descriptor.id,type:u.descriptor.type,source:g,reason:i,mode:a.movementMode,destination:m,combine:f},b=La({impact:d,draggable:u,dimensions:c,viewport:a.viewport,afterCritical:a.afterCritical}),h={critical:a.critical,afterCritical:a.afterCritical,result:v,impact:d},y=!kt(a.current.client.offset,b)||Boolean(v.combine);if(y){var E=Pa({current:a.current.client.offset,destination:b,reason:i}),O={newHomeClientOffset:b,dropDuration:E,completed:h};n(ga(O))}else n(va({completed:h}))}}else n(ha({reason:i}))}else e(r)}}},Ga=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function _a(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}function Ua(e){var t=e.onWindowScroll;function n(){t(Ga())}var r=nt(n),a=_a(r),i=ft;function o(){return i!==ft}function l(){o()&&Et(!1),i=vt(window,[a])}function c(){o()||Et(!1),r.cancel(),i(),i=ft}return{start:l,stop:c,isActive:o}}var Wa=function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type},za=function(e){var t=Ua({onWindowScroll:function(t){e.dispatch(ca({newScroll:t}))}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&Wa(n)&&t.stop(),e(n)}}},Va=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),a=function(a){t||n||(t=!0,e(a),clearTimeout(r))};return a.wasCalled=function(){return t},a},Ha=function(){var e=[],t=function(t){var n=Zt(e,(function(e){return e.timerId===t}));-1===n&&Et(!1);var r=e.splice(n,1),a=r[0];a.callback()},n=function(n){var r=setTimeout((function(){return t(r)})),a={timerId:r,callback:n};e.push(a)},r=function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}};return{add:n,flush:r}},qa=function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.droppableId===t.droppableId&&e.index===t.index)},Ja=function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)},Ya=function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},Xa=function(e,t){Wr(),t(),zr()},Ka=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Za=function(e,t,n,r){if(e){var a=Va(n),i={announce:a};e(t,i),a.wasCalled()||n(r(t))}else n(r(t))},Qa=function(e,t){var n=Ha(),r=null,a=function(t,n){r&&Et(!1),Xa("onBeforeCapture",(function(){var r=e().onBeforeCapture;if(r){var a={draggableId:t,mode:n};r(a)}}))},i=function(t,n){r&&Et(!1),Xa("onBeforeDragStart",(function(){var r=e().onBeforeDragStart;r&&r(Ka(t,n))}))},o=function(a,i){r&&Et(!1);var o=Ka(a,i);r={mode:i,lastCritical:a,lastLocation:o.source,lastCombine:null},n.add((function(){Xa("onDragStart",(function(){return Za(e().onDragStart,o,t,Tt.onDragStart)}))}))},l=function(a,i){var o=on(i),l=ln(i);r||Et(!1);var c=!Ya(a,r.lastCritical);c&&(r.lastCritical=a);var u=!qa(r.lastLocation,o);u&&(r.lastLocation=o);var s=!Ja(r.lastCombine,l);if(s&&(r.lastCombine=l),c||u||s){var d=Object(Re["a"])({},Ka(a,r.mode),{combine:l,destination:o});n.add((function(){Xa("onDragUpdate",(function(){return Za(e().onDragUpdate,d,t,Tt.onDragUpdate)}))}))}},c=function(){r||Et(!1),n.flush()},u=function(n){r||Et(!1),r=null,Xa("onDragEnd",(function(){return Za(e().onDragEnd,n,t,Tt.onDragEnd)}))},s=function(){if(r){var e=Object(Re["a"])({},Ka(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});u(e)}};return{beforeCapture:a,beforeStart:i,start:o,update:l,flush:c,drop:u,abort:s}},$a=function(e,t){var n=Qa(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var a=r.payload.critical;return n.beforeStart(a,r.payload.movementMode),t(r),void n.start(a,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var o=e.getState();"DRAGGING"===o.phase&&n.update(o.critical,o.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},ei=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&Et(!1),e.dispatch(va({completed:r.completed}))}else t(n)}}},ti=function(e){var t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return function(a){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||r(),a(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var t=e.getState();"DROP_ANIMATING"===t.phase&&e.dispatch(ya())}};n=requestAnimationFrame((function(){n=null,t=vt(window,[o])}))}}}},ni=function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}},ri=function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var a=r.payload.completed.result;a.combine&&e.tryShiftRecord(a.draggableId,a.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},ai=function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type},ii=function(e){return function(t){return function(n){return function(r){if(ai(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var a=t.getState();return"DRAGGING"!==a.phase&&Et(!1),void e.start(a)}n(r),e.scroll(t.getState())}}}},oi=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(ba({reason:r.reason})))}}}},li=ke["d"],ci=function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,a=e.getResponders,i=e.announce,o=e.autoScroller;return Object(ke["e"])(Qr,li(Object(ke["a"])(xa(r),ni(t),Oa(t),Ma,ei,ti,oi,ii(o),za,ri(n),$a(a,i))))},ui=function(){return{additions:{},removals:{},modified:{}}};function si(e){var t=e.registry,n=e.callbacks,r=ui(),a=null,i=function(){a||(n.collectionStarting(),a=requestAnimationFrame((function(){a=null,Wr();var e=r,i=e.additions,o=e.removals,l=e.modified,c=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(At)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),u=Object.keys(l).map((function(e){var n=t.droppable.getById(e),r=n.callbacks.getScrollWhileDragging();return{droppableId:e,scroll:r}})),s={additions:c,removals:Object.keys(o),modified:u};r=ui(),zr(),n.publish(s)})))},o=function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},l=function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},c=function(){a&&(cancelAnimationFrame(a),a=null,r=ui())};return{add:o,remove:l,stop:c}}var di=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,a=e.width,i=Rt({x:n,y:t},{x:a,y:r}),o={x:Math.max(0,i.x),y:Math.max(0,i.y)};return o},pi=function(){var e=document.documentElement;return e||Et(!1),e},mi=function(){var e=pi(),t=di({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},fi=function(){var e=Ga(),t=mi(),n=e.y,r=e.x,a=pi(),i=a.clientWidth,o=a.clientHeight,l=r+i,c=n+o,u=We({top:n,left:r,right:l,bottom:c}),s={frame:u,scroll:{initial:e,current:e,max:t,diff:{value:At,displacement:At}}};return s},gi=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Wr();var a=fi(),i=a.scroll.current,o=t.droppable,l=r.droppable.getAllByType(o.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),c=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),u={draggables:tn(c),droppables:en(l)};zr();var s={dimensions:u,critical:t,viewport:a};return s};function vi(e,t,n){if(n.descriptor.id===t.id)return!1;if(n.descriptor.type!==t.type)return!1;var r=e.droppable.getById(n.descriptor.droppableId);return"virtual"===r.descriptor.mode}var bi=function(e,t){var n=null,r=si({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),a=function(r,a){e.droppable.exists(r)||Et(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:a})},i=function(r,a){n&&(e.droppable.exists(r)||Et(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:a}))},o=function(r,a){n&&(e.droppable.exists(r)||Et(!1),t.updateDroppableScroll({id:r,newScroll:a}))},l=function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},c=function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}},u=function(t){n||Et(!1);var a=n.critical.draggable;"ADDITION"===t.type&&vi(e,a,t.value)&&r.add(t.value),"REMOVAL"===t.type&&vi(e,a,t.value)&&r.remove(t.value)},s=function(t){n&&Et(!1);var r=e.draggable.getById(t.draggableId),a=e.droppable.getById(r.descriptor.droppableId),i={draggable:r.descriptor,droppable:a.descriptor},o=e.subscribe(u);return n={critical:i,unsubscribe:o},gi({critical:i,registry:e,scrollOptions:t.scrollOptions})},d={updateDroppableIsEnabled:a,updateDroppableIsCombineEnabled:i,scrollDroppable:l,updateDroppableScroll:o,startPublishing:s,stopPublishing:c};return d},hi=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},yi=function(e){window.scrollBy(e.x,e.y)},Ei=Object(et["a"])((function(e){return nn(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Oi=function(e,t){var n=Qt(Ei(t),(function(t){return t.frame||Et(!1),yr(t.frame.pageMarginBox)(e)}));return n},xi=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var a=r[n];return a.frame?a:null}var i=Oi(t,r);return i},Ii={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(e){return Math.pow(e,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Di=function(e,t){var n=e[t.size]*Ii.startFromPercentage,r=e[t.size]*Ii.maxScrollAtPercentage,a={startScrollingFrom:n,maxScrollValueAt:r};return a},Ci=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,a=n-t;if(0===a)return 0;var i=r-t,o=i/a;return o},wi=1,ji=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Ii.maxPixelScroll;if(e===t.startScrollingFrom)return wi;var n=Ci({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=1-n,a=Ii.maxPixelScroll*Ii.ease(r);return Math.ceil(a)},Si=Ii.durationDampening.accelerateAt,Ni=Ii.durationDampening.stopDampeningAt,Ti=function(e,t){var n=t,r=Ni,a=Date.now(),i=a-n;if(i>=Ni)return e;if(i<Si)return wi;var o=Ci({startOfRange:Si,endOfRange:r,current:i}),l=e*Ii.ease(o);return Math.ceil(l)},Ai=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,a=e.shouldUseTimeDampening,i=ji(t,n);return 0===i?0:a?Math.max(Ti(i,r),wi):i},Bi=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,a=e.axis,i=e.shouldUseTimeDampening,o=Di(t,a),l=n[a.end]<n[a.start];return l?Ai({distanceToEdge:n[a.end],thresholds:o,dragStartTime:r,shouldUseTimeDampening:i}):-1*Ai({distanceToEdge:n[a.start],thresholds:o,dragStartTime:r,shouldUseTimeDampening:i})},Ri=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,a=n.height>t.height,i=n.width>t.width;return i||a?i&&a?null:{x:i?0:r.x,y:a?0:r.y}:r},ki=Gt((function(e){return 0===e?0:e})),Pi=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,a=e.center,i=e.shouldUseTimeDampening,o={top:a.y-n.top,right:n.right-a.x,bottom:n.bottom-a.y,left:a.x-n.left},l=Bi({container:n,distanceToEdges:o,dragStartTime:t,axis:bn,shouldUseTimeDampening:i}),c=Bi({container:n,distanceToEdges:o,dragStartTime:t,axis:hn,shouldUseTimeDampening:i}),u=ki({x:c,y:l});if(kt(u,At))return null;var s=Ri({container:n,subject:r,proposedScroll:u});return s?kt(s,At)?null:s:null},Li=Gt((function(e){return 0===e?0:e>0?1:-1})),Fi=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,a=t.change,i=Bt(n,a),o={x:e(i.x,r.x),y:e(i.y,r.y)};return kt(o,At)?null:o}}(),Mi=function(e){var t=e.max,n=e.current,r=e.change,a={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=Li(r),o=Fi({max:a,current:n,change:i});return!o||(0!==i.x&&0===o.x||0!==i.y&&0===o.y)},Gi=function(e,t){return Mi({current:e.scroll.current,max:e.scroll.max,change:t})},_i=function(e,t){if(!Gi(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Fi({current:r,max:n,change:t})},Ui=function(e,t){var n=e.frame;return!!n&&Mi({current:n.scroll.current,max:n.scroll.max,change:t})},Wi=function(e,t){var n=e.frame;return n&&Ui(e,t)?Fi({current:n.scroll.current,max:n.scroll.max,change:t}):null},zi=function(e){var t=e.viewport,n=e.subject,r=e.center,a=e.dragStartTime,i=e.shouldUseTimeDampening,o=Pi({dragStartTime:a,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return o&&Gi(t,o)?o:null},Vi=function(e){var t=e.droppable,n=e.subject,r=e.center,a=e.dragStartTime,i=e.shouldUseTimeDampening,o=t.frame;if(!o)return null;var l=Pi({dragStartTime:a,container:o.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return l&&Ui(t,l)?l:null},Hi=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,a=e.scrollWindow,i=e.scrollDroppable,o=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id],c=l.page.marginBox;if(t.isWindowScrollAllowed){var u=t.viewport,s=zi({dragStartTime:n,viewport:u,subject:c,center:o,shouldUseTimeDampening:r});if(s)return void a(s)}var d=xi({center:o,destination:gr(t.impact),droppables:t.dimensions.droppables});if(d){var p=Vi({dragStartTime:n,droppable:d,subject:c,center:o,shouldUseTimeDampening:r});p&&i(d.descriptor.id,p)}},qi=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=nt(t),a=nt(n),i=null,o=function(e){i||Et(!1);var t=i,n=t.shouldUseTimeDampening,o=t.dragStartTime;Hi({state:e,scrollWindow:r,scrollDroppable:a,dragStartTime:o,shouldUseTimeDampening:n})},l=function(e){Wr(),i&&Et(!1);var t=Date.now(),n=!1,r=function(){n=!0};Hi({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},zr(),n&&o(e)},c=function(){i&&(r.cancel(),a.cancel(),i=null)};return{start:l,stop:c,scroll:o}},Ji=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,a=function(e,n){var r=Bt(e.current.client.selection,n);t({client:r})},i=function(e,t){if(!Ui(e,t))return t;var r=Wi(e,t);if(!r)return n(e.descriptor.id,t),null;var a=Rt(t,r);n(e.descriptor.id,a);var i=Rt(t,a);return i},o=function(e,t,n){if(!e)return n;if(!Gi(t,n))return n;var a=_i(t,n);if(!a)return r(n),null;var i=Rt(n,a);r(i);var o=Rt(n,i);return o},l=function(e){var t=e.scrollJumpRequest;if(t){var n=gr(e.impact);n||Et(!1);var r=i(e.dimensions.droppables[n],t);if(r){var l=e.viewport,c=o(e.isWindowScrollAllowed,l,r);c&&a(e,c)}}};return l},Yi=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,a=qi({scrollWindow:n,scrollDroppable:t}),i=Ji({move:r,scrollWindow:n,scrollDroppable:t}),o=function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):a.scroll(e))},l={scroll:o,start:a.start,stop:a.stop};return l},Xi="data-rbd",Ki=function(){var e=Xi+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),Zi=function(){var e=Xi+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Qi=function(){var e=Xi+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),$i={contextId:Xi+"-scroll-container-context-id"},eo=function(e){return function(t){return"["+t+'="'+e+'"]'}},to=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},no="pointer-events: none;",ro=function(e){var t=eo(e),n=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(Ki.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:no,dropAnimating:e}}}(),r=function(){var e="\n transition: "+ja.outOfTheWay+";\n ";return{selector:t(Zi.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),a={selector:t(Qi.contextId),styles:{always:"overflow-anchor: none;"}},i={selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}},o=[r,n,a,i];return{always:to(o,"always"),resting:to(o,"resting"),dragging:to(o,"dragging"),dropAnimating:to(o,"dropAnimating"),userCancel:to(o,"userCancel")}},ao="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?l["useLayoutEffect"]:l["useEffect"],io=function(){var e=document.querySelector("head");return e||Et(!1),e},oo=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function lo(e,t){var n=Ge((function(){return ro(e)}),[e]),r=Object(l["useRef"])(null),a=Object(l["useRef"])(null),i=_e(Object(et["a"])((function(e){var t=a.current;t||Et(!1),t.textContent=e})),[]),o=_e((function(e){var t=r.current;t||Et(!1),t.textContent=e}),[]);ao((function(){(r.current||a.current)&&Et(!1);var l=oo(t),c=oo(t);return r.current=l,a.current=c,l.setAttribute(Xi+"-always",e),c.setAttribute(Xi+"-dynamic",e),io().appendChild(l),io().appendChild(c),o(n.always),i(n.resting),function(){var e=function(e){var t=e.current;t||Et(!1),io().removeChild(t),e.current=null};e(r),e(a)}}),[t,o,i,n.always,n.resting,e]);var c=_e((function(){return i(n.dragging)}),[i,n.dragging]),u=_e((function(e){i("DROP"!==e?n.userCancel:n.dropAnimating)}),[i,n.dropAnimating,n.userCancel]),s=_e((function(){a.current&&i(n.resting)}),[i,n.resting]),d=Ge((function(){return{dragging:c,dropping:u,resting:s}}),[c,u,s]);return d}var co=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function uo(e){return e instanceof co(e).HTMLElement}function so(e,t){var n="["+Ki.contextId+'="'+e+'"]',r=$t(document.querySelectorAll(n));if(!r.length)return null;var a=Qt(r,(function(e){return e.getAttribute(Ki.draggableId)===t}));return a&&uo(a)?a:null}function po(e){var t=Object(l["useRef"])({}),n=Object(l["useRef"])(null),r=Object(l["useRef"])(null),a=Object(l["useRef"])(!1),i=_e((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current,a=n[e];a!==r&&delete n[e]}}),[]),o=_e((function(t){var n=so(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),c=_e((function(e,t){n.current===e&&(n.current=t)}),[]),u=_e((function(){r.current||a.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&o(e)})))}),[o]),s=_e((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Ki.draggableId)===e&&(n.current=e)}),[]);ao((function(){return a.current=!0,function(){a.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]);var d=Ge((function(){return{register:i,tryRecordFocus:s,tryRestoreFocusRecorded:u,tryShiftRecord:c}}),[i,s,u,c]);return d}function mo(){var e={draggables:{},droppables:{}},t=[];function n(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}function r(e){t.length&&t.forEach((function(t){return t(e)}))}function a(t){return e.draggables[t]||null}function i(e){var t=a(e);return t||Et(!1),t}var o={register:function(t){e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var n=t.descriptor.id,i=a(n);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[n],r({type:"REMOVAL",value:t}))},getById:i,findById:a,exists:function(e){return Boolean(a(e))},getAllByType:function(t){return Kt(e.draggables).filter((function(e){return e.descriptor.type===t}))}};function l(t){return e.droppables[t]||null}function c(e){var t=l(e);return t||Et(!1),t}var u={register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=l(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:c,findById:l,exists:function(e){return Boolean(l(e))},getAllByType:function(t){return Kt(e.droppables).filter((function(e){return e.descriptor.type===t}))}};function s(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:u,subscribe:n,clean:s}}function fo(){var e=Ge(mo,[]);return Object(l["useEffect"])((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}var go=c.a.createContext(null),vo=function(){var e=document.body;return e||Et(!1),e},bo={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ho=function(e){return"rbd-announcement-"+e};function yo(e){var t=Ge((function(){return ho(e)}),[e]),n=Object(l["useRef"])(null);Object(l["useEffect"])((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Object(Re["a"])(e.style,bo),vo().appendChild(e),function(){setTimeout((function(){var t=vo();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]);var r=_e((function(e){var t=n.current;t&&(t.textContent=e)}),[]);return r}var Eo=0,Oo={separator:"::"};function xo(e,t){return void 0===t&&(t=Oo),Ge((function(){return""+e+t.separator+Eo++}),[t.separator,e])}function Io(e){var t=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+t+"-"+n}function Do(e){var t=e.contextId,n=e.text,r=xo("hidden-text",{separator:"-"}),a=Ge((function(){return Io({contextId:t,uniqueId:r})}),[r,t]);return Object(l["useEffect"])((function(){var e=document.createElement("div");return e.id=a,e.textContent=n,e.style.display="none",vo().appendChild(e),function(){var t=vo();t.contains(e)&&t.removeChild(e)}}),[a,n]),a}var Co=c.a.createContext(null),wo={react:"^16.8.5","react-dom":"^16.8.5"},jo=/(\d+)\.(\d+)\.(\d+)/,So=function(e){var t=jo.exec(e);null==t&&Et(!1);var n=Number(t[1]),r=Number(t[2]),a=Number(t[3]);return{major:n,minor:r,patch:a,raw:e}},No=function(e,t){return t.major>e.major||!(t.major<e.major)&&(t.minor>e.minor||!(t.minor<e.minor)&&t.patch>=e.patch)},To=function(e,t){var n=So(e),r=So(t);No(n,r)},Ao=function(e){var t=e.doctype;t&&(t.name.toLowerCase(),t.publicId)};function Bo(e){0}function Ro(e,t){Bo((function(){Object(l["useEffect"])((function(){try{e()}catch(t){mt("\n A setup problem was encountered.\n\n > "+t.message+"\n ")}}),t)}))}function ko(){Ro((function(){To(wo.react,c.a.version),Ao(document)}),[])}function Po(e){var t=Object(l["useRef"])(e);return Object(l["useEffect"])((function(){t.current=e})),t}function Lo(){var e=null;function t(){return Boolean(e)}function n(t){return t===e}function r(t){e&&Et(!1);var n={abandon:t};return e=n,n}function a(){e||Et(!1),e=null}function i(){e&&(e.abandon(),a())}return{isClaimed:t,isActive:n,claim:r,release:a,tryAbandon:i}}var Fo,Mo=9,Go=13,_o=27,Uo=32,Wo=33,zo=34,Vo=35,Ho=36,qo=37,Jo=38,Yo=39,Xo=40,Ko=(Fo={},Fo[Go]=!0,Fo[Mo]=!0,Fo),Zo=function(e){Ko[e.keyCode]&&e.preventDefault()},Qo=function(){var e="visibilitychange";if("undefined"===typeof document)return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=Qt(t,(function(e){return"on"+e in document}));return n||e}(),$o=0,el=5;function tl(e,t){return Math.abs(t.x-e.x)>=el||Math.abs(t.y-e.y)>=el}var nl,rl={type:"IDLE"};function al(e){var t=e.cancel,n=e.completed,r=e.getPhase,a=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(t===$o){var o={x:n,y:i},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(o);"PENDING"!==l.type&&Et(!1);var c=l.point;if(tl(c,o)){e.preventDefault();var u=l.actions.fluidLift(o);a({type:"DRAGGING",actions:u})}}}},{eventName:"mouseup",fn:function(e){var a=r();"DRAGGING"===a.type?(e.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){var n=r();if("PENDING"!==n.type)return e.keyCode===_o?(e.preventDefault(),void t()):void Zo(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&Et(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Qo,fn:t}]}function il(e){var t=Object(l["useRef"])(rl),n=Object(l["useRef"])(ft),r=Ge((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===$o&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var a=e.tryGetLock(r,o,{sourceEvent:t});if(a){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),s(a,i)}}}}}}),[e]),a=Ge((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),i=_e((function(){var e={passive:!1,capture:!0};n.current=vt(window,[a,r],e)}),[a,r]),o=_e((function(){var e=t.current;"IDLE"!==e.type&&(t.current=rl,n.current(),i())}),[i]),c=_e((function(){var e=t.current;o(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[o]),u=_e((function(){var e={capture:!0,passive:!1},r=al({cancel:c,completed:o,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=vt(window,r,e)}),[c,o]),s=_e((function(e,n){"IDLE"!==t.current.type&&Et(!1),t.current={type:"PENDING",point:n,actions:e},u()}),[u]);ao((function(){return i(),function(){n.current()}}),[i])}function ol(){}var ll=(nl={},nl[zo]=!0,nl[Wo]=!0,nl[Ho]=!0,nl[Vo]=!0,nl);function cl(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:function(t){return t.keyCode===_o?(t.preventDefault(),void n()):t.keyCode===Uo?(t.preventDefault(),void r()):t.keyCode===Xo?(t.preventDefault(),void e.moveDown()):t.keyCode===Jo?(t.preventDefault(),void e.moveUp()):t.keyCode===Yo?(t.preventDefault(),void e.moveRight()):t.keyCode===qo?(t.preventDefault(),void e.moveLeft()):void(ll[t.keyCode]?t.preventDefault():Zo(t))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Qo,fn:n}]}function ul(e){var t=Object(l["useRef"])(ol),n=Ge((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&n.keyCode===Uo){var a=e.findClosestDraggableId(n);if(a){var i=e.tryGetLock(a,c,{sourceEvent:n});if(i){n.preventDefault();var o=!0,l=i.snapLift();t.current(),t.current=vt(window,cl(l,c),{capture:!0,passive:!1})}}}function c(){o||Et(!1),o=!1,t.current(),r()}}}}),[e]),r=_e((function(){var e={passive:!1,capture:!0};t.current=vt(window,[n],e)}),[n]);ao((function(){return r(),function(){t.current()}}),[r])}var sl={type:"IDLE"},dl=120,pl=.15;function ml(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(e.keyCode===_o&&e.preventDefault(),t()):t()}},{eventName:Qo,fn:t}]}function fl(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var a=e.touches[0],i=a.clientX,o=a.clientY,l={x:i,y:o};e.preventDefault(),n.actions.move(l)}else t()}},{eventName:"touchend",fn:function(e){var a=r();"DRAGGING"===a.type?(e.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&Et(!1);var a=e.touches[0];if(a){var i=a.force>=pl;if(i){var o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}}},{eventName:Qo,fn:t}]}function gl(e){var t=Object(l["useRef"])(sl),n=Object(l["useRef"])(ft),r=_e((function(){return t.current}),[]),a=_e((function(e){t.current=e}),[]),i=Ge((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var a=e.tryGetLock(r,c,{sourceEvent:t});if(a){var i=t.touches[0],o=i.clientX,l=i.clientY,u={x:o,y:l};n.current(),p(a,u)}}}}}}),[e]),o=_e((function(){var e={capture:!0,passive:!1};n.current=vt(window,[i],e)}),[i]),c=_e((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(sl),n.current(),o())}),[o,a]),u=_e((function(){var e=t.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),s=_e((function(){var e={capture:!0,passive:!1},t={cancel:u,completed:c,getPhase:r},a=vt(window,fl(t),e),i=vt(window,ml(t),e);n.current=function(){a(),i()}}),[u,r,c]),d=_e((function(){var e=r();"PENDING"!==e.type&&Et(!1);var t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,a]),p=_e((function(e,t){"IDLE"!==r().type&&Et(!1);var n=setTimeout(d,dl);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),s()}),[s,r,a,d]);ao((function(){return o(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(sl))}}),[r,o,a]),ao((function(){var e=vt(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return e}),[])}function vl(e){Bo((function(){var t=Po(e);Ro((function(){t.current.length!==e.length&&Et(!1)}))}))}var bl={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function hl(e,t){if(null==t)return!1;var n=Boolean(bl[t.tagName.toLowerCase()]);if(n)return!0;var r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&hl(e,t.parentElement)}function yl(e,t){var n=t.target;return!!uo(n)&&hl(e,n)}var El=function(e){return We(e.getBoundingClientRect()).center};function Ol(e){return e instanceof co(e).Element}var xl=function(){var e="matches";if("undefined"===typeof document)return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],n=Qt(t,(function(e){return e in Element.prototype}));return n||e}();function Il(e,t){return null==e?null:e[xl](t)?e:Il(e.parentElement,t)}function Dl(e,t){return e.closest?e.closest(t):Il(e,t)}function Cl(e){return"["+Ki.contextId+'="'+e+'"]'}function wl(e,t){var n=t.target;if(!Ol(n))return null;var r=Cl(e),a=Dl(n,r);return a&&uo(a)?a:null}function jl(e,t){var n=wl(e,t);return n?n.getAttribute(Ki.draggableId):null}function Sl(e,t){var n="["+Zi.contextId+'="'+e+'"]',r=$t(document.querySelectorAll(n)),a=Qt(r,(function(e){return e.getAttribute(Zi.id)===t}));return a&&uo(a)?a:null}function Nl(e){e.preventDefault()}function Tl(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function Al(e){var t=e.lockAPI,n=e.store,r=e.registry,a=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(a);return!!i&&(!!i.options.isEnabled&&!!hi(n.getState(),a))}function Bl(e){var t=e.lockAPI,n=e.contextId,r=e.store,a=e.registry,i=e.draggableId,o=e.forceSensorStop,l=e.sourceEvent,c=Al({lockAPI:t,store:r,registry:a,draggableId:i});if(!c)return null;var u=a.draggable.getById(i),s=Sl(n,u.descriptor.id);if(!s)return null;if(l&&!u.options.canDragInteractiveElements&&yl(s,l))return null;var d=t.claim(o||ft),p="PRE_DRAG";function m(){return u.options.shouldRespectForcePress}function f(){return t.isActive(d)}function g(e,t){Tl({expected:e,phase:p,isLockActive:f,shouldWarn:!0})&&r.dispatch(t())}var v=g.bind(null,"DRAGGING");function b(e){function n(){t.release(),p="COMPLETED"}function a(t,a){if(void 0===a&&(a={shouldBlockNextClick:!1}),e.cleanup(),a.shouldBlockNextClick){var i=vt(window,[{eventName:"click",fn:Nl,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(ba({reason:t}))}return"PRE_DRAG"!==p&&(n(),"PRE_DRAG"!==p&&Et(!1)),r.dispatch(ea(e.liftActionArgs)),p="DRAGGING",Object(Re["a"])({isActive:function(){return Tl({expected:"DRAGGING",phase:p,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:m,drop:function(e){return a("DROP",e)},cancel:function(e){return a("CANCEL",e)}},e.actions)}function h(e){var t=nt((function(e){v((function(){return la({client:e})}))})),n=b({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return Object(Re["a"])({},n,{move:t})}function y(){var e={moveUp:function(){return v(sa)},moveRight:function(){return v(pa)},moveDown:function(){return v(da)},moveLeft:function(){return v(ma)}};return b({liftActionArgs:{id:i,clientSelection:El(s),movementMode:"SNAP"},cleanup:ft,actions:e})}function E(){var e=Tl({expected:"PRE_DRAG",phase:p,isLockActive:f,shouldWarn:!0});e&&t.release()}var O={isActive:function(){return Tl({expected:"PRE_DRAG",phase:p,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:m,fluidLift:h,snapLift:y,abort:E};return O}var Rl=[il,ul,gl];function kl(e){var t=e.contextId,n=e.store,r=e.registry,a=e.customSensors,i=e.enableDefaultSensors,o=[].concat(i?Rl:[],a||[]),c=Object(l["useState"])((function(){return Lo()}))[0],u=_e((function(e,t){e.isDragging&&!t.isDragging&&c.tryAbandon()}),[c]);ao((function(){var e=n.getState(),t=n.subscribe((function(){var t=n.getState();u(e,t),e=t}));return t}),[c,n,u]),ao((function(){return c.tryAbandon}),[c.tryAbandon]);var s=_e((function(e){return Al({lockAPI:c,registry:r,store:n,draggableId:e})}),[c,r,n]),d=_e((function(e,a,i){return Bl({lockAPI:c,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:a,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,c,r,n]),p=_e((function(e){return jl(t,e)}),[t]),m=_e((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),f=_e((function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(fa()))}),[c,n]),g=_e(c.isClaimed,[c]),v=Ge((function(){return{canGetLock:s,tryGetLock:d,findClosestDraggableId:p,findOptionsForDraggable:m,tryReleaseLock:f,isLockClaimed:g}}),[s,d,p,m,f,g]);vl(o);for(var b=0;b<o.length;b++)o[b](v)}var Pl=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function Ll(e){return e.current||Et(!1),e.current}function Fl(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,a=e.nonce,i=e.dragHandleUsageInstructions,o=Object(l["useRef"])(null);ko();var u=Po(e),s=_e((function(){return Pl(u.current)}),[u]),d=yo(t),p=Do({contextId:t,text:i}),m=lo(t,a),f=_e((function(e){Ll(o).dispatch(e)}),[]),g=Ge((function(){return Object(ke["b"])({publishWhileDragging:na,updateDroppableScroll:aa,updateDroppableIsEnabled:ia,updateDroppableIsCombineEnabled:oa,collectionStarting:ra},f)}),[f]),v=fo(),b=Ge((function(){return bi(v,g)}),[v,g]),h=Ge((function(){return Yi(Object(Re["a"])({scrollWindow:yi,scrollDroppable:b.scrollDroppable},Object(ke["b"])({move:la},f)))}),[b.scrollDroppable,f]),y=po(t),E=Ge((function(){return ci({announce:d,autoScroller:h,dimensionMarshal:b,focusMarshal:y,getResponders:s,styleMarshal:m})}),[d,h,b,y,s,m]);o.current=E;var O=_e((function(){var e=Ll(o),t=e.getState();"IDLE"!==t.phase&&e.dispatch(fa())}),[]),x=_e((function(){var e=Ll(o).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]),I=Ge((function(){return{isDragging:x,tryAbort:O}}),[x,O]);n(I);var D=_e((function(e){return hi(Ll(o).getState(),e)}),[]),C=_e((function(){return hr(Ll(o).getState())}),[]),w=Ge((function(){return{marshal:b,focus:y,contextId:t,canLift:D,isMovementAllowed:C,dragHandleUsageInstructionsId:p,registry:v}}),[t,b,p,y,D,C,v]);return kl({contextId:t,store:E,registry:v,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(l["useEffect"])((function(){return O}),[O]),c.a.createElement(Co.Provider,{value:w},c.a.createElement(Pe["a"],{context:go,store:E},e.children))}var Ml=0;function Gl(){return Ge((function(){return""+Ml++}),[])}function _l(e){var t=Gl(),n=e.dragHandleUsageInstructions||Tt.dragHandleUsageInstructions;return c.a.createElement(Ot,null,(function(r){return c.a.createElement(Fl,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Ul=function(e){return function(t){return e===t}},Wl=Ul("scroll"),zl=Ul("auto"),Vl=(Ul("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Hl=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Vl(n,Wl)||Vl(n,zl)},ql=function(){return!1},Jl=function e(t){return null==t?null:t===document.body?ql()?t:null:t===document.documentElement?null:Hl(t)?t:e(t.parentElement)},Yl=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Xl=function e(t){if(!t)return!1;var n=window.getComputedStyle(t);return"fixed"===n.position||e(t.parentElement)},Kl=function(e){var t=Jl(e),n=Xl(e);return{closestScrollable:t,isFixedOnPage:n}},Zl=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,a=e.isFixedOnPage,i=e.direction,o=e.client,l=e.page,c=e.closest,u=function(){if(!c)return null;var e=c.scrollSize,t=c.client,n=di({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:c.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:c.shouldClipSubject,scroll:{initial:c.scroll,current:c.scroll,max:n,diff:{value:At,displacement:At}}}}(),s="vertical"===i?bn:hn,d=Jt({page:l,withPlaceholder:null,axis:s,frame:u}),p={descriptor:t,isCombineEnabled:r,isFixedOnPage:a,axis:s,isEnabled:n,client:o,page:l,frame:u,subject:d};return p},Ql=function(e,t){var n=$e(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,a=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,o=a+t.scrollWidth,l={top:r,right:o,bottom:i,left:a},c=ze(l,n.border),u=Je({borderBox:c,margin:n.margin,border:n.border,padding:n.padding});return u},$l=function(e){var t=e.ref,n=e.descriptor,r=e.env,a=e.windowScroll,i=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,c=e.shouldClipSubject,u=r.closestScrollable,s=Ql(t,u),d=Ze(s,a),p=function(){if(!u)return null;var e=$e(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:Ze(e,a),scroll:Yl(u),scrollSize:t,shouldClipSubject:c}}(),m=Zl({descriptor:n,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:i,client:s,page:d,closest:p});return m},ec={passive:!1},tc={passive:!0},nc=function(e){return e.shouldPublishImmediately?ec:tc};function rc(e){var t=Object(l["useContext"])(e);return t||Et(!1),t}var ac=function(e){return e&&e.env.closestScrollable||null};function ic(e){var t=Object(l["useRef"])(null),n=rc(Co),r=xo("droppable"),a=n.registry,i=n.marshal,o=Po(e),c=Ge((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),u=Object(l["useRef"])(c),s=Ge((function(){return Object(et["a"])((function(e,n){t.current||Et(!1);var r={x:e,y:n};i.updateDroppableScroll(c.id,r)}))}),[c.id,i]),d=_e((function(){var e=t.current;return e&&e.env.closestScrollable?Yl(e.env.closestScrollable):At}),[]),p=_e((function(){var e=d();s(e.x,e.y)}),[d,s]),m=Ge((function(){return nt(p)}),[p]),f=_e((function(){var e=t.current,n=ac(e);e&&n||Et(!1);var r=e.scrollOptions;r.shouldPublishImmediately?p():m()}),[m,p]),g=_e((function(e,r){t.current&&Et(!1);var a=o.current,i=a.getDroppableRef();i||Et(!1);var l=Kl(i),u={ref:i,descriptor:c,env:l,scrollOptions:r};t.current=u;var s=$l({ref:i,descriptor:c,env:l,windowScroll:e,direction:a.direction,isDropDisabled:a.isDropDisabled,isCombineEnabled:a.isCombineEnabled,shouldClipSubject:!a.ignoreContainerClipping}),d=l.closestScrollable;return d&&(d.setAttribute($i.contextId,n.contextId),d.addEventListener("scroll",f,nc(u.scrollOptions))),s}),[n.contextId,c,f,o]),v=_e((function(){var e=t.current,n=ac(e);return e&&n||Et(!1),Yl(n)}),[]),b=_e((function(){var e=t.current;e||Et(!1);var n=ac(e);t.current=null,n&&(m.cancel(),n.removeAttribute($i.contextId),n.removeEventListener("scroll",f,nc(e.scrollOptions)))}),[f,m]),h=_e((function(e){var n=t.current;n||Et(!1);var r=ac(n);r||Et(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=Ge((function(){return{getDimensionAndWatchScroll:g,getScrollWhileDragging:v,dragStopped:b,scroll:h}}),[b,g,v,h]),E=Ge((function(){return{uniqueId:r,descriptor:c,callbacks:y}}),[y,c,r]);ao((function(){return u.current=E.descriptor,a.droppable.register(E),function(){t.current&&b(),a.droppable.unregister(E)}}),[y,c,b,E,i,a.droppable]),ao((function(){t.current&&i.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)}),[e.isDropDisabled,i]),ao((function(){t.current&&i.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,i])}function oc(){}var lc={width:0,height:0,margin:zt},cc=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?lc:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},uc=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,a=cc({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?ja.placeholder:null}};function sc(e){var t=Object(l["useRef"])(null),n=_e((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,a=e.onTransitionEnd,i=e.onClose,o=e.contextId,u=Object(l["useState"])("open"===e.animate),s=u[0],d=u[1];Object(l["useEffect"])((function(){return s?"open"!==r?(n(),d(!1),oc):t.current?oc:(t.current=setTimeout((function(){t.current=null,d(!1)})),n):oc}),[r,s,n]);var p=_e((function(e){"height"===e.propertyName&&(a(),"close"===r&&i())}),[r,i,a]),m=uc({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return c.a.createElement(e.placeholder.tagName,{style:m,"data-rbd-placeholder-context-id":o,onTransitionEnd:p,ref:e.innerRef})}var dc=c.a.memo(sc),pc=c.a.createContext(null);function mc(e){e&&uo(e)||Et(!1)}function fc(e){return"boolean"===typeof e}function gc(e,t){t.forEach((function(t){return t(e)}))}var vc=[function(e){var t=e.props;t.droppableId||Et(!1),"string"!==typeof t.droppableId&&Et(!1)},function(e){var t=e.props;fc(t.isDropDisabled)||Et(!1),fc(t.isCombineEnabled)||Et(!1),fc(t.ignoreContainerClipping)||Et(!1)},function(e){var t=e.getDroppableRef;mc(t())}],bc=[function(e){var t=e.props,n=e.getPlaceholderRef;if(t.placeholder)n()}],hc=[function(e){var t=e.props;t.renderClone||Et(!1)},function(e){var t=e.getPlaceholderRef;t()&&Et(!1)}];function yc(e){Ro((function(){gc(e,vc),"standard"===e.props.mode&&gc(e,bc),"virtual"===e.props.mode&&gc(e,hc)}))}var Ec=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,t.state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}Object(Be["a"])(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}};var n=t.prototype;return n.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(c.a.PureComponent),Oc={dragging:5e3,dropAnimating:4500},xc=function(e,t){return t?ja.drop(t.duration):e?ja.snap:ja.fluid},Ic=function(e,t){return e?t?Da.opacity.drop:Da.opacity.combining:null},Dc=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function Cc(e){var t=e.dimension,n=t.client,r=e.offset,a=e.combineWith,i=e.dropping,o=Boolean(a),l=Dc(e),c=Boolean(i),u=c?Na.drop(r,o):Na.moveTo(r),s={position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:xc(l,i),transform:u,opacity:Ic(o,c),zIndex:c?Oc.dropAnimating:Oc.dragging,pointerEvents:"none"};return s}function wc(e){return{transform:Na.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function jc(e){return"DRAGGING"===e.type?Cc(e):wc(e)}function Sc(e,t,n){void 0===n&&(n=At);var r=window.getComputedStyle(t),a=t.getBoundingClientRect(),i=Qe(a,r),o=Ze(i,n),l={client:i,tagName:t.tagName.toLowerCase(),display:r.display},c={x:i.marginBox.width,y:i.marginBox.height},u={descriptor:e,placeholder:l,displaceBy:c,client:i,page:o};return u}function Nc(e){var t=xo("draggable"),n=e.descriptor,r=e.registry,a=e.getDraggableRef,i=e.canDragInteractiveElements,o=e.shouldRespectForcePress,c=e.isEnabled,u=Ge((function(){return{canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:c}}),[i,c,o]),s=_e((function(e){var t=a();return t||Et(!1),Sc(n,t,e)}),[n,a]),d=Ge((function(){return{uniqueId:t,descriptor:n,options:u,getDimension:s}}),[n,s,u,t]),p=Object(l["useRef"])(d),m=Object(l["useRef"])(!0);ao((function(){return r.draggable.register(p.current),function(){return r.draggable.unregister(p.current)}}),[r.draggable]),ao((function(){if(m.current)m.current=!1;else{var e=p.current;p.current=d,r.draggable.update(d,e)}}),[d,r.draggable])}function Tc(e,t,n){Ro((function(){var r=e.draggableId;r||Et(!1),"string"!==typeof r&&Et(!1),Xt(e.index)||Et(!1),"DRAGGING"!==e.mapped.type&&(mc(n()),e.isEnabled&&(so(t,r)||Et(!1)))}))}function Ac(e){Bo((function(){var t=Object(l["useRef"])(e);Ro((function(){e!==t.current&&Et(!1)}),[e])}))}function Bc(e){e.preventDefault()}function Rc(e){var t=Object(l["useRef"])(null),n=_e((function(e){t.current=e}),[]),r=_e((function(){return t.current}),[]),a=rc(Co),i=a.contextId,o=a.dragHandleUsageInstructionsId,c=a.registry,u=rc(pc),s=u.type,d=u.droppableId,p=Ge((function(){return{id:e.draggableId,index:e.index,type:s,droppableId:d}}),[e.draggableId,e.index,s,d]),m=e.children,f=e.draggableId,g=e.isEnabled,v=e.shouldRespectForcePress,b=e.canDragInteractiveElements,h=e.isClone,y=e.mapped,E=e.dropAnimationFinished;if(Tc(e,i,r),Ac(h),!h){var O=Ge((function(){return{descriptor:p,registry:c,getDraggableRef:r,canDragInteractiveElements:b,shouldRespectForcePress:v,isEnabled:g}}),[p,c,r,b,v,g]);Nc(O)}var x=Ge((function(){return g?{tabIndex:0,role:"button","aria-describedby":o,"data-rbd-drag-handle-draggable-id":f,"data-rbd-drag-handle-context-id":i,draggable:!1,onDragStart:Bc}:null}),[i,o,f,g]),I=_e((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&E()}),[E,y]),D=Ge((function(){var e=jc(y),t="DRAGGING"===y.type&&y.dropping?I:null,r={innerRef:n,draggableProps:{"data-rbd-draggable-context-id":i,"data-rbd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:x};return r}),[i,x,f,y,I,n]),C=Ge((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return m(D,y.snapshot,C)}var kc=function(e,t){return e===t},Pc=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null},Lc=function(e){return e.combine?e.combine.draggableId:null},Fc=function(e){return e.at&&"COMBINE"===e.at.type?e.at.combine.draggableId:null};function Mc(){var e=Object(et["a"])((function(e,t){return{x:e,y:t}})),t=Object(et["a"])((function(e,t,n,r,a){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(a),dropAnimation:a,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=Object(et["a"])((function(e,n,r,a,i,o,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:o,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,a,i,o,null)}}})),r=function(r,a){if(r.isDragging){if(r.critical.draggable.id!==a.draggableId)return null;var i=r.current.client.offset,o=r.dimensions.draggables[a.draggableId],l=gr(r.impact),c=Fc(r.impact),u=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,o,a.isClone,l,c,u)}if("DROP_ANIMATING"===r.phase){var s=r.completed;if(s.result.draggableId!==a.draggableId)return null;var d=a.isClone,p=r.dimensions.draggables[a.draggableId],m=s.result,f=m.mode,g=Pc(m),v=Lc(m),b=r.dropDuration,h={duration:b,curve:Ia.drop,moveTo:r.newHomeClientOffset,opacity:v?Da.opacity.drop:null,scale:v?Da.scale.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:h,draggingOver:g,combineWith:v,mode:f,forceShouldAnimate:null,snapshot:t(f,d,g,v,h)}}}return null};return r}function Gc(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var _c={mapped:{type:"SECONDARY",offset:At,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Gc(null)}};function Uc(){var e=Object(et["a"])((function(e,t){return{x:e,y:t}})),t=Object(et["a"])(Gc),n=Object(et["a"])((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(At,e,!0):null},a=function(t,a,i,o){var l=i.displaced.visible[t],c=Boolean(o.inVirtualList&&o.effected[t]),u=ln(i),s=u&&u.draggableId===t?a:null;if(!l){if(!c)return r(s);if(i.displaced.invisible[t])return null;var d=Pt(o.displacedBy.point),p=e(d.x,d.y);return n(p,s,!0)}if(c)return r(s);var m=i.displacedBy.point,f=e(m.x,m.y);return n(f,s,l.shouldAnimate)},i=function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:a(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:a(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null};return i}var Wc=function(){var e=Mc(),t=Uc(),n=function(n,r){return e(n,r)||t(n,r)||_c};return n},zc={dropAnimationFinished:ya},Vc=Object(Pe["c"])(Wc,zc,null,{context:go,pure:!0,areStatePropsEqual:kc})(Rc);function Hc(e){var t=rc(pc),n=t.isUsingCloneFor;return n!==e.draggableId||e.isClone?c.a.createElement(Vc,e):null}function qc(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return c.a.createElement(Hc,Object(Re["a"])({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}function Jc(e){var t=Object(l["useContext"])(Co);t||Et(!1);var n=t.contextId,r=t.isMovementAllowed,a=Object(l["useRef"])(null),i=Object(l["useRef"])(null),o=e.children,u=e.droppableId,s=e.type,d=e.mode,p=e.direction,m=e.ignoreContainerClipping,f=e.isDropDisabled,g=e.isCombineEnabled,v=e.snapshot,b=e.useClone,h=e.updateViewportMaxScroll,y=e.getContainerForClone,E=_e((function(){return a.current}),[]),O=_e((function(e){a.current=e}),[]),x=_e((function(){return i.current}),[]),I=_e((function(e){i.current=e}),[]);yc({props:e,getDroppableRef:E,getPlaceholderRef:x});var D=_e((function(){r()&&h({maxScroll:mi()})}),[r,h]);ic({droppableId:u,type:s,mode:d,direction:p,isDropDisabled:f,isCombineEnabled:g,ignoreContainerClipping:m,getDroppableRef:E});var C=c.a.createElement(Ec,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,a=e.animate;return c.a.createElement(dc,{placeholder:r,onClose:t,innerRef:I,animate:a,contextId:n,onTransitionEnd:D})})),w=Ge((function(){return{innerRef:O,placeholder:C,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":n}}}),[n,u,C,O]),j=b?b.dragging.draggableId:null,S=Ge((function(){return{droppableId:u,type:s,isUsingCloneFor:j}}),[u,j,s]);function N(){if(!b)return null;var e=b.dragging,t=b.render,n=c.a.createElement(Hc,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return at.a.createPortal(n,y())}return c.a.createElement(pc.Provider,{value:S},o(w,v),N())}var Yc=function(e,t){return e===t.droppable.type},Xc=function(e,t){return t.draggables[e.draggable.id]},Kc=function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Object(Re["a"])({},e,{shouldAnimatePlaceholder:!1}),n=Object(et["a"])((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=Object(et["a"])((function(r,a,i,o,l,c){var u=l.descriptor.id,s=l.descriptor.droppableId===r;if(s){var d=c?{render:c,dragging:n(l.descriptor)}:null,p={isDraggingOver:i,draggingOverWith:i?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:p,useClone:d}}if(!a)return t;if(!o)return e;var m={isDraggingOver:i,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:m,useClone:null}})),a=function(n,a){var i=a.droppableId,o=a.type,l=!a.isDropDisabled,c=a.renderClone;if(n.isDragging){var u=n.critical;if(!Yc(o,u))return t;var s=Xc(u,n.dimensions),d=gr(n.impact)===i;return r(i,l,d,d,s,c)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!Yc(o,p.critical))return t;var m=Xc(p.critical,n.dimensions);return r(i,l,Pc(p.result)===i,gr(p.impact)===i,m,c)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var f=n.completed;if(!Yc(o,f.critical))return t;var g=gr(f.impact)===i,v=Boolean(f.impact.at&&"COMBINE"===f.impact.at.type),b=f.critical.droppable.id===i;return g?v?e:t:b?e:t}return t};return a},Zc={updateViewportMaxScroll:ua};function Qc(){return document.body||Et(!1),document.body}var $c={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Qc},eu=Object(Pe["c"])(Kc,Zc,null,{context:go,pure:!0,areStatePropsEqual:kc})(Jc);eu.defaultProps=$c;var tu,nu=w["a"].Paragraph,ru=w["a"].Text,au=w["a"].Title,iu=function(e){var t=e.schema,n=e.actionRender,r=e.onFiledClick,i=Object(l["useState"])(!1),s=Object(o["a"])(i,2),d=s[0],p=s[1],m=Object(y["z"])(),f=Object(u["c"])("schema"),g=Object(u["c"])("content"),v=f.state.loading,b=function(){var e=Object(I["a"])(S.a.mark((function e(n){var r,a,i,o,l;return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n.destination){e.next=2;break}return e.abrupt("return");case 2:if(a=n.source.index,i=n.destination.index,a!==i){e.next=6;break}return e.abrupt("return");case 6:return o=Object(y["B"])(t),l=null===(r=o.splice(a,1))||void 0===r?void 0:r[0],o.splice(i,0,l),o=o.map((function(e,t){return Object(U["a"])(Object(U["a"])({},e),{},{order:t})})).concat(Object(y["C"])(t)),t.fields=o,p(!0),e.next=14,Object(T["d"])(m,null===t||void 0===t?void 0:t._id,{fields:o});case 14:f.mr.getSchemas(m),g.mr.getContentSchemas(m),p(!1);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return c.a.createElement("div",null,c.a.createElement(ou,e),c.a.createElement(M["a"],{tip:"\u52a0\u8f7d\u4e2d",spinning:v||d},c.a.createElement(_l,{onDragEnd:b},c.a.createElement(eu,{droppableId:"droppable"},(function(e){return c.a.createElement("div",{ref:e.innerRef},Object(y["B"])(t).map((function(e,t){var i=oe["b"].find((function(t){return t.type===e.type}));return c.a.createElement(qc,{key:e.id,draggableId:e.id,index:t},(function(o){return c.a.createElement("div",Object(De["a"])({className:"schema-field-card",ref:o.innerRef},o.draggableProps,o.dragHandleProps),c.a.createElement(Ce["a"],{hoverable:!0,key:t,onClick:function(){return r(e,t)}},c.a.createElement(a["b"],{style:{flex:"1 1 auto"}},c.a.createElement("div",{className:"icon"},null===i||void 0===i?void 0:i.icon),c.a.createElement("div",{className:"flex-column"},c.a.createElement(a["b"],{align:"center",style:{marginBottom:"10px"}},c.a.createElement(W["a"],{title:e.displayName},c.a.createElement(au,{ellipsis:!0,level:4,style:{marginBottom:0}},e.displayName)),c.a.createElement(ru,{strong:!0},"# ",e.name),e.description&&c.a.createElement(W["a"],{title:e.description},c.a.createElement(Te,{style:{fontSize:"16px"}}))),c.a.createElement(a["b"],null,c.a.createElement(we["a"],null,null===i||void 0===i?void 0:i.name)))),n(e,t)))}))})),e.placeholder)})))))},ou=function(e){var t=e.onFiledClick,n=e.schema,r=Object(l["useState"])(!1),i=Object(o["a"])(r,2),u=i[0],s=i[1],d=Object(l["useMemo"])((function(){return Object(y["C"])(n)}),[n]);return c.a.createElement("div",null,c.a.createElement(nu,null,c.a.createElement(a["b"],null,c.a.createElement(ee["a"],{checked:u,onChange:function(e){return s(e)}}),c.a.createElement("span",null,"\u5c55\u793a\u7cfb\u7edf\u529f\u80fd\u6027\u5b57\u6bb5"),c.a.createElement(W["a"],{title:"\u7cfb\u7edf\u529f\u80fd\u6027\u5b57\u6bb5\u4e3a\u7cfb\u7edf\u529f\u80fd\u76f8\u5173\u7684\u5b57\u6bb5\uff0c\u8bf7\u8c28\u614e\u64cd\u4f5c"},c.a.createElement(Ae["a"],null)))),u?d.map((function(e,n){var r=oe["b"].find((function(t){return t.type===e.type}));return c.a.createElement(Ce["a"],{hoverable:!0,key:n,className:"schema-field-card system-field",onClick:function(){return t(e)}},c.a.createElement(a["b"],{style:{flex:"1 1 auto"}},c.a.createElement("div",{className:"icon"},null===r||void 0===r?void 0:r.icon),c.a.createElement("div",{className:"flex-column"},c.a.createElement(a["b"],{align:"center",style:{marginBottom:"10px"}},c.a.createElement(W["a"],{title:e.displayName},c.a.createElement(au,{ellipsis:!0,level:4,style:{marginBottom:0}},e.displayName)),c.a.createElement(ru,{strong:!0},"# ",e.name),c.a.createElement(W["a"],{title:"\u7cfb\u7edf\u5b57\u6bb5\uff0c\u8bf7\u52ff\u968f\u610f\u4fee\u6539"===e.description?"CMS \u7cfb\u7edf\u5b57\u6bb5\uff0c\u8bf7\u52ff\u968f\u610f\u4fee\u6539\u3002\u901a\u8fc7 CMS \u7cfb\u7edf\u5f55\u5165\u7684\u6570\u636e\u4f1a\u9ed8\u8ba4\u6dfb\u52a0\u8be5\u5b57\u6bb5":e.description||"CMS \u7cfb\u7edf\u5b57\u6bb5\uff0c\u8bf7\u52ff\u968f\u610f\u4fee\u6539"},c.a.createElement(Te,{style:{fontSize:"16px"}}))),c.a.createElement(a["b"],null,c.a.createElement(we["a"],{color:"#9da6c7"},null===r||void 0===r?void 0:r.name),c.a.createElement(we["a"],{color:"#2575e6"},"\u7cfb\u7edf\u5b57\u6bb5")))))})):"")},lu=function(){var e,t=Object(u["c"])("schema"),n=t.state.currentSchema,r=Object(l["useCallback"])((function(e,n){t.setState({fieldAction:"edit",selectedField:e,editFieldVisible:!0,selectedFieldIndex:n})}),[]);return null!==n&&void 0!==n&&null!==(e=n.fields)&&void 0!==e&&e.length?c.a.createElement(iu,{schema:n,onFiledClick:function(e,t){return r(e,t)},actionRender:function(e,n){return c.a.createElement(a["b"],null,c.a.createElement(i["a"],{size:"small",type:"primary",onClick:function(t){t.stopPropagation(),r(e,n)}},"\u7f16\u8f91"),c.a.createElement(i["a"],{danger:!0,size:"small",type:"primary",onClick:function(n){n.stopPropagation(),t.setState({selectedField:e,deleteFieldVisible:!0})}},"\u5220\u9664"))}}):c.a.createElement("div",{className:"schema-empty"},c.a.createElement(F["a"],{description:"\u70b9\u51fb\u53f3\u4fa7\u5b57\u6bb5\u7c7b\u578b\uff0c\u6dfb\u52a0\u4e00\u4e2a\u5b57\u6bb5"}))},cu=lu,uu=r["a"].Content,su=function(){var e=Object(u["c"])("schema"),t=e.state,n=t.currentSchema,r=t.loading,o=t.deleteFieldVisible,l=t.editFieldVisible;return c.a.createElement(c.a.Fragment,null,c.a.createElement(uu,{className:"full-height schema-layout-content"},null!==n&&void 0!==n&&n._id?c.a.createElement(G["a"],null,c.a.createElement(_["a"],{flex:"1 1 auto"}),c.a.createElement(_["a"],{flex:"0 1 600px"},c.a.createElement(a["b"],{className:"schema-layout-header"},c.a.createElement(w["a"].Title,{level:3},n.displayName),c.a.createElement(Q,null)),c.a.createElement(uu,null,c.a.createElement(cu,null))),c.a.createElement(_["a"],{flex:"1 1 auto"})):r?c.a.createElement("div",{className:"schema-empty"},c.a.createElement(M["a"],{tip:"\u52a0\u8f7d\u4e2d"})):c.a.createElement("div",{className:"schema-empty"},c.a.createElement(F["a"],{description:"\u521b\u5efa\u4f60\u7684\u6a21\u578b\uff0c\u5f00\u59cb\u4f7f\u7528 CMS"},c.a.createElement(i["a"],{type:"primary",onClick:function(){e.mr.createSchema()}},"\u521b\u5efa\u6a21\u578b")))),c.a.createElement(Ee,{visible:l,onClose:function(){return e.setState({editFieldVisible:!1})}}),c.a.createElement(Ie,{visible:o,onClose:function(){return e.setState({deleteFieldVisible:!1})}}))},du=su,pu=(n("lUTK"),n("BvKs")),mu=function(){var e=Object(u["c"])("schema"),t=e.state,n=t.currentSchema,r=t.schemas,a=t.loading,i=null!==n&&void 0!==n&&n._id?[n._id]:[];return a?c.a.createElement(G["a"],{justify:"center"},c.a.createElement(_["a"],null,c.a.createElement(M["a"],null))):null!==r&&void 0!==r&&r.length?c.a.createElement(pu["a"],{mode:"inline",defaultSelectedKeys:i,onClick:function(t){var n=t.key,a=r.find((function(e){return e._id===n}));e.setState({currentSchema:a})}},r.map((function(e){return c.a.createElement(pu["a"].Item,{key:e._id},e.displayName)}))):c.a.createElement(G["a"],{justify:"center"},c.a.createElement(_["a"],null,"\u6a21\u578b\u4e3a\u7a7a"))},fu=mu,gu=ae["a"].TextArea,vu={create:"\u521b\u5efa",edit:"\u66f4\u65b0",copy:"\u590d\u5236"},bu=["_id","_createTime","_updateTime"],hu=function(e,t){switch(e){case"create":return{docCreateTimeField:"_createTime",docUpdateTimeField:"_updateTime"};case"edit":return t;case"copy":return Object(U["a"])(Object(U["a"])({},t),{},{collectionName:"".concat(t.collectionName,"-copy")});default:return t}},yu=function(){var e=Object(y["z"])(),t=Object(u["c"])("schema"),n=Object(u["c"])("content"),r=t.state,o=r.schemaEditAction,s=r.schemaEditVisible,p=r.currentSchema,m=function(){return t.setState({schemaEditVisible:!1})},f=vu[o],g=Object(ie["k"])(function(){var r=Object(I["a"])(S.a.mark((function r(a){var i,l,c,u,s,d,f,g;return S.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(i=a.displayName,l=a.collectionName,c=a.description,u=a.operations,s=a.docCreateTimeField,d=a.docUpdateTimeField,"create"!==o){r.next=4;break}return r.next=4,Object(T["a"])(e,{displayName:i,collectionName:l,description:c,operations:u,docCreateTimeField:s,docUpdateTimeField:d,fields:Object(y["D"])({docCreateTimeField:s,docUpdateTimeField:d})});case 4:if(!p||"edit"!==o){r.next=8;break}return f=Object.keys(a).filter((function(e){return p[e]!==a[e]})).reduce((function(e,t){return Object(U["a"])(Object(U["a"])({},e),{},Object(re["a"])({},t,a[t]))}),{}),r.next=8,Object(T["d"])(e,null===p||void 0===p?void 0:p._id,f);case 8:if(!p||"copy"!==o){r.next=12;break}return g=Object.keys(a).filter((function(e){return!bu.includes(e)})).reduce((function(e,t){return Object(U["a"])(Object(U["a"])({},e),{},Object(re["a"])({},t,a[t]))}),{}),r.next=12,Object(T["a"])(e,Object(U["a"])(Object(U["a"])({},g),{},{fields:p.fields}));case 12:m(),t.mr.getSchemas(e),n.dispatch("getContentSchemas",e);case 15:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),{manual:!0,onError:function(){return x["default"].error("".concat(f,"\u6a21\u578b\u5931\u8d25"))},onSuccess:function(){return x["default"].success("".concat(f,"\u6a21\u578b\u6210\u529f"))}}),v=g.run,b=g.loading,h=Object(l["useCallback"])(hu,[o,p]);return c.a.createElement(O["a"],{centered:!0,destroyOnClose:!0,footer:null,width:800,visible:s,onOk:function(){return m()},onCancel:function(){return m()},title:"".concat(f,"\u6a21\u578b")},c.a.createElement(te["a"],{layout:"vertical",labelAlign:"left",initialValues:h(o,p),onFinish:function(e){if("copy"===o&&e.collectionName===p.collectionName)return x["default"].error("\u590d\u5236\u6a21\u578b\u6570\u636e\u5e93\u540d\u4e0d\u80fd\u4e0e\u5df2\u6709\u6a21\u578b\u6570\u636e\u5e93\u540d\u76f8\u540c"),void m();v(e)}},c.a.createElement(te["a"].Item,{label:"\u5c55\u793a\u540d\u79f0",name:"displayName",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5c55\u793a\u540d\u79f0\uff01"}]},c.a.createElement(ae["a"],{placeholder:"\u5c55\u793a\u540d\u79f0\uff0c\u5982\u6587\u7ae0"})),c.a.createElement(te["a"].Item,{name:"collectionName",label:c.a.createElement(c.a.Fragment,null,"\u6570\u636e\u5e93\u540d","edit"===o&&c.a.createElement(w["a"].Text,{type:"danger"},"\u3010\u66f4\u6539\u6570\u636e\u5e93\u540d\u4f1a\u81ea\u52a8\u91cd\u547d\u540d\u539f\u6570\u636e\u5e93\uff08\u5371\u9669\u64cd\u4f5c\uff01\u4ec5\u7ba1\u7406\u5458\u53ef\u64cd\u4f5c\uff01\uff09\u3011")),rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u5e93\u540d\u79f0\uff01"},{pattern:/^[a-z0-9A-Z_-]+$/,message:"\u53ea\u80fd\u4f7f\u7528\u82f1\u6587\u5b57\u6bcd\u3001\u6570\u5b57\u3001-\u3001_ \u7b49\u7b26\u53f7"}]},c.a.createElement(ae["a"],{placeholder:"\u6570\u636e\u5e93\u540d\uff0c\u5982 article"})),c.a.createElement(te["a"].Item,{label:"\u63cf\u8ff0\u4fe1\u606f",name:"description"},c.a.createElement(gu,{placeholder:"\u63cf\u8ff0\u4fe1\u606f\uff0c\u4f1a\u5c55\u793a\u5728\u5bf9\u5e94\u5185\u5bb9\u7684\u7ba1\u7406\u9875\u9762\u9876\u90e8\uff0c\u53ef\u7528\u4e8e\u5185\u5bb9\u63d0\u793a\uff0c\u652f\u6301 HTML \u7247\u6bb5"})),c.a.createElement(te["a"].Item,{label:"\u64cd\u4f5c"},c.a.createElement(te["a"].List,{name:"operations"},(function(e,t){var n=t.add,r=t.remove;return c.a.createElement("div",null,null===e||void 0===e?void 0:e.map((function(e,t){return c.a.createElement(Eu,{key:t,field:e,onRemove:r,schema:p})})),c.a.createElement(te["a"].Item,null,c.a.createElement(i["a"],{type:"dashed",onClick:function(){n()},style:{width:"60%"}},c.a.createElement(d["a"],null)," \u6dfb\u52a0\u64cd\u4f5c\u5185\u5bb9")))}))),"create"===o&&c.a.createElement(c.a.Fragment,null,c.a.createElement(te["a"].Item,{label:c.a.createElement(a["b"],{align:"center"},"\u521b\u5efa\u65f6\u95f4\uff08\u7cfb\u7edf\uff09\u5b57\u6bb5\u540d",c.a.createElement(W["a"],{title:"\u81ea\u5b9a\u4e49\u521b\u5efa\u65f6\u95f4\u5b57\u6bb5\u7684\u540d\u79f0\uff0c\u521b\u5efa\u5185\u5bb9\u65f6\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6dfb\u52a0\u6b64\u5b57\u6bb5"},c.a.createElement(Ae["a"],null))),name:"docCreateTimeField",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u521b\u5efa\u65f6\u95f4\u5b57\u6bb5\u540d\uff01"},{message:"\u53ea\u80fd\u4f7f\u7528\u82f1\u6587\u5b57\u6bcd\u3001\u6570\u5b57\u3001-\u3001_ \u7b49\u7b26\u53f7",pattern:/^[a-z0-9A-Z_-]+$/}]},c.a.createElement(ae["a"],{placeholder:"\u8bb0\u5f55\u521b\u5efa\u65f6\u95f4\u5b57\u6bb5\u540d"})),c.a.createElement(te["a"].Item,{label:c.a.createElement(a["b"],null,"\u66f4\u65b0\u65f6\u95f4\uff08\u7cfb\u7edf\uff09\u5b57\u6bb5\u540d",c.a.createElement(W["a"],{title:"\u81ea\u5b9a\u4e49\u66f4\u65b0\u65f6\u95f4\u5b57\u6bb5\u7684\u540d\u79f0\uff0c\u66f4\u65b0\u5185\u5bb9\u65f6\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u66f4\u65b0\u6b64\u5b57\u6bb5"},c.a.createElement(Ae["a"],null))),name:"docUpdateTimeField",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u521b\u5efa\u65f6\u95f4\u5b57\u6bb5\u540d\uff01"},{message:"\u53ea\u80fd\u4f7f\u7528\u82f1\u6587\u5b57\u6bcd\u3001\u6570\u5b57\u3001-\u3001_ \u7b49\u7b26\u53f7",pattern:/^[a-z0-9A-Z_-]+$/}]},c.a.createElement(ae["a"],{placeholder:"\u8bb0\u5f55\u66f4\u65b0\u65f6\u95f4\u5b57\u6bb5\u540d"}))),c.a.createElement(te["a"].Item,null,c.a.createElement(a["b"],{size:"large",style:{width:"100%",justifyContent:"flex-end"}},c.a.createElement(i["a"],{onClick:function(){return m()}},"\u53d6\u6d88"),c.a.createElement(i["a"],{type:"primary",htmlType:"submit",loading:b},f)))))},Eu=function(e){var t=e.field,n=e.onRemove;return c.a.createElement(te["a"].Item,null,c.a.createElement(te["a"].Item,null,c.a.createElement(te["a"].Item,{noStyle:!0,name:[t.name,"name"],validateTrigger:["onChange","onBlur"]},c.a.createElement(ae["a"],{placeholder:"\u64cd\u4f5c\u540d\uff0c\u5982 \u201c\u5ba1\u6838\u201d",style:{width:"20%"}})),c.a.createElement(te["a"].Item,{noStyle:!0,name:[t.name,"url"],validateTrigger:["onChange","onBlur"]},c.a.createElement(ae["a"],{placeholder:"\u54cd\u5e94\u8def\u7531\uff0c\u5982 /user/ident/check",style:{marginLeft:"2%",width:"40%"}}))),c.a.createElement(te["a"].Item,{noStyle:!0},c.a.createElement(te["a"].Item,{noStyle:!0,label:"\u53c2\u6570"},c.a.createElement(te["a"].List,{name:[t.name,"params"]},(function(e,t){var n=t.add,r=t.remove;return c.a.createElement("div",null,null===e||void 0===e?void 0:e.map((function(e,t){return c.a.createElement(Ou,{key:t,field:e,onRemove:r})})),c.a.createElement(te["a"].Item,null,c.a.createElement(i["a"],{type:"dashed",onClick:function(){n()},style:{width:"40%"}},c.a.createElement(d["a"],null)," \u6dfb\u52a0\u989d\u5916\u53c2\u6570")))})))),c.a.createElement(ue["a"],{className:"dynamic-delete-button",onClick:function(){n(t.name)}}))},Ou=function(e){var t=e.field,n=e.onRemove;return c.a.createElement(te["a"].Item,null,c.a.createElement(te["a"].Item,{noStyle:!0,name:[t.name,"displayName"],validateTrigger:["onChange","onBlur"]},c.a.createElement(ae["a"],{placeholder:"\u663e\u793a\u540d\uff0c\u5982 \u201c\u901a\u8fc7\u201d",style:{width:"15%"}})),c.a.createElement(te["a"].Item,{noStyle:!0,name:[t.name,"paramName"],validateTrigger:["onChange","onBlur"]},c.a.createElement(ae["a"],{placeholder:"\u53c2\u6570\u540d\uff0c\u5982 \u201cpassed\u201d",style:{marginLeft:"2%",width:"15%"}})),c.a.createElement(te["a"].Item,{noStyle:!0,name:[t.name,"type"],validateTrigger:["onChange","onBlur"]},c.a.createElement($["a"],{defaultValue:"string",style:{marginLeft:"2%",width:"15%"}},c.a.createElement($["a"].Option,{value:"string"},"\u5b57\u7b26\u4e32"),c.a.createElement($["a"].Option,{value:"number"},"\u6570\u503c"),c.a.createElement($["a"].Option,{value:"boolean"},"\u5e03\u5c14\u503c"))),c.a.createElement(ue["a"],{className:"dynamic-delete-button",style:{margin:"0 0 0 15px"},onClick:function(){n(t.name)}}))},xu=yu,Iu=(n("Mwp2"),n("VXEj")),Du=n("qqnG"),Cu=n("vOnD"),wu=r["a"].Sider,ju=Cu["a"].div(tu||(tu=Object(Du["a"])(["\n overflow: auto;\n padding: 0 10px 0 10px;\n height: calc(100% - 100px);\n"]))),Su=function(){var e=Object(u["c"])("schema"),t=e.state.currentSchema;return c.a.createElement(wu,{className:"schema-sider px-3",width:"240"},c.a.createElement(w["a"].Title,{level:3,className:"pt-5 pb-4 pl-3"},"\u5185\u5bb9\u7c7b\u578b"),c.a.createElement(ju,null,c.a.createElement(Iu["b"],{bordered:!1,dataSource:oe["b"],renderItem:function(n){return c.a.createElement(Ce["a"],{hoverable:!0,className:"field-card",onClick:function(){t?e.setState({fieldAction:"create",selectedField:n,editFieldVisible:!0}):x["default"].info("\u8bf7\u9009\u62e9\u9700\u8981\u7f16\u8f91\u7684\u6a21\u578b")}},c.a.createElement(Iu["b"].Item,{className:"p-0"},c.a.createElement("span",null,n.icon),c.a.createElement("span",null,n.name)))}})))},Nu=Su;n("upc8"),t["default"]=function(){var e=Object(y["z"])(),t=Object(u["c"])("schema"),n=Object(l["useState"])(!1),m=Object(o["a"])(n,2),f=m[0],g=m[1],v=Object(l["useState"])(!1),E=Object(o["a"])(v,2),O=E[0],x=E[1];return Object(l["useEffect"])((function(){t.mr.getSchemas(e)}),[]),c.a.createElement(h["a"],{className:"schema-page-container",extra:c.a.createElement(a["b"],null,c.a.createElement(i["a"],{type:"primary",onClick:function(){t.mr.createSchema()}},c.a.createElement(d["a"],null),"\u65b0\u5efa\u6a21\u578b"),c.a.createElement(i["a"],{type:"primary",onClick:function(){return g(!0)}},c.a.createElement(p["a"],null),"\u5bfc\u51fa\u6a21\u578b"),c.a.createElement(i["a"],{type:"primary",onClick:function(){return x(!0)}},c.a.createElement(b,null),"\u5bfc\u5165\u6a21\u578b"))},c.a.createElement(s["a"],{split:"vertical",gutter:[16,16],style:{background:"inherit"}},c.a.createElement(s["a"],{colSpan:"220px",className:"card-left",style:{marginBottom:0}},c.a.createElement(fu,null)),c.a.createElement(r["a"],{className:"schema-layout"},c.a.createElement(du,null)),c.a.createElement(Nu,null)),c.a.createElement(xu,null),c.a.createElement(P,{visible:f,onClose:function(){return g(!1)}}),c.a.createElement(L,{visible:O,onClose:function(){return x(!1)}}))}},emwk:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n("0Owb"),a=n("tJVT"),i=n("PpiC"),o=(n("DZo9"),n("8z0m")),l=n("q1tI"),c=n.n(l),u=n("Dezk"),s=n("LtfV"),d=n("0lfv"),p=o["a"].Dragger;function m(e){var t=e.value,n=e.onChange,o=e.uploadTip,m=e.uploadType,f=e.filePathTemplate,g=e.resourceLinkType,v=void 0===g?"fileId":g,b=Object(i["a"])(e,["value","onChange","uploadTip","uploadType","filePathTemplate","resourceLinkType"]),h=Object(u["a"])({fileList:[]}),y=Object(a["a"])(h,2),E=y[0].fileList,O=y[1];return Object(l["useEffect"])((function(){var e=(null===t||void 0===t?void 0:t.map((function(e,t){return{url:e,status:"done",response:e,uid:String(t),name:Object(d["s"])(e)}})))||[];O({fileList:e||[]})}),[]),c.a.createElement(p,Object(r["a"])({multiple:!0,fileList:E,onRemove:function(e){var t=E.filter((function(t){return t.uid!==e.uid})),r=t.map((function(e){return e.url||e.response}));null===n||void 0===n||n(r),O({fileList:t})},onChange:function(e){var t=e.fileList,r=t.map((function(e){return e.response&&(e.url=e.response),e})),a=r.filter((function(e){return e.response||"done"===e.status})).map((function(e){return e.response||e.url}));null===n||void 0===n||n(a),O({fileList:r})},customRequest:function(e){var t=e.file,n=e.onError,r=e.onProgress,a=e.onSuccess;Object(d["W"])({uploadType:m,filePathTemplate:f,file:t,onProgress:function(e){null===r||void 0===r||r({percent:e})}}).then((function(e){var n=e.fileId,r=e.url,i="fileId"===v?n:r;null===a||void 0===a||a(i,t)})).catch((function(e){null===n||void 0===n||n(e)}))}},b),c.a.createElement("p",{className:"ant-upload-drag-icon"},c.a.createElement(s["a"],null)),c.a.createElement("p",{className:"ant-upload-text"},o||"\u70b9\u51fb\u6216\u62d6\u62fd\u6587\u4ef6\u3001\u6587\u4ef6\u5939\u4e0a\u4f20"))}},hHl9:function(e,t,n){e.exports=n.p+"static/empty.dbd309de.svg"},upc8:function(e,t,n){}}]);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。