1"use strict";(self.webpackChunktwilio_foundation_frontend=self.webpackChunktwilio_foundation_frontend||[]).push([[2618],{3655:function(e,t,o){var n;o.d(t,{f:function(){return c}}),function(e){e.SCROLL_LOCKED="lock-scroll"}(n||(n={}));const i=e=>{document.querySelector("html")?.classList.toggle(n.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 o=t.content.cloneNode(!0);document.body.appendChild(o);const n=document.querySelector(r.SELF);if(!n)return null;n.classList.add(e),setTimeout(()=>n.classList.add("cmp-popup--visible"),10);const c=document.activeElement;n.focus();const d=()=>{n.classList.remove("cmp-popup--visible"),setTimeout(()=>{n.remove(),i(!1),c?.focus()},400)};return n.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:()=>n.querySelector(r.CONTENT)}}},42430:function(e,t,o){var n=o(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,o,d=!1,u=!1){const l=((e=!1)=>(0,n.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"))(u);if(o){const n=new Date;n.setTime(n.getTime()+o),document.cookie=`${e}=${t}; expires=${n.toUTCString()}; domain=${l}; path=/`}else document.cookie=d?`${e}=${t}; domain=${l}; 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,o){o.d(t,{q:function(){return n}});const n=e=>{"loading"!==document.readyState?e():window.addEventListener("DOMContentLoaded",e)}},52618:function(e,t,o){o.r(t),o.d(t,{getVideoPlayer:function(){return A},registerMediaComponent:function(){return f}});var n,i,r=o(3655),s=o(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"}(n||(n={})),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=o(68066);o(55874);var u,l=o(42430);!function(e){e[e.REQUIRED=0]="REQUIRED",e[e.FUNCTIONAL=1]="FUNCTIONAL",e[e.MARKETING=2]="MARKETING"}(u||(u={}));class m{static NOTICE_BEHAVIOR_COOKIE="notice_behavior";static NOTICE_GDPR_PREFS_COOKIE="notice_gdpr_prefs";getConsentPreferences(){return l.A.getCookie(m.NOTICE_GDPR_PREFS_COOKIE)}getNoticeBehavior(){return l.A.getCookie(m.NOTICE_BEHAVIOR_COOKIE)}hasConsent(e){if(e===u.REQUIRED)return!0;const t=this.getConsentPreferences();return this.isNoticeBehaviorNotExpressed()||new RegExp(`[^:]*${e}[^:]*:`).test(t)}hasFunctionalConsent(){return this.hasConsent(u.FUNCTIONAL)}hasMarketingConsent(){return this.hasConsent(u.MARKETING)}hasRequiredConsent(){return this.hasConsent(u.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:o,trimStartStr:n,trimEndStr:i}=t,r=n?Number.parseFloat(n):void 0,s=i?Number.parseFloat(i):void 0;void 0!==o&&void 0!==r&&void 0!==s?r>=s||r<0||s<0?console.warn(`Invalid trim start and end times for Wistia video ${o}`):e.definePlugin("videoThumbnail",{on:!0,hashedId:o,trimStart:r,trimEnd:s,async:!0}
1):console.warn(`Missing required options for configuring Wistia video ${o}`)},E=e=>{e.updateEmbedOptions({clickForSound:{disabled:!0}})};var v=o(8924),g=o.n(v);const A=(e,t)=>{const o=e.dataset[t??"videoPlayer"]??"";switch(function(e){const t=e.toLowerCase().trim();return Object.values(c).includes(t)?t:c.NONE}(o)){case c.YOUTUBE:return{renderAndPlay:(e,t)=>{g()(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 o=document.createElement("wistia-player");o.setAttribute("media-id",t),o.setAttribute("autoPlay","true"),o.setAttribute("player-color","#b10f23"),o.setAttribute("volume-control","true"),o.setAttribute("playback-rate-control","true"),o.setAttribute("audio-description-control","true"),o.setAttribute("fullscreen-control","true"),o.setAttribute("quality-control","true"),o.setAttribute("seo","false"),o.toggleAttribute("do-not-track",!p.hasFunctionalConsent()),o.className=e.className,a(e)||o.setAttribute("rounded-player","16"),e.replaceWith(o),a(e)&&o.addEventListener("ended",()=>{o.replaceWith(e),e.querySelector(n.PLAY_BUTTON)?.toggleAttribute("hidden"),e.querySelector(n.THUMBNAIL)?.toggleAttribute("hidden");const i=e.querySelector(n.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: ${o}`)}},N=()=>{document.querySelectorAll(".cmp-media-video__thumbnail--wistia-video").forEach(e=>{(e=>{const t=document.createElement("wistia-player"),o=e.closest(".cmp-media-video"),n=o?.dataset.videoId;n&&o?(t.setAttribute("media-id",n),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:n,trimStartStr:o.dataset.thumbnailTrimStart,trimEndStr:o.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 o=t.closest(".cmp-media-audio");if(!o)return;const n=()=>o.classList.add("cmp-media-audio--ready");t.addEventListener("api-ready",n,{once:!0}),setTimeout(n,5e3)})})(),$(document).on("click",n.INLINE_VIDEO,e=>{const t=e.currentTarget,o=t.dataset.videoId;if(!o)return;const i=A(t);t.querySelector(n.PLAY_BUTTON)?.toggleAttribute("hidden",!0),t.querySelector(n.THUMBNAIL)?.toggleAttribute("hidden",!0),i.renderAndPlay(t,o)}),$(document).on("click",n.POPUP_VIDEO,e=>{const t=e.currentTarget,o=t.dataset.videoId;if(!o)return;const n=(0,r.f)()?.getContentBodyElement();n&&A(t).renderAndPlay(n,o)})},f=()=>(0,s.q)(N)}}]);
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.