1"use strict";(self.webpackChunktoit_io=self.webpackChunktoit_io||[]).push([[946],{4417:function(e,t,n){n.d(t,{HQ:function(){return T}});var s=n(9110),i=n(3431),r=n(8),o=n(5505),a=n(7294),l=n(116),u=n(7234),c=n(1155),d=n(3181),m=n(8963),f=n(450),x=n(9357),v=n(9901),g=n(9378),p=n(4048),h=n(6276);var y=(0,s.Z)("div",{target:"eyuk8l35"})({name:"1wmu2s6",styles:"--menuFadeSpeed:150ms"}),b=(0,s.Z)("header",{target:"eyuk8l34"})({name:"160l3u7",styles:"position:fixed;top:0;left:0;width:100%;z-index:500;backdrop-filter:blur(10px);transition:background-color var(--menuFadeSpeed) linear;color:var(--headerTextColor);&:hover{background:var(--headerHoverBackgroundColor);}"}),j=(0,i.css)("background:",d.ix.string(),";",""),k=(0,i.css)(f.AV.mediumDown,"{display:none;}",""),w=(0,i.css)(f.AV.medium,"{display:none!important;}",""),Z={name:"1clf3vr",styles:"background:var(--headerBackgroundColor)"},S=(0,s.Z)("div",{target:"eyuk8l33"})({name:"def7cq",styles:"background:rgba(0, 0, 0, 0.3);position:fixed;left:0;width:100%;height:100%;z-index:499;opacity:0;transition:opacity var(--menuFadeSpeed) linear;pointer-events:none"}),E=(0,s.Z)("div",{target:"eyuk8l32"})({name:"1p61bdc",styles:"margin:0 auto;box-sizing:content-box;max-width:var(--maxPageWidth);padding:0 var(--contentPadding);display:flex;height:4.5rem;align-items:center;justify-content:space-between"}),z=(0,s.Z)("div",{target:"eyuk8l31"})(""),C=(0,s.Z)("nav",{target:"eyuk8l30"})({name:"1cy5mh7",styles:"svg{position:relative;top:-2px;transition:all 100ms linear;&.opened{transform:rotate(180deg);}}"}),H={name:"rnx0zk",styles:"display:inline-block;cursor:pointer;text-decoration:none;&:not(:last-child){margin-right:1.5rem;}"},L={name:"3ix1vd",styles:"opacity:1"},P={name:"1xfczbo",styles:"margin-right:1.5rem"},A={name:"cagvwa",styles:"height:1.5rem;width:auto;margin-right:8rem"},F={name:"1yurnc",styles:"html{overflow:hidden;}"};var M={name:"fe5n72",styles:"height:1.5rem;width:auto;margin-right:2rem"};function T(e){var t=e.callToAction,n=(0,a.useState)(!1),s=n[0],r=n[1];return(0,a.useEffect)((function(){var e=function(){return r(window.scrollY>40)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]),(0,i.jsx)(y,null,(0,i.jsx)(b,{css:[s&&Z,"",""]},(0,i.jsx)(E,null,(0,i.jsx)(x.Z,{to:"/"},(0,i.jsx)(u.Z,{css:M})),(0,i.jsx)(z,null,null!=t?t:(0,i.jsx)(h.Z,{size:"small"})))))}t.ZP=function(e){var t=e.callToAction,n=(0,a.useState)(!1),s=n[0],d=n[1],f=(0,a.useState)(!1),M=f[0],T=f[1],V=(0,a.useState)(),B=V[0],I=V[1],O=(0,a.useState)(!1),Y=O[0],_=O[1];function q(e){return function(){d(!0),I(e)}}function D(){I(void 0),d(!1)}(0,a.useEffect)((function(){var e=function(){return _(window.scrollY>40)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]);var G=(0,a.useRef)(null);return(0,a.useEffect)((function(){return r.globalHistory.listen((function(e){"PUSH"===e.action&&(D(),T(!1))}))}),[D,T]),(0,i.jsx)(y,{onMouseLeave:D},M&&(0,i.jsx)(i.Global,{styles:F}),(0,i.jsx)(b,{ref:G,css:[Y&&Z,M&&j,"",""]},(0,i.jsx)(E,null,(0,i.jsx)(x.Z,{to:"/"},(0,i.jsx)(u.Z,{css:A})),(0,i.jsx)(C,{css:k},c.e.map((function(e){return e.subpages?(0,i.jsx)("div",{role:"button",tabIndex:0,"aria-expanded":B==e.title?"true":"false",key:e.title,css:H,onMouseEnter:q(e.title),onClick:(t=e.title,function(){B==t?D():q(t)()})},e.title," ",(0,i.jsx)(l.Z,{className:(0,o.Z)(B==e.title&&"opened")})):(0,i.jsx)(x.Z,{key:e.title,tabIndex:0,css:H,to:e.path,href:e.href,onMouseEnter:D,onClick:D},e.title);var t}))),(0,i.jsx)(z,{css:k},(0,i.jsx)(m.ZP,{href:"https://help.toit.io/",size:"small",variant:"text",css:P},"Help"),null!=t?t:(0,i.jsx)(h.Z,{size:"small"})),(0,i.jsx)(p.Z,{css:w,toggle:function(){return T(!M)},isOpen:M})),(0,i.jsx)(v.Z,{isVisible:s,visibleSubmenu:B})),(0,i.jsx)(S,{css:s&&L}),(0,i.jsx)(g.v,{css:w,isOpen:M}))}}}]); 2//# sourceMappingURL=2e723645-75b1ffa2de352b398b46.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.