(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36240],{36240:(e,s,r)=>{"use strict";r.d(s,{Z:()=>P});var a=r(85893),l=r(50391),t=r(74281),i=r(41642),n=r(28224),o=r(84858),c=r(64988),d=r(73911),u=r(94184),m=r.n(u),h=r(39332),x=r(67294),p=r(23312),g=r(82881),b=r.n(g);let f=e=>{let{...s}=e,{toggleMobileMenu:r,mobileMenuOpen:l}=s;return(0,a.jsx)("div",{className:"NavMobileToggle [@media(min-width:819px)]:hidden",children:(0,a.jsxs)("button",{onClick:()=>{r(),(0,p.Vt)({name:"nav-mobile-toggle"})},"aria-expanded":l,role:"button","aria-label":"Toggle mobile menu",className:b().MenuToggle,children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})})};var j=r(49416),v=r.n(j),w=r(78961),y=r(16691),N=r(54283),k=r(83599);let C=e=>{let{title:s,items:r}=e;return(0,a.jsxs)("div",{className:"order-2",children:[(0,a.jsx)("span",{className:"text-3 font-bold uppercase text-soft-black",children:s}),(0,a.jsx)("ul",{className:"mt-2 flex flex-col gap-2",children:r.map((e,s)=>(0,a.jsx)("li",{children:"object"==typeof e&&"label"in e?(0,a.jsx)(c.Z,{href:e.href,is:"underlineOnHoverLight",className:"text-3.5",children:e.label}):(0,a.jsx)(a.Fragment,{children:e})},s))})]})};var S=r(98200);let _=()=>(0,a.jsxs)("div",{className:"mr-4 grid grid-cols-1 gap-4 xs:grid-cols-2 sm:mr-0 sm:grid-cols-3 md:grid-cols-[200px_repeat(5,1fr)]",children:[(0,a.jsx)("div",{className:"order-6 rounded-brand bg-soft-black bg-opacity-6 p-6 xs:order-1 xs:mr-6 sm:col-span-1",children:(0,a.jsxs)(N.Z,{children:[(0,a.jsx)("span",{className:"text-3.5 font-semibold",children:"Want a personalized product tour?"}),(0,a.jsx)("span",{className:"text-3.5",children:"Our team of experts would love to show you around."}),(0,a.jsx)("div",{children:(0,a.jsx)(n.Z,{colorScheme:"black",size:"sm",href:"/request-demo",children:"Request demo"})})]})}),(0,a.jsx)(C,{title:"Overview",items:[{label:"See all features",href:"/features"},(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(y.u_,{children:[(0,a.jsx)(y.iq,{children:(0,a.jsx)(w.xv,{as:"span",className:"cursor-pointer",children:(0,a.jsx)("span",{className:"inline-block text-3.5 ".concat(S.z.underlineOnHoverLight," ").concat(S.a),tabIndex:0,children:"Watch demo"})})}),(0,a.jsx)(y.hz,{children:(0,a.jsx)(k.default,{url:"https://convertkit.wistia.com/medias/klzvd1wln4"})})]})})]}),(0,a.jsx)(C,{title:"Grow",items:[{label:"Recommendations",href:"/features/recommendations"},{label:"Creator Network",href:"https://creatornetwork.kit.com"},{label:"Landing pages",href:"/features/landing-pages"},{label:"Forms",href:"/features/forms"}]}),(0,a.jsx)(C,{title:"Send",items:[{label:"Email designer",href:"/features/email-designer"},{label:"Email marketing",href:"/features/email-marketing"},{label:"Deliverability",href:"/features/deliverability"}]}),(0,a.jsx)(C,{title:"Automate",items:[{label:"Visual Automations",href:"/features/automations"},{label:"Integrations",href:"/features/integrations"},{label:"Apps",href:"/features/apps"}]}),(0,a.jsx)(C,{title:"Earn",items:[{label:"Commerce",href:"/features/commerce"},{label:"Sponsor Network",href:"/sponsor"},{label:"Paid Recommendations",href:"/features/paid-recommendations"},{label:"Paid newsletter",href:"/features/commerce/paid-newsletter"}]})]});var F=r(3684),z=r.n(F);let Z=e=>{let{...s}=e,{title:r,description:l,icon:t,url:i,newTab:n=!1,...d}=s;return(0,a.jsx)(c.Z,{href:i,newTab:n,...d,children:(0,a.jsx)("div",{className:m()(z().ImageContainer,"MenuImageItem group flex rounded-xl p-1 transition-all duration-300 hover:bg-warm-white"),children:(0,a.jsxs)("div",{className:"flex flex-1 flex-row gap-3 p-5",children:[t&&(0,a.jsx)(o.Z,{name:t,className:"min-w-6"}),(0,a.jsxs)(N.Z,{spacing:1,children:[(0,a.jsx)(w.xv,{as:"span",fontSize:"sm",className:m()(z().CreatorTitle,"flex font-semibold"),children:r}),(0,a.jsx)(w.xv,{as:"span",fontSize:"xs",className:"leading-125",children:l})]})]})})})},E=()=>(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4 xs:grid-cols-12",children:[(0,a.jsxs)("div",{className:"order-2 col-span-2 grid grid-cols-2 gap-3.5 xs:order-1 xs:col-span-4 md:col-span-3 xs:flex xs:flex-col sm:order-1",children:[(0,a.jsx)(C,{title:"Support",items:[{label:"Get support",href:"/support"},{label:"Experts",href:"/experts"}]}),(0,a.jsx)(C,{title:"More resources",items:[{label:"Email templates",href:"/marketplace"},{label:"Latest report",href:"/reports/creator-economy-2024"},{label:"Training",href:"/training"},{label:"Podcasts",href:"/resources/podcasts"}]})]}),(0,a.jsxs)("div",{className:"Resources order-1 col-span-8 grid grid-cols-1 place-content-start gap-3 xs:col-span-8 sm:order-2 sm:grid-cols-2 md:order-1 md:col-span-9 md:border-0",children:[(0,a.jsx)(Z,{title:"Blog",dataCtaName:"nav-resources-blog",url:"/resources",description:"How-to guides to help you earn a living online",icon:"Newspaper"}),(0,a.jsx)(Z,{title:"Deliverability Defined",dataCtaName:"nav-resources-deliverability-defined",url:"/resources/podcasts#deliverability-defined",description:"Learn what it takes to land in the inbox",icon:"Mailbox"}),(0,a.jsx)(Z,{title:"I Am A Creator",dataCtaName:"nav-resources-creator-stories",url:"/resources/creator-stories",description:"Inspiring stories of creators",icon:"Book"}),(0,a.jsx)(Z,{title:"Rebranding in Public",dataCtaName:"nav-resources-rebranding-in-public",url:"/rebranding-in-public",description:"Video series about our rebranding process",icon:"Video",newTab:!0}),(0,a.jsx)("div",{className:"mt-auto self-end xs:text-right sm:col-span-2",children:(0,a.jsx)(n.Z,{colorScheme:"black",variant:"opacity",size:"md",href:"/resources",children:"See all resources"})})]})]});var I=r(67707);let L=()=>(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4 xs:grid-cols-12",children:[(0,a.jsx)("div",{className:"order-2 xs:order-1 xs:col-span-5 sm:col-span-3 md:col-span-3",children:(0,a.jsx)(C,{title:"".concat(I.p," for"),items:[{label:"Artists",href:"/use-cases/artists"},{label:"Authors",href:"/use-cases/authors"},{label:"Bloggers",href:"/use-cases/bloggers"},{label:"Coaches",href:"/use-cases/coaches"},{label:"Course creators",href:"/use-cases/course-memberships"},{label:"Marketers",href:"/use-cases/marketers"},{label:"Musicians",href:"/use-cases/musicians"},{label:"Newsletter creators",href:"/use-cases/newsletter-creators"},{label:"Podcasters",href:"/use-cases/podcasters"},{label:"YouTubers",href:"/use-cases/youtubers"}].sort((e,s)=>e.label.localeCompare(s.label))})}),(0,a.jsxs)("div",{className:"UseCases order-1 grid grid-cols-1 grid-rows-[auto,auto,1fr] place-content-start gap-3 xs:order-2 xs:col-span-7 sm:col-span-9 sm:grid-cols-2 md:order-2 md:col-span-9 md:border-0 md:pl-0",children:[(0,a.jsx)(Z,{title:"Email marketing",dataCtaName:"nav-use-cases-email-marketing",url:"/features/email-marketing",description:"Market your products and services using email marketing features built for creators",icon:"Emails"}),(0,a.jsx)(Z,{title:"Run a paid newsletter",dataCtaName:"nav-use-cases-paid-newsletter",url:"/features/commerce/paid-newsletter",description:"Earn recurring income with newsletter subscriptions",icon:"DollarRepeat"}),(0,a.jsx)(Z,{title:"Sell digital products",dataCtaName:"nav-use-cases-sell-digital-products",url:"/features/commerce",description:"Simple product pages, automated fulfillment, and low transaction fees",icon:"Cart"}),(0,a.jsx)(Z,{title:"Level up your link-in-bio",dataCtaName:"nav-use-cases-link-in-bio",url:"/compare/linktree",description:"Create a hub to showcase your content, products, and links with Creator Profile",icon:"LandingPage"}),(0,a.jsx)("div",{className:"mt-auto self-end xs:text-right sm:col-span-2",children:(0,a.jsx)(n.Z,{colorScheme:"black",variant:"opacity",size:"md",href:"/resources/blog/category/case-study",children:"See all case studies"})})]})]});var M=r(84842);let A={theme:"light",menu:"default",sticky:!0},P=e=>{let{openSearchModal:s}=(0,i.A)(),r=(0,h.usePathname)(),{theme:u,menu:p,sticky:g}={...A,...e},[b,j]=(0,x.useState)(!1),{modalIsOpen:w}=(0,M.ZP)(),[y,N]=(0,x.useState)(!1),[k,C]=(0,x.useState)(""),[S,F]=(0,x.useState)(!1),[z,Z]=(0,x.useState)(!0),[I,P]=(0,x.useState)(!1);(0,x.useEffect)(()=>{let e=()=>{window.innerWidth<830?N(!0):N(!1)},s=window.scrollY,r=!1,a=()=>{let e=window.scrollY;r||(window.requestAnimationFrame(()=>{P(window.scrollY>100),es&&e>100&&Z(!1),s=e>0?e:0,r=!1}),r=!0)};return e(),a(),(0,d.Ds)(window.addEventListener("resize",e)),(0,d.Ds)(window.addEventListener("scroll",a)),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",a)}},[]);let R=[{label:"Features"},{label:"Use Cases"},{label:"Resources"},{label:"Pricing",url:"/pricing"}],T=[{label:"Articles",url:"/resources"},{label:"Case Studies",url:"/resources/blog/category/case-study"},{label:"Creator Stories",url:"/resources/creator-stories"}],D=()=>{F(!S),O("")},O=e=>{C(k===e?"":e),j(""!==e&&k!==e)};(0,x.useEffect)(()=>{let e=()=>{w||(O(""),F(!1))},s=s=>{"Escape"===s.key&&e()},r=s=>{s.target.closest("#mega-nav")||e()};return window.addEventListener("keydown",s),window.addEventListener("click",r),()=>{window.removeEventListener("keydown",s),window.removeEventListener("click",r)}},[k,w]);let H=m()(v().Navigation,"default"===p&&g&&I?"fixed":"absolute","left-0 right-0 top-0 z-999","light"===u?v().light:v().dark,I||S?v().isActive:"",z||b?"translate-y-0":"-translate-y-full",I&&z&&"transition-transform duration-300"),W=m()(v().Navigation,"z-999","light"===u?v().light:v().dark,S&&v().isActive,"light"===u?"bg-transparent absolute left-0 right-0 top-0":"bg-soft-black");return(0,a.jsxs)(a.Fragment,{children:["default"===p&&(0,a.jsxs)("nav",{id:"mega-nav","data-testid":"mega-nav",className:H,children:[(0,a.jsx)("div",{className:m()("z- relative z-999 py-6",b||I||S?"bg-white":"bg-transparent",y&&I&&!S&&b?"shadow-2":""),children:(0,a.jsx)(l.W2,{className:"relative z-999",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 [@media(min-width:819px)]:justify-center",children:[(0,a.jsx)("div",{className:"transition-all duration-300 md:mr-16",children:(0,a.jsx)(c.Z,{href:"/",className:"block",children:(0,a.jsx)(t.Z,{width:70,type:"dark"===u?b||I||S?"dark":"light":"dark"})})}),(0,a.jsx)("div",{className:"hidden flex-grow [@media(min-width:819px)]:inline-flex",children:(0,a.jsx)("div",{className:m()("flex gap-1 rounded-3.5 bg-opacity-[.06] p-1","dark"===u?b||I||S?"bg-soft-black":"bg-warm-white":"bg-soft-black"),children:R.map((e,s)=>(0,a.jsx)(x.Fragment,{children:e.url?(0,a.jsx)(n.Z,{colorScheme:"dark"===u?b||I?"black":"white":"black",href:e.url,variant:"ghost",size:"md",children:e.label}):(0,a.jsx)(n.Z,{colorScheme:"dark"===u?b||I?"black":"white":(b||I)&&k===e.label?"white":"black",variant:k===e.label?b&&"dark"===u?"opacity":"solid":"ghost",size:"md",iconRight:"DownFilled",className:m()(k===e.label&&"hover:!bg-white"),iconProps:{size:20,className:"transition-transform duration-300 ".concat(k===e.label&&"transform -rotate-180")},onPress:()=>O(e.label),children:e.label},s)},e.label))})}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"hidden py-1 xs:block",children:(0,a.jsx)(n.Z,{href:"https://app.kit.com/users/login",colorScheme:"dark"===u?I||S||b?"black":"white":"black",variant:"opacity",size:"md",dataCtaName:"header-login",children:"Log in"})}),(0,a.jsx)("span",{className:"py-1",children:(0,a.jsx)(n.Z,{size:"md",href:"https://app.kit.com/users/signup?plan=1k",colorScheme:"blue",className:"w-full sm:w-auto",dataCtaName:"header-signup",children:"Start free trial"})}),(0,a.jsx)(f,{toggleMobileMenu:D,mobileMenuOpen:S})]})]})})}),(0,a.jsxs)(a.Fragment,{children:[""!==k&&(0,a.jsx)("div",{className:"absolute left-0 top-[96px] z-10 hidden max-h-[calc(100vh-102px)] w-full overflow-auto bg-white shadow-4 [@media(min-width:819px)]:block",children:(0,a.jsx)(l.W2,{children:(0,a.jsxs)("div",{className:"mb-8 mt-6",children:["Features"===k&&(0,a.jsx)(_,{}),"Use Cases"===k&&(0,a.jsx)(L,{}),"Resources"===k&&(0,a.jsx)(E,{})]})})}),S&&(0,a.jsxs)("div",{className:"z-10 max-h-[calc(100vh-85px)] w-full overflow-auto bg-white shadow-2 [@media(min-width:819px)]:hidden",children:[(0,a.jsxs)("div",{className:"grid gap-2 space-y-1 px-2 pb-3 pt-2 sm:px-3",children:[R.filter(e=>"Pricing"!==e.label).map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)(n.Z,{colorScheme:"black",variant:"ghost",className:"text-base block w-full justify-between rounded-md text-left",onPress:()=>O(e.label),iconRight:"DownFilled",iconProps:{size:20,className:"transition-transform duration-300 ".concat(k===e.label&&"transform -rotate-180")},size:"lg",children:e.label}),k===e.label&&"Pricing"!==e.label&&(0,a.jsxs)("div",{className:"rounded-lg bg-warm-white bg-opacity-30 py-3 pl-3",children:["Features"===e.label&&(0,a.jsx)(_,{}),"Use Cases"===e.label&&(0,a.jsx)(L,{}),"Resources"===e.label&&(0,a.jsx)(E,{})]})]},e.label)),(0,a.jsx)(n.Z,{size:"lg",href:"/pricing",colorScheme:"black",variant:"ghost",className:"w-full justify-between",children:"Pricing"})]}),(0,a.jsx)("div",{className:"border-t border-gray-200 pb-3 pt-4 xs:hidden",children:(0,a.jsx)("div",{className:"flex items-center px-5",children:(0,a.jsx)(n.Z,{colorScheme:"black",variant:"opacity",size:"lg",className:"w-full justify-center",href:"https://app.kit.com/users/login",children:"Log in"})})})]})]})]}),"simple"===p&&(0,a.jsx)("nav",{className:"absolute left-0 right-0 top-0 z-999 py-6 transition-transform duration-300",children:(0,a.jsx)(l.W2,{children:(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)(c.Z,{href:"/",className:"block",children:(0,a.jsx)(t.Z,{width:70,type:"dark"===u?b||I||S?"dark":"light":"dark"})})})})}),"resources"===p&&(0,a.jsxs)("nav",{id:"mega-nav",className:m()(W),children:[(0,a.jsx)("div",{className:m()("relative z-999 py-6",S?"bg-white":"bg-transparent"),children:(0,a.jsx)(l.W2,{className:"relative z-999",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 sm:justify-center",children:[(0,a.jsx)("div",{className:"transition-all duration-300 md:mr-16",children:(0,a.jsx)(c.Z,{href:"/",className:"block",children:(0,a.jsx)(t.Z,{width:70,type:"dark"===u?b||I||S?"dark":"light":"dark"})})}),(0,a.jsx)("div",{className:"hidden flex-grow sm:inline-flex",children:(0,a.jsx)("div",{className:m()("flex gap-1 rounded-4 bg-opacity-[.06] p-1","light"===u?"bg-soft-black":"bg-warm-white"),children:T.map((e,s)=>(0,a.jsx)(n.Z,{colorScheme:"dark"===u?b||I||S?"black":"white":"black",variant:r===e.url||"/resources"===e.url&&r.includes("/resources/blog/")&&!r.includes("/resources/blog/category/case-study")||"/resources/creator-stories"===e.url&&r.includes("/resources/creator-stories/")||"/resources/blog/category/case-study"===e.url&&r.includes("/resources/blog/category/case-study")?"opacity":"ghost",size:"md",href:e.url,children:e.label},s))})}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("button",{onClick:s,className:"h-6 min-h-6 w-6 min-w-6",style:{color:"var(--link-color)"},children:(0,a.jsx)(o.Z,{name:"Search"})}),(0,a.jsx)("span",{className:"hidden xs:block",children:(0,a.jsx)(n.Z,{href:"https://app.kit.com/users/login",colorScheme:"dark"===u?I||S||b?"black":"white":"black",variant:"opacity",size:"md",dataCtaName:"header-login",children:"Log in"})}),(0,a.jsx)("span",{children:(0,a.jsx)(n.Z,{size:"md",href:"https://app.kit.com/users/signup?plan=1k",colorScheme:"blue",className:"w-full sm:w-auto",dataCtaName:"header-signup",children:"Start free trial"})}),(0,a.jsx)(f,{toggleMobileMenu:D,mobileMenuOpen:S})]})]})})}),(0,a.jsx)(a.Fragment,{children:S&&(0,a.jsxs)("div",{className:"z-10 max-h-[calc(100vh-85px)] w-full overflow-auto bg-white shadow-2 [@media(min-width:819px)]:hidden",children:[(0,a.jsx)("div",{className:"grid gap-2 space-y-1 px-2 pb-3 pt-2 sm:px-3",children:T.map(e=>(0,a.jsx)("div",{children:(0,a.jsx)(n.Z,{size:"md",href:e.url,colorScheme:"black",variant:"ghost",className:"w-full justify-between",children:e.label})},e.label))}),(0,a.jsx)("div",{className:"border-t border-gray-200 pb-3 pt-4 xs:hidden",children:(0,a.jsx)("div",{className:"flex items-center px-5",children:(0,a.jsx)(n.Z,{colorScheme:"black",variant:"opacity",size:"md",className:"w-full justify-center",href:"https://app.kit.com/users/login",children:"Log in"})})})]})})]})]})}},41642:(e,s,r)=>{"use strict";r.d(s,{z:()=>T,A:()=>R});var a=r(85893),l=r(67294),t=r(28224),i=r(82987),n=r(50391),o=r(78961),c=r(84858),d=r(37386),u=r(54942),m=r(29399),h=r(94184),x=r.n(h),p=r(14104),g=r.n(p);let b=e=>{let{query:s,refine:r}=(0,d.l)(e),{status:t}=(0,u.b)(),[i,n]=(0,l.useState)(s),o=(0,l.useRef)(null),h=e=>{n(e),r(e)};return(0,a.jsx)("div",{children:(0,a.jsxs)("form",{action:"",role:"search",noValidate:!0,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),o.current&&o.current.blur()},onReset:e=>{e.preventDefault(),e.stopPropagation(),h(""),o.current&&o.current.focus()},className:"relative",children:[(0,a.jsx)("label",{htmlFor:"search",className:"sr-only",children:"Search articles"}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,a.jsx)(c.Z,{name:"Search",className:"h-6 w-6 text-kit-blue","aria-hidden":"true"})}),(0,a.jsxs)("button",{type:"reset",className:x()("absolute inset-y-0 right-0 flex cursor-pointer items-center pr-3 text-gray-500 transition-opacity duration-200",0===i.length||"stalled"===t?"opacity-0":"opacity-100"),onClick:()=>(o.current&&(o.current.value="",o.current.focus()),h("")),children:[(0,a.jsx)("span",{className:"sr-only",children:"Clear search"}),(0,a.jsx)(c.Z,{name:"CloseCircleFilled"})]}),(0,a.jsx)("input",{ref:o,placeholder:"What are you looking for?",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,maxLength:512,type:"search",value:i,onChange:e=>{h(e.currentTarget.value)},autoFocus:!0,id:"search",className:x()("w-full rounded-lg border border-gray-200 bg-gray-50 py-2 pl-12 pr-2 text-soft-black placeholder:text-gray-500 focus-visible:outline-soft-black ".concat((0,m.J)("lg")),g().SearchInput)})]})})};var f=r(37748);let j=()=>{let{searchFilter:e,setSearchFilter:s,availableFilters:r}=R(),l=e=>{s(e)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb-1 hidden gap-x-1 sm:flex",children:r.map(s=>(0,a.jsx)("button",{className:x()("rounded-t rounded-br px-2 text-3.5 font-semibold uppercase outline-none transition-colors duration-200 focus:outline-none",e===s?"bg-soft-black text-white":"text-soft-black hover:bg-warm-white focus:bg-warm-white"),onClick:e=>{l(e.currentTarget.dataset.value)},"data-value":s,id:"search-filter-".concat(s),children:s},s))}),(0,a.jsx)("div",{className:"mb-4 sm:hidden",children:(0,a.jsx)(f.Z,{name:"resources-search-filter",options:[...r.map(e=>({value:e,label:e}))],color:"white",value:e,onChange:e=>{l(e.target.value)}})})]})},v=()=>{let{closeSearchModal:e}=R();return(0,l.useEffect)(()=>{let s=s=>{"Escape"===s.key&&e()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)}),(0,a.jsx)("div",{className:"relative w-full bg-white pb-8 pt-14",children:(0,a.jsxs)(n.W2,{content:!0,children:[(0,a.jsxs)("div",{className:"mb-8 flex items-center",children:[(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(o.X6,{as:"h1",children:"Search"})}),(0,a.jsxs)("button",{onClick:e,className:"hidden flex-col text-3 text-soft-black transition-colors duration-300 hover:text-soft-black focus:text-soft-black xs:flex",children:[(0,a.jsx)(c.Z,{name:"Close"}),"esc"]})]}),(0,a.jsx)(j,{}),(0,a.jsx)(b,{})]})})};var w=r(2417),y=r(2684),N=r(58685),k=r(64988),C=r(20627),S=r(46190);let _=e=>{let{type:s,hit:r}=e;if(r){var l,t,i,n,o;switch(s){case"Articles":return(0,a.jsx)(C.default,{postData:{__typename:r.post_type,id:r.post_id,title:r.post_title,url:"/resources/blog/".concat(r.permalink.split("/").pop()),image:(null==r?void 0:null===(l=r.images)||void 0===l?void 0:l.thumbnail)?null==r?void 0:null===(i=r.images)||void 0===i?void 0:null===(t=i.thumbnail)||void 0===t?void 0:t.url:null}},r.post_id);case"Creator Stories":return(0,a.jsx)(S.Z,{title:r.post_title,cta:"Read story",url:"/resources/creator-stories/".concat(r.permalink.split("/").pop()),shadow:!0,description:r.post_excerpt,image:null==r?void 0:null===(o=r.images)||void 0===o?void 0:null===(n=o.thumbnail)||void 0===n?void 0:n.url,size:"large"},r.post_id);default:return null}}},F=function(e){let{type:s,outlink:r,...t}=e,{hits:i}=(0,y.O)(t),{results:d}=(0,u.b)(),{query:m}=d,h=m&&m.length>0?200:20,{searchFilter:p}=R(),g=p===s?9:3,[b,f]=(0,l.useState)(0),j=i.slice(b*g,b*g+g),v=b>0,w=b{0!==b&&f(0)},[i]);let C=v||w;return 0===i.length&&"All"===p||p!==s&&"All"!==p?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N.T,{hitsPerPage:h}),(0,a.jsx)("div",{children:j.length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex",children:[r&&(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)(k.Z,{href:r,is:"primary",className:"inline-block",children:[" ",(0,a.jsx)(o.xv,{color:"text-soft-black",as:"span",children:s})]})}),(0,a.jsxs)("div",{className:"controls flex items-center gap-2 sm:gap-4",children:[(0,a.jsx)(()=>0===i.length?null:(0,a.jsxs)(o.xv,{className:"uppercase text-gray-800",fontSize:"text-2.5 sm:text-3.5",children:[i.length," result",i.length>1?"s":""]}),{}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("button",{className:x()("flex h-6 w-6 items-center justify-center rounded-bl rounded-tl border-y border-l border-gray-500 transition-colors duration-200",v?"text-gray-800 hover:bg-gray-50":"text-gray-500"),onClick:()=>{b>0&&f(b-1)},children:(0,a.jsx)(c.Z,{name:"Left"})}),(0,a.jsx)("button",{className:x()("flex h-6 w-6 items-center justify-center rounded-br rounded-tr border border-gray-500 transition-colors duration-200",w?"text-gray-800 hover:bg-gray-50":"text-gray-500"),onClick:()=>{bC?(0,a.jsxs)(o.xv,{className:"text-gray-800",fontSize:"text-2.5 sm:text-3.5",children:[b+1,"/",Math.ceil(i.length/g)]}):null,{})]})]})]}),(0,a.jsx)(n.LZ,{size:4}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-3",children:j.map((e,r)=>(0,a.jsx)("div",{children:(0,a.jsx)(_,{type:s,hit:e})},"".concat(s).concat(r)))})]}):(0,a.jsxs)("div",{className:"flex h-full flex-col items-center justify-center",children:[(0,a.jsx)(o.X6,{as:"h2",children:"No results found"}),(0,a.jsxs)(o.xv,{children:["Sorry, we couldn't find any results in ",s,' for "',m,'"']})]})})]})},z=()=>{let{results:e}=(0,u.b)(),s=e&&0!==e.nbHits||""===e.query;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"bg-warm-white pb-20 pt-8",children:(0,a.jsx)(n.W2,{content:!0,children:(0,a.jsx)("div",{className:"flex flex-col gap-12",children:s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.g,{indexName:"ck_wp_posts_post",children:(0,a.jsx)(F,{type:"Articles",outlink:"/resources"})}),(0,a.jsx)(w.g,{indexName:"ck_wp_posts_stories",children:(0,a.jsx)(F,{type:"Creator Stories",outlink:"/resources/creator-stories"})})]}):(0,a.jsxs)("div",{className:"flex h-full flex-col items-center justify-center",children:[(0,a.jsx)(o.X6,{as:"h2",children:"No results found"}),(0,a.jsxs)(o.xv,{children:["Sorry, we couldn't find any results for \"",e.query,'"']})]})})})})})};var Z=r(70290);let E=r.n(Z)()("B6DJFE7A76","b36ba1a7fb8eeab4c37f5194da3531e0"),I=function(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(i.p,{searchClient:E,indexName:"ck_wp_posts_post",children:[(0,a.jsx)(v,{}),(0,a.jsx)(z,{})]})})};var L=r(11163);function M(e){let{isOpen:s,onClose:r}=e,i=(0,l.useRef)(null),[n,o]=(0,l.useState)(!1),c=(0,L.useRouter)();return(0,l.useEffect)(()=>(o(!0),setTimeout(()=>{document.body.classList.add("overflow-hidden")},300),()=>document.body.classList.remove("overflow-hidden")),[i]),(0,l.useEffect)(()=>{let e=()=>{s&&r()};return c.events.on("routeChangeComplete",e),()=>{c.events.off("routeChangeComplete",e)}},[s,r,c]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:i,className:x()("SearchWindow duration-600 fixed bottom-0 left-0 right-0 top-0 z-999 w-full transform overflow-y-scroll bg-gray-50 transition-all duration-300"),style:{transform:n?"translateY(0)":"translateY(-20%)",opacity:n?1:0},children:(0,a.jsx)(I,{})}),(0,a.jsx)("div",{className:"fixed bottom-0 right-0 z-999 w-full bg-white p-1 xs:hidden",children:(0,a.jsx)(t.Z,{size:"md",onClick:r,className:"flex w-full items-center justify-center gap-2",colorScheme:"black",iconLeft:"Close",children:"Close search"})})]})}let A=["All","Articles","Creator Stories"],P=(0,l.createContext)({isOpen:!1,openSearchModal:()=>{},closeSearchModal:()=>{},searchFilter:"All",setSearchFilter:()=>{},availableFilters:A}),R=()=>(0,l.useContext)(P),T=e=>{let{children:s}=e,[r,t]=(0,l.useState)(!1),[i,n]=(0,l.useState)("All"),o=()=>t(!1);return(0,a.jsxs)(P.Provider,{value:{isOpen:r,openSearchModal:()=>t(!0),closeSearchModal:o,searchFilter:i,setSearchFilter:e=>{n(e)},availableFilters:A},children:[s,r&&(0,a.jsx)(M,{isOpen:r,onClose:o})]})}},20627:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>n});var a=r(85893),l=r(46190),t=r(94184),i=r.n(t);let n=e=>{let{postData:s,...r}=e,{__typename:t,databaseId:n,categories:o=null,title:c,url:d,image:u}=s,{className:m,...h}=r;return(0,a.jsx)("div",{id:"".concat(t,"-").concat(n),className:i()(m,"h-full"),children:(0,a.jsx)(l.Z,{cta:"Read article",size:"small",className:"border border-gray-200",title:c,image:u,url:d,...h,description:o&&(0,a.jsx)("span",{className:"text-3.5 italic ".concat(t,"-categories text-gray-700"),children:o.join(", ")})})})}},26504:(e,s,r)=>{"use strict";r.d(s,{Z:()=>n});var a=r(85893),l=r(40257),t=r(94184),i=r.n(t);let n=e=>{let{children:s,radius:r="brand",shadow:t,bgColor:n="white",className:o,theme:c,...d}=e;return(0,a.jsx)("div",{className:i()(c&&l.default.cardStyles[c],r&&!c&&"rounded-".concat(r),n&&!c&&"bg-".concat(n),t&&!c&&"shadow-3",o),...d,children:s})}},46190:(e,s,r)=>{"use strict";r.d(s,{Z:()=>g});var a=r(85893),l=r(31853),t=r(78961),i=r(67294),n=r(28224),o=r(26504),c=r(45306),d=r(64988),u=r(83911),m=r.n(u),h=r(94184),x=r.n(h),p=r(56402);let g=e=>{let{children:s,image:r,size:u="large",title:h,cta:g,description:b,url:f,shadow:j,...v}=e,w={large:{width:320,height:256},small:{width:320,height:160}},[y,N]=(0,i.useState)(0),k=(0,i.useRef)(null);(0,i.useEffect)(()=>{N(k.current.offsetHeight)},[k,N]);let C=()=>{let e=r||"".concat(l.tc,"/post/HERO-creator-partnerships.jpg?fit=scale&fm=webp&w=590");return(0,a.jsx)(c.Z,{src:(0,p.Bq)(e,{w:w[u].width.toString(),q:"70",fm:"webp"}),alt:h,width:w[u].width,height:w[u].height,className:x()(m().Image,"w-full object-cover object-top transition-all duration-300 ease-out")})};return(0,a.jsx)(o.Z,{bgColor:"white",radius:"xl",shadow:j,className:x()(m().Card,v.className,"large"===u?m().Card_large:m().Card_small,"flex h-full flex-col overflow-hidden"),style:{"--card-offset":"".concat(y,"px")},children:(0,a.jsxs)("div",{className:x()(m().Tape,"relative h-full transition-transform duration-300 ease-out"),children:[(0,a.jsx)("div",{className:x()(m().ImageContainer,"overflow-hidden transition-all duration-300 ease-out"),children:f?(0,a.jsx)(d.Z,{href:f,tabIndex:-1,children:(0,a.jsx)(C,{})}):(0,a.jsx)(C,{})}),(0,a.jsxs)("div",{className:x()("flex-1 p-5 md:p-6"),children:[(0,a.jsx)(d.Z,{href:f,children:(0,a.jsx)(t.X6,{as:"h5",className:"mb-2.5",children:h})}),"string"==typeof b?(0,a.jsx)(t.xv,{fontSize:"sm",children:b}):b,(0,a.jsx)("div",{className:x()(m().Action,"absolute bottom-0 left-0 right-0 px-5 transition-transform md:px-6"),children:(0,a.jsx)(n.Z,{variant:"opacity",colorScheme:"black",size:"lg",className:"w-full text-center",ref:k,href:f,children:g})})]})]})})}},37748:(e,s,r)=>{"use strict";r.d(s,{Z:()=>h});var a=r(85893),l=r(84858),t=r(73911),i=r(94184),n=r.n(i),o=r(58783),c=r(67294),d=r(1453),u=r.n(d);let m=(0,c.forwardRef)((e,s)=>{let{name:r="",options:i,value:d,onChange:m,color:h="blue"}=e,[x,p]=(0,c.useState)({label:"",value:""});(0,c.useEffect)(()=>{let e=i.find(e=>e.value===d);e&&e.value!==x.value&&p(e)},[d,i]);let{isOpen:g,getToggleButtonProps:b,getMenuProps:f,highlightedIndex:j,getItemProps:v,getLabelProps:w}=(0,o.L7)({items:i,onSelectedItemChange:e=>{p(e.selectedItem),m({target:{name:r,value:e.selectedItem.value}})},itemToString:e=>e?e.label:""}),y={blue:{default:"py-3 pl-4 pr-2",colors:"bg-blue-500 hover:bg-blue-600 focus:bg-blue-600 text-white",open:"border-blue-700 bg-blue-600",listColors:"bg-blue-500 text-white border-blue-600",listHighlight:"bg-blue-600"},white:{default:"py-2 pl-3 pr-1 rounded-xl",colors:"bg-white hover:bg-gray-50 focus:bg-gray-50 text-gray-800 border-gray-300 border ",open:"rounded-tl-xl rounded-tr-xl bg-gray-100",listColors:"bg-white text-gray-800 border-gray-300 border-1 p-0.5 rounded-xl mt-2",listHighlight:"bg-gray-100 rounded-xl"},gray:{default:"py-2 pl-3 pr-1 rounded-xl",colors:"bg-[#F2F2F2] hover:bg-[#E4E4E4] focus:bg-[#F2F2F2] border-1 border-[#F2F2F2!important] text-gray-700 hover:border-[#E4E4E4!important] focus:border-[#F2F2F2!important]",open:"rounded-tl-xl rounded-tr-xl border-[#F2F2F2!important] ",listColors:"bg-white text-gray-800 border-gray-300 p-0.5 rounded-xl mt-2",listHighlight:"bg-[#F2F2F2] rounded-xl"}};return(0,a.jsxs)("div",{className:"select-menu relative",id:"".concat((0,t.Ei)(r)),children:[(0,a.jsxs)("button",{className:n()("flex w-full items-center text-left font-semibold transition-colors duration-300",y[h].default,g?"rounded-tl-md rounded-tr-md "+y[h].open:"rounded-md",y[h].colors),style:{boxShadow:g&&"gray"===h?"0px 0px 0px 1px #FFF, 0px 0px 0px 2px #44B1FF":"none"},type:"button",...b(),"aria-label":"Open select menu",children:[(0,a.jsx)("span",{className:"mr-2 flex-1",...w,children:x.label||d}),(0,a.jsx)(l.Z,{name:"Down",size:24,className:n()("self-center transition-transform duration-300 ease-out",g&&"-rotate-180")})]}),(0,a.jsx)("ul",{className:n()(u().ScrollBox,"absolute z-50 w-full overflow-scroll",y[h].listColors,g&&"border-b border-l border-r",g&&"gray"===h&&"border-t",!g&&"invisible"),style:{maxHeight:"14.5rem"},"aria-label":"Select options",...f(),children:i.map((e,s)=>(0,a.jsx)("li",{className:n()("cursor-pointer px-4 py-2",j===s?y[h].listHighlight:"",{"pointer-events-none hidden":!g},g&&"gray"===h&&"rounded-xl"),...v({item:e.value,index:s}),"aria-label":"Select ".concat(e.label),children:e.label},"".concat(e.value).concat(s)))})]})});m.displayName="Select Menu";let h=m},3684:e=>{e.exports={ImageContainer:"MenuImageItem_ImageContainer__4aOsd"}},82881:e=>{e.exports={MenuToggle:"MobileMenuToggle_MenuToggle__81fnk"}},49416:e=>{e.exports={dark:"style_dark__yxTc2",isActive:"style_isActive__DmYuP",light:"style_light__9J_3v"}},14104:e=>{e.exports={CardItem:"SearchStyles_CardItem__XeMen",SearchInput:"SearchStyles_SearchInput__XOCTx"}},83911:e=>{e.exports={Card:"ImageCard_Card__DbcCu",Card_large:"ImageCard_Card_large__Jn_oM",Card_small:"ImageCard_Card_small__98F2G",Tape:"ImageCard_Tape__yEYIa",Action:"ImageCard_Action___PGNn",Image:"ImageCard_Image__E4VDK",ImageContainer:"ImageCard_ImageContainer__57cbp",slide:"ImageCard_slide__o9Us6"}},1453:e=>{e.exports={ScrollBox:"SelectMenu_ScrollBox__v7Lk5"}}}]);