"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[857],{46701:function(oe,M,n){n.r(M);var l=n(15009),b=n.n(l),U=n(99289),I=n.n(U),B=n(5574),D=n.n(B),z=n(90930),R=n(85601),A=n(66309),S=n(67294),N=n(48357),_=n(85893),E=function(){var O=(0,S.useRef)(),P=(0,S.useState)(void 0),$=D()(P,2),W=$[0],k=$[1],K=function(){var d=I()(b()().mark(function i(){var u,e,r;return b()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,N.ln)();case 2:return e=t.sent,r=[],(u=e.data)===null||u===void 0||u.forEach(function(a){r.push({label:a.name,value:a.code})}),t.abrupt("return",r);case 6:case"end":return t.stop()}},i)}));return function(){return d.apply(this,arguments)}}(),v=function(){return window.innerWidth<=768},H=(0,S.useState)({deviceId:{show:!v()},appName:{show:!v()},platform:{show:!v()},device:{show:!v()},ip:{show:!v()},advType:{show:!v()}}),L=D()(H,2),F=L[0],y=L[1],w=[{title:"\u5E94\u7528\u540D\u79F0",hideInTable:!0,dataIndex:"code",valueType:"select",request:K},{title:"\u8BBE\u5907id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u5E94\u7528\u540D\u79F0",hideInSearch:!0,dataIndex:"appName",valueType:"textarea"},{title:"\u5E73\u53F0",dataIndex:"platform",valueEnum:{1:{text:"\u7A7F\u5C71\u7532"},2:{text:"\u817E\u8BAF"},5:{text:"\u5FEB\u624B"},7:{text:"Sigmob"}}},{title:"\u5E7F\u544A\u7C7B\u578B",dataIndex:"advType",valueEnum:{1:{text:"\u6A2A\u5E45"},2:{text:"\u63D2\u9875"},3:{text:"\u6FC0\u52B1\u89C6\u9891"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(i){return i/100}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,valueType:"textarea",renderText:function(i,u){return(0,_.jsxs)("p",{children:[u.deviceBrand," ",(0,_.jsx)("br",{})," ",u.deviceName]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u53E3\u5B50",dataIndex:"adminName",hideInSearch:!0,valueType:"textarea"},{title:"\u72B6\u6001",dataIndex:"status",hideInSearch:!0,renderText:function(){return(0,_.jsx)(A.Z,{color:"#eb0fcc",children:"\u6210\u529F"})}},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}],Z=function(i){return i?parseFloat((i/1e5).toFixed(2)):0};return(0,_.jsx)(z._z,{children:(0,_.jsx)(R.Z,{headerTitle:W?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+Z(W)+"\u5143":"",actionRef:O,rowKey:"key",search:{labelWidth:120},request:function(){var d=I()(b()().mark(function i(u){var e,r,o,t;return b()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,N._5)(u);case 2:return o=s.sent,u.current===1&&k((t=o.data)===null||t===void 0?void 0:t.sum),s.abrupt("return",{data:(e=o.data)===null||e===void 0?void 0:e.data,total:(r=o.data)===null||r===void 0?void 0:r.total,success:!0});case 5:case"end":return s.stop()}},i)}));return function(i){return d.apply(this,arguments)}}(),columns:w,columnsState:{value:F,onChange:function(i){y(i)}}})})};M.default=E},66309:function(oe,M,n){n.d(M,{Z:function(){return u}});var l=n(67294),b=n(62208),U=n(93967),I=n.n(U),B=n(98787),D=n(69760),z=n(45353),R=n(53124),A=n(54548),S=n(10274),N=n(14747),_=n(45503),E=n(91945);const Y=e=>{const{paddingXXS:r,lineWidth:o,tagPaddingHorizontal:t,componentCls:a,calc:s}=e,c=s(t).sub(o).equal(),h=s(r).sub(o).equal();return{[a]:Object.assign(Object.assign({},(0,N.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,A.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:h,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:c}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},O=e=>{const{lineWidth:r,fontSizeIcon:o,calc:t}=e,a=e.fontSizeSM;return(0,_.TS)(e,{tagFontSize:a,tagLineHeight:(0,A.bf)(t(e.lineHeightSM).mul(a).equal()),tagIconSize:t(o).sub(t(r).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},P=e=>({defaultBg:new S.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var $=(0,E.I$)("Tag",e=>{const r=O(e);return Y(r)},P),W=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a{const{prefixCls:o,style:t,className:a,checked:s,onChange:c,onClick:h}=e,g=W(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:j,tag:f}=l.useContext(R.E_),V=Q=>{c==null||c(!s),h==null||h(Q)},x=j("tag",o),[C,X,G]=$(x),m=I()(x,`${x}-checkable`,{[`${x}-checkable-checked`]:s},f==null?void 0:f.className,a,X,G);return C(l.createElement("span",Object.assign({},g,{ref:r,style:Object.assign(Object.assign({},t),f==null?void 0:f.style),className:m,onClick:V})))}),v=n(98719);const H=e=>(0,v.Z)(e,(r,o)=>{let{textColor:t,lightBorderColor:a,lightColor:s,darkColor:c}=o;return{[`${e.componentCls}${e.componentCls}-${r}`]:{color:t,background:s,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:c,borderColor:c},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var L=(0,E.bk)(["Tag","preset"],e=>{const r=O(e);return H(r)},P);function F(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const y=(e,r,o)=>{const t=F(o);return{[`${e.componentCls}${e.componentCls}-${r}`]:{color:e[`color${o}`],background:e[`color${t}Bg`],borderColor:e[`color${t}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var w=(0,E.bk)(["Tag","status"],e=>{const r=O(e);return[y(r,"success","Success"),y(r,"processing","Info"),y(r,"error","Error"),y(r,"warning","Warning")]},P),Z=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a{const{prefixCls:o,className:t,rootClassName:a,style:s,children:c,icon:h,color:g,onClose:j,closeIcon:f,closable:V,bordered:x=!0}=e,C=Z(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:X,direction:G,tag:m}=l.useContext(R.E_),[Q,q]=l.useState(!0);l.useEffect(()=>{"visible"in C&&q(C.visible)},[C.visible]);const ee=(0,B.o2)(g),te=(0,B.yT)(g),J=ee||te,le=Object.assign(Object.assign({backgroundColor:g&&!J?g:void 0},m==null?void 0:m.style),s),p=X("tag",o),[se,ie,ce]=$(p),de=I()(p,m==null?void 0:m.className,{[`${p}-${g}`]:J,[`${p}-has-color`]:g&&!J,[`${p}-hidden`]:!Q,[`${p}-rtl`]:G==="rtl",[`${p}-borderless`]:!x},t,a,ie,ce),re=T=>{T.stopPropagation(),j==null||j(T),!T.defaultPrevented&&q(!1)},[,ue]=(0,D.Z)({closable:V,closeIcon:f!=null?f:m==null?void 0:m.closeIcon,customCloseIconRender:T=>T===null?l.createElement(b.Z,{className:`${p}-close-icon`,onClick:re}):l.createElement("span",{className:`${p}-close-icon`,onClick:re},T),defaultCloseIcon:null,defaultClosable:!1}),me=typeof C.onClick=="function"||c&&c.type==="a",ae=h||null,pe=ae?l.createElement(l.Fragment,null,ae,c&&l.createElement("span",null,c)):c,ne=l.createElement("span",Object.assign({},C,{ref:r,className:de,style:le}),pe,ue,ee&&l.createElement(L,{key:"preset",prefixCls:p}),te&&l.createElement(w,{key:"status",prefixCls:p}));return se(me?l.createElement(z.Z,{component:"Tag"},ne):ne)},i=l.forwardRef(d);i.CheckableTag=K;var u=i}}]);