PageSourceSearch

https://esbicm.org/_next/static/chunks/57f268efb06e2691.js

js esbicm.org collected 2026-10-02 01:06:55 UTC 45,148 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60624,e=>{"use strict";var t=e.i(43476),n=e.i(71645),l=e.i(33209);let a={portrait:"aspect-[4/5]",square:"aspect-square",landscape:"aspect-[5/4]",wide:"aspect-[16/10]",natural:""},r=new Set(["esbicm.org","new.esbicm.org"]),i=[384,640,828,1080,1200,1920];function s(e,t){return`/_next/image?url=${encodeURIComponent(e)}&w=${t}&q=75`}function o(e){return e.title||e.caption||e.group||e.alt}function d(e){return"compact"===e?"gap-2.5":"roomy"===e?"gap-6 sm:gap-7":"gap-4 sm:gap-5"}function c(e){return(0,l.cn)("mt-1 text-[11.5px] font-semibold uppercase tracking-[0.12em]",e?"text-gold/80":"text-navy/55")}var m=e.i(74080),u=e.i(75254);let x=(0,u.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),p=(0,u.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var h=e.i(37727);function b({tiles:e,index:a,onClose:r,onIndexChange:i}){let s=e[a],d=e.length,u=(0,n.useId)(),b=(0,n.useRef)(null),g=(0,n.useCallback)(e=>{d<2||i((a+e+d)%d)},[d,a,i]);(0,n.useEffect)(()=>{if(!s)return;let e=document.body.style.overflow;document.body.style.overflow="hidden",b.current?.focus();let t=e=>{"Escape"===e.key&&r(),"ArrowRight"===e.key&&g(1),"ArrowLeft"===e.key&&g(-1)};return window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}},[g,r,s]);let f=(0,n.useRef)(null);if(!s||"u"<typeof document)return null;let y=o(s);return(0,m.createPortal)((0,t.jsxs)("div",{className:"fixed inset-0 z-[80] flex flex-col bg-[#0d2035]",role:"dialog","aria-modal":"true","aria-labelledby":u,onClick:r,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 px-4 py-3 sm:px-7",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{id:u,className:"truncate text-[15px] font-semibold text-white",children:s.title||s.group||"Gallery"}),(0,t.jsxs)("p",{className:"mt-0.5 text-[11px] font-semibold uppercase tracking-[0.16em] text-white/50",children:[d>1?`${a+1} / ${d}`:"Photograph",s.group?`  \xb7  ${s.group}`:""]})]}),(0,t.jsx)("button",{ref:b,type:"button",onClick:r,className:"inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-white/10 text-white transition-colors duration-150 hover:bg-white/18","aria-label":"Close photograph",children:(0,t.jsx)(h.X,{size:20,"aria-hidden":"true"})})]}),(0,t.jsxs)("div",{className:"relative min-h-0 flex-1",onTouchStart:e=>{f.current=e.changedTouches[0]?.clientX??null},onTouchEnd:e=>{let t=f.current;if(f.current=null,null==t)return;let n=e.changedTouches[0]?.clientX;if(null==n)return;let l=n-t;l>56&&g(-1),l<-56&&g(1)},children:[d>1?(0,t.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),g(-1)},className:"absolute left-3 top-1/2 z-10 hidden h-12 w-12 -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors duration-150 hover:bg-white/18 sm:inline-flex","aria-label":"Previous photograph",children:(0,t.jsx)(x,{size:26,"aria-hidden":"true"})}):null,(0,t.jsx)("img",{src:s.url,alt:s.alt,className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",style:{maxWidth:"min(calc(100vw - 5rem), 1080px)",maxHeight:"calc(100dvh - 11rem)",width:"auto",height:"auto",objectFit:"contain"},onClick:e=>e.stopPropagation()}),d>1?(0,t.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),g(1)},className:"absolute right-3 top-1/2 z-10 hidden h-12 w-12 -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors duration-150 hover:bg-white/18 sm:inline-flex","aria-label":"Next photograph",children:(0,t.jsx)(p,{size:26,"aria-hidden":"true"})}):null]}),(0,t.jsx)("div",{className:"border-t border-white/10 px-4 py-4 sm:px-7",onClick:e=>e.stopPropagation(),children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-5xl flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[s.caption?(0,t.jsx)("p",{className:"max-w-3xl text-[15px] leading-relaxed text-white/82",children:s.caption}):s.title&&s.title!==y?(0,t.jsx)("p",{className:"text-[15px] text-white/82",children:s.title}):null,s.credit?(0,t.jsx)("p",{className:(0,l.cn)(c(!0),"mt-2 text-white/45"),children:s.credit}):null]}),d>1?(0,t.jsxs)("div",{className:"flex gap-2 sm:hidden",children:[(0,t.jsx)("button",{type:"button",onClick:()=>g(-1),className:"flex-1 rounded-[6px] bg-white/10 py-2.5 text-[13.5px] font-semibold text-white",children:"Previous"}),(0,t.jsx)("button",{type:"button",onClick:()=>g(1),className:"flex-1 rounded-[6px] bg-white py-2.5 text-[13.5px] font-semibold text-maroon",children:"Next"})]}):null]})})]}),document.body)}function g({tiles:e,layout:a,columns:r,heights:i,crop:s,density:o,corners:c,frame:m,captions:u,lightbox:x,featuredFirst:p,dark:h}){var g;let w=(0,n.useMemo)(()=>(function(e){let t=new Set,n=[];for(let l of e)!l.group||t.has(l.group)||(t.add(l.group),n.push(l.group));return n}
1)(e),[e]),[j,v]=(0,n.useState)(null),[N,k]=(0,n.useState)(null),C=(0,n.useMemo)(()=>j?e.filter(e=>e.group===j):e,[j,e]),$=("mosaic"===a||p)&&C.length>0,S=$?C[0]:null,T=$?C.slice(1):C,P=e=>{x&&k(e)};return(0,t.jsxs)("div",{children:[w.length>1?(0,t.jsxs)("div",{className:"mb-7 flex flex-wrap gap-2",role:"tablist","aria-label":"Photograph sets",children:[(0,t.jsx)(f,{label:"All",active:null===j,dark:h,onClick:()=>v(null)}),w.map(e=>(0,t.jsx)(f,{label:e,active:j===e,dark:h,onClick:()=>v(e)},e))]}):null,S?(0,t.jsx)("div",{className:(0,l.cn)(T.length?"mb-8 sm:mb-10":""),children:(0,t.jsx)(y,{tile:S,layout:"rows",captions:u,corners:c,frame:m,dark:h,equal:!1,crop:s,featured:!0,columns:r,priority:!0,clickable:x,onOpen:()=>P(0)})}):null,T.length&&"rows"===a?(0,t.jsx)("div",{className:(0,l.cn)("flex flex-col",d(o)),children:T.map((e,n)=>(0,t.jsx)(y,{tile:e,layout:"rows",captions:u,corners:c,frame:m,dark:h,equal:!1,crop:s,columns:r,priority:!$&&0===n,clickable:x,onOpen:()=>P($?n+1:n)},`${e.url}-${n}`))}):null,T.length&&"columns"===a?(0,t.jsx)("div",{className:(0,l.cn)("grid items-stretch",d(o),2===(g=r)?"sm:grid-cols-2":4===g?"sm:grid-cols-2 lg:grid-cols-4":"sm:grid-cols-2 lg:grid-cols-3"),children:T.map((e,n)=>(0,t.jsx)(y,{tile:e,layout:"columns",captions:u,corners:c,frame:m,dark:h,equal:"equal"===i,crop:s,columns:r,priority:!$&&n<r,clickable:x,onOpen:()=>P($?n+1:n)},`${e.url}-${n}`))}):null,T.length&&("masonry"===a||"mosaic"===a)?(0,t.jsx)("div",{className:2===r?"columns-1 sm:columns-2":4===r?"columns-2 lg:columns-4":"columns-2 lg:columns-3",children:T.map((e,n)=>(0,t.jsx)("div",{className:(0,l.cn)("break-inside-avoid","compact"===o?"mb-2.5":"roomy"===o?"mb-6 sm:mb-7":"mb-4 sm:mb-5",e.wide&&"[column-span:all]"),children:(0,t.jsx)(y,{tile:e,layout:a,captions:u,corners:c,frame:m,dark:h,equal:!1,crop:s,columns:r,priority:!$&&n<r,clickable:x,onOpen:()=>P($?n+1:n)})},`${e.url}-${n}`))}):null,x&&null!==N?(0,t.jsx)(b,{tiles:C,index:N,onClose:()=>k(null),onIndexChange:k}):null]})}function f({label:e,active:n,dark:a,onClick:r}){return(0,t.jsx)("button",{type:"button",onClick:r,className:(0,l.cn)("rounded-full px-3.5 py-1.5 text-[12.5px] font-semibold tracking-[0.02em] transition-colors duration-150",n?a?"bg-white text-navy-ink":"bg-maroon text-white":a?"bg-white/10 text-white/75 hover:bg-white/16":"bg-cream-2 text-navy hover:bg-[#efe8d8]"),children:e})}function y({tile:e,layout:n,captions:d,corners:m,frame:u,dark:x,equal:p,crop:h,columns:b,featured:g=!1,priority:f=!1,clickable:y,onOpen:w}){var j,v;let N=o(e),k="hover"===d&&!!(e.caption||e.title),C="overlay"===d&&!!(e.caption||e.title),$="below"===d&&!!(e.caption||e.title||e.credit),S=g||"rows"===n,T=p&&!S,P=(j=e.url,v=function(e){if(e.print||e.wide)return"(min-width: 1200px) 1152px, 100vw";let t="masonry"===e.layout||"mosaic"===e.layout;if(2===e.columns)return"(min-width: 1200px) 566px, (min-width: 640px) 50vw, 100vw";let n=t?"50vw":"100vw",l=t?"":"(min-width: 640px) 50vw, ";return 4===e.columns?`(min-width: 1200px) 276px, (min-width: 1024px) 25vw, ${l}${n}`:`(min-width: 1200px) 370px, (min-width: 1024px) 33vw, ${l}${n}`}({layout:n,columns:b,print:S,wide:e.wide}),!function(e){if(e.startsWith("/")&&!e.startsWith("//"))return!e.startsWith("/_next/");try{let t=new URL(e);return"https:"===t.protocol&&r.has(t.hostname)}catch{return!1}}(j)?{src:j}:{src:s(j,828),srcSet:i.map(e=>`${s(j,e)} ${e}w`).join(", "),sizes:v}),D=(0,t.jsxs)("span",{className:(0,l.cn)("relative block overflow-hidden","sharp"===m?"rounded-none":"rounded"===m?"rounded-[18px]":"rounded-card","line"===u?x?"border border-white/18":"border border-rule":"paper"===u?x?"border border-white/12 bg-white/[0.06] p-1.5":"border border-rule bg-paper p-1.5 shadow-[0_14px_32px_-22px_rgba(18,44,71,0.35)]":"navy"===u?"border border-navy-ink/80 bg-navy-ink p-1.5":"",T&&a[h]),children:[(0,t.jsx)("img",{src:P.src,srcSet:P.srcSet,sizes:P.sizes,alt:e.alt,width:T?void 0:e.width??void 0,height:T?void 0:e.height??void 0,loading:f?"eager":"lazy",fetchPriority:f?"high":void 0,decoding:"async",className:(0,l.cn)("w-full align-middle",S?"mx-auto max-h-[72vh] w-auto max-w-full object-contain":T?"absolute inset-0 h-full w-full object-cover":"h-auto object-cover",y&&!S&&"transition duration-700 group-hover:scale-[1.02]")}),C||k?(0,t.jsxs)("span",{className:(0,l.cn)("pointer-events-none absolute inset-x-0 bottom-0 bg-gradient-to-t from-[#0d2035]/88 via-[#0d2035]/35 to-transparent px-4 pb-3.5 pt-16",k&&"opacity-0 transition-opacity duration-200 group-hover:opacity-100 group-focus-visible:opacity-100"),children:[e.title?(0,t.jsx)("span",{className:"block text-[14px] font-semibold text-white",children:e.title}):null,e.caption?(0,t.jsx)("span",{className:(0,l.cn)("block text-[13px] leading-relaxed text-white/84",e.title&&"mt-1"),children:e.caption}):null]}):null]}),L=$?(0,t.jsxs)("span",{className:"mt-3 block px-0.5",children:[e.title?(0,t.jsx)("span",{className:(0,l.cn)("block text-[14.5px] font-semibold",x?"text-white":"text-navy"),children:e.title}):null,e.caption?(0,t.jsx)("span",{className:(0,l.cn)((0,l.cn)("text-[13.5px] leading-relaxed",x?"text-white/70":"text-ink-muted"),e.title&&"mt-1 block"),children:e.caption}):null,e.credit?(0,t.jsx)("span",{className:(0,l.cn)(c(x),"block"),children:e.credit}):null]}):null;return y?(0,t.jsx)("figure",{className:(0,l.cn)(S&&"mx-auto max-w-5xl",T&&"h-full"),children:(0,t.jsxs)("button",{type:"button",onClick:w,className:(0,l.cn)("group block w-full text-left",T&&"flex h-full flex-col"),"aria-label":`Open ${N}`,children:[D,L]})}):(0,t.jsxs)("figure",{className:(0,l.cn)(S&&"mx-auto max-w-5xl",T&&"flex h-full flex-col"),children:[D,L]})}e.s(["GalleryCollage",()=>g],60624)},97346,e=>{"use strict";var t=e.i(43476),n=e.i(71645),l=e.i(33209);let a=[{kind:"event",label:"Events",singular:"Event",dot:"bg-maroon",rule:"border-maroon"},{kind:"course",label:"Courses",singular:"Course",dot:"bg-navy",rule:"border-navy"},{kind:"class",label:"Classes",singular:"Class",dot:"bg-gold-deep",rule:"border-gold-deep"},{kind:"live",label:"Live classes",singular:"Live class",dot:"bg-blue-accent",rule:"border-blue-accent"},{kind:"notice",label:"Notices",singular:"Notice",dot:"bg-ink-muted",rule:"border-ink-muted"}],r="Asia/Kolkata",i=new Intl.DateTimeFormat("en-CA",{timeZone:r,year:"numeric",month:"2-digit",day:"2-digit"}),s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function o(e){let t="string"==typeof e?new Date(e):e;return i.format(t)}function d(e){let[t,n,l]=e.split("-").map(Number);return new Date(Date.UTC(t,n-1,l,6,30,0))}function c(e=new Date){return o(e)}function m(e,t){let n=d(e);return n.setUTCDate(n.getUTCDate()+t),o(n)}function u(e){return`${e.slice(0,8)}01`}function x(e,t){let n,l,a=(n=new Intl.DateTimeFormat("en-US",{timeZone:r,weekday:"short"}).format(d(e)),(((l=s.indexOf(n))<0?0:l)-t+7)%7);return m(e,-a)}function p(e,t=new Date){let n=new Date(e.start).getTime(),l=new Date(e.end).getTime(),a=t.getTime();return Number.isNaN(n)||Number.isNaN(l)?"past":a<n?"upcoming":a>l?"past":"ongoing"}function h(e,t){return o(e.start)<=t&&t<=o(e.end)}function b(e){return a.find(t=>t.kind===e)??a[0]}function g(e,t=!0){let n={timeZone:r,day:"numeric",month:"long"};return t&&(n.weekday="long"),new Intl.DateTimeFormat("en-IN",n).format(d(e))}function f(e){return new Intl.DateTimeFormat("en-IN",{timeZone:r,weekday:"short"}).format(d(e))}function y(e){return new Intl.DateTimeFormat("en-IN",{timeZone:r,hour:"numeric",minute:"2-digit"}).format(new Date(e))}function w(e){return String(Number(e.slice(8,10)))}function j(e){return"upcoming"===e?"Upcoming":"ongoing"===e?"Ongoing":"Past"}function v({items:e,config:i}){var s;
1let b,g,f,y,w,v,T,q=c(),[z,E]=(0,n.useState)(q),[A,I]=(0,n.useState)(i.view),[F,O]=(0,n.useState)(i.when),[U,M]=(0,n.useState)("all"),[R,W]=(0,n.useState)(""),[B,_]=(0,n.useState)(q),[Z,K]=(0,n.useState)(null),Y=(0,n.useMemo)(()=>{let t=R.trim().toLowerCase();return e.filter(e=>{if("all"!==U&&e.kind!==U)return!1;let n=p(e);return("all"===F||n===F)&&(!t||[e.title,e.summary,e.place,e.meta].filter(Boolean).join(" ").toLowerCase().includes(t))})},[e,U,F,R]),V=function(e,t){let n=u(e),l=x(n,t),a=[];for(let e=0;e<42;e+=1)a.push(l),l=m(l,1);let r=n.slice(0,7);for(;a.length>28&&a.slice(-7).every(e=>e.slice(0,7)!==r);)a.splice(-7,7);return a}(z,i.weekStartsOn),H="week"===A?(b=x(z,i.weekStartsOn),Array.from({length:7},(e,t)=>m(b,t))):V,J=H[0]??u(z),X=H[H.length-1]??u(z),G=Y.filter(e=>o(e.start)<=X&&o(e.end)>=J),Q=Y.filter(e=>h(e,B)).sort((e,t)=>e.start.localeCompare(t.start)),ee="week"===A?(g=d(H[0]??c()),f=d(H[H.length-1]??c()),y=H[0]?.slice(0,7)===H[H.length-1]?.slice(0,7),w={timeZone:r,day:"numeric"},y||(w.month="short"),v=new Intl.DateTimeFormat("en-IN",w).format(g),T=new Intl.DateTimeFormat("en-IN",{timeZone:r,day:"numeric",month:"short",year:"numeric"}).format(f),`${v} – ${T}`):new Intl.DateTimeFormat("en-IN",{timeZone:r,month:"long",year:"numeric"}).format(d(u(z))),et=a.filter(t=>e.some(e=>e.kind===t.kind)),en=(e,t)=>{let n=Y.filter(t=>h(t,e));_(e),K(t??(1===n.length?n[0]?.id??null:null)),requestAnimationFrame(()=>{document.getElementById("calendar-day-list")?.scrollIntoView({behavior:"smooth",block:"nearest"})})},el=e=>{let t,n="week"===A?m(z,7*e):((t=d(u(z))).setUTCMonth(t.getUTCMonth()+e),o(t));E(n),_("week"===A?n:u(n)),K(null)};return(0,t.jsxs)("div",{className:(0,l.cn)("border border-rule bg-paper text-ink","rounded"===(s=i.corners)?"rounded-2xl":"soft"===s?"rounded-card":"rounded-none"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 border-b border-rule px-4 py-4 sm:px-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(N,{label:"Previous",onClick:()=>el(-1)}),(0,t.jsx)("button",{type:"button",onClick:()=>{E(q),_(q),K(null)},className:"h-9 rounded-[6px] border border-rule px-3 text-[13.5px] font-semibold text-navy hover:border-navy",children:"Today"}),(0,t.jsx)(N,{label:"Next",forward:!0,onClick:()=>el(1)})]}),(0,t.jsx)("h3",{className:"order-first w-full text-[1.35rem] font-semibold tracking-tight text-navy sm:order-none sm:w-auto",children:ee}),(0,t.jsx)(k,{view:A,onChange:I})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"group","aria-label":"When",children:["all","upcoming","ongoing","past"].map(e=>(0,t.jsx)(C,{active:F===e,onClick:()=>O(e),children:"all"===e?"All":j(e)},e))}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",role:"group","aria-label":"Kind",children:[(0,t.jsx)(C,{active:"all"===U,onClick:()=>M("all"),children:"All kinds"}),et.map(e=>(0,t.jsxs)(C,{active:U===e.kind,onClick:()=>M(e.kind),children:[(0,t.jsx)("span",{className:(0,l.cn)("h-1.5 w-1.5 rounded-full",e.dot),"aria-hidden":"true"}),e.label]},e.kind))]})]}),i.showSearch?(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Search the calendar"}),(0,t.jsx)("input",{value:R,onChange:e=>W(e.target.value),placeholder:"Search titles, places, courses",className:"h-10 w-full rounded-[6px] border border-rule bg-white px-3 text-[14.5px] text-ink outline-none placeholder:text-ink-muted/70 focus:border-navy sm:max-w-sm"})]}):null,i.showLegend&&et.length>1?(0,t.jsx)("ul",{className:"hidden flex-wrap gap-x-4 gap-y-1.5 text-[12.5px] text-ink-muted sm:flex",children:et.map(e=>(0,t.jsxs)("li",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:(0,l.cn)("h-1.5 w-1.5 rounded-full",e.dot),"aria-hidden":"true"}),e.label]},e.kind))}):null]}),"month"===A?(0,t.jsx)($,{days:V,month:u(z),today:q,selected:B,items:Y,density:i.density,onSelect:e=>en(e),onOpen:(e,t)=>en(e,t)}):null,"week"===A?(0,t.jsx)(S,{days:H,today:q,selected:B,items:Y,onSelect:e=>{E(e),en(e)},onOpen:(e,t)=>{E(e),en(e,t)}}):null,"agenda"===A?(0,t.jsx)(D,{items:G,memberUrl:i.memberUrl,openId:Z,emptyText:i.emptyText,onToggle:K}):null,"table"===A?(0,t.jsx)(L,{items:G,memberUrl:i.memberUrl,emptyText:i.emptyText}):null,"month"===A||"week"===A?(0,t.jsx)(P,{day:B,items:Q,memberUrl:i.memberUrl,openId:Z,emptyText:i.emptyText,onToggle:K}):null]})}function N({label:e,forward:n,onClick:l}){return(0,t.jsx)("button",{type:"button","aria-label":e,onClick:l,className:"inline-flex h-9 w-9 items-center justify-center rounded-[6px] border border-rule text-navy hover:border-navy",children:(0,t.jsx)("span",{"aria-hidden":"true",children:n?"→":"←"})})}function k({view:e,onChange:n}){return(0,t.jsx)("div",{className:"flex rounded-[6px] border border-rule p-0.5",role:"group","aria-label":"Calendar view",children:[{id:"month",label:"Month"},{id:"week",label:"Week"},{id:"agenda",label:"Agenda"},{id:"table",label:"Table"}].map(a=>(0,t.jsx)("button",{type:"button","aria-pressed":e===a.id,onClick:()=>n(a.id),className:(0,l.cn)("h-8 rounded-[4px] px-2.5 text-[13px] font-semibold sm:px-3",e===a.id?"bg-navy text-white":"text-navy hover:bg-cream"),children:a.label},a.id))})}function C({active:e,onClick:n,children:a}){return(0,t.jsx)("button",{type:"button","aria-pressed":e,onClick:n,className:(0,l.cn)("inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] font-semibold",e?"border-navy bg-navy text-white":"border-rule bg-white text-navy hover:border-navy"),children:a})}function $({days:e,month:n,today:a,selected:r,items:i,density:s,onSelect:o,onOpen:d}){let c=e.slice(0,7);return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"grid grid-cols-7 border-b border-rule bg-cream/70",children:c.map(e=>(0,t.jsxs)("div",{className:"px-1 py-2 text-center text-[11px] font-semibold tracking-wide text-ink-muted uppercase sm:text-[12px]",children:[(0,t.jsx)("span",{className:"sm:hidden",children:f(e).slice(0,1)}),(0,t.jsx)("span",{className:"hidden sm:inline",children:f(e)})]},e))}),(0,t.jsx)("div",{className:"grid grid-cols-7",children:e.map(e=>{let c=e.slice(0,7)===n.slice(0,7),m=i.filter(t=>h(t,e)),u=m.slice(0,"compact"===s?2:3),x=m.length>0;return(0,t.jsxs)("div",{className:(0,l.cn)("group relative flex min-h-[4.25rem] flex-col border-b border-r border-rule p-1 text-left sm:min-h-[6.5rem] sm:p-1.5","compact"===s&&"sm:min-h-[5.25rem]",!c&&"bg-cream/40 text-ink-muted",r===e&&"bg-callout-blue/50",x&&"cursor-pointer hover:bg-cream/80",x&&"hover:z-20 focus-within:z-20"),onClick:()=>o(e),children:[(0,t.jsx)("button",{type:"button","aria-pressed":r===e,"aria-label":`${g(e)}, ${m.length} ${1===m.length?"item":"items"}`,onClick:t=>{t.stopPropagation(),o(e)},className:(0,l.cn)("mb-1 inline-flex h-6 w-6 cursor-pointer items-center justify-center rounded-full text-[12.5px] font-semibold sm:text-[13px]",e===a&&"bg-maroon text-white",e!==a&&c&&"text-navy",x&&e!==a&&"group-hover:bg-navy group-hover:text-white"),children:w(e)}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[u.map(n=>(0,t.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),d(e,n.id)},className:(0,l.cn)("hidden w-full cursor-pointer truncate border-l-2 bg-white/80 px-1 py-0.5 text-left text-[11px] leading-tight text-navy hover:bg-cream sm:block",b(n.kind).rule),children:n.title},n.id)),x?(0,t.jsx)("span",{className:"flex justify-center gap-0.5 sm:hidden","aria-hidden":"true",children:m.slice(0,3).map(e=>(0,t.jsx)("span",{className:(0,l.cn)("h-1.5 w-1.5 rounded-full",b(e.kind).dot)},e.id))}):null,m.length>u.length?(0,t.jsxs)("span",{className:"hidden text-[11px] text-ink-muted sm:block",children:["+",m.length-u.length]}):null]}),(0,t.jsx)(T,{day:e,items:m})]},e)})})]})}function S({days:e,today:n,selected:a,items:r,onSelect:i,onOpen:s}){return(0,t.jsx)("div",{className:"grid gap-px bg-rule sm:grid-cols-7",children:e.map(e=>{let o=r.filter(t=>h(t,e)),d=o.length>0;return(0,t.jsxs)("div",{onClick:()=>i(e),className:(0,l.cn)("group relative bg-paper p-3 text-left",a===e&&"bg-callout-blue/40",e===n&&"shadow-[inset_0_2px_0_#AE0000]",d&&"cursor-pointer hover:z-20 hover:bg-cream/80"),children:[(0,t.jsxs)("button",{type:"button","aria-pressed":a===e,onClick:t=>{t.stopPropagation(),i(e)},className:"cursor-pointer text-left",children:[(0,t.jsx)("span",{className:"block text-[12px] font-semibold text-ink-muted",children:f(e)}),(0,t.jsx)("span",{className:(0,l.cn)("mt-0.5 inline-flex h-7 w-7 items-center justify-center rounded-full text-[14px] font-semibold",e===n?"bg-maroon text-white":"text-navy"),children:w(e)})]}),(0,t.jsxs)("span",{className:"mt-2 block space-y-1",children:[o.slice(0,4).map(n=>(0,t.jsxs)("button",{type:"button",onClick:t=>{t.stopPropagation(),s(e,n.id)},className:(0,l.cn)("block w-full cursor-pointer truncate border-l-2 pl-1.5 text-left text-[12.5px] text-navy hover:underline",b(n.kind).rule),children:[n.allDay?null:(0,t.jsx)("span",{className:"mr-1 text-ink-muted",children:y(n.start)}),n.title]},n.id)),o.length>4?(0,t.jsxs)("span",{className:"block text-[12px] text-ink-muted",children:["+",o.length-4," more"]}):null]}),(0,t.jsx)(T,{day:e,items:o})]},e)})})}function T({day:e,items:n}){if(!n.length)return null;let a=n.slice(0,5);return(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none invisible absolute left-1/2 top-full z-30 w-[min(16rem,18rem)] -translate-x-1/2 pt-1.5 opacity-0 transition group-hover:visible group-hover:opacity-100 group-focus-within:visible group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-card border border-rule bg-paper px-3 py-2.5 text-left shadow-[0_12px_32px_rgba(18,44,71,0.16)]",children:[(0,t.jsx)("p",{className:"text-[12px] font-semibold text-navy",children:g(e)}),(0,t.jsx)("ul",{className:"mt-1.5 space-y-1",children:a.map(e=>(0,t.jsxs)("li",{className:"flex gap-1.5 text-[12.5px] leading-snug text-ink",children:[(0,t.jsx)("span",{className:(0,l.cn)("mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full",b(e.kind).dot),"aria-hidden":"true"}),(0,t.jsxs)("span",{children:[e.allDay?null:(0,t.jsxs)("span",{className:"text-ink-muted",children:[y(e.start)," · "]}),e.title]})]},e.id))}),n.length>a.length?(0,t.jsxs)("p",{className:"mt-1 text-[12px] text-ink-muted",children:["+",n.length-a.length," more"]}):null]})})}function P({day:e,items:n,memberUrl:l,openId:a,emptyText:r,onToggle:i}){return(0,t.jsxs)("section",{id:"calendar-day-list",className:"border-t border-rule px-4 py-4 sm:px-5","aria-label":g(e),children:[(0,t.jsx)("h4",{className:"text-[15px] font-semibold text-navy",children:g(e)}),n.length?(0,t.jsx)("ul",{className:"mt-3 divide-y divide-rule border-y border-rule",children:n.map(e=>(0,t.jsx)(q,{item:e,memberUrl:l,open:a===e.id,onToggle:()=>i(a===e.id?null:e.id)},e.id))}):(0,t.jsx)("p",{className:"mt-2 text-[14.5px] text-ink-muted",children:r})]})}function D({items:e,memberUrl:n,openId:l,emptyText:a,onToggle:r}){let i,s,o=(i=[...e].sort((e,t)=>
1e.start.localeCompare(t.start)),s=[],i.forEach(e=>{let t=E(e.start),n=s[s.length-1];n?.day===t?n.items.push(e):s.push({day:t,items:[e]})}),s);return o.length?(0,t.jsx)("div",{className:"px-4 py-2 sm:px-5",children:o.map(e=>(0,t.jsxs)("section",{className:"border-b border-rule py-4 last:border-b-0",children:[(0,t.jsx)("h4",{className:"text-[13px] font-semibold tracking-wide text-ink-muted uppercase",children:g(e.day)}),(0,t.jsx)("ul",{className:"mt-2 divide-y divide-rule",children:e.items.map(e=>(0,t.jsx)(q,{item:e,memberUrl:n,open:l===e.id,onToggle:()=>r(l===e.id?null:e.id)},e.id))})]},e.day))}):(0,t.jsx)("p",{className:"px-4 py-8 text-[15px] text-ink-muted sm:px-5",children:a})}function L({items:e,memberUrl:n,emptyText:a}){let r=[...e].sort((e,t)=>e.start.localeCompare(t.start));return r.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ul",{className:"divide-y divide-rule md:hidden",children:r.map(e=>(0,t.jsx)("li",{className:"px-4 py-3",children:(0,t.jsx)(z,{item:e,memberUrl:n})},e.id))}),(0,t.jsx)("div",{className:"hidden overflow-x-auto md:block",children:(0,t.jsxs)("table",{className:"w-full border-separate border-spacing-0 text-left text-[14.5px]",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{className:"bg-cream/80 text-[12.5px] font-semibold tracking-wide text-ink-muted uppercase",children:["Date","Time","Kind","Title","Where","Status"].map(e=>(0,t.jsx)("th",{scope:"col",className:"border-b border-rule px-4 py-3",children:e},e))})}),(0,t.jsx)("tbody",{children:r.map(e=>{let a=A(e.href,n),r=p(e);return(0,t.jsxs)("tr",{className:"align-top",children:[(0,t.jsx)("td",{className:"border-b border-rule px-4 py-3 whitespace-nowrap text-navy",children:g(E(e.start),!1)}),(0,t.jsx)("td",{className:"border-b border-rule px-4 py-3 whitespace-nowrap text-ink-muted",children:e.allDay?"All day":y(e.start)}),(0,t.jsx)("td",{className:"border-b border-rule px-4 py-3",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-ink",children:[(0,t.jsx)("span",{className:(0,l.cn)("h-1.5 w-1.5 rounded-full",b(e.kind).dot),"aria-hidden":"true"}),b(e.kind).singular]})}),(0,t.jsxs)("td",{className:"border-b border-rule px-4 py-3",children:[a?(0,t.jsx)("a",{href:a,className:"font-semibold text-navy underline decoration-navy/25 underline-offset-4 hover:text-maroon hover:decoration-maroon",children:e.title}):(0,t.jsx)("span",{className:"font-semibold text-navy",children:e.title}),e.meta?(0,t.jsx)("span",{className:"mt-0.5 block text-[13px] text-ink-muted",children:e.meta}):null]}),(0,t.jsx)("td",{className:"border-b border-rule px-4 py-3 text-ink-muted",children:e.place||"—"}),(0,t.jsx)("td",{className:"border-b border-rule px-4 py-3",children:j(r)})]},e.id)})})]})})]}):(0,t.jsx)("p",{className:"px-4 py-8 text-[15px] text-ink-muted sm:px-5",children:a})}function q({item:e,memberUrl:n,open:a,onToggle:r}){let i=A(e.href,n),s=p(e);return(0,t.jsxs)("li",{className:"py-3",children:[(0,t.jsxs)("button",{type:"button",onClick:r,"aria-expanded":a,className:"flex w-full items-start gap-3 text-left",children:[(0,t.jsx)("span",{className:(0,l.cn)("mt-1.5 h-2 w-2 shrink-0 rounded-full",b(e.kind).dot),"aria-hidden":"true"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"block text-[12.5px] font-semibold text-ink-muted",children:[b(e.kind).label," · ",j(s),e.allDay?"":` \xb7 ${y(e.start)}`]}),(0,t.jsx)("span",{className:"mt-0.5 block text-[15.5px] font-semibold text-navy",children:e.title}),e.place||e.meta?(0,t.jsx)("span",{className:"mt-0.5 block truncate text-[13.5px] text-ink-muted",children:[e.meta,e.place].filter(Boolean).join(" · ")}):null]})]}),a?(0,t.jsxs)("div",{className:"mt-3 pl-5",children:[(0,t.jsx)("p",{className:"text-[14.5px] leading-relaxed text-ink",children:function(e){let t=o(e.start),n=o(e.end);if(e.allDay)return t===n?g(t):`${g(t,!1)} – ${g(n,!1)}`;let l=`${y(e.start)} – ${y(e.end)}`;return t===n?`${g(t)}, ${l}`:`${g(t,!1)}, ${y(e.start)} – ${g(n,!1)}, ${y(e.end)}`}(e)}
1),e.summary?(0,t.jsx)("p",{className:"mt-2 max-w-[62ch] text-[14.5px] leading-relaxed text-ink-muted",children:e.summary}):null,i&&e.hrefLabel?(0,t.jsx)("a",{href:i,className:"mt-3 inline-flex text-[14px] font-semibold text-maroon underline decoration-maroon/30 underline-offset-4 hover:decoration-maroon",children:e.hrefLabel}):null]}):null]})}function z({item:e,memberUrl:n}){let l=A(e.href,n);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-[12.5px] font-semibold text-ink-muted",children:[g(E(e.start),!1),e.allDay?"":` \xb7 ${y(e.start)}`," · ",j(p(e))]}),l?(0,t.jsx)("a",{href:l,className:"mt-1 block font-semibold text-navy underline decoration-navy/25 underline-offset-4",children:e.title}):(0,t.jsx)("p",{className:"mt-1 font-semibold text-navy",children:e.title})]})}function E(e){return new Intl.DateTimeFormat("en-CA",{timeZone:"Asia/Kolkata",year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date(e))}function A(e,t){return e?/^https?:\/\//i.test(e)?e:e.startsWith("/dashboard")||e.startsWith("/auth")?`${t.replace(/\/$/,"")}${e}`:e:null}e.s(["CalendarBoard",()=>v],97346)},85230,e=>{"use strict";var t=e.i(43476),n=e.i(71645),l=e.i(33209);function a({children:e,dark:a}){let r=(0,n.useRef)(null),[i,s]=(0,n.useState)(0);return(0,n.useEffect)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)"),n=0,l=()=>{n=0;let l=e.getBoundingClientRect(),a=l.height;t.matches?s(a):s(Math.min(a,Math.max(0,.58*window.innerHeight-l.top)))},a=()=>{n||(n=requestAnimationFrame(l))};l();let i=new ResizeObserver(a);return i.observe(e),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),t.addEventListener("change",a),()=>{n&&cancelAnimationFrame(n),i.disconnect(),window.removeEventListener("scroll",a),window.removeEventListener("resize",a),t.removeEventListener("change",a)}},[]),(0,t.jsxs)("ol",{ref:r,className:(0,l.cn)("relative ml-3 border-l pl-8",a?"border-white/20":"border-rule"),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute -left-px top-0 w-px bg-maroon",style:{height:i}}),e]})}e.s(["AnimatedRail",()=>a])},74700,e=>{"use strict";var t=e.i(43476);let n=(0,e.i(75254).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);var l=e.i(71645),a=e.i(33209);function r({items:e,dark:r}){let i=(0,l.useRef)(null),s=(0,l.useRef)([]),[o,d]=(0,l.useState)(0),[c,m]=(0,l.useState)(0),[u,x]=(0,l.useState)(0),[p,h]=(0,l.useState)(-1);return(0,l.useEffect)(()=>{let e=i.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)"),n=0,l=()=>{n=0;let l=e.getBoundingClientRect(),a=[];if(s.current.forEach(e=>{if(!e)return;let t=e.getBoundingClientRect();a.push(t.top+t.height/2-l.top)}),0===a.length)return;let r=a[0]??0,i=a[a.length-1]??r;if(t.matches){d(r),m(Math.max(0,i-r)),x(Math.max(0,i-r)),h(a.length-1);return}let o=.58*window.innerHeight,c=Math.min(Math.max(o-l.top,r),i),u=-1;s.current.forEach((e,t)=>{if(!e)return;let n=e.getBoundingClientRect();n.top+n.height/2<=o&&(u=t)}),d(r),m(Math.max(0,i-r)),x(Math.max(0,c-r)),h(u)},a=()=>{n||(n=requestAnimationFrame(l))};l();let r=new ResizeObserver(a);return r.observe(e),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),t.addEventListener("change",a),()=>{n&&cancelAnimationFrame(n),r.disconnect(),window.removeEventListener("scroll",a),window.removeEventListener("resize",a),t.removeEventListener("change",a)}},[e.length]),(0,t.jsxs)("ol",{ref:i,className:"relative m-0 list-none p-0",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute left-5 w-[3px] -translate-x-1/2 bg-gold-deep md:left-1/2",style:{top:o,height:c}}),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute left-5 w-[3px] -translate-x-1/2 bg-maroon md:left-1/2",style:{top:o,height:u}}),e.map((e,l)=>{let i=l%2==0;return(0,t.jsxs)("li",{className:"relative py-[7px]",children:[(0,t.jsx)("span",{ref:e=>{s.current[l]=e}
1,"aria-hidden":!0,className:(0,a.cn)("absolute left-5 top-3 z-10 flex h-9 w-9 -translate-x-1/2 items-center justify-center rounded-full text-white transition-colors duration-300 md:left-1/2 md:top-1/2 md:-translate-y-1/2",l<=p?"bg-maroon":"bg-gold-deep"),children:(0,t.jsx)(n,{className:"h-4 w-4",strokeWidth:2.25})}),(0,t.jsxs)("div",{className:"grid items-center pl-12 md:grid-cols-2 md:pl-0",children:[(0,t.jsx)("div",{className:(0,a.cn)("order-2 md:order-none md:row-start-1",i?"md:col-start-1 md:pr-7":"md:col-start-2 md:pl-7"),children:(0,t.jsxs)("article",{className:(0,a.cn)("journey-card rounded-[2px] px-5 py-5",i?"journey-card-left md:text-right":"journey-card-right md:text-left",r?"bg-white/10":"bg-[#eeeeee]"),children:[e.title?(0,t.jsx)("h3",{className:(0,a.cn)("m-0 text-[1.35rem] font-normal leading-snug tracking-normal md:text-2xl",r?"text-white":"text-[#3a3a3a]"),children:e.title}):null,e.text?(0,t.jsx)("p",{className:(0,a.cn)("mt-[5px] text-[15px] leading-relaxed",r?"text-white/75":"text-[#333333]"),children:e.text}):null]})}),e.date?(0,t.jsx)("p",{className:(0,a.cn)("order-1 mb-2 text-xs leading-none md:order-none md:row-start-1 md:mb-0 md:self-center",r?"text-white/70":"text-[#333333]",i?"md:col-start-2 md:pl-7 md:text-left":"md:col-start-1 md:pr-7 md:text-right"),children:e.date}):null]})]},e.id??`${e.date}-${l}`)})]})}e.s(["JourneyTimeline",()=>r],74700)},95468,e=>{"use strict";let t=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",()=>t],95468)},70127,e=>{"use strict";var t=e.i(43476),n=e.i(71645),l=e.i(22016),a=e.i(95468),r=e.i(64659),i=e.i(76525),s=e.i(33209),o=e.i(8037);function d({topics:e,showPhone:d,requirePhone:m,submitLabel:u,successTitle:x,successBody:p,note:h,dark:b}){let g=(0,n.useId)(),[f,y]=(0,n.useState)("idle"),[w,j]=(0,n.useState)({}),[v,N]=(0,n.useState)(null),k=(0,s.cn)("w-full rounded-[6px] border px-3.5 py-2.5 text-[15px] leading-normal transition-colors duration-150 outline-none",b?"border-white/20 bg-white/[0.06] text-white placeholder:text-white/40 focus:border-gold":"border-rule bg-paper text-ink placeholder:text-ink-muted/60 focus:border-navy"),C=(0,s.cn)("mb-1.5 block text-[13px] font-semibold",b?"text-white/80":"text-navy");async function $(e){e.preventDefault();let t=e.currentTarget,n=new FormData(t),l={name:String(n.get("name")??"").trim(),email:String(n.get("email")??"").trim(),phone:String(n.get("phone")??"").trim(),topic:String(n.get("topic")??"").trim(),message:String(n.get("message")??"").trim(),company:String(n.get("company")??""),sourcePath:window.location.pathname},a={};if(l.name||(a.name="Please tell us your name"),/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(l.email)||(a.email="Enter a valid email address"),m&&!l.phone&&(a.phone="Please add a phone number"),l.message.length<10&&(a.message="Please write a little more so we can help"),j(a),Object.keys(a).length>0)return void t.querySelector(`[name="${Object.keys(a)[0]}"]`)?.focus();y("sending"),N(null);try{let e=await fetch(`${o.siteConfig.apiUrl}/cms/enquiries`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(429===e.status){let t=await e.json().catch(()=>null),n=Array.isArray(t?.message)?t.message[0]:t?.message;N("string"==typeof n&&n?n:"A message from this email address or connection was already received in the last 30 minutes. Please wait before sending another."),y("error");return}if(!e.ok){let t=await e.json().catch(()=>null),n=Array.isArray(t?.message)?t.message[0]:t?.message;N(n||"Your message could not be sent."),y("error");return}t.reset(),y("sent")}catch{N("Your message could not be sent. Please check your connection and try again."),y("error")}}return"sent"===f?(0,t.jsxs)("div",{role:"status",className:(0,s.cn)("rounded-card border p-8 text-center",b?"border-white/14 bg-white/[0.04]":"border-rule bg-paper"),children:[(0,t.jsx)(a.CheckCircle2,{size:30,strokeWidth:1.6,"aria-hidden":"true",className:(0,s.cn)("mx-auto mb-4",b?"text-gold":"text-clinical")}),(0,t.jsx)("h3",{className:(0,s.cn)("text-[1.15rem] font-semibold",b?"text-white":"text-navy"),children:x}),(0,t.jsx)("p",{className:(0,s.cn)("mx-auto mt-2 max-w-[46ch] text-[15px] leading-relaxed",b?"text-white/70":"text-ink-muted"),children:p}),(0,t.jsx)(l.default,{href:"/",className:(0,s.cn)("mt-6 inline-block text-[13.5px] font-semibold underline underline-offset-4",b?"text-gold":"text-maroon"),children:"Back to home"})]}):(0,t.jsxs)("form",{onSubmit:$,noValidate:!0,className:"space-y-4",children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(c,{id:`${g}-name`,name:"name",label:"Your name",error:w.name,labelClass:C,dark:b,children:(0,t.jsx)("input",{id:`${g}-name`,name:"name",type:"text",autoComplete:"name",required:!0,maxLength:150,className:(0,s.cn)(k,w.name&&"border-maroon"),"aria-invalid":!!w.name})}),(0,t.jsx)(c,{id:`${g}-email`,name:"email",label:"Email address",error:w.email,labelClass:C,dark:b,children:(0,t.jsx)("input",{id:`${g}-email`,name:"email",type:"email",autoComplete:"email",required:!0,maxLength:190,className:(0,s.cn)(k,w.email&&"border-maroon"),"aria-invalid":!!w.email})}),d?(0,t.jsx)(c,{id:`${g}
1-phone`,name:"phone",label:m?"Phone":"Phone (optional)",error:w.phone,labelClass:C,dark:b,children:(0,t.jsx)("input",{id:`${g}-phone`,name:"phone",type:"tel",autoComplete:"tel",maxLength:40,className:(0,s.cn)(k,w.phone&&"border-maroon"),"aria-invalid":!!w.phone})}):null,e.length>0?(0,t.jsx)(c,{id:`${g}-topic`,name:"topic",label:"What is this about?",labelClass:C,dark:b,children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("select",{id:`${g}-topic`,name:"topic",defaultValue:e[0],className:(0,s.cn)(k,"appearance-none pr-10"),children:e.map(e=>(0,t.jsx)("option",{value:e,children:e},e))}),(0,t.jsx)(r.ChevronDown,{size:16,"aria-hidden":"true",className:(0,s.cn)("pointer-events-none absolute right-3 top-1/2 -translate-y-1/2",b?"text-white/50":"text-ink-muted")})]})}):null]}),(0,t.jsx)(c,{id:`${g}-message`,name:"message",label:"Message",error:w.message,labelClass:C,dark:b,children:(0,t.jsx)("textarea",{id:`${g}-message`,name:"message",rows:6,required:!0,maxLength:5e3,className:(0,s.cn)(k,"resize-y",w.message&&"border-maroon"),"aria-invalid":!!w.message})}),(0,t.jsxs)("div",{"aria-hidden":"true",className:"absolute left-[-9999px] h-px w-px overflow-hidden",children:[(0,t.jsx)("label",{htmlFor:`${g}-company`,children:"Company"}),(0,t.jsx)("input",{id:`${g}-company`,name:"company",type:"text",tabIndex:-1,autoComplete:"off"})]}),v?(0,t.jsx)("p",{role:"alert",className:(0,s.cn)("rounded-[6px] border border-maroon/30 bg-callout-red px-4 py-3 text-[14px] text-maroon-deep",b&&"border-white/20 bg-white/[0.06] text-white"),children:v}):null,(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-4 pt-1",children:[(0,t.jsx)(i.Button,{type:"submit",disabled:"sending"===f,variant:b?"on-dark":"primary",size:"lg",className:"sending"===f?"opacity-70":void 0,children:"sending"===f?"Sending…":u}),(0,t.jsx)("p",{className:(0,s.cn)("text-[13px]",b?"text-white/55":"text-ink-muted"),children:h||"We reply to the email address you give us."})]})]})}function c({id:e,label:n,error:l,labelClass:a,dark:r,children:i}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:e,className:a,children:n}),i,l?(0,t.jsx)("p",{className:(0,s.cn)("mt-1.5 text-[12.5px]",r?"text-gold":"text-maroon"),children:l}):null]})}e.s(["ContactForm",()=>d])},23916,e=>{"use strict";var t=e.i(43476),n=e.i(71645),l=e.i(95468),a=e.i(76525),r=e.i(33209),i=e.i(8037);function s({submitLabel:e,nameLabel:s,roleLabel:d,rolePlaceholder:c,emailLabel:m,emailHint:u,quoteLabel:x,quotePlaceholder:p,consentText:h,anotherLabel:b,successTitle:g,successBody:f,note:y,dark:w}){let j=(0,n.useId)(),[v,N]=(0,n.useState)("idle"),[k,C]=(0,n.useState)({}),[$,S]=(0,n.useState)(null),T=(0,r.cn)("w-full rounded-[6px] border px-3.5 py-2.5 text-[15px] leading-normal transition-colors duration-150 outline-none",w?"border-white/20 bg-white/[0.06] text-white placeholder:text-white/40 focus:border-gold":"border-rule bg-paper text-ink placeholder:text-ink-muted/60 focus:border-navy"),P=(0,r.cn)("mb-1.5 block text-[13px] font-semibold",w?"text-white/80":"text-navy");async function D(e){e.preventDefault();let t=e.currentTarget,n=new FormData(t),l={name:String(n.get("name")??"").trim(),role:String(n.get("role")??"").trim(),email:String(n.get("email")??"").trim(),quote:String(n.get("quote")??"").trim(),consent:"on"===n.get("consent"),company:String(n.get("company")??""),sourcePath:window.location.pathname},a={};if(l.name||(a.name="Please tell us your name"),/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(l.email)||(a.email="Enter a valid email address"),l.quote.length<20&&(a.quote="Please write a little more so the remark can stand on its own"),l.consent||(a.consent="Please confirm we may review your remark"),C(a),Object.keys(a).length>0)return void t.querySelector(`[name="${Object.keys(a)[0]}"]`)?.focus();N("sending"),S(null);try{let e=await fetch(`${i.siteConfig.apiUrl}/cms/testimonials`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(429===e.status){S("Several remarks have already been sent from this connection. Please try again later."),N("error");return}if(!e.ok){let t=await e.json().catch(()=>null),n=Array.isArray(t?.message)?t.message[0]:t?.message;S(n||"Your testimonial could not be sent."),N("error");return}t.reset(),N("sent")}catch{S("Your testimonial could not be sent. Please check your connection and try again."),N("error")}}return"sent"===v?(0,t.jsxs)("div",{role:"status",className:(0,r.cn)("rounded-card border p-8 text-center",w?"border-white/14 bg-white/[0.04]":"border-rule bg-paper"),children:[(0,t.jsx)(l.CheckCircle2,{size:30,strokeWidth:1.6,"aria-hidden":"true",className:(0,r.cn)("mx-auto mb-4",w?"text-gold":"text-clinical")}),(0,t.jsx)("h3",{className:(0,r.cn)("text-[1.15rem] font-semibold",w?"text-white":"text-navy"),children:g}),(0,t.jsx)("p",{className:(0,r.cn)("mx-auto mt-2 max-w-[46ch] text-[15px] leading-relaxed",w?"text-white/70":"text-ink-muted"),children:f}),(0,t.jsx)("button",{type:"button",onClick:()=>N("idle"),className:(0,r.cn)("mt-6 text-[13.5px] font-semibold underline underline-offset-4",w?"text-gold":"text-maroon"),children:b})]}):(0,t.jsxs)("form",{onSubmit:D,noValidate:!0,className:"space-y-4",children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(o,{id:`${j}-name`,label:s,error:k.name,labelClass:P,dark:w,children:(0,t.jsx)("input",{id:`${j}-name`,name:"name",type:"text",autoComplete:"name",required:!0,maxLength:150,className:(0,r.cn)(T,k.name&&"border-maroon"),"aria-invalid":!!k.name})}),(0,t.jsx)(o,{id:`${j}-role`,label:d,labelClass:P,dark:w,children:(0,t.jsx)("input",{id:`${j}-role`,name:"role",type:"text",autoComplete:"organization-title",maxLength:160,placeholder:c,className:T})}),(0,t.jsx)(o,{id:`${j}-email`,label:m,hint:u,error:k.email,labelClass:P,dark:w,children:(0,t.jsx)("input",{id:`${j}-email`,name:"email",type:"email",autoComplete:"email",required:!0,maxLength:190,className:(0,r.cn)(T,k.email&&"border-maroon"),"aria-invalid":!!k.email})})]}),(0,t.jsx)(o,{id:`${j}-quote`,label:x,error:k.quote,labelClass:P,dark:w,children:(0,t.jsx)("textarea",{id:`${j}-quote`,name:"quote",rows:6,required:!0,minLength:20,maxLength:1200,placeholder:p,className:(0,r.cn)(T,"resize-y",k.quote&&"border-maroon"),"aria-invalid":!!k.quote})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:(0,r.cn)("flex items-start gap-3 text-[13.5px] leading-snug",w?"text-white/75":"text-ink"),children:[(0,t.jsx)("input",{id:`${j}-consent`,name:"consent",type:"checkbox",className:"mt-0.5 h-4 w-4 shrink-0 rounded border-rule text-maroon focus:ring-maroon","aria-invalid":!!k.consent}),(0,t.jsx)("span",{children:h})]}),k.consent?(0,t.jsx)("p",{className:(0,r.cn)("mt-1.5 text-[12.5px]",w?"text-gold":"text-maroon"),children:k.consent}):null]}),(0,t.jsxs)("div",{"aria-hidden":"true",className:"absolute left-[-9999px] h-px w-px overflow-hidden",children:[(0,t.jsx)("label",{htmlFor:`${j}-company`,children:"Company"}),(0,t.jsx)("input",{id:`${j}-company`,name:"company",type:"text",tabIndex:-1,autoComplete:"off"})]}),$?(0,t.jsx)("p",{role:"alert",className:(0,r.cn)("rounded-[6px] border border-maroon/30 bg-callout-red px-4 py-3 text-[14px] text-maroon-deep",w&&"border-white/20 bg-white/[0.06] text-white"),children:$}):null,(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-4 pt-1",children:[(0,t.jsx)(a.Button,{type:"submit",disabled:"sending"===v,variant:w?"on-dark":"primary",size:"lg",className:"sending"===v?"opacity-70":void 0,children:"sending"===v?"Sending…":e}),y?(0,t.jsx)("p",{className:(0,r.cn)("text-[13px]",w?"text-white/55":"text-ink-muted"),children:y}):null]})]})}function o({id:e,label:n,hint:l,error:a,labelClass:i,dark:s,children:o}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:e,className:i,children:n}),o,l&&!a?(0,t.jsx)("p",{className:(0,r.cn)("mt-1.5 text-[12.5px]",s?"text-white/50":"text-ink-muted"),children:l}):null,a?(0,t.jsx)("p",{className:(0,r.cn)("mt-1.5 text-[12.5px]",s?"text-gold":"text-maroon"),children:a}):null]})}e.s(["TestimonialForm",()=>s])}]);

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.