Module 289873

1,598 characters · in no known chunk
Dependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{t:()=>c,y:()=>_});var i,r=n(627968),s=n(64700),a=n(503698),o=n.n(a),l=n(844222),u=n(460890),d=n(165980),c=((i={}).WANDERING_CUBES="wanderingCubes",i.CHASING_DOTS="chasingDots",i.PULSING_ELLIPSIS="pulsingEllipsis",i.SPINNING_CIRCLE="spinningCircle",i.SPINNING_CIRCLE_SIMPLE="spinningCircleSimple",i.LOW_MOTION="lowMotion",i);function _(e){let{type:t="wanderingCubes",animated:n=!0,className:i,itemClassName:a,...c}=e,{i18n:_}=(0,u.G9)(),{reducedMotion:h}=s.useContext(l.C),f=h.enabled?function(e){switch(e){case"wanderingCubes":case"chasingDots":return"lowMotion";default:return e}}(t):t,E=c["aria-label"]??_.SPINNER_LOADING_LABEL;if("spinningCircle"===f||"spinningCircleSimple"===f)return(0,r.jsx)("div",{className:o()(d.spinner,d[f],i,{[d.stopAnimation]:!n}),role:"img",...c,"aria-label":E,children:(0,r.jsx)("div",{className:d.spinningCircleInner,children:(0,r.jsxs)("svg",{className:d.circular,viewBox:"25 25 50 50",children:["spinningCircle"===f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{className:o()(d.path,d.path3,a),cx:"50",cy:"50",r:"20"}),(0,r.jsx)("circle",{className:o()(d.path,d.path2,a),cx:"50",cy:"50",r:"20"})]}),(0,r.jsx)("circle",{className:o()(d.path,a),cx:"50",cy:"50",r:"20"})]})})});let p=o()(d.item,a);return(0,r.jsx)("span",{className:o()(d.spinner,i,{[d.stopAnimation]:!n}),role:"img","aria-label":E,...c,children:(0,r.jsxs)("span",{className:o()(d.inner,d[f]),children:[(0,r.jsx)("span",{className:p}),(0,r.jsx)("span",{className:p}),"pulsingEllipsis"===f||"lowMotion"===f?(0,r.jsx)("span",{className:p}):null]})})}_.Type=c}