filesbox/web/dist/75905.89fca8fb.async.js
2024-07-26 14:10:54 +08:00

2 lines
3.5 KiB
JavaScript

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[75905],{86615:function(x,E,e){"use strict";var C=e(88983),P=e(47933),s=e(28991),v=e(81253),o=e(85893),_=e(22270),n=e(67294),c=e(64893),d=e(47869),M=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],p=n.forwardRef(function(a,O){var t=a.fieldProps,h=a.options,I=a.radioType,R=a.layout,g=a.proFieldProps,f=a.valueEnum,r=(0,v.Z)(a,M);return(0,o.jsx)(d.Z,(0,s.Z)((0,s.Z)({valueType:I==="button"?"radioButton":"radio",ref:O,valueEnum:(0,_.h)(f,void 0)},r),{},{fieldProps:(0,s.Z)({options:h,layout:R},t),proFieldProps:g,filedConfig:{customLightMode:!0}}))}),m=n.forwardRef(function(a,O){var t=a.fieldProps,h=a.children;return(0,o.jsx)(P.ZP,(0,s.Z)((0,s.Z)({},t),{},{ref:O,children:h}))}),D=(0,c.G)(m,{valuePropName:"checked",ignoreWidth:!0}),l=D;l.Group=p,l.Button=P.ZP.Button,l.displayName="ProFormComponent",E.Z=l},90672:function(x,E,e){"use strict";var C=e(28991),P=e(81253),s=e(85893),v=e(67294),o=e(47869),_=["fieldProps","proFieldProps"],n=function(d,M){var p=d.fieldProps,m=d.proFieldProps,D=(0,P.Z)(d,_);return(0,s.jsx)(o.Z,(0,C.Z)({ref:M,valueType:"textarea",fieldProps:p,proFieldProps:m},D))};E.Z=v.forwardRef(n)},47466:function(x){x.exports={reportMax:"reportMax___2hXOf",reportBox:"reportBox___1H2bb",footBox:"footBox___ztX1V"}},75905:function(x,E,e){"use strict";e.r(E);var C=e(57663),P=e(71577),s=e(74379),v=e(38648),o=e(2824),_=e(67294),n=e(30672),c=e(34895),d=e(51964),M=e.n(d),p=e(86615),m=e(90672),D=e(47466),l=e.n(D),a=e(85893),O=t=>{var h=t.open,I=t.issmall,R=t.setOpenModel,g=t.showIndex,f=t.shareData,r=(0,n.YB)(),U=(0,n.I0)(),Z=(0,_.useState)(100),W=(0,o.Z)(Z,2),j=W[0],F=W[1],S=(0,_.useState)("illegal"),A=(0,o.Z)(S,2),T=A[0],b=A[1],G=(0,_.useState)(1),L=(0,o.Z)(G,2),y=L[0],N=L[1],X=(0,_.useState)(""),K=(0,o.Z)(X,2),B=K[0],z=K[1],H=()=>{var i=f!=null?f:{},u=i.shareID,V={shareId:u,reportType:T=="illegal"?y:5,reason:T=="other"?B==null?void 0:B.trim():void 0};U({type:"storage/reportShare",payload:V,callback:()=>{v.Z.success({message:r.formatMessage({id:"admin.share.rptSuccess"})}),R(!1,"visible")}})};return(0,a.jsx)(c.Z,{type:"report",title:r.formatMessage({id:"common.report"}),open:h,issmall:I,showIndex:g,modelZindex:j,setOpenModel:R,setModelZindex:F,children:(0,a.jsx)(M(),{children:(0,a.jsxs)("div",{className:l().reportMax,children:[(0,a.jsxs)("div",{className:l().reportBox,children:[(0,a.jsx)("p",{children:r.formatMessage({id:"explorer.share.rptTitle"})}),(0,a.jsx)("p",{children:r.formatMessage({id:"admin.share.rptDesc"})}),(0,a.jsx)(p.Z.Group,{radioType:"button",options:[{label:r.formatMessage({id:"explorer.share.illegal"}),value:"illegal"},{label:r.formatMessage({id:"admin.share.rptType5"}),value:"other"}],fieldProps:{buttonStyle:"solid",value:T,onChange:i=>{var u=i.target.value;return b(u)}}}),T=="illegal"?(0,a.jsx)(p.Z.Group,{options:[{label:r.formatMessage({id:"admin.share.rptType1"}),value:1},{label:r.formatMessage({id:"admin.share.rptType2"}),value:2},{label:r.formatMessage({id:"admin.share.rptType3"}),value:3},{label:r.formatMessage({id:"admin.share.rptType4"}),value:4}],fieldProps:{value:y,onChange:i=>{var u=i.target.value;return N(u)}}}):null,T=="other"?(0,a.jsx)(m.Z,{placeholder:r.formatMessage({id:"explorer.share.inputRptDesc"}),fieldProps:{maxLength:120,value:B,onChange:i=>{var u=i.target.value;return z(u)}}}):null]}),(0,a.jsx)("div",{className:l().footBox,children:(0,a.jsx)(P.Z,{type:"primary",onClick:H,children:r.formatMessage({id:"common.submit"})})})]})})})};E.default=O}}]);