1import{r as f,a as T,j as e,$ as C,e as w,a8 as $,a9 as A,u as q,o as z,R as M,a5 as g,Q as x,f as O,T as L}from"./app-C_ju_lDz.js";import Q from"./print-wrapper-DpuBXNkb.js";import{b as U,H as V}from"./help-parent-B6-TxjwX.js";/* empty css */import"./language-detection-cx3gmowl.js";import"./cloud-status-C3_MR87J.js";import"./form-BfdcEU3A.js";import"./text-field-pJZnvQYL.js";import"./label-floating-Bz4cYTiz.js";import"./select-field-B2E3241s.js";import"./angle-down-CiclXPA8.js";import"./radio-fieldset--dekTnih.js";import"./toc-nav-DF5_4c5F.js";function W({form:s}){var d;const[t,i]=f.useState(!1),o=T();return f.useEffect(()=>{var a;t&&document.getElementById("help-page-suggestions").scrollIntoView({behavior:"smooth"}),(a=document.querySelectorAll(".hs_form_path"))==null||a.forEach(c=>{var u;(u=c.querySelector('input[type="hidden"]'))==null||u.setAttribute("value",o.url)})},[t]),e.jsxs("div",{className:"rounded-lg p-4 bg-secondary-50 relative dark:bg-secondary-800",children:[e.jsx("div",{className:"w-full flex",children:e.jsx("button",{type:"button",className:w("bg-white rounded-lg text-primaryBlue dark:text-white self-end ml-auto h-auto py-2 whitespace-normal dark:hover:bg-secondary-900 transition-colors dark:bg-secondary-100 ",t?"w-auto z-[2]":"w-full"),onClick:()=>{window.location.hash="help-page-suggestions",i(!t)},children:t?e.jsx(C,{className:"absolute right-3 top-4 lg:right-10 lg:top-14 h-9 w-9 p-2mx-2 my-0 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700"}):(d=s==null?void 0:s.fields)==null?void 0:d.headline})}),e.jsx("div",{id:"help-page-suggestions",className:`${t?"[&_button]:block ":"[&_button]:hidden"} dark:[&_a]:text-primaryBlue dark:hover:[&_a]:text-primaryBlue`,children:e.jsx($,{className:w("text-sm overflow-hidden",t&&"px-3 pb-3 lg:pb-8 lg:px-8"),isOpen:t,children:e.jsx(A,{...s.fields})})})]})}function ae(s){const{entry:{fields:{title:t,body:i,slug:o,seo:d,customBreadcrumbs:a,hideFeedbackButton:c}},pageSuggestionsForm:u,footerNav:N,newsletterForm:B,app:k,headerBanners:P,toc:H}=s,{t:I}=q(),l=f.useMemo(()=>{const n=[],j=(r,h,_=[])=>{for(let p=0;p<r.length;p++){const E=r[p],{title:F,slug:R,items:m}=E.fields||{},b=[..._,{index:p,title:F}];if(R===h)return b;if(m&&m.length>0){const v=j(m,h,b);if(v)return v}}return null},y=s.helpNav.map((r,h)=>j((r==null?void 0:r.fields.items)||[],s.entry.fields.slug||"",[{index:h,title:r.fields.title}])).find(Boolean);return y&&n.push(...y.slice(0,-1)),n},[s.entry.fields.slug,s.helpNav]);if(z())return e.jsx(Q,{title:t,section:"Help Center",pageUrl:`${M.hostname}/help/${o}/`,pageType:"help",pageBreadcrumb:l,children:e.jsxs(e.Fragment,{children:[e.jsx("h1",{id:g(t),children:t}),e.jsx(x,{body:i})]})});function S(){var n;return typeof window>"u"?!1:((n=window.location)==null?void 0:n.hash)==="#reader"}return S()?e.jsx("div",{className:"max-w-5xl mx-auto px-6 py-10 relative",children:e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(O,{className:"w-64 dark:text-white text-primaryBlue"}),e.jsx(U,{helpNavInitial:l.length>0?[l[0],{title:I("Help")},...l.slice(1)]:l,customBreadcrumbs:a}),e.jsxs("div",{children:[e.jsx("h1",{id:g(t),children:t}),e.jsx(x,{body:i})]})]})}):e.jsx(L,{children:e.jsxs(V,{seo:{...s.seo,...d},title:t,slug:o,helpNav:s.helpNav,helpNavInitial:l,footerNav:N,newsletterForm:B,searchInHeader:!0,app:k,headerBanners:P,toc:H,displayPdfButton:!0,customBreadcrumbs:a,children:[e.jsx("h1",{id:g(t),children:t}),e.jsx(x,{body:i}),!c&&e.jsx("div",{className:"mt-24",children:e.jsx(W,{form:u})})]})})}export{ae as default}; 2//# sourceMappingURL=help-article-BzwSrYPg.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.