1import{u as j,r as A,j as s}from"./vendor-react-ff_kKGjF.js";import{a as c,b as x,d as h,e as E,f as u,h as N,i as _}from"./stepFlow-DEePQidx.js";import{c as f}from"./app-BW3wlK8f.js";/* empty css */function R({displayStep:e,totalDisplaySteps:l,currentStepKey:r}){const{translations:n}=j().props,T=A.useMemo(()=>({[_]:n.AD_ENTRY_STEP_CATEGORY,[N]:n.AD_ENTRY_STEP_LOCATION,[u]:n.AD_ENTRY_STEP_AD_TYPE,[E]:n.AD_ENTRY_STEP_VIDEO,[h]:n.AD_ENTRY_STEP_DETAILS,[x]:n.AD_ENTRY_STEP_ENHANCE,[c]:n.AD_ENTRY_STEP_ANIMATIONS}),[n]);if(r!==_&&r!==N&&r!==u&&r!==E&&r!==h&&r!==x&&r!==c)return null;const o=T[r]??"",d=Array.from({length:l},(t,m)=>m+1);return s.jsxs("nav",{"aria-label":"Progress",className:"py-3",children:[s.jsxs("div",{className:"sm:hidden px-1",children:[s.jsxs("div",{className:"flex items-center justify-between gap-3 mb-2",children:[s.jsx("span",{className:"text-sm font-semibold text-gray-900 truncate",children:o}),s.jsxs("span",{className:"shrink-0 text-xs font-medium text-gray-500",children:[e," / ",l]})]}),s.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-gray-100",children:s.jsx("div",{className:"h-full rounded-full bg-primary transition-all",style:{width:`${e/l*100}%`}})})]}),s.jsx("div",{className:"hidden sm:flex items-center justify-center gap-0",children:d.map((t,m)=>{const i=t<e,a=t===e,g=m===d.length-1;return s.jsxs("div",{className:"flex items-center",children:[s.jsxs("div",{className:f("flex items-center gap-2 px-3 sm:px-4 py-2 rounded-full text-sm font-medium transition-all",a&&"bg-primary text-white shadow-md",i&&"bg-primary/10 text-primary",!a&&!i&&"bg-gray-100 text-gray-400"),children:[s.jsx("span",{className:f("flex items-center justify-center h-6 w-6 rounded-full text-xs font-bold",i&&"bg-primary text-white",a&&"bg-white/20 text-current",!a&&!i&&"bg-gray-200 text-gray-400"),children:i?s.jsx(P,{className:"h-3.5 w-3.5"}):t}),a&&o&&s.jsx("span",{className:"hidden sm:inline",children:o})]}),!g&&s.jsx(b,{className:"h-4 w-4 text-gray-300 mx-1 sm:mx-3 shrink-0"})]},t)})})]})}function P({className:e}){return s.jsx("svg",{className:e,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}function b({className:e}){return s.jsx("svg",{className:e,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}
1export{R as WizardProgress};
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.