1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9603],{8266:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return s(30654)}])},52247:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var r=s(85893),n=s(41664),a=s.n(n);function i(e){let{endLink:t,endText:s}=e;return(0,r.jsx)("div",{className:"breadcrumb-ss",children:(0,r.jsxs)("ul",{className:"breadcrumbs",children:[(0,r.jsx)("li",{children:(0,r.jsx)(a(),{href:"/",children:"Home"})}),(0,r.jsx)("li",{className:"active",children:(0,r.jsx)(a(),{href:t,children:s})})]})})}},63817:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var r=s(85893);function n(e){let{children:t}=e;return(0,r.jsx)("h1",{dangerouslySetInnerHTML:{__html:t}})}},30654:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return k},default:function(){return C}});var r=s(85893),n=s(5152),a=s.n(n),i=s(9008),l=s.n(i),c=s(25675),o=s.n(c),d=s(56935),h=s(42615),u=s(63817),m=s(52247),p=s(41664),x=s.n(p),g=s(4696),j=s(85984);function f(e){let{title:t,coverImage:s,excerpt:n,slug:a,type:i}=e,l=a;"page"!=i&&"post"!=i&&(l="/".concat(i,"/").concat(a));let c=(0,j.Qx)(s).replace("https://www.clayandbuck.com",g.Tf);return(0,r.jsx)("div",{className:c?"post-wrap":"post-wrap no-image",children:(0,r.jsxs)(x(),{href:l,"aria-label":t,children:[c&&(0,r.jsx)("div",{className:"post-featured-img",children:(0,r.jsx)(o(),{src:c,alt:"Cover Image for ".concat(t),width:300,height:160})}),(0,r.jsxs)("div",{className:"post-content",children:[(0,r.jsx)("h3",{className:"post-title",dangerouslySetInnerHTML:{__html:t}}),(0,r.jsx)("div",{className:"post-excerpt",dangerouslySetInnerHTML:{__html:n}})]})]})})}var v=s(11163),b=s(22381),N=s(67294),w=s(67814),_=s(59417),S=s(8023),y=s(47041),E=s(22224);let P=a()(()=>Promise.all([s.e(5678),s.e(4087),s.e(9692)]).then(s.bind(s,19692)),{loadableGenerated:{webpack:()=>[19692]},ssr:!1});var k=!0;function C(e){var t;let{pageData:s}=e,n=(0,N.useContext)(E.z),[a,i]=(0,N.useState)(!1),[c,p]=(0,N.useState)(!1),[x,j]=(0,N.useState)(!1),[k,C]=(0,N.useState)(1),[T,L]=(0,N.useState)([]),[I,H]=(0,N.useState)([]),[U,M]=(0,N.useState)([]),[R,K]=(0,N.useState)(5),D=(0,v.useRouter)(),{headerMenu:Y,footerMenu:A}=s,B=null!==(t=null==s?void 0:s.pageBy)&&void 0!==t?t:{},{seo:X}=B,F=(0,b.w)(X.fullHead),Z=D.asPath.split("#")[0].split("?")[0],G="".concat(g._O)+("/"===D.asPath?"":Z),O=(0,y.getCookie)("STYXKEY_USER_EMAIL"),q=(0,y.getCookie)("STYXKEY_USER_PASSWORD"),W=(0,y.getCookie)("STYXKEY_USER_SUBSCRIBED"),z=(0,y.getCookie)("STYXKEY_USER_CANCELLED_SUBS"),Q=!!O&&!!q&&!!W&&!z,[V,J]=(0,N.useState)("");(0,N.useEffect)(()=>{D.query.s&&J(D.query.s.toString())},[D.query.s]),(0,N.useEffect)(()=>{let e=async()=>{let e=[],t=[];if(L([]),M([]),K(5),j(!1),i(!0),Q){let s=atob(q.toString()),r=btoa("".concat(O,":").concat(s)),[n,a]=await Promise.all([(0,S.cH)({Authorization:"Basic "+r}),(0,S.Kf)(V,1)]);t=n.filter(e=>e.title.toLowerCase().includes(V.toLowerCase())),e=a}else e=await (0,S.Kf)(V,1);t.length>0&&(H(t),M(t.slice(0,5))),e.length>0&&(L(e),C(2),10==e.length&&j(!0)),i(!1)};V&&e()},[V]);let $=async()=>{p(!0);let e=await (0,S.Kf)(V,k);e.length>0&&(L([...T,...e]),C(e=>e+1),10==e.length?j(!0):j(!1)),p(!1)},ee=async e=>{e.preventDefault();let t=e.target.s.value;await D.push("/search?s=".concat(t),null,{shallow:!0})};return(0,r.jsx)(h.Z,{headerMenu:Y,footerMenu:A,children:(0,r.jsx)("div",{className:"main-wrap post white-background post-archive",children:(0,r.jsx)(d.default,{children:D.isFallback?(0,r.jsx)(u.Z,{children:"Loadingâ¦"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l(),{children:[F,(0,r.jsx)("link",{rel:"canonical",href:G}),(0,r.jsx)("meta",{name:"robots",content:"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"}),(0,r.jsx)("meta",{name:"twitter:image",content:g.wE}),(0,r.jsx)("meta",{name:"twitter:image:width",content:"1200"}),(0,r.jsx)("meta",{name:"twitter:image:height",content:"640"})]}),(0,r.jsxs)("h1",{children:['Results Found For: "',V,'"']}),(0,r.jsx)(m.Z,{endLink:D.asPath,endText:"SEARCH RESULT"}),(0,r.jsxs)("div",{className:"main-content",children:[(0,r.jsxs)("div",{className:"post-content-wrap",children:[a?(0,r.jsx)("div",{className:"load-more-wrap",children:(0,r.jsx)("div",{className:"cnb-spinner-loading"})}):(0,r.jsxs)("div",{className:"search-results",children:[U.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{children:"VIP Podcasts"}),(0,r.jsxs)("div",{className:"vip-podcasts",children:[U.length>0&&U.map((e,t)=>{let s=e.imageUrl.includes("http")?e.imageUrl:"https:".concat(e.imageUrl);return(0,r.jsx)("div",{className:s?"post-wrap":"post-wrap no-image",onClick:()=>{n.setPodcasts([...U]),n.setCurTrack(t)},children:(0,r.jsxs)("div",{children:[s&&(0,r.jsx)("div",{className:"post-featured-img",children:(0,r.jsx)(o(),{src:s,alt:"",width:300,height:360})}),(0,r.jsxs)("div",{className:"post-content",children:[(0,r.jsx)("h3",{className:"post-title",dangerouslySetInnerHTML:{__html:e.title}}
1),(0,r.jsx)("p",{className:"crt-date",children:e.startDate}),(0,r.jsx)("div",{className:"post-excerpt",dangerouslySetInnerHTML:{__html:e.description}})]})]})},t)}),U.length>0&&U.length<I.length&&(0,r.jsx)("div",{className:"load_more__pc_wrap",children:(0,r.jsxs)("button",{className:"btn",onClick:()=>{M(I.slice(0,R+5)),K(e=>e+5)},children:[(0,r.jsx)("span",{children:"Load More"}),(0,r.jsx)(w.G,{icon:_.mHK,style:{}})]})})]}),(0,r.jsx)("h2",{children:"Articles"})]}),(0,r.jsxs)("div",{className:"posts-rows",children:[T.length>0&&T.map(e=>{var t,s,n,a,i,l,c,o,d;let h=null!==(c=null==e?void 0:null===(s=e._embedded)||void 0===s?void 0:null===(t=s.self)||void 0===t?void 0:t[0])&&void 0!==c?c:{},u=null!==(o=null===(i=h.yoast_head_json)||void 0===i?void 0:null===(a=i.og_image)||void 0===a?void 0:null===(n=a[0])||void 0===n?void 0:n.url)&&void 0!==o?o:"",m=h.slug,p=null!==(d=null===(l=h.excerpt)||void 0===l?void 0:l.rendered)&&void 0!==d?d:"",x=h.type;return(0,r.jsx)(f,{title:e.title,coverImage:u,slug:m,excerpt:p,type:x},e.id)}),0==T.length&&(0,r.jsxs)("section",{className:"no-results not-found",children:[(0,r.jsx)("h2",{className:"page-title",children:"Nothing Found"}),(0,r.jsxs)("p",{children:["Sorry, but nothing matched your search terms.",(0,r.jsx)("br",{}),"Please try again with some different keywords."]}),(0,r.jsxs)("form",{className:"search-form",role:"search",onSubmit:ee,children:[(0,r.jsx)("input",{type:"text",placeholder:"Search...",name:"s"}),(0,r.jsx)("button",{type:"submit",className:"btn-submit",children:(0,r.jsx)(w.G,{icon:_.wn1,style:{}})})]})]})]})]}),x&&(0,r.jsx)("div",{className:"text-center load-more-btn",children:c?(0,r.jsx)("div",{className:"cnb-spinner-loading"}):(0,r.jsxs)("button",{className:"btn",onClick:$,children:[(0,r.jsx)("span",{children:"Load More"}),(0,r.jsx)(w.G,{icon:_.mHK,style:{}})]})})]}),(0,r.jsx)(P,{})]})]})})})})}},85984:function(e,t,s){"use strict";s.d(t,{Qx:function(){return a},TA:function(){return n},XW:function(){return r}});let r=e=>{var t;let s=null==e?void 0:null===(t=e.node)||void 0===t?void 0:t.sourceUrl;return"string"==typeof s&&""!==s.trim()?s.trim():""},n=e=>""!==r(e),a=e=>"string"==typeof e&&""!==e.trim()?e.trim():""},22381:function(e,t,s){"use strict";s.d(t,{w:function(){return x}});var r=s(85893),n=s(67294),a=s(41664),i=s.n(a),l=s(25675),c=s.n(l),o=s(29189),d=s(4298),h=s.n(d);let u=s(38086),m=s(38086).Parser,p=e=>e?e.replace(/^http:\/\//i,"https://"):e,x=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;let s=[{shouldProcessNode:e=>"a"===e.name&&e.attribs.href&&!(0,o.Bm)(e.attribs.href)&&!e.attribs.target,processNode:(e,t,s)=>(0,r.jsx)(i(),{href:e.attribs.href,className:e.attribs.class,target:e.attribs.target,children:t[0]},s)},{shouldProcessNode:e=>"a"===e.name&&e.attribs.href&&((0,o.Bm)(e.attribs.href)||e.attribs.target),processNode:(e,t,s)=>{let n=p(e.attribs.href);return(0,r.jsx)("a",{href:n,className:e.attribs.class,target:e.attribs.target,rel:e.attribs.rel,children:t},s)}},{shouldProcessNode:e=>"img"===e.name&&t,processNode:(e,t,s)=>{let n=p(e.attribs.src);return(0,r.jsx)(c(),{src:n,className:e.attribs.class,width:e.attribs.width,height:e.attribs.height,alt:e.attribs.alt,title:e.attribs.title},s)}},{shouldProcessNode:e=>"script"===e.name&&"script"===e.type&&e.attribs.src,processNode:(e,t,s)=>"https://platform.twitter.com/widgets.js"!==e.attribs.src?(0,r.jsx)(h(),{src:"".concat(e.attribs.src,"?t=").concat(Date.now()),strategy:"beforeInteractive"},s):(0,r.jsx)("span",{})},{shouldProcessNode:e=>!0,processNode:new u.ProcessNodeDefinitions(n).processDefaultNode}],a=new m().parseWithInstructions(e,()=>!0,s);return a}}},function(e){e.O(0,[4976,5675,3996,8826,8086,2615,9774,2888,179],function(){return e(e.s=8266)}),_N_E=e.O()}]);
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.