1(globalThis.webpackChunkvar=globalThis.webpackChunkvar||[]).push([[1682],{67040(e,n,o){o.d(n,{A:()=>c});var t=o(49864),r=o(64810);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var i=o(15047),a=function(e,n){return r.createElement(i.A,(0,t.A)({},e,{ref:n,icon:s}))};const c=r.forwardRef(a)},64871(e,n,o){o.d(n,{A:()=>c,U:()=>a});var t=o(64810),r=o(29587),s=o(67312),i=o(38401);function a(e){return n=>t.createElement(s.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(e,Object.assign({},n)))}const c=(e,n,o,s,c)=>a(a=>{const{prefixCls:l,style:d}=a,u=t.useRef(null),[p,m]=t.useState(0),[g,f]=t.useState(0),[h,v]=(0,r.A)(!1,{value:a.open}),{getPrefixCls:A}=t.useContext(i.QO),y=A(s||"select",l);t.useEffect(()=>{if(v(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(e=>{const n=e[0].target;m(n.offsetHeight+8),f(n.offsetWidth)}),n=setInterval(()=>{var o;const t=c?`.${c(y)}`:`.${y}-dropdown`,r=null===(o=u.current)||void 0===o?void 0:o.querySelector(t);r&&(clearInterval(n),e.observe(r))},10);return()=>{clearInterval(n),e.disconnect()}}},[y]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},d),{margin:0}),open:h,visible:h,getPopupContainer:()=>u.current});o&&(b=o(b)),n&&Object.assign(b,{[n]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:p,position:"relative",minWidth:g};return t.createElement("div",{ref:u,style:C},t.createElement(e,Object.assign({},b)))})},66312(e,n,o){o.d(n,{Ob:()=>i,fx:()=>s,zv:()=>r});var t=o(64810);function r(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const s=(e,n,o)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof o?o(e.props||{}):o):n;function i(e,n){return s(e,e,n)}},58709(e,n,o){o.d(n,{A:()=>H});var t=o(64810),r=o(61194),s=o(15449),i=o(65191),a=o(26497),c=o(94566),l=o(6874),d=o.n(l),u=o(75110),p=o(42199),m=o(30005),g=o(66312),f=o(38401),h=o(78760),v=o(73539),A=o(5776);const y=(e,n,o,t,r)=>({background:e,border:`${(0,h.zA)(t.lineWidth)} ${t.lineType} ${n}`,[`${r}-icon`]:{color:o}}),b=e=>{const{componentCls:n,motionDurationSlow:o,marginXS:t,marginSM:r,fontSize:s,fontSizeLG:i,lineHeight:a,borderRadiusLG:c,motionEaseInOutCirc:l,withDescriptionIconSize:d,colorText:u,colorTextHeading:p,withDescriptionPadding:m,defaultPadding:g}=e;return{[n]:Object.assign(Object.assign({},(0,v.dF)(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:c,[`&${n}-rtl`]:{direction:"rtl"},[`${n}-content`]:{flex:1,minWidth:0},[`${n}-icon`]:{marginInlineEnd:t,lineHeight:0},"&-description":{display:"none",fontSize:s,lineHeight:a},"&-message":{color:p},[`&${n}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${o} ${l}, opacity ${o} ${l},\n padding-top ${o} ${l}, padding-bottom ${o} ${l},\n margin-bottom ${o} ${l}`},[`&${n}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${n}-with-description`]:{alignItems:"flex-start",padding:m,[`${n}-icon`]:{marginInlineEnd:r,fontSize:d,lineHeight:0},[`${n}-message`]:{display:"block",marginBottom:t,color:p,fontSize:i},[`${n}-description`]:{display:"block",color:u}},[`${n}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},C=e=>{const{componentCls:n,colorSuccess:o,colorSuccessBorder:t,colorSuccessBg:r,colorWarning:s,colorWarningBorder:i,colorWarningBg:a,colorError:c,colorErrorBorder:l,colorErrorBg:d,colorInfo:u,colorInfoBorder:p,colorInfoBg:m}=e;return{[n]:{"&-success":y(r,t,o,e,n),"&-info":y(m,p,u,e,n),"&-warning":y(a,i,s,e,n),"&-error":Object.assign(Object.assign({},y(d,l,c,e,n)),{[`${n}-description > pre`]:{margin:0,padding:0}})}}},w=e=>{const{componentCls:n,iconCls:o,motionDurationMid:t,marginXS:r,fontSizeIcon:s,colorIcon:i,colorIconHover:a}=e;return{[n]:{"&-action":{marginInlineStart:r},[`${n}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:s,lineHeight:(0,h.zA)(s),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${o}-close`]:{color:i,transition:`color ${t}`,"&:hover":{color:a}}},"&-close-text":{color:i,transition:`color ${t}`,"&:hover":{color:a}}}}},x=(0,A.OF)("Alert",e=>[b(e),C(e),w(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var $=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(t=Object.getOwnPropertySymbols(e);r<t.length;r++)n.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(o[t[r]]=e[t[r]])}return o};const E={success:r.A,info:c.A,error:s.A,warning:a.A},I=e=>{const{icon:n,prefixCls:o,type:r}=e,s=E[r]||null;return n?(0,g.fx)(n,t.createElement("span",{className:`${o}-icon`},n),()=>({className:d()(`${o}-icon`,n.props.className)})):t.createElement(s,{className:`${o}-icon`})},S=e=>{const{isClosable:n,prefixCls:o,closeIcon:r,handleClose:s,ariaProps:a}=e,c=!0===r||void 0===r?t.createElement(i.A,null):r;return n?t.createElement("button",Object.assign({type:"button",onClick:s,className:`${o}-close-icon`,tabIndex:0},a),c):null}
1,j=t.forwardRef((e,n)=>{const{description:o,prefixCls:r,message:s,banner:i,className:a,rootClassName:c,style:l,onMouseEnter:g,onMouseLeave:h,onClick:v,afterClose:A,showIcon:y,closable:b,closeText:C,closeIcon:w,action:E,id:j}=e,O=$(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[k,T]=t.useState(!1),D=t.useRef(null);t.useImperativeHandle(n,()=>({nativeElement:D.current}));const{getPrefixCls:N,direction:P,closable:R,closeIcon:z,className:M,style:B}=(0,f.TP)("alert"),H=N("alert",r),[_,G,L]=x(H),F=n=>{var o;T(!0),null===(o=e.onClose)||void 0===o||o.call(e,n)},U=t.useMemo(()=>void 0!==e.type?e.type:i?"warning":"info",[e.type,i]),W=t.useMemo(()=>!("object"!=typeof b||!b.closeIcon)||!!C||("boolean"==typeof b?b:!1!==w&&null!=w||!!R),[C,w,b,R]),X=!(!i||void 0!==y)||y,Y=d()(H,`${H}-${U}`,{[`${H}-with-description`]:!!o,[`${H}-no-icon`]:!X,[`${H}-banner`]:!!i,[`${H}-rtl`]:"rtl"===P},M,a,c,L,G),V=(0,p.A)(O,{aria:!0,data:!0}),q=t.useMemo(()=>"object"==typeof b&&b.closeIcon?b.closeIcon:C||(void 0!==w?w:"object"==typeof R&&R.closeIcon?R.closeIcon:z),[w,b,R,C,z]),K=t.useMemo(()=>{const e=null!=b?b:R;if("object"==typeof e){const{closeIcon:n}=e;return $(e,["closeIcon"])}return{}},[b,R]);return _(t.createElement(u.Ay,{visible:!k,motionName:`${H}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:A},({className:n,style:r},i)=>t.createElement("div",Object.assign({id:j,ref:(0,m.K4)(D,i),"data-show":!k,className:d()(Y,n),style:Object.assign(Object.assign(Object.assign({},B),l),r),onMouseEnter:g,onMouseLeave:h,onClick:v,role:"alert"},V),X?t.createElement(I,{description:o,icon:e.icon,prefixCls:H,type:U}):null,t.createElement("div",{className:`${H}-content`},s?t.createElement("div",{className:`${H}-message`},s):null,o?t.createElement("div",{className:`${H}-description`},o):null),E?t.createElement("div",{className:`${H}-action`},E):null,t.createElement(S,{isClosable:W,prefixCls:H,closeIcon:q,handleClose:F,ariaProps:K}))))}),O=j;var k=o(76613),T=o(31989),D=o(7346),N=o(91232),P=o(76678),R=o(36909);let z=function(e){function n(){var e,o,t,r;return(0,k.A)(this,n),o=this,t=n,r=arguments,t=(0,D.A)(t),(e=(0,P.A)(o,(0,N.A)()?Reflect.construct(t,r||[],(0,D.A)(o).constructor):t.apply(o,r))).state={error:void 0,info:{componentStack:""}},e}return(0,R.A)(n,e),(0,T.A)(n,[{key:"componentDidCatch",value:function(e,n){this.setState({error:e,info:n})}},{key:"render",value:function(){const{message:e,description:n,id:o,children:r}=this.props,{error:s,info:i}=this.state,a=(null==i?void 0:i.componentStack)||null,c=void 0===e?(s||"").toString():e,l=void 0===n?a:n;return s?t.createElement(O,{id:o,type:"error",message:c,description:t.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},l)}):r}}])}(t.Component);const M=z,B=O;B.ErrorBoundary=M;const H=B},38175(e,n,o){o.r(n),o.d(n,{default:()=>x});var t=o(85186),r=o(64810),s=o(72234),i=o.n(s),a=o(93279),c=o.n(a),l=o(91417);const d=e=>c().post("/billing/checkAccess",{accessCode:e},{transformResponse:(0,l.iu)(e=>e)}),u=()=>c().get("/billing/checkExpiration",{transformResponse:(0,l.iu)(e=>e)});var p=o(66551),m=o(81160),g=o(93927),f=o(58709),h=o(75319),v=o(44004),A=o(15751),y=o(75559),b=o(99850),C=o(32184);const w=({location:e,router:n})=>{const[o,s]=(0,r.useState)(""),[i,a]=(0,r.useState)(null),[c,l]=(0,r.useState)(m.A.DATA_INIT),[w]=g.A.useForm(),x=()=>{n.push("/")};return(0,r.useEffect)(()=>{u().then(o=>{if(200===o.status){C.A.context();const o=new URLSearchParams(e.search);n.push(o.get("originalRoute")||"/")}}).catch(e=>{var o,t,r;(null!=(r=null==(t=null==(o=null==e?void 0:e.response)?void 0:o.data)?void 0:t.code[0])?r:null)===b.A.BE_NO_ACCESS_EXPIRED?l(m.A.DATA_READY):n.push("/forbidden")})},[n,e.search]),(0,t.jsxs)(h.A,{title:"Billing Admin Access",open:[m.A.DATA_READY,m.A.DATA_UPDATING].includes(c),closeIcon:!1,onCancel:x,zIndex:1101,footer:()=>{const e=c===m.A.DATA_UPDATING?(0,t.jsxs)(t.Fragment,{children:["Processing... ",(0,t.jsx)("i",{className:"fa spinner"})]}):"Confirm";return(0,t.jsxs)(v.A,{gap:"5px",style:{justifyContent:"right"},children:[(0,t.jsx)(A.Ay,{form:"billingAccessForm",type:"primary",htmlType:"submit",disabled:0===o.length||c===m.A.DATA_UPDATING,children:e}),(0,t.jsx)(A.Ay,{onClick:x,children:"Cancel"})]})},children:[(()=>{if(!i)return null;const e=b.A.errorMessage(i);return(0,t.jsx)(f.A,{type:"warning",message:e,style:{margin:"20px 0",padding:"10px"}})})(),(0,t.jsx)(g.A,{form:w,id:"billingAccessForm",onFinish:o=>{var t;c!==m.A.DATA_UPDATING&&(null==(t=null==o?void 0:o.password)?void 0:t.length)>0&&(l(m.A.DATA_UPDATING),d(o.password).then(o=>
1{if(200===(null==o?void 0:o.status)){const o=new URLSearchParams(e.search);n.push(o.get("originalRoute")||"/")}else n.push("/")}).catch(e=>{a((0,p.Sg)(e))}).finally(()=>{w.resetFields(),s(""),l(m.A.DATA_READY)}))},children:(0,t.jsx)(g.A.Item,{name:"password",children:(0,t.jsx)(y.A.Password,{value:o,onChange:e=>{s(e.target.value),a(null)},placeholder:"Enter a password"})})})]})};w.contextTypes={router:i().object.isRequired};const x=w},91417(e,n,o){o.d(n,{Sg:()=>c,iu:()=>a});var t=o(93279),r=o.n(t);class s{constructor(e){this.code=e.map(e=>e.code),this.info=e.map(e=>e.info)}errCode(){return this.code.length?this.code[0]:1}errMessage(){return this.info.length?this.info[0]:""}}class i{constructor(e){this.code=e.map(e=>e.code),this.info=e.map(e=>e.info),this.key=e.map(e=>e.key)}errCode(){return this.code.length?this.code[0]:1}errMessage(){return this.info.length?this.info[0]:""}errKey(){return this.key.length?this.key[0]:""}}function a(e){return r().defaults.transformResponse.concat(n=>{if(void 0===n||""===n)return new s([{code:-1,info:"unknown error"}]);if("string"==typeof n&&n.includes("504 Gateway Time-out"))return new s([{code:408,info:"Network error occurred, please try again."}]);if("string"==typeof n&&n.includes("Gateway Error"))return new s([{code:409,info:"General error, please try again later."}]);if(n.hasOwnProperty("errors")){for(let e=0;e<n.errors.length;e++)if(n.errors[e].hasOwnProperty("key"))return new i(n.errors);return new s(n.errors)}return e(n)})}function c(e){return e.response&&e.response.data?e.response.data:new s([{code:-1,info:"api failed"}])}}}]); 2//# sourceMappingURL=1682.cb97e754.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.