PageSourceSearch

https://www.pepsico.com/_next/static/chunks/reactPlayerDash.51a6245a86f6c7b5.js

js pepsico.com collected 2026-09-24 08:24:38 UTC 8,356 bytes, 43 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[443],{1979:function(t,e,i){i.d(e,{zM:function(){return u}});let n=["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"],s=["autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"];function r(t){return`
2    <style>
3      :host {
4        display: inline-flex;
5        line-height: 0;
6        flex-direction: column;
7        justify-content: end;
8      }
9
10      audio {
11        width: 100%;
12      }
13    </style>
14    <slot name="media">
15      <audio${l(t)}></audio>
16    </slot>
17    <slot></slot>
18  `}function o(t){return`
19    <style>
20      :host {
21        display: inline-block;
22        line-height: 0;
23      }
24
25      video {
26        max-width: 100%;
27        max-height: 100%;
28        min-width: 100%;
29        min-height: 100%;
30        object-fit: var(--media-object-fit, contain);
31        object-position: var(--media-object-position, 50% 50%);
32      }
33
34      video::-webkit-media-text-track-container {
35        transform: var(--media-webkit-text-track-transform);
36        transition: var(--media-webkit-text-track-transition);
37      }
38    </style>
39    <slot name="media">
40      <video${l(t)}></video>
41    </slot>
42    <slot></slot>
43  `}function a(t,{tag:e,is:i}){let a=globalThis.document?.createElement?.(e,{is:i}),l=a?function(t){let e=[];for(let i=Object.getPrototypeOf(t);i&&i!==HTMLElement.prototype;i=Object.getPrototypeOf(i)){let t=Object.getOwnPropertyNames(i);e.push(...t)}return e}(a):[];return class u extends t{static getTemplateHTML=e.endsWith("audio")?r:o;static shadowRootOptions={mode:"open"};static Events=n;static #t=!1;static get observedAttributes(){return u.#e(),[...a?.constructor?.observedAttributes??[],...s]}static #e(){if(this.#t)return;this.#t=!0;let t=new Set(this.observedAttributes);for(let e of(t.delete("muted"),l))if(!(e in this.prototype)){if("function"==typeof a[e])this.prototype[e]=function(...t){return this.#i(),(()=>{if(this.call)return this.call(e,...t);let i=this.nativeEl?.[e];return i?.apply(this.nativeEl,t)})()};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]}};e!==e.toUpperCase()&&(i.set=function(i){this.#i();let n=e.toLowerCase();if(t.has(n)){!0===i||!1===i||null==i?this.toggleAttribute(n,!!i):this.setAttribute(n,i);return}if(this.set){this.set(e,i);return}this.nativeEl&&(this.nativeEl[e]=i)}),Object.defineProperty(this.prototype,e,i)}}}#n=!1;#s=null;#r=new Map;#o;get;set;call;get nativeEl(){return this.#i(),this.#s??this.querySelector(":scope > [slot=media]")??this.querySelector(e)??this.shadowRoot?.querySelector(e)??null}set nativeEl(t){this.#s=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}`)}#i(){this.#n||(this.#n=!0,this.init())}init(){if(!this.shadowRoot){this.attachShadow({mode:"open"});let t=function(t){let e={};for(let i of t)e[i.name]=i.value;return e}(this.attributes);i&&(t.is=i),e&&(t.part=e),this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(t)}for(let t of(this.nativeEl.muted=this.hasAttribute("muted"),l))this.#a(t);for(let t of(this.#o=new MutationObserver(this.#l.bind(this)),this.shadowRoot.addEventListener("slotchange",()=>this.#u()),this.#u(),this.constructor.Events))this.shadowRoot.addEventListener(t,this,!0)}handleEvent(t){t.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(t.type,{detail:t.detail}))}#u(){let t=new Map(this.#r),e=this.shadowRoot?.querySelector("slot:not([name])");(e?.assignedElements({flatten:!0}).filter(t=>
43["track","source"].includes(t.localName))).forEach(e=>{t.delete(e);let i=this.#r.get(e);i||(i=e.cloneNode(),this.#r.set(e,i),this.#o?.observe(e,{attributes:!0})),this.nativeEl?.append(i),this.#d(i)}),t.forEach((t,e)=>{t.remove(),this.#r.delete(e)})}#l(t){for(let e of t)if("attributes"===e.type){let{target:t,attributeName:i}=e,n=this.#r.get(t);n&&i&&(n.setAttribute(i,t.getAttribute(i)??""),this.#d(n))}}#d(t){t&&"track"===t.localName&&t.default&&("chapters"===t.kind||"metadata"===t.kind)&&"disabled"===t.track.mode&&(t.track.mode="hidden")}#a(t){if(Object.prototype.hasOwnProperty.call(this,t)){let e=this[t];delete this[t],this[t]=e}}attributeChangedCallback(t,e,i){this.#i(),this.#c(t,e,i)}#c(t,e,i){["id","class"].includes(t)||!u.observedAttributes.includes(t)&&this.constructor.observedAttributes.includes(t)||(null===i?this.nativeEl?.removeAttribute(t):this.nativeEl?.getAttribute(t)!==i&&this.nativeEl?.setAttribute(t,i))}connectedCallback(){this.#i()}}}function l(t){let e="";for(let i in t){if(!s.includes(i))continue;let n=t[i];""===n?e+=` ${i}`:e+=` ${i}="${n}"`}return e}let u=a(globalThis.HTMLElement??class{},{tag:"video"});a(globalThis.HTMLElement??class{},{tag:"audio"})},1280:function(t,e,i){i.r(e),i.d(e,{default:function(){return c}});var n=i(7294),s=i(1979);class r extends s.zM{static shadowRootOptions={...s.zM.shadowRootOptions};static getTemplateHTML=t=>{let{src:e,...i}=t;return s.zM.getTemplateHTML(i)};#h;attributeChangedCallback(t,e,i){"src"!==t&&super.attributeChangedCallback(t,e,i),"src"===t&&e!=i&&this.load()}async load(){if(this.#h)this.api.attachSource(this.src);else{this.#h=!0;let t=await Promise.all([i.e(244),i.e(764)]).then(i.bind(i,2809));this.api=t.MediaPlayer().create(),this.api.initialize(this.nativeEl,this.src,this.autoplay)}}}globalThis.customElements&&!globalThis.customElements.get("dash-video")&&globalThis.customElements.define("dash-video",r);var o=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),a={className:"class",htmlFor:"for"};function l(t){return t.toLowerCase()}function u(t){return"boolean"==typeof t?t?"":void 0:"function"==typeof t?void 0:"object"!=typeof t||null===t?t:void 0}function d(t,e,i){var n;t[e]=i,null==i&&e in((null==(n=globalThis.HTMLElement)?void 0:n.prototype)??{})&&t.removeAttribute(e)}var c=function({react:t,tagName:e,elementClass:i,events:n,displayName:s,defaultProps:r,toAttributeName:c=l,toAttributeValue:h=u}){let p=Number.parseInt(t.version)>=19,f=t.forwardRef((s,l)=>{var f,b;let m=t.useRef(null),v=t.useRef(new Map),g={},y={},w={},E={};for(let[t,e]of Object.entries(s)){if(o.has(t)){w[t]=e;continue}let n=c(a[t]??t);if(t in i.prototype&&!(t in((null==(f=globalThis.HTMLElement)?void 0:f.prototype)??{}))&&!(null==(b=i.observedAttributes)?void 0:b.some(t=>t===n))){E[t]=e;continue}if(t.startsWith("on")){g[t]=e;continue}let s=h(e);n&&null!=s&&(y[n]=String(s),p||(w[n]=s)),n&&p&&(s!==u(e)?w[n]=s:w[n]=e)}if("undefined"!=typeof window){for(let e in g){let i=g[e],s=e.endsWith("Capture"),r=((null==n?void 0:n[e])??e.slice(2).toLowerCase()).slice(0,s?-7:void 0);t.useLayoutEffect(()=>{let t=null==m?void 0:m.current;if(t&&"function"==typeof i)return t.addEventListener(r,i,s),()=>{t.removeEventListener(r,i,s)}},[null==m?void 0:m.current,i])}t.useLayoutEffect(()=>{if(null===m.current)return;let t=new Map;for(let e in E)d(m.current,e,E[e]),v.current.delete(e),t.set(e,E[e]);for(let[t,e]of v.current)d(m.current,t,void 0);v.current=t})}if("undefined"==typeof window&&(null==i?void 0:i.getTemplateHTML)&&(null==i?void 0:i.shadowRootOptions)){let{mode:e,delegatesFocus:n}=i.shadowRootOptions,r=t.createElement("template",{shadowrootmode:e,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(y,s)}});w.children=[r,w.children]}return t.createElement(e,{...r,...w,ref:t.useCallback(t=>{m.current=t,"function"==typeof l?l(t):null!==l&&(l.current=t)},[l])})});return f.displayName=s??i.name,f}({react:n,tagName:"dash-video",elementClass:r,toAttributeName:t=>"muted"===t?"":"defaultMuted"===t?"muted":l(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.