1"use strict";(self.webpackChunktwilio_foundation_frontend=self.webpackChunktwilio_foundation_frontend||[]).push([[2618,2672],{3655:function(e,t,n){var o;n.d(t,{f:function(){return c}}),function(e){e.SCROLL_LOCKED="lock-scroll"}(o||(o={}));const i=e=>{document.querySelector("html")?.classList.toggle(o.SCROLL_LOCKED,e)};var r,s;!function(e){e.TEMPLATE="#cmp-popup-template",e.SELF=".cmp-popup",e.OVERLAY=".cmp-popup__overlay",e.CLOSE=".cmp-popup__content__close",e.CONTENT=".cmp-popup__content__body"}(r||(r={})),function(e){e.LIGHT="cmp-popup--light",e.DARK="cmp-popup--dark"}(s||(s={}));const a=()=>Boolean(document.querySelector(r.SELF)),c=(e=s.DARK)=>{if(a())return;i(!0);const t=document.querySelector(r.TEMPLATE);if(!t)return null;const n=t.content.cloneNode(!0);document.body.appendChild(n);const o=document.querySelector(r.SELF);if(!o)return null;o.classList.add(e),setTimeout(()=>o.classList.add("cmp-popup--visible"),10);const c=document.activeElement;o.focus();const d=()=>{o.classList.remove("cmp-popup--visible"),setTimeout(()=>{o.remove(),i(!1),c?.focus()},400)};return o.querySelectorAll(`${r.OVERLAY}, ${r.CLOSE}`).forEach(e=>{e.addEventListener("click",()=>{d()})},{once:!0}),window.addEventListener("keydown",e=>{"Escape"===e.key&&a()&&d()},{once:!0}),{getContentBodyElement:()=>o.querySelector(r.CONTENT)}}},32672:function(e,t,n){n.r(t),n.d(t,{registerVideo:function(){return r}});var o=n(52618),i=n(3655);function r(){document.querySelectorAll(".video").forEach(e=>{var t;(t=e).addEventListener("click",e=>{e.preventDefault(),document.querySelector("html")?.classList.contains("lock-scroll")||function(e){const t=e.dataset.videoType,n=e.dataset.videoId;if(!t||!n)return;const r=(0,i.f)()?.getContentBodyElement();r&&(0,o.getVideoPlayer)(e,"videoType").renderAndPlay(r,n)}(t)})})}},42430:function(e,t,n){var o=n(94598);const i="e507005",r="e682286",s="e555348",a="e555373",c=(e,t=!1)=>t&&window.location.hostname.startsWith("author-")?`.author-p62254-${e}.adobeaemcloud.com`:`.publish-p62254-${e}.adobeaemcloud.com`,d={setCookie(e,t,n,d=!1,l=!1){const u=((e=!1)=>(0,o.YW)(window.location.hostname).when(e=>e.includes("localhost"),()=>"localhost").when(e=>e.includes("127.0.0.1"),()=>"127.0.0.1").when(e=>e.includes(i),()=>c(i,e)).when(e=>e.includes(r),()=>c(r,e)).when(e=>e.includes(s),()=>c(s,e)).when(e=>e.includes(a),()=>c(a,e)).when(e=>e.includes("sendgrid.com"),()=>".sendgrid.com").when(e=>e.includes("twilio.org"),()=>".twilio.org").when(e=>e.includes("segment.com"),()=>".segment.com").otherwise(()=>".twilio.com"))(l);if(n){const o=new Date;o.setTime(o.getTime()+n),document.cookie=`${e}=${t}; expires=${o.toUTCString()}; domain=${u}; path=/`}else document.cookie=d?`${e}=${t}; domain=${u}; path=/`:`${e}=${t}; path=/`},getCookie(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length&&t.pop()?.split(";").shift()||""},deleteCookie(e){const t=new Date;t.setTime(t.getTime()-864e5),document.cookie=`${e}=; expires=${t.toUTCString()}; path=/`}};t.A=d},50317:function(e,t,n){n.d(t,{q:function(){return o}});const o=e=>{"loading"!==document.readyState?e():window.addEventListener("DOMContentLoaded",e)}},52618:function(e,t,n){n.r(t),n.d(t,{getVideoPlayer:function(){return y},registerMediaComponent:function(){return A}});var o,i,r=n(3655),s=n(50317);!function(e){e.INLINE_VIDEO=".cmp-media-video--inline",e.PLAY_BUTTON=".cmp-media-video__play",e.THUMBNAIL=".cmp-media-video__thumbnail",e.POPUP_VIDEO=".cmp-media-video--popup"}(o||(o={})),function(e){e.VIDEO_INLINE="cmp-media-video--inline"}(i||(i={}));const a=e=>e?.classList.contains(i.VIDEO_INLINE)??!1;var c;!function(e){e.YOUTUBE="youtube",e.VIMEO="vimeo",e.WISTIA="wistia",e.NONE="none"}(c||(c={}));var d=n(68066);n(55874);var l,u=n(42430);!function(e){e[e.REQUIRED=0]="REQUIRED",e[e.FUNCTIONAL=1]="FUNCTIONAL",e[e.MARKETING=2]="MARKETING"}(l||(l={}));class m{static NOTICE_BEHAVIOR_COOKIE="notice_behavior";static NOTICE_GDPR_PREFS_COOKIE="notice_gdpr_prefs";getConsentPreferences(){return u.A.getCookie(m.NOTICE_GDPR_PREFS_COOKIE)}getNoticeBehavior(){return u.A.getCookie(m.NOTICE_BEHAVIOR_COOKIE)}hasConsent(e){if(e===l.REQUIRED)return!0;const t=this.getConsentPreferences();return this.isNoticeBehaviorNotExpressed()||new RegExp(`[^:]*${e}[^:]*:`).test(t)}hasFunctionalConsent(){return this.hasConsent(l.FUNCTIONAL)}hasMarketingConsent(){return this.hasConsent(l.MARKETING)}hasRequiredConsent(){return this.hasConsent(l.REQUIRED)}isConsentExpressed(){return!this.isNoticeBehaviorNotExpressed()}isNoticeBehaviorNotExpressed(){const e=this.getConsentPreferences(),t=this.getNoticeBehavior();return!e&&!t.toLowerCase().includes("expressed")}}var p=new m;const h=(e,t)=>{const{hashedId:n,trimStartStr:o,trimEndStr:i}=t,r=o?Number.parseFloat(o):void 0,s=i?Number.parseFloat(i):void 0;void 0!==n&&void 0!==r&&void 0!==s?r>=s||r<0||s<0?console.warn(`Invalid trim start and end times for Wistia video ${n}`):e.definePlugin("videoThumbnail",{on:!0,hashedId:n,trimStart:r,trimEnd:s,async:!0}
1):console.warn(`Missing required options for configuring Wistia video ${n}`)},E=e=>{e.updateEmbedOptions({clickForSound:{disabled:!0}})};var v=n(8924),f=n.n(v);const y=(e,t)=>{const n=e.dataset[t??"videoPlayer"]??"";switch(function(e){const t=e.toLowerCase().trim();return Object.values(c).includes(t)?t:c.NONE}(n)){case c.YOUTUBE:return{renderAndPlay:(e,t)=>{f()(e,{videoId:t,playerVars:{rel:0,loop:1,enablejsapi:1,playsinline:1,modestbranding:1,origin:window.location.origin,playlist:t},width:"100%",height:"auto"}).playVideo()}};case c.WISTIA:return{renderAndPlay(e,t){const n=document.createElement("wistia-player");n.setAttribute("media-id",t),n.setAttribute("autoPlay","true"),n.setAttribute("player-color","#b10f23"),n.setAttribute("volume-control","true"),n.setAttribute("playback-rate-control","true"),n.setAttribute("audio-description-control","true"),n.setAttribute("fullscreen-control","true"),n.setAttribute("quality-control","true"),n.setAttribute("seo","false"),n.toggleAttribute("do-not-track",!p.hasFunctionalConsent()),n.className=e.className,a(e)||n.setAttribute("rounded-player","16"),e.replaceWith(n),a(e)&&n.addEventListener("ended",()=>{n.replaceWith(e),e.querySelector(o.PLAY_BUTTON)?.toggleAttribute("hidden"),e.querySelector(o.THUMBNAIL)?.toggleAttribute("hidden");const i=e.querySelector(o.THUMBNAIL);"wistia-player"===i?.tagName.toLowerCase()&&(E(i),i.addEventListener("api-ready",()=>{h(i,{hashedId:t,trimStartStr:e.dataset.thumbnailTrimStart,trimEndStr:e.dataset.thumbnailTrimEnd})}))},{once:!0})}};case c.VIMEO:return{renderAndPlay:(e,t)=>{e.replaceChildren(),new d.A(e,{id:Number(t),width:e.clientWidth}).play()}};case c.NONE:throw new Error(`Unsupported video player type: ${n}`)}},g=()=>{document.querySelectorAll(".cmp-media-video__thumbnail--wistia-video").forEach(e=>{(e=>{const t=document.createElement("wistia-player"),n=e.closest(".cmp-media-video"),o=n?.dataset.videoId;o&&n?(t.setAttribute("media-id",o),t.setAttribute("big-play-button","false"),t.setAttribute("controls-visible-on-load","false"),t.setAttribute("seo","false"),t.className=e.className,e.replaceWith(t),E(t),t.addEventListener("api-ready",()=>{h(t,{hashedId:o,trimStartStr:n.dataset.thumbnailTrimStart,trimEndStr:n.dataset.thumbnailTrimEnd})})):console.warn("Missing video information for Wistia video thumbnail")})(e)}),(()=>{const e=p.hasFunctionalConsent();document.querySelectorAll(".cmp-media-audio wistia-player").forEach(t=>{e||t.toggleAttribute("do-not-track",!0);const n=t.closest(".cmp-media-audio");if(!n)return;const o=()=>n.classList.add("cmp-media-audio--ready");t.addEventListener("api-ready",o,{once:!0}),setTimeout(o,5e3)})})(),$(document).on("click",o.INLINE_VIDEO,e=>{const t=e.currentTarget,n=t.dataset.videoId;if(!n)return;const i=y(t);t.querySelector(o.PLAY_BUTTON)?.toggleAttribute("hidden",!0),t.querySelector(o.THUMBNAIL)?.toggleAttribute("hidden",!0),i.renderAndPlay(t,n)}),$(document).on("click",o.POPUP_VIDEO,e=>{const t=e.currentTarget,n=t.dataset.videoId;if(!n)return;const o=(0,r.f)()?.getContentBodyElement();o&&y(t).renderAndPlay(o,n)})},A=()=>(0,s.q)(g)}}]);
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.