1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3a76b896-8050-49bd-a1e0-b0ca581724b9",e._sentryDebugIdIdentifier="sentry-dbid-3a76b896-8050-49bd-a1e0-b0ca581724b9")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5829],{26376:(e,t,r)=>{r.d(t,{A:()=>n});var l=r(37876),s=r(58103),a=r.n(s),i=r(14232);let n=e=>{let{gaugeSize:t=100,trackPosition:r=0,trackWidth:s=8,trackColor:n="#1FB17A",stepWidth:o=8,stepColor:c="#EAEAEA",label:d="to go",labelColor:h="#333",animationSpeed:u=1,strokeCap:m="butt",className:p="",gaugeDuration:v}=e,[g,f]=(0,i.useState)(0),[x,b]=(0,i.useState)(!1),j=t/2,w=j-(s>o?s-2:o-2),y=2*Math.PI*w,k=(v-r)/v*y;return(0,i.useEffect)(()=>{f(r),g<v?b(!1):b(!0)},[g,x,r]),(0,l.jsx)("div",{className:p,"data-testid":"progress-gauge",children:(0,l.jsxs)("div",{className:"relative group ".concat(p),style:{width:t,height:t},children:[(0,l.jsxs)("svg",{className:"-rotate-90",style:{width:t,height:t},children:[(0,l.jsx)("circle",{cx:j,cy:j,fill:"white",r:w,stroke:c,strokeWidth:s}),(0,l.jsx)("circle",{style:{animationDuration:1e3*u},cx:j,cy:j,fill:"transparent",r:w,stroke:n,strokeWidth:o+.2,strokeDasharray:y,strokeDashoffset:x?0:k,strokeLinecap:m})]}),(0,l.jsxs)("div",{className:"absolute text-center uppercase -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2",style:{color:h},children:[!x&&(0,l.jsx)("div",{className:"text-dark-green whitespace-nowrap text__label",children:((e,t)=>{let r=Math.ceil(e-t);return r+"".concat(r>1?" MINS":" MIN")})(v,r)}),(0,l.jsx)("div",{className:a()("text__tag",{"text-dark-green":x,"text-gray-10":!x}),children:x?"completed":d})]})]})})}},26449:(e,t,r)=>{r.d(t,{A:()=>o});var l=r(37876),s=r(71451),a=r(90057),i=r(58103),n=r.n(i);let o=e=>{let{props:t,className:r=""}=e;if((0,a.FG)(t)){let{url:e,alt:i}=(0,a.lf)(t);return(0,l.jsx)("div",{"data-testid":"completion-badge",className:n()("relative w-24 h-24",r),children:(0,l.jsx)(s.A,{src:e,alt:i,fill:!0,style:{objectFit:"contain"}})})}{let{url:e,backgroundUrl:i,alt:o}=(0,a.lf)(t);return(0,l.jsxs)("div",{"data-testid":"placeholder-badge",className:n()("relative w-24 h-24 flex justify-center items-center",r),children:[(0,l.jsx)("div",{className:"relative w-18 h-18",children:(0,l.jsx)(s.A,{src:e,alt:o,fill:!0,style:{objectFit:"contain"},className:"z-20"})}),(0,l.jsx)(s.A,{src:i,alt:"badge background",fill:!0,style:{objectFit:"contain"},className:"z-10"})]})}}},32988:(e,t,r)=>{r.d(t,{z:()=>n});var l=r(58070),s=r(14254),a=r(51602);let i=async e=>{try{let t=await fetch("".concat(s.R$,"/api/p/progress?is_mobile=false"),{method:"GET",headers:{Authorization:"Bearer ".concat(e)}});return await t.json()}catch(e){return console.error(e),{}}},n=()=>{let{token:e}=(0,l.A)();return(0,a.I)(["allContentStatus"],()=>i(e),{enabled:!!e,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,staleTime:12e5,cacheTime:12e5})}},35829:(e,t,r)=>{r.d(t,{A:()=>k});var l=r(37876),s=r(26449),a=r(72590),i=r(50354),n=r(58103),o=r.n(n);let c=e=>{let{url:t,target:r,children:s,classNames:a=""}=e;return(0,l.jsx)(i.A,{variant:"text",suffixIcon:"arrowRight",href:t,target:r,className:o()("text group-hover:text-dark-green",a),children:(0,l.jsx)("span",{"data-testid":"workshop-card-button",children:s})})};var d=r(79499),h=r(32988),u=r(61877);let m=e=>{var t,r;let{postId:s,target:a,startTime:i,endTime:n,isRsvp:o,classNames:m=""}=e,{user:p}=(0,d.J)(),{data:v}=(0,h.z)(),g=null==v||null==(t=v[s])?void 0:t.complete,f=(null==v||null==(r=v[s])?void 0:r.percent)<95,x=!!(o&&(null==p?void 0:p.subscription_active)&&void 0!==i&&void 0!==n&&(0,u.D)({startTime:i,endTime:n}));return(0,l.jsx)(c,{classNames:m,target:a,children:(e=>{let{isComplete:t,isUpcoming:r,inProgress:l}=e;return l?"Continue Workshop":r?"RSVP":t?"Restart Workshop":"Start Workshop"})({isComplete:g,isUpcoming:x,inProgress:f})})};var p=r(61368),v=r(63301),g=r(92697),f=r(71451),x=r(13841),b=r(26376),j=r(66704),w=r(48230),y=r.n(w);let k=e=>{var t,r,i;let{id:n,slug:o,title:c,desc:w="",image:k,topics:N,duration:_,rsvpLink:A,startTime:I,endTime:S,numResources:E,numModules:D,completionBadge:R,placeholders:T}=e,{user:z,workshops:C}=(0,d.J)(),{data:F,isLoading:M}=(0,h.z)(),O=A&&void 0!==I&&void 0!==S&&(0,u.D)({startTime:I,endTime:S}),U=Object.entries({resources:E,modules:D,mins:parseInt(_)}).filter(e=>{let[t,r]=e;return!!r}),W=I?(e=>{let t=e.toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric",timeZone:"America/Ne
1w_York"}),r=e.toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:!0,timeZone:"America/New_York"});return"".concat(t.replace(",","")," at ").concat(r," EST")})(new Date(1e3*I)):null,L=null==C?void 0:C.includes(parseInt(n)),B=(e=>{let{isUpcoming:t,isSubscribed:r,isStarted:l,rsvp:s,id:a,slug:i}=e;return t&&r?s:l&&!t?"/workshop/".concat(a,"/").concat(i,"/view/"):"/workshop/".concat(a,"/").concat(i)})({isUpcoming:O,isSubscribed:null==z?void 0:z.subscription_active,isStarted:L,rsvp:A,id:n,slug:o});return(0,l.jsxs)(l.Fragment,{children:[M&&!!z&&(0,l.jsx)(a.A,{}),(!M||!z)&&(0,l.jsxs)("div",{"data-testid":"workshop-card-container",className:"relative overflow-hidden bg-white shadow-md cursor-pointer rounded-xl ",children:[(null==z?void 0:z.subscription_active)&&(0,l.jsx)("div",{className:"absolute top-5 right-3.5 z-10 sm:right-6",children:(0,l.jsx)(v.A,{"data-testid":"workshop-bookmark",postId:n,title:c,topics:N,type:"workshop",duration:_})}),(0,l.jsxs)(y(),{href:B,passHref:!0,target:B===A?"_blank":"_self",className:"relative col-span-4 group md:grid md:grid-cols-4",children:[(0,l.jsx)(g.A,{media:O?"live":"workshop",className:"absolute z-10 top-4 left-4 md:top-8 md:left-6 whitespace-nowrap",children:O?"live workshop":"workshop"}),(0,l.jsx)("figure",{className:"aspect-w-16 aspect-h-9 md:aspect-w-1 md:aspect-h-1 md:h-full lg:aspect-h-[0.9]",children:(null==k?void 0:k.url)&&(0,l.jsx)(f.A,{src:k.url,alt:k.alt,className:"absolute top-0 left-0 object-cover",fill:!0})}),(0,l.jsxs)("section",{className:"relative flex flex-col col-span-3 p-4 pb-6 md:py-6 md:pr-8 md:pl-9 lg:py-7 justify-evenly",children:[(0,l.jsx)("div",{className:"flex items-center gap-2 pb-3",children:null==N?void 0:N.slice(0,2).map((e,t)=>(0,l.jsx)(x.A,{className:"!border-silver","data-testid":"workshop-topic-pill",children:(0,j.i)(e.name)},t))}),(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsxs)("div",{className:"max-w-xl",children:[(0,l.jsx)("h3",{className:"mb-2 heading__md",children:c}),(null==U?void 0:U.length)>0&&(0,l.jsx)("div",{className:"mb-2 uppercase text__label",children:U.map((e,t)=>{let[r,s]=e;return(0,l.jsxs)("span",{children:[s," ",s>1?r:r.substring(0,r.length-1),t!==U.length-1&&", "]},r)})}),(0,l.jsx)("div",{className:"text__b2",dangerouslySetInnerHTML:{__html:w}}),W&&(0,l.jsx)("div",{className:"mt-2 text__label",children:W})]}),(0,l.jsxs)("div",{className:"absolute md:top-0 md:relative right-4 md:right-0 md:mr-2 -top-14",children:[!!(null==F||null==(t=F[n])?void 0:t.milestone)&&!(null==F||null==(r=F[n])?void 0:r.complete)&&!O&&(0,l.jsx)(b.A,{trackPosition:F[n].milestone*parseInt(_)/100,gaugeDuration:parseInt(_)}),(null==F||null==(i=F[n])?void 0:i.complete)&&(0,l.jsx)(s.A,{props:(0,p.R)({badgeUrl:null==R?void 0:R.mediaItemUrl,topics:N,placeholders:T,title:c,alt:null==R?void 0:R.alt})})]})]}),(0,l.jsx)("div",{className:"flex items-center mt-auto md:justify-end",children:(0,l.jsx)(m,{postId:n,target:A?"_blank":"_self",startTime:I,endTime:S,isRsvp:!!A,classNames:"mt-2.5 md:mt-0"})})]})]})]})]})}},61368:(e,t,r)=>{r.d(t,{R:()=>s});var l=r(90057);let s=e=>{var t,r;let{badgeUrl:s,topics:a,placeholders:i,title:n,alt:o}=e;return s?(0,l.Np)({url:s,alt:null!=o?o:"".concat(n," completion badge")}):(0,l.c)({url:null==i?void 0:i.topics[null==a||null==(t=a[0])?void 0:t.name],backgroundUrl:null==i||null==(r=i.completionBadgeBackgroun
1d)?void 0:r.mediaItemUrl,alt:"".concat(n," completion badge")})}},72590:(e,t,r)=>{r.d(t,{A:()=>i});var l=r(37876),s=r(87059),a=r(67140);let i=()=>(0,s.Ay)(s.xI)?(0,l.jsx)(a.Ay,{speed:1,width:"100%",height:"291",backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",children:(0,l.jsx)("rect",{x:"0",y:0,width:"100%",height:"291",rx:"0",ry:"0"})}):(0,l.jsx)(a.Ay,{speed:1,width:"100%",height:"581",backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",children:(0,l.jsx)("rect",{x:"0",y:0,width:"100%",height:"581",rx:"0",ry:"0"})})},90057:(e,t,r)=>{r.d(t,{FG:()=>s,Np:()=>i,c:()=>a,lf:()=>l});let l=e=>{let{left:t,right:r}=e;if(void 0!==r&&void 0!==t)throw Error("Received both left and right values at runtime when opening an Either\nLeft: ".concat(JSON.stringify(t),"\nRight: ").concat(JSON.stringify(r)));if(void 0!==t)return t;if(void 0!==r)return r;throw Error("Received no left or right values at runtime when opening Either")},s=e=>void 0!==e.right,a=e=>({left:e}),i=e=>({right:e})}}]);
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.