import{r as e}from"./app-DTeOhhdM.js";import{P as y,C as k,u as h,m as p,c as v}from"./AuthenticatedLayout-DNj-hWy1.js";var x={root:"p-progress-spinner",spinner:"p-progress-spinner-svg",circle:"p-progress-spinner-circle"},P=`
@layer primereact {
    .p-progress-spinner {
        position: relative;
        margin: 0 auto;
        width: 100px;
        height: 100px;
        display: inline-block;
    }
    
    .p-progress-spinner::before {
        content: '';
        display: block;
        padding-top: 100%;
    }
    
    .p-progress-spinner-svg {
        animation: p-progress-spinner-rotate 2s linear infinite;
        height: 100%;
        transform-origin: center center;
        width: 100%;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
    }
    
    .p-progress-spinner-circle {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: 0;
        stroke: #d62d20;
        animation: p-progress-spinner-dash 1.5s ease-in-out infinite, p-progress-spinner-color 6s ease-in-out infinite;
        stroke-linecap: round;
    }
}

@keyframes p-progress-spinner-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes p-progress-spinner-dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

@keyframes p-progress-spinner-color {
    100%,
    0% {
        stroke: #d62d20;
    }
    40% {
        stroke: #0057e7;
    }
    66% {
        stroke: #008744;
    }
    80%,
    90% {
        stroke: #ffa700;
    }
}
`,S={spinner:function(t){var o=t.props;return{animationDuration:o.animationDuration}}},s=k.extend({defaultProps:{__TYPE:"ProgressSpinner",id:null,style:null,className:null,strokeWidth:"2",fill:"none",animationDuration:"2s",children:void 0},css:{classes:x,styles:P,inlineStyles:S}}),b=e.memo(e.forwardRef(function(l,t){var o=e.useContext(y),n=s.getProps(l,o),c=e.useRef(null),r=s.setMetaData({props:n}),a=r.ptm,i=r.cx,m=r.sx,d=r.isUnstyled;h(s.css.styles,d,{name:"progressspinner"}),e.useImperativeHandle(t,function(){return{props:n,getElement:function(){return c.current}}});var f=p({id:n.id,ref:c,style:n.style,className:v(n.className,i("root")),role:"progressbar","aria-busy":!0},s.getOtherProps(n),a("root")),g=p({className:i("spinner"),viewBox:"25 25 50 50",style:m("spinner")},a("spinner")),u=p({className:i("circle"),cx:"50",cy:"50",r:"20",fill:n.fill,strokeWidth:n.strokeWidth,strokeMiterlimit:"10"},a("circle"));return e.createElement("div",f,e.createElement("svg",g,e.createElement("circle",u)))}));b.displayName="ProgressSpinner";export{b as P};
