PageSourceSearch

https://www.authy.com/etc.clientlibs/twilio-com/clientlibs/clientl…/resources/711.b1328935628ca40045e0.js

js authy.com collected 2026-10-01 08:32:23 UTC 5,245 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktwilio_com_frontend=self.webpackChunktwilio_com_frontend||[]).push([[711],{3711:function(e,t,r){r.d(t,{registerPricingSingleSlider:function(){return a}});var n=r(7519),c=r(4598);const i=e=>{return e.includes(document.documentElement.lang)?document.documentElement.lang:(t=document.documentElement.lang,(0,c.YW)(t).with("en",()=>"en-US").with("de",()=>"de-DE").with("fr",()=>"fr-FR").with("es",()=>"es-MX").with("pt",()=>"pt-BR").with("ja",()=>"ja-JP").otherwise(()=>"en-US"));var t};function s(e){const t=e.querySelector(".current-selected"),r=e.querySelector(".section-header"),n=t||r;return n?.attributes?Array.from(n.attributes).reduce((e,t)=>{const r=t.name;if(r.startsWith("data-tier")){const n=r.split("-"),c=n[n.length-1],i=n[1]?.split("tier")[1];if(!i||!c)return e;e[i]=e[i]??{},e[i]={...e[i],[c]:t.value}}return e},{}):{}}function o(e,t,r){const c=+e.min,i=+e.max,s=+e.value,o=String(Math.round(100*(s-c)/(i-c))),u=s===i?`${s}+`:s;t.style.setProperty("--track-position",`${o}%`);const a=r.querySelector("output");a&&(a.innerHTML=n.A.sanitize(String(u)))}function u(e,t,r,o,u){const a=r.min,l=r.max,d=r.value;t.forEach(t=>{const r=function(e,t){const r=function(e){return Array.from(e.attributes).reduce((e,t)=>{const r=t.name;if(r.startsWith("data-tier")){const n=r.split("-");if(n.length>=2){const r=n[1]?.split("tier")[1];r&&(e[r]=t.value)}}return e},{})}(e),n=parseInt(t,10)-1,c=Object.keys(r).map(e=>parseInt(e,10)),i=c.reduce((e,t,i)=>{const s=String(t)||"",o=parseInt(r[s]||"",10),u=0!==i?parseInt(r[c[i-1]??0]??"",10):0,a=o-u,l=Math.min(n-u,a);return l>0&&(e[t]=l),e},{}),s=Object.values(i).reduce((e,t)=>e+t,0),o=n-s;return o>0&&(i[c.length+1]=o),i}(e,d),m=s(e),f=Object.keys(r).reduce((e,n,c)=>{const i=r[n];if(!i||!t.dataset.calculatorId)return e;const s=m[c+1]||m[Object.keys(m).length];if(!s)return e;const o=t.dataset.calculatorId;return"go"!==o&&"committed"!==o?e:e+i*Math.max(Number(s[o]),0)},0),g=Math.floor(f),h=d===a?e.dataset.minText:function(e,t,r,n){const i={style:"currency",currency:"USD",maximumFractionDigits:0};return(0,c.YW)(e).when(e=>"de-DE"===e,()=>new Intl.NumberFormat("de-DE",i).format(t)).when(e=>"ja-JP"===e,()=>new Intl.NumberFormat("ja-JP",i).format(t)).when(e=>"fr-FR"===e,()=>`${t} ${n}`).when(e=>"es-MX"===e,()=>(0,c.YW)(r).with("usd",()=>`${n} ${t}`).with("mxn",()=>{const e=new Intl.NumberFormat("es-MX",{maximumFractionDigits:0}).format(t).replaceAll(","," ").replace(".",",");return`${n} ${e}`}).otherwise(()=>`${n} ${t}`)).when(e=>"pt-BR"===e,()=>`${n} ${t}`).otherwise(()=>new Intl.NumberFormat("en-US",i).format(t))}(i(["en-US","de-DE","fr-FR","es-MX","pt-BR","ja-JP"]),g,o,u);!function(e,t,r){const n=t===r;e.classList.toggle("max-value",n),e.querySelector("output")?.setAttribute("aria-hidden",n?"true":"false"),e.querySelector("a")?.setAttribute("aria-hidden",n?"false":"true"),e.querySelector("a")?.toggleAttribute("inert",!n)}(t,d,l);const p=t.querySelector("output");p&&h&&(p.innerHTML=n.A.sanitize(h))})}function a(){document.querySelectorAll(".single-slider-calculator").forEach(e=>{const t=e.querySelector(".section-header"),r=t?.dataset.currencyCode??"usd",i=(a=r,(0,c.YW)(a).with("mxn",()=>"MXN").with("usd",()=>"$").otherwise(()=>"$"));var a;const l=e.querySelector("input"),d=e.querySelector(".single-slider-calculator-box"),m=d?.querySelector(".pricing-range"),f=m?.querySelector("input"),g=e.querySelector(".single-slider-calls"),h=e.querySelectorAll(".single-slider-pricing"),p=e.querySelector(".pricing-region-selector");if(f&&m&&g&&Number(f.value)>1&&(o(f,m,g),u(e,h,f,r,i)),m?.addEventListener("input",t=>{const n=t.target;g&&o(n,m,g),n&&u(e,h,n,r,i)}),l)if(p){const t=p.querySelector(".pricing-region-selector-input"),c=t?.querySelector(".pricing-region-selector-button"),o=t?.querySelector(".pricing-region-selector-dropdown"),a=o?.querySelectorAll("li");c?.addEventListener("click",()=>{const e="true"===c.getAttribute("aria-expanded"),t=o?.querySelector(".current-selected"),r=o?.querySelector(".current-focus");r&&r.classList.remove("current-focus"),c.setAttribute("aria-expanded",e?"false":"true"),o?.setAttribute("aria-hidden",e?"true":"false"),t&&o?.scrollTo(0,t.offsetTop-t.offsetHeight),t?.classList.add("current-focus")}),window.addEventListener("click",e=>{const t=e.target;t&&t.classList.contains("pricing-region-selector-button")||"true"===c?.getAttribute("aria-expanded")&&(c.setAttribute("aria-expanded","fal
1se"),o?.setAttribute("aria-hidden","true"))}),a?.forEach(t=>{t.addEventListener("mouseenter",()=>{const e=o?.querySelector(".current-focus");e?.classList.remove("current-focus"),t.classList.add("current-focus")}),t.addEventListener("click",()=>{if(t.classList.contains("current-selected"))return;const a=t.querySelector("span")?.innerHTML,d=s(e),m=t.querySelector("img"),f=c?.querySelector("img");if(f&&m&&(f.src=m.src),h.forEach(e=>{const t=e.dataset.calculatorId;"go"!==t&&"committed"!==t||Object.keys(d).forEach((r,n)=>{const c=d[r];c&&t in c&&e.setAttribute(`data-tier${n}`,c[t]??"")})}),o?.querySelector(".current-selected")?.classList.remove("current-selected"),t.classList.add("current-selected"),a){const e=c?.querySelector("span");e&&(e.innerHTML=n.A.sanitize(a))}u(e,h,l,r,i)})})}else u(e,h,l,r,i)})}}}]);

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.