"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5917],{35748:function(L,c,e){var h=e(35361),i=e(56929),C=e(50959),p=e(20734),E=e(11527),F=["fieldProps","min","proFieldProps","max"],d=function(o,P){var j=o.fieldProps,T=o.min,D=o.proFieldProps,r=o.max,y=(0,i.Z)(o,F);return(0,E.jsx)(p.Z,(0,h.Z)({valueType:"digit",fieldProps:(0,h.Z)({min:T,max:r},j),ref:P,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:D},y))},t=C.forwardRef(d);c.Z=t},27471:function(L,c,e){e.r(c),e.d(c,{default:function(){return b}});var h=e(90228),i=e.n(h),C=e(87999),p=e.n(C),E=e(48305),F=e.n(E),d=e(50959),t=e(49547),R=e(35748),o=e(19014),P=e(35361),j=e(56929),T=e(71252),D=e(20734),r=e(11527),y=["fieldProps","proFieldProps"],I="dateTime",U=d.forwardRef(function(g,a){var Z=g.fieldProps,x=g.proFieldProps,u=(0,j.Z)(g,y),m=(0,d.useContext)(T.Z);return(0,r.jsx)(D.Z,(0,P.Z)({ref:a,fieldProps:(0,P.Z)({getPopupContainer:m.getPopupContainer},Z),valueType:I,proFieldProps:x,filedConfig:{valueType:I,customLightMode:!0}},u))}),S=U,G=e(50925),K=e(94675),$=e(7485),z=e(2733),B=e(17885),H=e(66001),M=e.n(H),ee=e(8776),V=function(a){var Z=(0,d.useState)(M().createEditorState("")),x=F()(Z,2),u=x[0],m=x[1],N=G.Z.useForm(),J=F()(N,1),f=J[0],W=a.values;(0,d.useEffect)(function(){m(M().createEditorState(W.detail)),f.resetFields(),f.setFieldsValue(W)},[f,a]);var re=(0,$.useIntl)(),Q=function(){f.submit()},X=function(){a.onCancel()},Y=function(){var l=p()(i()().mark(function s(n){return i()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:n.detail=u.toHTML(),a.onSubmit(n);case 2:case"end":return v.stop()}},s)}));return function(n){return l.apply(this,arguments)}}(),k=["undo","redo","separator","font-size","line-height","letter-spacing","separator","text-color","bold","italic","underline","strike-through","separator","superscript","subscript","remove-styles","emoji","separator","text-indent","text-align","separator","headings","list-ul","list-ol","blockquote","code","separator","link","separator","hr","separator","clear"],w=function(){var l=p()(i()().mark(function s(n){var O,v;return i()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:O=[".mp4",".mkv",".avi",".mov",".wmv",".flv",".webm",".m4v",".3gp",".3g2"],v=n.toLowerCase(),O.some(function(_){return v.endsWith(_)})?m(B.ContentUtils.insertMedias(u,[{type:"VIDEO",url:n}])):m(B.ContentUtils.insertMedias(u,[{type:"IMAGE",url:n}]));case 3:case"end":return A.stop()}},s)}));return function(n){return l.apply(this,arguments)}}(),q=["separator",{key:"FilesManagerImage",title:"\u4E0A\u4F20\u56FE\u7247/\u89C6\u9891",html:null,text:(0,r.jsx)(z.Z,{fileType:"images",mode:"",imagesShow:!1,onChange:w,count:1}),onClick:function(){console.log("Hello World!")}}];return(0,r.jsx)(K.Z,{width:800,title:"\u516C\u544A\u7BA1\u7406",open:a.open,forceRender:!0,destroyOnClose:!0,onOk:Q,onCancel:X,children:(0,r.jsxs)(t.A,{form:f,submitter:!1,layout:"horizontal",onFinish:Y,children:[(0,r.jsx)(R.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,r.jsx)(t.A.Group,{children:(0,r.jsx)(o.Z,{name:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"})}),(0,r.jsx)(t.A.Group,{children:(0,r.jsx)(o.Z,{name:"type",label:"\u7C7B\u578B",placeholder:"\u8BF7\u8F93\u5165\u7C7B\u578B"})}),(0,r.jsxs)(t.A.Group,{children:[(0,r.jsx)(S,{rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}],name:"startTime",label:"\u5F00\u59CB\u65E5\u671F"}),(0,r.jsx)(S,{rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}],name:"endTime",label:"\u7ED3\u675F\u65E5\u671F"})]}),(0,r.jsx)(t.A.Group,{children:(0,r.jsx)(t.A.Item,{name:"detail",children:(0,r.jsx)("div",{className:"border-solid border-2 border-indigo-600",children:(0,r.jsx)(M(),{value:u,controls:k,extendControls:q,onChange:function(s){m(s)}})})})})]})})},b=V}}]);
