2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6726],{61786:function(N,y,e){var a=e(88351),l=e(87841),c=e(93236),_=e(8263),C=e(62086),i=["fieldProps","proFieldProps"],t=["fieldProps","proFieldProps"],D="text",T=function(p){var A=p.fieldProps,E=p.proFieldProps,n=(0,l.Z)(p,i);return(0,C.jsx)(_.Z,(0,a.Z)({valueType:D,fieldProps:A,filedConfig:{valueType:D},proFieldProps:E},n))},m=function(p){var A=p.fieldProps,E=p.proFieldProps,n=(0,l.Z)(p,t);return(0,C.jsx)(_.Z,(0,a.Z)({valueType:"password",fieldProps:A,proFieldProps:E,filedConfig:{valueType:D}},n))},M=T;M.Password=m,M.displayName="ProFormComponent",y.Z=M},40882:function(N,y,e){e.d(y,{A:function(){return P}});var a=e(88351),l=e(84974),c=e(93236),_=e(96630),C=e(5424),i=e(40749),t=e(67654),D=e(67817),T=e(71639),m=e(80128),M=e(50126),F=e(61385),p=e(84875),A=e.n(p),E=e(75986),n=e(16216),x=e(21983),$=function(o){var d;return(0,i.Z)({},o.componentCls,{"&-title":{marginBlockEnd:o.marginXL,fontWeight:"bold"},"&-container":(0,i.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(o.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(d={display:"block",width:"100%"},(0,i.Z)(d,"".concat(o.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,i.Z)(d,"".concat(o.componentCls,"-container"),{paddingInlineStart:16}),(0,i.Z)(d,"".concat(o.antCls,"-space-item,").concat(o.antCls,"-form-item"),{width:"100%"}),(0,i.Z)(d,"".concat(o.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),d)})};function j(h){return(0,x.Xj)("ProFormGroup",function(o){var d=(0,a.Z)((0,a.Z)({},o),{},{componentCls:".".concat(h)});return[$(d)]})}var r=e(62086),f=c.forwardRef(function(h,o){var d=c.useContext(E.Z),B=d.groupProps,s=(0,a.Z)((0,a.Z)({},B),h),Z=s.children,I=s.collapsible,v=s.defaultCollapsed,u=s.style,O=s.labelLayout,W=s.title,S=W===void 0?h.label:W,w=s.tooltip,X=s.align,g=X===void 0?"start":X,k=s.direction,q=s.size,ee=q===void 0?32:q,ce=s.titleStyle,ne=s.titleRender,L=s.spaceProps,H=s.extra,J=s.autoFocus,me=(0,T.Z)(function(){return v||!1},{value:h.collapsed,onChange:h.onCollapse}),re=(0,t.Z)(me,2),Q=re[0],pe=re[1],ve=(0,c.useContext)(M.ZP.ConfigContext),fe=ve.getPrefixCls,te=(0,n.zx)(h),he=te.ColWrapper,oe=te.RowWrapper,G=fe("pro-form-group"),se=j(G),_e=se.wrapSSR,V=se.hashId,ae=I&&(0,r.jsx)(D.Z,{style:{marginInlineEnd:8},rotate:Q?void 0:90}),le=(0,r.jsx)(m.G,{label:ae?(0,r.jsxs)("div",{children:[ae,S]}):S,tooltip:w}),ie=(0,c.useCallback)(function(K){var z=K.children;return(0,r.jsx)(F.Z,(0,a.Z)((0,a.Z)({},L),{},{className:A()("".concat(G,"-container ").concat(V),L==null?void 0:L.className),size:ee,align:g,direction:k,style:(0,a.Z)({rowGap:0},L==null?void 0:L.style),children:z}))},[g,G,k,V,ee,L]),ue=ne?ne(le,h):le,xe=(0,c.useMemo)(function(){var K=[],z=c.Children.toArray(Z).map(function(R,Ce){var Y;return c.isValidElement(R)&&R!==null&&R!==void 0&&(Y=R.props)!==null&&Y!==void 0&&Y.hidden?(K.push(R),null):Ce===0&&c.isValidElement(R)&&J?c.cloneElement(R,(0,a.Z)((0,a.Z)({},R.props),{},{autoFocus:J})):R});return[(0,r.jsx)(oe,{Wrapper:ie,children:z},"children"),K.length>0?(0,r.jsx)("div",{style:{display:"none"},children:K}):null]},[Z,oe,ie,J]),de=(0,t.Z)(xe,2),Pe=de[0],ge=de[1];return _e((0,r.jsx)(he,{children:(0,r.jsxs)("div",{className:A()(G,V,(0,i.Z)({},"".concat(G,"-twoLine"),O==="twoLine")),style:u,ref:o,children:[ge,(S||w||H)&&(0,r.jsx)("div",{className:"".concat(G,"-title ").concat(V).trim(),style:ce,onClick:function(){pe(!Q)},children:H?(0,r.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[ue,(0,r.jsx)("span",{onClick:function(z){return z.stopPropagation()},children:H})]}):ue}),(0,r.jsx)("div",{style:{display:I&&Q?"none":void 0},children:Pe})]})}))});f.displayName="ProForm-Group";var U=f,b=e(9664);function P(h){return(0,r.jsx)(_.I,(0,a.Z)({layout:"vertical",submitter:{render:function(d,B){return B.reverse()}},contentRender:function(d,B){return(0,r.jsxs)(r.Fragment,{children:[d,B]})}},h))}P.Group=U,P.useForm=l.Z.useForm,P.Item=b.Z,P.useWatch=l.Z.useWatch,P.ErrorList=l.Z.ErrorList,P.Provider=l.Z.Provider,P.useFormInstance=l.Z.useFormInstance,P.EditOrReadOnlyContext=C.A},80128:function(N,y,e){e.d(y,{G:function(){return $}});var a=e(88351),l=e(40749),c=e(52319),_=e(93236),C={icon:{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"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},i=C,t=e(85651),D=function(r,f){return _.createElement(t.Z,(0,c.Z)({},r,{ref:f,icon:i}))},T=_.forwardRef(D),m=e(50126),M=e(87087),F=e(84875),p=e.n(F),A=e(21983),E=function(r){return(0,l.Z)({},r.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:r.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:r.colorTextSecondary,fontWeight:"normal",fontSize:r.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function n(j){return(0,A.Xj)("LabelIconTip",function(r){var f=(0,a.Z)((0,a.Z)({},r),{},{componentCls:".".concat(j)});return[E(f)]})}var x=e(62086),$=_.memo(function(j){var r=j.label,f=j.tooltip,U=j.ellipsis,b=j.subTitle,P=(0,_.useContext)(m.ZP.ConfigContext),h=P.getPrefixCls,o=h("pro-core-label-tip"),d=n(o),B=d.wrapSSR,s=d.hashId;if(!f&&!b)return(0,x.jsx)(x.Fragment,{children:r});var Z=typeof f=="string"||_.isValidElement(f)?{title:f}:f,I=(Z==null?void 0:Z.icon)||(0,x.jsx)(T,{});return B((0,x.jsxs)("div",{className:p()(o,s),onMouseDown:function(u){return u.stopPropagation()},onMouseLeave:function(u){return u.stopPropagation()},onMouseMove:function(u){return u.stopPropagation()},children:[(0,x.jsx)("div",{className:p()("".concat(o,"-title"),s,(0,l.Z)({},"".concat(o,"-title-ellipsis"),U)),children:r}),b&&(0,x.jsx)("div",{className:"".concat(o,"-subtitle ").concat(s).trim(),children:b}),f&&(0,x.jsx)(M.Z,(0,a.Z)((0,a.Z)({},Z),{},{children:(0,x.jsx)("span",{className:"".concat(o,"-icon ").concat(s).trim(),children:I})}))]}))})},85968:function(N,y,e){var a=e(23674),l=e(62086),c=function(C){var i=(0,a.useModel)("@@initialState"),t=i.initialState,D=i.loading,T=i.error,m=i.refresh,M=i.setInitialState,F=t==null?void 0:t.authPermissionAction;if(!F)return(0,l.jsx)("span",{children:C.children});var p=F.indexOf(C.action);return p>=0?(0,l.jsx)("span",{children:C.children}):(0,l.jsx)(l.Fragment,{})};y.Z=c},60776:function(N,y,e){e.r(y);var a=e(25359),l=e.n(a),c=e(49811),_=e.n(c),C=e(54306),i=e.n(C),t=e(40882),D=e(61786),T=e(50336),m=e(4225),M=e(47821),F=e(94229),p=e(90627),A=e(85968),E=e(93236),n=e(62086),x=p.Z.ConfigController,$=x.configStore,j=x.configItems;y.default=function(){var r={key:"",value:"",comment:""},f=(0,E.useState)([]),U=i()(f,2),b=U[0],P=U[1],h=(0,E.useState)(r),o=i()(h,2),d=o[0],B=o[1],s=(0,E.useRef)(),Z=function(){var v=_()(l()().mark(function u(O){var W,S,w;return l()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=0,g.next=3,$(O);case 3:W=g.sent,S=W.data,w=W.errorMessage,g.next=10;break;case 8:g.prev=8,g.t0=g.catch(0);case 10:case"end":return g.stop()}},u,null,[[0,8]])}));return function(O){return v.apply(this,arguments)}}();(0,E.useEffect)(function(){j().then(function(v){var u,O=v.data,W=v.success;P(O.items),(u=s.current)===null||u===void 0||u.setFieldsValue(O.data)})},[]);var I=[];return I.shop_device_fee_bonus=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(t.A.Group,{children:[(0,n.jsx)(t.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u8865\u8D34\u5929\u6570",name:["shop_device_fee_bonus","help_day"],children:(0,n.jsx)(m.Z,{min:0,max:100,addonAfter:"\u5929"})}),(0,n.jsx)(t.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u8865\u8D34\u91D1\u989D",name:["shop_device_fee_bonus","help_money"],children:(0,n.jsx)(m.Z,{min:0,max:10,addonBefore:"\uFFE5"})})]}),(0,n.jsx)(M.Z,{}),(0,n.jsxs)(t.A.Group,{children:[(0,n.jsx)(t.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u670D\u52A1\u8D39\u91D1\u989D",name:["shop_device_fee_bonus","money"],children:(0,n.jsx)(m.Z,{min:0,max:1e3,addonBefore:"\uFFE5"})}),(0,n.jsx)(t.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u6CE2\u52A8\u7CFB\u6570(\u4E0A\u4E0B\u6CE2\u52A8)",name:["shop_device_fee_bonus","ratio"],children:(0,n.jsx)(m.Z,{min:0,max:50,addonAfter:"%"})})]})]}),I.shop_recharge=(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(t.A.Group,{children:(0,n.jsx)(t.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u6700\u4F4E\u5145\u503C",name:["shop_recharge","min_money"],children:(0,n.jsx)(m.Z,{min:1,max:100,addonBefore:"\uFFE5"})})})}),I.shop_withdraw=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(t.A.Group,{children:[(0,n.jsx)(t.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u6700\u4F4E\u63D0\u73B0",name:["shop_withdraw","min_money"],children:(0,n.jsx)(m.Z,{min:1,max:1e3,addonBefore:"\uFFE5"})}),(0,n.jsx)(t.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u63D0\u73B0\u624B\u7EED\u8D39",name:["shop_withdraw","fee"],children:(0,n.jsx)(m.Z,{min:1,max:10,addonAfter:"%"})})]}),(0,n.jsxs)(t.A.Group,{children:[(0,n.jsx)(t.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u5E74\u9F84\u9650\u5236\uFF08\u7537\uFF09",name:["shop_withdraw","age1"],children:(0,n.jsx)(m.Z,{max:65,addonAfter:"\u5C81"})}),(0,n.jsx)(t.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u5E74\u9F84\u9650\u5236\uFF08\u5973\uFF09",name:["shop_withdraw","age2"],children:(0,n.jsx)(m.Z,{max:65,addonAfter:"\u5C81"})})]})]}),I.sensitive=(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(t.A.Group,{children:(0,n.jsx)(t.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u624B\u673A\u53F7\uFF08\u63A5\u6536\u9A8C\u8BC1\u7801\uFF09",name:["sensitive","mobile"],children:(0,n.jsx)(D.Z,{})})})}),(0,n.jsx)(T._z,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(t.A,{style:{width:800},initialValues:d,onFinish:function(){var v=_()(l()().mark(function u(O){return l()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:Z(O);case 1:case"end":return S.stop()}},u)}));return function(u){return v.apply(this,arguments)}}(),formRef:s,submitter:{searchConfig:{submitText:"\u4FDD\u5B58"},resetButtonProps:{style:{display:"none"}},submitButtonProps:{}},children:(0,n.jsx)(F.Z,{type:"card",onChange:function(u){console.log(u)},items:b.map(function(v,u){return{label:v.name,key:v.key,children:I[v.key]}})})})})})}}}]);
|