1import{c as ae,r as F,u as re,p as se,j as a,a as P,c0 as Se,f as Ie,C as Te,P as ne,a3 as Ve,L as Oe,n as J,k as Ee,ao as Fe,bN as Re,U as Le,B as te,c1 as Be,a0 as Ae,an as We,ar as De,N as $e}from"./index-BK1ETB54.js";import{C as ze,a as Ue,b as qe}from"./collapsible-Bi2cDsTZ.js";import{C as _e}from"./circle-check-GHEl3ggp.js";import{S as Ze}from"./square-check-big-CPmElt4A.js";import{u as Je,M as U,a as He}from"./useCendraOSProgress-BNdkOECv.js";import{T as Ye}from"./target-C_zEZctc.js";import{C as Ge}from"./calendar-WjLkKv35.js";import{R as Qe}from"./rotate-ccw-B8hiOigt.js";import{F as Xe}from"./file-check-CfPnxAX0.js";import{S as Ke}from"./shield-check-DVDHCQLj.js";import{W as et}from"./wrench-Cl1eAQuN.js";import"./analytics-Bu8LxldC.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const tt=ae("SquareCheck",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const at=ae("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),oe="cendra-os-checklists",rt=()=>{if(typeof window>"u")return{};try{const s=localStorage.getItem(oe);if(s)return JSON.parse(s)}catch(s){console.warn("Failed to parse checklist state from localStorage:",s)}return{}};function st(){const[s,g]=F.useState(rt);F.useEffect(()=>{try{localStorage.setItem(oe,JSON.stringify(s))}catch(u){console.warn("Failed to save checklist state to localStorage:",u)}},[s]);const N=F.useCallback((u,M)=>s[u]?.[M]??!1,[s]),f=F.useCallback((u,M)=>{g(w=>({...w,[u]:{...w[u],[M]:!w[u]?.[M]}}))},[]),y=F.useCallback((u,M)=>{if(!s[u])return 0;const w=Object.values(s[u]).filter(Boolean).length;return Math.round(w/M*100)},[s]),C=F.useCallback(u=>{g(M=>{const w={...M};return delete w[u],w})},[]);return{isItemChecked:N,toggleItem:f,getModuleProgress:y,resetModuleChecklist:C}}function nt({moduleKey:s,index:g,icon:N,isCompleted:f=!1,isCurrent:y=!1,onToggleComplete:C}){const{t:u}=re("cendraOS"),{currentLanguage:M}=se(),[w,A]=F.useState(!1),{isItemChecked:T,toggleItem:V,getModuleProgress:q}=st(),z=R=>`${M==="en"?"":`/${M}`}${R}`,O=u(`portal.startPath.modules.${s}.checklist`,{returnObjects:!0,defaultValue:[]}),W=Array.isArray(O)&&O.length>0,h=W?q(s,O.length):0;return a.jsx("div",{className:P("group relative rounded-xl transition-all duration-200","bg-card border shadow-sm","hover:shadow-md",y&&!f?"border-primary ring-1 ring-primary/20":f?"border-success/40 bg-success/5":"border-border hover:border-primary/30"),children:a.jsx("div",{className:"p-4 md:p-5",children:a.jsxs("div",{className:"flex items-start gap-3 md:gap-4",children:[a.jsx("button",{onClick:C,className:P("relative flex-shrink-0 w-10 h-10 md:w-11 md:h-11 rounded-lg flex items-center justify-center transition-all duration-200","focus:outline-none focus:ring-2 focus:ring-primary/30",f?"bg-success/10":y?"bg-primary/10":"bg-muted"),"aria-label":f?u("portal.startPath.markIncomplete",{defaultValue:"Mark as incomplete"}):u("portal.startPath.markComplete",{defaultValue:"Mark as complete"}),children:f?a.jsx(_e,{className:"h-5 w-5 text-success"}):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:P("text-base font-bold",y?"text-primary":"text-muted-foreground"),children:g+1}),a.jsx(Se,{className:P("absolute inset-0 m-auto h-8 w-8",y?"text-primary/30":"text-border"),strokeWidth:1.5})]})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-start justify-between gap-3 mb-1.5",children:[a.jsxs("div",{className:"flex items-center gap-2.5",children:[a.jsx("div",{className:P("w-7 h-7 rounded-md flex items-center justify-center",f?"bg-success/10":"bg-primary/10"),children:a.jsx(N,{className:P("h-3.5 w-3.5",f?"text-success":"text-primary")})}),a.jsxs("div",{children:[a.jsx("h3",{className:P("text-sm md:text-base font-semibold leading-tight",f?"text-muted-foreground line-through":"text-foreground"),children:u(`portal.startPath.modules.${s}.title`)}),a.jsxs("div",{className:"flex items-center gap-2.5 mt-0.5",children:[a.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[a.jsx(Ie,{className:"h-3 w-3"}),u(`portal.startPath.modules.${s}.time`)]}),W&&h>0&&a.jsxs("span",{className:"text-xs text-primary",children:[h,"% complete"]})]})]})]}),a.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:f?a.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-success bg-success/10 px-2.5 py-1 rounded-full",children:[a.jsx(Te,{className:"h-3 w-3"}),u("portal.startPath.completed",{defaultValue:"Done"})]}):y?a.jsx("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-primary bg-primary/10 px-2.5 py-1 rounded-full",children:u("portal.startPath.continueLabel",{defaultValue:"Continue"})}):null})]}),a.jsx("p",{className:P("text-sm leading-relaxed mb-3",f?"text-muted-foreground
11/70":"text-muted-foreground"),children:u(`portal.startPath.modules.${s}.description`)}),a.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[a.jsxs("button",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:text-primary/80 transition-colors",children:[a.jsx(ne,{className:"h-3.5 w-3.5"}),u("portal.startPath.watchVideo",{defaultValue:"Watch video"})]}),W&&a.jsxs(ze,{open:w,onOpenChange:A,children:[a.jsx(Ue,{asChild:!0,children:a.jsxs("button",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors",children:[a.jsx(Ze,{className:"h-3.5 w-3.5"}),u("portal.startPath.openChecklist",{defaultValue:"Checklist"}),a.jsx(Ve,{className:P("h-3.5 w-3.5 transition-transform duration-200",w&&"rotate-180")})]})}),a.jsx(qe,{className:"mt-3",children:a.jsxs("div",{className:"bg-muted/50 rounded-lg p-3 border border-border animate-fade-in",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx("h4",{className:"text-sm font-medium text-foreground",children:u("portal.startPath.checklistTitle",{defaultValue:"Module Checklist"})}),a.jsxs("span",{className:"text-xs text-muted-foreground",children:[Object.values(O).filter((R,B)=>T(s,B)).length," / ",O.length]})]}),a.jsx("div",{className:"h-1 bg-border rounded-full mb-3 overflow-hidden",children:a.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-300",style:{width:`${h}%`}})}),a.jsx("ul",{className:"space-y-0.5",children:O.map((R,B)=>{const D=T(s,B);return a.jsx("li",{children:a.jsxs("button",{onClick:()=>V(s,B),className:P("w-full flex items-start gap-2.5 p-2 rounded-md text-left transition-colors","hover:bg-background focus:outline-none focus:ring-2 focus:ring-primary/20",D&&"opacity-70"),children:[D?a.jsx(tt,{className:"h-4 w-4 text-success flex-shrink-0 mt-0.5"}):a.jsx(at,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),a.jsx("span",{className:P("text-sm",D?"text-muted-foreground line-through":"text-foreground"),children:R})]})},B)})})]})})]}),a.jsxs(Oe,{to:z(`/cendra-os/start/${s}`),className:"ml-auto inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:text-primary/80 transition-colors group/link",children:[u("portal.startPath.viewModule",{defaultValue:"Open module"}),a.jsx(J,{className:"h-3.5 w-3.5 group-hover/link:translate-x-0.5 transition-transform"})]})]}),!f&&!w&&a.jsxs("div",{className:"mt-3 pt-3 border-t border-border",children:[a.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-1.5",children:u("portal.startPath.commonMistakes",{defaultValue:"Common mistakes"})}),a.jsxs("ul",{className:"text-xs text-muted-foreground space-y-1",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-warning",children:"â¢"}),u(`portal.startPath.modules.${s}.mistake1`,{defaultValue:"Skipping initial configuration steps"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-warning",children:"â¢"}),u(`portal.startPath.modules.${s}.mistake2`,{defaultValue:"Not testing before going live"})]})]})]})]})]})})})}var H={};(function s(g,N,f,y){var C=!!(g.Worker&&g.Blob&&g.Promise&&g.OffscreenCanvas&&g.OffscreenCanvasRenderingContext2D&&g.HTMLCanvasElement&&g.HTMLCanvasElement.prototype.transferControlToOffscreen&&g.URL&&g.URL.createObjectURL),u=typeof Path2D=="function"&&typeof DOMMatrix=="function",M=function(){if(!g.OffscreenCanvas)return!1;try{var t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);var r=t.transferToImageBitmap();e.createPattern(r,"no-repeat")}catch{return!1}return!0}();function w(){}function A(t){var e=N.exports.Promise,r=e!==void 0?e:g.Promise;return typeof r=="function"?new r(t):(t(w,w),null)}var T=function(t,e){return{transform:function(r){if(t)return r;if(e.has(r))return e.get(r);var o=new OffscreenCanvas(r.width,r.height),l=o.getContext("2d");return l.drawImage(r,0,0),e.set(r,o),o},clear:function(){e.clear()}}}(M,new Map),V=function(){var t=Math.floor(16.666666666666668),e,r,o={},l=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(e=function(i){var c=Math.random();return o[c]=requestAnimationFrame(function n(d){l===d||l+t-1<d?(l=d,delete o[c],i()):o[c]=requestAnimationFrame(n)}),c},r=function(i){o[i]&&cancelAnimationFrame(o[i])}):(e=function(i){return setTimeout(i,t)},r=function(i){return clearTimeout(i)}),{frame:e,cancel:r}}(),q=function(){var t,e,r={};function o(l){function i(c,n){l.postMessage({options:c||{},callback:n})}l.init=function(n){var d=n.transferControlToOffscreen();l.postMessage({canvas:d},[d])},l.fire=function(n,d,x){if(e)return i(n,null),e;var v=Math.random().toString(36).slice(2);return e=A(function(p){function b(j){j.data.callback===v&&(delete r[v],l.removeEventListener("message",b),e=null,T.clear(),x(),p())}l.addEventListener("message",b),i(n,v),r[v]=b.bind(null,{data:{callback:v}})}),e},l.reset=function(){l.postMessage({reset:!0});for(var n in r)r[n](),delete r[n]}}return function(){if(t)return t;if(!f&&C){var l=["var CONFETTI, SIZE = {}, module = {};","("+s.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(` 12`);try{t=new Worker(URL.createObjectURL(new Blob([l])))}catch(i){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("ð Could not load worker",i),null}o(t)}return t}}(),z={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function O(t,e){return e?e(t):t}function W(t){return t!=null}function h(t,e,r){return O(t&&W(t[e])?t[e]:z[e],r)}function R(t){return t<0?0:Math.floor(t)}function B(t,e){return Math.floor(Math.random()*(e-t))+t}function D(t){return parseInt(t,16)}function le(t){return t.map(ie)}function ie(t){var e=String(t).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:D(e.substring(0,2)),g:D(e.substring(2,4)),b:D(e.substring(4,6))}}function ce(t){var e=h(t,"origin",Object);return e.x=h(e,"x",Number),e.y=h(e,"y",Number),e}function de(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function ue(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function he(t){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=t,e}function me(t,e,r,o,l,i,c,n,d){t.save(),t.translate(e,r),t.rotate(i),t.scale(o,l),t.arc(0,0,1,c,n,d),t.restore(
vendor: 5,337 bytes, line 12
12)}function fe(t){var e=t.angle*(Math.PI/180),r=t.spread*(Math.PI/180);return{x:t.x,y:t.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:t.startVelocity*.5+Math.random()*t.startVelocity,angle2D:-e+(.5*r-Math.random()*r),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:t.color,shape:t.shape,tick:0,totalTicks:t.ticks,decay:t.decay,drift:t.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:t.gravity*3,ovalScalar:.6,scalar:t.scalar,flat:t.flat}}function xe(t,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);var r=e.tick++/e.totalTicks,o=e.x+e.random*e.tiltCos,l=e.y+e.random*e.tiltSin,i=e.wobbleX+e.random*e.tiltCos,c=e.wobbleY+e.random*e.tiltSin;if(t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-r)+")",t.beginPath(),u&&e.shape.type==="path"&&typeof e.shape.path=="string"&&Array.isArray(e.shape.matrix))t.fill(ge(e.shape.path,e.shape.matrix,e.x,e.y,Math.abs(i-o)*.1,Math.abs(c-l)*.1,Math.PI/10*e.wobble));else if(e.shape.type==="bitmap"){var n=Math.PI/10*e.wobble,d=Math.abs(i-o)*.1,x=Math.abs(c-l)*.1,v=e.shape.bitmap.width*e.scalar,p=e.shape.bitmap.height*e.scalar,b=new DOMMatrix([Math.cos(n)*d,Math.sin(n)*d,-Math.sin(n)*x,Math.cos(n)*x,e.x,e.y]);b.multiplySelf(new DOMMatrix(e.shape.matrix));var j=t.createPattern(T.transform(e.shape.bitmap),"no-repeat");j.setTransform(b),t.globalAlpha=1-r,t.fillStyle=j,t.fillRect(e.x-v/2,e.y-p/2,v,p),t.globalAlpha=1}else if(e.shape==="circle")t.ellipse?t.ellipse(e.x,e.y,Math.abs(i-o)*e.ovalScalar,Math.abs(c-l)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):me(t,e.x,e.y,Math.abs(i-o)*e.ovalScalar,Math.abs(c-l)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI);else if(e.shape==="star")for(var m=Math.PI/2*3,k=4*e.scalar,S=8*e.scalar,I=e.x,L=e.y,$=5,E=Math.PI/$;$--;)I=e.x+Math.cos(m)*S,L=e.y+Math.sin(m)*S,t.lineTo(I,L),m+=E,I=e.x+Math.cos(m)*k,L=e.y+Math.sin(m)*k,t.lineTo(I,L),m+=E;else t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(l)),t.lineTo(Math.floor(i),Math.floor(c)),t.lineTo(Math.floor(o),Math.floor(e.wobbleY));return t.closePath(),t.fill(),e.tick<e.totalTicks}function pe(t,e,r,o,l){var i=e.slice(),c=t.getContext("2d"),n,d,x=A(function(v){function p(){n=d=null,c.clearRect(0,0,o.width,o.height),T.clear(),l(),v()}function b(){f&&!(o.width===y.width&&o.height===y.height)&&(o.width=t.width=y.width,o.height=t.height=y.height),!o.width&&!o.height&&(r(t),o.width=t.width,o.height=t.height),c.clearRect(0,0,o.width,o.height),i=i.filter(function(j){return xe(c,j)}),i.length?n=V.frame(b):p()}n=V.frame(b),d=p});return{addFettis:function(v){return i=i.concat(v),x},canvas:t,promise:x,reset:function(){n&&V.cancel(n),d&&d()}}}function Y(t,e){var r=!t,o=!!h(e||{},"resize"),l=!1,i=h(e,"disableForReducedMotion",Boolean),c=C&&!!h(e||{},"useWorker"),n=c?q():null,d=r?de:ue,x=t&&n?!!t.__confetti_initialized:!1,v=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,p;function b(m,k,S){for(var I=h(m,"particleCount",R),L=h(m,"angle",Number),$=h(m,"spread",Number),E=h(m,"startVelocity",Number),ye=h(m,"decay",Number),we=h(m,"gravity",Number),je=h(m,"drift",Number),Q=h(m,"colors",le),Ne=h(m,"ticks",Number),X=h(m,"shapes"),Me=h(m,"scalar"),Ce=!!h(m,"flat"),K=ce(m),ee=I,Z=[],ke=t.width*K.x,Pe=t.height*K.y;ee--;)Z.push(fe({x:ke,y:Pe,angle:L,spread:$,startVelocity:E,color:Q[ee%Q.length],shape:X[B(0,X.length)],ticks:Ne,decay:ye,gravity:we,drift:je,scalar:Me,flat:Ce}));return p?p.addFettis(Z):(p=pe(t,Z,d,k,S),p.promise)}function j(m){var k=i||h(m,"disableForReducedMotion",Boolean),S=h(m,"zIndex",Number);if(k&&v)return A(function(E){E()});r&&p?t=p.canvas:r&&!t&&(t=he(S),document.body.appendChild(t)),o&&!x&&d(t);var I={width:t.width,height:t.height};n&&!x&&n.init(t),x=!0,n&&(t.__confetti_initialized=!0);function L(){if(n){var E={getBoundingClientRect:function(){if(!r)return t.getBoundingClientRect()}};d(E),n.postMessage({resize:{width:E.width,height:E.height}});return}I.width=I.height=null}function $(){p=null,o&&(l=!1,g.removeEventListener("resize",L)),r&&t&&(document.body.contains(t)&&document.body.removeChild(t),t=null,x=!1)}return o&&!l&&(l=!0,g.addEventListener("resize",L,!1)),n?n.fire(m,I,$):b(m,I,$)}return j.reset=function(){n&&n.reset(),p&&p.reset()},j}var _;function G(){return _||(_=Y(null,{useWorker:!0,resize:!0})),_}function ge(t,e,r,o,l,i,c){var n=new Path2D(t),d=new Path2D;d.addPath(n,new DOMMatrix(e));var x=new Path2D;return x.addPath(d,new DOMMatrix([Math.cos(c)*l,Math.sin(c)*l,-Math.sin(c)*i,Math.cos(c)*i,r,o])),x}function ve(t){if(!u)throw new Error("path confetti are not supported in this browser");var e,r;typeof t=="string"?e=t:(e=t.path,r=t.matrix);var o=new Path2D(e),l=document.createElement("canvas"),i=l.getContext("2d");if(!r){for(var c=1e3,n=c,d=c,x=0,v=0,p,b,j=0;j<c;j+=2)for(var m=0;m<c;m+=2)i.isPointInPath(o,j,m,"nonzero")&&(n=Math.min(n,j),d=Math.min(d,m),x=Math.max(x,j),v=Math.max(v,m));p=x-n,b=v-d;
12var k=10,S=Math.min(k/p,k/b);r=[S,0,0,S,-Math.round(p/2+n)*S,-Math.round(b/2+d)*S]}return{type:"path",path:e,matrix:r}}function be(t){var e,r=1,o="#000000",l='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof t=="string"?e=t:(e=t.text,r="scalar"in t?t.scalar:r,l="fontFamily"in t?t.fontFamily:l,o="color"in t?t.color:o);var i=10*r,c=""+i+"px "+l,n=new OffscreenCanvas(i,i),d=n.getContext("2d");d.font=c;var x=d.measureText(e),v=Math.ceil(x.actualBoundingBoxRight+x.actualBoundingBoxLeft),p=Math.ceil(x.actualBoundingBoxAscent+x.actualBoundingBoxDescent),b=2,j=x.actualBoundingBoxLeft+b,m=x.actualBoundingBoxAscent+b;v+=b+b,p+=b+b,n=new OffscreenCanvas(v,p),d=n.getContext("2d"),d.font=c,d.fillStyle=o,d.fillText(e,j,m);var k=1/r;return{type:"bitmap",bitmap:n.transferToImageBitmap(),matrix:[k,0,0,k,-v*k/2,-p*k/2]}}N.exports=function(){return G().apply(this,arguments)},N.exports.reset=function(){G().reset()},N.exports.create=Y,N.exports.shapeFromPath=ve,N.exports.shapeFromText=be})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),H,!1);const ot=H.exports;H.exports.create;function lt(){return{fireConfetti:F.useCallback(()=>{const N={origin:{y:.7},zIndex:9999};function f(y,C){ot({...N,...C,particleCount:Math.floor(200*y)})}f(.25,{spread:26,startVelocity:55,origin:{x:.2,y:.7}}),f(.2,{spread:60,origin:{x:.2,y:.7}}),f(.35,{spread:100,decay:.91,scalar:.8,origin:{x:.2,y:.7}}),f(.25,{spread:26,startVelocity:55,origin:{x:.8,y:.7}}),f(.2,{spread:60,origin:{x:.8,y:.7}}),f(.35,{spread:100,decay:.91,scalar:.8,origin:{x:.8,y:.7}}),f(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2,origin:{x:.5,y:.6}}),f(.1,{spread:120,startVelocity:45,origin:{x:.5,y:.6}})},[])}}const it={pms:Be,pilot:Ae,inbox:We,voice:He,policies:Xe,approvals:Ke,workflows:et,review:De,automation:$e};function wt(){const{t:s}=re("cendraOS"),g=Ee(),{currentLanguage:N}=se(),{fireConfetti:f}=lt(),y=F.useRef(0),{completedModules:C,currentModuleIndex:u,isModuleCompleted:M,toggleModuleComplete:w,resetProgress:A,progressPercentage:T}=Je(),V=C.length===U.length,q=U[u]||U[0],z=h=>N==="en"?h:`/${N}${h}`;F.useEffect(()=>{V&&y.current<U.length&&f(),y.current=C.length},[V,C.length,f]);const O=()=>{g(z(`/cendra-os/start/${q}`))},W=()=>{g(z("/cendra-os/cohorts"))};return a.jsxs("div",{className:"min-h-screen",children:[a.jsx("section",{className:"relative border-b border-border bg-background",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 pt-8 pb-10 md:pt-12 md:pb-14",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a.jsx("div",{className:"w-7 h-7 rounded-lg bg-primary/10 flex items-center justify-center",children:a.jsx(Fe,{className:"w-3.5 h-3.5 text-primary"})}),a.jsx("span",{className:"text-sm font-medium text-primary",children:s("portal.startPath.eyebrow",{defaultValue:"Cendra OS ⢠Start Path"})})]}),a.jsx("h1",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-foreground mb-3 leading-tight",children:s("portal.startPath.heroTitle",{defaultValue:"Reach 80%+ automation in 9 modules"})}),a.jsx("p",{className:"text-base md:text-lg text-muted-foreground max-w-2xl mb-6 leading-relaxed",children:s("portal.startPath.heroSubtitle",{defaultValue:"Self-paced setup designed for busy operators. Complete at your own pace or join a live cohort for expert guidance."})}),a.jsxs("div",{className:"inline-flex items-center gap-3 px-3 py-2 rounded-lg bg-muted border border-border",children:[a.jsx(Ye,{className:"w-4 h-4 text-success"}),a.jsxs("span",{className:"text-sm text-foreground",children:[a.jsx("span",{className:"font-semibold",children:s("portal.startPath.goalLabel",{defaultValue:"Your goal:"})})," ",a.jsxs("span",{className:"text-success font-medium",children:["80%+ ",s("portal.startPath.automationLabel",{defaultValue:"automation"})]})]})]})]})}),a.jsx("section",{className:"border-b border-border bg-muted/30",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 py-8",children:[a.jsx("h2",{className:"text-lg font-semibold text-foreground mb-2",children:s("portal.startPath.choosePathTitle",{defaultValue:"Choose your path"})}),a.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:s("portal.startPath.choosePathDescription",{defaultValue:"Both paths lead to the same destination â pick
12what suits your schedule."})}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsx("button",{onClick:()=>{document.getElementById("modules-section")?.scrollIntoView({behavior:"smooth"})},className:"group relative text-left p-5 rounded-xl border border-border bg-background hover:border-primary/40 hover:shadow-md transition-all duration-200",children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:a.jsx(Re,{className:"w-5 h-5 text-primary"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("h3",{className:"text-base font-semibold text-foreground mb-1 flex items-center gap-2",children:[s("portal.startPath.paths.self-paced.title",{defaultValue:"Self-Paced Path"}),a.jsx(J,{className:"w-4 h-4 text-muted-foreground group-hover:text-primary group-hover:translate-x-0.5 transition-all"})]}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:s("portal.startPath.paths.self-paced.description",{defaultValue:"Work through modules at your own speed with video guides, checklists, and documentation."})})]})]})}),a.jsxs("button",{onClick:W,className:"group relative text-left p-5 rounded-xl border border-accent/30 bg-accent/5 hover:border-accent/50 hover:shadow-md transition-all duration-200",children:[a.jsx("span",{className:"absolute -top-2.5 right-4 px-2.5 py-0.5 text-xs font-medium bg-accent text-accent-foreground rounded-full",children:s("portal.startPath.paths.cohort.badge",{defaultValue:"Recommended"})}),a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-accent/10 flex items-center justify-center flex-shrink-0",children:a.jsx(Le,{className:"w-5 h-5 text-accent"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("h3",{className:"text-base font-semibold text-foreground mb-1 flex items-center gap-2",children:[s("portal.startPath.paths.cohort.title",{defaultValue:"Cohort Fast Lane"}),a.jsx(J,{className:"w-4 h-4 text-muted-foreground group-hover:text-accent group-hover:translate-x-0.5 transition-all"})]}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-2",children:s("portal.startPath.paths.cohort.description",{defaultValue:"Join a live cohort with expert instructors and a group of fellow operators."})}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-accent font-medium",children:[a.jsx(Ge,{className:"w-3.5 h-3.5"}),a.jsxs("span",{children:[s("portal.cohorts.nextCohortLabel",{defaultValue:"Next cohort starts"}),": Jan 20"]})]})]})]})]})]})]})}),a.jsx("section",{id:"modules-section",className:"border-b border-border bg-background scroll-mt-16",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 py-6",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-6",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-base font-semibold text-foreground mb-1",children:s("portal.startPath.progressLabel",{defaultValue:"Your Progress"})}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:[C.length," / ",U.length," ",s("portal.startPath.modulesCompleted",{defaultValue:"modules completed"})]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[!V&&a.jsxs(te,{onClick:O,className:"gap-2",children:[a.jsx(ne,{className:"w-4 h-4"}),u===0?s("portal.startPath.startFirstModule",{defaultValue:"Start setup"}):s("portal.startPath.continueSetup",{defaultValue:"Continue setup"})]}),V&&a.jsxs("span",{className:"text-sm font-medium text-success flex items-center gap-2",children:["ð ",s("portal.startPath.allComplete",{defaultValue:"All modules complete!"})]}),C.length>0&&a.jsxs(te,{variant:"ghost",size:"sm",onClick:A,className:"text-muted-foreground hover:text-foreground",children:[a.jsx(Qe,{className:"h-3.5 w-3.5 mr-1.5"}),s("portal.startPath.resetProgress",{defaultValue:"Reset"})]})]})]}),a.jsx("div",{className:"h-1.5 bg-muted rounded-full overflow-hidden mb-2",children:a.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-500 ease-out",style:{width:`${T}%`}})}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-xs text-muted-foreground",children:"0%"}),a.jsxs("span",{className:P("text-xs font-semibold",T>=80?"text-success":"text-primary"),children:[T,"%"]}),a.jsx("span",{className:"text-xs text-muted-foreground",children:"100%"})]})]})}),a.jsx("section",{className:"bg-background",children:a.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 py-6",children:a.jsx("div",{className:"space-y-3",children:U.map((h,R)=>a.jsx(nt,{moduleKey:h,index:R,icon:it[h],isCompleted:M(h),isCurrent:R===u,onToggleComplete:()=>w(h)},h))})})})]})}export{wt as default};
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.