1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[333],{19054:(e,t,r)=>{"use strict";r.d(t,{ArticleContent:()=>o});var s=r(73365),a=r(63210),n=r(49940),i=r(77133);function o(e){let{resource:t}=e,{hasAccess:r}=(0,a.F)(t._id,t.isGated),o=t.content&&Array.isArray(t.content)&&t.content.length>0?(0,s.jsx)(i.R,{value:t.content,className:"prose-lg max-w-none"}):null;return t.isGated&&!r?(0,s.jsx)(n.P,{form:t.gatedForm,resourceId:t._id,children:o}):o}},26114:(e,t,r)=>{"use strict";r.d(t,{NN:()=>o,gN:()=>i,Bn:()=>c,ks:()=>p});var s=r(73365),a=r(1521),n=r(64574),i=function(e){return e.EMAIL="email",e.NUMBER="number",e.PASSWORD="password",e.TEL="tel",e.TEXT="text",e.URL="url",e}({}),o=function(e){return e.SM="sm",e.MD="md",e.LG="lg",e}({}),l=function(e){return e.LIGHT="light",e.GRADIENT_DARK="gradient-dark",e.GRADIENT_LIGHT="gradient-light",e}({}),c=function(e){return e.FLOATING="floating",e.TOP="top",e}({});let d={[o.SM]:"px-3 py-2 text-sm",[o.MD]:"px-4 py-3 text-base",[o.LG]:"px-4 py-4 text-lg"},m={[o.SM]:"text-sm top-2",[o.MD]:"text-base top-3",[o.LG]:"text-lg top-4"},u={[l.LIGHT]:"",[l.GRADIENT_LIGHT]:"",[l.GRADIENT_DARK]:""},h={[l.LIGHT]:"",[l.GRADIENT_LIGHT]:"",[l.GRADIENT_DARK]:""},x=(0,a.forwardRef)((e,t)=>{let{className:r="",error:x,id:p,isDisabled:f=!1,label:b,maxLength:N,onChange:g,onBlur:P,onFocus:j,placeholder:S,required:w=!1,tabIndex:y,type:T=i.TEXT,size:E=o.MD,variant:v=l.LIGHT,labelPosition:R=c.FLOATING,...L}=e,[A,D]=(0,a.useState)(!1),[I,_]=(0,a.useState)(!1),M=(0,a.useMemo)(()=>["w-full border transition-colors duration-200 focus:outline-none focus:ring-2 bg-white text-brand-tertiary",d[E],u[v],f?"cursor-not-allowed":"",x?"border-red-500 focus:ring-red-500":"border-gray-300 focus:ring-primary",r].join(" "),[r,x,f,E,v]),O=(0,a.useMemo)(()=>R===c.TOP?["block text-sm mb-2 transition-all duration-200",A&&!x?"text-primary":"",x?"text-semantic-error":""].filter(Boolean).join(" "):["absolute left-3 transition-all duration-200 pointer-events-none",m[E],h[v],A||I?"-translate-y-1/2 text-xs px-1":"",x&&"text-semantic-error"].join(" "),[x,I,A,R,E,v]);return(0,s.jsxs)("div",{className:R===c.TOP?"":"relative",children:[(0,s.jsx)("label",{htmlFor:p,className:O,children:b}),(0,s.jsx)("input",{ref:t,className:M,id:p,disabled:f,maxLength:N,onChange:g,onFocus:e=>{D(!0),j&&j(e)},onBlur:e=>{D(!1),_(!!e.target.value),P&&P(e)},placeholder:S,required:w,tabIndex:y,type:T,...L}),x&&(0,s.jsx)(n.EY,{size:n.mK.SMALL_BODY,as:n.dt.SPAN,className:"text-semantic-error text-xs mt-1",children:x})]})});x.displayName="TextInput";let p=a.memo(x)},43361:(e,t,r)=>{Promise.resolve().then(r.bind(r,19054)),Promise.resolve().then(r.bind(r,47966)),Promise.resolve().then(r.bind(r,10757)
1),Promise.resolve().then(r.bind(r,62894)),Promise.resolve().then(r.bind(r,77053)),Promise.resolve().then(r.bind(r,22129)),Promise.resolve().then(r.bind(r,68809)),Promise.resolve().then(r.bind(r,12272)),Promise.resolve().then(r.bind(r,51197)),Promise.resolve().then(r.bind(r,47481)),Promise.resolve().then(r.bind(r,24239)),Promise.resolve().then(r.t.bind(r,18197,23)),Promise.resolve().then(r.t.bind(r,84234,23))},47481:(e,t,r)=>{"use strict";r.d(t,{Image:()=>i});var s=r(73365),a=r(42869);let n=e=>{let{src:t,width:r,quality:s}=e,a=new URL(t);if(a.searchParams.set("auto","format"),a.searchParams.has("fit")||a.searchParams.set("fit",a.searchParams.has("h")?"min":"max"),a.searchParams.has("h")&&a.searchParams.has("w")){let e=parseInt(a.searchParams.get("h"),10),t=parseInt(a.searchParams.get("w"),10);a.searchParams.set("h",Math.round(e/t*r).toString())}return a.searchParams.set("w",r.toString()),s&&a.searchParams.set("q",s.toString()),a.href};function i(e){let t,{loader:r,src:i,...o}=e;if(r)throw TypeError("The `loader` prop is not supported on `Image` components. Use `next/image` directly to use a custom loader.");try{t=new URL(i),e.height&&t.searchParams.set("h","".concat(e.height)),e.width&&t.searchParams.set("w","".concat(e.width))}catch(e){throw TypeError("The `src` prop must be a valid URL to an image on the Sanity Image CDN.",{cause:e})}return(0,s.jsx)(a.default,{...o,src:t.toString(),loader:n})}},49940:(e,t,r)=>{"use strict";r.d(t,{P:()=>s.GatedContent});var s=r(39113)},62894:(e,t,r)=>{"use strict";r.d(t,{RelatedResources:()=>g});var s=r(73365),a=r(1521),n=r(18197),i=r.n(n),o=r(94110),l=r(93015),c=r(29513),d=r(64574);function m(e){let{className:t="",children:r}=e;return(0,s.jsx)("div",{className:"animate-pulse ".concat(t),children:r})}function u(e){let{width:t="full",height:r="md",className:a=""}=e;return(0,s.jsx)("div",{className:"bg-neutral-100 rounded ".concat({full:"w-full","4/5":"w-4/5","3/4":"w-3/4","2/3":"w-2/3","1/2":"w-1/2","1/3":"w-1/3","1/4":"w-1/4"}[t]," ").concat({sm:"h-3",md:"h-4",lg:"h-5"}[r]," ").concat(a)})}function h(e){let{showBorder:t=!0,padding:r=!0,className:a="",children:n}=e;return(0,s.jsx)(m,{className:a,children:(0,s.jsx)("div",{className:"\n ".concat(t?"border border-gray-200":"","\n ").concat(r?"p-4":"","\n "),children:n})})}function x(e){let{count:t=3}=e;return(0,s.jsx)("div",{className:"space-y-4",children:Array.from({length:t}).map((e,t)=>(0,s.jsxs)(h,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsx)(u,{width:"1/4",height:"sm"}),(0,s.jsx)(u,{width:"1/4",height:"md",className:"w-8"})]}),(0,s.jsx)(u,{width:"full",height:"md",className:"mb-2"}),(0,s.jsx)(u,{width:"3/4",height:"md",className:"mb-3"}),(0,s.jsx)(u,{width:"1/2",height:"sm"})]},t))})}var p=r(23584),f=r(46674),b=r(25446);let N=e=>{let{resource:t}=e,{_id:r,_type:a,title:n,slug:o,isGated:c}=t;return(0,s.jsx)("article",{className:"group",children:(0,s.jsxs)(i(),{href:"page"===a?"/".concat(o):"/resources/".concat(o),className:"block",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsx)(d.EY,{as:d.dt.SPAN,size:d.mK.XSMALL_BODY,className:"uppercase",animationPreset:"text.fadeIn",children:function(e){return({article:"Article",collateral:"Collateral",caseStudy:"Case Study",whitepaper:"Whitepaper",ebook:"Ebook",webinar:"Webinar",event:"Event",page:"Page"})[e]||e}(a)}),c&&(0,s.jsx)(d.EY,{as:d.dt.SPAN,size:d.mK.XSMALL_BODY,className:"bg-blue-100 text-blue-800 px-2 py-1 rounded-full",animationPreset:"text.fadeIn",children:"\uD83D\uDD12"})]}),(0,s.jsx)(l.DZ,{as:l.Ex.H4,size:l.R_.H6,className:"mb-2 line-clamp-2 group-hover:text-brand-primary transition-colors",animationPreset:"text.slideUp",children:n})]})},r)};function g(e){let{resourceId:t,title:r,excerpt:n,tags:i,limit:d=5,variant:m="list",heading:u}=e,[h,g]=(0,a.useState)([]),[P,j]=(0,a.useState)(!0),[S,w]=(0,a.useState)(null),[y,T]=(0,a.useState)("");if((0,a.useEffect)(()=>{!async function(){try{j(!0),w(null);let e=await fetch(o.S.RELATED_RESOURCES,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({resourceId:t,title:r,excerpt:n,tags:i,limit:d})});if(!e.ok)throw Error("Failed to fetch related resources: ".concat(e.statusText));let s=await e.json();g(s.resources),T(s.method)}catch(e){console.error("Error fetching related resources:",e),w(e instanceof Error?e.message:"Failed to load related resources")}finally{j(!1)}}()},[t,r,n,i,d]),S||!P&&0===h.length)return null;let E="grid"===m;return(0,s.jsxs)("div",{className:"",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between ".concat(E?"mb-6":"mb-4"),children:[(0,s.jsx)(l.DZ,{as:l.Ex.H3,size:E?l.R_.H5:l.R_.H6,className:"",animationPreset:"text.slideUp",children:null!=u?u:E?"Related Resources":"Related Content"}),(0,b.yz)()&&y&&(0,s.jsx)(c.J,{children:y})]}),P?(0,s.jsx)(x,{count:d}):(0,s.jsx)("div",{className:E?"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4":"space-y-4 mb-6 border-b-brand-tertiary",children:h.map(e=>E?(0,s.jsx)(p.ResourceCard,{resource:e,variant:f.i.COMPACT},e._id):(0,s.jsx)(N,{resource:e},e._id))})]})}},94110:(e,t,r)=>{"use strict";r.d(t,{K:()=>a,S:()=>s});
1let s={SEARCH:"/api/search",CLASSIFY_INTENT:"/api/classify-intent",SUMMARY:"/api/summary",CALLOUTS:"/api/callouts",POPUPS:"/api/popups",INTENT_RESOURCES:"/api/intent-resources",RELATED_RESOURCES:"/api/related-resources",HUBSPOT_SUBMIT:"/api/hubspot/submit",DRAFT_MODE_ENABLE:"/api/draft-mode/enable"};function a(e,t){if(!t)return e;let r=new URL(e,window.location.origin);return Object.entries(t).forEach(e=>{let[t,s]=e;r.searchParams.append(t,String(s))}),r.pathname+r.search}},98809:(e,t,r)=>{"use strict";r.d(t,{f:()=>d});var s=r(73365),a=r(1521),n=r(64574),i=r(26114);let o={[i.NN.SM]:"px-3 py-2 text-sm",[i.NN.MD]:"px-4 py-3 text-base",[i.NN.LG]:"px-4 py-4 text-lg"},l={[i.NN.SM]:"text-sm top-2",[i.NN.MD]:"text-base top-3",[i.NN.LG]:"text-lg top-4"},c=(0,a.forwardRef)((e,t)=>{let{className:r="",error:c,id:d,isDisabled:m=!1,label:u,maxLength:h,onChange:x,onBlur:p,onFocus:f,placeholder:b,required:N=!1,tabIndex:g,size:P=i.NN.MD,labelPosition:j=i.Bn.FLOATING,rows:S=4,...w}=e,[y,T]=(0,a.useState)(!1),[E,v]=(0,a.useState)(!1),R=(0,a.useMemo)(()=>["w-full border transition-colors duration-200 focus:outline-none focus:ring-2 resize-none",o[P],m?"cursor-not-allowed":"",c?"border-semantic-error focus:ring-semantic-error":"border-gray-300 focus:ring-primary",r].join(" "),[P,m,c,r]),L=(0,a.useMemo)(()=>j===i.Bn.TOP?["block text-sm mb-2 transition-all duration-200",y&&!c?"text-primary":"",c?"text-semantic-error":""].filter(Boolean).join(" "):["absolute left-3 transition-all duration-200 pointer-events-none",l[P],y||E?"-translate-y-1/2 text-xs px-1":"",c?"text-semantic-error":""].join(" "),[P,y,E,c,j]);return(0,s.jsxs)("div",{className:j===i.Bn.TOP?"":"relative",children:[(0,s.jsx)("label",{htmlFor:d,className:L,children:u}),(0,s.jsx)("textarea",{ref:t,className:R,id:d,disabled:m,maxLength:h,onChange:x,onFocus:e=>{T(!0),f&&f(e)},onBlur:e=>{T(!1),v(!!e.target.value),p&&p(e)},placeholder:b,required:N,tabIndex:g,rows:S,...w}),c&&(0,s.jsx)(n.EY,{size:n.mK.SMALL_BODY,as:n.dt.SPAN,className:"text-semantic-error text-xs mt-1",children:c})]})});c.displayName="TextArea";let d=a.memo(c)}},e=>
1{e.O(0,[2942,8703,7984,8730,2906,6665,4626,5360,8158,6308,8913,7966,9514,7821,224,2347,3131,7358],()=>e(e.s=43361)),_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.