1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18737,e=>{"use strict";var t=e.i(43476),n=e.i(71645);e.s(["default",0,({htmlString:e,isApp:i})=>{let o=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=o.current;if(!e)return;let t=e=>{let t=e.target.closest("a");if(t){if(t.href.startsWith("gleap://")){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();let n=t.href;if(i)window.parent.postMessage({type:"click",data:n},"*");else if(n.includes("/article/")){let e=n.split("/article/")[1];window.Gleap.openHelpCenterArticle(e,!1)}else if(n.includes("/collection/")){let e=n.split("/collection/")[1];window.Gleap.openHelpCenterCollection(e,!1)}else if(n.includes("flow")){let e=n.split("flow/")[1];window.Gleap.startClassicForm(e,!1)}else if(n.includes("/checklist/")){let[e,t]=n.split("/checklist/")[1].split("/");window.Gleap.startChecklist(e,!0,t||void 0)}else if(n.includes("/tour/")){let e=n.split("/tour/")[1].split("/")[0];window.Gleap.startProductTour(e)}else if(n.includes("/survey/")){let e=n.split("/survey/")[1].split("/")[0];window.Gleap.showSurvey(e)}else if(n.includes("/news/")){let e=n.split("/news/")[1].split("/")[0];window.Gleap.openNewsArticle(e,!1)}else if(n.includes("bot")){let e=n.split("bot/")[1];window.Gleap.startBot(e)}return}if("_blank"===t.getAttribute("target")){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();try{window.open(t.href,"_blank","noopener,noreferrer")}catch(e){try{let e=document.createElement("a");e.href=t.href,e.target="_blank",e.rel="noopener noreferrer",e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)}catch(e){console.error("All methods failed:",e)}}}}};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[o]),(0,t.jsx)("div",{ref:o,id:"article-content",className:"article-content ProseMirror",dangerouslySetInnerHTML:{__html:e}})}])},97846,e=>{"use strict";var t=e.i(43476),n=e.i(71645),i=e.i(25456);e.s(["default",0,function({lang:e="en",boardShareToken:o="",articleId:a="",apiUrl:l="",helpcenterConfig:r}
1){let[c,s]=(0,n.useState)(null),[d,u]=(0,n.useState)(!1),p=(0,i.getStaticTranslations)(r,e),m=async t=>{if(null===c){s(t);var n=new XMLHttpRequest;n.open("PUT",`${l||"https://api.gleap.io"}/v3/shared/helpcenter/articles/${a}/feedback?lang=${e}`),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),n.setRequestHeader("api-token",encodeURIComponent(o)),n.send(JSON.stringify({type:t})),("bad"===t||"neutral"===t)&&u(!0)}};return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"article-ratings",children:[(0,t.jsx)("div",{className:"article-ratings-emojis-title",children:p.articleRatingTitle}),(0,t.jsxs)("div",{className:`article-ratings-emojis ${null!==c&&"article-ratings-emojis--disabled"}`,children:[(0,t.jsx)("div",{className:`article-ratings-emojis-emoji ${"bad"===c&&"article-ratings-emojis-emoji--selected"}`,onClick:()=>{m("bad")},children:"ð"}),(0,t.jsx)("div",{className:`article-ratings-emojis-emoji ${"neutral"===c&&"article-ratings-emojis-emoji--selected"}`,onClick:()=>{m("neutral")},children:"ð"}),(0,t.jsx)("div",{className:`article-ratings-emojis-emoji ${"good"===c&&"article-ratings-emojis-emoji--selected"}`,onClick:()=>{m("good")},children:"ð"})]}),d&&(0,t.jsxs)("div",{className:"article-ratings-chat",children:[(0,t.jsx)("div",{className:"article-ratings-emojis-title",children:p.articleNoHelpRatingTitle}),(0,t.jsx)("div",{className:"linktype-button",onClick:()=>{if(window.Gleap)window.Gleap.startBot();else{var e,t;e=JSON.stringify({name:"startBot",data:{hideBackButton:!1}}),t=window.top,window.parent!=window.top&&(t=window.parent),t.postMessage(e,"*")}},children:p.articleHelpButton})]})]})})}])},10802,e=>{"use strict";var t=e.i(71645);e.s(["default",0,function({apiKey:e,articleId:n,apiUrl:i}){return(0,t.useEffect)(()=>{try{var t=new XMLHttpRequest,o=`${i||"https://api.gleap.io"}/v3/shared/helpcenter/track-article-view`,a=JSON.stringify({articleID:n});t.open("POST",o,!0),t.setRequestHeader("Content-Type","application/json"),t.setRequestHeader("api-token",e),t.onreadystatechange=function(){},t.send(a)}catch(e){console.log(e)}},[]),null}])},50619,e=>{"use strict";var t=e.i(43476),n=e.i(71645),i=e.i(25456);e.s(["default",0,function({markdown:e,lang:o,helpcenterConfig:a}){let[l,r]=(0,n.useState)(!1),c=(0,n.useRef)(null),s=(0,i.getStaticTranslations)(a,o);(0,n.useEffect)(()=>()=>{c.current&&clearTimeout(c.current)},[]);let d=async()=>{try{await navigator.clipboard.writeText(e)}catch{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}r(!0),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>r(!1),2e3)};return(0,t.jsxs)("button",{type:"button",className:`copy-for-llm ${l?"copy-for-llm--copied":""}`,onClick:d,"aria-live":"polite",children:[(0,t.jsx)("i",{className:l?"fa-solid fa-check":"fa-regular fa-copy","aria-hidden":"true"}),(0,t.jsx)("span",{children:l?s.copied:s.copyForLLM})]})}])},88808,e=>{"use strict";var t=e.i(71645),n=e.i(77470);e.s(["default",0,function(){return(0,t.useEffect)(()=>{let e=()=>{let e=document.getElementById("article-content");e&&e.querySelectorAll(n.ARTICLE_HEADING_TAG_SELECTOR).forEach((e,t)=>{if(!e.querySelector(".heading-permalink")){let i=(0,n.getArticleHeadingId)(e,t);e.setAttribute("id",i);let o=document.createElement("button");o.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>',o.className="heading-permalink",o.setAttribute("data-heading-id",i);let a=document.createElement("div");a.style.display="inline-flex",a.style.alignItems="center",o.onclick=()=>{navigator.clipboard.writeText(window.location.origin+window.location.pathname+"#"+i);let e=document.createElement("span");e.textContent="Link copied!",e.style.opacity="1",e.style.marginLeft="8px",e.style.fontSize="13px",e.style.fontWeight="600 !important",e.style.color="#666",e.style.transition="opacity 0.5s",a.appendChild(e),setTimeout(()=>{e.style.opacity="0",setTimeout(()=>{e.remove()},500)},1500)},a.appendChild(o),e.appendChild(a)}})},t=new MutationObserver(e);return t.observe(document.getElementById("article-content")||document.body,{childList:!0,subtree:!0}
1),e(),()=>t.disconnect()},[]),null}])},17856,e=>{"use strict";var t=e.i(71645);e.s(["default",0,()=>((0,t.useEffect)(()=>{let e,t=((e=document.createElement("script")).innerHTML=` 2 if (typeof window !== 'undefined') { 3 4 // Add click handlers to all images in the article content 5 document.querySelectorAll('.article-content img').forEach(img => { 6 if (img.classList.contains('callout-icon')) { 7 return; 8 } 9 10 if (img.parentElement?.getAttribute('data-type') === 'emoji') { 11 return; 12 } 13 14 img.style.cursor = 'pointer'; 15 16 if (img.parentElement?.tagName !== 'A') { 17 img.onclick = function() { 18 window.handleImageClick(this); 19 }; 20 } 21 }); 22 23 if (!window.handleImageClick) { 24 window.handleImageClick = (element) => { 25 const imageUrl = element.src; 26 27 if (element?.title?.startsWith('http')) { 28 window.open(element.title, '_blank'); 29 return; 30 } 31 32 if (element?.title?.startsWith('gleap://')) { 33 const anchor = document.createElement('a'); 34 anchor.href = element.title; 35 anchor.title = element.title; 36 document.body.appendChild(anchor); 37 anchor.click(); 38 document.body.removeChild(anchor); 39 return; 40 } 41 42 function createLightboxContainer(imageUrl) { 43 const lightboxContainer = document.createElement('div'); 44 lightboxContainer.className = 'lightbox-container'; 45 46 const lightboxImage = createLightboxImage(imageUrl); 47 const closeButton = createCloseButton(); 48 49 lightboxContainer.onclick = () => closeLightbox(); 50 lightboxContainer.appendChild(closeButton); 51 lightboxContainer.appendChild(lightboxImage); 52 53 return lightboxContainer; 54 } 55 56 function createLightboxImage(imageUrl) { 57 const lightboxImage = document.createElement('img'); 58 lightboxImage.src = imageUrl; 59 lightboxImage.className = 'lightbox-image'; 60 return lightboxImage; 61 } 62 63 function createCloseButton() { 64 const closeButton = document.createElement('span'); 65 closeButton.innerHTML = '×'; 66 closeButton.className = 'close-button'; 67 return closeButton; 68 } 69 70 function closeLightbox() { 71 const lightboxContainer = document.querySelector('.lightbox-container'); 72 if (lightboxContainer) { 73 document.body.removeChild(lightboxContainer); 74 document.body.classList.remove('lightbox-open'); 75 } 76 77 document.removeEventListener('keydown', escapeKeyHandler); 78 } 79 80 function escapeKeyHandler(event) { 81 if (event.key === 'Escape') { 82 closeLightbox(); 83 } 84 } 85 86 const lightboxContainer = createLightboxContainer(imageUrl); 87 document.body.appendChild(lightboxContainer); 88 document.body.classList.add('lightbox-open'); 89 90 document.addEventListener('keydown', escapeKeyHandler); 91 } 92 } 93 } 94 `,document.body.appendChild(e),e);return()=>{t&&document.body.removeChild(t)}},[]),null)])},91177,e=>{"use strict";var t=e.i(71645),n=e.i(18566),i=e.i(98226);e.s(["default",0,function({extendedScreen:e=!1,notify:o=!0,project:a}){let l=(0,n.useRouter)();return(0,t.useEffect)(()=>{let e=e=>{try{let t;if("string"==typeof e.data)t=JSON.parse(e.data);else{if("object"!=typeof e.data)return;t=e.data}t&&"goback"===t.name&&(console.log("goback"),l.back())}catch(e){console.log("exp",e)}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[]),(0,t.useEffect)(()=>
94{if(window&&document&&o){let t=e=>{var t=window.top;window.parent!=window.top&&(t=window.parent),t.postMessage(e,"*")},n=null;try{let e=a.customDomain??a.defaultDomain,t=new URL(window.location.href);t.host=e.replace(/^https?:\/\//,"").replace(/\/+$/,""),n=t.toString()}catch(e){n=window.location.href}t(JSON.stringify({type:"app",name:"page",data:{title:(document.title||"Help").split(" |")[0],path:window.location.pathname,extendScreen:e,url:n}})),document.onclick=function(e){for(var n=(e=e||window.event).target||e.srcElement;n&&"A"!==n.tagName&&n.parentNode;)n=n?.parentNode;if(n&&"A"===n.tagName&&n.href&&n.href.length>0){if([window.location.host,a.customDomain,a.defaultDomain,`${a?.apiKey}-app.gleap.help`.toLocaleLowerCase(),`${a?.apiKey}-app.us.gleap.help`.toLocaleLowerCase()].some(e=>!!(e&&e.length>0&&n.href.includes(e)))){if(n.href.includes(a.customDomain)||n.href.includes(a.defaultDomain)){let t=new URL(n.href);t.host=window.location.host;let i=t.pathname+t.search+t.hash;if(i&&i.length>6)return e.stopPropagation(),e.preventDefault(),l.push(i),!1}return!0}return e.stopPropagation(),e.preventDefault(),t(JSON.stringify({type:"app",name:"open-url",data:n.href,newTab:!0})),!1}},document.querySelectorAll(".article-content a").forEach(e=>{e.onclick=function(t){if(t.preventDefault(),t.stopPropagation(),!e.href.startsWith("gleap://")){let t=e.href;try{let n=new URL(window.location.href),o=n?.searchParams?.get("gleapId"),l=n?.searchParams?.get("gleapHash");if(e.href.includes("#")){let n=t.split("#")[0].split("articles/")[1];if(new URL(window.location.href).pathname.split("/articles/")[1]===n)return(0,i.scrollIntoViewWithOffset)(`#${e.href.split("#")[1]}`,0),!1}if(o&&l&&(t=function(e,t,n){try{let i=new URL(e,window.location.origin);if(i.searchParams.has("gleapId")||i.searchParams.has("gleapHash"))return e;let o=`gleapId=${t}&gleapHash=${n}`,[a,l]=e.split("#"),r=a.includes("?")?"&":"?",c=`${a}${r}${o}`;return l?`${c}#${l}`:c}catch(t){return e}}(t,o,l)),t.includes("http")&&(t.includes(a.customDomain)||t.includes(a.defaultDomain)||t.includes(`${a?.apiKey}-app.gleap.help`.toLowerCase())||t.includes(`${a?.apiKey}-app.us.gleap.help`.toLowerCase())||t.includes("localhost"))){let e=new URL(t),n=e.host,i=e.protocol,o=`${i}//${n}`;t=t.replace(o,"")}}catch(e){console.log("error",e)}l.push(t)}return!1}})}},[]),null}])},34839,e=>{"use strict";var t=e.i(71645);e.s(["default",0,function({title:e}){let n=e=>{var t=window.top;window.parent!=window.top&&(t=window.parent),t.postMessage(e,"*")};var i=!0;let o=(0,t.useCallback)(t=>{let{scrollTop:o}=t.target;o>60?i&&(i=!1,n(JSON.stringify({type:"app",name:"show-app-scroll-title",data:{title:e,show:!0}}))):i||(i=!0,n(JSON.stringify({type:"app",name:"show-app-scroll-title",data:{title:e,show:!1}})))},[]);return(0,t.useEffect)(()=>(window&&document&&document.getElementsByTagName("body")[0].addEventListener("scroll",o,{passive:!0}),()=>{window&&document&&document.getElementsByTagName("body")[0].removeEventListener("scroll",o)}),[]),null}])},98226,e=>{"use strict";var t=e.i(43476),n=e.i(71645),i=e.i(77470);let o=(e,t)=>{try{let n=document.querySelector(e);if(!n)return;let i=window.getComputedStyle(document.documentElement);if("hidden"===i.overflow){let e=document.body,i=n.getBoundingClientRect();e.scrollTo({behavior:"smooth",top:e.scrollTop+i.top-t})}else window.scrollTo({behavior:"smooth",top:n.getBoundingClientRect().top-document.body.getBoundingClientRect().top-t})}catch(e){console.log(e)}};function a(){let e=(0,n.useRef)(void 0),[t,o]=(0,n.useState)("");return(0,n.useEffect)(()=>(e.current=new IntersectionObserver(e=>{e.forEach(e=>{e?.isIntersecting&&e.target&&o(e.target.id)})},{rootMargin:"0% 0% -80% 0px"}),document.querySelectorAll(i.ARTICLE_CONTENT_HEADING_SELECTOR).forEach(t=>e.current.observe(t)),()=>e.current?.disconnect()),[]),{activeId:t}}e.s(["default",0,function({hasHeading:e}){let[l,r]=(0,n.useState)([]),{activeId:c}=a(),s=(0,n.useRef)(null);(0,n.useEffect)(()=>{r(Array.from(document.querySelectorAll(i.ARTICLE_CONTENT_HEADING_SELECTOR)).map((e,t)=>{let n=(0,i.getArticleHeadingId)(e,t);e.id=n,window.location.hash===`#${n}`&&o(`#${n}`,100);let a=e.querySelector("button");a&&a.remove();let l=e.innerText,r=document.createElement("div");return r.innerHTML=e.innerHTML.replace(a?.outerHTML||"","").replace(/<strong>|<\/strong>|<b>|<\/b>|<em>|<\/em>|<i>|<\/i>
94/g,""),Array.from(r.getElementsByTagName("img")).forEach(e=>{let t=e.parentElement;t&&"emoji"===t.getAttribute("data-type")||e.remove()}),{id:n,text:l,customHtml:r.innerHTML,level:Number(e.nodeName.charAt(1))}}))},[]);var d=c;return((!d||""===d)&&l[0]?.id&&(d=l[0].id),(0,n.useEffect)(()=>{if(!s.current||!d)return;let e=s.current.querySelector(`[data-id="${d}"]`);if(!e)return;let{top:t,bottom:n}=e.getBoundingClientRect(),{top:i,bottom:o}=s.current.getBoundingClientRect();(t<i||n>o)&&e.scrollIntoView({block:"nearest",behavior:"smooth"})},[d]),l&&0!==l.length)?(0,t.jsx)("div",{className:"article-container-nav",children:(0,t.jsx)("nav",{children:(0,t.jsx)("ul",{ref:s,children:l.map(e=>(0,t.jsx)("li",{"data-id":e.id,className:`${(e=>{switch(e){case 1:return"head1";case 2:return"head2";case 3:return"head3";case 4:return"head4";default:return""}})(e.level)} ${d===e.id?"active":""}`,children:(0,t.jsx)("a",{className:"table-of-contents-item",href:`#${e.id}`,onClick:t=>{t.preventDefault(),o(`#${e.id}`,100)},children:e.customHtml?(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e.customHtml}}):e.text})},e.id))})})}):e?(0,t.jsx)("div",{className:"article-container-nav"}):null},"scrollIntoViewWithOffset",0,o,"useHeadsObserver",0,a])},77470,e=>{"use strict";e.s(["ARTICLE_CONTENT_HEADING_SELECTOR",0,".article-content h1, .article-content h2, .article-content h3, .article-content h4","ARTICLE_HEADING_TAG_SELECTOR",0,"h1, h2, h3, h4","getArticleHeadingId",0,(e,t)=>{let n=e.textContent?.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return`heading-${t}-${n}`}])}]);
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.