Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.119.133.214
"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[686],{91686:(t,e,n)=>{n.d(e,{A:()=>E});var o=n(65043),i=n(98139),a=n.n(i);function c(t,e,n){var o=(n||{}).atBegin;return function(t,e,n){var o,i=n||{},a=i.noTrailing,c=void 0!==a&&a,r=i.noLeading,l=void 0!==r&&r,s=i.debounceMode,d=void 0===s?void 0:s,u=!1,p=0;function m(){o&&clearTimeout(o)}function g(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var r=this,s=Date.now()-p;function g(){p=Date.now(),e.apply(r,i)}function f(){o=void 0}u||(l||!d||o||g(),m(),void 0===d&&s>t?l?(p=Date.now(),c||(o=setTimeout(d?f:g,t))):g():!0!==c&&(o=setTimeout(d?f:g,void 0===d?t-s:t)))}return g.cancel=function(t){var e=(t||{}).upcomingOnly,n=void 0!==e&&e;m(),u=!n},g}(t,e,{debounceMode:!1!==(void 0!==o&&o)})}var r=n(35296),l=n(12701),s=n(52664);function d(t){let{percent:e,prefixCls:n}=t;const i="".concat(n,"-dot"),c="".concat(i,"-holder"),r="".concat(c,"-hidden"),[l,d]=o.useState(!1);(0,s.A)((()=>{0!==e&&d(!0)}),[0!==e]);const u=Math.max(Math.min(e,100),0),p=100,m=80*Math.PI,g=(t,e)=>o.createElement("circle",{className:a()(t,"".concat(i,"-circle")),r:40,cx:"50",cy:"50",strokeWidth:20,style:e});return l?o.createElement("span",{className:a()(c,"".concat(i,"-progress"),u<=0&&r)},o.createElement("svg",{viewBox:"0 0 ".concat(p," ").concat(p),role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},g("".concat(i,"-circle-bg")),g("",{strokeDasharray:"".concat(m*u/100," ").concat(m*(100-u)/100),strokeDashoffset:"".concat(m/4)}))):null}function u(t){const{prefixCls:e,percent:n=0}=t,i="".concat(e,"-dot"),c="".concat(i,"-holder"),r="".concat(c,"-hidden");return o.createElement(o.Fragment,null,o.createElement("span",{className:a()(c,n>0&&r)},o.createElement("span",{className:a()(i,"".concat(e,"-dot-spin"))},[1,2,3,4].map((t=>o.createElement("i",{className:"".concat(e,"-dot-item"),key:t}))))),o.createElement(d,{prefixCls:e,percent:n}))}function p(t){const{prefixCls:e,indicator:n,percent:i}=t,c="".concat(e,"-dot");return n&&o.isValidElement(n)?(0,l.Ob)(n,{className:a()(n.props.className,c),percent:i}):o.createElement(u,{prefixCls:e,percent:i})}var m=n(36647),g=n(94414),f=n(66712),h=n(78365);const v=new m.Mo("antSpinMove",{to:{opacity:1}}),S=new m.Mo("antRotate",{to:{transform:"rotate(405deg)"}}),b=t=>{const{componentCls:e,calc:n}=t;return{["".concat(e)]:Object.assign(Object.assign({},(0,g.dF)(t)),{position:"absolute",display:"none",color:t.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:"transform ".concat(t.motionDurationSlow," ").concat(t.motionEaseInOutCirc),"&-spinning":{position:"relative",display:"inline-block",opacity:1},["".concat(e,"-text")]:{fontSize:t.fontSize,paddingTop:n(n(t.dotSize).sub(t.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:t.colorBgMask,zIndex:t.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:"all ".concat(t.motionDurationMid),"&-show":{opacity:1,visibility:"visible"},[e]:{["".concat(e,"-dot-holder")]:{color:t.colorWhite},["".concat(e,"-text")]:{color:t.colorTextLightSolid}}},"&-nested-loading":{position:"relative",["> div > ".concat(e)]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:t.contentHeight,["".concat(e,"-dot")]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(t.dotSize).mul(-1).div(2).equal()},["".concat(e,"-text")]:{position:"absolute",top:"50%",width:"100%",textShadow:"0 1px 2px ".concat(t.colorBgContainer)},["&".concat(e,"-show-text ").concat(e,"-dot")]:{marginTop:n(t.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{["".concat(e,"-dot")]:{margin:n(t.dotSizeSM).mul(-1).div(2).equal()},["".concat(e,"-text")]:{paddingTop:n(n(t.dotSizeSM).sub(t.fontSize)).div(2).add(2).equal()},["&".concat(e,"-show-text ").concat(e,"-dot")]:{marginTop:n(t.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{["".concat(e,"-dot")]:{margin:n(t.dotSizeLG).mul(-1).div(2).equal()},["".concat(e,"-text")]:{paddingTop:n(n(t.dotSizeLG).sub(t.fontSize)).div(2).add(2).equal()},["&".concat(e,"-show-text ").concat(e,"-dot")]:{marginTop:n(t.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},["".concat(e,"-container")]:{position:"relative",transition:"opacity ".concat(t.motionDurationSlow),"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:t.colorBgContainer,opacity:0,transition:"all ".concat(t.motionDurationSlow),content:'""',pointerEvents:"none"}},["".concat(e,"-blur")]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:t.spinDotDefault},["".concat(e,"-dot-progress")]:{position:"absolute",top:0,insetInlineStart:0},["".concat(e,"-dot-holder")]:{width:"1em",height:"1em",fontSize:t.dotSize,display:"inline-block",transition:"transform ".concat(t.motionDurationSlow," ease, opacity ").concat(t.motionDurationSlow," ease"),transformOrigin:"50% 50%",lineHeight:1,color:t.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},["".concat(e,"-dot-progress")]:{position:"absolute",top:0,insetInlineStart:0},["".concat(e,"-dot")]:{position:"relative",display:"inline-block",fontSize:t.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(t.dotSize).sub(n(t.marginXXS).div(2)).div(2).equal(),height:n(t.dotSize).sub(n(t.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:v,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:S,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((e=>"".concat(e," ").concat(t.motionDurationSlow," ease"))).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:t.colorFillSecondary}},["&-sm ".concat(e,"-dot")]:{fontSize:t.dotSizeSM},["&-sm ".concat(e,"-dot-holder")]:{i:{width:n(n(t.dotSizeSM).sub(n(t.marginXXS).div(2))).div(2).equal(),height:n(n(t.dotSizeSM).sub(n(t.marginXXS).div(2))).div(2).equal()}},["&-lg ".concat(e,"-dot")]:{fontSize:t.dotSizeLG},["&-lg ".concat(e,"-dot-holder")]:{i:{width:n(n(t.dotSizeLG).sub(t.marginXXS)).div(2).equal(),height:n(n(t.dotSizeLG).sub(t.marginXXS)).div(2).equal()}},["&".concat(e,"-show-text ").concat(e,"-text")]:{display:"block"}})}},y=(0,f.OF)("Spin",(t=>{const e=(0,h.h1)(t,{spinDotDefault:t.colorTextDescription});return[b(e)]}),(t=>{const{controlHeightLG:e,controlHeight:n}=t;return{contentHeight:400,dotSize:e/2,dotSizeSM:.35*e,dotSizeLG:n}})),x=[[30,.05],[70,.03],[96,.01]];var w=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]])}return n};let z;const k=t=>{const{prefixCls:e,spinning:n=!0,delay:i=0,className:l,rootClassName:s,size:d="default",tip:u,wrapperClassName:m,style:g,children:f,fullscreen:h=!1,indicator:v,percent:S}=t,b=w(t,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:k}=o.useContext(r.QO),E=k("spin",e),[C,D,N]=y(E),[O,I]=o.useState((()=>n&&!function(t,e){return!!t&&!!e&&!isNaN(Number(e))}(n,i))),M=function(t,e){const[n,i]=o.useState(0),a=o.useRef(),c="auto"===e;return o.useEffect((()=>(c&&t&&(i(0),a.current=setInterval((()=>{i((t=>{const e=100-t;for(let n=0;n<x.length;n+=1){const[o,i]=x[n];if(t<=o)return t+e*i}return t}))}),200)),()=>{clearInterval(a.current)})),[c,t]),c?n:e}(O,S);o.useEffect((()=>{if(n){const t=c(i,(()=>{I(!0)}));return t(),()=>{var e;null===(e=null===t||void 0===t?void 0:t.cancel)||void 0===e||e.call(t)}}I(!1)}),[i,n]);const q=o.useMemo((()=>"undefined"!==typeof f&&!h),[f,h]);const{direction:T,spin:j}=o.useContext(r.QO),X=a()(E,null===j||void 0===j?void 0:j.className,{["".concat(E,"-sm")]:"small"===d,["".concat(E,"-lg")]:"large"===d,["".concat(E,"-spinning")]:O,["".concat(E,"-show-text")]:!!u,["".concat(E,"-rtl")]:"rtl"===T},l,!h&&s,D,N),L=a()("".concat(E,"-container"),{["".concat(E,"-blur")]:O}),G=Object.assign(Object.assign({},null===j||void 0===j?void 0:j.style),g),P=o.createElement("div",Object.assign({},b,{style:G,className:X,"aria-live":"polite","aria-busy":O}),o.createElement(p,{prefixCls:E,indicator:null!==v&&void 0!==v?v:z,percent:M}),u&&(q||h)?o.createElement("div",{className:"".concat(E,"-text")},u):null);return C(q?o.createElement("div",Object.assign({},b,{className:a()("".concat(E,"-nested-loading"),m,D,N)}),O&&o.createElement("div",{key:"loading"},P),o.createElement("div",{className:L,key:"container"},f)):h?o.createElement("div",{className:a()("".concat(E,"-fullscreen"),{["".concat(E,"-fullscreen-show")]:O},s,D,N)},P):P)};k.setDefaultIndicator=t=>{z=t};const E=k}}]);
//# sourceMappingURL=686.fc9f14de.chunk.js.map
|