PageSourceSearch

https://dietly.pl/_next/static/chunks/2623.bd3e44e5c9f39aec.js

js dietly.pl collected 2026-10-02 06:25:20 UTC 2,388 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2623,3655],{23655:()=>{},92623:(e,t,l)=>{"use strict";l.r(t),l.d(t,{VideoLightbox:()=>d});var n=l(37876),s=l(46924),r=l(14232),a=l(31545);let u={controls:!0,playsInline:!0},i=e=>({...u,...e});function o({slide:e,offset:t}){let l=function(){let{video:e}=(0,s.useLightboxProps)();return i(e)}(),{publish:n}=(0,s.useEvents)(),{setContainerRef:u,containerRect:o}=(0,s.useContainerRect)(),c=r.useRef(null);r.useEffect(()=>{0!==t&&c.current&&!c.current.paused&&c.current.pause()},[t]),r.useEffect(()=>{0===t&&c.current&&(e.autoPlay||l.autoPlay)&&(n(a.MO),c.current.play().catch(()=>{}))},[t,l.autoPlay,e.autoPlay,n]);let d=(0,s.useEventCallback)(n=>{0===t&&(l.autoPlay||e.autoPlay)&&n.paused&&n.play().catch(()=>{})}),h=r.useCallback(e=>{c.current=e,e&&d(e)},[d]),{width:p,height:y,poster:f,sources:m}=e,g=t=>!1===e[t]?null:!0===e[t]?{[t]:!0}:!1===l[t]?null:!0===l[t]?{[t]:!0}:null,v=t=>l[t]||e[t]?{[t]:e[t]||l[t]}:null;return r.createElement(r.Fragment,null,m&&r.createElement("div",{ref:u,style:{width:"100%",height:"100%",...p?{maxWidth:`${p}px`}:null},className:(0,s.clsx)((0,s.cssClass)("video_container"),(0,s.cssClass)(a.tC),(0,s.cssClass)(a.pc))},o&&r.createElement("video",{ref:h,poster:f,...(()=>{let e={};if(e.style={maxWidth:"100%",maxHeight:"100%"},p&&y&&o){let t=p/y>o.width/o.height,l=t?o.width:Math.round(o.height/y*p),n=t?Math.round(o.width/p*y):o.height;e.width=l,e.height=n,e.style.width=l,e.style.height=n}return e})(),...g("controls"),...g("playsInline"),...g("loop"),...g("muted"),...g("playsInline"),...g("disablePictureInPicture"),...g("disableRemotePlayback"),...v("controlsList"),...v("crossOrigin"),...v("preload"),onPlay:()=>{n(a.Uh)},onEnded:()=>{n(a.jb)}},m.map(({src:e,type:t},l)=>r.createElement("source",{key:l,src:e,type:t})))))}function c({augment:e}){e(({render:{slide:e,...t},video:l,...n})=>({render:{slide:({slide:t,offset:l,rect:n})=>{var s;return"video"===t.type?r.createElement(o,{key:null==(s=t.sources)?void 0:s.map(e=>e.src).join(" "),slide:t,offset:l}):null==e?void 0:e({slide:t,offset:l,rect:n})},...t},video:i(l),...n}))}l(23655);let d=e=>{let{handleClose:t,src:l,type:r}=e;return(0,n.jsx)(s.default,{carousel:{finite:!0},close:t,open:!0,plugins:[c],render:{buttonPrev:()=>null,buttonNext:()=>null},slides:[{autoPlay:!0,type:"video",width:1280,height:720,sources:[{src:l,type:r}]}]})}}}]);

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.