1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2274],{43062:function(e,t,i){"use strict";i.d(t,{h:function(){return c}});var n=i(9008),o=i.n(n),r=i(11163),a=i(85893),s=i(83454).env.BASE_URL||"https://dude-perfect-frontend.herokuapp.com",c=function(e){var t=e.title,i=e.description,n=e.imageUrl,c=void 0===n?"https://dudeperfect.com/wp-content/uploads/2021/06/tour-logo-updated.png":n,d=e.isStoreFront,l=void 0!==d&&d,u=(0,r.useRouter)(),m=t?"".concat(t," | Dude Perfect"):"Dude Perfect",h="".concat(s).concat(u.pathname);return(0,a.jsxs)(o(),{children:[(0,a.jsx)("title",{children:m}),(0,a.jsx)("meta",{name:"title",content:m}),(0,a.jsx)("meta",{name:"description",content:i}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:url",content:h}),(0,a.jsx)("meta",{property:"og:title",content:m}),(0,a.jsx)("meta",{property:"og:description",content:i}),(0,a.jsx)("meta",{property:"og:image",content:c}),(0,a.jsx)("meta",{property:"twitter:card",content:"summary"}),(0,a.jsx)("meta",{property:"twitter:url",content:h}),(0,a.jsx)("meta",{property:"twitter:title",content:m}),(0,a.jsx)("meta",{property:"twitter:description",content:i}),(0,a.jsx)("meta",{property:"twitter:image",content:c}),(0,a.jsx)("script",{children:l&&'\n \x3c!-- BEGIN GROOVE WIDGET CODE --\x3e\n !function(e,t){if(!e.groove){var i=function(e,t){return Array.prototype.slice.call(e,t)},a={widget:null,loadedWidgets:{},classes:{Shim:null,Embeddable:function(){this._beforeLoadCallQueue=[],this.shim=null,this.finalized=!1;var e=function(e){var t=i(arguments,1);if(this.finalized){if(!this[e])throw new TypeError(e+"() is not a valid widget method");this[e].apply(this,t)}else this._beforeLoadCallQueue.push([e,t])};this.initializeShim=function(){a.classes.Shim&&(this.shim=new a.classes.Shim(this))},this.exec=e,this.init=function(){e.apply(this,["init"].concat(i(arguments,0))),this.initializeShim()},this.onShimScriptLoad=this.initializeShim.bind(this),this.onload=void 0}},scriptLoader:{callbacks:{},states:{},load:function(e,i){if("pending"!==this.states[e]){this.states[e]="pending";var a=t.createElement("script");a.id=e,a.type="text/javascript",a.async=!0,a.src=i;var s=this;a.addEventListener("load",(function(){s.states[e]="completed",(s.callbacks[e]||[]).forEach((function(e){e()}))}),!1);var n=t.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n)}},addListener:function(e,t){"completed"!==this.states[e]?(this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t)):t()}},createEmbeddable:function(){var t=new a.classes.Embeddable;return e.Proxy?new Proxy(t,{get:function(e,t){return e instanceof a.classes.Embeddable?Object.prototype.hasOwnProperty.call(e,t)||"onload"===t?e[t]:function(){e.exec.apply(e,[t].concat(i(arguments,0)))}:e[t]}}):t},createWidget:function(){var e=a.createEmbeddable();return a.scriptLoader.load("groove-script","https://567e2a45-a653-4dcf-ab94-0cedc7c19c35.widget.cluster.groovehq.com/api/loader"),a.scriptLoader.addListener("groove-iframe-shim-loader",e.onShimScriptLoad),e}};e.groove=a}}(window,document);\n window.groove.widget = window.groove.createWidget();\n window.groove.widget.init(\'567e2a45-a653-4dcf-ab94-0cedc7c19c35\', {});\n \x3c!-- END GROOVE WIDGET CODE --\x3e\n '})]})}},37674:function(e,t,i){"use strict";var n=i(41664),o=i.n(n),r=i(85893);t.Z=function(e){var t=e.items;return(0,r.jsx)("div",{className:"flex",children:t.map((function(e,t,i){return(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(o(),{href:(null===e||void 0===e?void 0:e.link)||"/",children:(0,r.jsx)("a",{className:"font-fira text-dark-green uppercase text-sm font-semibold hover:underline",children:null===e||void 0===e?void 0:e.name})}),t!==i.length-1&&(0,r.jsx)("p",{className:"mx-1 text-dark-green font-medium font-fira",style:{marginTop:"-2px"},children:"/"})]},t)}))})}},22432:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return P},default:function(){return D}});var n,o=i(11163),r=i(67642),a=i(16835),s=i(59499),c=i(67294),d=i(93967),l=i.n(d),u=i(70131),m=i(86437),h=i(74129),p=i(68678),v=i(27862),f=i(56929),x=i(37674),g=i(90438),y=i(31044),b=i(44660),j=i(43607),w=i(68168),_=i(85301),N=i(66441),k=i.n(N),E=i(43062),S=i(85893),V={Overtime:"overtime",Battles:"battles","Quest!":"quest","Squad Games":"squad_games","DP Gaming":"dp_gaming","Dude Perfect Outdoors":"dp_outdoors","Almost Athletes":"almost_athletes",Stereotypes:"stereotypes","Bucket List":"bucket_list","Trick Shots":"trick_shots","DP+":"dp_plus",Documentary:"documentary"},T={renderNode:(n={},(0,s.Z)(n,m.BLOCKS.PARAGRAPH,(function(e,t){return(0,S.jsx)("p",{className:k().videoText,children:t})})),(0,s.Z)(n,m.INLINES.HYPERLINK,(function(e){return(0,S.jsx)("a",{href:e.data.uri,target:"_blank",rel:"noreferrer",children:e.content[0].value})})),n)},L=function(e){var t,i,n,r=e.video,d=e.relatedVideo,m=e.categoryVideos,N=e.categories,L=(0,c.useState)(!1),P=L[0],D=(L[1],(0,c.useState)(!1)),O=D[0],R=D[1],C=(0,o.useRouter)(),Z=(0,f.l8)().setPreviousBreadcrumb,B=(0,u.YD)({threshold:0}),I=(0,a.Z)(B,2),G=I[0],z=I[1];(0,c.useEffect)((function(){z&&!O&&R(!0)}),[z]),(0,c.useEffect)((function(){Z("back-to-school");var e=document.querySelector("body");e&&(e.style.overflowY="scroll")}),[]);var A=(0,w.i)().width,W=A<=500,q=N.find((function(e){return"Back to School"===e.name})),Y=(0,j.Z)({categoryId:null===q||void 0===q?void 0:q.entityId,first:8}).data,F=(0,c.useState)([]),Q=F[0],K=F[1];(0,c.useEffect)((function(){var e=[{name:"Videos",link:"/videos"},{name:r.videoType,link:"/videos/?q=".concat(V[r.videoType])},{name:r.shortName,link:"/video/".concat(r.slug)}],t=[{name:(0,S.jsxs)("div",{className:"flex items-center",children:[(0,S.jsx)(p.Z,{style:{transform:"rotate(-90deg)",marginRight:"0.5rem"}})," Videos"]}),link:"/videos"}];W?K(t):"Documentary"===r.videoType?K([{name:"Videos",link:"/videos"},{name:r.shortName,link:"/video/".concat(r.slug)}]):K(e)}),[A,r]);var M,H=null===(t=r.url)||void 0===t?void 0:t.split("v="),U=(0,c.useState)(!1),X=U[0],J=U[1];return(0,c.useEffect)((function(){if(!window.YT){var e=document.createElement("script");e.src="https://www.youtube.com/player_api";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}setTimeout((function(){function e(){J(!0)}M=new window.YT.Player("ytplayer",{height:"600",width:"800",videoId:H[1],events:{onReady:e}})}),1e3)}),[r]),null===C||void 0===C||null===(i=C.events)||void 0===i||i.on("routeChangeStart",(function(){M&&M.destroy()})),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(E.h,{title:"".concat(r.name," | ").concat(r.videoType," | Dude Perfect"),description:"Watch ".concat(r.name," at the official Dude Perfect website video library.")}),(0,S.jsxs)("div",{className:k().root,children:[(0,S.jsx)("div",{className:"mb-2 ml-2 mt-6 mobile:-ml-2",children:(0,S.jsx)(x.Z,{items:Q})}),(0,S.jsxs)("div",{className:k().videoContainer,children:[r&&!X&&(0,S.jsx)("span",{className:l()(k().thumbnail,"z-10",(0,s.Z)({},k().hide,P)),style:{backgroundImage:"url('".concat(r.thumbnail.url,"')"),backgroundSize:"cover",backgroundRepeat:"no-repeat"},children:(0,S.jsx)("span",{className:k().playContainer,children:(0,S.jsx)(v.Z,{})})}),(0,S.jsx)("div",{id:"ytplayer"})]}),(0,S.jsxs)("div",{className:"m-auto max-w-6xl",children:[(0,S.jsx)(g.Z,{className:"bg-dark-green font-medium px-1 py-1 mt-6",children:r.videoType}),(0,S.jsx)("h2",{className:"font-fira text-dark-green uppercase italic text-4xl font-bold mb-4",children:r.name}),(null===r||void 0===r?void 0:r.description)&&(0,h.h)(r.description.json,T),Object.entries(d).length>0&&(0,S.jsx)("div",{className:"mt-6 border-b border-grey-2 mb-6",children:(0,S.jsx)(b.Z,{title:"Related Video",videos:[d],cardVariant:"secondary"})}),(0,S.jsx)("div",{className:"mt-8",children:(0,S.jsx)("div",{ref:G,children:O&&(0,S.jsxs)(S.Fragment,{children:[_.JL&&(0,S.jsx)(y.Z,{title:"Related Merch",products:null===Y||void 0===Y?void 0:Y.products}),(null===r||void 0===r?void 0:r.sponsorText)&&(0,S.jsxs)("div",{className:"flex items-center mt-6 border-b border-t border-grey-2 py-6 mb-6",children:[(0,S.jsx)("img",{src:null===(n=r.sponsorImage)||void 0===n?void 0:n.url,width:"60",height:"60",className:"mr-4",alt:"sponsor"}),(0,h.h)(r.sponsorText.json,T)]}),"Documentary"!==r.videoType&&(0,S.jsx)("div",{className:"mt-6 mb-6",children:(0,S.jsx)(b.Z,{title:"Related Videos",videos:m})})]})})})]})]})]})},P=!0;
1function D(e){var t=e.video,i=e.categoryVideos,n=e.categories,r=e.relatedVideo;return(0,o.useRouter)().isFallback?(0,S.jsx)("h1",{children:"Loading..."}):(0,S.jsx)(L,{video:t.items[0],categoryVideos:i,categories:n,relatedVideo:r})}D.Layout=r.Z},5825:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/video/[slug]",function(){return i(22432)}])},66441:function(e){e.exports={root:"VideoView_root__44YWK",thumbnail:"VideoView_thumbnail___gfss",playContainer:"VideoView_playContainer__Ox__T",hide:"VideoView_hide__0uSFi",videoContainer:"VideoView_videoContainer__QT11M",image:"VideoView_image__1DhSf",videoText:"VideoView_videoText___niMO"}}},function(e){e.O(0,[7156,5680,7642,9774,2888,179],(function(){return t=5825,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.