1"use strict";(self.webpackChunktwilio_com_frontend=self.webpackChunktwilio_com_frontend||[]).push([[907],{1907:function(e,t,n){n.d(t,{registerSubNavigation:function(){return h}});var i=n(4598),r=n(2756),o=n(8680);function a(e,t){0!==e.offsetHeight&&(0,o.A)(e,t)}function s(e,t){e.offsetHeight>0||(0,o.A)(e,t)}const u=document.querySelector(".sub-navigation > nav"),d=document.querySelector(".sub-navigation-page"),c=document.querySelector(".sub-navigation-links"),l=c?.querySelectorAll(".sub-navigation-button"),b=c?.querySelectorAll(".sub-navigation-link"),f=document.querySelectorAll(".sub-navigation-dropdown"),v=()=>{(0,i.YW)((0,r.A)()).with(r.g.MOBILE,()=>{d&&(d.setAttribute("aria-expanded","false"),document.body.classList.remove("no-scroll")),c&&(c.setAttribute("aria-hidden","true"),c.inert=!0),f.forEach(e=>{e.removeAttribute("style"),e.setAttribute("aria-hidden","true"),e.removeAttribute("inert")}),l?.forEach(e=>{e.removeAttribute("aria-expanded")})}).with(r.g.BROWSER,()=>{c&&(c.removeAttribute("style"),c.removeAttribute("aria-hidden"),c.removeAttribute("inert")),d&&(d.removeAttribute("aria-expanded"),document.body.classList.remove("no-scroll")),f.forEach(e=>{e.setAttribute("aria-hidden","true")}),l?.forEach(e=>{e.setAttribute("aria-expanded","false")})}).exhaustive(),u&&document.documentElement.style.setProperty("--subnav-height",u.clientHeight/10+"rem")},m=(()=>{let e;return()=>{window.clearTimeout(e),e=window.setTimeout(()=>{v()},200)}})(),p=(e,t)=>()=>{e.inert=t},g=e=>{const t=e.nextElementSibling;t instanceof HTMLElement&&(s(t,p(t,!1)),e.setAttribute("aria-expanded","true"))},y=e=>{const t=e.nextElementSibling;t instanceof HTMLElement&&(a(t,p(t,!0)),e.setAttribute("aria-expanded","false"),e.parentElement?.classList.remove("tabbed-open"))},h=(E=()=>{window.addEventListener("resize",m),window.addEventListener("load",v),(()=>{const e=document.querySelector(".global-header"),t=document.querySelector(".sub-navigation");e&&t&&(e.appendChild(t),d?.addEventListener("click",e=>{if((0,r.A)()===r.g.BROWSER)return;e.preventDefault();const t="true"===d.getAttribute("aria-expanded");document.body.classList.toggle("no-scroll",!t),d.setAttribute("aria-expanded",t?"false":"true"),c&&(t?a(c,p(c,!0)):s(c,p(c,!1)))}),l?.forEach(e=>{e.addEventListener("click",()=>{if((0,r.A)()===r.g.MOBILE)return;if(e.removeEventListener("focus",()=>{y(e)}),"true"===e.getAttribute("aria-expanded"))return void y(e);const t=c?.querySelector("[aria-expanded=true]");t instanceof HTMLButtonElement&&y(t),g(e)}),e.addEventListener("focus",()=>{e.addEventListener("keyup",t=>{if((0,r.A)()!==r.g.MOBILE&&"Tab"===t.key){const t=c?.querySelector(".tabbed-open");if(t&&!e.parentElement?.classList.contains("tabbed-open")){const n=t.querySelector(".sub-navigation-button");return n&&y(n),void e.parentElement?.classList.remove("tabbed-open")}g(e),e.parentElement?.classList.add("tabbed-open")}})})}),b?.forEach(e=>{e.addEventListener("focus",()=>{const e=c?.querySelector("[aria-expanded=true]");e instanceof HTMLButtonElement&&y(e)})}))})(),window.addEventListener("click",e=>{const t=e?.target;if(t instanceof Element&&t.classList.contains("sub-navigation-button"))return;const n=c?.querySelector("[aria-expanded=true]");n&&y(n)})},void("loading"!==document.readyState?E():window.addEventListener("DOMContentLoaded",E)));var E},2756:function(e,t,n){var i;function r(e=768){return window.innerWidth<e?i.MOBILE:i.BROWSER}n.d(t,{A:function(){return r},g:function(){return i}}),function(e){e.MOBILE="mobile",e.BROWSER="browser"}(i||(i={}))},7913:function(e,t,n){function i(e,t){e&&e.setAttribute("aria-expanded",`${t}`)}function r(e,t){e&&e.setAttribute("aria-hidden",`${t}`)}function o(e,t){return"true"===e.getAttribute(t)}n.d(t,{Rl:function(){return i},UO:function(){return o},o8:function(){return r}})},8680:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(7913);function r(e,t,n=300){const r=e.offsetHeight,o=0===r?0:r,a=0===r?function(e){e.style.position="absolute",e.style.visibility="hidden",e.style.display="block",e.style.height="auto";const t=e.offsetHeight;return e.removeAttribute("style"),t}(e):0,s=0===r?"block":"none",u=(0,i.UO)(e,"aria-hidden");e.style.height=`${o}px`,e.style.transition=`height ${n}
1ms ease-out`,e.style.overflow="hidden",e.style.display="block",e.style.paddingBottom="0",e.style.paddingTop="0",(0,i.o8)(e,!u),e.offsetHeight,e.style.height=`${a}px`;const d=n=>{"height"===n.propertyName&&(e.removeEventListener("transitionend",d),e.removeAttribute("style"),e.style.display=s,t?.())};e.addEventListener("transitionend",d)}}}]);
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.