1"use strict";(self.webpackChunkatlas=self.webpackChunkatlas||[]).push([[9502],{23541:function(e,t,r){r.r(t),r.d(t,{default:function(){return L}});var n={};r.r(n),r.d(n,{id:function(){return c},Qs:function(){return o},$Q:function(){return i},R8:function(){return s},lL:function(){return u},Zp:function(){return m},rb:function(){return d},oi:function(){return _},$M:function(){return g},bI:function(){return p},N3:function(){return v},iP:function(){return f},We:function(){return y},QJ:function(){return E},E5:function(){return N},AJ:function(){return h},qf:function(){return A}});var a=r(96540),l=(r(12470),r(54506)),c=(r(78350),r(26910),r(30237),"Article-module__articleContent___rnkMK"),o="Article-module__content___-QNCN",i="Article-module__contentHeader___LyQvH",s="Article-module__copyContent___szxTG",u="Article-module__docNavigation___kjRLH",m="Article-module__layout___YACR+",d="Article-module__mainContent___mFKCP",_="Article-module__navButton___TLbIg",g="Article-module__navButtonContent___n7gmo",p="Article-module__navButtonPlaceholder___rrFEw",v="Article-module__navButtons___eYqvN",f="Article-module__navCategory___TIjaD",y="Article-module__navLabel___Qvinq",E="Article-module__navTitle___h-TFK",N="Article-module__nextButton___ZBOJY",h="Article-module__prevButton___EkurS",A="Article-module__sticky___n9I5j",C=r(38448),b=r(81984),k=r(24794),I=r(38243),T=r(63604);var x=e=>{let{allDocs:t,doc:r}=e;const{0:x,1:w}=(0,a.useState)(!1),B=t.reduce(((e,t)=>{const r=t.docCategory.title,n=t.docCategory.slug.current,a=t.docCategory.order,l=t.order,c=e.find((e=>e.category===r));var o;c?c.navItems.push({title:t.title,slug:null===(o=t.slug)||void 0===o?void 0:o.current,order:l,description:t.description,parent:t.parent||null}):e.push({category:r,categorySlug:n,categoryOrder:a,navItems:[{title:t.title,slug:t.slug.current,order:l,description:t.description,parent:t.parent||null}]});return e}),[]).map((e=>{const t=e.navItems.filter((e=>!e.parent)).map((t=>{const r=e.navItems.filter((e=>e.parent===t.slug)).sort(((e,t)=>e.order-t.order));return Object.assign({},t,{children:r.length>0?r:void 0})}));return Object.assign({},e,{navItems:t.sort(((e,t)=>e.order-t.order))})})).sort(((e,t)=>e.categoryOrder-t.categoryOrder)),L=B.flatMap((e=>e.navItems.flatMap((t=>{const r=[Object.assign({},t,{categoryTitle:e.category})];return t.children&&t.children.length>0&&r.push.apply(r,(0,l.A)(t.children.map((t=>Object.assign({},t,{categoryTitle:e.category}))))),r})))),O=L.findIndex((e=>e.slug===r.slug.current)),j=O>0?L[O-1]:null,F=O<L.length-1?L[O+1]:null;return a.createElement("div",{className:n.section},a.createElement("div",{className:o},a.createElement("div",{className:m},a.createElement("div",{className:A},a.createElement(b.A,{navigationData:B})),a.createElement("div",{className:d},a.createElement("div",{className:i},a.createElement("h1",null,r.title),a.createElement("p",null,r.description),a.createElement("div",{className:s},a.createElement(T.A,{variant:"outline",leftIcon:a.createElement(I.CopyIcon,null),onClick:async()=>{try{await navigator.clipboard.writeText(r.content),w(!0),setTimeout((()=>{w(!1)}),2e3)}catch(e){console.error("Failed to copy content:",e);const t=document.createElement("textarea");t.value=r.content,t.style.position="fixed",t.style.left="-999999px",document.body.appendChild(t),t.select();try{document.execCommand("copy"),w(!0),setTimeout((()=>{w(!1)}),2e3)}catch(e){console.error("Fallback: Failed to copy",e)}document.body.removeChild(t)}}},x?"Copied!":"Copy page"))),a.createElement("div",{className:c},a.createElement("article",{itemScope:!0,itemType:"http://schema.org/BlogPosting"},a.createElement(C.Ay,{source:r.content})),a.createElement("div",{className:u},a.createElement("div",{className:v},j?a.createElement(k.Link,{to:"/docs/"+j.slug+"/",className:h},a.createElement("div",{className:_},a.createElement(I.ChevronLeftSolidIcon,null),a.createElement("div",{className:g},a.createElement("span",{className:y},"Previous"),a.createElement("span",{className:E},j.title),a.createElement("span",{className:f},j.categoryTitle)))):a.createElement("div",{className:p}),F?a.createElement(k.Link,{to:"/docs/"+F.slug+"/",className:N},a.createElement("div",{className:_},a.createElement("div",{className:g},a.createElement("span",{className:y},"Next"),a.createElement("span",{className:E},F.title),a.createElement("span",{className:f},F.categoryTitle)),a.createElement(I.ChevronRightSolidIcon,null))):a.createElement("div",{className:p}))))))))}
1,w=r(4166),B=r(24694);var L=e=>{let{data:t}=e;const r=t.markdownRemark,n=t.allMarkdownRemark.nodes,l=w.c,c={title:r.frontmatter.title,description:r.frontmatter.description,content:r.html,slug:{current:r.frontmatter.slug}},o=n.map((e=>{var t,r;return{title:e.frontmatter.title,slug:{current:e.frontmatter.slug},order:e.frontmatter.order,description:e.frontmatter.description,parent:e.frontmatter.parent||null,docCategory:{title:(null===(t=l.find((t=>t.slug===e.frontmatter.category)))||void 0===t?void 0:t.title)||e.frontmatter.category,slug:{current:e.frontmatter.category},order:(null===(r=l.find((t=>t.slug===e.frontmatter.category)))||void 0===r?void 0:r.order)||999}}}));return a.createElement(a.Fragment,null,a.createElement(B.A,{description:"Atlas Docs is a collection of documentation for the Atlas platform.",title:"Atlas Docs",type:"website",absoluteImageUrl:"https://atlas.co/images/docs-og.png"}),a.createElement(x,{doc:c,allDocs:o}))}}}]); 2//# sourceMappingURL=component---src-templates-single-doc-article-js-4e1fe0f5a477ae67fa99.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.