1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4060],{44054:function(e,t,n){n.d(t,{FreePlanSeo:function(){return a}});var r=n(57437),i=n(2265);function o(){if("undefined"!=typeof document)for(let e of Array.from(document.querySelectorAll("a[href]"))){let t;let n=e.getAttribute("href");if(!n)continue;let r=n.trim();if(!r||r.startsWith("#")||r.startsWith("/")||r.startsWith("./")||r.startsWith("../")||/^(mailto:|tel:|javascript:)/i.test(r)||!/^https?:/i.test(r))continue;try{t=new URL(r)}catch(e){continue}if(t.host&&t.host===window.location.host)continue;let i=function(e,t){let n=new Set(String(e||"").split(/\s+/).map(e=>e.trim()).filter(Boolean).map(e=>e.toLowerCase()));return n.add(t.toLowerCase()),Array.from(n).join(" ")}(e.getAttribute("rel"),"nofollow");e.setAttribute("rel",i)}}function a(e){let{enabled:t}=e,n=(0,i.useMemo)(()=>{let e=function(){let e=window.location.hostname;return e.includes("helpsite.test")?"http://helpsite.test:3000":e.includes("staging")?"https://app.staging-helpsite.us":"https://app.helpsite.com"}();try{return new URL("/settings/billing",e).toString()}catch(t){return"".concat(e.replace(/\/+$/,""),"/settings/billing")}},[]);return((0,i.useEffect)(()=>{if(!t)return;o();let e=window.setInterval(()=>{o()},1e3);return()=>{window.clearInterval(e)}},[t]),t)?(0,r.jsxs)("div",{style:{width:"100%",padding:"8px 12px",textAlign:"center",fontSize:14,lineHeight:"20px",background:"rgba(0,0,0,0.04)"},role:"region","aria-label":"Upgrade prompt",children:["Upgrade to make your site indexable by search engines. "," ",(0,r.jsx)("a",{href:n,style:{textDecoration:"underline",fontWeight:600},children:"Upgrade"})]}):null}},65268:function(e,t,n){n.d(t,{default:function(){return o}});var r=n(57437),i=n(2265);function o(e){let{siteName:t="Site",message:n="This site requires you to log in to view its contents.",showLogout:o=!1,loginUrl:a,jwtError:s,expectedAud:l}=e,c=(0,i.useCallback)(()=>{let e=window.location.hostname,t="https://app.helpsite.com";return e.includes("helpsite.test")?t="http://helpsite.test:3000":e.includes("staging")&&(t="https://app.staging-helpsite.us"),t},[]),d=(0,i.useCallback)(()=>{let e=window.location.href;if(a&&a.trim())try{let t=new URL(a);return t.searchParams.set("jwt_error",s||"missing_jwt"),l&&t.searchParams.set("expected_aud",l),t.searchParams.set("from_url",e),t.toString()}catch(e){}let t=new URL(c());return t.searchParams.set("external_callback_url",e),t.toString()},[l,c,s,a]),u=()=>{let e=c(),t=d(),n=new URL("/logout",e);return n.searchParams.set("callbackUrl",t),n.toString()},f=(0,i.useCallback)(e=>{try{window.top&&window.top!==window?window.top.location.href=e:window.location.href=e}catch(t){window.location.href=e}},[]);return(0,i.useEffect)(()=>{(null==a?void 0:a.trim())&&f(d())},[d,f,a]),(0,r.jsxs)("div",{className:"bg-white min-h-screen",style:{color:"var(--HelpSite-foreground, #18181B)"},children:[(0,r.jsx)("style",{children:"\n .login-heading {\n color: var(--HelpSite-foreground, #18181B);\n font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;\n font-size: 48px;\n font-weight: 500;\n line-height: 48px;\n }\n\n .login-subheading {\n color: var(--HelpSite-foreground, #18181B);\n font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;\n font-size: 24px;\n font-weight: 400;\n line-height: 32px;\n }\n\n .login-body {\n color: var(--HelpSite-foreground, #18181B);\n font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n }\n\n .login-button {\n font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n color: var(--HelpSite-foreground, #18181B);\n background-color: var(--HelpSite-primary, #3B82F6);\n color: white;\n border: none;\n padding: 12px 24px;\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.2s;\n text-decoration: none;\n display: inline-block;\n }\n\n .login-button:hover {\n opacity: 0.9;\n transform: translateY(-1px);\n }\n\n .login-button-secondary {\n font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n background: transparent;\n color: var(--HelpSite-foreground, #18181B);\n border: 1px solid currentColor;\n padding: 12px 24px;\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.2s;\n text-decoration: none;\n display: inline-block;\n margin-left: 12px;\n }\n\n .login-button-secondary:hover {\n opacity: 0.9;\n transform: translateY(-1px);\n }\n\n .disabled-image {\n height: 100%;\n max-height: 480px;\n min-height: 480px;\n aspect-ratio: 1;\n width: 100%;\n object-fit: contain;\n }\n\n @media (max-width: 768px) {\n .login-heading {\n font-size: 32px;\n line-height: 40px;\n }\n\n .login-subheading {\n font-size: 20px;\n line-height: 28px;\n }\n\n .disabled-image {\n max-height: 320px;\n min-height: 320px;\n }\n }\n "}),(0,r.jsxs)("div",{style:{padding:"3rem"},children:[(0,r.jsx)("div",{style:{marginBottom:"3rem",paddingBottom:"3rem"},children:(0,r.jsx)("div",{className:"flex items-start",children:(0,r.jsx)("img",{src:"/images/logos/helpsite-logo.svg",alt:"Logo",className:"h-8"})})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5 items-center",style:{gap:"3rem"},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"login-heading mb-3",children:"Login Required"}),(0,r.jsxs)("p",{className:"login-subheading mb-4",children:[(0,r.jsx)("strong",{children:t})," requires authentication."]}),(0,r.jsx)("p",{className:"login-body mb-6",children:n}),(0,r.jsx)("a",{href:d(),className:"login-button",onClick:e=>{let t=d();e.preventDefault(),f(t)},children:"Log In"}),o?(0,r.jsx)("a",{href:u(),className:"login-button-secondary",onClick:e=>{let t=u();if(e.preventDefault(),"undefined"!=typeof document){let e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/";document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=").concat(t,";")};e("nextjs_jwt","/"),e("helpsite_jwt","/")}f(t)},children:"Log out & switch account"}):null]}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)("img",{src:"/images/sections/error-missing-article.webp",alt:"","aria-hidden":"true",className:"disabled-image"})})]})]})]})}},15158:function(e,t,n){n.d(t,{default:function(){return o}});var r=n(57437),i=n(44086);function o(e){let{error:t,returnTo:n,bypassLayout:o}=e;return(0,r.jsx)(i.Z,{error:t,onSubmit:e=>{let t=String(e||"").trim();if(t){try{localStorage.setItem("helpsite_page_password",t)}catch(e){}try{let e=new Date(Date.now()+365*864e5).toUTCString(),n="https:"===window.location.protocol;document.cookie="helpsite_page_password=".concat(encodeURIComponent(t),"; expires=").concat(e,"; path=/")+(n?"; SameSite=None; Secure":"; SameSite=Lax")}catch(e){}try{let e=n?new URL(n,window.location.origin):new URL(window.location.href);e.searchParams.set("pw",t),e.searchParams.set("shared_password",t),window.location.href=e.toString()}catch(n){let e=window.location.search?"&":"?";
1window.location.href="".concat(window.location.href).concat(e,"pw=").concat(encodeURIComponent(t))}}}})}},44086:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(57437),i=n(2265),o=n(95186),a=n(62869),s=n(87769),l=n(42208),c=n(51817);function d(e){let{error:t,onSubmit:n}=e,[d,u]=(0,i.useState)(!1),[f,h]=(0,i.useState)(""),[p,g]=(0,i.useState)(!1),m=async e=>{e.preventDefault(),g(!0),await Promise.resolve(null==n?void 0:n(f))};return(0,r.jsxs)("div",{className:"min-h-screen flex flex-col bg-white",children:[(0,r.jsx)("header",{className:"p-6",children:(0,r.jsx)("img",{src:"/images/logos/helpsite-logo.svg",alt:"HelpSite",className:"h-6"})}),(0,r.jsx)("main",{className:"flex flex-1 items-center justify-center",children:(0,r.jsxs)("div",{className:"w-full max-w-md px-6",children:[(0,r.jsx)("h1",{className:"text-xl font-semibold text-center",children:"Password Required"}),(0,r.jsx)("p",{className:"text-center text-gray-600 mb-6 text-sm",children:"This page requires a password to view its content."}),(0,r.jsxs)("form",{onSubmit:m,children:[(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Password"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(o.I,{type:d?"text":"password",className:"w-full pr-10 focus-visible:ring-2 focus-visible:ring-ring",value:f,onChange:e=>h(e.target.value),autoFocus:!0,disabled:p}),(0,r.jsx)("button",{type:"button",onClick:()=>u(e=>!e),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-700",tabIndex:-1,disabled:p,children:d?(0,r.jsx)(s.Z,{className:"w-5 h-5"}):(0,r.jsx)(l.Z,{className:"w-5 h-5"})})]}),t&&(0,r.jsx)("div",{className:"text-red-500 mt-2 text-sm text-center",children:t})]}),(0,r.jsx)(a.z,{className:"w-full flex items-center justify-center",type:"submit",disabled:p,children:p?(0,r.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,r.jsx)(c.Z,{className:"h-4 w-4 animate-spin"}),"Loadingâ¦"]}):"Sign in"})]}),(0,r.jsxs)("div",{className:"text-xs text-gray-500 mt-6 space-y-4 text-center",children:[(0,r.jsx)("p",{children:"If you are the owner of this site and believe this to be an error, contact us at [email protected] for assistance."}),(0,r.jsxs)("p",{children:["If you already have a HelpSite account authorized to view this site,"," ",(0,r.jsx)("a",{href:"/",className:"text-primary underline",children:"login here"}),"."]})]})]})})]})}},62869:function(e,t,n){n.d(t,{d:function(){return l},z:function(){return c}});var r=n(57437),i=n(2265),o=n(37053),a=n(90535),s=n(94508);let l=(0,a.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,background-color,border-color,filter,box-shadow] duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-brand-cta text-white font-semibold shadow-brand-cta hover:brightness-[1.06] active:brightness-[0.97]",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground hover:border-brand-300",secondary:"bg-secondary text-secondary-foreground border border-input shadow-sm hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8 text-[15px]",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=i.forwardRef((e,t)=>{let{className:n,variant:i,size:a,asChild:c=!1,...d}=e,u=c?o.g7:"button";return(0,r.jsx)(u,{className:(0,s.cn)(l({variant:i,size:a,className:n})),ref:t,...d})});c.displayName="Button"},95186:function(e,t,n){n.d(t,{I:function(){return a}});var r=n(57437),i=n(2265),o=n(94508);let a=i.forwardRef((e,t)=>{let{className:n,type:i,...a}=e;return(0,r.jsx)("input",{type:i,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/25 focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t,...a})});a.displayName="Input"},94508:function(e,t,n){n.d(t,{cn:function(){return o}});var r=n(61994),i=n(53335);function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.m6)((0,r.W)(t))}},20135:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(2265),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},o=n(7656);let a=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:u,...f}=e;return(0,r.createElement)("svg",{ref:t,...i,width:a,height:a,stroke:n,strokeWidth:l?24*Number(s)/Number(a):s,className:(0,o.z)("lucide",c),...f},[...u.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(d)?d:[d]])})},43168:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(2265),i=n(7656),o=n(20135);let a=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:s,...l}=n;return(0,r.createElement)(o.Z,{ref:a,iconNode:t,className:(0,i.z)("lucide-".concat((0,i.m)(e)),s),...l})});return n.displayName="".concat(e),n}},87769:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(43168).Z)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},42208:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(43168).Z)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},51817:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(43168).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},7656:function(e,t,n){n.d(t,{m:function(){return r},z:function(){return i}});let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];
1return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()}},48667:function(e,t,n){n.d(t,{default:function(){return i.a}});var r=n(88003),i=n.n(r)},63515:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]);
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.