PageSourceSearch

https://digitalhabits.org/_next/static/chunks/1343-cefc6ef18cc9853…?dpl=8ec604bb-b6df-4bb5-92c3-e00b64e13236

js digitalhabits.org collected 2026-09-24 10:07:11 UTC 35,515 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1343],{67146:function(e,t,a){a.d(t,{Z:function(){return f}});var r=a(83890),s=a(75207),o=a(58496);let n="https://app.cal.eu/embed/embed.js",i="digitalhabits",l="#2a9d8f",d="#e8f2ef",c="#1e2d3e",u="#6b7280",m={"cal-brand":l,"cal-brand-emphasis":"#248f82","cal-brand-text":"#ffffff","cal-bg":"#ffffff","cal-bg-booker":"#ffffff","cal-bg-emphasis":d,spacing:"4px","cal-bg-subtle":d,"cal-text-emphasis":c,"cal-text":c,"cal-text-muted":u,"cal-border":"#e5e0d8","cal-border-booker":"#e5e0d8","cal-border-booker-width":"0px"},g={theme:"light",styles:{branding:{brandColor:l},body:{background:"transparent"},availabilityDatePicker:{backgroundColor:"#ffffff",color:c},enabledDateButton:{backgroundColor:d,color:c},disabledDateButton:{backgroundColor:"transparent",color:u}},cssVarsPerTheme:{light:m,dark:m}};function f(e){let{className:t,height:a=700,minHeight:l=420,layout:d="month_view",hideEventTypeDetails:c=!0,useSlotsViewOnSmallScreen:u=!0,branded:m=!1,prefill:f}=e,p="auto"===a,h=p?l:a,x="column_view"===d?"720px":"320px";return(0,o.useEffect)(()=>{let e=!1;return(async()=>{let t=await (0,s.o)({namespace:i,embedJsUrl:n});e||t("ui",{hideEventTypeDetails:c,layout:d,...m?g:{}})})(),()=>{e=!0}},[m,c,d,null==f?void 0:f.email,null==f?void 0:f.name,u]),(0,r.jsx)(s.Z,{className:t,style:p?{minWidth:x,width:"100%",height:"auto"}:{minWidth:x,width:"100%",height:h,overflow:"auto"},calLink:"digitalhabits",calOrigin:"https://app.cal.eu",embedJsUrl:n,namespace:i,config:{layout:d,useSlotsViewOnSmallScreen:u?"true":"false",...m?{theme:"light"}:{},...p?{iframeAttrs:{style:"width:100%;min-width:".concat(x,";height:auto;")}}:{iframeAttrs:{style:"width:100%;min-width:".concat(x,";height:").concat(h,"px;display:block;overflow:auto;")}},...(null==f?void 0:f.name)?{name:f.name}:{},...(null==f?void 0:f.email)?{email:f.email}:{}}})}},11343:function(e,t,a){a.d(t,{Z:function(){return J}});var r=a(83890),s=a(58496),o=a(57117),n=a(96581),i=a(54038),l=a(96778),d=a(40401),c=a(55741),u=a(26162),m=a(19083),g=a(49412),f=a(74877),p=a(1048),h=a(87824),x=a(26927),b=a(42586),v=a(65717),y=a(52087),j=a(4771),k=a(71597);let N=s.forwardRef((e,t)=>{let{className:a,onChange:s,value:o,...n}=e;return(0,r.jsx)(x.ZP,{ref:t,className:(0,k.cn)("flex",a),flagComponent:D,countrySelectComponent:w,inputComponent:_,smartCaret:!1,value:o||void 0,onChange:e=>null==s?void 0:s(e||""),...n})});N.displayName="PhoneInput";let _=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(c.I,{className:(0,k.cn)("h-10 rounded-e-xl rounded-s-none bg-white border-gray-200",a),...s,ref:t})});_.displayName="InputComponent";let w=e=>{let{disabled:t,value:a,options:o,onChange:n}=e,i=s.useRef(null),[l,d]=s.useState(""),[c,u]=s.useState(!1);return(0,r.jsxs)(y.J2,{open:c,modal:!0,onOpenChange:e=>{u(e),e&&d("")},children:[(0,r.jsx)(y.xo,{asChild:!0,children:(0,r.jsxs)(m.z,{type:"button",variant:"outline",className:"flex h-10 gap-1 rounded-e-none rounded-s-xl border-r-0 border-gray-200 bg-white px-3 focus:z-10",disabled:t,children:[(0,r.jsx)(D,{country:a,countryName:a}),(0,r.jsx)(p.Z,{className:(0,k.cn)("-mr-2 size-4 opacity-50",t?"hidden":"opacity-100")})]})}),(0,r.jsx)(y.yk,{className:"w-[300px] p-0",children:(0,r.jsxs)(v.mY,{children:[(0,r.jsx)(v.sZ,{value:l,onValueChange:e=>{d(e),setTimeout(()=>{if(i.current){let e=i.current.querySelector("[data-radix-scroll-area-viewport]");e&&(e.scrollTop=0)}},0)},placeholder:"Search country..."}),(0,r.jsx)(v.e8,{children:(0,r.jsxs)(j.x,{ref:i,className:"h-72",children:[(0,r.jsx)(v.rb,{children:"No country found."}),(0,r.jsx)(v.fu,{children:o.map(e=>{let{value:t,label:s}=e;return t?(0,r.jsx)(C,{country:t,countryName:s,selectedCountry:a,onChange:n,onSelectComplete:()=>u(!1)},t):null})})]})})]})})]})},C=e=>{let{country:t,countryName:a,selectedCountry:s,onChange:o,onSelectComplete:n}=e;return(0,r.jsxs)(v.di,{className:"gap-2",onSelect:()=>{o(t),n()},children:[(0,r.jsx)(D,{country:t,countryName:a}),(0,r.jsx)("span",{className:"flex-1 text-sm",children:a}),(0,r.jsx)("span",{className:"text-sm text-foreground/50",children:"+".concat(x.Gg(t))}),(0,r.jsx)(h.Z,{className:"ml-auto size-4 ".concat(t===s?"opacity-100":"opacity-0")})]})},D=e=>{let{country:t,countryName:a}=e,s=b.ZP[t];return(0,r.jsx)("span",{className:"flex h-4 w-6 overflow-hidden rounded-sm bg-foreground
1/20 [&_svg:not([class*='size-'])]:size-full",children:s&&(0,r.jsx)(s,{title:a})})};var S=a(34388),z=a(26937),I=a(74121),F=a(98318),T=a(34055),H=a(26686),P=a(34223),W=a(67146);let R=()=>(0,r.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"}),G="text-sm font-medium text-gray-700",Z="h-10 px-3.5 rounded-xl bg-white border-gray-200";function J(e){let{open:t,onClose:a,isFacilitator:p=!1,isShortTalks:h=!1,isStudio:x=!1,isDa:b=!1,onSuccess:v}=e,[y,j]=(0,s.useState)(!1),[_,w]=(0,s.useState)(!1),[C,D]=(0,s.useState)(null),J=(0,s.useRef)(null),O=(0,s.useRef)(null),A={title_facilitator:b?"Certificer jeres egne Digital Habits-facilitatorer":"Certify your own Digital Habits Facilitators",title_org:b?"F\xe5 Digital Habits live-tr\xe6ning til din institution":"Bring Live Training Sessions to your institution",title_short_talks:b?"Book et kort foredrag for din organisation":"Book a short talk for your organisation",title_studio:b?"Giv din organisation adgang til Digital Habits Studio":"Bring Digital Habits Studio to your organisation",desc_facilitator:b?"Fort\xe6l os om din interesse i Digital Habits Facilitator-kurset, s\xe5 vender vi tilbage med n\xe6ste skridt! ":"Tell us about your interest in the Digital Habits Facilitator Course and we will reach out with next steps! ",desc_org:b?"Del et par detaljer om din organisation, s\xe5 kontakter vi dig med n\xe6ste skridt! ":"Share a few details about your organisation and we'll be in touch with next steps! ",desc_short_talks:b?"Del et par detaljer om din organisation, s\xe5 kontakter vi dig med n\xe6ste skridt! ":"Share a few details about your organisation and we'll be in touch with next steps! ",desc_studio:b?"Fort\xe6l os om din interesse i Digital Habits Studio, s\xe5 vender vi tilbage med n\xe6ste skridt! ":"Tell us about your interest in Digital Habits Studio and we'll be in touch with next steps! ",prefer_email:b?"Foretr\xe6kker du email? ":"Prefer email? ",badge_org:b?"Digital Habits live-tr\xe6ning":"Live Training Sessions",badge_facilitator:b?"Facilitatorkursus":"Facilitator Course",badge_studio:"Digital Habits Studio",badge_short_talks:b?"Korte foredrag":"Short Talks",reply_time:b?"Vi svarer typisk inden for to hverdage.":"We typically reply within two working days.",submit_enquiry:b?"Send foresp\xf8rgsel":"Submit enquiry",thank_you:b?"Tak!":"Thank You!",success_msg:b?"Vores team kontakter dig snart. Du kan ogs\xe5 booke en tid til en snak i vores kalender nedenfor:":"Our team will reach out to you shortly. You can also schedule a time to chat with us in our diary below:",if_no_options:b?"Hvis ingen muligheder vises, s\xe5 send en mail til ":"If no options show, email us at ",labels:{name:b?"Navn":"Name",email:"Email",phone:b?"Telefon":"Phone",organisation:"Organisation",location:b?"Organisationens lokation":"Organisation location",role:b?"Din rolle":"Your role",interested_courses:b?"Kursusdatoer jeg er interesseret i":"Course dates I'm interested in",other_
1course_label:b?"Andet":"Other",other_course_note:b?"f.eks. afholdelse af kursus hos os selv":"e.g., running a course at our own institution",why_interested:b?"Hvorfor er I interesserede i at certificere ReDD-facilitatorer?":"Why are you interested in certifying ReDD facilitators?",delivery_capacity:b?"Hvor mange vil I gerne certificere?":"How many would you like to certify?",format_interest:b?"Hvilke(t) format(er) er du interesseret i?":"What format(s) are you interested in?",studio_interest:b?"Hvordan vil du bruge Digital Habits Studio?":"How would you like to use Digital Habits Studio?",learners_audience:b?"Hvor mange brugere skal have adgang?":"How many learners would need access?",audience:b?"Hvem og hvor mange ville de v\xe6re for?":"Who & how many would they be for?",audience_talks:b?"Hvem og hvor mange ville foredraget v\xe6re for?":"Who & how many would the talk be for?",found_out:b?"Hvordan h\xf8rte du om os?":"How did you hear about us?",other_info:b?"Er der andet, vi skal vide?":"Anything else you‘d like us to know?"},placeholders:{name:b?"Dit navn":"Your name",email:b?"Din email":"Your email",org:b?"Navnet p\xe5 din organisation":"Name of your organisation",location:b?"By, Land":"City, Country",role:b?"f.eks. uddannelsesleder, underviser, skoleinspekt\xf8r":"e.g., Welfare Lead, Manager",why:b?"f.eks. til tr\xe6ning af personale, personlig udvikling":"e.g., to train staff, personal development",capacity:b?"f.eks. 1-2 facilitatorer til at starte med":"e.g., 1-2 facilitators to start",audience:b?"f.eks. 50 l\xe6rere, alt personale":"e.g., 50 teachers, all staff",learners:b?"f.eks. 500 studerende, alt personale":"e.g. 500 students, all staff",found_out:b?"f.eks. ven, nyhedsbrev":"e.g., friend, newsletter",other:b?"M\xe5l, timing, tilg\xe6ngelighedsbehov, budget.":"Goals, timing, accessibility needs, budget."},buttons:{sending:b?"Sender...":"Sending...",submit:b?"Indsend":"Submit"},validation:{phone:b?"Indtast venligst et gyldigt telefonnummer inkl. landekode (f.eks. +4512345678).":"Please enter a valid phone number including the country code (e.g., +12025550123).",name:b?"Navn skal v\xe6re mindst 2 tegn.":"Name must be at least 2 characters.",email:b?"Ugyldig email-adresse.":"Invalid email address.",org:b?"Organisationsnavn er p\xe5kr\xe6vet.":"Organisation name is required.",location:b?"Lokation er p\xe5kr\xe6vet.":"Location is required.",courses:b?"V\xe6lg venligst mindst \xe9t kursus.":"Please select at least one course."},formats:{design_for_life:{label:"Digital Habits: Reduce Digital Distraction",badge:"90-120 min",desc:b?"Gent\xe6nk dit daglige digitale liv p\xe5 en b\xe6redygtig m\xe5de. Inkluderer refleksion, omfattende overblik over digitale fokusredskaber & udf\xf8rlig opf\xf8lgende support.":"Sustainably redesign daily digital life. Includes reflection, comprehensive overview of digital focus tools, & extensive follow-up support."},deep_work:{label:"Deep Work Masterclass",badge:"60 min",desc:b?"Skru produktiviteten helt op, f.eks. op til deadlines. Essentielle strategier og redskaber til at sk\xe6re digitale distraktioner v\xe6k og h\xe5ndtere sociale forventninger.":"Dial productivity up to the maximum, e.g., ahead of deadlines. Essential strategies and tools to cut digital distractions and manage social expectations."},short_talks:{label:b?"Korte foredrag":"Short Talks",badge:"15-60 min",desc:b?"Format skr\xe6ddersyet til jeres kontekst. Emner inkluderer digitale fokusredskaber, psykologien bag digital distraktion og big techs og platformsmagtens rolle.":"Format tailored to your context. Topics include digital focus tools, the psychology behind digital distraction, and the role of big tech & platform power."},talk_15_30:{label:b?"Introduktionsforedrag":"Introduction talk",badge:"15-30 min",desc:b?"Digital fokus introduktion, overblik over redskaber, tips til \xf8jeblikkelig implementering.":"Digital focus introduction, overview of tools, tips for immediate implementation."},talk_45_60:{label:b?"Dybdeg\xe5ende foredrag":"Comprehensive talk",badge:"45-60 min",desc:b?"Alt fra kort version, plus psykologi bag digital distraktion, v\xe6rkt\xf8jsdemonstration.":"Everything in the short version, plus psychology of digital distraction, tool demonstration."},studio_standalone:{label:b?"Digital Habits Studio alene":"Digital Habits Studio standalone",badge:"",desc:b?"Giv jeres studerende eller medarbejdere adgang til at l\xe6re alle ReDD-strategier og -redskaber i deres eget tempo.":"Give your students or staff access to learn every ReDD strategy and tool in their own time."},studio_plus_live:{label:b?"Kombineret med live-tr\xe6ning leveret af os":"Blended with live training delivered by us",badge:"",desc:b?"Kombiner Studio med Reduce Digital Distraction-workshops eller Deep Work-masterclasses for et dybere forl\xf8b.":"Pair Studio with Reduce Digital Distraction workshops or Deep Work Masterclasses for a deeper programme."},studio_plus_trainer:{label:b?"Del af certificering af jeres egne facilitatorer":"Part of certifying your own facilitators",badge:"",desc:b?"Vi certificerer facilitatorer og \xf8nsker Studio-adgang til vores deltagere.":"We're certifying facilitators and want Studio access for our participants."},studio_not_sure:{label:b?"Ikke sikker endnu — hj\xe6lp os med at v\xe6lge":"Not sure yet — help us choose",badge:"",desc:b?"Fort\xe6l os om jeres kontekst, s\xe5 anbefaler vi den rette ops\xe6tning.":"Tell us about your context and we'll recommend the right setup."}}},E=p?{icon:S.Z,label:A.badge_facilitator}:x?{icon:z.Z,label:A.badge_studio}:h?{icon:I.Z,label:A.badge_short_talks}:{icon:F.Z,label:A.badge_org},X=E.icon,V=(0,s.useMemo)(()=>{let e=i.z.string().optional().refine(e=>!e||(0,l.y)(e),{message:A.validation.phone});return{StandardSchema:i.z.object({name:i.z.string().min(2,A.validation.name),email:i.z.string().email(A.validation.email),phone:e,organisation:i.z.string().min(1,A.validation.org),role:i.z.string().optional(),location:i.z.string().min(1,A.validation.location),workshopFormat:i.z.array(i.z.string()).optional(),audience:i.z.string().optional(),foundOut:i.z.string().optional(),otherInfo:i.z.string().optional()}),FacilitatorSchema:i.z.object({name:i.z.string().min(2,A.validation.name),email:i.z.string().email(A.validation.email),phone:e,organisation:i.z.string().min(1,A.validation.org),role:i.z.string().optional(),location:i.z.string().min(1,A.validation.location),interestedCourses:i.z.array(i.z.string()).optional(),trainingInterest:i.z.string().optional(),deliveryCapacity:i.z.string().optional(),foundOut:i.z.string().optional(),otherInfo:i.z.string().optional()})}},[A.validation]),B=p?V.FacilitatorSchema:V.StandardSchema,K={name:"",email:"",ph
1one:"",organisation:"",role:"",location:"",foundOut:"",otherInfo:"",...p?{interestedCourses:[],trainingInterest:"",deliveryCapacity:""}:{workshopFormat:[],audience:""}},q=(0,o.cI)({resolver:(0,n.F)(B),defaultValues:K});async function M(e){j(!0);try{let t=[];p&&"interestedCourses"in e&&e.interestedCourses&&Array.isArray(e.interestedCourses)&&(t=e.interestedCourses.map(e=>{if("other"===e)return"".concat(A.labels.other_course_label," (").concat(A.labels.other_course_note,")");let t=P.Z.find(t=>t.id===e);return t?"".concat(t.date," - ").concat(t.location,", ").concat(t.country):e}));let a=await fetch("/api/workshop-bookings/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,isFacilitator:p,isShortTalks:h,isStudio:x,interestedCourses:t})});if(a.ok)D({name:e.name,email:e.email,phone:e.phone||"",organisation:e.organisation,role:e.role||""}),w(!0),v&&v();else{let e=await a.json();q.setError("email",{type:"manual",message:e.message||"Failed to send your message."})}}catch(e){console.error("Submission error:",e),q.setError("email",{type:"manual",message:"An error occurred. Please try again later."})}finally{j(!1)}}return(0,s.useEffect)(()=>{t&&(w(!1),D(null),q.reset(K),J.current&&J.current.focus())},[t]),(0,s.useEffect)(()=>{_&&O.current&&(O.current.scrollTop=0)},[_]),(0,r.jsx)(d.Vq,{open:t,onOpenChange:a,children:(0,r.jsx)(d.cZ,{ref:O,className:"w-full p-0 bg-reddCreamDark ".concat(_?"max-w-6xl":"max-w-2xl"),onKeyDown:e=>{if("Tab"===e.key){let t=document.querySelectorAll('input, button, select, [type="checkbox"], [tabindex]:not([tabindex="-1"])'),a=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===a?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),a.focus())}},children:(0,r.jsx)("div",{className:"flex flex-col max-h-[92dvh]",children:_?(0,r.jsxs)("div",{className:"overflow-y-auto px-8 py-6",children:[(0,r.jsx)(d.$N,{className:"text-2xl font-bold text-black mb-2",children:A.thank_you}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("p",{className:"text-lg text-gray-800 font-medium leading-relaxed",children:A.success_msg}),(0,r.jsxs)("p",{className:"mb-2 text-gray-800 italic",children:[A.if_no_options,(0,r.jsx)("a",{href:"mailto:[email protected]",className:"!border-b-0 !text-reddTeal underline hover:no-underline hover:!text-reddTeal pointer-events-none",children:"[email protected]"})]}),(0,r.jsx)(W.Z,{className:"w-full",height:650,prefill:C?{name:C.name,email:C.email}:void 0})]})]}):(0,r.jsx)(f.l0,{...q,children:(0,r.jsxs)("form",{onSubmit:q.handleSubmit(M),className:"flex flex-col min-h-0 max-h-[92dvh]",children:[(0,r.jsxs)("div",{className:"flex-1 min-h-0 overflow-y-auto px-8 pt-6 pb-4 space-y-4",children:[(0,r.jsxs)("div",{className:"mb-2",children:[(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-reddTeal/10 px-3 py-1 text-xs font-semibold uppercase tracking-wide text-reddTeal mb-3",children:[(0,r.jsx)(X,{className:"h-3.5 w-3.5"}),E.label]}),(0,r.jsx)(d.$N,{className:"text-xl md:text-2xl font-bold text-reddNavy mb-2 leading-tight pr-8",children:p?A.title_facilitator:x?A.title_studio:h?A.title_short_talks:A.title_org}),(0,r.jsxs)("p",{className:"text-base text-gray-600 leading-relaxed",children:[p?A.desc_facilitator:x?A.desc_studio:h?A.desc_short_talks:A.desc_org,A.prefer_email,(0,r.jsx)("a",{href:"mailto:[email protected]",className:"font-medium !border-b-0 !text-reddTeal underline hover:no-underline hover:!text-reddTeal",children:"[email protected]"})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsx)(f.Wi,{control:q.control,name:"name",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsxs)(f.lX,{className:G,children:[A.labels.name,(0,r.jsx)(R,{})]}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(c.I,{className:Z,...t,placeholder:A.placeholders.name,ref:J,onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}}),(0,r.jsx)(f.Wi,{control:q.control,name:"email",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsxs)(f.lX,{className:G,children:[A.labels.email,(0,r.jsx)(R,{})]}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(c.I,{className:Z,placeholder:A.placeholders.email,...t,onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsx)(f.Wi,{control:q.control,name:"organisation",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsxs)(f.lX,{className:G,children:[A.labels.organisation,(0,r.jsx)(R,{})]}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(c.I,{className:Z,placeholder:A.placeholders.org,...t,onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}}),(0,r.jsx)(f.Wi,{control:q.control,name:"location",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsxs)(f.lX,{className:G,children:[A.labels.location,(0,r.jsx)(R,{})]}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(c.I,{className:Z,placeholder:A.placeholders.location,...t,onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsx)(f.Wi,{control:q.control,name:"phone",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsx)(f.lX,{className:G,children:A.labels.phone}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(N,{...t,international:!0,defaultCountry:b?"DK":"GB",className:"rounded-xl",onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}}),(0,r.jsx)(f.Wi,{control:q.control,name:"role",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsx)(f.lX,{className:G,children:A.labels.role}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(c.I,{className:Z,placeholder:A.placeholders.role,...t,onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}})]}),p?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.Wi,{control:q.control,name:"interestedCourses",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-2 pt-1",children:[(0,r.jsx)(f.lX,{className:G,children:A.labels.interested_courses}),(0,r.jsx)("div",{className:"space-y-2",children:[...P.Z.map(e=>({id:e.id,label:"".concat(e.date," — ").concat(e.location,", ").concat(e.country),note:void 0})),{id:"other",label:A.labels.other_course_label,note:A.labels.other_course_note}].map(e=>{let a=!!Array.isArray(t.value)&&t.value.includes(e.id),s=a=>
1{t.onChange(a?[...t.value||[],e.id]:(t.value||[]).filter(t=>t!==e.id))};return(0,r.jsxs)("label",{htmlFor:"course-".concat(e.id),className:(0,k.cn)("flex items-center gap-3 rounded-xl border p-3.5 cursor-pointer select-none transition-colors",a?"border-reddTeal bg-reddTeal/5":"border-gray-200 bg-white hover:border-gray-300"),children:[(0,r.jsx)(g.X,{id:"course-".concat(e.id),checked:a,onCheckedChange:e=>s(!0===e)}),(0,r.jsxs)("span",{className:"text-sm text-gray-900",children:[(0,r.jsx)("span",{className:"font-medium",children:e.label}),e.note&&(0,r.jsxs)("span",{className:"font-normal text-gray-600",children:[" (",e.note,")"]})]})]},e.id)})}),(0,r.jsx)(f.zG,{})]})}}),(0,r.jsx)(f.Wi,{control:q.control,name:"trainingInterest",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsx)(f.lX,{className:G,children:A.labels.why_interested}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(u.g,{className:"rounded-xl bg-white border-gray-200",placeholder:A.placeholders.why,...t,onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsx)(f.Wi,{control:q.control,name:"deliveryCapacity",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsx)(f.lX,{className:G,children:A.labels.delivery_capacity}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(c.I,{className:Z,placeholder:A.placeholders.capacity,...t,onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}}),(0,r.jsx)(f.Wi,{control:q.control,name:"foundOut",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsx)(f.lX,{className:G,children:A.labels.found_out}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(c.I,{className:Z,placeholder:A.placeholders.found_out,...t,onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.Wi,{control:q.control,name:"workshopFormat",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-2 pt-1",children:[(0,r.jsx)(f.lX,{className:"text-sm font-semibold text-gray-900",children:x?A.labels.studio_interest:A.labels.format_interest}),(0,r.jsx)("div",{className:"space-y-2.5",children:(x?[{value:"Digital Habits Studio standalone",label:A.formats.studio_standalone.label,badge:A.formats.studio_standalone.badge,description:A.formats.studio_standalone.desc},{value:"Blended with live training delivered by us",label:A.formats.studio_plus_live.label,badge:A.formats.studio_plus_live.badge,description:A.formats.studio_plus_live.desc},{value:"Part of certifying your own facilitators",label:A.formats.studio_plus_trainer.label,badge:A.formats.studio_plus_trainer.badge,description:A.formats.studio_plus_trainer.desc},{value:"Not sure yet",label:A.formats.studio_not_sure.label,badge:A.formats.studio_not_sure.badge,description:A.formats.studio_not_sure.desc}]:h?[{value:"15-30 min introduction talk",label:A.formats.talk_15_30.label,badge:A.formats.talk_15_30.badge,description:A.formats.talk_15_30.desc},{value:"45-60 min comprehensive talk",label:A.formats.talk_45_60.label,badge:A.formats.talk_45_60.badge,description:A.formats.talk_45_60.desc}]:[{value:"Digital Habits: Reduce Digital Distraction",label:A.formats.design_for_life.label,badge:A.formats.design_for_life.badge,description:A.formats.design_for_life.desc},{value:"Deep Work",label:A.formats.deep_work.label,badge:A.formats.deep_work.badge,description:A.formats.deep_work.desc},{value:"Short Talks",label:A.formats.short_talks.label,badge:A.formats.short_talks.badge,description:A.formats.short_talks.desc}]).map(e=>{var a,s;let o=null!==(s=null===(a=t.value)||void 0===a?void 0:a.includes(e.value))&&void 0!==s&&s,n=a=>{t.onChange(a?[...t.value||[],e.value]:(t.value||[]).filter(t=>t!==e.value))},i="fmt-".concat(e.value.replace(/\s+/g,"-"));return(0,r.jsxs)("label",{htmlFor:i,className:(0,k.cn)("flex items-start gap-3 rounded-xl border p-4 cursor-pointer select-none transition-colors",o?"border-reddTeal bg-reddTeal/5":"border-gray-200 bg-white hover:border-gray-300"),children:[(0,r.jsx)(g.X,{id:i,checked:o,onCheckedChange:e=>n(!0===e),className:"mt-0.5"}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,r.jsx)("span",{className:"text-sm font-semibold text-gray-900 leading-tight",children:e.label}),e.badge&&(0,r.jsx)("span",{className:"rounded-full bg-reddTeal/10 px-2 py-0.5 text-[11px] font-medium text-reddTeal",children:e.badge})]}),(0,r.jsx)("p",{className:"text-gray-600 text-sm mt-0.5 select-text",children:e.description})]})]},e.value)})}),(0,r.jsx)(f.zG,{})]})}}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsx)(f.Wi,{control:q.control,name:"audience",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsx)(f.lX,{className:G,children:x?A.labels.learners_audience:h?A.labels.audience_talks:A.labels.audience}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(c.I,{className:Z,placeholder:x?A.placeholders.learners:A.placeholders.audience,...t,onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}}),(0,r.jsx)(f.Wi,{control:q.control,name:"foundOut",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsx)(f.lX,{className:G,children:A.labels.found_out}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(c.I,{className:Z,placeholder:A.placeholders.found_out,...t,onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}})]})]}),(0,r.jsx)(f.Wi,{control:q.control,name:"otherInfo",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.xJ,{className:"space-y-1.5",children:[(0,r.jsx)(f.lX,{className:G,children:A.labels.other_info}),(0,r.jsx)(f.NI,{children:(0,r.jsx)(u.g,{rows:2,className:"rounded-xl bg-white border-gray-200 min-h-0",placeholder:A.placeholders.other,...t,onClick:e=>e.stopPropagation()})}),(0,r.jsx)(f.zG,{})]})}})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4 border-t border-black/5 bg-background px-8 py-3",children:[(0,r.jsxs)("p",{className:"flex items-center gap-2 text-sm text-gray-500",children:[(0,r.jsx)(T.Z,{className:"h-4 w-4 flex-shrink-0"}),A.reply_time]}),(0,r.jsxs)(m.z,{type:"submit",disabled:y,className:"rounded-full px-5 gap-1.5",children:[y?A.buttons.sending:A.submit_enquiry,!y&&(0,r.jsx)(H.Z,{className:"h-4 w-4"})]})]})]})})})})})}},19083:function(e,t,a){a.d(t,{d:function(){return l},z:function(){return d}});var r=a(83890),s=a(58496),o=a(59955),n=a(88898),i=a(71597);let l=(0,n.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/90",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-reddAccentBlue underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>
1{let{className:a,variant:s,size:n,asChild:d=!1,...c}=e,u=d?o.g7:"button";return(0,r.jsx)(u,{className:(0,i.cn)(l({variant:s,size:n,className:a})),ref:t,...c})});d.displayName="Button"},49412:function(e,t,a){a.d(t,{X:function(){return l}});var r=a(83890),s=a(58496),o=a(76769),n=a(87824),i=a(71597);let l=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(o.fC,{ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...s,children:(0,r.jsx)(o.z$,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,r.jsx)(n.Z,{className:"h-4 w-4"})})})});l.displayName=o.fC.displayName},40401:function(e,t,a){a.d(t,{$N:function(){return h},GG:function(){return u},Vq:function(){return l},cN:function(){return p},cZ:function(){return g},fK:function(){return f},hg:function(){return d}});var r=a(83890),s=a(58496),o=a(6678),n=a(88706),i=a(71597);let l=o.fC,d=o.xz,c=o.h_,u=o.x8,m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(o.aV,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s})});m.displayName=o.aV.displayName;let g=s.forwardRef((e,t)=>{let{className:a,children:s,hideOverlay:l,hideCloseButton:d,...u}=e;return(0,r.jsxs)(c,{children:[!l&&(0,r.jsx)(m,{}),(0,r.jsxs)(o.VY,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full grid-cols-[minmax(0,1fr)] max-w-2xl translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...u,children:[s,!d&&(0,r.jsxs)(o.x8,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,r.jsx)(n.Z,{className:"h-5 w-5"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});g.displayName=o.VY.displayName;let f=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};f.displayName="DialogHeader";let p=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};p.displayName="DialogFooter";let h=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(o.Dx,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",a),...s})});h.displayName=o.Dx.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(o.dk,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...s})}).displayName=o.dk.displayName},74877:function(e,t,a){a.d(t,{NI:function(){return h},Wi:function(){return u},l0:function(){return d},lX:function(){return p},xJ:function(){return f},zG:function(){return x}});var r=a(83890),s=a(58496),o=a(59955),n=a(57117),i=a(71597),l=a(98756);let d=n.RV,c=s.createContext({}),u=e=>{let{...t}=e;return(0,r.jsx)(c.Provider,{value:{name:t.name},children:(0,r.jsx)(n.Qr,{...t})})},m=()=>{let e=s.useContext(c),t=s.useContext(g),{getFieldState:a,formState:r}=(0,n.Gc)(),o=a(e.name,r);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:"".concat(i,"-form-item"),formDescriptionId:"".concat(i,"-form-item-description"),formMessageId:"".concat(i,"-form-item-message"),...o}},g=s.createContext({}),f=s.forwardRef((e,t)=>{let{className:a,...o}=e,n=s.useId();return(0,r.jsx)(g.Provider,{value:{id:n},children:(0,r.jsx)("div",{ref:t,className:(0,i.cn)("space-y-2",a),...o})})});f.displayName="FormItem";let p=s.forwardRef((e,t)=>{let{className:a,...s}=e,{error:o,formItemId:n}=m();return(0,r.jsx)(l._,{ref:t,className:(0,i.cn)(o&&"text-destructive",a),htmlFor:n,...s})});p.displayName="FormLabel";let h=s.forwardRef((e,t)=>{let{...a}=e,{error:s,formItemId:n,formDescriptionId:i,formMessageId:l}=m();return(0,r.jsx)(o.g7,{ref:t,id:n,"aria-describedby":s?"".concat(i," ").concat(l):"".concat(i),"aria-invalid":!!s,...a})});h.displayName="FormControl",s.forwardRef((e,t)=>{let{className:a,...s}=e,{formDescriptionId:o}=m();return(0,r.jsx)("p",{ref:t,id:o,className:(0,i.cn)("text-[0.8rem] text-muted-foreground",a),...s})}).displayName="FormDescription";let x=s.forwardRef((e,t)=>{let{className:a,children:s,...o}=e,{error:n,formMessageId:l}=m(),d=n?String(null==n?void 0:n.message):s;return d?(0,r.jsx)("p",{ref:t,id:l,className:(0,i.cn)("text-[0.8rem] font-medium text-destructive",a),...o,children:d}):null});x.displayName="FormMessage"},4771:function(e,t,a){a.d(t,{B:function(){return l},x:function(){return i}});var r=a(83890),s=a(58496),o=a(52178),n=a(71597);let i=s.forwardRef((e,t)=>{let{className:a,children:s,...i}=e;return(0,r.jsxs)(o.fC,{ref:t,className:(0,n.cn)("relative overflow-hidden",a),...i,children:[(0,r.jsx)(o.l_,{className:"h-full w-full rounded-[inherit]",children:s}),(0,r.jsx)(l,{}),(0,r.jsx)(o.Ns,{})]})});i.displayName=o.fC.displayName;let l=s.forwardRef((e,t)=>{let{className:a,orientation:s="vertical",...i}=e;return(0,r.jsx)(o.gb,{ref:t,orientation:s,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...i,children:(0,r.jsx)(o.q4,{className:"relative flex-1 rounded-full bg-border"})})});l.displayName=o.gb.displayName},34223:function(e,t,a){a.d(t,{Z:function(){return n}});var r=JSON.parse('[{"id":"2026-sep-santa-clara","date":"2026, Sep 15-16","location":"Santa Clara, CA","country":"USA","region":"North America"},{"id":"2026-sep-london","date":"2026, Sep 9-11","location":"London","country":"UK","region":"Europe"},{"id":"2026-sep-oxford","date":"2026, Sep 29 - Oct 1","location":"Oxford","country":"UK","region":"Europe"},{"id":"2026-oct-edinburgh","date":"2026, Oct 27-29","location":"University of Edinburgh","country":"UK","region":"Europe"},{"id":"2027-mar-copenhagen","date":"2027, Mar 31 - Apr 02","location":"Copenhagen","country":"Denmark","region":"Europe"},{"id":"2027-jul-toronto","date":"2027, Jul 21-23","location":"Toronto","country":"Canada","region":"North America"}]');
1let s={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11};function o(e){let[t,a]=e.split(",");if(!t||!a)return null;let r=parseInt(t.trim(),10),o=a.replace(/\s*-\s*/g,"-").replace(/\s+/g," ").trim(),n=o.match(/^([A-Za-z]{3})\s*(\d{1,2})-(\d{1,2})$/);if(n){let e=s[n[1]];return void 0===e?null:new Date(r,e,parseInt(n[2],10))}let i=o.match(/^([A-Za-z]{3})\s*(\d{1,2})-([A-Za-z]{3})\s*(\d{1,2})$/);if(i){let e=s[i[1]];return void 0===e?null:new Date(r,e,parseInt(i[2],10))}return null}var n=[...r].sort((e,t)=>{let a=o(e.date),r=o(t.date);return a||r?a?r?a.getTime()-r.getTime():-1:1:0})}}]);

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.