PageSourceSearch

https://www.right2hope.org/_next/static/chunks/3851.8f9a860d910de69c.js

js right2hope.org collected 2026-10-10 01:31:20 UTC 5,472 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[749,3851],{10749:(e,t,o)=>{o.r(t),o.d(t,{Stream:()=>u,useStreamSDK:()=>i});var r=o(76686),a="https://embed.cloudflarestream.com/embed/sdk.latest.js",n=function(){if("undefined"!=typeof window)return window.Stream};function i(){var e=(0,r.useState)(n),t=e[0],o=e[1];return(0,r.useEffect)(function(){if(!t){var e=document.querySelector("script[src='"+a+"']"),r=null!=e?e:document.createElement("script");r.addEventListener("load",function(){o(n)}),e||(r.src=a,document.head.appendChild(r))}},[t]),t}function d(e,t,o){(0,r.useEffect)(function(){t.current&&void 0!==o&&(t.current[e]=o)},[e,o,t])}function l(e,t,o){void 0===o&&(o=s),(0,r.useEffect)(function(){if(t.current){var r=t.current;return r.addEventListener(e,o),function(){return r.removeEventListener(e,o)}}},[o,e,t])}var s=function(){},u=function(e){return i()?r.createElement(p,Object.assign({},e)):null},c={position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",width:"100%"},m=function(e){var t=e.children,o=e.responsive,a=e.className,n=e.videoDimensions,i=n.videoHeight,d=n.videoWidth,l=(0,r.useMemo)(function(){return{position:"relative",paddingTop:d>0?i/d*100+"%":void 0}},[d,i]);return r.createElement("div",{className:a,style:o?l:void 0},t)},p=function(e){var t,o,a,i,s,u,p,f,v,h,y,g,C,b,x=e.src,k=e.customerCode,E=e.adUrl,S=e.controls,T=void 0!==S&&S,w=e.muted,R=void 0!==w&&w,U=e.autoplay,N=void 0!==U&&U,W=e.loop,j=void 0!==W&&W,L=e.preload,_=void 0===L?"metadata":L,D=e.primaryColor,H=e.letterboxColor,P=e.defaultTextTrack,I=e.height,A=e.width,z=e.poster,M=e.currentTime,B=e.volume,q=e.playbackRate,F=e.startTime,K=e.streamRef,O=e.responsive,V=void 0===O||O,G=e.className,J=e.title,Q=e.onAbort,X=e.onCanPlay,Y=e.onCanPlayThrough,Z=e.onDurationChange,$=e.onEnded,ee=e.onError,et=e.onLoadedData,eo=e.onLoadedMetaData,er=e.onLoadStart,ea=e.onPause,en=e.onPlay,ei=e.onPlaying,ed=e.onProgress,el=e.onRateChange,es=e.onResize,eu=e.onSeeked,ec=e.onSeeking,em=e.onStalled,ep=e.onSuspend,ef=e.onTimeUpdate,ev=e.onVolumeChange,eh=e.onWaiting,ey=e.onStreamAdStart,eg=e.onStreamAdEnd,eC=e.onStreamAdTimeout,eb=(0,r.useRef)(),ex=null!=K?K:eb,ek=(0,r.useState)({videoHeight:0,videoWidth:0}),eE=ek[0],eS=ek[1],eT=(0,r.useRef)(null),ew=(o=(t={customerCode:k,muted:R,preload:_,loop:j,autoplay:N,controls:T,poster:z,primaryColor:D,letterboxColor:H,adUrl:E,defaultTextTrack:P,startTime:F}).muted,a=t.preload,i=t.loop,s=t.autoplay,u=t.controls,p=t.poster,f=t.primaryColor,v=t.letterboxColor,h=t.adUrl,y=t.startTime,g=t.defaultTextTrack,C=t.customerCode,b=[p&&"poster="+encodeURIComponent(p),h&&"ad-url="+encodeURIComponent(h),g&&"defaultTextTrack="+encodeURIComponent(g),f&&"primaryColor="+encodeURIComponent(f),v&&"letterboxColor="+encodeURIComponent(v),y&&"startTime="+y,o&&"muted=true",a&&"preload="+a,i&&"loop=true",s&&"autoplay=true",!u&&"controls=false"].filter(Boolean).join("&"),(0,r.useMemo)(function(){return C?"https://customer-"+C+".cloudflarestream.com/"+x+"/iframe?"+b:"https://iframe.cloudflarestream.com/"+x+"?"+b},[])),eR=!function(e){try{var t=new URL(e);return t.hostname.endsWith("videodelivery.net")||t.hostname.endsWith("cloudflarestream.com")}catch(e){return!1}}(x)?ew:x;return d("muted",ex,R),d("controls",ex,T),d("src",ex,x),d("autoplay",ex,N),d("currentTime",ex,M),d("loop",ex,j),d("preload",ex,_),d("primaryColor",ex,D),d("letterboxColor",ex,H),d("volume",ex,void 0===B?1:B),d("playbackRate",ex,void 0===q?1:q),(0,r.useEffect)(function(){var e=n();if(eT.current&&e){var t=e(eT.current);ex.current=t;var o=t.videoHeight,r=t.videoWidth;o&&r&&eS({videoHeight:o,videoWidth:r})}},[]),l("abort",ex,Q),l("canplay",ex,X),l("canplaythrough",ex,Y),l("durationchange",ex,Z),l("ended",ex,$),l("error",ex,ee),l("loadeddata",ex,et),l("loadedmetadata",ex,eo),l("loadstart",ex,er),l("pause",ex,ea),l("play",ex,en),l("playing",ex,ei),l("progress",ex,ed),l("ratechange",ex,el),l("seeked",ex,eu),l("seeking",ex,ec),l("stalled",ex,em),l("suspend",ex,ep),l("timeupdate",ex,ef),l("volumechange",ex,ev),l("waiting",ex,eh),l("stream-adstart",ex,ey),l("stream-adend",ex,eg),l("stream-adtimeout",ex,eC),l("resize",ex,function(e){if(ex.current){var t=ex.current;eS({videoHeight:t.videoHeight,videoWidth:t.videoWidth}),es&&es(e)}}),r.createElement(m,{className:G,responsive:V,videoDimensions:eE},r.createElement("iframe",{ref:eT,src:eR,title:J,style:V?c:void 0,frameBorder:0,height:I,width:A,allow:"accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;",allowFullScreen:!0}))}},53851:(e,t,o)=>{o.r(t),o.d(t,{default:()=>i});var r=o(84510),a=o(76686),n=o(10749);let i=e=>{let{videoId:t,customerCode:o,isOpen:i,onClose:d}=e,l=(0,a.useRef)(void 0);return((0,a.useEffect)(()=>
1{if(i&&l.current)l.current.play().catch(()=>{try{l.current.muted=!0,l.current.play()}catch(e){}});else if(!i&&l.current)try{l.current.pause()}catch(e){}},[i]),i)?(0,r.jsx)("div",{className:"rh-modal-backdrop fixed inset-0 z-[1000] flex items-center justify-center bg-black/80 backdrop-blur-sm p-4",children:(0,r.jsxs)("div",{className:"rh-modal-panel relative w-full max-w-5xl aspect-video",children:[(0,r.jsx)("button",{onClick:d,className:"absolute -top-10 right-0 text-white text-4xl leading-none hover:opacity-80","aria-label":"Close video",children:"\xd7"}),(0,r.jsx)(n.Stream,{src:t,customerCode:o,controls:!0,responsive:!0,preload:"metadata",streamRef:l,width:"100%",height:"100%"})]})}):null}}}]);
2//# sourceMappingURL=3851.8f9a860d910de69c.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.