PageSourceSearch

https://nickwolny.com/component---src-templates-article-c-jsx-9dda780e7c0f5d8a6619.js

js nickwolny.com collected 2026-09-26 01:45:04 UTC 10,829 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknickwolny=self.webpackChunknickwolny||[]).push([[715],{9420:function(e,t,l){var a=l(7294);t.Z=function(e){var t=e.html,l=e.className,n=e.style,r=(0,a.useRef)(null);return(0,a.useEffect)((function(){r.current&&t&&r.current.querySelectorAll("script").forEach((function(e){var t=document.createElement("script");Array.from(e.attributes).forEach((function(e){t.setAttribute(e.name,e.value)})),e.textContent&&(t.textContent=e.textContent),e.parentNode.replaceChild(t,e)}))}),[t]),t?a.createElement("div",{ref:r,className:l,style:n,dangerouslySetInnerHTML:{__html:t}}):null}},7905:function(e,t,l){l.r(t),l.d(t,{Head:function(){return L},default:function(){return A}});var a=l(2317),n=l(3723),r=l(7294),o=l(1082),i=l(9063),c=l(6214),d=l(1113),u=l(2426),s=l(613),m=l(881),v=l(9846),p=l(9420),g=l(4927),f=l(4213),b=l(1066),x=l(8866),h=l(5392),E=l(7930),y=l(5570),k=l(8784),w=l(9680),N={root:null,rootMargin:"0% 0% -50% 0%",threshold:0},_=function(e){var t,l,a,n,_,I,S,Z,C,A,L,T,B,R=e.article,q=e.title,P="";(0,r.useEffect)((function(){var e=Array.from(document.querySelectorAll("h1, h2, h3, h4, h5")),t=new IntersectionObserver((function(e){return e.forEach((function(e){var t=e.target,l=null==t?void 0:t.id,a=document.querySelector('a[href="#'+l+'"]'),n=document.querySelector('a[href="#'+P+'"]');e.isIntersecting?(null==a||a.classList.add("item-visible"),P!==l&&(null==n||n.classList.remove("item-visible")),P=l):P!==l&&(null==a||a.classList.remove("item-visible"))}))}),N);e.forEach((function(e){return t.observe(e)}))}),[]);var F=(0,r.useState)(!1),W=F[0],z=F[1];(0,r.useEffect)((function(){if("undefined"!=typeof window){var e=new URLSearchParams(window.location.search).get("gift");if(e){var t=!0;return(0,h.c)(e).then((function(e){var l;if(t&&null!=e&&e.valid){var a=((null==R||null===(l=R.slug)||void 0===l?void 0:l.current)||"").toLowerCase();e.slug&&e.slug!==a||z(!0)}})),function(){t=!1}}}}),[null==R||null===(t=R.slug)||void 0===t?void 0:t.current]);var D="paid"===(null==R?void 0:R.subsType)||(null==R||null===(l=R.requiredPlans)||void 0===l?void 0:l.length)>0,j=null==R||null===(a=R._rawContent)||void 0===a?void 0:a.findIndex((function(e){return"gateMarker"===e._type})),M=void 0!==j&&-1!==j;return r.createElement("div",{className:"flex max-w-[1300px] mx-auto custom-color-link"},(null==R?void 0:R.tableContent)&&r.createElement(m.Z,{data:null==R?void 0:R.tableContent}),r.createElement(s.Z,null),r.createElement("div",{className:"container grid grid-cols-3 gap-6 px-3 mt-10 article"},r.createElement("div",{className:(null==R||null===(n=R._rawSidebarImages)||void 0===n?void 0:n.length)>0?"col-span-3 md:col-span-2":"col-span-3"},r.createElement("div",{className:"bg-black/[.02] rounded-[33px] rounded-b-[33px] lg:rounded-b-none px-5 lg:px-10 pt-8 lg:pt-[59px] pb-[45px] lg:pb-[90px]"},r.createElement("div",{className:"flex flex-wrap text-sm font-roboto gap-2"},r.createElement("div",{className:"flex gap-2"},null===(_=R.category)||void 0===_?void 0:_.map((function(e,t){var l;return r.createElement(o.rU,{key:e.id||t,to:"/blog/"+(null==e||null===(l=e.slug)||void 0===l?void 0:l.current)+"/",className:"no-underline hover:opacity-80",style:{display:"inline-block",padding:"3px 12px",borderRadius:"10px",fontSize:"10px",fontWeight:700,letterSpacing:"0.5px",textTransform:"uppercase",color:"#fff",background:"#0D8555",transition:"opacity 0.2s"}},null==e?void 0:e.title)})))),r.createElement("div",null,r.createElement("h1",{className:"text-[36px] leading-[46px] mt-6 text-black font-bricolage font-extrabold"},q)),(null==R?void 0:R.summary)&&r.createElement("div",{className:"mt-4"},r.createElement("p",{className:"text-[13px] font-roboto opacity-70 leading-relaxed article-summary"},null==R?void 0:R.summary)),(null==R||null===(I=R.author)||void 0===I?void 0:I.length)>0&&r.createElement("div",{className:"mt-6 flex items-center gap-3"},(null===(S=R.author[0])||void 0===S||null===(Z=S.profileImage)||void 0===Z||null===(C=Z.asset)||void 0===C?void 0:C.url)&&r.createElement("img",{src:R.author[0].profileImage.asset.url,alt:R.author[0].name,className:"rounded-full",style:{width:"44px",height:"44px",minWidth:"44px",objectFit:"cover"}}),r.createElement("div",null,r.createElement("div",{className:"text-sm font-medium text-black"},"Written by ",r.createElement("a",{href:"/about/",className:"hover:text-[#0C8555] hover:underline"},R.author[0].name)))),r.createElement(u.Z,null),r.createElement(x.Z,{slug:null==R||null===(A=R.slug)||void 0===A?void 0:A.current,gated:D}),r.createElement("div",{className:"text-xs font-roboto text-gray-500 mt-3"},"Reading Time: ",null!=R&&R.readTime?null==R?void 0:R.readTime:5," minutes"),r.createElement("div",{className:"text-xs font-roboto text-gray-500 mt-1"},"Last updated on ",(null==R?void 0:R.publishedAt)||(null==R?void 0:R._updatedAt)),r.createElement(i.Z,{show:null==R?void 0:R.isS
1poke,articleId:null==R?void 0:R._id}),r.createElement(g.Z,{disclosures:null==R?void 0:R.disclosures,disclosure:null==R?void 0:R.disclosure}),r.createElement(f.Z,{value:null==R?void 0:R._rawQuickAnswer}),r.createElement("div",{className:"mt-9 article-body"},r.createElement("div",{className:"text-base leading-5 prose max-w-none article-c"},D&&!W?r.createElement(b.Z,{content:R._rawContent,previewPercentage:10,gateIndex:M?j:void 0,requiredPlans:R.requiredPlans,plans:[]}):r.createElement(d.Z,{article:R._rawContent,articleSources:R.articleSources}),r.createElement(E.Z,{sources:R.articleSources}))),r.createElement(w.Z,{blocks:R._rawPreFooterBlocks}),R.enableComments&&r.createElement("div",{className:"mt-20"},r.createElement(y.Z,{articleId:R._id,articleTitle:R.heading,articleSlug:null===(L=R.slug)||void 0===L?void 0:L.current})))),(null==R||null===(T=R._rawSidebarImages)||void 0===T?void 0:T.length)>0&&r.createElement("div",{className:"col-span-3 md:col-span-1"},r.createElement("div",{className:"bg-black/[.02] rounded-[33px] text-center p-8 mb-10 mt-10 relative h-[calc(100%-460px)] md:h-[calc(100%-320px)] space-y-6"},null==R||null===(B=R._rawSidebarImages)||void 0===B?void 0:B.map((function(e,t){var l,a,n,i,d,u,s,m,g;return"articleImage"===(null==e?void 0:e._type)?r.createElement("a",{key:t,href:null==e?void 0:e.anchorLink,target:"_blank",className:"no-underline block mb-4 "+((null==R||null===(l=R._rawSidebarImages)||void 0===l?void 0:l.length)===t+1?"sticky top-10":""),rel:"noreferrer noopener"},r.createElement("img",{src:null==e||null===(a=e.asset)||void 0===a?void 0:a.url,alt:null==e?void 0:e.alt})):"codeBlock"===(null==e?void 0:e._type)?r.createElement(p.Z,{html:null==e?void 0:e.code,key:t,className:(null==R||null===(n=R._rawSidebarImages)||void 0===n?void 0:n.length)===t+1?"sticky top-10":""}):"globalCodeBlock"===(null==e?void 0:e._type)?r.createElement(p.Z,{html:null==e?void 0:e.code,key:t,className:(null==R||null===(i=R._rawSidebarImages)||void 0===i?void 0:i.length)===t+1?"sticky top-10":""}):"globalEmbedCode"===(null==e?void 0:e._type)?r.createElement("div",{key:t,className:(null==R||null===(d=R._rawSidebarImages)||void 0===d?void 0:d.length)===t+1?"sticky top-10":""},r.createElement("div",{className:"pt-1"},r.createElement(p.Z,{html:null==e?void 0:e.code,className:"flex justify-center"}),(null==e?void 0:e._rawAttribution)&&(null==e?void 0:e._rawAttribution.length)>0&&r.createElement("div",{className:"my-4 text-sm leading-6 text-[#676a6b] text-center"},r.createElement(c.Z,{value:e._rawAttribution})))):"adBlock"===(null==e?void 0:e._type)?r.createElement("div",{className:(null==R||null===(u=R._rawSidebarImages)||void 0===u?void 0:u.length)===t+1?"sticky top-10":""},r.createElement(v.Z,{slot:null==e?void 0:e.slot,key:t})):"optinFormBlock"===(null==e?void 0:e._type)?r.createElement("div",{key:t,className:(null==R||null===(s=R._rawSidebarImages)||void 0===s?void 0:s.length)===t+1?"sticky top-10":""},r.createElement(k.Z,{eyebrow:(null==e?void 0:e.eyebrow)||void 0,headline:(null==e?void 0:e.headline)||void 0,subtitle:(null==e?void 0:e.subtitle)||void 0,buttonText:(null==e?void 0:e.buttonText)||void 0,formId:(null==e?void 0:e.formId)||void 0,checkboxes:(null==e?void 0:e.checkboxes)||void 0,compact:!0,mobilePhotoUrl:"https://cdn.sanity.io/images/p5dzjrg7/production/ccfd6de2af06899065e2b44861875fa16f961345-5455x3637.jpg?w=600&auto=format"})):r.createElement("div",{className:(null==R||null===(m=R._rawSidebarImages)||void 0===m?void 0:m.length)===t+1?"sticky top-10":"",key:t,style:{background:"#f0f7f0",border:"1px solid rgba(12,133,85,0.15)",borderRadius:"16px",padding:"24px",marginTop:"24px",marginBottom:"24px"}},r.createElement("h4",{className:"font-bricolage",style:{fontSize:"16px",fontWeight:800,color:"#034a32",margin:"0 0 14px"}},"Related Links"),r.createElement("ul",{style:{listStyle:"none",margin:0,padding:0}},null==e||null===(g=e.links)||void 0===g?void 0:g.map((function(e,t){return r.createElement("li",{key:t,style:{marginBottom:"8px"}},"internal"===(null==e?void 0:e.type)?r.createElement(o.rU,{to:null==e?void 0:e.path,className:"font-roboto",style:{fontSize:"14px",color:"#0C8555",fontWeight:500,textDecoration:"none"}},null==e?void 0:e.label):r.createElement("a",{href:null==e?void 0:e.url,target:"_blank",rel:"noreferrer noopener",className:"font-roboto",style:{fontSize:"14px",color:"#0C8555",fontWeight:500,textDecoration:"none"}},null==e?void 0:e.label))}))))}
1))))))},I=l(4525),S=l(7659),Z=l(467),C=l(6809),A=function(e){var t,l,o,i,c,d,u=e.data,s=u.sanityArticle,m=u.sanitySite;e.location;return r.createElement(r.Fragment,null,r.createElement(Z.Z,null),r.createElement(S.Z,{headerData:null==m?void 0:m.header},r.createElement("div",null,"image"===(null==s||null===(t=s.featuredImage)||void 0===t||null===(l=t.asset)||void 0===l?void 0:l.extension)?r.createElement(n.G,{className:"w-full",image:null==s||null===(o=s.featuredImage)||void 0===o||null===(i=o.asset)||void 0===i?void 0:i.gatsbyImageData,imgClassName:"w-full",alt:null==s?void 0:s.heading,style:{borderBottomLeftRadius:14,borderBottomRightRadius:14}}):r.createElement("div",{className:"w-full"},r.createElement("img",{className:"w-full",src:null==s||null===(c=s.featuredImage)||void 0===c||null===(d=c.asset)||void 0===d?void 0:d.url})),(null==s?void 0:s._rawFeaturedImageattribution)&&r.createElement("div",{className:"mb-0 prose max-w-none"},r.createElement("div",{className:"mt-2 text-xs leading-5 text-[#676a6b] text-center attribution px-8 lg:px-10"},r.createElement(a.YI,{value:null==s?void 0:s._rawFeaturedImageattribution})))),r.createElement(_,{article:s,title:null==s?void 0:s.heading})),r.createElement(I.Z,{data:null==m?void 0:m.footer}))},L=function(e){var t=e.data.sanityArticle,l=e.location;return r.createElement(C.H,{metadata:(null==t?void 0:t.pageMetadata)||{},article:t,pathname:null==l?void 0:l.pathname})}}}]);
2//# sourceMappingURL=component---src-templates-article-c-jsx-9dda780e7c0f5d8a6619.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.