PageSourceSearch

https://app.pleo.io/static/inline-wistia-video-Cy0WCjzL.js

js pleo.io collected 2026-10-03 19:24:49 UTC 4,524 bytes, 10 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};e[`__faroBundleId_product-web`]=`95f4da5c5b041ea8`}catch{}})(),function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`95f4da5c5b041ea8`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b2e340ca-5001-4c5b-9903-96b45617f83e`,e._sentryDebugIdIdentifier=`sentry-dbid-b2e340ca-5001-4c5b-9903-96b45617f83e`)}catch{}}();import{o as e}from"./rolldown-runtime-D2BeQuAs.js";import{t}from"./react-D1k8pB89.js";import{t as n}from"./jsx-runtime-CNg_W9op.js";import{bi as r,gr as i,si as a}from"./src--W6Mrp3c.js";import{Yr as o,z as s}from"./src-B_BhcSZd.js";import{t as c}from"./load-script-BQLuFNqJ.js";var l=e(t()),u=n(),d=1240,f=550,p=({ariaLabel:e,thumbnail:t,videoId:n,autoPlay:r,startMuted:i,aspectRatio:a=56.25,maxHeight:o,maxWidth:s=d,imgMinHeight:p,trackingCallback:h,onSecondChange:g})=>{let[_,v]=(0,l.useState)(r?n:``),[C,w]=l.useState(!1),[T,E]=(0,l.useState)(null),[D,O]=l.useState(`beforeplay`),[k,A]=l.useState({secondsWatched:0,timestamp:0,duration:0});return l.useEffect(()=>{(async()=>{c({src:`https://fast.wistia.com/embed/medias/${T}.jsonp`,asynchronous:!0}),c({src:`https://fast.wistia.com/assets/external/E-v1.js`,asynchronous:!0})})(),w(!0)},[]),(0,l.useEffect)(()=>{window._wq=window._wq||[];let e=[`play`,`pause`,`end`],t,r={};return window._wq.push({id:n,onEmbedded:a=>{g&&(t=()=>g({secondsWatched:a?.secondsWatched(),timestamp:Math.ceil(a?.time()),duration:Math.ceil(a?.duration())}),a?.bind(`secondchange`,t)),E(a),e.forEach(e=>{i&&a.mute(),n===_&&(a?.play(),r[e]=()=>{O(a?.state()),A({secondsWatched:a?.secondsWatched(),timestamp:Math.ceil(a?.time()),duration:Math.ceil(a?.duration())})},a.bind(e,r[e]))})}}),()=>{t&&T?.unbind(`secondchange`,t),e.forEach(e=>{r[e]&&T?.unbind(e,r[e])})}},[T,n,_]),l.useEffect(()=>{h&&h(D,k)},[D,k,h]),C?(0,u.jsxs)(b,{activeVideo:n===_,aspectRatio:a,"data-generic-ui":`inline-wistia-video`,children:[n!==_&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(y,{src:t.src,alt:``,minHeight:p}),(0,u.jsx)(m,{ariaLabel:e,onClick:()=>v(n)})]}),[`beforeplay`,`ended`].includes(D)&&(0,u.jsxs)(x,{children:[(0,u.jsx)(y,{src:t.src,alt:``,minHeight:p}),!!T&&D===`ended`&&(0,u.jsx)(m,{ariaLabel:e,onClick:()=>T.play()})]}),(0,u.jsx)(S,{$videoEnded:D===`ended`,$idleVideo:n!==_,className:`
2                        wistia_embed wistia_async_${n}
3                        videoFoam['maxWidth']=${s}
4                        videoFoam['maxHeight']=${Math.min(o??0,f)}
5                        playButton=false
6                        controlsVisibleOnLoad=false
7                        endVideoBehavior=reset
8                        wmode=transparent
9                    `})]}):null},m=({ariaLabel:e,onClick:t})=>(0,u.jsx)(h,{"aria-label":e,onClick:t,children:(0,u.jsx)(g,{})}),h=o(i).withConfig({displayName:`PlayVideoWithIconWrapper`})([`position:absolute;top:0;display:flex;width:100%;height:100%;align-items:center;justify-content:center;z-index:`,`;`],a.zIndexSurface),g=()=>(0,u.jsx)(_,{children:(0,u.jsx)(v,{})}),_=o.div.withConfig({displayName:`RoundPlayButtonWrapper`})([`display:flex;justify-content:center;align-items:center;width:`,`;height:`,`;border-radius:`,`;background-color:`,`;color:`,`;transition:`,`;transition-property:background,color;&:hover{background-color:`,`;color:`,`;}`],r(80),r(80),a.circle,a.colorBackgroundInteractiveInverse,a.colorContentInteractiveInverse,a.motionWithinSmallShort,a.colorBackgroundInteractiveInverseHover,a.colorContentInteractiveInverseHover),v=o(s).attrs({size:64}).withConfig({displayName:`WhiteIconPlay`})([`&&&{margin-right:0;color:`,`;}`],a.colorContentInteractiveInverse),y=o.img.withConfig({displayName:`StyledImage`})([`width:100%;height:auto;display:block;min-height:`,`;border-radius:`,`;`],({minHeight:e})=>r(e||1),a.arc0),b=o.div.withConfig({displayName:`Wrapper`})([`position:relative;width:100%;padding-top:`,`;`],e=>e.activeVideo?`min(${e.aspectRatio}%, ${r(550)})`:`unset`),x=o.div.withConfig({displayName:`ImageWrapper`})([`img{position:absolute;top:0;left:0;}`]),S=o.div.withConfig({displayName:`WistiaWrapper`})([``,`;position:absolute;top:0;right:0;bottom:0;left:0;margin:0 auto;object-fit:contain;pointer-events:`,`;opacity:`,`;`],e=>e.$idleVideo?`display: none;`:null,e=>e.$videoEnded?`none`:`unset`,e=>+!e.$videoEnded);export{p as t};
10//# sourceMappingURL=inline-wistia-video-Cy0WCjzL.js.map

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.