PageSourceSearch

https://www.cfobrew.com/_next/static/chunks/9114-5acae3ea19761723.js

js cfobrew.com collected 2026-09-25 18:32:28 UTC 14,506 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9114],{70178:function(e,t,i){i.d(t,{Z:function(){return l}});var n=i(52322);i(2784);var r=i(73307);let a=i(35505).ZP.div.withConfig({displayName:"style__Container",componentId:"sc-fe29374f-0"})(["width:100%;min-height:450px;display:flex;justify-content:center;text-align:center;align-items:center;padding:",";color:",";"],e=>{let{theme:t}=e;return t.padding.md},e=>{let{theme:t}=e;return t.colors.onyx});function l(e){let{query:t}=e;return(0,n.jsx)(a,{children:(0,n.jsx)(r.xv,{variant:"h6",children:t?(0,n.jsxs)(n.Fragment,{children:['No results found for "',t,'".']}):"No results found."})})}},82020:function(e,t,i){i.d(t,{i:function(){return s},H:function(){return d}});var n=i(52322),r=i(73307),a=i(35505);let l=a.ZP.div.withConfig({displayName:"style__YoutubeWrapper",componentId:"sc-52f80dc8-0"})(["overflow:hidden;padding-bottom:56.25%;position:relative;height:0;width:760px;","{width:650px;}","{width:315px;}iframe{left:0;top:0;height:100%;width:100%;position:absolute;}"],r.Mq,r.m7),o=a.ZP.div.withConfig({displayName:"embed__VimeoWrapper",componentId:"sc-6737682d-0"})(["overflow:hidden;padding-bottom:56.25%;position:relative;height:0;width:760px;","{width:650px;}","{width:315px;}iframe{left:0;top:0;height:100%;width:100%;position:absolute;}"],r.Mq,r.m7);function s(e){let{id:t,autoplay:i}=e;return(0,n.jsx)(o,{"data-floating":"true",children:(0,n.jsx)("iframe",{src:"https://player.vimeo.com/video/".concat(t).concat(i?"?autoplay=1&muted=1":""),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded vimeo"})})}function d(e){let{id:t}=e;return(0,n.jsx)(l,{"data-floating":"true",children:(0,n.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat(t),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})}},60786:function(e,t,i){i.d(t,{L:function(){return n}});let n=e=>{if(!(null==e?void 0:e.includes("vimeo.com")))return null;let t=e.split("/");return t[t.length-1]}},59250:function(e,t,i){i.d(t,{C:function(){return b}});var n=i(52322),r=i(47122),a=i(12524),l=i.n(a),o=i(15271),s=i(87621),d=i(85337),c=i(39097),u=i.n(c),p=i(5632),h=i(15579),v=i(24653),m=i(73307),f=i(35505);let g=f.ZP.a.withConfig({displayName:"style__PreviewCardLink",componentId:"sc-68b0d1db-0"})(["height:fit-content;"]),y=f.ZP.article.withConfig({displayName:"style__PreviewBase",componentId:"sc-68b0d1db-1"})(["display:flex;cursor:pointer;.preview-headline{font-family:var(--font-family-heading);font-weight:var(--font-weight-heading);font-size:var(--font-size-heading-md);margin-bottom:var(--space-sm);line-height:1.2;transition:color 0.2s ease;}.preview-headline.small-headline{font-size:var(--font-size-heading-sm);}.preview-date{color:var(--colors-grey-500);font-size:var(--font-scale-000);font-family:var(--font-azeret-mono);font-weight:var(--font-weight-medium);text-transform:uppercase;letter-spacing:0.7px;line-height:1;margin-bottom:var(--space-sm);}.action-row{margin-top:8px;}&[data-variant='list']{flex-direction:row;align-items:center;gap:var(--space-xl);","{gap:var(--space-md);}}&[data-variant='grid']{flex-direction:column;}&:hover{.preview-headline{color:var(--colors-brand-600);}}.video-btn:hover{color:var(--colors-brand-600);}"],m.m7),x=f.ZP.div.withConfig({displayName:"style__ImageWrapper",componentId:"sc-68b0d1db-2"})(["position:relative;margin-bottom:var(--space-xl);&.video-image{margin-left:auto;img{height:100%;width:100%;object-fit:cover;}}&[data-variant='grid']{width:100%;height:auto;border-radius:4px;overflow:hidden;aspect-ratio:",";}
1&[data-variant='list']{min-width:200px;height:133px;border-radius:4px;overflow:hidden;margin-bottom:0;aspect-ratio:3 / 2;","{min-width:140px;width:140px;height:140px;aspect-ratio:1 / 1;}}"],e=>e.$aspectRatio,m.m7),w=f.ZP.div.withConfig({displayName:"style__ContentWrapper",componentId:"sc-68b0d1db-3"})(["display:flex;flex-direction:column;p{margin-bottom:0;}"]),b=e=>{let{image:t,title:i,description:a,href:c,tag:m,analyticsProperties:f,className:b,variant:j="grid",hideImage:C=!1,publishDate:_,actionText:N,actionIcon:k,mirrored:P,aspectRatio:S,onClick:Z}=e,{track:z}=(0,r.z)(),I=(0,p.useRouter)(),{imageUrl:R,imageAspectRatio:q,alt:U}=(0,d.n)(t),A=(0,s.An)(_),{clickName:L,...F}=f||{},M=()=>{Z&&(null==Z||Z()),L&&z(L,{title:i,category:m,pagePath:I.asPath,featured:!1,...F})},B=(0,n.jsxs)(y,{className:l()("preview",b),"data-variant":j,onClick:()=>{Z&&M()},children:[!C&&(0,n.jsx)(x,{className:l()("preview-image","video-image"),$aspectRatio:S||q,"data-variant":j,style:{order:P?1:0},children:(0,n.jsx)(o.Z,{src:R,alt:U,objectFit:"cover",quality:70})}),(0,n.jsxs)(w,{className:"preview-content",children:[(0,n.jsx)("h3",{className:l()("preview-headline"),children:i}),a&&(0,n.jsx)(h.Z,{blocks:a}),N&&(0,n.jsxs)("div",{className:"action-row",children:[!c&&(0,n.jsx)(v.Z,{onClick:M,className:l()("preview-action","btn-link","video-btn"),iconLeft:k,asLink:!0,children:N}),c&&(0,n.jsx)(u(),{href:c,legacyBehavior:!0,passHref:!0,children:(0,n.jsx)(v.Z,{onClick:e=>{M(),e.stopPropagation()},asLink:!0,className:l()("preview-action","btn-link","video-btn"),iconLeft:k,children:N})})]}),A&&(0,n.jsx)("span",{className:"preview-date",children:(0,n.jsx)("time",{dateTime:A.iso,children:A.formatted})})]})]});return c?(0,n.jsx)(u(),{href:c,legacyBehavior:!0,passHref:!0,children:(0,n.jsx)(g,{onClick:e=>{M(),e.stopPropagation()},className:l()("preview",b),children:B})}):B}},51346:function(e,t,i){i.d(t,{n:function(){return v},q:function(){return h}});var n=i(52322),r=i(53927),a=i(41391),l=i.n(a),o=i(2784),s=i(24068),d=i(13597),c=i(59250),u=i(82020),p=i(60786);let h=e=>(null==e?void 0:e._type)===r.jQ,v=e=>{let{videoTitle:t,videoUrl:i,videoDescription:r,analyticsProperties:a}=e,[h,v]=(0,o.useState)(!1);if(!i)return null;let m=i.includes("youtube.com"),f=m?"https://img.youtube.com/vi/".concat(l()(i)||"","/maxresdefault.jpg"):"https://vumbnail.com/".concat((0,p.L)(i)||"",".jpg");return(0,n.jsxs)(n.Fragment,{children:[h&&(0,n.jsx)(d.Z,{isOpen:h,onClose:()=>v(!1),children:m?(0,n.jsx)(u.H,{id:l()(i)||""}):(0,n.jsx)(u.i,{id:(0,p.L)(i)||""})}),(0,n.jsx)(c.C,{title:t||"",image:{asset:{url:f}},description:r,actionText:"Watch Now",actionIcon:(0,n.jsx)(s.Hm_,{}),aspectRatio:16/9,analyticsProperties:a,onClick:()=>v(!0)})]})}},79114:function(e,t,i){i.d(t,{Z:function(){return y}});var n=i(52322),r=i(2784),a=i(47122),l=i(70178),o=i(24653),s=i(37233),d=i(84576),c=i(57438),u=i(8530),p=i(51346),h=i(10894),v=i(5632),m=i(94233),f=i(1310),g=i(33695);function y(e){let{contentTypes:t,placeholder:i="Search...",pageSize:y=12,variant:x="grid"}=e,w=(0,v.useRouter)(),{track:b}=(0,a.z)(),{pathname:j,query:{q:C="",search:_}}=w,N="nav"===_,k=Array.isArray(C)?C.join("/"):C,P=(0,r.useCallback)((e,i)=>{var n,r,a,l,o,s;if(i&&0===i.length)return null;let d=null!==(l=null==i?void 0:null===(n=i[i.length-1])||void 0===n?void 0:n._id)&&void 0!==l?l:null,c=null!==(o=null==i?void 0:null===(r=i[i.length-1])||void 0===r?void 0:r._score)&&void 0!==o?o:null,u=null!==(s=null==i?void 0:null===(a=i[i.length-1])||void 0===a?void 0:a.publishDate)&&void 0!==s?s:null,p=new URLSearchParams({brandId:(0,h.M8)(),...k&&{query:k},...d&&{lastId:d},...c&&{lastScore:c},...u&&{lastPublishDate:u},end:String(y)});return null==t||t.forEach(e=>p.append("contentTypes",String(e))),"/api/sanity/search?".concat(p.toString())},[k,t,y]),{data:S,error:Z,isLoading:z,isValidating:I,setSize:R}=(0,m.ZP)(P,{revalidateOnFocus:!1,revalidateFirstPage:!1}),q=(0,r.useMemo)(()=>S?S.flat():[],[S]),U=null==S?void 0:S[S.length-1],A=U&&U.length===y&&!Z;return(0,n.jsxs)(d.J,{className:"full-width-mobile",style:{gridRowGap:"var(--space-3xl)"},children:[(0,n.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,n.jsxs)(g.C,{children:[(0,n.jsx)(f.y,{handleSearch:e=>{b("search-submit-term",{query:e,contentTypes:t}),w.push({pathname:j,query:{q:e}},void 0,{shallow:!0})},onClear:()=>{w.push(j,void 0,{shallow:!0})},showClearButton:!!k,placeholder:i}),k&&(0,n.jsx)("h3",{style:{marginTop:"var(--space-xl)",marginBottom:0},children:'Results for "'.concat(k,'"')})]})}),!z&&!I&&0===q.length&&(0,n.jsx)("div",{style:{gridColumn:"1 / -1",width:"100%"},children:(0,n.jsx)(l.Z,{query:k})}),(z||I)&&(0,n.jsx)("div",{style:{gridColumn:"1 / -1",width:"100%",height:400,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,n.jsx)(u.Z,{})}),q.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Z,{..."grid"===x&&{columns:12,columnsPerElement:4},..."list"===x&&{style:{gridColumn:"1 / -1"}},variant:x,className:"full-width-mobile",children:q.map((e,t)=>e?(0,p.q)(e)?(0,n.jsx)(p.n,{videoTitle:e.videoTitle,videoUrl:e.videoUrl,videoDescription:e.videoDescription,analyticsProperties:{clickName:"
1content-search-click-video",usedNavSearch:N.toString(),query:k}},e._id):(0,n.jsxs)(r.Fragment,{children:["list"===x&&t>0&&(0,n.jsx)("hr",{className:"divider"}),(0,n.jsx)(c.Z,{...(0,c.q)(e),variant:x,analyticsProperties:{clickName:"content-search-click-item",usedNavSearch:N.toString(),query:k}})]},e._id):null)}),A&&(0,n.jsx)("div",{style:{gridColumn:"1 / -1",display:"flex",justifyContent:"center",padding:"var(--space-lg) 0"},children:(0,n.jsx)(o.Z,{onClick:()=>R(e=>e+1),loading:z||I,children:"Load More"})})]})]})}},1310:function(e,t,i){i.d(t,{y:function(){return d}});var n=i(52322),r=i(73307),a=i(24653),l=i(37129),o=i(2784),s=i(33695);let d=e=>{let{handleSearch:t,onClear:i,showClearButton:d,isLoading:c,placeholder:u="Search..."}=e,[p,h]=(0,o.useState)("");return(0,n.jsxs)(l.Rz,{onSubmit:e=>{e.preventDefault(),t(p)},style:{justifyContent:"flex-start"},children:[(0,n.jsx)(s.S,{placeholder:u,onChange:e=>h(e.target.value),leftIcon:(0,n.jsx)(r.W1,{}),value:p,onClear:()=>{h(""),null==i||i()},showClearButton:d||p.length>0}),(0,n.jsx)(a.Z,{type:"submit",style:{padding:"var(--space-md) var(--space-2xl)"},loading:c,children:"Search"})]})}},33695:function(e,t,i){i.d(t,{C:function(){return l},S:function(){return o}});
1var n=i(73307),r=i(95709),a=i(35505);let l=a.ZP.div.withConfig({displayName:"style__PageHeading",componentId:"sc-b3fbbc1b-0"})(["","{padding:var(--space-xl) var(--space-lg) 0 var(--space-lg);form{flex-direction:row;input{flex:1 1 auto;}}}"],n.Mq),o=(0,a.ZP)(r.Z).withConfig({displayName:"style__InputWrapper",componentId:"sc-b3fbbc1b-1"})(["input{flex:1 0 400px;}&{max-width:400px;}","{width:100%;input,&{width:100%;max-width:none;flex:auto;}}"],n.Mq)},85337:function(e,t,i){i.d(t,{n:function(){return a},p:function(){return r}});var n=i(1978);let r=(e,t,i)=>"https://morningbrew.com/cdn-cgi/image/width=".concat(t,",").concat(i?"height=".concat(i,","):"","format=auto/").concat(e),a=e=>{var t,i,r,a,l,o,s,d,c,u;let{urlFor:p}=(0,n.SU)(),h="",v="",m=null!==(s=null==e?void 0:null===(r=e.asset)||void 0===r?void 0:null===(i=r.metadata)||void 0===i?void 0:null===(t=i.dimensions)||void 0===t?void 0:t.aspectRatio)&&void 0!==s?s:1.5,f=null===(a=window)||void 0===a?void 0:a.devicePixelRatio;if((null==e?void 0:null===(l=e.asset)||void 0===l?void 0:l._id)||(null==e?void 0:null===(o=e.asset)||void 0===o?void 0:o.url)){try{h=p(e).auto("format").quality(70).width(400).dpr(f).url()||""}catch(t){h=null!==(c=null==e?void 0:null===(d=e.asset)||void 0===d?void 0:d.url)&&void 0!==c?c:""}v="alt"in e&&null!==(u=null==e?void 0:e.alt)&&void 0!==u?u:""}return{imageUrl:h,alt:v,imageAspectRatio:m}}},10894:function(e,t,i){i.d(t,{M8:function(){return a},jN:function(){return r}});var n=i(23285);let r=e=>{let t=Array.isArray(e)?e.join("/"):e;return n.nw?t&&t.length>0?t:null!==n.UQ&&void 0!==n.UQ?n.UQ:n.nw:n.UQ?n.UQ:Array.isArray(e)?e.join("/"):e},a=()=>"singleton-brand-root-".concat(n.UQ)},94233:function(e,t,i){i.d(t,{ZP:function(){return b}});var n=i(2784),r=i(30446),a=i(31788),l=i(49306),o=i(51325),s=i(43100);let d=()=>{},c=d(),u=Object,p=e=>e===c,h=e=>"function"==typeof e,v=new WeakMap,m=(e,t)=>u.prototype.toString.call(e)===`[object ${t}]`,f=0,g=e=>{let t,i;let n=typeof e,r=m(e,"Date"),a=m(e,"RegExp"),l=m(e,"Object");if(u(e)!==e||r||a)t=r?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=v.get(e))return t;if(t=++f+"~",v.set(e,t),Array.isArray(e)){for(i=0,t="@";i<e.length;i++)t+=g(e[i])+",";v.set(e,t)}if(l){t="#";let n=u.keys(e).sort();for(;!p(i=n.pop());)p(e[i])||(t+=i+":"+g(e[i])+",");v.set(e,t)}}return t},y=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?g(e):"",t]},x=e=>y(e?e(0,null):null)[0],w=Promise.resolve(),b=(0,o.xD)(r.ZP,e=>(t,i,r)=>{let o;let d=(0,n.useRef)(!1),{cache:c,initialSize:u=1,revalidateAll:p=!1,persistSize:h=!1,revalidateFirstPage:v=!0,revalidateOnMount:m=!1,parallel:f=!1}=r,[,,,g]=a.b.get(a.c);try{(o=x(t))&&(o=l.U+o)}catch(e){}let[y,b,j]=(0,a.z)(c,o),C=(0,n.useCallback)(()=>(0,a.e)(y()._l)?u:y()._l,[c,o,u]);(0,s.useSyncExternalStore)((0,n.useCallback)(e=>o?j(o,()=>{e()}):()=>{},[c,o]),C,C);let _=(0,n.useCallback)(()=>{let e=y()._l;return(0,a.e)(e)?u:e},[o,u]),N=(0,n.useRef)(_());(0,a.u)(()=>{if(!d.current){d.current=!0;return}o&&b({_l:h?N.current:_()})},[o,c]);let k=m&&!d.current,P=e(o,async e=>{let n=y()._i,l=y()._r;b({_r:a.U});let o=[],s=_(),[d]=(0,a.z)(c,e),u=d().data,h=[],m=null;for(let e=0;e<s;++e){let[s,d]=(0,a.s)(t(e,f?null:m));if(!s)break;let[y,x]=(0,a.z)(c,s),w=y().data,b=p||n||(0,a.e)(w)||v&&!e&&!(0,a.e)(u)||k||u&&!(0,a.e)(u[e])&&!r.compare(u[e],w);if(i&&("function"==typeof l?l(w,d):b)){let t=async()=>{if(s in g){let e=g[s];delete g[s],w=await e}else w=await i(d);x({data:w,_k:d}),o[e]=w};f?h.push(t):await t()}else o[e]=w;f||(m=w)}return f&&await Promise.all(h.map(e=>e())),b({_i:a.U}),o},r),S=(0,n.useCallback)(function(e,t){let i="boolean"==typeof t?{revalidate:t}:t||{},n=!1!==i.revalidate;return o?(n&&((0,a.e)(e)?b({_i:!0,_r:i.revalidate}):b({_i:!1,_r:i.revalidate})),arguments.length?P.mutate(e,{...i,revalidate:n}):P.mutate()):w},[o,c]),Z=(0,n.useCallback)(e=>{let i;if(!o)return w;let[,n]=(0,a.z)(c,o);if((0,a.a)(e)?i=e(_()):"number"==typeof e&&(i=e),"number"!=typeof i)return w;n({_l:i}),N.current=i;let r=[],[l]=(0,a.z)(c,o),s=null;for(let e=0;e<i;++e){let[i]=(0,a.s)(t(e,s)),[n]=(0,a.z)(c,i),o=i?n().data:a.U;if((0,a.e)(o))return S(l().data);
1r.push(o),s=o}return S(r)},[o,c,S,_]);return{size:_(),setSize:Z,mutate:S,get data(){return P.data},get error(){return P.error},get isValidating(){return P.isValidating},get isLoading(){return P.isLoading}}})}}]);

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.