(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2184,4187,6742],{9885:l=>{l.exports={blogContent:"BlogContainer_blogContent__V7M4M",blogArticle:"BlogContainer_blogArticle__uBMSu"}},32184:(l,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>g});var n=t(54568),r=t(80780),a=t(8139),u=t(7620);let o=l=>{var e,t,r;let{url:u=""}=l,o=new URL(u),d=null!=(r=null==o||null==(t=o.pathname)||null==(e=t.split("/"))?void 0:e[3])?r:null;return d&&/\d+/gi.test(d)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"blog-embed",children:(0,n.jsx)("blockquote",{className:"tiktok-embed max-w-[605px] min-w-[325px]",cite:u,"data-video-id":d,"data-embed-from":"embed_page",children:(0,n.jsx)("section",{})})}),(0,n.jsx)(a.default,{src:"https://www.tiktok.com/embed.js",strategy:"lazyOnload"})]}):null};var d=t(77785),i=t.n(d);let s=l=>{let{url:e=""}=l;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("blockquote",{className:i()("twitter-tweet blog-embed"),children:(0,n.jsx)("a",{href:e})}),(0,n.jsx)(a.default,{src:"https://platform.twitter.com/widgets.js",strategy:"lazyOnload",onLoad:()=>{var l,e,t;null==(t=window)||null==(e=t.twttr)||null==(l=e.widgets)||l.load()}})]})};var c=t(55986);function v(l){if(l.startsWith("https://player.vimeo.com/video/"))return l;let e=l.match(/vimeo\.com\/(.*\/)?(\d+)/);return e&&e[2]?"https://player.vimeo.com/video/".concat(e[2]):null}let m=l=>{let{url:e=""}=l;return v(e)?(0,n.jsx)("div",{className:i()("relative w-full aspect-video overflow-hidden rounded-standard blog-embed"),children:(0,n.jsx)(c.AssetBlock,{embeddedVimeoUrl:v(e)||"",wrapperClasses:"w-full h-full",loading:"lazy"})}):null},h=l=>{let{url:e=""}=l,[t,r]=(0,u.useState)("");return(0,u.useEffect)(()=>{var l,t,n,a;let u=new URL(e);(null==u||null==(l=u.pathname)?void 0:l.includes("watch"))&&(null==u||null==(t=u.searchParams)?void 0:t.has("v"))&&r(null!=(a=null==u||null==(n=u.searchParams)?void 0:n.get("v"))?a:null)},[]),t?(0,n.jsx)("div",{className:i()("w-full blog-embed"),children:(0,n.jsx)("iframe",{className:"w-full aspect-[16/9] border-none rounded-standard",src:"https://www.youtube.com/embed/".concat(t),title:"YouTube video player",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}):null},g=l=>{let{providerNameSlug:e,url:t,isRv:a}=l,{isRestrictedRegion:u}=(0,r.vl)();if(a&&u)return(0,n.jsx)("div",{className:"flex w-full bg-pearl-black min-h-[300px] aspect-16/9 rounded-standard items-center justify-center text-[100px]"});switch(e){case"vimeo":return(0,n.jsx)(m,{url:t});case"twitter":return(0,n.jsx)(s,{url:t});case"tiktok":return(0,n.jsx)(o,{url:t});case"youtube":return(0,n.jsx)(h,{url:t});default:return null}}},74187:(l,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>i});var n=t(54568),r=t(55986),a=t(80780),u=t(26598),o=t(8519),d=t(7620);let i=l=>{var e;let{url:t,bynderImage:i,alt:s,caption:c,href:v,isRv:m}=l,{locale:h}=(0,d.useContext)(a.U6),g=(0,o.Ay)(null!=(e=(0,u.AQQ)(c,h))?e:""),{isRestrictedRegion:b}=(0,a.vl)();if(m&&b)return(0,n.jsx)("div",{className:"flex w-full bg-pearl-black min-h-[300px] aspect-16/9 rounded-standard items-center justify-center text-[100px]"});let f=v?"a":d.Fragment;return(0,n.jsxs)("figure",{children:[(0,n.jsx)(f,{...v?{href:v}:{},children:i?(0,n.jsx)(r.BynderImageV3,{imageBynderAsset:i.imageBynderAsset,alt:(0,u.AQQ)(s,h),imageClasses:"block w-full max-w-full h-auto object-cover rounded-standard"}):(0,n.jsx)(r.AssetBlock,{src:t,alt:(0,u.AQQ)(s,h),assetClasses:"block w-full max-w-full h-auto object-cover rounded-standard aspect-16/9"})}),c&&(0,n.jsx)("figcaption",{className:"text-raven-gray mt-6 text-body-3 font-normal",children:g})]})}},86742:(l,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>j});var n=t(54568),r=t(98471),a=t(55986),u=t(80780),o=t(66782),d=t(26598),i=t(7620),s=t(28305);let c=["font-weight","vertical-align"],v=l=>{let e=null==s?void 0:s.load(l,{},!1);return e("table, table thead, table tbody, table th, table tr, table td, table p, table span, table br").each((l,t)=>{var n;let r=Object.assign({},e(t).prop("style"));e(t).removeAttr("style"),Object.entries(r).forEach(l=>{let[e,t]=l;(null==t?void 0:t.length)&&(null==t?void 0:t.includes("--tw"))&&(null==r?void 0:r[e])&&delete r[e],((null==e?void 0:e.includes("--tw"))&&(null==r?void 0:r[e])||!(null==t?void 0:t.length))&&(null==r||delete r[e]),c.includes(e)||null==r||delete r[e]}),r&&e(t).css(r),(null==(n=e(t).get(0))?void 0:n.tagName)==="table"&&e(t).wrap('
')}),e.html()},m=["font-weight"],h=l=>{let e=null==s?void 0:s.load(l,{},!1);return e("p, a, ul, ol, li, h4, h3, h2").each((l,t)=>{var n,r,a,u;let o=Object.assign({},e(t).prop("style"));e(t).removeAttr("style"),Object.entries(o).forEach(l=>{let[e,t]=l;(null==t?void 0:t.length)&&(null==t?void 0:t.includes("--tw"))&&(null==o?void 0:o[e])&&delete o[e],((null==e?void 0:e.includes("--tw"))&&(null==o?void 0:o[e])||!(null==t?void 0:t.length))&&(null==o||delete o[e]),m.includes(e)||null==o||delete o[e]}),o&&e(t).css(o),(null==(n=e(t).get(0))?void 0:n.tagName)==="p"&&["h1","h2","h3","h4","h5"].includes(null==(u=e(t))||null==(a=u.parent())||null==(r=a.get(0))?void 0:r.tagName)&&e(t).unwrap()}),e.html()},g=l=>{let e=null==s?void 0:s.load(l,{},!1);return e("h2:not(.blog-faq)").each((l,t)=>{let n=e(t).text(),r=(0,d.Yvn)(n);e(t).prop("id",r)}),e.html()};var b=t(32184),f=t(74187),p=t(9885),x=t.n(p);let w=l=>{let{isInContainer:e=!1,children:t}=l;return e?(0,n.jsx)(a.Container,{theme:"white",additionalClasses:"!block p-8",children:t}):t},j=(0,i.memo)(l=>{var e,t,s,c,m,p,j,y,k,A,N,E,C,I,T,_,B,L,M;let Q,{children:q,headerImage:S={url:"",alt:""},isInContainer:H=!1,headerVideo:O,_headerVideo:U,builderBlock:V,isRv:F}=l,R=(0,i.useContext)(r.DA),z=(0,i.useRef)(null),{isRestrictedRegion:P}=(0,u.vl)(),{locale:W}=(0,i.useContext)(u.U6),{richTextBPMapping:D}=(0,o.DM)();Q=(null==S||null==(t=S.bynderImage)||null==(e=t.imageBynderAsset)?void 0:e.images)?S:(null==R||null==(j=R.content)||null==(p=j.data)||null==(m=p.headerImage)||null==(c=m.bynderImage)||null==(s=c.imageBynderAsset)?void 0:s.images)?null==R||null==(T=R.content)||null==(I=T.data)?void 0:I.headerImage:(null==R||null==(k=R.content)||null==(y=k.data)?void 0:y.headerImage)?null==R||null==(B=R.content)||null==(_=B.data)?void 0:_.headerImage:S;let Y=O||(null==R||null==(N=R.content)||null==(A=N.data)?void 0:A.headerVideo);return(0,i.useEffect)(()=>{if((null==z?void 0:z.current)&&P){let l=null==z?void 0:z.current,e=null==l?void 0:l.querySelectorAll("a");(null==e?void 0:e.length)&&(null==e||e.forEach(l=>{var e;(null==l||null==(e=l.href)?void 0:e.includes("rv=true"))&&(null==l||l.replaceWith(null==l?void 0:l.innerText))}))}},[P]),(0,i.useEffect)(()=>{if(null==z?void 0:z.current){let l=(null==z?void 0:z.current).querySelectorAll("h2:not(.blog-faq)");(null==l?void 0:l.length)&&l.forEach(l=>{let e=g(null==l?void 0:l.outerHTML);l.outerHTML=e})}},[]),(0,i.useEffect)(()=>{if(null==z?void 0:z.current){let l=(null==z?void 0:z.current).querySelectorAll("table");(null==l?void 0:l.length)&&l.forEach(l=>{let e=v(null==l?void 0:l.outerHTML);l.outerHTML=e})}},[]),(0,i.useEffect)(()=>{if(null==z?void 0:z.current){let l=(null==z?void 0:z.current).querySelectorAll("p, a, ul, ol, li, h4, h3, h2");(null==l?void 0:l.length)&&l.forEach(l=>{let e=h(null==l?void 0:l.outerHTML);l.outerHTML=e})}},[]),(0,i.useEffect)(()=>{let l=l=>{let e=l.currentTarget.href,t=l.currentTarget.innerText,n=l.currentTarget.getAttribute("data-id"),r="".concat(t," ").concat(n);e&&(0,d.kax)({bpWithContext:(0,d.GbZ)({url:e,copy:r})})},e=z.current,t=null==e?void 0:e.querySelectorAll('a:not([data-component="blog-toc-link"])');return(null==t?void 0:t.length)&&t.forEach((e,t)=>{e.addEventListener("click",l),e.setAttribute("data-id","".concat(t,"-").concat(null==V?void 0:V.id))}),()=>{(null==t?void 0:t.length)&&t.forEach(e=>{e.removeEventListener("click",l)})}},[D]),(0,n.jsx)(w,{isInContainer:H,children:(0,n.jsxs)("div",{className:"blog-post-content flex flex-col md:flex-row gap-x-14",children:[(0,n.jsxs)("div",{className:x().blogContent,children:[U||Y||Q?(0,n.jsx)("div",{className:"-mb-2 px-4 md:p-0",children:U||Y?(0,n.jsx)(b.default,{providerNameSlug:"vimeo",url:U||Y,className:"mt-0",isRv:F}):(null==Q?void 0:Q.url)||(null==Q?void 0:Q.bynderImage)?(0,n.jsx)(f.default,{bynderImage:null==Q?void 0:Q.bynderImage,url:null==Q?void 0:Q.url,alt:null!=(L=(0,d.AQQ)(null==Q?void 0:Q.alt,W))?L:"",caption:null!=(M=(0,d.AQQ)(null==Q?void 0:Q.caption,W))?M:""}):null}):null,(0,n.jsx)("div",{className:"flex flex-col px-4 md:p-0 gap-y-12 blog-post-content [&_a]:hyperlink",ref:z,children:q})]}),(0,n.jsx)("aside",{className:"w-full p-8 md:w-[288px] md:p-0 relative",children:(0,n.jsx)("div",{className:"[&>.builder-blocks]:flex [&>.builder-blocks]:flex-col [&>.builder-blocks]:gap-8 md:sticky md:top-[110px] md:left-0 md:right-0",children:(0,n.jsx)(a.Blocks,{parent:null==V?void 0:V.id,blocks:null==V||null==(C=V.component)||null==(E=C.options)?void 0:E.sidebar,path:"component.options.sidebar"})})})]})})})}}]);