PageSourceSearch

https://awscommunity.hk/assets/sessions-BVbFeJhB.js

js awscommunity.hk collected 2026-10-02 11:11:44 UTC 13,039 bytes, 1 lines download raw bytes

1import{r as d,j as e,t as f,a as p}from"./index-iTg9ABon.js";import{M as S,C as v}from"./cube-grid-BaCarca4.js";import{c as x}from"./index-DFUPT9Yl.js";import{a as g,b as h,S as z,A as _}from"./session-level-badge-BsVPPaip.js";import{v as j}from"./is-svg-element-Btb7zpK4.js";import{c as b}from"./createLucideIcon-DI6ehJiv.js";import{X as k}from"./x-CRxz22vG.js";import{B as C}from"./button-7N4us-UI.js";import{S as L}from"./separator-BRo2lUaY.js";import{m as I}from"./proxy-COfOTSSQ.js";import"./index-DYk5xpoX.js";import"./index-BdJIl37p.js";const E=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],P=b("layout-grid",E);const M=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],R=b("list",M);const D=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],$=b("search",D),A="/images/speaker-placeholder.png";function u({src:s,alt:o,className:i}){const[t,l]=d.useState(!1),[r,a]=d.useState(!1);return e.jsxs("div",{className:x("relative shrink-0 overflow-hidden bg-muted",i),children:[!t&&e.jsx("div",{"aria-hidden":"true",className:"absolute inset-0 animate-pulse bg-muted"}),e.jsx("img",{src:!s||r?A:s,alt:o,loading:"lazy",onLoad:()=>l(!0),onError:()=>{a(!0),l(!0)},className:x("size-full object-cover transition-opacity duration-300",t?"opacity-100":"opacity-0")})]})}function O({session:s,onClick:o}){const{topic:i,language:t,level:l,speaker:r}=s;if(!r)return null;const a=r.coSpeakers||[];return e.jsxs("div",{role:"button",tabIndex:0,onClick:o,onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&o?.()},className:"group flex cursor-pointer flex-col border-b border-r border-border p-6 transition-colors hover:bg-card/40",children:[e.jsxs("div",{className:"relative flex w-full max-w-32",children:[e.jsx(u,{src:r.profilePicture,alt:r.name,className:"aspect-square flex-1"}),a.length>0&&e.jsx("div",{className:"absolute -right-3 -bottom-3 border-3 gap-[3px] bg-background border-background group-hover:border-card/40 flex justify-end w-max",children:a.map(n=>e.jsx(u,{src:n.profilePicture,alt:n.name,className:"size-10 md:size-12"}))})]}),e.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-2",children:[e.jsx(g,{language:t??void 0}),e.jsx(h,{level:l})]}),e.jsx("h3",{className:"mt-3 grow font-outfit text-lg font-bold uppercase leading-tight text-foreground line-clamp-3",children:i}),e.jsxs("div",{className:"mt-4 flex items-center gap-2",children:[e.jsxs("div",{className:"flex min-w-0 flex-col",children:[e.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[e.jsx("span",{className:"truncate font-outfit text-sm font-bold uppercase text-foreground",children:r.name}),a.length>0&&e.jsxs("span",{title:`+${a.length} more speaker${a.length>1?"s":""}`,className:"inline-flex size-4 shrink-0 items-center justify-center bg-primary text-[10px] font-bold text-white",children:["+",a.length]})]}),e.jsx("span",{className:"truncate text-xs text-muted-foreground",children:r.tagLine})]}),r.linkedin&&e.jsx("a",{href:r.linkedin,target:"_blank",rel:"noopener noreferrer",onClick:n=>{n.stopPropagation(),f("speaker_profile_click",{platform:"linkedin",entry_surface:"session_card"})},"aria-label":`${r.name} LinkedIn`,className:"ml-auto shrink-0 text-muted-foreground transition-colors hover:text-primary",children:e.jsx(j,{className:"size-4 *:fill-current"})})]})]})}function T({session:s,onClick:o}){const{topic:i,language:t,level:l,speaker:r}=s;if(!r)return null;const a=r.coSpeakers||[];return e.jsxs("div",{role:"button",tabIndex:0,onClick:o,onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&o?.()},className:"relative group flex cursor-pointer items-center gap-4 border-b border-border p-4 transition-colors hover:bg-card/40 md:p-6",children:[e.jsxs("div",{className:"flex shrink-0",children:[e.jsx(u,{src:r.profilePicture,alt:r.name,className:"size-14 md:size-16"}),a.length>0&&e.jsx("div",{className:"flex flex-col",children:a.map(n=>e.jsx(u,{src:n.profilePicture,alt:n.name,className:"size-7 border-l border-border md:size-8"}))})]}),e.jsxs("div",{className:"min-w-0 grow",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(g,{language:t??void 0}),e.jsx(h,{level:l})]}),e.jsx("h3",{className:"mt-1 font-outfit text-base font-bold uppercase leading-tight text-foreground md:text-lg",children:i}),e.jsxs("span",{className:"mt-1 block truncate text-sm text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex items-center gap-1 align-middle",children:[r.name,a.length>0&&e.jsxs("span",{title:`+${a.length} more speaker${a.length>
11?"s":""}`,className:"inline-flex size-4 shrink-0 items-center justify-center bg-primary text-[10px] font-bold text-white",children:["+",a.length]})]})," ","— ",r.tagLine]})]}),r.linkedin&&e.jsx("a",{href:r.linkedin,target:"_blank",rel:"noopener noreferrer",onClick:n=>{n.stopPropagation(),f("speaker_profile_click",{platform:"linkedin",entry_surface:"session_list"})},"aria-label":`${r.name} LinkedIn`,className:"ml-auto shrink-0 text-muted-foreground transition-colors hover:text-primary",children:e.jsx(j,{className:"size-4 *:fill-current"})})]})}const N=["1286643","1289338"],y=[...z].sort((s,o)=>{const i=N.indexOf(s.id),t=N.indexOf(o.id);return i===-1&&t===-1?0:i===-1?1:t===-1?-1:i-t});function q(s,o){const i=s.speaker?[s.speaker.name,...(s.speaker.coSpeakers||[]).map(l=>l.name)]:[];return[s.topic,...i].join(" ").toLowerCase().includes(o)}function B({ref:s,sectionId:o,onSessionClick:i}){const{t}=p(),[l,r]=d.useState("card"),[a,n]=d.useState(""),m=d.useMemo(()=>{const c=a.trim().toLowerCase();return c?y.filter(w=>q(w,c)):y},[a]);return e.jsxs("section",{ref:s,id:o,className:"relative flex w-full flex-col divide-y border-b",children:[e.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 p-6 text-center md:p-8",children:[e.jsx("img",{src:"/assets/aws-community-day/aws-cd-cube.svg",alt:"AWS Community Day Element",className:"mb-2 h-auto w-8"}),e.jsxs(S,{className:"font-outfit font-bold uppercase leading-tight text-foreground",children:[t("general2026.agenda.title"),e.jsx("span",{className:"ml-1 inline-flex h-3 w-4 bg-primary"})]}),e.jsx("p",{className:"max-w-2xl text-lg text-muted-foreground",children:t("general2026.agenda.description")}),e.jsx("p",{className:"max-w-2xl text-sm text-muted-foreground/75",children:t("general2026.agenda.timetableComingSoon")})]}),e.jsxs("div",{className:"relative flex items-center",children:[e.jsx($,{className:"pointer-events-none absolute left-6 size-4 text-muted-foreground"}),e.jsx("input",{type:"search",value:a,onChange:c=>n(c.target.value),placeholder:t("general2026.agenda.searchPlaceholder"),"aria-label":t("general2026.agenda.searchPlaceholder"),className:"w-full bg-transparent py-3 pl-14 pr-12 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none md:py-4 md:px-14"}),a&&e.jsx("button",{type:"button",onClick:()=>n(""),"aria-label":t("general2026.agenda.clearSearch"),className:"absolute right-6 text-muted-foreground transition-colors hover:text-foreground",children:e.jsx(k,{className:"size-4"})})]}),e.jsxs("div",{className:"flex items-center justify-between p-3 md:px-6",children:[e.jsx("span",{"aria-live":"polite",className:"text-sm tabular-nums text-muted-foreground",children:t("general2026.agenda.resultCount",{count:m.length})}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("button",{type:"button",onClick:()=>r("card"),"aria-label":t("general2026.agenda.cardView"),"aria-pressed":l==="card",className:x("flex size-9 items-center justify-center border transition-colors",l==="card"?"bg-primary/25 text-foreground":"text-muted-foreground hover:bg-primary/10 hover:text-foreground"),children:e.jsx(P,{className:"size-5"})}),e.jsx("button",{type:"button",onClick:()=>r("list"),"aria-label":t("general2026.agenda.listView"),"aria-pressed":l==="list",className:x("flex size-9 items-center justify-center border border-l-0 transition-colors",l==="list"?"bg-primary/25 text-foreground":"text-muted-foreground hover:bg-primary/10 hover:text-foreground"),children:e.jsx(R,{className:"size-5"})})]})]}),m.length===0?e.jsx("div",{className:"flex flex-col items-center justify-center gap-2 p-12 text-center text-muted-foreground",children:e.jsx("span",{children:t("general2026.agenda.noResults")})}):l==="card"?e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3",children:m.map(c=>e.jsx(O,{session:c,onClick:()=>i(c)},c.id))}):e.jsx("div",{className:"flex flex-col",children:m.map(c=>e.jsx(T,{session:c,onClick:()=>i(c)},c.id))})]})}function F({session:s,onClose:o}){const{t:i}=p(),{speaker:t,topic:l,description:r,language:a,level:n}=s,m=d.useMemo(()=>t?[t,...t.coSpeakers||[]]:[],[t]);return!t||!l?null:e.jsxs(I.div,{initial:{translateY:"50%",opacity:0,filter:"blur(0px)"}
1,animate:{translateY:0,opacity:1,transition:{duration:.3,ease:"easeInOut"}},exit:{translateY:"50%",opacity:0,filter:"blur(10px)",transition:{duration:.3,ease:"easeInOut"}},className:"relative size-full max-w-3xl w-full h-[80vh] mx-auto",children:[e.jsx(C,{className:"absolute top-2 right-2 z-20 text-slate-500/50",variant:"ghost",size:"icon",onClick:()=>o?.(),children:e.jsx(k,{})}),e.jsx("div",{className:"z-10 relative size-full flex flex-col items-center justify-start bg-background border border-border overflow-hidden pt-6 pb-3",children:e.jsxs("div",{className:"size-full flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"w-full px-6 flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("img",{src:"/assets/aws-community-day/aws-cd-cube-frame.png",alt:"AWS Community Day Element",className:"w-4 h-auto"}),e.jsx("span",{className:"text-sm font-light text-card-foreground/75 uppercase",children:i("general2026.agenda.talk")}),a&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-card-foreground/25 text-xs",children:"|"}),e.jsx(g,{language:a})]})]}),e.jsx("h2",{className:"text-base md:text-xl font-bold leading-none font-outfit",children:l}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(h,{level:n})})]}),e.jsx("div",{className:"w-full h-1 mt-3 bg-linear-30 from-purple-700 via-pink-500 to-yellow-500"}),e.jsx("div",{className:"p-6 w-full overflow-auto max-h-full",children:e.jsx("p",{className:"text-foreground whitespace-pre-line text-sm",children:r})}),e.jsx(L,{className:"mt-auto mb-3"}),e.jsx("div",{className:"px-6 flex flex-col gap-3",children:m.map(c=>e.jsx(K,{speaker:c},c.id))})]})})]},"session-detail-dialog")}const K=({speaker:s})=>s?e.jsxs("div",{className:"w-full flex items-center gap-2",children:[e.jsx(u,{src:s.profilePicture,alt:s.name||"Speaker",className:"size-10 md:size-14 border border-border/25"}),e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs sm:text-sm md:text-xl font-normal border-b-2 w-max mb-2 border-primary",children:s.name}),s.linkedin&&e.jsx("a",{href:s.linkedin,target:"_blank",rel:"noopener noreferrer",onClick:()=>f("speaker_profile_click",{platform:"linkedin",entry_surface:"session_dialog"}),"aria-label":`${s.name} LinkedIn`,className:"cursor-pointer flex items-center justify-center size-max aspect-square text-slate-500 hover:text-foreground",children:e.jsx(j,{className:"size-4 md:size-5 *:fill-current"})})]}),e.jsx("span",{className:"text-xs font-light text-card-foreground/75 inline-flex flex-wrap line-clamp-2",children:s.tagLine})]})]}):null,re=function(){const{t:o}=p(),i=d.useRef(null),[t,l]=d.useState(null),r=n=>{n.target===n.currentTarget&&l(null)},a=[{label:o("general2026.agenda.title"),id:"#agenda",ref:i}];return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:x(t?"pointer-events-auto bg-slate-500/25 backdrop-blur-xs":"pointer-events-none backdrop-blur-none","fixed inset-0 z-[9999] transition-all duration-1000 py-[10vh] px-6"),onClick:r,children:e.jsx(_,{children:t?.topic&&e.jsx(F,{session:t,onClose:()=>l(null)})})}),e.jsxs("div",{className:"w-full mx-auto flex border-t border-border",children:[e.jsx("div",{className:"hidden md:block flex-1 theme-grid bg-top-right",children:e.jsx(v,{origin:"top-right"})}),e.jsx("div",{className:"relative max-w-7xl w-full mx-auto flex flex-col md:flex-row",children:e.jsx("main",{className:"*:not-last:border-b *:not-last:border-border *:py-32 md:*:py-30  border-x-0 md:border-x h-max relative min-h-[calc(max(100svh,640px))] w-full flex flex-col items-center overflow-hidden shadow-[0_-10px_10px_#33333305]",children:e.jsx(B,{ref:i,sectionId:a[0].id,onSessionClick:l})})}),e.jsx("div",{className:"hidden md:block flex-1 theme-grid",children:e.jsx(v,{origin:"top-left"})})]})]})};export{re as component};

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.