1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2111],{229:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});var a=r(51898),l=r(87282),s=r(72571),o=r(21749);let n=({ref:e,...t})=>{let{className:r,htmlElement:n="div",resource:i}=t,c="string"!=typeof i&&i?.mimeType?.includes("video"),d=n||l.Fragment;return(0,a.jsx)(d,{ref:e,...null!==n?{className:r}:{},children:c?(0,a.jsx)(o.Video,{...t}):(0,a.jsx)(s.Image,{...t})})}},2111:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Arrow:()=>V,BulletList:()=>O,Pill:()=>eN,RichText:()=>e5,RichTextWithTOC:()=>e8,jsxConverters:()=>e2});var a=r(51898),l=r(16119),s=r(83774),o=r(19907),n=r(2236),i=r(87282),c=r(94285),d=r.n(c);let u=({children:e,className:t})=>(0,a.jsx)("p",{className:[d().label,t].filter(Boolean).join(" "),children:e});var p=r(19152),m=r(229);let h=e=>{let{className:t,node:{fields:r,value:l}}=e,o="div",n={};return r?.enableLink&&(o=s.A,n={...r?.link}),"string"!=typeof l&&"number"!=typeof l&&(0,a.jsx)("div",{className:t,style:{},children:(0,a.jsx)(o,{...n,children:(0,a.jsx)(m.$,{resource:l})})})};var _=r(29803),x=r(14438),g=r(58775),j=r.n(g);let f=({as:e="h2",children:t})=>{let r=(0,i.useRef)(null),l=(0,x.s)(r),[s,o]=(0,i.useState)({x:0,y:0});(0,i.useEffect)(()=>{let e,t=!1,a=e=>{t||(t=!0,requestAnimationFrame(function(){o({x:0,y:0})}))},l=e=>{t||(t=!0,requestAnimationFrame(function(a){if(r.current){let t=r.current.getBoundingClientRect();o({x:e.clientX-t.left,y:e.clientY-t.top})}t=!1}))};return r.current&&(e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?(window.addEventListener("mousemove",l),window.addEventListener("resize",a)):(window.removeEventListener("mousemove",l),window.removeEventListener("resize",a))})},{rootMargin:"0px"})).observe(r.current),()=>{e&&e.disconnect(),window.removeEventListener("mousemove",l),window.removeEventListener("resize",a)}},[r,l]);let n=(0,i.useMemo)(()=>`calc(${s.x}px - 100vw) calc(${s.y}px - 100vh)`,[s]);return(0,a.jsx)("div",{className:[j().wrapper].filter(Boolean).join(" "),children:(0,a.jsx)(e,{className:[j().container].filter(Boolean).join(" "),ref:r,style:{backgroundPosition:n},children:t})})};var v=r(14945),w=r(34881),b=r.n(w),y=r(72705),C=r(41787),N=r.n(C);let k=e=>{let{name:t,slug:r,description:l,image:s}=e;return(0,a.jsxs)(b(),{className:N().templateCard,href:`/new/clone/${r}`,children:[(0,a.jsx)("div",{className:N().imageContainer,children:(0,a.jsx)(v.default,{alt:`${t} template thumbnail image`,fill:!0,src:s})}),(0,a.jsxs)("div",{className:N().templateCardContent,children:[(0,a.jsxs)("h5",{children:[t," ",(0,a.jsx)(y.H,{className:N().arrow})]}),(0,a.jsx)("p",{children:l})]})]})},B=e=>{let{templates:t}=e;return t&&Array.isArray(t)&&t.length>0&&(0,a.jsx)("div",{className:N().templateCardWrapper,children:t.map(e=>(0,a.jsx)(k,{...e},e.id))})};var T=r(2520),L=r.n(T);let $=({id:e,title:t})=>(0,a.jsx)("div",{className:L().wrap,children:(0,a.jsx)("div",{className:L().innerWrap,children:(0,a.jsx)("iframe",{allow:"autoplay;",allowFullScreen:!0,className:L().iframe,frameBorder:"0",src:`https://www.youtube.com/embed/${e}`,title:t})})});r(62952);var D=r(78510),M=r(34875),S=r(14926),P=r(74411),E=r(96718),A=r(35217),F=r(10166),R=r.n(F);let W=({file:e})=>{let[t,r]=(0,i.useState)(!1);return"string"!=typeof e&&e.url?(0,a.jsx)(S.m,{className:R().button,onClick:()=>{r(!0),setTimeout(()=>r(!1),1e3)},text:t?"Downloading!":"Download",unstyled:!0,children:(0,a.jsx)("a",{download:e.filename,href:e.url,target:"_blank",children:t?(0,a.jsx)(E.S,{}):(0,a.jsx)(P.s,{})})}):null},I=({value:e})=>{let[t,r]=(0,i.useState)(!1);return(0,a.jsx)(S.m,{className:R().button,onClick:()=>{navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),1e3)},text:t?"Copied!":"Copy to clipboard",unstyled:!0,children:t?(0,a.jsx)(E.S,{}):(0,a.jsx)(A.T,{})})},z=({downloads:e})=>(0,a.jsx)("div",{className:R().wrapper,children:e&&e.map(({id:e,name:t,background:r,copyToClipboard:l,copyToClipboardText:s,file:o,thumbnail:n,thumbnailAppearance:i})=>{let c=n&&"object"==typeof n?n:o&&"object"==typeof o?o:null;return(0,a.jsxs)("div",{className:R().downloadCard,children:[c&&(0,a.jsx)(m.$,{className:[R().downloadCardThumbnail,R()[r]].join(" "),imgClassName:R()[i],resource:c}),(0,a.jsxs)("div",{className:R().downloadCardInfo,children:[(0,a.jsx)("span",{className:R().downloadCardName,children:t}),l&&s&&(0,a.jsx)(I,{value:s}),(0,a.jsx)(W,{file:o})]})]},e)})});r(98810);let H={up:"â",down:"â",left:"â",right:"â"}
1,V=({direction:e})=>(0,a.jsx)("div",{className:`docs-arrow docs-arrow--${e}`,children:H[e]});var q=r(28082);r(57273);let O=({items:e})=>(0,a.jsx)("div",{className:"bullet-list-wrapper",children:(0,a.jsx)("ul",{className:"bullet-list",children:e.map((e,t)=>(0,a.jsxs)("li",{className:`bullet-list__item bullet-list__item--${e.icon}`,children:[(0,a.jsx)("span",{className:"bullet-list__icon",children:"check"===e.icon?(0,a.jsx)(E.S,{}):(0,a.jsx)(q.U,{})}),(0,a.jsx)("span",{className:"bullet-list__text",children:e.text})]},t))})});var Q=r(36112),U=r(15266);r(28831);let G=/^\/docs\/(local\/v4|local|beta|v2|dynamic)(?=\/)/,Z=({description:e,link:t,title:r})=>{let l=function(e,t){if(!t||!e.startsWith("/docs/"))return e;let r=t.match(G);if(!r)return e;let a=r[1];return e.startsWith(`/docs/${a}/`)?e:e.replace("/docs/",`/docs/${a}/`)}(t,(0,U.usePathname)());return(0,a.jsxs)(b(),{className:"docs-card",href:l,children:[(0,a.jsxs)("div",{className:"docs-card__title-row",children:[(0,a.jsx)("h4",{className:"docs-card__title",children:r}),(0,a.jsx)(y.H,{className:"docs-card__icon"})]}),(0,a.jsx)("p",{className:"docs-card__description",children:e}),(0,a.jsx)(Q.U,{className:"docs-card__scanlines"})]})};r(59082);let J=({children:e,variant:t="default"})=>{let r=["docs-card-group",`docs-card-group--${t??"default"}`];return(0,a.jsx)("div",{className:r.join(" "),children:e})};var Y=r(81045),K=r(91102),X=r.n(K);let ee="payload:code-tab-change",et="payload-docs-code-tab",er=({tabs:e})=>{let[t,r]=i.useState(0),[l,s]=i.useState(!1);return(i.useEffect(()=>{let t=t=>{let a=e?.findIndex(e=>e.label===t)??-1;a>=0&&(r(a),s(!1))},a=e=>{t(e.detail)};return t(localStorage.getItem(et)),window.addEventListener(ee,a),()=>window.removeEventListener(ee,a)},[e]),e?.length)?(0,a.jsxs)(Y.bL,{className:X().root,onValueChange:t=>{let a=Number(t),l=e[a]?.label;r(a),s(!1),l&&(localStorage.setItem(et,l),window.dispatchEvent(new CustomEvent(ee,{detail:l})))},value:String(t),children:[(0,a.jsxs)("div",{className:X().bar,children:[(0,a.jsx)(Y.B8,{"aria-label":"Code examples",className:X().list,children:e.map((e,t)=>(0,a.jsx)(Y.l9,{className:X().trigger,value:String(t),children:e.label},e.id??t))}),(0,a.jsx)("button",{"aria-label":l?"Copied code":"Copy code to clipboard",className:X().copyButton,onClick:()=>{navigator.clipboard.writeText(e[t]?.code??""),s(!0),setTimeout(()=>s(!1),1500)},title:l?"Copied":"Copy code",type:"button",children:l?(0,a.jsx)(E.S,{size:"large"}):(0,a.jsx)(A.T,{size:"large"})})]}),e.map((e,t)=>(0,a.jsx)(Y.UC,{className:X().content,value:String(t),children:(0,a.jsx)(o.A,{children:e.code??"",disableMinHeight:!0,language:e.language??void 0,parentClassName:X().code})},e.id??t))]}):null};var ea=r(82939),el=r(4818),es=r.n(el);let eo=()=>(0,a.jsx)("div",{"aria-busy":"true",className:es().unsupported,children:"Loading component exampleâ¦"}),en=(0,ea.default)(()=>Promise.all([r.e(5635),r.e(7960),r.e(3098),r.e(4014),r.e(5018),r.e(1248),r.e(6813),r.e(1913),r.e(9025)]).then(r.bind(r,49025)).then(e=>e.V3ComponentPreview),{loadableGenerated:{webpack:()=>[49025]},loading:eo}),ei=(0,ea.default)(()=>Promise.all([r.e(6929),r.e(3330),r.e(4014),r.e(5018),r.e(1248),r.e(7271),r.e(4013)]).then(r.bind(r,49862)).then(e=>e.V4ComponentPreview),{loadableGenerated:{webpack:()=>[49862]},loading:eo}),ec=e=>"v4"===e.version?(0,a.jsx)(ei,{...e}):(0,a.jsx)(en,{...e}),ed=(0,i.createContext)({addHeading:()=>null,toc:[]});var eu=r(64892),ep=r.n(eu);let em=e=>{let{bold:t,className:r,color:l,size:s}=e;return(0,a.jsxs)("svg",{className:[r,ep().icon,l&&ep()[l],s&&ep()[s],t&&ep().bold].filter(Boolean).join(" "),fill:"none",height:"24",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),(0,a.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})},eh=function(e){let t="\xe0\xe1\xe2\xe4\xe6\xe3\xe5ÄÄÄ
\xe7ÄÄÄÄ\xe8\xe9\xea\xebÄÄÄÄÄǵḧ\xee\xef\xedīį\xecÅḿ\xf1ÅǹÅ\xf4\xf6\xf2\xf3Å\xf8Å\xf5Åá¹ÅÅ\xdfÅÅ¡ÅÈÅ¥È\xfb\xfc\xf9\xfaÅ«Çůűųáºáº\xff\xfdžźż\xb7/_,:;
1",r=RegExp(t.split("").join("|"),"g");return e.toString().toLowerCase().replace(/\s+/g,"-").replace(r,e=>"aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------".charAt(t.indexOf(e))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},e_=e=>{if("string"==typeof e)return e;let t=function e(t){if(t.props&&t.props.children){if("string"==typeof t.props.children)return t.props.children;else if("object"==typeof t.props.children)return e(t.props.children)}return""}(e);return"string"==typeof t?t:e.props.children};var ex=r(35865),eg=r.n(ex);let ej=({node:e,nodesToJSX:t})=>{let r=JSON.parse(JSON.stringify(e)),l=r?.children?.length?r.children[r.children.length-1]:null,s=null;if(l&&"text"===l.type){let e=l.text?.match(/#([\w-]+)\s*$/);e&&(s=e[1],l.text=l.text.slice(0,e.index).trim())}let o=r.children.map(e=>{if("text"===e.type)return e.text}).join(" ");if(!s){let{label:e,tag:t}=(e=>{if(Array.isArray(e))return{label:e.map(e_).join("")};if("string"==typeof e){let t=e.match(/#([\w-]+)\s*$/);return t?{label:e.slice(0,t.index),tag:t[1]}:{label:e_(e)}}return{label:e_(e)}})(o);s=eh(t??e)}let{addHeading:n}=(0,i.use)(ed);(0,i.useEffect)(()=>{n(s,o,"secondary")},[n,s,o]);let c=r.tag.toLowerCase(),d=t({nodes:r.children});return(0,a.jsxs)(c,{className:eg().node,id:s,children:[(0,a.jsx)(b(),{"aria-label":`Link to ${o}`,href:`#${s}`,replace:!0,children:(0,a.jsx)(em,{className:eg().linkedHeading,size:"large"})}),d]})};function ef({id:e,collection:t,depth:r=0,enabled:a=!0,fallback:l}){let[s,o]=(0,i.useState)(l),[n,c]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{a&&e?(async()=>{c(!0);try{let a=await fetch(`/api/${t}/${e}?depth=${r}`,{credentials:"include",method:"GET"});if(!a.ok){console.error("Error fetching document for id",e,"collection",t,"error",a.statusText),o(l);return}let s=await a.json();o(s)}catch(r){console.error("Error populating document for id",e,"collection",t,"error",r),o(l)}finally{c(!1)}})():o(l)},[t,r,a,l,e]),{data:s,loading:n}}var ev=r(41170),ew=r(83458),eb=r.n(ew);let ey=({alt:e,caption:t,srcDark:r,srcDarkId:l,srcLight:s,srcLightId:o})=>{let{theme:n}=(0,ev.a)(),i="dark"===n,c=i?r:s,d=i?l:o,{data:u}=ef({id:d,collection:"media",enabled:!c&&!!d}),p=c??u?.url;return p?(0,a.jsxs)("div",{className:eb().imageWrap,children:[(0,a.jsx)("img",{alt:e,src:p}),t&&(0,a.jsx)("div",{className:eb().caption,children:t})]}):null},eC=e=>{let{data:t}=ef({id:"object"==typeof e.media?e.media.id:e.media,collection:"media",depth:1,enabled:"object"!=typeof e.media,fallback:e?.media});return"object"!=typeof t?(0,a.jsx)("p",{children:"Loading..."}):(0,a.jsx)(ey,{alt:t?.alt??"",caption:e?.caption??"",srcDark:"object"==typeof t?.darkModeFallback?t?.darkModeFallback?.url??void 0:void 0,srcDarkId:"object"!=typeof t?.darkModeFallback?t?.darkModeFallback:void 0,srcLight:t?.url??void 0})};r(10582);let eN=({text:e})=>(0,a.jsx)("div",{className:"rich-text-pill",children:e});var ek=r(59165);let eB=e=>{let{bold:t,className:r,color:l,rotation:s,size:o}=e;return(0,a.jsxs)("svg",{className:[r,ep().icon,l&&ep()[l],o&&ep()[o],t&&ep().bold].filter(Boolean).join(" "),height:"100%",style:{transform:s?`rotate(${s}deg)`:void 0},viewBox:"0 0 20 20",width:"100%",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{className:ep().stroke,d:"M17.3889 0.5H2.61111C1.44518 0.5 0.5 1.44518 0.5 2.61111V17.3889C0.5 18.5548 1.44518 19.5 2.61111 19.5H17.3889C18.5548 19.5 19.5 18.5548 19.5 17.3889V2.61111C19.5 1.44518 18.5548 0.5 17.3889 0.5Z",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{className:ep().stroke,d:"M6.83333 5.77778L13.1667 10L6.83333 14.2222V5.77778Z",strokeLinecap:"round",strokeLinejoin:"round"})]})};var eT=r(22440),eL=r(46288),e$=r.n(eL);let eD=({id:e})=>{let[t,r]=(0,i.useState)(null);return(0,i.useEffect)(()=>{e&&(async()=>{let t=eT.qs.stringify({select:{slug:!0,category:!0,featuredMedia:!0,title:!0}}),r=await fetch(`/api/posts/${e}?${t}`);return await r.json()})().then(e=>r({slug:e.slug,category:e.category.slug,featuredMedia:e.featuredMedia,title:e.title})).catch(e=>{console.error("Error fetching resource:",e),r(void 0)})},[e]),(0,a.jsx)(b(),{href:`/posts/${t?.category}/${t?.slug}`,target:"_blank",children:(0,a.jsx)(l.l,{type:"success",children:null===t?(0,a.jsx)("span",{className:e$().skeleton}):void 0===t?(0,a.jsx)("div",{children:"Linked resource not found"}):(0,a.jsxs)("div",{className:e$().bannerContent,children:[(0,a.jsxs)("span",{className:e$().resourceTitle,children:["videoUrl"===t.featuredMedia&&(0,a.jsx)(eB,{size:"large"}),"guides"===t.category&&"Guide: ",t.title]}),(0,a.jsx)(ek.f,{className:e$().arrow,size:"large"})]})})})};var eM=r(91914);let eS=e=>{let{className:t,size:r}=e;return(0,a.jsxs)("svg",{className:[t,ep().icon,r&&ep()[r]].filter(
1Boolean).join(" "),fill:"none",height:"24",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("polyline",{points:"16 18 22 12 16 6"}),(0,a.jsx)("polyline",{points:"8 6 2 12 8 18"})]})};var eP=r(77044),eE=r.n(eP);let eA=({className:e,columns:t,data:r,inDrawer:l})=>(0,a.jsx)("div",{className:[eE().table,l&&eE().inDrawer,e&&e].filter(Boolean).join(" "),children:(0,a.jsxs)("table",{cellPadding:"0",cellSpacing:"0",children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:t?.map((e,t)=>(0,a.jsx)("th",{className:`heading-${e.accessor}`,children:e.components.Heading},t))})}),(0,a.jsx)("tbody",{children:r&&r.map((e,r)=>(0,a.jsxs)("tr",{className:`row-${r+1}`,children:[t.map((t,r)=>(0,a.jsx)("td",{className:`cell-${t.accessor}`,children:t.components.renderCell(e,e[t.accessor])},r)),(0,a.jsx)("div",{className:eE().cellBG})]},r))})]})});var eF=r(98950),eR=r.n(eF);let eW=({req:e,row:t})=>{if(!e)return null;let r=e.body?Object.entries(e.body).map(([e,t])=>{let r=` 2 ${e}: "${t}"`;if("object"==typeof t&&t){let a=Object.entries(t).map(([e,t])=>` 3 ${e}: "${t}"`);r=` 4 ${e}: {${a} 5 },`}return r}):"",l=`import qs from "qs"; 6 7const stringifiedQuery = qs.stringify({ 8 where: { 9 title: { 10 contains: "New", 11 }, 12 }, 13},{ addQueryPrefix: true }); 14`,s=`{ 15 method: "${t.method}", ${e.credentials?` 16 credentials: "include",`:""} 17 headers: { 18 "Content-Type": "application/json", 19 },${e.body?` 20 body: JSON.stringify({${r} 21 }),`:""} 22 }`,n=`const req = await fetch('{cms-url}${t.path}${e.query?"/{stringifiedQuery}'":"'"}${e.headers||e.body?`, ${s})`:")"}`,i=`${e.query?`${l} 23`:""}try { 24 ${n} 25 const data = await req.json() 26} catch (err) { 27 console.log(err) 28}`;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h5",{children:"Request"}),(0,a.jsx)(o.A,{className:eR().code,disableMinHeight:!0,children:i})]})},eI=({res:e})=>{if(!e)return null;if(e.paginated){let t={docs:[e.data],hasNextPage:!1,hasPrevPage:!1,limit:10,nextPage:null,page:1,pagingCounter:1,prevPage:null,totalDocs:e.data.length||1,totalPages:1};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h5",{children:"Response"}),(0,a.jsx)(o.A,{className:eR().code,disableMinHeight:!0,children:`${JSON.stringify(t,null,2)}`})]})}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h5",{children:"Response"}),(0,a.jsx)(o.A,{className:eR().code,disableMinHeight:!0,children:JSON.stringify(e,null,2)})]})},ez=({example:e,row:t})=>{let{drawerContent:r,req:l,res:s}=e,o=[{...t,example:!1,operation:!1}],n=t?.example?.slug;return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(eM.DrawerToggler,{className:eR().toggle,slug:n,children:(0,a.jsx)(eS,{className:eR().icon,size:"medium"})}),(0,a.jsxs)(eM.Drawer,{size:"s",slug:n,title:t.operation,children:[(0,a.jsx)(eA,{bleedToEdge:!1,className:eR().drawerTable,columns:eH.slice(1),data:o}),(0,a.jsx)(eW,{req:l,row:t}),(0,a.jsx)(eI,{res:s}),r&&(0,a.jsx)("div",{className:eR().drawerContent,children:(0,a.jsx)(e5,{content:r})})]})]})},eH=[{accessor:"operation",components:{Heading:"Operation",renderCell:(e,t)=>(0,a.jsx)("span",{children:t})}},{accessor:"method",components:{Heading:"Method",renderCell:(e,t)=>(0,a.jsx)("code",{children:t})}},{accessor:"path",components:{Heading:"Path",renderCell:(e,t)=>(0,a.jsx)("span",{className:eR().cellPath,children:t})}},{accessor:"example",components:{Heading:"View",renderCell:(e,t)=>t&&e?(0,a.jsx)(ez,{example:t,row:e}):null}}],eV=({data:e})=>(0,a.jsx)(eA,{className:eR().table,columns:eH,data:e}),eq={table:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.children});return(0,a.jsx)("div",{className:"lexical-table-container",children:(0,a.jsx)("table",{className:"lexical-table",style:{borderCollapse:"collapse"},children:(0,a.jsx)("tbody",{children:r})})})},tablecell:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.children}),l=e.headerState>0?"th":"td",s=`lexical-table-cell-header-${e.headerState}`,o={backgroundColor:e.backgroundColor||void 0},n=e.colSpan&&e.colSpan>1?e.colSpan:void 0,i=e.rowSpan&&e.rowSpan>1?e.rowSpan:void 0;return(0,a.jsx)(l,{className:`lexical-table-cell ${s}`,colSpan:n,rowSpan:i,style:o,children:r})},tablerow:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.children});return(0,a.jsx)("tr",{className:"lexical-table-row",children:r})}};var eO=r(66311),eQ=r(53575),eU=r.n(eQ);let eG=({columns:e,rows:t})=>(0,a.jsx)("div",{className:eU().tableWithDrawer,children:(0,a.jsxs)("table",{cellPadding:"0",cellSpacing:"0",children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:e?.map((e,t)=>(0,a.jsx)("th",{id:`heading-${e}`,children:e},t))})}),(0,a.jsx)("tbody",{children:t.map((e,t)=>(0,a.jsx)("tr",{className:`row-${t+1}`,children:e.map((e,t)=>{let{drawerContent:r,drawerDescription:l,drawerSlug:s,drawerTitle:o,value:n}=e;return s&&r?(0,a.jsxs)("td",{children:[(0,a.jsx)(eM.DrawerToggler,{className:eU().drawerToggler,slug:s,children:n?(0,a.jsx)(e5,{content:n}):(0,a.jsx)(eO.z,{})}),(0,a.jsx)(eM.Drawer,{className:eU().mdxDrawer,description:l,size:"s",slug:s,title:o,children:r?(0,a.jsx)(e5,{content:r}):null})]},t):(0,a.jsxs)("td",{children:[" ",n?(0,a.jsx)(e5,{content:n}):null]},t)})},t))})]})});var eZ=r(60367),eJ=r(13933),eY=r.n(eJ);let eK=({alt:e,caption:t,src:r})=>(0,a.jsxs)("div",{className:eY().imageWrap,children:[(0,a.jsx)("img",{alt:e,src:r}),t&&(0,eZ.I)(t)?(0,a.jsx)("div",{className:eY().caption,children:(0,a.jsx)(e5,{content:t})}):null]});var eX=r(18041),e0=r.n(eX);let e1=({id:e,drawerTitle:t,label:r})=>{let l=`video-drawer-${e}`;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eM.DrawerToggler,{className:e0().videoDrawerToggler,slug:l,children:(0,a.jsxs)("div",{className:e0().wrap,children:[(0,a.jsxs)("div",{className:e0().thumbnail,children:[(0,a.jsx)(v.default,{alt:t||r||"Video Thumbnail",fill:!0,src:`https://img.youtube.com/vi/${e}/mqdefault.jpg`,style:{objectFit:"cover",objectPosition:"left",opacity:.85}}),(0,a.jsx)(eB,{className:e0().playIcon,size:"large"})]}),(0,a.jsxs)("div",{className:e0().labelWrap,children:[(0,a.jsx)("strong",{children:r}),(0,a.jsx)(y.H,{className:e0().arrow})]})]})}),(0,a.jsx)(eM.Drawer,{size:"m",slug:l,title:t,children:(0,a.jsx)($,{id:`${e}
28?autoplay=1`,title:t||""})})]})},e2=({toc:e,version:t})=>({defaultConverters:r})=>{let i={...r,...eq,blocks:{Arrow:({node:e})=>(0,a.jsx)(V,{direction:e.fields.direction}),Banner:({node:e})=>(0,a.jsx)(l.l,{content:e.fields.content,type:e.fields.type}),br:()=>(0,a.jsx)("br",{}),BulletList:({node:e})=>(0,a.jsx)(O,{items:e.fields.items}),Card:({node:e})=>(0,a.jsx)(Z,{description:e.fields.description,link:e.fields.link,title:e.fields.title}),CardGroup:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.fields.content?.root?.children});return(0,a.jsx)(J,{variant:e.fields.variant,children:r})},Code:({node:e})=>{let t=e.fields.code??"";return(0,a.jsx)(o.A,{children:t?.trim(),disableMinHeight:!0,language:e.fields.language??void 0,parentClassName:"lexical-code"})},CodeTabs:({node:e})=>(0,a.jsx)(er,{...e.fields}),commandLine:({node:e})=>{let{command:t}=e.fields;return t?(0,a.jsx)(n.w,{command:t,lexical:!0}):null},ComponentPreview:({node:e})=>(0,a.jsx)(ec,{component:e.fields.component,example:e.fields.example,version:t}),downloadBlock:({node:e})=>(0,a.jsx)(z,{...e.fields}),LightDarkImage:({node:e})=>(0,a.jsx)(ey,{alt:e.fields.alt??"",caption:e.fields.caption??"",srcDark:e.fields.srcDark??void 0,srcLight:e.fields.srcLight??void 0}),PayloadMedia:({node:e})=>(0,a.jsx)(eC,{...e.fields}),Pill:({node:e})=>(0,a.jsx)(eN,{text:e.fields.text}),Resource:({node:e})=>e.fields.post?(0,a.jsx)(eD,{id:e.fields.post}):null,RestExamples:({node:e})=>(0,a.jsx)(eV,{data:e.fields.data}),spotlight:({node:e,nodesToJSX:t})=>{let{element:r,richText:l}=e.fields,s=t({nodes:l?.root?.children});return(0,a.jsx)(f,{as:r??"h2",children:s})},TableWithDrawers:({node:e})=>(0,a.jsx)(eG,{columns:e.fields.columns,rows:e.fields.rows}),templateCards:({node:e})=>{let{templates:t}=e.fields;return t?(0,a.jsx)(B,{templates:t}):null},Upload:({node:e})=>(0,a.jsx)(eK,{alt:e.fields.alt??void 0,caption:e.fields.caption??void 0,src:e.fields.src}),video:({node:e})=>{let{url:t}=e.fields;return t?(0,a.jsx)(_.C,{...{id:t.includes("youtube")?t.split("v=")[1].split("&")[0]||"":t.split("/").pop()?.split("?")[0]||"",platform:t.includes("vimeo")?"vimeo":"youtube",start:t.includes("t=")?parseInt(t.split("t=").pop()||"0"):0}}):null},VideoDrawer:({node:e})=>(0,a.jsx)(e1,{drawerTitle:e.fields.drawerTitle,id:e.fields.id,label:e.fields.label}),YouTube:({node:e})=>(0,a.jsx)($,{id:e.fields.id,title:e.fields.title??""})},label:({node:e,nodesToJSX:t})=>(0,a.jsx)(u,{children:t({nodes:e.children})}),largeBody:({node:e,nodesToJSX:t})=>(0,a.jsx)(p.s,{children:t({nodes:e.children})}),link:({node:e,nodesToJSX:t})=>{let r=e.fields;return(0,a.jsx)(s.A,{newTab:!!r?.newTab,reference:r.doc,type:"internal"===r.linkType?"reference":"custom",url:r.url,children:t({nodes:e.children})})},upload:({node:e})=>(0,a.jsx)(h,{node:e})};return e&&(i.heading=ej),i},e8=({className:e,content:t,version:r})=>{let[l,s]=(0,i.useState)(new Map),o=(0,i.useMemo)(()=>({content:t}),[t]),{data:n}=(0,D.o)({depth:2,initialData:o,serverURL:"https://payloadcms.com"}),c=n?.content??t,d=(0,i.useCallback)((e,t,r)=>{s(a=>{if(a.has(e))return a;let l=new Map(a);return l.set(e,{type:r,anchor:e,heading:t}),l})},[]);if(!c)return null;let u={addHeading:d,toc:Array.from(l).reverse()};return(0,a.jsx)(ed,{value:u,children:(0,a.jsx)(M.s,{className:["payload-richtext","docs-richtext",e].filter(Boolean).join(" "),converters:e2({toc:!0,version:r}),data:c})})},e5=({className:e,content:t})=>t?(0,a.jsx)(M.s,{className:["payload-richtext",e].filter(Boolean).join(" "),converters:e2({toc:!1}),data:t}):null},2236:(e,t,r)=>{"use strict";r.d(t,{w:()=>d});var a=r(51898),l=r(81130),s=r(96718),o=r(35217),n=r(87282),i=r(34266),c=r.n(i);let d=({command:e,inLinkGroup:t,lexical:r})=>{let[i,d]=n.useState(!1),u=async e=>{await navigator.clipboard.writeText(e).then(()=>{d(!0),setTimeout(()=>{d(!1)},1e3)})};return r?(0,a.jsx)("div",{className:c().lexicalCommandLineWrap,children:(0,a.jsxs)("span",{className:c().lexicalCommandLine,children:[(0,a.jsx)("span",{className:c().commandText,children:e}),(0,a.jsx)("button",{className:c().copyButton,onClick:()=>u(e),type:"button",children:i?(0,a.jsx)(s.S,{"aria-label":"Copied"}):(0,a.jsx)(o.T,{"aria-label":"Copy to clipboard"})})]})}):(0,a.jsxs)(l.Button,{"aria-label":`Copy command: ${e}`,"aria-live":"polite",arrowClassName:c().icon,className:[c().commandLineButton].filter(
28Boolean).join(" "),hideHorizontalBorders:!0,hideVerticalBorders:t,icon:"copy",iconSize:"medium",label:i?"Copied!":e,labelClassName:c().commandText,onClick:()=>u(e),children:[(0,a.jsx)("span",{"aria-hidden":"true",className:c().commandText,children:i?"$ Copied to clipboard":`$ ${e}`}),(0,a.jsx)("div",{className:c().icon,children:i?(0,a.jsx)(s.S,{"aria-label":"Copied"}):(0,a.jsx)(o.T,{"aria-label":"Copy to clipboard"})})]})}},2520:e=>{e.exports={wrap:"YouTube_wrap__xqOPd",innerWrap:"YouTube_innerWrap__Cxezb",iframe:"YouTube_iframe__ZHcvh"}},4036:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var a=r(51898),l=r(87282),s=r(64892),o=r.n(s);let n=e=>{let{className:t,size:r,style:l}=e;return(0,a.jsxs)("svg",{className:[t,o().icon,r&&o()[r]].filter(Boolean).join(" "),fill:"none",height:"69",style:l,viewBox:"0 0 69 69",width:"69",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"34.5",cy:"34.5",r:"33.5",stroke:"url(#paint0_linear_4502_439)",strokeWidth:"4"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear_4502_439",x1:"52.4376",x2:"-5.83957",y1:"-8.56049",y2:"51.5721",children:[(0,a.jsx)("stop",{stopColor:"#007FAE"}),(0,a.jsx)("stop",{offset:"0.653394",stopColor:"#578A9C"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#DFC198"})]})})]})};var i=r(41738);let c=(0,l.createContext)({closeModal:()=>{},isOpen:!1,openModal:()=>{}}),d=()=>{let{closeModal:e,data:t,isOpen:r,openModal:a}=(0,l.use)(c);return{closeModal:e,data:t,isOpen:r,openModal:a}};var u=r(28958),p=r.n(u),m=r(83774),h=r(2111),_=r(28082),x=r(76134),g=r(32824),j=r(65989),f=r(52457),v=r.n(f);let w={Button:({blip:e,delay:t=500,index:r=1})=>{let{isOpen:l,openModal:s}=d(),o={"--animation-delay":`${t*r}ms`};return(0,a.jsxs)("button",{"aria-pressed":l,className:[p().button,l&&p().hidden].filter(Boolean).join(" "),onClick:()=>s(e),style:o,children:[(0,a.jsx)("span",{className:"visually-hidden",children:"Code feature"}),(0,a.jsx)(i.c,{}),(0,a.jsx)(n,{className:p().border}),(0,a.jsx)(n,{className:p().pulse}),(0,a.jsx)("span",{className:p().hoverBg})]})},Context:c,Modal:({})=>{let e=(0,l.useRef)(null),t=(0,l.useRef)(null),[r,s]=(0,x.l)(),{closeModal:o,data:n,isOpen:i}=d(),c=(0,g.A)(.165,.84,.44,1);return(0,l.useEffect)(()=>{i&&(s(r.current,{opacity:1},{duration:.35,ease:c}),t.current&&s(t.current,{x:0},{duration:.35,ease:c}),e.current&&s(e.current,{transform:"scale(1)"},{duration:.15,ease:c}),e.current?.focus())},[i]),(0,a.jsxs)("dialog",{className:v().modal,"data-theme":"dark",open:i,ref:r,style:{opacity:0},children:[(0,a.jsxs)("button",{autoFocus:!0,className:v().close,onClick:()=>{s(r.current,{opacity:0},{duration:.15,ease:c}).then(o),t.current&&s(t.current,{x:20}),e.current&&s(e.current,{transform:"scale(0)"})},ref:e,style:{transform:"scale(0.5)"},children:[(0,a.jsx)("span",{className:"visually-hidden",children:"Close"}),(0,a.jsx)(_.U,{})]}),n&&(0,a.jsxs)(j.P.div,{className:v().container,initial:{x:20},ref:t,children:[(0,a.jsx)("div",{className:v().label,children:n.label}),(0,a.jsx)(h.RichText,{className:v().richText,content:n.feature}),n.enableLink&&n.link&&(0,a.jsx)(m.A,{...n.link,appearance:"text",buttonProps:{icon:"arrow"}})]})]})},Provider:({children:e})=>{let[t,r]=(0,l.useState)(!1),[s,o]=(0,l.useState)();return(0,a.jsx)(c,{value:{closeModal:()=>{r(!1)},data:s,isOpen:t,openModal:e=>{r(!0),o(e)}},children:e})},useCodeBlip:d}},4818:e=>{e.exports={preview:"ComponentPreview_preview__4abWq",toolbar:"ComponentPreview_toolbar__1_fFV",tabs:"ComponentPreview_tabs__KoXo9",tab:"ComponentPreview_tab__TuT6f",copy:"ComponentPreview_copy__r_E_1",themeButton:"ComponentPreview_themeButton__ERfgq",actions:"ComponentPreview_actions__qs1y4",themeToggle:"ComponentPreview_themeToggle__pysCt",canvas:"ComponentPreview_canvas__6eQPe",versionScope:"ComponentPreview_versionScope__Lr_RL","preview-panel-in":"ComponentPreview_preview-panel-in__FF8cU",code:"ComponentPreview_code__1YGVO",design:"ComponentPreview_design__9Ud7s",designFile:"ComponentPreview_designFile__kvu0b",designDescription:"ComponentPreview_designDescription__6pllx",designCode:"ComponentPreview_designCode__eKEBN",variableLabel:"ComponentPreview_variableLabel__TAv18",variables:"ComponentPreview_variables__vbxlT",variable:"ComponentPreview_variable__kHxRE",variableName:"ComponentPreview_variableName___6HoP",designNote:"ComponentPreview_designNote__oksit",leaving:"ComponentPreview_leaving__ERA_c",unsupported:"ComponentPreview_unsupported__HM08Q"}},10166:e=>{e.exports={wrapper:"Download_wrapper__9waBU",downloadCard:"Download_downloadCard__YLpYI",light:"Download_light__H5Kug",dark:"Download_dark___Sa2m",auto:"Download_auto__ZEFSQ",downloadCardThumbnail:"Download_downloadCardThumbnail__5ZIe3",contain:"Download_contain__QPjZp",cover:"Download_cover__pOmmx",downloadCardInfo:"Download_downloadCardInfo__KpQkQ",downloadCardName:"Download_downloadCardName__W7HYo",button:"Download_button__qPCm9"}},10582:()=>{},12692:e=>
28{e.exports={wrapper:"BackgroundScanline_wrapper__TTtqa",crosshair:"BackgroundScanline_crosshair__Au3az",crosshairTopLeft:"BackgroundScanline_crosshairTopLeft__MzINp",crosshairBottomLeft:"BackgroundScanline_crosshairBottomLeft__vRreZ",crosshairTopRight:"BackgroundScanline_crosshairTopRight__c1rwU",crosshairBottomRight:"BackgroundScanline_crosshairBottomRight__ISe0a",backgroundScanline:"BackgroundScanline_backgroundScanline__iS5AQ",enableBorders:"BackgroundScanline_enableBorders__xyMx7"}},13933:e=>{e.exports={imageWrap:"UploadBlock_imageWrap__rJ9Zw",caption:"UploadBlock_caption__Ln3qR"}},14438:(e,t,r)=>{"use strict";r.d(t,{s:()=>l});var a=r(87282);let l=e=>{let[t,r]=(0,a.useState)();return(0,a.useEffect)(()=>{let t,{current:a}=e;return a&&(t=new ResizeObserver(e=>{e.forEach(e=>{let{contentBoxSize:t,contentRect:a}=e,l=0,s=0;if(t){let e=Array.isArray(t)?t[0]:t;if(e){let{blockSize:t,inlineSize:r}=e;l=r,s=t}}else if(a){let{height:e,width:t}=a;l=t,s=e}r({height:s,width:l})})})).observe(a),()=>{t&&t.unobserve(a)}},[e]),{size:t}}},14926:(e,t,r)=>{"use strict";r.d(t,{m:()=>d});var a=r(51898),l=r(87282),s=r(19145),o=r.n(s);let n=({children:e,className:t})=>{let r=[o().tooltip,t].filter(Boolean).join(" ");return(0,a.jsxs)("aside",{className:r,children:[e,(0,a.jsx)("span",{className:o().caret})]})};var i=r(33434),c=r.n(i);let d=({children:e,className:t,isVisible:r,onClick:s,setIsVisible:o,text:i,unstyled:d})=>{let[u,p]=l.useState(!1),m="function"==typeof o,h=m?r:u,_=l.useCallback(e=>{let t="enter"===e;m?o(t):p(t)},[o,m]);return(0,a.jsxs)("button",{className:[!d&&c().tooltip,h&&c().show,t].filter(Boolean).join(" "),onBlur:()=>_("leave"),onClick:s,onFocus:()=>_("enter"),onMouseEnter:()=>{_("enter")},onMouseLeave:()=>{_("leave")},type:"button",children:[e,(0,a.jsx)(n,{className:c().tip,children:i})]})}},16119:(e,t,r)=>{"use strict";r.d(t,{l:()=>c});var a=r(51898),l=r(96718);r(87282);var s=r(2111),o=r(53319),n=r.n(o);let i={checkmark:l.S},c=({type:e="default",checkmark:t,children:r,content:l,icon:o,margin:c=!0,marginAdjustment:d={}})=>{let u=o&&i[o];return!u&&t&&(u=i.checkmark),(0,a.jsxs)("div",{className:[n().banner,"banner",e&&n()[e],!c&&n().noMargin].filter(Boolean).join(" "),style:d,children:[u&&(0,a.jsx)(u,{className:n().icon}),l&&(0,a.jsx)(s.RichText,{content:l}),r&&(0,a.jsx)("div",{className:n().children,children:r})]})}},16314:e=>{e.exports={largeBody:"LargeBody_largeBody__iNkda"}},18041:e=>{e.exports={videoDrawerToggler:"VideoDrawer_videoDrawerToggler__hIC_W",playIcon:"VideoDrawer_playIcon__Srp15",wrap:"VideoDrawer_wrap__JSvMH",thumbnail:"VideoDrawer_thumbnail__0tkqG",arrow:"VideoDrawer_arrow__LshRT",labelWrap:"VideoDrawer_labelWrap__cm1ty"}},19145:e=>{e.exports={tooltip:"TooltipContent_tooltip__GHu7t",caret:"TooltipContent_caret__bXZeZ"}},19152:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});var a=r(51898);r(87282);var l=r(16314),s=r.n(l);let o=({children:e})=>(0,a.jsx)("p",{className:s().largeBody,children:e})},19907:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var a=r(51898),l=r(87282),s=r(4036),o=r(29364),n=r(92266),i=r.n(n);let c={plain:{color:"#e6edf3"},styles:[{style:{color:"#8b949e"},types:["comment","prolog","cdata"]},{style:{color:"#ff7b72"},types:["keyword","storage","atrule","important","rule"]},{style:{color:"#a5d6ff"},types:["string","template-string","attr-value","regex","char"]},{style:{color:"#79c0ff"},types:["constant","number","boolean","null","symbol","builtin","property","literal-property","attr-name","doctype","url","color","hexcode","unit"]},{style:{color:"#d2a8ff"},types:["function","function-variable","selector"]},{style:{color:"#7ee787"},types:["tag"]},{style:{color:"#ffa657"},types:["variable","parameter","entity","class-name","maybe-class-name"]},{languages:["bash","sh"],style:{color:"#79c0ff"},types:["variable","parameter","string","template-string"]},{languages:["js","jsx","ts","tsx"],style:{color:"#e6edf3"},types:["property","literal-property"]},{languages:["graphql"],style:{color:"#e6edf3"},types:["property","attr-name","property-query","class-name","atom-input","constant"]},{languages:["yaml","yml"],style:{color:"#7ee787"},types:["key","atrule"]},{languages:["yaml","yml"],style:{color:"#79c0ff"},types:["scalar","string","number","boolean","null","datetime","tag","directive","
28important"]}]};(void 0!==r.g?r.g:window).Prism=o.My,r(97679),r(54860),r(40909),r(66886),r(24657),r(2049),r(28912);let d={"literal-property":{alias:"property",lookbehind:!0,pattern:RegExp("((?:^|[,{])[ \\t]*)(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*:)","m")}};delete o.My.languages.typescript["function-variable"],delete o.My.languages.tsx["function-variable"],o.My.languages.insertBefore("typescript","operator",d),o.My.languages.insertBefore("tsx","operator",d),o.My.languages.scss.variable=/\$[-\w]+|--[\w-]+/;let u=!1,p=i().highlight,m=e=>{let{children:t,className:r,codeBlips:n,disableMinHeight:d,language:m,parentClassName:h,showLineNumbers:_=!0}=e,x=[i().code,"code-block",r&&r].filter(Boolean).join(" "),g=(0,l.useCallback)(e=>n?n.find(t=>t.row===e)??null:null,[n]),j=0;return(0,a.jsx)("div",{className:[i().codeWrap,d&&i().disableMinHeight,h&&h,"code-block-wrap","notranslate"].filter(Boolean).join(" "),"data-theme":"dark",translate:"no",children:(0,a.jsx)(o.f4,{code:t,language:m??"tsx",theme:c,children:({className:e,getLineProps:t,getTokenProps:r,style:o,tokens:n})=>(0,a.jsx)("div",{className:`${x} ${e}`,style:o,children:n.map((e,r)=>{let a,l=t({className:i().line,key:r,line:e}),s=(a=!1,e.forEach(e=>{let{content:t}=e,r=t.replace(/\s/g,"");r.includes("//highlight-line")&&(l.className=`${l.className} ${p}`,e.content=t.replace("// highlight-line","").replace("//highlight-line","")),u&&"//highlight-end"===r&&(u=!1,a=!0),"//highlight-start"===r&&(u=!0,a=!0)}),u&&(l.className=`${l.className} ${p}`),a);return{line:e,lineProps:l,shouldExclude:s}}).filter(({shouldExclude:e})=>!e).map(({line:e,lineProps:t},o)=>{let n=o+1,c=g(n);return c&&(j+=1),(0,l.createElement)("div",{...t,key:o},(0,a.jsxs)(a.Fragment,{children:[_&&(0,a.jsx)("span",{className:i().lineNumber,children:n}),(0,a.jsxs)("div",{className:i().lineCodeWrapper,children:[e.map((e,t)=>{let{key:l,style:s,...o}=r({key:t,token:e}),n=("bash"===m||"sh"===m||"yaml"===m||"yml"===m)&&1===e.types.length&&"plain"===e.types[0]?{...s,color:"#79c0ff"}:s;return(0,a.jsx)("span",{...o,style:n},l)}),c?(0,a.jsx)(s.A.Button,{blip:c,index:j}):null]})]}))})})})})}},21749:(e,t,r)=>{"use strict";r.d(t,{Video:()=>n});var a=r(51898),l=r(87282),s=r(39855),o=r.n(s);let n=e=>{let{onClick:t,resource:r,videoClassName:s}=e,n=(0,l.useRef)(null);return((0,l.useEffect)(()=>{let{current:e}=n;e&&e.addEventListener("suspend",()=>{})},[]),r&&"string"!=typeof r)?(0,a.jsx)("video",{autoPlay:!0,className:[o().video,s].filter(Boolean).join(" "),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:n,children:(0,a.jsx)("source",{src:r.url||""})}):null}},22440:(e,t,r)=>{"use strict";r.d(t,{qs:()=>a});let a={parse:function(e){let t={},r=e.trim().replace(/^\?/,"");if(!r)return t;for(let e of r.split("&")){let[r,a]=e.split("=").map(decodeURIComponent);r in t?(Array.isArray(t[r])||(t[r]=[t[r]]),t[r].push(a)):t[r]=a}return t},stringify:function e(t,r=""){let a=[];for(let l in t)if(t[l]){let s=t[l],o=r?`${r}[${encodeURIComponent(l)}]`:encodeURIComponent(l);"object"==typeof s&&null!==s?a.push(e(s,o)):a.push(`${o}=${encodeURIComponent(s)}`)}return a.join("&")}}},22694:(e,t,r)=>{"use strict";r.d(t,{o:()=>o});var a=r(51898);r(87282);var l=r(64892),s=r.n(l);let o=e=>{let{bold:t,className:r,rotation:l,size:o="large"}=e;return(0,a.jsxs)("svg",{className:[r,s().icon,o&&s()[o],t&&s().bold].filter(Boolean).join(" "),fill:"none",height:"21",stroke:"currentColor",viewBox:"0 0 20 21",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M10 0.332031V20.332"}),(0,a.jsx)("path",{d:"M0 10.332L20 10.332"})]})}},24289:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=!!window.document&&!!window.document.createElement},28831:()=>{},28958:e=>{e.exports={button:"Button_button__9Ivrl",hidden:"Button_hidden__sDsEX",border:"Button_border__IevEn",pulse:"Button_pulse__ZCiZJ",Pulse:"Button_Pulse__bhMAu",hoverBg:"Button_hoverBg__fhFYb",PulseAlt:"Button_PulseAlt__JJh8B",codeFeature:"Button_codeFeature__g2WqS",content:"Button_content__BylSs",active:"Button_active__AIc_N"}},29803:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var a=r(51898);r(87282);var l=r(58534),s=r.n(l);let o=({videoID:e})=>(0,a.jsx)("iframe",{allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,className:s().iframe,frameBorder:"0",src:`https://player.vimeo.com/video/${e}}`,title:"Vimeo player"}),n=({start:e,videoID:t})=>(0,a.jsx)("iframe",{allow:"autoplay; fullscreen; accelerometer; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:s().iframe,src:`https://www.youtube-nocookie.com/embed/${t}${e?`?start=${e}`:""}`,title:"YouTube player"}),i=e=>{let{id:t,platform:r="vimeo",start:l}=e;return(0,a.jsxs)("div",{className:s().videoPlayer,children:["youtube"===r&&(0,a.jsx)(n,{start:l,videoID:t}),"vimeo"===r&&(0,a.jsx)(o,{videoID:t})]})}},30725:e=>{e.exports={placeholder:"Image_placeholder__uf5AB",hasDarkModeFallback:"Image_hasDarkModeFallback__JQBjj",themeLight:"Image_themeLight__GCSlz",themeDark:"Image_themeDark__IAQXs"}},33434:e=>{e.exports={tooltip:"Tooltip_tooltip__FmJFx",tip:"Tooltip_tip__TbjfP",show:"Tooltip_show__nhdfP"}},34266:e=>{e.exports={commandLineButton:"CommandLine_commandLineButton__OQA9Q",commandText:"CommandLine_commandText__KkKg8",icon:"CommandLine_icon__2rKRk",lexicalCommandLineWrap:"CommandLine_lexicalCommandLineWrap__YEQ9E",lexicalCommandLine:"CommandLine_lexicalCommandLine__xkM2T",copyButton:"CommandLine_copyButton__PKRkR"}},35865:e=>{e.exports={node:"Heading_node__Fsogy",linkedHeading:"Heading_linkedHeading__D2BzT"}},36112:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});var a=r(51898),l=r(22694);r(87282);var s=r(12692),o=r.n(s);let n=({className:e,crosshairs:t,enableBorders:r,style:s})=>(0,a.jsxs)("div",{"aria-hidden":"true",className:[o().wrapper,e,r&&o().enableBorders].filter(
28Boolean).join(" "),style:s,children:[(0,a.jsx)("div",{className:[o().backgroundScanline].filter(Boolean).join(" ")}),t&&(0,a.jsxs)(a.Fragment,{children:[("all"===t||t.includes("top-left"))&&(0,a.jsx)(l.o,{className:[o().crosshair,o().crosshairTopLeft,"crosshair"].filter(Boolean).join(" ")}),("all"===t||t.includes("bottom-left"))&&(0,a.jsx)(l.o,{className:[o().crosshair,o().crosshairBottomLeft,"crosshair"].filter(Boolean).join(" ")}),("all"===t||t.includes("top-right"))&&(0,a.jsx)(l.o,{className:[o().crosshair,o().crosshairTopRight,"crosshair"].filter(Boolean).join(" ")}),("all"===t||t.includes("bottom-right"))&&(0,a.jsx)(l.o,{className:[o().crosshair,o().crosshairBottomRight,"crosshair"].filter(Boolean).join(" ")})]})]})},39855:e=>{e.exports={video:"Video_video__D_9PX",cover:"Video_cover__4szsE"}},41170:(e,t,r)=>{"use strict";r.d(t,{g:()=>i,a:()=>c});var a=r(51898),l=r(24289),s=r(87282),o=r(65045);let n=(0,s.createContext)({setTheme:()=>null,theme:void 0}),i=({children:e})=>{let[t,r]=(0,s.useState)(l.A?document.documentElement.getAttribute("data-theme"):void 0),i=(0,s.useCallback)(e=>{if(null===e){window.localStorage.removeItem(o.H$);let e=(0,o.ly)();document.documentElement.setAttribute("data-theme",e||""),e&&r(e)}else r(e),window.localStorage.setItem(o.H$,e),document.documentElement.setAttribute("data-theme",e)},[]);return(0,s.useEffect)(()=>{let e=o.zQ,t=window.localStorage.getItem(o.H$);if(t&&["dark","light"].includes(t))e=t;else{let t=(0,o.ly)();t&&(e=t)}document.documentElement.setAttribute("data-theme",e),r(e)},[]),(0,a.jsx)(n,{value:{setTheme:i,theme:t},children:e})},c=()=>(0,s.use)(n)},41787:e=>{e.exports={templateCardWrapper:"TemplateCardsBlock_templateCardWrapper__y9PFy",templateCard:"TemplateCardsBlock_templateCard__Vl3rC",arrow:"TemplateCardsBlock_arrow__gSzws",imageContainer:"TemplateCardsBlock_imageContainer__6CzA6",templateCardContent:"TemplateCardsBlock_templateCardContent__L97b8"}},46288:e=>{e.exports={bannerContent:"ResourceBlock_bannerContent__e_aJt",resourceTitle:"ResourceBlock_resourceTitle__iD4WC",skeleton:"ResourceBlock_skeleton__yMUiV",shimmer:"ResourceBlock_shimmer__9Pg3j",arrow:"ResourceBlock_arrow__OmEnp"}},51274:e=>{e.exports={drawer:"Drawer_drawer__eEdpy",blurBG:"Drawer_blurBG__9HiJH",content:"Drawer_content__UM_JM",contentChildren:"Drawer_contentChildren__ZIzX_",isOpen:"Drawer_isOpen__QRtXa",close:"Drawer_close__gQhGS",header:"Drawer_header__0vB_s",headerContent:"Drawer_headerContent__NF5PQ",description:"Drawer_description__qYoLG",title:"Drawer_title__ujDC2",headerClose:"Drawer_headerClose__fIxq8","size-l":"Drawer_size-l__nuupE","size-m":"Drawer_size-m__rBNiU","size-s":"Drawer_size-s__D29oC"}},52457:e=>{e.exports={modal:"Modal_modal__VeR4D",label:"Modal_label__LxVjY",richText:"Modal_richText__Ki1Mb",close:"Modal_close__5yg7O"}},53319:e=>{e.exports={banner:"Banner_banner__3Dn4G",success:"Banner_success__09_1Z",warning:"Banner_warning__f8WVZ",error:"Banner_error__EyQJC",default:"Banner_default__sBSmr",info:"Banner_info__PeKcA",children:"Banner_children__28Qrf"}},53575:e=>{e.exports={drawerToggler:"TableWithDrawers_drawerToggler__qFZ4V",tableWithDrawer:"TableWithDrawers_tableWithDrawer__tE6vM",mdxDrawer:"TableWithDrawers_mdxDrawer__utCbD"}},57273:()=>{},58534:e=>{e.exports={videoPlayer:"Video_videoPlayer__dwnpo",iframe:"Video_iframe__GcxKE"}},58775:e=>{e.exports={wrapper:"SpotlightAnimation_wrapper___WdxY",container:"SpotlightAnimation_container___v3Ex"}},59082:()=>{},59165:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var a=r(51898);r(87282);var l=r(64892),s=r.n(l);let o=e=>{let{bold:t,className:r,size:l}=e;return(0,a.jsxs)("svg",{className:[r,s().icon,l&&s()[l],t&&s().bold].filter(Boolean).join(" "),fill:"none",height:"100%",viewBox:"0 0 13 13",width:"100%",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M6.72028 1.43542L12 6.71516L6.72044 11.9947",stroke:"currentColor"}),(0,a.jsx)("path",{d:"M5.6173e-05 6.71424L11.9993 6.71442",stroke:"currentColor"})]})}},62952:()=>{},65045:(e,t,r)=>{"use strict";r.d(t,{H$:()=>a,ly:()=>s,zQ:()=>l});let a="payload-theme",l="light",s=()=>{let e=window.matchMedia("(prefers-color-scheme: dark)");
28return"boolean"==typeof e.matches?e.matches?"dark":"light":null}},66311:(e,t,r)=>{"use strict";r.d(t,{z:()=>o});var a=r(51898);r(87282);var l=r(64892),s=r.n(l);let o=e=>{let{bold:t,className:r,rotation:l,size:o}=e;return(0,a.jsx)("svg",{className:[r,s().icon,o&&s()[o],t&&s().bold].filter(Boolean).join(" "),fill:"none",height:"100%",style:{transform:l?`rotate(${l}deg)`:void 0},viewBox:"0 0 14 27",width:"100%",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{className:s().stroke,d:"M1.40625 0.738037L14.1682 13.4999L1.40625 26.2618"})})}},68355:e=>{"use strict";e.exports={breakpoints:{s:768,m:1024,l:1440}}},72571:(e,t,r)=>{"use strict";r.d(t,{Image:()=>u});var a=r(51898),l=r(14945),s=r(87282),o=r(68355),n=r.n(o),i=r(30725),c=r.n(i);let{breakpoints:d}=n(),u=e=>{let{alt:t,fill:r,height:o,imgClassName:n,onClick:i,onLoad:u,priority:p,resource:m,sizes:h,src:_,width:x}=e,[g,j]=(0,s.useState)(!0),f=x,v=o,w=t,b=_,y=m?.darkModeFallback&&"object"==typeof m.darkModeFallback&&null!==m.darkModeFallback&&"string"==typeof m.darkModeFallback.filename;!b&&m&&"string"!=typeof m&&(f=m.width,v=m.height,w=m.alt,b=m.url);let C=h||Object.entries(d).map(([,e])=>`(max-width: ${e}px) ${e}px`).join(", "),N=[g&&c().placeholder,c().image,n,y&&c().hasDarkModeFallback].filter(Boolean).join(" ");return(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(l.default,{alt:w||"",className:`${N} ${c().themeLight}`,fill:r,height:r?void 0:v??void 0,onClick:i,onLoad:()=>{j(!1),"function"==typeof u&&u()},priority:p,quality:90,sizes:C,src:b||"",width:r?void 0:f??void 0}),y&&"object"==typeof m.darkModeFallback&&null!==m.darkModeFallback&&(0,a.jsx)(l.default,{alt:w||"",className:`${N} ${c().themeDark}`,fill:r,height:r?void 0:v??void 0,onClick:i,onLoad:()=>{j(!1),"function"==typeof u&&u()},priority:p,quality:90,sizes:C,src:m.darkModeFallback.url||"",width:r?void 0:f??void 0})]})}},74411:(e,t,r)=>{"use strict";r.d(t,{s:()=>l});var a=r(51898);r(87282);let l=({className:e})=>(0,a.jsxs)("svg",{className:e,fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M19 14L19 18L5 18L5 14",stroke:"currentColor"}),(0,a.jsx)("path",{d:"M16 9.95575L12.0132 13.8804M12.0132 13.8804L8 10M12.0132 13.8804L12 6.13275",stroke:"currentColor",strokeMiterlimit:"10"})]})},77044:e=>{e.exports={table:"CustomTable_table__u4drn",cellBG:"CustomTable_cellBG__jAmQc",inDrawer:"CustomTable_inDrawer__fkk9d"}},83458:e=>{e.exports={imageWrap:"LightDarkImage_imageWrap__jnBfQ",caption:"LightDarkImage_caption__gA6dK"}},83774:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(51898),l=r(34881),s=r.n(l);r(87282);var o=r(81130);let n=({type:e,appearance:t,buttonProps:r,children:l,className:n,customId:i,fullWidth:c=!1,label:d,mobileFullWidth:u=!1,newTab:p,onClick:m,onMouseEnter:h,onMouseLeave:_,reference:x,url:g})=>{let j=(e=>{let{type:t,reference:r,url:a}=e;if(("custom"===t||void 0===t)&&a)return a;if("reference"===t&&r?.value&&"string"!=typeof r.value){if("pages"===r.relationTo){let e=r.value,t=e?.breadcrumbs;if(t&&Array.isArray(t)&&t.length>0)return t[t.length-1]?.url}return"posts"===r.relationTo?`/blog/${r.value.slug}`:"case_studies"===r.relationTo?`/case-studies/${r.value.slug}`:`/${r.relationTo}/${r.value.slug}`}return""})({type:e,reference:x,url:g});if(!j)return(0,a.jsxs)("span",{className:n,id:i??"",onClick:m,onMouseEnter:h,onMouseLeave:_,children:[d,l]});if(!t){if(!["tel:","mailto:","/"].some(e=>j.startsWith(e))&&"#"!==j)try{let e=new URL(j);"https://payloadcms.com"===e.origin&&(j=e.href.replace("https://payloadcms.com",""))}catch(e){}let e=p?{rel:"noopener noreferrer",target:"_blank"}:{};return 0===j.indexOf("/")?(0,a.jsxs)(s(),{href:j,...e,className:n,id:i??"",onClick:m,onMouseEnter:h,onMouseLeave:_,prefetch:!1,children:[d&&d,l&&l]}):(0,a.jsxs)("a",{href:j,...e,className:n,id:i??"",onClick:m,onMouseEnter:h,onMouseLeave:_,children:[d&&d,l&&l]})}let f={...r,appearance:t,fullWidth:c,href:j,label:d,mobileFullWidth:u,newTab:p,onClick:m,onMouseEnter:h,onMouseLeave:_};return"default"===t&&(f.icon="arrow"),(0,a.jsx)(o.Button,{...f,className:n,el:"link",id:i??""})}},91102:e=>{e.exports={root:"CodeTabs_root__17OtB",bar:"CodeTabs_bar__WdqFP",list:"CodeTabs_list__MQA6M",trigger:"CodeTabs_trigger__VyZA_",copyButton:"CodeTabs_copyButton__mDRHG",content:"CodeTabs_content__1qdvA",code:"CodeTabs_code__4468M"}},91914:(e,t,r)=>{"use strict";r.d(t,{Drawer:()=>u,DrawerToggler:()=>d});var a=r(51898),l=r(39788),s=r(44107),o=r(28082),n=r(87282),i=r(51274),c=r.n(i);let d=({slug:e,children:t,className:r,disabled:s,onClick:o,...i})=>{let{openModal:c}=(0,l.h)(),d=(0,n.useCallback)(t=>{c(e),"function"==typeof o&&o(t)},[c,e,o]);return(0,a.jsx)("button",{className:r,disabled:s,onClick:d,type:"button",...i,children:t})},u=({slug:e,children:t,className:r,description:i,header:d,size:u="l",title:p})=>{let{closeModal:m,modalState:h}
28=(0,l.h)(),[_,x]=(0,n.useState)(!1),[g,j]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{x(h[e]?.isOpen)},[e,h]),(0,n.useEffect)(()=>{j(_)},[_]),_)?(0,a.jsxs)(s.a,{className:[r,c().drawer,g&&c().isOpen,u&&c()[`size-${u}`]].filter(Boolean).join(" "),slug:e,children:[(0,a.jsx)("div",{className:c().blurBG}),(0,a.jsx)("button",{"aria-label":"Close",className:c().close,id:`close-drawer__${e}`,onClick:()=>m(e),type:"button"}),(0,a.jsx)("div",{className:c().content,children:(0,a.jsxs)("div",{className:c().contentChildren,children:[d&&d,void 0===d&&(0,a.jsxs)("div",{className:c().header,children:[(0,a.jsxs)("div",{className:c().headerContent,children:[p&&(0,a.jsx)("h3",{className:c().title,children:p}),i&&(0,a.jsx)("p",{className:c().description,children:i})]}),(0,a.jsx)("button",{"aria-label":"Close",className:c().headerClose,id:`close-drawer__${e}`,onClick:()=>m(e),type:"button",children:(0,a.jsx)(o.U,{size:"large"})})]}),t]})})]}):null}},92266:e=>{e.exports={codeWrap:"Code_codeWrap__cGPns",code:"Code_code__BTtCd",line:"Code_line__q5GJ_",lineNumber:"Code_lineNumber__XZgDa",lineCodeWrapper:"Code_lineCodeWrapper__g0OaV","docs-arrow":"Code_docs-arrow__Q1NPG",disableMinHeight:"Code_disableMinHeight__XTKwL",highlight:"Code_highlight__mFhVF"}},94285:e=>{e.exports={label:"Label_label__Soo3d"}},96718:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});var a=r(51898);r(87282);var l=r(64892),s=r.n(l);let o=e=>{let{bold:t,className:r,color:l,size:o}=e;return(0,a.jsx)("svg",{className:[r,s().icon,l&&s()[l],o&&s()[o],t&&s().bold].filter(Boolean).join(" "),fill:"none",height:"100%",viewBox:"0 0 14 11",width:"100%",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{className:s().stroke,d:"M2.24023 5.72L5.04023 9.08L12.3202 1.8"})})}},98810:()=>{},98950:e=>{e.exports={toggle:"RestExamples_toggle__i53ZX",label:"RestExamples_label__c89U_",table:"RestExamples_table__sG5YA",drawerTable:"RestExamples_drawerTable__7TODL",drawerContent:"RestExamples_drawerContent__qBhqN",code:"RestExamples_code__TDYXh",cellPath:"RestExamples_cellPath__tD2FF"}}}]);
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.