You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

p__Feedback__index.2d8d63d7.async.js 17KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[325],{64082:function(H,O,e){e.d(O,{Z:function(){return u}});var s=e(87462),d=e(62435),l={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},v=l,h=e(84089),M=function(p,i){return d.createElement(h.Z,(0,s.Z)({},p,{ref:i,icon:v}))},m=d.forwardRef(M),u=m},21134:function(H,O,e){var s=e(1413),d=e(45987),l=e(62435),v=e(49994),h=e(86074),M=["fieldProps","request","params","proFieldProps"],m=function(p,i){var E=p.fieldProps,t=p.request,C=p.params,f=p.proFieldProps,c=(0,d.Z)(p,M);return(0,h.jsx)(v.Z,(0,s.Z)({valueType:"segmented",fieldProps:E,ref:i,request:t,params:C,filedConfig:{customLightMode:!0},proFieldProps:f},c))},u=l.forwardRef(m);O.Z=u},64317:function(H,O,e){var s=e(1413),d=e(45987),l=e(22270),v=e(62435),h=e(66758),M=e(49994),m=e(86074),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],g=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(c,T){var U=c.fieldProps,Z=c.children,D=c.params,R=c.proFieldProps,S=c.mode,y=c.valueEnum,A=c.request,W=c.showSearch,j=c.options,n=(0,d.Z)(c,u),a=(0,v.useContext)(h.Z);return(0,m.jsx)(M.Z,(0,s.Z)((0,s.Z)({valueEnum:(0,l.h)(y),request:A,params:D,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,s.Z)({options:j,mode:S,showSearch:W,getPopupContainer:a.getPopupContainer},U),ref:T,proFieldProps:R},n),{},{children:Z}))},i=v.forwardRef(function(f,c){var T=f.fieldProps,U=f.children,Z=f.params,D=f.proFieldProps,R=f.mode,S=f.valueEnum,y=f.request,A=f.options,W=(0,d.Z)(f,g),j=(0,s.Z)({options:A,mode:R||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},T),n=(0,v.useContext)(h.Z);return(0,m.jsx)(M.Z,(0,s.Z)((0,s.Z)({valueEnum:(0,l.h)(S),request:y,params:Z,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,s.Z)({getPopupContainer:n.getPopupContainer},j),ref:c,proFieldProps:D},W),{},{children:U}))}),E=v.forwardRef(p),t=i,C=E;C.SearchSelect=t,C.displayName="ProFormComponent",O.Z=C},52688:function(H,O,e){var s=e(1413),d=e(45987),l=e(62435),v=e(49994),h=e(86074),M=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],m=l.forwardRef(function(u,g){var p=u.fieldProps,i=u.unCheckedChildren,E=u.checkedChildren,t=u.proFieldProps,C=(0,d.Z)(u,M);return(0,h.jsx)(v.Z,(0,s.Z)({valueType:"switch",fieldProps:(0,s.Z)({unCheckedChildren:i,checkedChildren:E},p),ref:g,valuePropName:"checked",proFieldProps:t,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},C))});O.Z=m},80876:function(H,O,e){var s=e(1413),d=e(64082),l=e(28459),v=e(2058),h=e(62435),M=e(9105),m=e(28614),u=e(86074),g=h.forwardRef(function(i,E){var t=i.fieldProps,C=i.title,f=C===void 0?"\u5355\u51FB\u6216\u62D6\u52A8\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u8FDB\u884C\u4E0A\u4F20":C,c=i.icon,T=c===void 0?(0,u.jsx)(d.Z,{}):c,U=i.description,Z=U===void 0?"\u652F\u6301\u5355\u6B21\u6216\u6279\u91CF\u4E0A\u4F20":U,D=i.action,R=i.accept,S=i.onChange,y=i.value,A=i.children,W=i.max,j=i.proFieldProps,n=(0,h.useContext)(l.ZP.ConfigContext),a=(0,h.useContext)(M.A),o=(j==null?void 0:j.mode)||a.mode||"edit",r=n.getPrefixCls("upload"),_=(W===void 0||!y||(y==null?void 0:y.length)<W)&&o!=="read"&&(j==null?void 0:j.readonly)!==!0;return(0,u.jsxs)(v.Z.Dragger,(0,s.Z)((0,s.Z)({ref:E,name:"files",action:D,accept:R,fileList:y},t),{},{onChange:function(Q){S==null||S(Q),t!=null&&t.onChange&&(t==null||t.onChange(Q))},style:(0,s.Z)((0,s.Z)({},t==null?void 0:t.style),{},{display:_?void 0:"none"}),children:[(0,u.jsx)("p",{className:"".concat(r,"-drag-icon"),children:T}),(0,u.jsx)("p",{className:"".concat(r,"-text"),children:f}),(0,u.jsx)("p",{className:"".concat(r,"-hint"),children:Z}),A?(0,u.jsx)("div",{className:"".concat(r,"-extra"),style:{padding:16},children:A}):null]}))}),p=(0,m.G)(g,{getValueFromEvent:function(E){return E.fileList}});O.Z=p},57759:function(H,O,e){var s=e(59530),d=e(55375),l=e(68872),v=e(80876),h=e(86074),M=function(u){var g=u.onUploadComplete,p=u.uploadTxt,i=u.form_name,E=function(C){g&&g(C)};return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(v.Z,{label:p,name:i,icon:null,fieldProps:{fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(C){var f=new FormData;f.append("doc",C.file),console.log(f),(0,s.request)(d.FH+"/common/doc/upload?doctype=1",{method:"post",data:f,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(c){E(c.data.filename)}).catch(function(c){console.log(c),l.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u4EF6\u7C7B\u578B\uFF0C\u5982\u6709\u7591\u95EE\uFF0C\u8BF7\u54A8\u8BE2\u7BA1\u7406\u5458")})}}})})};O.Z=M},67562:function(H,O,e){var s=e(5574),d=e.n(s),l=e(71167),v=e.n(l),h=e(40190),M=e(62435),m=e(86492),u=e.n(m),g=e(86074),p=function(E){var t=E.defaultValue,C=E.placeholder,f=E.onChange,c=(0,M.useState)(t&&u().decode(t)),T=d()(c,2),U=T[0],Z=T[1],D=function(S){Z(S),f(S)};return(0,M.useEffect)(function(){if(t){var R=t.replace(/<[^>]*>/g,"");D(R?t:"")}},[t]),(0,g.jsx)("div",{children:(0,g.jsx)(v(),{bounds:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"]]},value:U,onChange:D,theme:"snow",placeholder:C})})};O.Z=p},67119:function(H,O,e){var s=e(5574),d=e.n(s),l=e(62435),v=e(59530),h=e(55375),M=e(42075),m=e(68872),u=e(98163),g=e(32443),p=e(86074),i=function(t){var C=t.onUploadComplete,f=t.uploadTxt,c=t.image_type,T=t.form_name,U=t.image_length,Z=t.multiple,D=t.imageUrl,R=function(n){n&&C(n)},S=(0,l.useState)(D),y=d()(S,2),A=y[0],W=y[1];return(0,l.useEffect)(function(){W(D)},[D]),(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(M.Z,{children:[(0,p.jsx)(g.Z,{label:f,name:T,icon:null,title:f,fieldProps:{maxCount:U,multiple:Z,fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(n){var a=new FormData;a.append("image",n.file),console.log(a),(0,v.request)(h.FH+"/common/image/upload?imgtype="+c,{method:"post",data:a,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(o){W(o.data.filename),R(o.data.filename)}).catch(function(o){console.log(o),m.ZP.error("\u4E0A\u4F20\u5931\u8D25")})}}}),A&&(0,p.jsx)(u.Z,{src:"".concat(h.VO).concat(A),width:102,height:102,style:{borderRadius:8}})]})})};O.Z=i},32572:function(H,O,e){e.r(O),e.d(O,{default:function(){return Pe}});var s=e(5574),d=e.n(s),l=e(62435),v=e(59530),h=e(28459),M=e(15009),m=e.n(M),u=e(99289),g=e.n(u),p=e(95338),i=e(14726),E=e(39680),t=e(86074),C=function(P){var L=P.dispatch,q=P.getId,X=P.openModel,B=(0,l.useRef)(),ee=(0,l.useState)([]),G=d()(ee,2),ae=G[0],ie=G[1],le=(0,l.useState)(0),ue=d()(le,2),ce=ue[0],te=ue[1],Ce=(0,l.useState)(1),me=d()(Ce,2),re=me[0],J=me[1],xe=(0,l.useState)(10),se=d()(xe,2),pe=se[0],de=se[1],he=function(b){q(b)};return(0,l.useEffect)(function(){X.openModal||B.current.reload()},[X.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(h.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,t.jsx)(p.Z,{size:"small",scroll:{y:480,x:"auto"},bordered:!0,actionRef:B,dataSource:ae,search:{span:8,labelWidth:"auto"},columns:[{title:"\u7528\u6237",dataIndex:"name"},{title:"\u90AE\u7BB1",dataIndex:"email"},{title:"\u6D88\u606F\u5185\u5BB9",dataIndex:"content"},{title:"\u64CD\u4F5C",key:"option",valueType:"option",render:function(b,$,Me){return[(0,t.jsx)(i.ZP,{type:"link",onClick:function(){he($.id),L({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,t.jsx)(i.ZP,{type:"link",onClick:function(){},children:"\u5220\u9664"},"2")]}}],rowKey:"id",pagination:{current:re,pageSize:pe,showSizeChanger:!0,total:ce,pageSizeOptions:[9,18,27,99],onChange:function(b,$){J(b),de($)},onShowSizeChange:function(b,$){J(b),de($)}},request:g()(m()().mark(function ne(){var b,$=arguments;return m()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return b=$.length>0&&$[0]!==void 0?$[0]:{},Y.abrupt("return",(0,E.ofO)({page:re,pagesize:pe,sort:"id",sortby:"desc",keyword:b.name,customer_id:b.customer_id}).then(function(fe){ie(fe.data.feedbacks),te(fe.data.total)}));case 2:case"end":return Y.stop()}},ne)})),headerTitle:"\u53CD\u9988\u5217\u8868"})})})},f=(0,v.connect)(function(K){var P=K.dictModel,L=K.openModel;return{dictModel:P,openModel:L}})(C),c=e(97269),T=e(5966),U=e(52688),Z=e(64317),D=e(19109),R=e(97462),S=e(21134),y=e(17788),A=e(86250),W=e(42075),j=e(68872),n=e(71230),a=e(15746),o=e(98163),r=e(22015),_=e(23323),w=e(55375),Q=e(67119),k=e(57759),ve=e(67562),oe={label:"name",value:"id"},ge=function(P){var L=P.dispatch,q=P.dictModel,X=P.openModel,B=P.id,ee=(0,l.useRef)(),G=(0,l.useState)(!1),ae=d()(G,2),ie=ae[0],le=ae[1],ue=(0,l.useState)(null),ce=d()(ue,2),te=ce[0],Ce=ce[1];(0,l.useEffect)(function(){le(X.openModal)},[X.openModal]);var me=(0,l.useState)(""),re=d()(me,2),J=re[0],xe=re[1],se=function(F){xe(F)},pe=(0,l.useState)(!1),de=d()(pe,2),he=de[0],ne=de[1],b=(0,l.useState)(""),$=d()(b,2),Me=$[0],Y=$[1],fe=function(F){Y(F)},De=(0,l.useState)(""),_e=d()(De,2),Fe=_e[0],Se=_e[1];return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(h.ZP,{theme:{token:{colorPrimary:"#4FBE70"},components:{Segmented:{itemSelectedBg:"#19be6e",itemSelectedColor:"#ffffff"}}},children:(0,t.jsx)(y.Z,{open:ie,title:B?"\u7F16\u8F91\u6587\u7AE0":"\u6DFB\u52A0\u6587\u7AE0",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){L({type:"openModel/getOpenModal",payload:!1})},children:(0,t.jsxs)(c.A,{formRef:ee,request:g()(m()().mark(function I(){var F;return m()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(!B){V.next=7;break}return V.next=3,(0,E.USp)({id:B});case 3:return F=V.sent,V.abrupt("return",F.data);case 7:return V.abrupt("return",{title:"",cover_img:"",doc_url:"",section_id:null,content:"",stick_top:0,hot:0,author:""});case 8:case"end":return V.stop()}},I)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(F,x){return(0,t.jsxs)(A.Z,{justify:"flex-end",children:[" ",(0,t.jsx)(W.Z,{children:x})]})},onReset:function(){Ce(null),L({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var I=g()(m()().mark(function F(x){var V,Oe;return m()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(x.cover_img=J||"",console.log(x),!B){N.next=11;break}return x.id=B,N.next=6,(0,E.XcO)(x);case 6:V=N.sent,j.ZP.success("\u63D0\u4EA4\u6210\u529F"),L({type:"openModel/getOpenModal",payload:!1}),N.next=16;break;case 11:return N.next=13,(0,E.qMy)(x);case 13:Oe=N.sent,j.ZP.success("\u63D0\u4EA4\u6210\u529F"),L({type:"openModel/getOpenModal",payload:!1});case 16:case"end":return N.stop()}},F)}));return function(F){return I.apply(this,arguments)}}(),children:[(0,t.jsx)(T.Z,{label:"\u6587\u7AE0\u6807\u9898",name:"title",placeholder:"\u8BF7\u8F93\u5165\u6587\u7AE0\u6807\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u7AE0\u6807\u9898"}]}),(0,t.jsxs)(n.Z,{gutter:[16,16],children:[te?(0,t.jsx)(a.Z,{span:4,children:(0,t.jsx)(Q.Z,{multiple:!1,form_name:"cover_img",image_length:1,uploadTxt:"\u4E0A\u4F20\u5C01\u9762\u56FE",image_type:1,onUploadComplete:se})}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(a.Z,{span:4,children:(0,t.jsx)(Q.Z,{multiple:!1,form_name:"cover_img",image_length:1,uploadTxt:"\u4E0A\u4F20\u5C01\u9762\u56FE",image_type:1,onUploadComplete:se})})}),te?(0,t.jsx)(a.Z,{span:4,children:J?(0,t.jsx)(o.Z,{src:"".concat(w.VO).concat(J),style:{marginBottom:"16px",width:"100px",height:"100px"}}):(0,t.jsx)(o.Z,{src:"".concat(w.VO).concat(te==null?void 0:te.cover_img),style:{marginTop:"16px",width:"200px",height:"200px"}})}):(0,t.jsx)(t.Fragment,{children:J?(0,t.jsxs)(a.Z,{span:4,children:[" ",(0,t.jsx)(o.Z,{src:"".concat(w.VO).concat(J),style:{marginTop:"32px",width:"100px",height:"100px"}})," "]}):""})]}),(0,t.jsx)(U.Z,{fieldProps:{checked:he,checkedChildren:"\u5173\u95ED\u4E0A\u4F20\u6587\u4EF6",unCheckedChildren:"\u5F00\u542F\u4E0A\u4F20\u6587\u4EF6",onChange:function(F){ne(F)}}}),he&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Z,{form_name:"doc_url",uploadTxt:"\u4E0A\u4F20\u6587\u4EF6",onUploadComplete:fe}),(0,t.jsxs)(r.Z.Paragraph,{copyable:!0,children:["\u94FE\u63A5\uFF1A","".concat(w.VO).concat(Me)]})]}),(0,t.jsx)(Z.Z,{showSearch:!0,name:"section_id",label:"\u680F\u76EE/\u9891\u9053",placeholder:"\u8BF7\u9009\u62E9\u680F\u76EE/\u9891\u9053",fieldProps:{fieldNames:oe},request:function(F){return(0,E.DGC)({page:1,pagesize:100,keyword:F.keyWords}).then(function(x){return x.data.sections})}}),(0,t.jsx)(n.Z,{gutter:[16,16],children:(0,t.jsx)(a.Z,{span:24,children:(0,t.jsx)(_.Z.Item,{name:"content",label:"\u6587\u7AE0\u5185\u5BB9",rules:[{required:!0}],children:(0,t.jsx)(D.i$,{children:function(){return(0,t.jsx)(R.Z,{name:["content"],children:function(x,V){var Oe=x.content;return(0,t.jsx)(ve.Z,{placeholder:"\u8BF7\u8F93\u5165\u6587\u7AE0\u5185\u5BB9",defaultValue:Oe,onChange:function(N){Se(N),V.formRef.current.setFieldsValue({content:N})}})}})}})})})}),(0,t.jsx)(S.Z,{name:"stick_top",label:"\u662F\u5426\u7F6E\u9876",request:g()(m()().mark(function I(){return m()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",[{label:"\u662F",value:1},{label:"\u5426",value:2}]);case 1:case"end":return x.stop()}},I)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u7F6E\u9876"}]}),(0,t.jsx)(S.Z,{name:"hot",label:"\u6210\u4E3A\u70ED\u95E8",request:g()(m()().mark(function I(){return m()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",[{label:"\u666E\u901A",value:1},{label:"\u70ED\u95E8\u63A8\u8350",value:2}]);case 1:case"end":return x.stop()}},I)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u6210\u4E3A\u70ED\u95E8"}]}),(0,t.jsx)(T.Z,{name:"author",label:"\u4F5C\u8005",placeholder:"\u8BF7\u8F93\u5165\u4F5C\u8005"})]})})})})},Ee=(0,v.connect)(function(K){var P=K.dictModel,L=K.openModel;return{dictModel:P,openModel:L}})(ge),z=function(P){var L=P.dispatch,q=P.openModel,X=(0,l.useState)(0),B=d()(X,2),ee=B[0],G=B[1],ae=function(le){G(le)};return(0,l.useEffect)(function(){q.openModal||G(0)},[q.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(h.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,t.jsx)(f,{getId:ae}),(0,t.jsx)(Ee,{id:ee})]})})},Pe=(0,v.connect)(function(K){var P=K.openModel;return{openModel:P}})(z)},86250:function(H,O,e){e.d(O,{Z:function(){return j}});var s=e(62435),d=e(93967),l=e.n(d),v=e(98423),h=e(98065),M=e(53124),m=e(92030),u=e(45503);const g=["wrap","nowrap","wrap-reverse"],p=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],i=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],E=(n,a)=>{const o=a.wrap===!0?"wrap":a.wrap;return{[`${n}-wrap-${o}`]:o&&g.includes(o)}},t=(n,a)=>{const o={};return i.forEach(r=>{o[`${n}-align-${r}`]=a.align===r}),o[`${n}-align-stretch`]=!a.align&&!!a.vertical,o},C=(n,a)=>{const o={};return p.forEach(r=>{o[`${n}-justify-${r}`]=a.justify===r}),o};function f(n,a){return l()(Object.assign(Object.assign(Object.assign({},E(n,a)),t(n,a)),C(n,a)))}var c=f;const T=n=>{const{componentCls:a}=n;return{[a]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},U=n=>{const{componentCls:a}=n;return{[a]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},Z=n=>{const{componentCls:a}=n,o={};return g.forEach(r=>{o[`${a}-wrap-${r}`]={flexWrap:r}}),o},D=n=>{const{componentCls:a}=n,o={};return i.forEach(r=>{o[`${a}-align-${r}`]={alignItems:r}}),o},R=n=>{const{componentCls:a}=n,o={};return p.forEach(r=>{o[`${a}-justify-${r}`]={justifyContent:r}}),o},S=()=>({});var y=(0,m.I$)("Flex",n=>{const{paddingXS:a,padding:o,paddingLG:r}=n,_=(0,u.TS)(n,{flexGapSM:a,flexGap:o,flexGapLG:r});return[T(_),U(_),Z(_),D(_),R(_)]},S,{resetStyle:!1}),A=function(n,a){var o={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&a.indexOf(r)<0&&(o[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,r=Object.getOwnPropertySymbols(n);_<r.length;_++)a.indexOf(r[_])<0&&Object.prototype.propertyIsEnumerable.call(n,r[_])&&(o[r[_]]=n[r[_]]);return o},j=s.forwardRef((n,a)=>{const{prefixCls:o,rootClassName:r,className:_,style:w,flex:Q,gap:k,children:ve,vertical:oe=!1,component:ge="div"}=n,Ee=A(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:z,direction:Pe,getPrefixCls:K}=s.useContext(M.E_),P=K("flex",o),[L,q,X]=y(P),B=oe!=null?oe:z==null?void 0:z.vertical,ee=l()(_,r,z==null?void 0:z.className,P,q,X,c(P,n),{[`${P}-rtl`]:Pe==="rtl",[`${P}-gap-${k}`]:(0,h.n)(k),[`${P}-vertical`]:B}),G=Object.assign(Object.assign({},z==null?void 0:z.style),w);return Q&&(G.flex=Q),k&&!(0,h.n)(k)&&(G.gap=k),L(s.createElement(ge,Object.assign({ref:a,className:ee,style:G},(0,v.Z)(Ee,["justify","wrap","align"])),ve))})}}]);