File "Stepper-1.0.13-4e64ee4c.js"

Full Path: /home/vantageo/public_html/cache/cache/cache/.wp-cli/wp-content/plugins/wp-data-access/assets/dist/Stepper-1.0.13-4e64ee4c.js
File size: 9.27 KB
MIME-type: text/plain
Charset: utf-8

import{e as P,g as U,s as x,_ as s,u as _,a as T,c as z,b as W,z as V}from"./iconBase-1.0.13-98e06aa9.js";import{r as d,j as i}from"./main-1.0.13.js";import{c as B,S as q}from"./Close-1.0.13-b137ce2f.js";const G=d.createContext({}),k=G,J=d.createContext({}),E=J;function K(e){return P("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const O=["active","children","className","component","completed","disabled","expanded","index","last"],Q=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return W({root:["root",o,n&&"alternativeLabel",a&&"completed"]},K,t)},X=x("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Y=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:l,className:v,component:c="div",completed:p,disabled:b,expanded:u=!1,index:r,last:S}=n,M=T(n,O),{activeStep:h,connector:f,alternativeLabel:y,orientation:R,nonLinear:$}=d.useContext(k);let[m=!1,I=!1,C=!1]=[a,p,b];h===r?m=a!==void 0?a:!0:!$&&h>r?I=p!==void 0?p:!0:!$&&h<r&&(C=b!==void 0?b:!0);const N=d.useMemo(()=>({index:r,last:S,expanded:u,icon:r+1,active:m,completed:I,disabled:C}),[r,S,u,m,I,C]),L=s({},n,{active:m,orientation:R,alternativeLabel:y,completed:I,disabled:C,expanded:u,component:c}),w=Q(L),j=i.jsxs(X,s({as:c,className:z(w.root,v),ref:o,ownerState:L},M,{children:[f&&y&&r!==0?f:null,l]}));return i.jsx(E.Provider,{value:N,children:f&&!y&&r!==0?i.jsxs(d.Fragment,{children:[f,j]}):j})}),Pe=Y,Z=B(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),ee=B(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function te(e){return P("MuiStepIcon",e)}const oe=U("MuiStepIcon",["root","active","completed","error","text"]),A=oe;var F;const ne=["active","className","completed","error","icon"],ae=e=>{const{classes:t,active:o,completed:n,error:a}=e;return W({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},te,t)},D=x(q,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),re=x("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),se=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:l,completed:v=!1,error:c=!1,icon:p}=n,b=T(n,ne),u=s({},n,{active:a,completed:v,error:c}),r=ae(u);if(typeof p=="number"||typeof p=="string"){const S=z(l,r.root);return c?i.jsx(D,s({as:ee,className:S,ref:o,ownerState:u},b)):v?i.jsx(D,s({as:Z,className:S,ref:o,ownerState:u},b)):i.jsxs(D,s({className:S,ref:o,ownerState:u},b,{children:[F||(F=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(re,{className:r.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:p})]}))}return p}),le=se;function ie(e){return P("MuiStepLabel",e)}const ce=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),g=ce,pe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],de=e=>{const{classes:t,orientation:o,active:n,completed:a,error:l,disabled:v,alternativeLabel:c}=e;return W({root:["root",o,l&&"error",v&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",l&&"error",v&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",l&&"error",v&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},ie,t)},ve=x("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),ue=x("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),be=x("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),Se=x("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),H=d.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:l,className:v,componentsProps:c={},error:p=!1,icon:b,optional:u,slotProps:r={},StepIconComponent:S,StepIconProps:M}=a,h=T(a,pe),{alternativeLabel:f,orientation:y}=d.useContext(k),{active:R,disabled:$,completed:m,icon:I}=d.useContext(E),C=b||I;let N=S;C&&!N&&(N=le);const L=s({},a,{active:R,alternativeLabel:f,completed:m,disabled:$,error:p,orientation:y}),w=de(L),j=(n=r.label)!=null?n:c.label;return i.jsxs(ve,s({className:z(w.root,v),ref:o,ownerState:L},h,{children:[C||N?i.jsx(be,{className:w.iconContainer,ownerState:L,children:i.jsx(N,s({completed:m,active:R,error:p,icon:C},M))}):null,i.jsxs(Se,{className:w.labelContainer,ownerState:L,children:[l?i.jsx(ue,s({ownerState:L},j,{className:z(w.label,j==null?void 0:j.className),children:l})):null,u]})]}))});H.muiName="StepLabel";const Ue=H;function me(e){return P("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const xe=["className"],fe=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:l,disabled:v}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",l&&"completed",v&&"disabled"],line:["line",`line${V(o)}`]};return W(c,me,t)},Ce=x("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),Le=x("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${V(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return s({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),ge=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,l=T(n,xe),{alternativeLabel:v,orientation:c="horizontal"}=d.useContext(k),{active:p,disabled:b,completed:u}=d.useContext(E),r=s({},n,{alternativeLabel:v,orientation:c,active:p,completed:u,disabled:b}),S=fe(r);return i.jsx(Ce,s({className:z(S.root,a),ref:o,ownerState:r},l,{children:i.jsx(Le,{className:S.line,ownerState:r})}))}),he=ge;function ye(e){return P("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const $e=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Me=e=>{const{orientation:t,alternativeLabel:o,classes:n}=e;return W({root:["root",t,o&&"alternativeLabel"]},ye,n)},Re=x("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ie=i.jsx(he,{}),Ne=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:l=!1,children:v,className:c,component:p="div",connector:b=Ie,nonLinear:u=!1,orientation:r="horizontal"}=n,S=T(n,$e),M=s({},n,{alternativeLabel:l,orientation:r,component:p}),h=Me(M),f=d.Children.toArray(v).filter(Boolean),y=f.map(($,m)=>d.cloneElement($,s({index:m,last:m+1===f.length},$.props))),R=d.useMemo(()=>({activeStep:a,alternativeLabel:l,connector:b,nonLinear:u,orientation:r}),[a,l,b,u,r]);return i.jsx(k.Provider,{value:R,children:i.jsx(Re,s({as:p,ownerState:M,className:z(h.root,c),ref:o},S,{children:y}))})}),_e=Ne;export{_e as S,Pe as a,Ue as b,k as c,E as d};