1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1829],{9321:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let l=r(30758)._(r(55729)),a=r(57827),n=[],s=[],o=!1;function i(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function i(){if(!n){let t=new d(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!o){let e=r.webpack&&1?r.webpack():r.modules;e&&s.push(t=>{for(let r of e)if(t.includes(r))return i()})}function u(e,t){i();let s=l.default.useContext(a.LoadableContext);s&&Array.isArray(r.modules)&&r.modules.forEach(e=>{s(e)});let o=l.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return l.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),l.default.useMemo(()=>{var t;return o.loading||o.error?l.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:n.retry}):o.loaded?l.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return u.preload=()=>i(),u.displayName="LoadableComponent",l.default.forwardRef(u)}(i,e)}function c(e,t){let r=[];for(;e.length;){let l=e.pop();r.push(l(t))}return Promise.all(r).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(n).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(o=!0,t());c(s,e).then(r,r)})),window.__NEXT_PRELOADREADY=u.preloadReady;let m=u},15821:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var l=r(6029),a=r(55729),n=r(81278),s=r(71434),o=r.n(s),i=r(35399),d=r(92820);let u=e=>{let{onView:t=o().noop,onClick:r=o().noop}=e,s=(0,n.useRouter)().asPath;return(0,a.useEffect)(()=>{t()},[]),(0,l.jsx)("div",{className:"flex w-full py-12 px-8 border border-gray-200 rounded-lg bg-white",children:(0,l.jsxs)("div",{className:"flex flex-col w-full",children:[(0,l.jsx)("h2",{className:"text-center text-2xl font-extrabold text-black",children:"Youâre just one step away."}),(0,l.jsx)("h3",{className:"text-lg text-center font-normal text-gray-500 mb-8",children:"Create an account to get a free sample of our interview prep courses."}),(0,l.jsxs)("div",{className:"flex flex-col mx-auto w-full max-w-sm space-y-2",children:[(0,l.jsx)(d.aZ,{returnPath:s,onClick:()=>r("google"),children:"Sign up with Google"}),(0,l.jsx)(d.B_,{returnPath:s,onClick:()=>r("facebook"),children:"Sign up with Facebook"}),(0,l.jsx)(d.fC,{returnPath:s,onClick:()=>r("linkedin"),children:"Sign up with LinkedIn"}),(0,l.jsx)(i.A,{href:"/login?returnPath=".concat(s),className:"text-indigo text-center font-medium p-2",onClick:()=>r("login"),children:"Or login to your account"})]})]})})}},17338:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var l=r(6029);r(55729);var a=r(35399),n=r(51369);let s=e=>{let{author:t,minimal:r}=e;return r?(0,l.jsxs)("div",{className:"flex items-center gap-2 border border-gray-200 rounded-lg px-6 py-4 bg-gray-50",children:[t.image&&(0,l.jsx)("img",{className:"h-5 w-5 rounded-full object-cover",src:(0,n.cm)(t.image,200,200),alt:t.name,onError:e=>{e.target.style.display="none"}}),(0,l.jsxs)("span",{className:"text-sm text-gray-500",children:["Written by"," ",(0,l.jsx)("span",{className:"text-gray-800 font-medium",children:t.name}),t.title&&(0,l.jsxs)(l.Fragment,{children:[","," ",t.title]})]})]}):(0,l.jsxs)("div",{className:"flex border rounded-lg p-4 bg-gray-50 border-gray-200",children:[t.image&&(0,l.jsx)("img",{className:"h-12 w-12 rounded-full object-cover mr-4",src:(0,n.cm)(t.image,200,200),alt:t.name,onError:e=>{e.target.style.display="none"}}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("span",{className:"text-base font-medium whitespace-nowrap text-gray-500",children:["Written by"," ",(0,l.jsx)("span",{className:"text-gray-800",children:t.name})]}),t.title&&(0,l.jsx)("span",{className:"text-sm font-normal text-gray-500",children:t.title})]})]})},o=e=>{let{author:t,className:r,minimal:n=!1}=e;return(0,l.jsx)("div",{className:r,children:t.link?(0,l.jsx)(a.A,{href:t.link,children:(0,l.jsx)(s,{author:t,minimal:n})}):(0,l.jsx)(s,{author:t,minimal:n})})}},17399:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var l=r(55729);function a(e,t){return(0,l.useMemo)(()=>{var r;if(e.type)return e.type;let l=null!=(r=e.as)?r:"button";if("string"==typeof l&&"button"===l.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}},26761:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>_,default:()=>k});var l=r(6029),a=r(55729),n=r(81278),s=r(74111),o=r(57521),i=r(26111),d=r(7531);let u=[{name:"Entire course library",text:"Get full access to our course library, with hours of lessons and example answers."},{name:"Mock interview videos",text:"Watch experts answer real interview questions in hundreds of videos."},{name:"Private Slack access",text:"Join our daily discussions with 10,000 other ".concat((0,d.JH)()," members on Slack.")},{name:"Live daily practice",text:"With our new peer practice tool, you can practice with other members every day."}],c=e=>{let{slug:t}=e,{tracker:r}=(0,o.st)();return(0,a.useEffect)(()=>{r.resourceViewPaywall({slug:t})},[]),(0,l.jsxs)("div",{className:"flex flex-col items-center w-full mt-6 p-8 border border-gray-200 rounded-lg bg-white",children:[(0,l.jsx)(i.jl,{className:"mt-2 mb-4 w-8 h-8 text-black"}),(0,l.jsx)("h2",{className:"text-center text-xl md:text-2xl font-extrabold text-black",children:"Join now to continue learning"}),(0,l.jsx)("span",{className:"text-center text-base text-gray-400 w-full md:w-2/3",children:"As an ".concat((0,d.JH)()," member, youâll get access to this content and so much more.")}),(0,l.jsx)("div",{className:"flex flex-wrap flex-row justify-center",children:(0,l.jsx)(s.A,{className:"my-4 px-10",href:"/upgrade?src=resource",onClick:()=>r.resourceClickUpgrade({slug:t}),rounded:!0,asLink:!0,children:"Upgrade now"})}),(0,l.jsx)("div",{className:"p-8 grid grid-cols-1 md:grid-cols-2 gap-4",children:u.map(e=>(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("dt",{children:[(0,l.jsx)(i.AF,{className:"absolute h-6 w-6 text-green-500","aria-hidden":"true"}),(0,l.jsx)("p",{className:"ml-9 text-lg leading-6 font-medium text-gray-800",children:e.name})]}),(0,l.jsx)("dd",{className:"mt-2 ml-9 text-base text-gray-500",children:e.text})]},e.name))})]})},m=e=>{let{url:t}=e,[r,n]=(0,a.useState)(null);return(0,a.useEffect)(()=>{(async()=>{let e=await fetch("https://soundcloud.com/oembed?format=json&maxheight=166&url=".concat(t));n(await e.json())})()},[t]),t?(0,l.jsx)("div",{dangerouslySetInnerHTML:r?{__html:r.html}:null,className:"w-full max-w-3xl mx-auto mt-4 mb-6",style:{height:"166px"}}):null};var h=r(15821);let x=e=>{let{children:t}=e;return(0,l.jsx)("div",{className:"\n ml-4\n py-1.5\n px-2\n hidden\n md:flex\n border\n border-gray-300\n text-gray-700\n rounded-md\n text-xs\n font-medium\n uppercase\n tracking-wider\n whitespace-nowrap\n ",children:t})};var p=r(28910),f=r(35255),g=r(42911),b=r(17338),y=r(91275),w=r(88369),v=r(3524),j=r(51369);let N=e=>{let{resource:t,hasAccess:r}=e,{hasSubscription:s,dispatch:i}=(0,o.Us)(),{tracker:d}=(0,o.st)(),u=(0,n.useRouter)();(0,a.useEffect)(()=>{d.resourceView({slug:t.slug}),i({type:"clearReferrer",payload:null})},[t.slug]);let N=t.free&&!r,_=!t.free&&!r;return(0,l.jsxs)("div",{className:"w-full pt-3 pb-32 px-4 sm:px-8 relative mx-auto bg-white",children:[(0,l.jsx)(g.A,{title:t.title,isFree:t.free,imgAlt:t.title,metaDescription:t.description,socialDescription:t.description,canonicalUrl:(0,v.S)(u.asPath)}),t.video&&(0,l.jsx)("div",{className:"rounded overflow-hidden max-w-5xl mx-auto",children:(0,l.jsx)(y.A,{videoID:t.video})}),(0,l.jsxs)("div",{className:"w-full max-w-3xl mx-auto",children:[(0,l.jsxs)("div",{className:"flex justify-between items-start mt-6 mb-4",children:[(0,l.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-black self-center",children:t.shortTitle}),!t.free&&!s&&(0,l.jsx)(x,{children:"Premium"})]}),t.author&&(0,l.jsx)(b.A,{author:t.author,className:"mt-4 mb-6"})]}),t.paywalledVideo&&(0,l.jsxs)("div",{className:"relative rounded-lg overflow-hidden max-w-5xl mx-auto bg-gray-400",style:{height:420},children:[(0,l.jsx)("video",{className:"blur h-full w-full object-cover",style:{height:420}
1,src:w.F,autoPlay:!0,muted:!0,loop:!0,playsInline:!0}),(0,l.jsx)("div",{className:"absolute top-0 bottom-0 left-0 right-0 bg-black opacity-75"})]}),t.soundcloud&&(0,l.jsx)(m,{url:t.soundcloud}),(0,l.jsxs)("div",{className:(0,j.cx)("max-w-3xl mx-auto",{hidden:t.paywalledVideo}),children:[(0,l.jsx)("h3",{className:"my-4 text-lg text-gray-500 font-medium leading-tight",children:t.description}),(0,l.jsx)("div",{className:(0,j.cx)({"LessonPage--blocked":!r}),children:(0,l.jsx)(f.default,{placeholder:(0,l.jsx)(p.A,{}),allowRaw:!0,children:t.content})})]}),(0,l.jsxs)("div",{className:(0,j.cx)("relative max-w-3xl mx-auto",{"-mt-64":t.paywalledVideo}),children:[N&&(0,l.jsx)(h.A,{onView:()=>d.resourceViewSignupWall({slug:t.slug}),onClick:e=>d.resourceClickSignupWall({type:e,slug:t.slug})}),_&&(0,l.jsx)(c,{slug:t.slug})]})]})};var _=!0;function k(e){return(0,l.jsx)(N,{...e})}},28910:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var l=r(6029);r(55729);let a=()=>(0,l.jsxs)("div",{className:"mt-8 px-8 mx-auto w-full max-w-4xl",children:[(0,l.jsx)("div",{className:"mb-8 h-1/2 bg-gray-100 rounded w-full"}),(0,l.jsxs)("div",{className:"space-y-2 mb-4",children:[(0,l.jsx)("div",{className:"h-6 bg-gray-100 rounded w-4/5"}),(0,l.jsx)("div",{className:"h-4 bg-gray-100 rounded w-3/5"}),(0,l.jsx)("div",{className:"h-4 bg-gray-100 rounded w-4/5"}),(0,l.jsx)("div",{className:"h-4 bg-gray-100 rounded w-3/5"})]})]})},48574:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},noSSR:function(){return s}});let l=r(30758);r(6029),r(55729);let a=l._(r(9321));function n(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let r=a.default,l={loading:e=>{let{error:t,isLoading:r,pastDelay:l}=e;return null}};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e});let o=(l={...l,...t}).loader;return(l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr)?r({...l,loader:()=>null!=o?o().then(n):Promise.resolve(n(()=>null))}):(delete l.webpack,delete l.modules,s(r,l))}("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)},49969:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var l=r(55729);let a=l.forwardRef(function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))})},56103:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var l=r(55729),a=r(52053),n=r(90570),s=r(34633);function o({disabled:e=!1}={}){let t=(0,l.useRef)(null),[r,i]=(0,l.useState)(!1),d=(0,n.L)(),u=(0,s._)(()=>{t.current=null,i(!1),d.dispose()}),c=(0,s._)(e=>{if(d.dispose(),null===t.current){t.current=e.currentTarget,i(!0);{let r=(0,a.TW)(e.currentTarget);d.addEventListener(r,"pointerup",u,!1),d.addEventListener(r,"pointermove",e=>{if(t.current){var r,l;let a,n;i((a=e.width/2,n=e.height/2,r={top:e.clientY-n,right:e.clientX+a,bottom:e.clientY+n,left:e.clientX-a},l=t.current.getBoundingClientRect(),!(!r||!l||r.right<l.left||r.left>l.right||r.bottom<l.top||r.top>l.bottom)))}},!1),d.addEventListener(r,"pointercancel",u,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:c,onPointerUp:u,onClick:u}}}},57827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return l}});let l=r(30758)._(r(55729)).default.createContext(null)},60722:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});
1var l=r(6029),a=r(55729),n=r(56760),s=r(96341),o=r.n(s),i=r(71434),d=r.n(i),u=r(26111),c=r(57521),m=r(51369);let h={width:300,maxWidth:300,top:48,maxHeight:500},x=e=>{let{options:t,active:r,isGrouped:a}=e;return a?(0,l.jsx)(l.Fragment,{children:t.map(e=>(0,l.jsx)("optgroup",{label:e.label,children:e.options.map(e=>(0,l.jsx)("option",{value:e.value,selected:r&&r.value===e.value?"selected":null,children:e.label},e.value))}))}):(0,l.jsx)(l.Fragment,{children:t.map(e=>(0,l.jsx)("option",{value:e.value,selected:r&&r.value===e.value?"selected":null,children:e.label},e.value))})},p=e=>{let{options:t,active:r,filter:n,onClick:s,isGrouped:o}=e,[i,d]=(0,a.useState)(t);return(0,a.useEffect)(()=>{let e=(n||"").trim().toLowerCase(),r=t=>{let{label:r}=t;return r.toLowerCase().includes(e)};d(o?t.map(e=>({label:e.label,options:e.options.filter(r)})).filter(e=>e.options.length):t.filter(r))},[t,n]),(0,l.jsxs)(l.Fragment,{children:[o?i.map(e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"pt-4 pb-2 px-5 text-xs text-gray-400 font-semibold uppercase",children:e.label}),e.options.map(e=>(0,l.jsx)(f,{option:e,active:r,onClick:()=>s(e.value)},e.value))]})):i.map(e=>(0,l.jsx)(f,{option:e,active:r,onClick:()=>s(e.value)},e.value)),n&&0===i.length&&(0,l.jsx)("span",{className:"px-4 pt-2 pb-4 text-gray-600",children:'No results for "'.concat(n,'"')})]})},f=e=>{let{option:t,active:r,onClick:a}=e,n=d().isArray(r)?d().some(r,e=>e.value===t.value):r&&t.value===r.value;return(0,l.jsx)("li",{children:t.url?(0,l.jsx)("a",{className:(0,m.cx)("block w-full py-3 px-5 cursor-pointer hover:bg-gray-50 focus:bg-gray-50 text-sm text-left whitespace-pre-wrap",{"text-indigo":n}),onClick:e=>{e.preventDefault(),a()},href:t.url,role:"option","aria-selected":n,children:t.label}):(0,l.jsx)("button",{className:(0,m.cx)("w-full py-3 px-5 cursor-pointer hover:bg-gray-50 focus:bg-gray-50 text-sm text-left whitespace-pre-wrap",{"text-indigo":n}),onClick:a,type:"button",role:"option","aria-selected":n,children:t.label})})},g=e=>{var t,r;let s,{id:i,value:f,placeholder:g,options:b=[],native:y,onChange:w,disabled:v,showFilter:j,showReset:N=!0,highlightActive:_=!0,className:k,useModalForSmallScreens:C=!0,truncateLength:E=null,optionsStyles:P=h,align:A,ariaLabel:L,borderless:S=!1}=e,[R,T]=(0,a.useState)(!1),[O,F]=(0,a.useState)(),[D,V]=(0,a.useState)(null),H=(0,a.useRef)(null),{width:M}=(0,c.lW)(),W=C&&M<=768,z=(0,a.useCallback)(()=>{if(!H.current)return;let e=H.current.getBoundingClientRect(),t=P.maxHeight||500,r=window.innerHeight-e.bottom-10,l=e.top-10,a=r<200&&l>r;V({top:a?void 0:e.bottom+10,bottom:a?window.innerHeight-e.top+10:void 0,left:"right"===A?void 0:e.left,right:"right"===A?window.innerWidth-e.right:void 0,maxHeight:Math.min(t,a?l:r)})},[A,P.maxHeight]);(0,a.useEffect)(()=>{if(R&&!W)return z(),window.addEventListener("scroll",z,!0),window.addEventListener("resize",z),()=>{window.removeEventListener("scroll",z,!0),window.removeEventListener("resize",z)}},[R,W,z]),(0,a.useEffect)(()=>{v&&T(!1)},[v]);let B=Array.isArray(f)?f.length:0,G=d().every(b,"options");
1if(G){let e=d().flatMap(b,"options");s=d().isArray(f)?e.filter(e=>f.includes(e.value)):e.find(e=>f===e.value)}else s=d().isArray(f)?b.filter(e=>f.includes(e.value)):b.find(e=>f===e.value);let U=e=>{v||(w(e),T(!1))},I=e=>{v||F(e.target.value)},X=s&&B>1?"".concat(B," Selected"):s?d().truncate(s.label,{length:E||s.label.length}):g,J="".concat(i||"dropdown-input","-listbox");return(0,l.jsxs)("div",{ref:H,className:(0,m.cx)("relative",k),children:[(0,l.jsxs)("button",{id:i,className:(0,m.cx)("\n inline-flex\n items-center\n justify-between\n w-full\n rounded-lg\n pl-4\n pr-2\n py-2\n bg-white\n text-sm\n font-medium\n ".concat(S?"":"focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500","\n whitespace-nowrap\n transition\n duration-50\n "),{"border border-indigo text-indigo shadow-sm":s&&!v&&_&&!S,"border border-gray-300 text-gray-700 hover:border-gray-400 focus:border-gray-400 shadow-sm":(!s||!_)&&!v&&!S,"text-indigo":s&&!v&&_&&S,"text-gray-700":(!s||!_)&&!v&&S,"border border-gray-300 text-gray-600 cursor-default":v&&!S,"text-gray-600 cursor-default":v&&S,"cursor-pointer":!v}),onClick:()=>!v&&T(!R),type:"button",role:"combobox","aria-expanded":R,"aria-controls":J,"aria-haspopup":"listbox","aria-label":L||g||"Select option",children:[y&&(0,l.jsx)("select",{className:(0,m.cx)("h-full w-full absolute",{"cursor-pointer":!v,"cursor-default":v}),onChange:e=>U(e.target.value),style:{opacity:0},disabled:v,"aria-label":"Select",children:(0,l.jsx)(x,{options:b,active:s})}),(0,l.jsx)("span",{className:"mr-1",children:X}),(0,l.jsx)(u.zp,{className:"ml-auto"})]}),s&&N&&(0,l.jsx)("button",{className:(0,m.cx)("absolute top-1/2 -translate-y-1/2 right-2.5 focus:outline-none z-10",{"text-gray-400":v,"text-indigo-700":!v}),onClick:e=>{v||(e.stopPropagation(),w(null),T(!1))},type:"button","aria-label":"Clear",children:(0,l.jsx)(u.vu,{})}),!y&&!W&&R&&D&&(0,n.createPortal)((0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"fixed inset-0 z-10",onClick:()=>T(!1),onKeyDown:e=>"Escape"===e.key&&T(!1),"aria-hidden":!0}),(0,l.jsx)("ul",{id:J,className:"fixed flex flex-col bg-white border border-gray-200 shadow-lg rounded-lg z-20 overflow-hidden",style:{width:P.width,maxWidth:P.maxWidth,maxHeight:null!=(r=D.maxHeight)?r:P.maxHeight,top:D.top,bottom:D.bottom,left:D.left,right:D.right,minWidth:null==(t=H.current)?void 0:t.offsetWidth},role:"listbox",onKeyDown:e=>"Escape"===e.key&&T(!1),children:(0,l.jsxs)("div",{className:"flex flex-col overflow-auto h-full bg-white scrollbar-hidden",children:[j&&(0,l.jsx)("input",{type:"text",placeholder:"Filter...",defaultValue:O,className:"flex mt-3 mb-1 mx-3 px-2 py-2 border border-gray-300 rounded focus:outline-none focus:border-gray-400",onKeyDown:e=>"Enter"===e.key&&e.preventDefault(),onChange:I}),(0,l.jsx)(p,{options:b,active:s,filter:O,onClick:U,isGrouped:G})]})})]}),document.body),W&&(0,l.jsx)(o(),{className:(0,m.cx)("z-20 fixed bottom-0 left-0 right-0 pt-3 w-full h-96 max-h-screen overflow-scroll bg-white border border-gray-200 shadow-lg rounded-lg",{invisible:!R}),overlayClassName:R?"z-10 bg-black/10 fixed inset-0":"invisible",shouldCloseOnOverlayClick:!0,onRequestClose:()=>T(!1),isOpen:!0,children:(0,l.jsxs)("ul",{className:"flex flex-col",children:[j&&(0,l.jsx)("input",{type:"text",placeholder:"Filter...",defaultValue:O,className:"flex mb-1 mx-3 px-2 py-2 border border-gray-300 rounded focus:outline-none focus:border-gray-400",onChange:I}),(0,l.jsx)(p,{options:b,active:s,filter:O,onClick:U,isGrouped:G})]})})]})}},65814:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d});var l=r(6029),a=r(55729),n=r(56760),s=r(51369);let o=0,i={top:"border-t-gray-900 border-x-transparent border-b-transparent",bottom:"border-b-gray-900 border-x-transparent border-t-transparent",left:"border-l-gray-900 border-y-transparent border-r-transparent",right:"border-r-gray-900 border-y-transparent border-l-transparent"};function d(e){let{children:t,content:r,placement:d="top",className:u,style:c,tooltipClassName:m,disabled:h=!1}=e,[x,p]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1),[b,y]=(0,a.useState)(!1),[w,v]=(0,a.useState)({top:0,left:0,arrowTop:0,arrowLeft:0}),j=(0,a.useRef)(null),N=(0,a.useRef)(null),_=(0,a.useRef)(null),k=function(){let e=(0,a.useRef)(null);return null===e.current&&(o+=1,e.current="tooltip-".concat(o)),e.current}(),C=(0,a.useCallback)(()=>
1{if(j.current&&N.current)v(function(e,t,r){let l,a,n,s;switch(r){case"bottom":l=e.bottom+8,a=e.left+e.width/2-t.width/2,n=-8,s=t.width/2-4;break;case"left":l=e.top+e.height/2-t.height/2,a=e.left-t.width-8,n=t.height/2-4,s=t.width;break;case"right":l=e.top+e.height/2-t.height/2,a=e.right+8,n=t.height/2-4,s=-8;break;default:l=e.top-t.height-8,a=e.left+e.width/2-t.width/2,n=t.height,s=t.width/2-4}return{top:l,left:a,arrowTop:n,arrowLeft:s}}(j.current.getBoundingClientRect(),N.current.getBoundingClientRect(),d)),y(!0)},[d]),E=()=>{h||(p(!0),g(!0))},P=()=>{_.current&&clearTimeout(_.current),p(!1),y(!1),_.current=setTimeout(()=>g(!1),150)};(0,a.useEffect)(()=>{if(f)return requestAnimationFrame(C),window.addEventListener("scroll",C,!0),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",C,!0),window.removeEventListener("resize",C)}},[f,C]),(0,a.useEffect)(()=>()=>{_.current&&clearTimeout(_.current)},[]);let A=(0,l.jsx)("span",{ref:j,className:(0,s.cx)("inline-flex",u),style:c,onMouseEnter:E,onMouseLeave:P,onFocus:E,onBlur:P,"aria-describedby":x?k:void 0,children:t}),L=f?n.createPortal((0,l.jsxs)("span",{ref:N,id:k,role:"tooltip",style:{position:"fixed",top:w.top,left:w.left},className:(0,s.cx)("z-50 px-2 py-1 text-xs font-medium text-white bg-gray-900 rounded shadow-lg w-max max-w-xs pointer-events-none","transition-opacity duration-150",x&&b?"opacity-100":"opacity-0",m),children:[r,(0,l.jsx)("span",{style:{position:"absolute",top:w.arrowTop,left:w.arrowLeft},className:(0,s.cx)("w-0 h-0 border-4",i[d]||i.top),"aria-hidden":"true"})]}),document.body):null;return(0,l.jsxs)(l.Fragment,{children:[A,L]})}},71024:(e,t,r)=>{e.exports=r(48574)},92983:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/resources/[slug]",function(){return r(26761)}])}},e=>{e.O(0,[6593,4638,6712,9807,1479,77,1723,712,8090,8601,9285,636,8792],()=>e(e.s=92983)),_N_E=e.O()}]); 2//# sourceMappingURL=[slug]-0882061200cd218d.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.