PageSourceSearch

https://quadballuk.org/_next/static/chunks/3136.a7391ad68bb528e7.js

js quadballuk.org collected 2026-10-09 16:55:45 UTC 9,414 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3136],{89049:function(e,t,n){n.d(t,{d:function(){return c}});var r=n(26042),o=n(85893),i=n(68527),s={borderTop:"1px solid",borderColor:"greyLight",py:2,_last:{paddingBottom:0}},u=function(e){return(0,o.jsx)(i.xu,(0,r.Z)({as:"dt",fontSize:"sm",fontWeight:"normal",color:"black",m:"0",pr:1},s,e))},a=function(e){return(0,o.jsx)(i.xu,(0,r.Z)({as:"dd",fontSize:"sm",fontWeight:"bold",color:"qukBlue",textAlign:"right",m:"0",pl:1},s,e))},c=function(e){var t=e.term,n=e.description;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u,{children:t}),(0,o.jsx)(a,{children:n})]})};t.Z=function(e){return(0,o.jsx)(i.xu,(0,r.Z)({as:"dl",m:"0",display:"grid",gridTemplateColumns:"auto auto"},e))}},53136:function(e,t,n){n.r(t),n.d(t,{ContentBox:function(){return y}});var r=n(47568),o=n(26042),i=n(828),s=n(97582),u=n(85893),a=n(67294),c=n(5152),l=n.n(c),d=n(68527),f=n(89049),h=n(70131),p=n(9669),v=n.n(p),b=l()((function(){return Promise.resolve().then(n.bind(n,8333))}),{loadableGenerated:{webpack:function(){return[8333]}}}),g=l()((function(){return n.e(758).then(n.bind(n,46816)).then((function(e){return e.Embed}))}),{loadableGenerated:{webpack:function(){return[46816]}}}),y=function(e){return(0,u.jsx)(d.xu,(0,o.Z)({textDecoration:"none",_hover:{textDecoration:"none"},lineHeight:"24px",sx:{a:{textDecoration:"none","&:hover":{textDecoration:"none"}}}},e))},m=function(e){var t=e.embed,n=e.content;return(0,u.jsxs)(d.xu,{as:"article",borderRadius:"lg",display:"flex",flexDirection:"column",flexGrow:"1",overflow:"hidden",bg:"white",children:[(0,u.jsx)(d.xu,{position:"relative",height:{base:"100%",md:"auto"},width:{base:"100%",md:"auto"},overflow:"hidden",children:t}),(0,u.jsx)(y,{py:5,px:4,flexGrow:"1",sx:{"& a":{fontWeight:"bold",color:"qukBlue",textDecoration:"none",_hover:{textDecoration:"underline"}}},children:n})]})};t.default=function(e){var t=e.video,n=(0,i.Z)((0,h.YD)({threshold:0}),2),o=n[0],c=n[1],l=(0,a.useState)(t.Link),p=l[0],y=l[1],x=new RegExp("youtu","gi"),w=new RegExp("facebook.com","gi"),k=new RegExp("fb.watch","gi"),j=new RegExp("http","gi"),V=[t.Link,t.Notes,t["Notes 1"],t["Notes 2"],t["Notes 3"],t["Notes 4"]].filter((function(e){return j.test(e)})),C=w.test(p)||k.test(p),_=x.test(p),O=(0,a.useState)(null),S=O[0],Z=O[1],I=(0,a.useState)(!0),A=I[0],E=I[1];return(0,a.useEffect)((function(){var e=function(){var e=(0,r.Z)((function(){var e,t,n,r,o,u,a,c;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:e=(0,i.Z)(p.split("/").slice(-1),1),t=e[0],n=(0,i.Z)(t.split("?t="),2),r=n[0],o=n[1],s.label=1;case 1:return s.trys.push([1,3,,4]),[4,v().get("https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=".concat(r).concat(void 0!==o?"%26t%3D".concat(o):""))];case 2:return u=s.sent(),o&&console.log(u),Z(u),[3,4];case 3:return 400!==(null===(a=s.sent())||void 0===a||null===(c=a.response)||void 0===c?void 0:c.status)&&console.log(a),[3,4];case 4:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();if(c){var t=setTimeout((function(){!_||S&&!A||(e(),E(!1)),!C||S&&!A||(Z({data:{provider_name:"Facebook",href:p}}),E(!1))}),500);return function(){return clearTimeout(t)}}}),[_,C,p,S,c,E,A]),(0,u.jsx)(d.kC,{flexDirection:"column",ref:o,children:(0,u.jsx)(m,{embed:(null===S||void 0===S?void 0:S.data)&&!A?(0,u.jsx)(g,{embed:null===S||void 0===S?void 0:S.data}):null,content:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(d.X6,{as:"h2",fontFamily:"body",textAlign:"center",fontSize:"xl",children:[t["Team 1"]," vs ",t["Team 2"]]}),(0,u.jsx)(d.xv,{fontWeight:"bold",textAlign:"center",children:t.Score}),(0,u.jsxs)(f.Z,{children:[(0,u.jsx)(f.d,{term:"Event",description:t.Tournament}),(0,u.jsx)(f.d,{term:"Credit",description:t.Credit})]}),1!==V.length&&(0,u.jsx)(d.Kq,{direction:"row",spacing:2,pt:3,children:V.map((function(e,t){return(0,u.jsxs)(b,{size:"sm",onClick:function(){E(!0),y(e)},children:["Video ",t+1]},"video-link-".concat(e))}))})]})})})}},70131:function(e,t,n){n.d(t,{YD:function(){return v}});var r=n(67294);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s=new Map,u=new WeakMap,a=0,c=void 0;function l(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(u.has(n)||(a+=1,u.set(n,a.toString())),u.get(n)):"0":e[t]);var n})).toString()}function d(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=c),"undefined"===typeof window.IntersectionObserver&&void 0!==r){var o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"===typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),function(){}}var i=function(e){var t=l(e),n=s.get(t);if(!n){var r,o=new Map,i=new IntersectionObserver((function(t){t.forEach((function(t){var n,i=t.isIntersecting&&r.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=i),null==(n=o.get(t.target))||n.forEach((function(e){e(i,t)}))}))}),e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:o},s.set(t,n)}return n}(n),u=i.id,a=i.observer,d=i.elements,f=d.get(e)||[];return d.has(e)||d.set(e,f),f.push(t),a.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(d.delete(e),a.unobserve(e)),0===d.size&&(a.disconnect(),s.delete(u))}}var f=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function h(e){return"function"!==typeof e.children}var p=function(e){var t,n;function s(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),h(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n);var u=s.prototype;return u.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},u.componentWillUnmount=function(){this.unobserve(),this.node=null},u.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,o=e.trackVisibility,i=e.delay,s=e.fallbackInView;this._unobserveCb=d(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:o,delay:i},s)}},u.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},u.render=function(){if(!h(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var i=this.props,s=i.children,u=i.as,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(i,f);return r.createElement(u||"div",o({ref:this.handleNode},a),s)},s}(r.Component);function v(e){var t=void 0===e?{}:e,n=t.threshold,o=t.delay,i=t.trackVisibility,s=t.rootMargin,u=t.root,a=t.triggerOnce,c=t.skip,l=t.initialInView,f=t.fallbackInView,h=r.useRef(),p=r.useState({inView:!!l}),v=p[0],b=p[1],g=r.useCallback((function(e){void 0!==h.current&&(h.current(),h.current=void 0),c||e&&(h.current=d(e,(function(e,t){b({inView:e,entry:t}),t.isIntersecting&&a&&h.current&&(h.current(),h.current=void 0)}),{root:u,rootMargin:s,threshold:n,trackVisibility:i,delay:o},f))}),[Array.isArray(n)?n.toString():n,u,s,a,c,i,f,o]);(0,r.useEffect)((function(){h.current||!v.entry||a||c||b({inView:!!l})}));var y=[g,v.inView,v.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}p.displayName="InView",p.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}},20943:function(e,t,n){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},13375:function(e,t,n){function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},828:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(13375);var o=n(91566);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||(0,r.Z)(e,t)||(0,o.Z)(e,t)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},91566:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(20943);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}}]);
2//# sourceMappingURL=3136.a7391ad68bb528e7.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.