PageSourceSearch

https://www.pepsico.com/_next/static/chunks/reactPlayerWistia.497911737070568a.js

js pepsico.com collected 2026-09-24 08:24:31 UTC 9,439 bytes, 34 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[55],{1602:function(t,e,i){i.r(e),i.d(e,{default:function(){return L}});var s,o,l=i(7294);let a=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],n=globalThis.document?.createElement("template");n&&(n.innerHTML=`
2    <style>
3      :host {
4        display: inline-block;
5        line-height: 0;
6      }
7
8      video,
9      audio {
10        max-width: 100%;
11        max-height: 100%;
12        min-width: 100%;
13        min-height: 100%;
14      }
15    </style>
16    <slot></slot>
17  `);let r=(t,{tag:e,is:i})=>{let s=globalThis.document?.createElement(e,{is:i}),o=s?d(s):[];return class l extends t{static Events=a;static template=n;static skipAttributes=[];static #t;static get observedAttributes(){return l.#e(),[...s?.constructor?.observedAttributes??[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}static #e(){if(this.#t)return;this.#t=!0;let t=new Set(this.observedAttributes);for(let e of(t.delete("muted"),o))if(!(e in this.prototype)){if("function"==typeof s[e])this.prototype[e]=function(...t){this.#i();let i=()=>this.call?this.call(e,...t):this.nativeEl[e].apply(this.nativeEl,t);return this.loadComplete&&!this.isLoaded?this.loadComplete.then(i):i()};else{let i={get(){this.#i();let i=e.toLowerCase();if(t.has(i)){let t=this.getAttribute(i);return null!==t&&(""===t||t)}return this.get?.(e)??this.nativeEl?.[e]??this.#s[e]}};e!==e.toUpperCase()&&(i.set=async function(i){this.#i();let s=e.toLowerCase();if(t.has(s)){!0===i||!1===i||null==i?this.toggleAttribute(s,!!i):this.setAttribute(s,i);return}if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.set){this.set(e,i);return}this.nativeEl[e]=i}),Object.defineProperty(this.prototype,e,i)}}}#o;#l;#a=!1;#n=!1;#r;#s;constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.load!==l.prototype.load&&(this.loadComplete=new u)}get loadComplete(){return this.#l}set loadComplete(t){this.#n=!1,this.#l=t,t?.then(()=>{this.#n=!0})}get isLoaded(){return this.#n}get nativeEl(){return this.#r??this.shadowRoot.querySelector(e)??this.querySelector(e)}set nativeEl(t){this.#r=t}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.toggleAttribute("muted",!!t)}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}get preload(){return this.getAttribute("preload")??this.nativeEl?.preload}set preload(t){this.setAttribute("preload",`${t}`)}async #i(){if(this.#o)return;for(let t of(this.#o=!0,this.#d(),this.#u(),o))this.#h(t);let t=new Map,e=this.shadowRoot.querySelector("slot:not([name])");for(let i of(e?.addEventListener("slotchange",()=>{let i=new Map(t);e.assignedElements().filter(t=>["track","source"].includes(t.localName)).forEach(async e=>{i.delete(e);let s=t.get(e);s||(s=e.cloneNode(),t.set(e,s)),this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.nativeEl.append?.(s)}
17),i.forEach(t=>t.remove())}),this.constructor.Events))this.shadowRoot.addEventListener?.(i,t=>{t.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(t.type,{detail:t.detail}))},!0)}#h(t){if(Object.prototype.hasOwnProperty.call(this,t)){let e=this[t];delete this[t],this[t]=e}}#d(){let t=document.createElement(e,{is:i});for(let{name:e,value:i}of(t.muted=this.hasAttribute("muted"),this.attributes))t.setAttribute(e,i);for(let e of(this.#s={},d(t)))this.#s[e]=t[e];t.removeAttribute("src"),t.load()}async #u(){if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,!this.nativeEl){let t=document.createElement(e,{is:i});t.part=e,this.shadowRoot.append(t)}this.nativeEl.muted=this.hasAttribute("muted")}attributeChangedCallback(t,e,i){this.#i(),"src"===t&&this.load!==l.prototype.load&&this.#c(),this.#p(t,e,i)}async #c(){this.#a&&(this.loadComplete=new u),this.#a=!0,await Promise.resolve(),await this.load(),this.loadComplete?.resolve(),await this.loadComplete}async #p(t,e,i){this.loadComplete&&!this.isLoaded&&await this.loadComplete,["id","class",...this.constructor.skipAttributes].includes(t)||(null===i?this.nativeEl.removeAttribute?.(t):this.nativeEl.setAttribute?.(t,i))}connectedCallback(){this.#i()}}};function d(t){let e=[];for(let i=Object.getPrototypeOf(t);i&&i!==HTMLElement.prototype;i=Object.getPrototypeOf(i))e.push(...Object.getOwnPropertyNames(i));return e}class u extends Promise{constructor(t=()=>{}){let e,i;super((s,o)=>{t(s,o),e=s,i=o}),this.resolve=e,this.reject=i}}let h=globalThis.document?r(HTMLElement,{tag:"video"}):class{};globalThis.document&&r(HTMLElement,{tag:"audio"});let c=null==(s=globalThis.document)?void 0:s.createElement("template");c&&(c.innerHTML=`
18  <div class="wistia_embed"></div>
19  `);let p=null==(o=globalThis.document)?void 0:o.createElement("template");p&&(p.innerHTML=`
20  <style>
21    :host {
22      display: inline-block;
23      min-width: 300px;
24      min-height: 150px;
25      position: relative;
26    }
27    ::slotted(.wistia_embed) {
28      position: absolute;
29      width: 100%;
30      height: 100%;
31    }
32  </style>
33  <slot></slot>
34  `);class m extends h{static template=p;static skipAttributes=["src"];get nativeEl(){var t;return(null==(t=this.api)?void 0:t.elem())??this.querySelector("video")}async load(){var t;if(null==(t=this.querySelector(".wistia_embed"))||t.remove(),!this.src)return;await new Promise(t=>setTimeout(t,50));let e=this.src.match(/(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/i)[1],i={autoPlay:this.autoplay,preload:this.preload??"metadata",playsinline:this.playsInline,endVideoBehavior:this.loop&&"loop",chromeless:!this.controls,playButton:this.controls,muted:this.defaultMuted};this.append(c.content.cloneNode(!0));let s=this.querySelector(".wistia_embed");s.id||(s.id=function(t){let e=++v;return`${t}${e}`}(e)),s.classList.add(`wistia_async_${e}`),await b("https://fast.wistia.com/assets/external/E-v1.js","Wistia"),this.api=await new Promise(t=>{globalThis._wq.push({id:s.id,onReady:t,options:i})})}async attributeChangedCallback(t,e,i){if("controls"===t){await this.loadComplete,"controls"===t&&(this.api.bigPlayButtonEnabled(this.controls),this.controls?this.api.releaseChromeless():this.api.requestChromeless());return}super.attributeChangedCallback(t,e,i)}get duration(){var t;return null==(t=this.api)?void 0:t.duration()}play(){return this.api.play(),new Promise(t=>this.addEventListener("playing",t))}}let f={};async function b(t,e){return e?f[t]?f[t]:self[e]?self[e]:f[t]=new Promise((i,s)=>{let o=document.createElement("script");o.defer=!0,o.src=t,o.onload=()=>i(self[e]),o.onerror=s,document.head.append(o)}):import(t)}let v=0;globalThis.customElements&&!globalThis.customElements.get("wistia-video")&&globalThis.customElements.define("wistia-video",m);var y=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),g={className:"class",htmlFor:"for"};function w(t){return t.toLowerCase()}function E(t){return"boolean"==typeof t?t?"":void 0:"function"==typeof t?void 0:"object"!=typeof t||null===t?t:void 0}function C(t,e,i){var s;t[e]=i,null==i&&e in((null==(s=globalThis.HTMLElement)?void 0:s.prototype)??{})&&t.removeAttribute(e)}var L=function({react:t,tagName:e,elementClass:i,events:s,displayName:o,defaultProps:l,toAttributeName:a=w,toAttributeValue:n=E}){let r=Number.parseInt(t.version)>=19,d=t.forwardRef((o,d)=>{var u,h;let c=t.useRef(null),p=t.useRef(new Map),m={},f={},b={},v={};for(let[t,e]of Object.entries(o)){if(y.has(t)){b[t]=e;continue}let s=a(g[t]??t);if(i.prototype&&t in i.prototype&&!(t in((null==(u=globalThis.HTMLElement)?void 0:u.prototype)??{}))&&!(null==(h=i.observedAttributes)?void 0:h.some(t=>t===s))){v[t]=e;continue}if(t.startsWith("on")){m[t]=e;continue}let o=n(e);
34s&&null!=o&&(f[s]=String(o),r||(b[s]=o)),s&&r&&(o!==E(e)?b[s]=o:b[s]=e)}if("undefined"!=typeof window){for(let e in m){let i=m[e],o=e.endsWith("Capture"),l=((null==s?void 0:s[e])??e.slice(2).toLowerCase()).slice(0,o?-7:void 0);t.useLayoutEffect(()=>{let t=null==c?void 0:c.current;if(t&&"function"==typeof i)return t.addEventListener(l,i,o),()=>{t.removeEventListener(l,i,o)}},[null==c?void 0:c.current,i])}t.useLayoutEffect(()=>{if(null===c.current)return;let t=new Map;for(let e in v)C(c.current,e,v[e]),p.current.delete(e),t.set(e,v[e]);for(let[t,e]of p.current)C(c.current,t,void 0);p.current=t})}if("undefined"==typeof window&&(null==i?void 0:i.getTemplateHTML)&&(null==i?void 0:i.shadowRootOptions)){let{mode:e,delegatesFocus:s}=i.shadowRootOptions,l=t.createElement("template",{shadowrootmode:e,shadowrootdelegatesfocus:s,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(f,o)}});b.children=[l,b.children]}return t.createElement(e,{...l,...b,ref:t.useCallback(t=>{c.current=t,"function"==typeof d?d(t):null!==d&&(d.current=t)},[d])})});return d.displayName=o??i.name,d}({react:l,tagName:"wistia-video",elementClass:m,toAttributeName:t=>"muted"===t?"":"defaultMuted"===t?"muted":w(t)})}}]);

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.