PageSourceSearch

https://concoursmontreal.ca/_next/static/chunks/3xgk4wc49e6vv.js?dpl=dpl_J6P9XZ5uzq4YfPg1QVac16bGu4dX

js concoursmontreal.ca collected 2026-10-02 10:16:43 UTC 15,634 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31171,e=>{"use strict";var t=e.i(80542),r=e.i(56904),s=e.i(71701),i=e.i(47163),a=e.i(89206);e.s(["default",0,function({bloc:e,className:n}){return(0,t.jsxs)("section",{id:e.id.toString(),className:(0,i.cn)("flex flex-col items-center gap-8 clamp-[px,4,8]",n),children:[e.title&&(0,t.jsx)("div",{className:"clamp-[text,lg,2xl]",dangerouslySetInnerHTML:{__html:e.title}}),e.texteRiche&&(0,t.jsx)("div",{className:"w-full text-center font-epicene clamp-[text,2xl,6xl] font-light text-balance md:max-w-[35ch] [&_p]:not-last:mb-[1em]",dangerouslySetInnerHTML:{__html:e.texteRiche}}),e.lien&&(0,t.jsx)("div",{children:(0,t.jsx)(r.Link,{href:e.lien.url??"#",target:e.lien.target??void 0,download:e.lien.download,onClick:()=>a.default.capture("cta_clicked",{cta_label:e.lien?.title,destination_type:e.lien?.download?"download":e.lien?.url?.startsWith("http")?"external":"internal"}),className:"group flex items-center overflow-hidden rounded bg-current/10 px-4 py-2 whitespace-nowrap text-current",children:(0,t.jsx)(s.default,{title:e.lien.title})})})]})}])},94237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=t.clsx;e.s(["cva",0,(e,t)=>i=>{var a;if((null==t?void 0:t.variants)==null)return s(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:n,defaultVariants:l}=t,u=Object.keys(n).map(e=>{let t=null==i?void 0:i[e],s=null==l?void 0:l[e];if(null===t)return null;let a=r(t)||r(s);return n[e][a]}),o=i&&Object.entries(i).reduce((e,t)=>{let[r,s]=t;return void 0===s||(e[r]=s),e},{});return s(e,u,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:r,className:s,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...o}[t]):({...l,...o})[t]===r})?[...e,r,s]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}])},55118,e=>{"use strict";var t=e.i(80542),r=e.i(56904),s=e.i(94237),i=e.i(47163),a=e.i(39852),n=e.i(80571);let l=(0,s.cva)("p-4 aspect-4/5 relative rounded overflow-hidden",{variants:{variant:{default:"bg-pink text-black",pink:"bg-pink text-black",red:"bg-red text-black",burgundy:"bg-burgundy text-red",plum:"bg-plum text-pink",gold:"bg-gold text-black",image:"text-white"}},defaultVariants:{variant:"default"}});e.s(["default",0,function({className:e,item:s,sizes:u="(max-width: 768px) 100vw, (max-width: 1280px) 33vw, 25vw"}){return(0,t.jsx)(r.Link,{href:s.uri??"#",target:s.lienExterne?"_blank":"_self",className:(0,i.cn)(e,"group"),children:(0,t.jsxs)("div",{className:l({variant:s.variant}),children:["image"===s.variant&&s.image&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute inset-0 z-10",style:{background:"linear-gradient(180deg, #000 10%, rgba(0, 0, 0, 0.10) 40%, rgba(0, 0, 0, 0.10) 80%, rgba(0, 0, 0, 0.60) 100%)"}}),(0,t.jsx)("figure",{className:"absolute inset-x-0 top-[10%] bottom-0 overflow-hidden",children:(0,t.jsx)(a.FocalImage,{image:s.image,sizes:u})})]}),(0,t.jsxs)("div",{className:"relative z-10 flex h-full flex-col items-start gap-8",children:[(0,t.jsx)("div",{className:"relative z-10 flex-1 overflow-hidden",children:(0,t.jsx)("h3",{className:"line-clamp-6 pb-[0.119em] font-epicene clamp-[text,xl,3xl] font-light text-balance",dangerouslySetInnerHTML:{__html:s.title}})}),s.date&&(0,t.jsx)("div",{className:"shrink-0 grow-0",children:(0,t.jsx)(n.HoverLabel,{className:"mt-2",html:s.date})})]})]})},s.id)}])},91133,94227,e=>{"use strict";let t;var r=e.i(79),s=e.i(2210),i=e.i(78660),a=e.i(85775),n=e.i(70752),l=e.i(24157),u=e.i(99065),o=e.i(53706),c=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,l.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#i=void 0;#a=void 0;#n;#l;#r;#t;#u;#o;#c;#h;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),h(this.#s,this.options)?this.#m():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#g(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.resolveQueryBoolean)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#s.setOptions(this.options),t._defaulted&&!(0,u.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&p(this.#s,r,this.options,t)&&this.#m(),this.updateResult(),s&&(this.#s!==r||(0,u.resolveQueryBoolean)(this.options.enabled,this.#s)!==(0,u.resolveQueryBoolean)(t.enabled,this.#s)||(0,u.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,u.resolveStaleTime)(t.staleTime,this.#s))&&this.#R();let i=this.#x();s&&(this.#s!==r||(0,u.resolveQueryBoolean)(this.options.enabled,this.#s)!==(0,u.resolveQueryBoolean)(t.enabled,this.#s)||i!==this.#p)&&this.#Q(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,u.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#a=i,this.#l=this.options,this.#n=this.#s.state),i}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#m(e){this.#b();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.noop)),t}#R(){this.#y();let e=(0,u.resolveStaleTime)(this.options.staleTime,this.#s);if(s.environmentManager.isServer()||this.#a.isStale||!(0,u.isValidTimeout)(e))return;let t=(0,u.timeUntilStale)(this.#a.dataUpdatedAt,e);this.#h=o.timeoutManager.setTimeout(()=>{this.#a.isStale||this.updateResult()},t+1)}#x(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#Q(e){this.#g(),this.#p=e,!s.environmentManager.isServer()&&!1!==(0,u.resolveQueryBoolean)(this.options.enabled,this.#s)&&(0,u.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#d=o.timeoutManager.setInterval(()=>
1{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#m()},this.#p))}#v(){this.#R(),this.#Q(this.#x())}#y(){void 0!==this.#h&&(o.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}#g(){void 0!==this.#d&&(o.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,s=this.#s,i=this.options,n=this.#a,o=this.#n,c=this.#l,d=e!==s?e.state:this.#i,{state:m}=e,v={...m},y=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&h(e,t),l=r&&p(e,s,t,i);(n||l)&&(v={...v,...(0,a.fetchState)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:g,errorUpdatedAt:b,status:R}=v;r=v.data;let x=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===R){let e;n?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=n.data,x=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(R="success",r=(0,u.replaceData)(n?.data,e,t),y=!0)}if(t.select&&void 0!==r&&!x)if(n&&r===o?.data&&t.select===this.#u)r=this.#o;else try{this.#u=t.select,r=t.select(r),r=(0,u.replaceData)(n?.data,r,t),this.#o=r,this.#t=null}catch(e){this.#t=e}this.#t&&(g=this.#t,r=this.#o,b=Date.now(),R="error");let Q="fetching"===v.fetchStatus,w="pending"===R,I="error"===R,O=w&&Q,T=void 0!==r,S={status:R,fetchStatus:v.fetchStatus,isPending:w,isSuccess:"success"===R,isError:I,isInitialLoading:O,isLoading:O,data:r,dataUpdatedAt:v.dataUpdatedAt,error:g,errorUpdatedAt:b,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:v.dataUpdateCount>d.dataUpdateCount||v.errorUpdateCount>d.errorUpdateCount,isFetching:Q,isRefetching:Q&&!w,isLoadingError:I&&!T,isPaused:"paused"===v.fetchStatus,isPlaceholderData:y,isRefetchError:I&&T,isStale:f(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,u.resolveQueryBoolean)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==S.data,r="error"===S.status&&!t,i=e=>{r?e.reject(S.error):t&&e.resolve(S.data)},a=()=>{i(this.#r=S.promise=(0,l.pendingThenable)())},n=this.#r;switch(n.status){case"pending":e.queryHash===s.queryHash&&i(n);break;case"fulfilled":(r||S.data!==n.value)&&a();break;case"rejected":r&&S.error===n.reason||a()}}return S}updateResult(){let e=this.#a,t=this.createResult(this.#s,this.options);if(this.#n=this.#s.state,this.#l=this.options,void 0!==this.#n.data&&(this.#c=this.#s),(0,u.shallowEqualObjects)(t,e))return;this.#a=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#a).some(t=>this.#a[t]!==e[t]&&s.has(t))};this.#w({listeners:r()})}#b(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#w(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#a)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,u.resolveQueryBoolean)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,u.resolveQueryBoolean)(t.retryOnMount,e))||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,u.resolveQueryBoolean)(t.enabled,e)&&"static"!==(0,u.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function p(e,t,r,s){return(e!==t||!1===(0,u.resolveQueryBoolean)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,u.resolveQueryBoolean)(t.enabled,e)&&e.isStaleByTime((0,u.resolveStaleTime)(t.staleTime,e))}var m=e.i(45470),v=class extends c{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}
1fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,s=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:n,isRefetchError:l}=s,u=r.fetchMeta?.fetchMore?.direction,o=n&&"forward"===u,c=i&&"forward"===u,h=n&&"backward"===u,d=i&&"backward"===u;return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,m.hasNextPage)(t,r.data),hasPreviousPage:(0,m.hasPreviousPage)(t,r.data),isFetchNextPageError:o,isFetchingNextPage:c,isFetchPreviousPageError:h,isFetchingPreviousPage:d,isRefetchError:l&&!o&&!h,isRefetching:a&&!c&&!d}}};e.i(76869);var y=e.i(79696),g=e.i(32106);e.i(80542);var b=y.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),R=y.createContext(!1);R.Provider;var x=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});async function Q(e,t){let r=await fetch(e,t),s=await r.text(),i=r.headers.get("content-type")??"unknown content type",a=(r.url||("string"==typeof e?e:e instanceof URL?e.href:e.url)).split("?")[0],n=s.replace(/\s+/g," ").trim().slice(0,200);try{return JSON.parse(s)}catch{throw Error(`Invalid JSON from ${a} (${r.status}, ${i})${n?`: ${n}`:""}`)}}e.s(["useInfiniteQuery",0,function(e,t){return function(e,t,r){let a,n=y.useContext(R),l=y.useContext(b),o=(0,g.useQueryClient)(r),c=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let h=o.getQueryCache().get(c.queryHash),d=!1!==e.subscribed;if(c._optimisticResults=n?"isRestoring":d?"optimistic":void 0,c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}a=h?.state.error&&"function"==typeof c.throwOnError?(0,u.shouldThrowError)(c.throwOnError,[h.state.error,h]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||a)&&!l.isReset()&&(c.retryOnMount=!1),y.useEffect(()=>{l.clearReset()},[l]);let p=!o.getQueryCache().get(c.queryHash),[f]=y.useState(()=>new t(o,c)),m=f.getOptimisticResult(c),v=!n&&d;if(y.useSyncExternalStore(y.useCallback(e=>{let t=v?f.subscribe(i.notifyManager.batchCalls(e)):u.noop;return f.updateResult(),t},[f,v]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),y.useEffect(()=>{f.setOptions(c)},[c,f]),c?.suspense&&m.isPending)throw x(c,f,l);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,u.shouldThrowError)(r,[e.error,s])))({result:m,errorResetBoundary:l,throwOnError:c.throwOnError,query:h,suspense:c.suspense}))throw m.error;if(o.getDefaultOptions().queries?._experimental_afterQuery?.(c,m),c.experimental_prefetchInRender&&!s.environmentManager.isServer()&&m.isLoading&&m.isFetching&&!n){let e=p?x(c,f,l):h?.promise;e?.catch(u.noop).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?m:f.trackResult(m)}(e,v,t)}],91133),e.s(["fetchJson",0,Q],94227)},80271,e=>{"use strict";var t=e.i(80542),r=e.i(79696),s=e.i(97836),i=e.i(91133),a=e.i(55118),n=e.i(17201),l=e.i(94227);async function u(e,t){return(0,l.fetchJson)(`https://cms.concoursmontreal.ca/${e}/actualites?page=${t}`)}e.s(["default",0,function({initialItems:e,initialMeta:l}){let{locale:o}=(0,s.useParams)(),c=(0,r.useRef)(null),h=(0,n.useTranslations)(),{data:d,fetchNextPage:p,hasNextPage:f,isFetchingNextPage:m}=(0,i.useInfiniteQuery)({queryKey:["actualites",o],queryFn:({pageParam:e})=>u(o,e),initialPageParam:1,getNextPageParam:e=>{let{current_page:t,total_pages:r}=e.meta.pagination;return t<r?t+1:void 0},initialData:{pages:[{data:e,meta:l}],pageParams:[1]}});(0,r.useEffect)(()=>{let e=c.current;if(!e)return;let t=new IntersectionObserver(e=>{e[0].isIntersecting&&f&&!m&&p()},{rootMargin:"200px"});return t.observe(e),()=>t.disconnect()},[f,m,p]);let v=d.pages.flatMap(e=>e.data);return(0,t.jsxs)("section",{className:"grid grid-cols-1 gap-4 md:grid-cols-3 xl:grid-cols-4",children:[v.map(e=>(0,t.jsx)(a.default,{item:e},e.id)),0===v.length&&!m&&(0,t.jsx)("p",{className:"col-span-full text-black/40",children:h("aucunResultat")}),f&&(0,t.jsx)("div",{ref:c,className:"col-span-full mt-4 animate-pulse text-center",children:h("chargement")})]})}])}]);

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.