1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6857],{6645:(e,a,s)=>{s.d(a,{A:()=>r});let r=(0,s(81008).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},17435:(e,a,s)=>{s.d(a,{P:()=>l});var r=s(3729);let l=(0,r.createServerReference)("40f4a22c09ab4ff9c04742c8a9e67141583dbd1d4b",r.callServer,void 0,r.findSourceMapURL,"getJourneysWithMetricsAction")},27753:(e,a,s)=>{s.d(a,{bq:()=>m,eb:()=>f,gC:()=>x,l6:()=>c,yv:()=>u});var r=s(7131),l=s(555),t=s(11444),n=s(86106),i=s(36871),d=s(89276),o=s(58258);let c=t.bL;t.YJ;let u=t.WT,m=l.forwardRef((e,a)=>{let{className:s,children:l,...i}=e;return(0,r.jsxs)(t.l9,{ref:a,className:(0,o.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...i,children:[l,(0,r.jsx)(t.In,{asChild:!0,children:(0,r.jsx)(n.A,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=t.l9.displayName;let h=l.forwardRef((e,a)=>{let{className:s,...l}=e;return(0,r.jsx)(t.PP,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...l,children:(0,r.jsx)(i.A,{className:"h-4 w-4"})})});h.displayName=t.PP.displayName;let p=l.forwardRef((e,a)=>{let{className:s,...l}=e;return(0,r.jsx)(t.wn,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...l,children:(0,r.jsx)(n.A,{className:"h-4 w-4"})})});p.displayName=t.wn.displayName;let x=l.forwardRef((e,a)=>{let{className:s,children:l,position:n="popper",...i}=e;return(0,r.jsx)(t.ZL,{children:(0,r.jsxs)(t.UC,{ref:a,className:(0,o.cn)("relative z-[10001] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:n,...i,children:[(0,r.jsx)(h,{}),(0,r.jsx)(t.LM,{className:(0,o.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),(0,r.jsx)(p,{})]})})});x.displayName=t.UC.displayName,l.forwardRef((e,a)=>{let{className:s,...l}=e;return(0,r.jsx)(t.JU,{ref:a,className:(0,o.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",s),...l})}).displayName=t.JU.displayName;let f=l.forwardRef((e,a)=>{let{className:s,children:l,...n}=e;return(0,r.jsxs)(t.q7,{ref:a,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",s),...n,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(t.VF,{children:(0,r.jsx)(d.A,{className:"h-4 w-4"})})}),(0,r.jsx)(t.p4,{children:l})]})});f.displayName=t.q7.displayName,l.forwardRef((e,a)=>{let{className:s,...l}=e;return(0,r.jsx)(t.wv,{ref:a,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",s),...l})}).displayName=t.wv.displayName},27839:(e,a,s)=>{s.r(a),s.d(a,{DashboardJourneyPages:()=>L});var r=s(7131),l=s(555),t=s(25907),n=s(72902),i=s(22954),d=s(64408),o=s(80671),c=s(15483),u=s(59245),m=s(6645),h=s(87925),p=s(73999),x=s(37517),f=s(39827),g=s(29081),j=s(27753),v=s(82549),b=s(38227),y=s(89935),N=s(51942),w=s(71794),_=s(12914),k=s(75899),C=s(17435),R=s(3729);
1let S=(0,R.createServerReference)("40f025999c18635d13bb27a8cbaaa7f5d596628ccd",R.callServer,void 0,R.findSourceMapURL,"getJourneyPagesForAdminAction");var A=s(78228);let P=(0,R.createServerReference)("60a8bc4ac4b7cfa5279208fea54bf4a4893ea2aff5",R.callServer,void 0,R.findSourceMapURL,"deleteJourneyPageAction");function T(e){return e.trim().toLowerCase().replace(/['"]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function L(){var e;let{session:a}=(0,k.A)(),s=null!=(e=null==a?void 0:a.access_token)?e:null,[R,L]=(0,l.useState)(!0),[M,E]=(0,l.useState)([]),[J,U]=(0,l.useState)([]),[D,F]=(0,l.useState)(!1),[H,B]=(0,l.useState)(!1),[I,V]=(0,l.useState)({journey_id:"",slug:"",hero_title:"",hero_subtitle:"",banner_image_url:"",video_url:"",content_markdown:"",cta_label:"Take prelim assessment",is_published:!1}),q=(0,l.useMemo)(()=>{var e;return null!=(e=M.find(e=>e.id===I.journey_id))?e:null},[M,I.journey_id]),z=e=>{var a,s,r,l,t,n,i;V({id:e.id,journey_id:e.journey_id,slug:null!=(a=e.slug)?a:"",hero_title:null!=(s=e.hero_title)?s:"",hero_subtitle:null!=(r=e.hero_subtitle)?r:"",banner_image_url:null!=(l=e.banner_image_url)?l:"",video_url:null!=(t=e.video_url)?t:"",content_markdown:null!=(n=e.content_markdown)?n:"",cta_label:null!=(i=e.cta_label)?i:"Take prelim assessment",is_published:!0===e.is_published}),F(!0)},G=async()=>{L(!0);try{let[e,a]=await Promise.all([(0,C.P)(),S(s)]);if(!e.ok)throw Error(e.error);if(!a.ok)throw Error(a.error);E((Array.isArray(e.data)?e.data:[]).map(e=>{var a,s,r,l,t;return{id:String(e.id),name:String(null!=(a=e.name)?a:"Journey"),category:String(null!=(s=e.category)?s:"general"),description:null!=(r=e.description)?r:null,cover_image_url:null!=(l=e.cover_image_url)?l:null,metric_id:null!=(t=e.metric_id)?t:null}})),U(Array.isArray(a.data)?a.data:[])}catch(e){n.oR.error(e instanceof Error?e.message:"Failed to load")}finally{L(!1)}};(0,l.useEffect)(()=>{G()},[s]);let Z=async()=>{if(!I.journey_id)return void n.oR.error("Select a journey");if(!I.slug.trim())return void n.oR.error("Slug is required");B(!0);try{var e;let a={id:I.id,journey_id:I.journey_id,slug:T(I.slug),banner_image_url:I.banner_image_url||null,hero_title:I.hero_title||null,hero_subtitle:I.hero_subtitle||null,video_url:I.video_url||null,content_markdown:null!=(e=I.content_markdown)?e:"",cta_label:I.cta_label||null,is_published:I.is_published},r=await (0,A.F)(a,s);if(!r.ok)throw Error(r.error);n.oR.success("Journey page saved"),F(!1),await G()}catch(e){n.oR.error(e instanceof Error?e.message:"Failed to save")}finally{B(!1)}},K=async e=>{try{let a=await P(e,s);if(!a.ok)throw Error(a.error);n.oR.success("Deleted"),await G()}catch(e){n.oR.error(e instanceof Error?e.message:"Failed to delete")}};return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(i.A,{className:"h-5 w-5 text-primary"}),(0,r.jsx)("h2",{className:"text-2xl font-semibold tracking-tight",children:"Journey Pages"})]}),(0,r.jsxs)("p",{className:"text-sm text-muted-foreground",children:["These power the public landing pages at ",(0,r.jsx)("span",{className:"font-mono",children:"/journey/[slug]"}),"."]})]}),(0,r.jsx)(t.P.div,{whileHover:{scale:1.01},whileTap:{scale:.98},children:(0,r.jsxs)(h.$,{className:"rounded-sm gap-2",onClick:()=>{var e,a,s;V({journey_id:null!=(s=null==(e=M[0])?void 0:e.id)?s:"",slug:(null==(a=M[0])?void 0:a.name)?T(M[0].name):"",hero_title:"",hero_subtitle:"",banner_image_url:"",video_url:"",content_markdown:"",cta_label:"Take prelim assessment",is_published:!1}),F(!0)},disabled:R||0===M.length,children:[(0,r.jsx)(d.A,{className:"h-4 w-4"}),"New page"]})})]}),(0,r.jsx)(w.w,{}),(0,r.jsxs)("div",{className:"grid gap-4 lg:grid-cols-2",children:[(0,r.jsxs)(p.Zp,{className:"rounded-sm",children:[(0,r.jsxs)(p.aR,{children:[(0,r.jsx)(p.ZB,{className:"text-base",children:"Pages"}),(0,r.jsx)(p.BT,{children:"Click any page to edit."})]}),(0,r.jsx)(p.Wu,{className:"space-y-3",children:R?(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("div",{className:"h-10 rounded-sm bg-muted animate-pulse"}),(0,r.jsx)("div",{className:"h-10 rounded-sm bg-muted animate-pulse"}),(0,r.jsx)("div",{className:"h-10 rounded-sm bg-muted animate-pulse"})]}):0===J.length?(0,r.jsx)("div",{className:"text-sm text-muted-foreground",children:"No journey pages yet."}):(0,r.jsx)("div",{className:"space-y-2",children:J.map(e=>{var a,s;return(0,r.jsx)(t.P.button,{whileHover:{y:-2},onClick:()=>z(e),className:"w-full text-left rounded-sm border border-border hover:border-primary/30 transition-colors p-3",children:(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"font-medium text-foreground truncate",children:null!=(s=null==(a=e.journey)?void 0:a.name)?s:"Journey"}),(0,r.jsxs)("div",{className:"text-xs text-muted-foreground truncate",children:["/",e.slug]})]}),(0,r.jsx)("div",{className:"flex items-center gap-2 shrink-0",children:e.is_published?(0,r.jsx)(N.E,{variant:"secondary",className:"rounded-sm",children:"Published"}):(0,r.jsx)(N.E,{variant:"outline",className:"rounded-sm",children:"Draft"})})]})},e.id)})})})]}
1),(0,r.jsxs)(p.Zp,{className:"rounded-sm",children:[(0,r.jsxs)(p.aR,{children:[(0,r.jsx)(p.ZB,{className:"text-base",children:"Tips"}),(0,r.jsx)(p.BT,{children:"Keep pages consistent and beautiful."})]}),(0,r.jsxs)(p.Wu,{className:"space-y-3 text-sm text-muted-foreground",children:[(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(o.A,{className:"h-4 w-4 mt-0.5 text-primary"}),(0,r.jsxs)("p",{children:[(0,r.jsx)("span",{className:"text-foreground font-medium",children:"Slug"})," should be stable; it becomes the public URL."]})]}),(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(c.A,{className:"h-4 w-4 mt-0.5 text-primary"}),(0,r.jsxs)("p",{children:[(0,r.jsx)("span",{className:"text-foreground font-medium",children:"Video URL"})," supports MP4/WebM for the custom player. Non-MP4 links will render an âOpen videoâ button."]})]}),(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(i.A,{className:"h-4 w-4 mt-0.5 text-primary"}),(0,r.jsxs)("p",{children:[(0,r.jsx)("span",{className:"text-foreground font-medium",children:"Content"})," is Markdown. Use headings, lists, and short paragraphs for readability."]})]})]})]})]}),(0,r.jsx)(x.lG,{open:D,onOpenChange:F,children:(0,r.jsxs)(x.Cf,{className:"sm:max-w-3xl",children:[(0,r.jsxs)(x.c7,{children:[(0,r.jsx)(x.L3,{children:I.id?"Edit Journey Page":"New Journey Page"}),(0,r.jsx)(x.rr,{children:"These fields render on the public journey landing page."})]}),(0,r.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(g.J,{children:"Journey"}),(0,r.jsxs)(j.l6,{value:I.journey_id||void 0,onValueChange:e=>{var a;let s=null!=(a=M.find(a=>a.id===e))?a:null;V(a=>({...a,journey_id:e,slug:a.slug?a.slug:(null==s?void 0:s.name)?T(s.name):""}))},children:[(0,r.jsx)(j.bq,{className:"rounded-sm",children:(0,r.jsx)(j.yv,{placeholder:"Select journey"})}),(0,r.jsx)(j.gC,{children:M.map(e=>(0,r.jsx)(j.eb,{value:e.id,children:e.name},e.id))})]}),q&&(0,r.jsxs)("div",{className:"text-xs text-muted-foreground",children:["Category: ",(0,r.jsx)("span",{className:"capitalize",children:q.category})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(g.J,{children:"Slug"}),(0,r.jsx)(f.p,{className:"rounded-sm",value:I.slug,onChange:e=>V(a=>({...a,slug:e.target.value})),placeholder:"e.g. trauma-healing"}),(0,r.jsxs)("div",{className:"text-xs text-muted-foreground",children:["Public URL: ",(0,r.jsxs)("span",{className:"font-mono",children:["/journey/",T(I.slug||"...")]})]})]})]}),(0,r.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(g.J,{children:"Banner image URL"}),(0,r.jsx)(f.p,{className:"rounded-sm",value:I.banner_image_url,onChange:e=>V(a=>({...a,banner_image_url:e.target.value})),placeholder:"https://..."})]}),(0,r.jsx)("div",{className:"space-y-2",children:(0,r.jsx)(y.P,{value:I.video_url,onChange:e=>V(a=>({...a,video_url:e})),onStreamSelect:e=>V(a=>({...a,stream_uid:e.streamUid,stream_status:e.streamStatus})),accept:"video",label:"Video",placeholder:"Select video or enter URL"})})]}),(0,r.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(g.J,{children:"Hero title (optional)"}),(0,r.jsx)(f.p,{className:"rounded-sm",value:I.hero_title,onChange:e=>V(a=>({...a,hero_title:e.target.value})),placeholder:"Overrides journey name"})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(g.J,{children:"Hero subtitle (optional)"}),(0,r.jsx)(f.p,{className:"rounded-sm",value:I.hero_subtitle,onChange:e=>V(a=>({...a,hero_subtitle:e.target.value})),placeholder:"Short description under the title"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(g.J,{children:"Content (Markdown)"}),(0,r.jsx)(b.T,{className:"rounded-sm min-h-[220px]",value:I.content_markdown,onChange:e=>V(a=>({...a,content_markdown:e.target.value})),placeholder:"Write the journey blog/description here..."})]}),(0,r.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(g.J,{children:"CTA label (optional)"}),(0,r.jsx)(f.p,{className:"rounded-sm",value:I.cta_label,onChange:e=>V(a=>({...a,cta_label:e.target.value})),placeholder:"Take prelim assessment"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between rounded-sm border border-border p-3",children:[(0,r.jsxs)("div",{className:"space-y-0.5",children:[(0,r.jsx)("div",{className:"text-sm font-medium",children:"Published"}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground",children:"Public users can only view published pages."})]}),(0,r.jsx)(v.d,{checked:I.is_published,onCheckedChange:e=>V(a=>({...a,is_published:e}))})]})]}),(0,r.jsxs)(x.Es,{className:"flex-col gap-2 sm:flex-row sm:justify-between",children:[I.id?(0,r.jsxs)(_.Lt,{children:[(0,r.jsx)(_.tv,{asChild:!0,children:(0,r.jsxs)(h.$,{variant:"outline",className:"rounded-sm gap-2",children:[(0,r.jsx)(u.A,{className:"h-4 w-4"}),"Delete"]})}),(0,r.jsxs)(_.EO,{children:[(0,r.jsxs)(_.wd,{children:[(0,r.jsx)(_.r7,{children:"Delete this journey page?"}),(0,r.jsx)(_.$v,{children:"This cannot be undone. The public URL will stop working."})]}),(0,r.jsxs)(_.ck,{children:[(0,r.jsx)(_.Zr,{children:"Cancel"}),(0,r.jsx)(_.Rx,{onClick:()=>K(I.id),children:"Delete"})]})]})]}):(0,r.jsx)("div",{}),(0,r.jsx)(t.P.div,{whileHover:{scale:1.01},whileTap:{scale:.98},children:(0,r.jsxs)(h.$,{className:"rounded-sm gap-2",onClick:Z,disabled:H,children:[(0,r.jsx)(m.A,{className:"h-4 w-4"}),H?"Saving...":"Save"]})})]})]})})]})}},40395:(e,a,s)=>{s.d(a,{B8:()=>A,UC:()=>T,bL:()=>S,l9:()=>P});var r=s(555),l=s(83751),t=s(98165),n=s(79009),i=s(71107),d=s(78568),o=s(80146),c=s(3144),u=s(51240),m=s(7131),h="Tabs",[p,x]=(0,t.A)(h,[n.RG]),f=(0,n.RG)(),[g,j]=p(h),v=r.forwardRef((e,a)=>{let{__scopeTabs:s,value:r,onValueChange:l,defaultValue:t,orientation:n="horizontal",dir:i,activationMode:p="automatic",...x}=e,f=(0,o.jH)(i),[j,v]=(0,c.i)({prop:r,onChange:l,defaultProp:null!=t?t:"",caller:h});return(0,m.jsx)(g,{scope:s,baseId:(0,u.B)(),value:j,onValueChange:v,orientation:n,dir:f,activationMode:p,children:(0,m.jsx)(d.sG.div,{dir:f,"data-orientation":n,...x,ref:a})})});v.displayName=h;var b="TabsList",y=r.forwardRef((e,a)=>{let{__scopeTabs:s,loop:r=!0,...l}=e,t=j(b,s),i=f(s);return(0,m.jsx)(n.bL,{asChild:!0,...i,orientation:t.orientation,dir:t.dir,loop:r,children:(0,m.jsx)(d.sG.div,{role:"tablist","aria-orientation":t.orientation,...l,ref:a})})});y.displayName=b;var N="TabsTrigger",w=r.forwardRef((e,a)=>{let{__scopeTabs:s,value:r,disabled:t=!1,...i}=e,o=j(N,s),c=f(s),u=C(o.baseId,r),h=R(o.baseId,r),p=r===o.value;return(0,m.jsx)(n.q7,{asChild:!0,...c,focusable:!t,active:p,children:(0,m.jsx)(d.sG.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":h,"data-state":p?"active":"inactive","data-disabled":t?"":void 0,disabled:t,id:u,...i,ref:a,onMouseDown:(0,l.mK)(e.onMouseDown,e=>{t||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(r)}),onKeyDown:(0,l.mK)(e.onKeyDown,e=>
1{[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:(0,l.mK)(e.onFocus,()=>{let e="manual"!==o.activationMode;p||t||!e||o.onValueChange(r)})})})});w.displayName=N;var _="TabsContent",k=r.forwardRef((e,a)=>{let{__scopeTabs:s,value:l,forceMount:t,children:n,...o}=e,c=j(_,s),u=C(c.baseId,l),h=R(c.baseId,l),p=l===c.value,x=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,m.jsx)(i.C,{present:t||p,children:s=>{let{present:r}=s;return(0,m.jsx)(d.sG.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:h,tabIndex:0,...o,ref:a,style:{...e.style,animationDuration:x.current?"0s":void 0},children:r&&n})}})});function C(e,a){return"".concat(e,"-trigger-").concat(a)}function R(e,a){return"".concat(e,"-content-").concat(a)}k.displayName=_;var S=v,A=y,P=w,T=k},62051:(e,a,s)=>{s.d(a,{bL:()=>N,zi:()=>w});var r=s(555),l=s(83751),t=s(57789),n=s(98165),i=s(3144),d=s(75024),o=s(3688),c=s(78568),u=s(7131),m="Switch",[h,p]=(0,n.A)(m),[x,f]=h(m),g=r.forwardRef((e,a)=>{let{__scopeSwitch:s,name:n,checked:d,defaultChecked:o,required:h,disabled:p,value:f="on",onCheckedChange:g,form:j,...v}=e,[N,w]=r.useState(null),_=(0,t.s)(a,e=>w(e)),k=r.useRef(!1),C=!N||j||!!N.closest("form"),[R,S]=(0,i.i)({prop:d,defaultProp:null!=o&&o,onChange:g,caller:m});return(0,u.jsxs)(x,{scope:s,checked:R,disabled:p,children:[(0,u.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":R,"aria-required":h,"data-state":y(R),"data-disabled":p?"":void 0,disabled:p,value:f,...v,ref:_,onClick:(0,l.mK)(e.onClick,e=>{S(e=>!e),C&&(k.current=e.isPropagationStopped(),k.current||e.stopPropagation())})}),C&&(0,u.jsx)(b,{control:N,bubbles:!k.current,name:n,value:f,checked:R,required:h,disabled:p,form:j,style:{transform:"translateX(-100%)"}})]})});g.displayName=m;var j="SwitchThumb",v=r.forwardRef((e,a)=>{let{__scopeSwitch:s,...r}=e,l=f(j,s);return(0,u.jsx)(c.sG.span,{"data-state":y(l.checked),"data-disabled":l.disabled?"":void 0,...r,ref:a})});v.displayName=j;var b=r.forwardRef((e,a)=>{let{__scopeSwitch:s,control:l,checked:n,bubbles:i=!0,...c}=e,m=r.useRef(null),h=(0,t.s)(m,a),p=(0,d.Z)(n),x=(0,o.X)(l);return r.useEffect(()=>{let e=m.current;if(!e)return;let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==n&&a){let s=new Event("click",{bubbles:i});a.call(e,n),e.dispatchEvent(s)}},[p,n,i]),(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...c,tabIndex:-1,ref:h,style:{...c.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function y(e){return e?"checked":"unchecked"}b.displayName="SwitchBubbleInput";var N=g,w=v},64408:(e,a,s)=>{s.d(a,{A:()=>r});let r=(0,s(81008).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},73999:(e,a,s)=>{s.d(a,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>n,aR:()=>i});var r=s(7131),l=s(555),t=s(58258);let n=l.forwardRef((e,a)=>{let{className:s,...l}=e;return(0,r.jsx)("div",{ref:a,className:(0,t.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",s),...l})});n.displayName="Card";let i=l.forwardRef((e,a)=>{let{className:s,...l}=e;return(0,r.jsx)("div",{ref:a,className:(0,t.cn)("flex flex-col space-y-1.5 p-6",s),...l})});i.displayName="CardHeader";let d=l.forwardRef((e,a)=>{let{className:s,...l}=e;return(0,r.jsx)("h3",{ref:a,className:(0,t.cn)("text-2xl font-semibold leading-none tracking-tight",s),...l})});d.displayName="CardTitle";let o=l.forwardRef((e,a)=>{let{className:s,...l}=e;return(0,r.jsx)("p",{ref:a,className:(0,t.cn)("text-sm text-muted-foreground",s),...l})});o.displayName="CardDescription";let c=l.forwardRef((e,a)=>{let{className:s,...l}=e;return(0,r.jsx)("div",{ref:a,className:(0,t.cn)("p-6 pt-0",s),...l})});c.displayName="CardContent",l.forwardRef((e,a)=>{let{className:s,...l}=e;return(0,r.jsx)("div",{ref:a,className:(0,t.cn)("flex items-center p-6 pt-0",s),...l})}).displayName="CardFooter"},78228:(e,a,s)=>{s.d(a,{F:()=>l});var r=s(3729);let l=(0,r.createServerReference)("604730bdf2435c623ba32f875eab260abc6e901d8e",r.callServer,void 0,r.findSourceMapURL,"upsertJourneyPageAction")},80671:(e,a,s)=>{s.d(a,{A:()=>r});let r=(0,s(81008).A)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",ke
1y:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},82549:(e,a,s)=>{s.d(a,{d:()=>i});var r=s(7131),l=s(555),t=s(62051),n=s(58258);let i=l.forwardRef((e,a)=>{let{className:s,...l}=e;return(0,r.jsx)(t.bL,{className:(0,n.cn)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",s),...l,ref:a,children:(0,r.jsx)(t.zi,{className:(0,n.cn)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})});i.displayName=t.bL.displayName}}]);
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.