PageSourceSearch

https://flowplayer.com/user/themes/flowplayer-web/app/dist/assets/home.js?g-bd27ca19

js flowplayer.com collected 2026-09-24 09:18:43 UTC 14,718 bytes, 2 lines download raw bytes

1var ee=Object.defineProperty,te=Object.defineProperties;var se=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var D=(e,t,s)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,a=(e,t)=>{for(var s in t||(t={}))oe.call(t,s)&&D(e,s,t[s]);if(L)for(var s of L(t))ie.call(t,s)&&D(e,s,t[s]);return e},p=(e,t)=>te(e,se(t));import"./modulepreload-polyfill.js";import{A as u,C as y,x as _,b as v,j as J,d as m,u as W,s as k,i as r,F as O,h as R,l as E,f as F,m as ne,k as re,T as le,D as ae,E as ce,H as pe}from"./vendor.js";import{s as b}from"./store.js";import{_ as w}from"./Intersect.js";import{T as de,P as I}from"./vendor-home.js";import{p as he,g as H}from"./TyperConfig.js";import{_ as S}from"./plugin-vue_export-helper.js";const me={name:"Hero",components:{Intersect:w},computed:a({},u("hero",{isReady:"ready",videoStarted:"videoStarted"})),methods:p(a({},y("hero",{setReady:"setReady",startVideo:"startVideo"})),{async transitionComplete(e){typeof e.dataset.last!="undefined"&&!this.ready&&window.flowplayer&&(this.setReady(!0),await window.flowplayer.cloud,(await window.flowplayer(this.$refs.player)).play(),this.$nextTick(()=>{this.$refs.player.parentNode.classList.remove("hidden")}),setTimeout(()=>{this.startVideo(!0)},1e3))}})},Z="[data-hero]",C=document.querySelector(Z);var V;if(C){const e=_(me,a({},JSON.parse(((V=C==null?void 0:C.dataset)==null?void 0:V.hero)||"{}")));e.config.compilerOptions.delimiters=["[[","]]"],e.config.compilerOptions.whitespace="preserve",e.use(b),e.mount(Z)}const ue={name:"Features",components:{Intersect:w},props:{total:{type:Number,default:0},interval:{type:Number,default:6}},computed:p(a({},u("features",{selected:"selected",color:"color",pillDimensions:"pillDimensions",polling:"polling"})),{pillStyles(){return this.pillDimensions?{transform:`translate(${this.pillDimensions.offsetLeft}px, ${this.pillDimensions.offsetTop}px)`,width:`calc(${this.pillDimensions.width}px + 2rem)`,height:`calc(${this.pillDimensions.height}px + 1rem)`}:{}},activeColor(){return`colors__${this.color}`}}),mounted(){window.addEventListener("resize",this.onResize),this.onResize()},unmounted(){window.removeEventListener("resize",this.onResize)},methods:p(a({},y("features",{setSelected:"setSelected",setColor:"setColor",setPillDimensions:"setPillDimensions",setPolling:"setPolling"})),{onResize(){var e;(e=this.$refs[`pill-${this.selected||0}`])==null||e.click()},next(){const e=this.selected+1>this.total-1?0:this.selected+1;this.$refs[`pill-${e}`].click()},select({index:e,color:t,height:s=null}){const i=this.$refs[`pill-${e}`],n=this.$refs.box,{width:l,height:o}=i.getBoundingClientRect(),c={width:l,height:o,offsetTop:i.offsetTop,offsetLeft:i.offsetLeft};this.setPillDimensions(c),this.setSelected({index:e}),this.setColor({color:t}),s&&(n.style.height=`calc(${s}px + 6rem + 6rem)`),this.startTimer()},startTimer(){this.stopTimer();const e=setInterval(this.next,this.interval*1e3);this.setPolling({polling:e})},stopTimer(){clearInterval(this.polling)},resume(){this.startTimer()},pause(){this.stopTimer()}})},K="[data-features]",$=document.querySelector(K);var q;if($){const e=_(ue,a({},JSON.parse(((q=$==null?void 0:$.dataset)==null?void 0:q.features)||"{}")));e.config.compilerOptions.delimiters=["[[","]]"],e.config.compilerOptions.whitespace="preserve",e.use(b),e.mount(K)}const ge={name:"Testimonials",components:{Intersect:w},props:{total:{type:Number,default:0},interval:{type:Number,default:6}},computed:p(a({},u("testimonials",{selected:"selected",polling:"polling",direction:"direction"})),{transitionName(){return`testimonials-${this.direction}`}}),methods:p(a({},y("testimonials",{setSelected:"setSelected",setPolling:"setPolling",setDirection:"setDirection"})),{prev(){this.setDirection({direction:"prev"});const e=this.selected-1<0?this.total-1:this.selected-1;this.select({index:e})},next(){this.setDirection({direction:"next"});const e=this.selected+1>this.total-1?0:this.selected+1;this.select({index:e})},select({index:e}){this.setSelected({index:e}),this.startTimer()},startTimer(){this.stopTimer();const e=setInterval(this.next,this.interval*1e3);this.setPolling({polling:e})},stopTimer(){clearInterval(this.polling)},resume(){this.startTimer()},pause(){this.stopTimer()}})},Q="[data-testimonials]",T=document.querySelector(Q);var j;if(T){const e=_(ge,a({},JSON.parse(((j=T==null?void 0:T.dataset)==null?void 0:j.testimonials)||"{}")));e.config.compilerOptions.delimiters=["[[","]]"],e.config.compilerOptions.whitespace="preserve",e.use(b),e.mount(Q)}const fe={name:"Typer",props:he,emits:["onComplete","preStringTyped","onStringTyped","onLastStringBackspaced","onTypingPaused","onTypingResumed","onReset","onStop","onStart","onDestroy"],computed:a({},u("codeHighlight",{typed:"typed"})),methods:a(p(a({},y("codeHighlight",{setTyped:"setTyped",start:"start",stop:"stop",destroy:"destroy"})),{throwError:function(e){throw new TypeError(e)},initTypedJS:function(){const e=this.$refs.typedElement.querySelector(".typing");this.$slots.default().length>1?this.throwError(`Just one child element allowed inside <${this.$options.name}> component.`):this.$slots.default().length===1&&(this.setTyped({typed:new de(e,a(a({},this.$props),H(this)))}),this.stop())}}),H(globalThis)),mounted(){this.initTypedJS()},destroyed(){this.destroy()}},ye={ref:"typedElement"};function we(e,t,s,i,n,l){return m(),v("div",ye,[J(e.$slots,"default")],512)}var ve=S(fe,[["render",we]]);const _e=e=>{const t=be(e),s=[];for(let i=0;i<t.length;i++){s.push('<span class="line">');for(let n=0;n<t[i].length;n++){const l=t[i][n],o=l.content.replace(/</g,"&lt;").replace(/>/g,"&gt;");s.push(`<span class="token ${l.types.pop()||""}">${o}</span>`)}s.push(`</span>
2`)}return s.join("")},A=(e,t)=>
2{const s=e.length;return s>0&&e[s-1]===t?e:e.concat(t)},N=e=>{e.length===0?e.push({types:["plain"],content:"",empty:!0}):e.length===1&&e[0].content===""&&(e[0].empty=!0)},be=e=>{const t=[[]],s=[e],i=[0],n=[e.length];let l=0,o=0,c=[];const h=[c];for(;o>-1;){for(;(l=i[o]++)<n[o];){let g,d=t[o];const f=s[o][l];if(typeof f=="string"?(d=o>0?d:["plain"],g=f):(d=A(d,f.type),f.alias&&(d=A(d,f.alias)),g=f.content),typeof g!="string"){o++,t.push(d),s.push(g),i.push(0),n.push(g.length);continue}const z=g.split(/\r\n|\r|\n/),Y=z.length;c.push({types:d,content:z[0]});for(let P=1;P<Y;P++)N(c),h.push(c=[]),c.push({types:d,content:z[P]})}o--,t.pop(),s.pop(),i.pop(),n.pop()}return N(c),h},Ce={name:"CodeHighlight",components:{Typer:ve,Intersect:w},props:{typeSpeed:{type:Number,default:50},language:{type:String,default:"plain"},lines:{type:Number,default:5}},data(){return{tokens:[]}},computed:p(a({},u("codeHighlight",{isCompleted:"completed"})),{editorStyles(){return this.tokens.length?{minHeight:`${Math.max(this.lines,this.tokens[0].split(/\r\n|\r|\n/).length)*20}px`}:{minHeight:`${this.lines}px`}}}),methods:p(a({},y("codeHighlight",{start:"start",restart:"restart",stop:"stop",setCompleted:"setCompleted",setTyping:"setTyping"})),{onBegin(){this.setTyping(!0),this.setCompleted(!1)},onTypingPaused(){this.setTyping(!1)},onTypingResumed(){this.setTyping(!0)},onComplete(){this.setTyping(!1),this.setCompleted(!0)}}),mounted(){const e=this.$refs.code.innerText,t=I.tokenize(e,I.languages[this.language||"plain"]);this.tokens=[_e(t)]}},$e={class:"perspective"},Te=r("div",{class:"absolute inset-0 bg-black/40"},null,-1),xe={class:"relative divide-y divide-white/10"},ke={class:"flex justify-between items-center p-3"},Se=r("div",{class:"flex space-x-2"},[r("span",{class:"w-3 h-3 bg-red-500 rounded-full"}),r("span",{class:"w-3 h-3 bg-yellow-500 rounded-full"}),r("span",{class:"w-3 h-3 bg-green-500 rounded-full"})],-1),ze=r("div",{class:"flex flex-1 justify-center"}," site \u2014 index.html ",-1),Pe={class:"flex justify-end"},Oe=r("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 currentColor",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[r("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),r("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})],-1),Re=[Oe],Ee={class:"flex divide-x divide-white/10 font-mono text-xs md:text-sm"},Le=r("div",{class:"hidden sm:flex p-2 w-8 text-gray-800 text-right flex-shrink-0"},null,-1),De={class:"w-full flex-1 p-2 bg-matisse-500/20"},Ie={ref:"code"};function He(e,t,s,i,n,l){const o=R("typer"),c=R("intersect");return m(),v(O,null,[W(c,{onEnter:t[1]||(t[1]=h=>e.start()),onLeave:t[2]||(t[2]=h=>e.stop())},{default:k(()=>[r("div",$e,[r("div",{ref:"intersection",class:E(["bg-lucky-500 rounded-xl overflow-hidden relative shadow-2xl text-sm duration-300 dark:border dark:border-white/10",{"video-perspective":e.isCompleted}])},[Te,r("div",xe,[r("div",ke,[Se,ze,r("div",Pe,[r("button",{class:"p-2 -my-2 hover:text-white","aria-label":"Restart",onClick:t[0]||(t[0]=h=>e.restart())},Re)])]),r("div",Ee,[Le,r("div",De,[n.tokens.length?(m(),F(o,ne({key:0,ref:"typer",strings:n.tokens,contentType:"html"},a({},e.$props),{style:[l.editorStyles],"auto-insert-css":!1,onOnBegin:l.onBegin,onOnComplete:l.onComplete,onOnTypingPaused:l.onTypingPaused,onOnTypingResumed:l.onTypingResumed}),{default:k(()=>[r("pre",null,[r("code",{class:E(["typing whitespace-pre-wrap break-words",`language-${s.language}`])},null,2)])]),_:1},16,["strings","style","onOnBegin","onOnComplete","onOnTypingPaused","onOnTypingResumed"])):re("",!0)])])])],2)])]),_:1}),r("template",Ie,[J(e.$slots,"default")],512)],64)}var Ae=S(Ce,[["render",He]]);const Ne={name:"VideoPreview",props:{id:{type:String,default:"",required:!0},player:{type:String,default:"",required:!0},settings:{type:Object,default:()=>({})},demo:Array},computed:a({},u("codeHighlight",{isTyping:"typing",isCompleted:"completed"})),data(){return{script:""}},mounted(){}},Me=["data-player-id","innerHTML"],Be={class:"rounded-xl w-full shadow-2xl transition"},Ve={class:"rounded-xl",autoplay:"",playsinline:"",muted:"",loop:""},qe=["src","type"];function je(e,t,s,i,n,l){return m(),v(O,null,[r("div",{ref:"container","data-player-id":s.id,innerHTML:n.script},null,8,Me),W(le,{"enter-active-class":"duration-500 ease-out","leave-active-class":"duration-200 ease-in","enter-from-class":"opacity-0 scale-75","enter-to-class":"opacity-100 scale-100","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-75"},{default:k(()=>[ae(r("div",Be,[r("video",Ve,[(m(!0),v(O,null,pe(s.demo,o=>(m(),v("source",{key:o.src,src:o.src,type:o.type},null,8,qe))),128))])],512),[[ce,!e.isTyping&&e.isCompleted]])]),_:1})],64)}var Ge=S(Ne,[["render",je]]);
2const U="[data-code]",Je=document.querySelectorAll(U);Je.forEach(e=>{const t=_({name:"Code",methods:a({},y("codeHighlight",{start:"start",restart:"restart",stop:"stop"}))});t.component("code-highlight",Ae),t.component("video-preview",Ge),t.config.compilerOptions.delimiters=["[[","]]"],t.config.compilerOptions.whitespace="preserve",t.use(b),t.mount(U)});const We="modulepreload",M={},Fe="/",B=function(t,s){return!s||s.length===0?t():Promise.all(s.map(i=>{if(i=`${Fe}${i}`,i in M)return;M[i]=!0;const n=i.endsWith(".css"),l=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${l}`))return;const o=document.createElement("link");if(o.rel=n?"stylesheet":We,n||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),n)return new Promise((c,h)=>{o.addEventListener("load",c),o.addEventListener("error",h)})})).then(()=>t())},Ze={name:"Globe",components:{Intersect:w},props:{countries:{type:String,default:"",required:!0}},data(){return{initialized:!1,globe:null,ratio:.85,lightGlobeColor:"#eaf6fe",darkGlobeColor:"#101456",lightColors:["#4d97bf","#4dd4f1","#6cc3f5"],darkColors:["#5b5f9c","#888df0","#555cea"],lightHalo:"#4dd4f1",darkHalo:"#00011F",colorInstance:null}},computed:p(a({},u("appearance",{appearance:"appearance"})),{theme(){return this.appearance},globeColor(){return this[`${this.theme}GlobeColor`]},haloColor(){return this[`${this.theme}Halo`]},polygonColors(){return this[`${this.theme}Colors`]},async Color(){if(!this.ColorInstance){const{Color:e}=await B(()=>import("./vendor-three.js"),[]);this.ColorInstance=e}return this.ColorInstance}}),watch:{async appearance(){if(this.globe){const e=await this.Color;this.globe.globeMaterial().color=new e(this.globeColor),this.globe.hexPolygonColor(()=>this.polygonColors[Math.floor(Math.random()*this.polygonColors.length)]),this.globe.atmosphereColor(this.haloColor)}}},methods:{async initialize(){this.initialized=!0;const e=await B(()=>import("./vendor-globe.js"),["assets/vendor-globe.js","assets/vendor-three.js","assets/vendor-home.js","assets/vendor.js"]),t=await this.Color,s=e.default,n=await(await fetch(this.countries)).json(),l=window.innerWidth,o=l<640?l*2:l*this.ratio;this.globe=new s({animateIn:!1}),this.globe.width(o).height(o).backgroundColor("rgba(0, 0, 0, 0)").atmosphereColor(this.haloColor),this.globe.globeMaterial().color=new t(this.globeColor),this.globe.globeMaterial().opacity=.95,this.globe.globeMaterial().shininess=5,this.globe(this.$refs.target),this.globe.controls().enableZoom=!1,this.globe.controls().enableDamping=!0,this.globe.controls().dampingFactor=.05,this.globe.controls().autoRotate=!0,this.globe.controls().autoRotateSpeed=1,this.globe.hexPolygonsData(n.features).hexPolygonResolution(3).hexPolygonMargin(.2).hexPolygonAltitude(.001).hexPolygonColor(()=>this.polygonColors[Math.floor(Math.random()*this.polygonColors.length)]),this.globe.atmosphereAltitude(.2).pointOfView({lat:40.6974034,lng:-74.1197617})},onResize(){this.$nextTick(()=>{const e=window.innerWidth,t=e<640?e*2:e*this.ratio;this.globe.width(t),this.globe.height(t)})},async resume(){var e;this.initialized||(await this.initialize(),this.initialized=!0),(e=this.globe)==null||e.resumeAnimation(),window.addEventListener("resize",this.onResize)},pause(){var e;(e=this.globe)==null||e.pauseAnimation(),window.removeEventListener("resize",this.onResize)}}};function Ke(e,t,s,i,n,l){const o=R("intersect");return m(),F(o,{onEnter:l.resume,onLeave:l.pause},{default:k(()=>[r("div",{ref:"target",class:E(["block absolute",{"inset-0":!n.initialized,"bottom-0 -translate-x-1/4 translate-y-2/3 sm:right-0 sm:translate-x-1/3 sm:translate-y-1/3":n.initialized}])},null,2)]),_:1},8,["onEnter","onLeave"])}var Qe=S(Ze,[["render",Ke]]);const Ue={name:"Scaling",components:{Intersect:w,Globe:Qe}},X="[data-scaling]",x=document.querySelector(X);var G;if(x){const e=_(Ue,a({},JSON.parse(((G=x==null?void 0:x.dataset)==null?void 0:G.scaling)||"{}")));e.config.compilerOptions.delimiters=["[[","]]"],e.config.compilerOptions.whitespace="preserve",e.use(b),e.mount(X)}

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.