PageSourceSearch

https://laravel.com/build/assets/page-OKhGlltb.js

js laravel.com collected 2026-09-24 08:24:18 UTC 12,690 bytes, 2 lines download raw bytes

1import{u as m,r,a as L,j as e}from"./inertia-Dfj01zwH.js";import{a as y,y as D,D as E}from"./default-layout-CmMk04BW.js";import{c as d,L as p,P as z}from"./cn-C_8-Aw06.js";import{S as F}from"./ship-cta-osT4OZun.js";import{C as I}from"./cloud-dots-background-CFYYmsq8.js";import{d as x,P as j,a as b,b as P}from"./page-section-CDuYki2l.js";import{M as _}from"./magnifying-glass-BJ26P8sE.js";import{M}from"./map-pin-DBrBgv7A.js";import{C as R}from"./cloud-event-registration-modal-Dw843Xn7.js";import{A as T}from"./arrow-up-right-CaQQ3t_9.js";import{a as B,o as O}from"./luma-button-BsJRPi_N.js";import{a as w}from"./grid-filler-Bjv702r1.js";import{I as N}from"./grid-section-CckLEWve.js";import"./index-BVvBGSus.js";import"./default-favicon-BfU9MQjQ.js";import"./form-consent-BEoM_t2W.js";import"./page-width-wrapper-CjffrsuA.js";import"./input-DcfT5lgA.js";import"./format-GWuU7U9n.js";const k=r.createContext(null);function A({children:t}){const{filters:s}=m().props,[a,o]=r.useState(s.search),[i,u]=r.useState(s.virtual??void 0),[n,g]=r.useState(!1),h=r.useRef(!0),S=r.useCallback(l=>{const c={},f=l.search??a,v=l.virtual??i;f&&(c.search=f),v!==void 0&&(c.virtual=v.toString()),l.page&&l.page>1&&(c.page=l.page),L.get("/cloud/events",c,{preserveState:!0,preserveScroll:!0,replace:!0,only:["pastEvents","filters"],onStart:()=>g(!0),onFinish:()=>g(!1)})},[a,i]);return r.useEffect(()=>{if(h.current){h.current=!1;return}const l=setTimeout(()=>S({search:a,virtual:i}),300);return()=>clearTimeout(l)},[a,i]),e.jsx(k.Provider,{value:{search:a,setSearch:o,virtual:i,setVirtual:u,isLoading:n},children:t})}function C(){const t=r.useContext(k);if(!t)throw new Error("useFilters must be used within a FilterProvider");return t}function Z({className:t}){const{search:s,setSearch:a,virtual:o,setVirtual:i}=C();return e.jsx("div",{className:d("relative",t),children:e.jsx("div",{className:"relative flex items-end justify-between gap-5 sm:gap-8",children:e.jsx(V,{value:s,onChange:a})})})}function V({value:t,onChange:s}){return e.jsx("div",{className:"relative shrink-0 grow",children:e.jsxs("div",{className:"flex w-full items-center gap-1.5 text-neutral-500",children:[e.jsx(_,{className:"size-4 shrink-0 -translate-y-px"}),e.jsx("input",{type:"text","aria-label":"Search events",placeholder:"Search all Cloud events",size:1,className:"w-full grow border-0 border-b border-transparent bg-transparent pr-0 font-sans text-base leading-loose font-medium text-neutral-900 placeholder-neutral-500 transition-colors outline-none focus:text-neutral-900 focus:ring-transparent sm:text-sm",value:t,onChange:a=>s(a.target.value)})]})})}function G(t){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M15.5 9.875L21.25 7V17L15.5 14.125M2.75 4.75H15.25V19.25H2.75V4.75Z",stroke:"currentColor",strokeWidth:1.5})})}function U({event:t}){if(!t)return null;const[s,a]=r.useState(!1),o=t.type==="webinar"||t.virtual?G:M,i=!!t.lumaEventId,u=t.registerButtonText||(t.type==="webinar"?"Register for live session":"Register for event");return e.jsxs(e.Fragment,{children:[i&&e.jsx(B,{}),e.jsxs(p,{href:`/cloud/events/${t.slug}`,className:"block bg-white font-medium",children:[e.jsx("div",{className:"relative aspect-video w-full overflow-hidden border-b border-cloud-grid bg-neutral-50",children:t.thumbnail&&e.jsx("img",{src:t.thumbnail,alt:"",className:"size-full object-cover"})}),e.jsxs("div",{className:"grid grid-cols-1 gap-6 py-8 pr-(--cloud-content-padding-r) pl-(--cloud-content-padding) lg:grid-cols-3 lg:py-10 xl:gap-x-12",children:[e.jsxs("div",{className:"flex flex-col lg:col-span-2",children:[e.jsx("span",{className:"text-2xl/[1.36] font-medium text-strong",children:t.title}),e.jsx("p",{className:"mt-4 max-w-[600px] text-base/[1.6] text-pretty text-slate-light-11",children:t.description})]}),e.jsxs("div",{className:"flex flex-col lg:items-end",children:[e.jsxs("div",{className:"flex items-end gap-3 text-sm/[1.5] font-medium text-slate-light-12 lg:flex-col",children:[e.jsx("span",{children:new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric",timeZone:t.timezone??void 0}).format(new Date(t.date))}),e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(o,{className:"size-5 text-slate-light-10"}),t.location||"Online"]})]}),new Date(t.date)>new Date?e.jsxs("div",{role:"button",...i?{"data-luma-action":"checkout","data-luma-event-id":t.lumaEventId}:{},onClick:n=>{n.preventDefault(),i?O(n.currentTarget):a(!0)},className:"group relative mt-6 flex h-10 w-full max-w-80 items-center gap-2 overflow-hidden rounded-md border border-black bg-black px-5 drop-shadow-sm transition-colors duration-100 ease-out hover:bg-slate-light-12",children:[e.jsx("div",{className:"absolute inset-0 rounded-md bg-gradient-to-b from-[#161640] shadow-[inset_0_2px_2px_#fff2]"}),e.jsx("span",{className:"relative text-sm font-medium text-white",children:u})]}):t.watchUrl?e.jsxs("div",{role:"button",onClick:n=>{n.preventDefault(),window.open(t.watchUrl,"_blank")},className:"group relative mt-6 flex h-10 w-full max-w-80 items-center gap-2 overflow-hidden rounded-md border border-black bg-black px-5 drop-shadow-sm transition-colors duration-100 ease-out hover:bg-slate-light-12",children:[e.jsx("div",{className:"absolute inset-0 rounded-md bg-gradient-to-b from-[#161640] shadow-[inset_0_2px_2px_#fff2]"}),e.jsx("span",{className:"relative text-sm font-medium text-white",children:"Watch recording"}),e.jsx(T,{className:"relative size-3.5 -translate-x-px translate-y-
1px text-white opacity-0 transition-[opacity,translate] duration-100 ease-out group-hover:translate-x-0 group-hover:translate-y-0 group-hover:opacity-100"})]}):null]})]})]}),e.jsx(R,{open:s,onClose:()=>a(!1),event:t,successMessage:void 0})]})}function W(){const{pastEvents:t}=m().props,{isLoading:s}=C();return t.data.length?e.jsxs("div",{className:d("grid grid-cols-1 gap-px bg-cloud-grid transition-opacity duration-150 ease-out md:grid-cols-2 lg:grid-cols-3",s&&"opacity-50"),children:[t.data.map(a=>e.jsx(Y,{event:a},a.id)),e.jsx(w,{cols:3,items:t.data.length,className:"hidden bg-white lg:block"}),e.jsx(w,{cols:2,items:t.data.length,className:"hidden bg-white md:block lg:hidden"})]}):e.jsx("p",{className:d("flex min-h-[320px] items-center justify-center bg-slate-light-1 py-10 text-center text-sm font-medium text-slate-light-11 transition-opacity duration-150 ease-out",s&&"opacity-50"),children:"No events found"})}function Y({event:t}){const s=new Date(t.date);return e.jsxs(p,{href:`/cloud/events/${t.slug}`,className:"group relative flex h-full flex-col overflow-hidden bg-white font-medium",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden bg-slate-light-1 opacity-0 transition-opacity duration-100 ease-out group-hover:opacity-100",children:[e.jsx(y,{maxWidth:428,className:"mask-t-from-0% mask-t-to-50% mask-r-from-80% opacity-15 [--bg:var(--color-slate-light-1)] [--play-state:paused] group-hover:[--play-state:running]"}),e.jsx(D,{gapSize:8,dotSize:1.5,patternOffset:[-2,-2],className:"text-slate-light-1"})]}),e.jsx("div",{className:"relative aspect-video w-full bg-neutral-50",children:e.jsx("img",{src:t.thumbnail||(t.virtual||t.type==="webinar"?"/images/cloud/events/virtual-thumbnail.webp":"/images/cloud/events/in-person-thumbnail.webp"),loading:"lazy",alt:"",className:"size-full object-cover"})}),e.jsxs("div",{className:"relative flex grow flex-col gap-4 py-8 pr-(--cloud-content-padding-r) pl-(--cloud-content-padding) lg:py-12",children:[e.jsxs("span",{className:"text-sm/[1.2] text-slate-light-11",children:[new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:s.getFullYear()!==new Date().getFullYear()||s<new Date?"numeric":void 0,...s>new Date?{hour:"numeric",minute:"2-digit",timeZoneName:t.timezoneAbbr?void 0:"shortGeneric"}:{},timeZone:t.timezone??void 0}).format(s),!!t.timezoneAbbr&&` ${t.timezoneAbbr}`,e.jsx("span",{className:"mx-1",children:"•"}),t.virtual||t.type==="webinar"?"Online":t.location||"In-person"]}),e.jsx("span",{className:"line-clamp-2 text-lg/[1.5] tracking-heading text-strong",children:t.title}),e.jsx("div",{className:"flex grow flex-col justify-end",children:e.jsx("p",{className:"line-clamp-2 text-base/[1.5] text-slate-light-11",children:t.description})})]})]})}function $(){const{upcomingEvents:t}=m().props;return t.data.length?e.jsx("div",{className:"grid grid-cols-[min-content_minmax(0,1fr)] divide-y divide-cloud-grid",children:t.data.map(s=>{const a=new Date(s.date);return e.jsxs(p,{href:`/cloud/events/${s.slug}`,className:"group relative col-span-2 grid grid-cols-subgrid items-center gap-x-4 px-6 py-5 font-medium text-default hover:bg-neutral-50 sm:gap-x-8",children:[e.jsxs("span",{className:"flex flex-col items-center whitespace-nowrap",children:[e.jsx("span",{className:"text-sm/[1.2] font-medium tracking-[-2%] text-slate-light-11 uppercase",children:new Intl.DateTimeFormat(void 0,{month:"short",year:a.getFullYear()!==new Date().getFullYear()?"numeric":void 0,timeZone:s.timezone??void 0}).format(a)}),e.jsx("span",{className:"text-2xl/[1] font-semibold tracking-[-1%] text-strong",children:new Intl.DateTimeFormat(void 0,{day:"2-digit",timeZone:s.timezone??void 0}).format(a)})]}),e.jsxs("div",{className:"flex items-center justify-between gap-6",children:[e.jsxs("div",{className:"flex min-w-0 grow flex-col gap-2.5",children:[e.jsx("h3",{className:"min-w-0 truncate text-base/[1.2] text-strong sm:text-xl/[1.2]",children:s.title}),e.jsx("p",{className:"min-w-0 truncate text-sm/[1.2] text-default",children:s.description})]}),e.jsxs("div",{className:"hidden shrink-0 flex-col gap-3 whitespace-nowrap xs:flex",children:[e.jsx("span",{className:"inline-block text-right text-sm/[1.2] whitespace-nowrap text-strong",children:s.virtual||s.type==="webinar"?"Online":"In-person"}),e.jsx("span",{className:"inline-block text-right text-sm/[1.2] whitespace-nowrap text-default",children:s.virtual||s.type==="webinar"?"Live session":s.location})]}),e.jsx("div",{className:"ml-8 hidden shrink-0 flex-col gap-3 whitespace-nowrap xl:flex",children:e.jsx("div",{className:"flex h-10 items-center justify-center rounded-md bg-black px-5 text-base text-slate-light-1 text-white",children:"Learn more"})})]})]},s.id)})}):e.jsx("p",{className:"flex items-center justify-center bg-slate-light-1 py-10 text-center text-sm font-medium text-slate-light-11",children:"No upcoming events. Check back soon."})}function H(){const{featuredEvent:t}=m().props;return e.jsxs(e.Fragment,{children:[e.jsx(z,{title:"Laravel Cloud Events",description:"Register for upcoming Laravel Cloud events. Explore live demos, product deep-dives, and user stories to get more from Laravel Cloud.",ogImage:"/images/cloud/og/events.png",canonical:"cloud/events"}),e.jsxs("main",{className:"relative z-0",children:[e.jsxs("div",{className:"relative",children:[e.jsx(I,{className:"inset-y-1"}),e.jsx("div",{className:"relative mx-auto max-w-screen-xl pt-15 pb-16 lg:pt-[120px]",children:e.jsxs("div",{className:"px-(--cloud-content-padding)",children:[e.jsx("h1",{className:"max-w-[720px] text-4xl/[1.2] font-medium tracking-heading text-neutral-900 sm:text-[40px]/[1.2]",children:"Events"}),e.jsx("p",{className:"mt-5 max-w-[560px] text-base leading-normal font-medium text-pretty text-default sm:text-lg",children:"Register for upcoming Laravel Cloud events. Explore live demos, product deep-dives, and customer success stories to get more from Laravel Cloud."})]})})]}),e.jsx("div",{className:"pointer-events-none absolute -top-16 left-0 h-[400px] w-full overflow-hidden",children:e.jsx("div",{className:d("absolute left-1/2 size-full max-w-screen-xl -translate-x-1/2","mask-r-from-90% mask-b-from-60% mask-l-from-10%"),"aria-hidden":!0,
1children:e.jsx(y,{})})}),t&&e.jsx(x,{spacing:{bottom:"lg"},children:e.jsx(U,{event:t})}),e.jsxs(x,{children:[e.jsx(j,{children:e.jsx(b,{className:"max-w-[840px]",children:"Coming up"})}),e.jsx(N,{children:e.jsx($,{})})]}),e.jsx(A,{children:e.jsxs(x,{spacing:{top:"md",bottom:"lg"},children:[e.jsxs(j,{className:"border-b-0",children:[e.jsx(b,{children:"Watch on demand"}),e.jsx(P,{className:"max-w-[500px]",children:"Product demos, technical sessions, migration guidance, and customer stories from teams running Laravel Cloud."})]}),e.jsx("div",{className:"sticky top-[63px] z-10 bg-white/80 px-(--cloud-content-padding) shadow-[0_1px_0_0_var(--color-cloud-grid)] backdrop-blur-sm max-sm:pr-4",children:e.jsx(Z,{})}),e.jsx(N,{contentClassName:"h-10",edges:["bottom"]}),e.jsx(W,{})]})}),e.jsx(F,{variant:"grid"})]})]})}H.layout=t=>e.jsx(E,{variant:"cloud",children:t});export{H as default};
2//# sourceMappingURL=page-OKhGlltb.js.map

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.