1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[508],{53192:(n,t,e)=>{e.d(t,{i:()=>c});var i=e(76367),o=e(30694),a=e(45159),l=e(61172),r=e(62715),s=e(99262),d=e(35937),u=e(54504);function c(){var n=(0,r.GV)(function(n){return n.features.adServing}),t=(0,r.GV)(function(n){return n.page.doubleClickCat}),e=(0,r.GV)(function(n){return n.conf.googleAdManagerNetworkIdentifier}),c=(0,r.GV)(function(n){return n.page.name}),f=(0,r.GV)(function(n){return n.story.id}),m=(0,r.GV)(function(n){return n.settings.viewType}),p=(0,u.AJ)().parent,y=(0,u.mO)(),v=y.hasPremiumExtended,h=y.supportPremiumExtended,w=(0,l.T)(),g=n.enabled&&n.data.doubleClickSite,C=n.enabled?n.data.doubleClickCat:"";return(0,a.useMemo)(function(){if(e&&g){var n=d.ah[m]||m||"index",a=[e,g],l=["ctype=".concat(n),"pageid=".concat(f)],r=(null==p?void 0:p.name)?(0,s.Vs)(p.doubleClickCat,p.name):(0,s.Vs)(t||C,c),u=(null==p?void 0:p.name)?(0,s.Vs)(t,c):"";r&&(a.push(r),l.push("cat=".concat(r))),u&&(a.push(u),l.push("cat1=".concat(u)));var y=l.join("&"),V="/".concat(a.join("/")),b=h&&v?"adfree":V,E=w?{ppid:w}:{};return(0,o._)((0,i._)({},E),{dynamiciu:b,keyvalues:y})}},[t,e,c,null==p?void 0:p.doubleClickCat,null==p?void 0:p.name,f,h,C,g,v,m,w])}},73035:(n,t,e)=>{e.d(t,{A:()=>r});var i=e(60143),o=e(92584),a=e(29722),l=e(54166);let r=function(n){var t=n.isCaption,e=n.text;return e?(0,i.jsxs)("div",{className:(0,a.A)("max-w-sm basis-full px-4 pt-3 md:px-0",{"font-inter text-sm font-normal leading-5 text-gray-500":t}),children:[t&&(0,i.jsx)(l.y,{className:"mr-2 max-h-4",icon:o.Kyl}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})]}):null}},90508:(n,t,e)=>{e.d(t,{A:()=>b});var i,o=e(86110),a=e(76367),l=e(30694),r=e(91167),s=e(60143),d=e(65596),u=e(45159),c=e(32446),f=e(62715),m=e(9175),p=((i=p||{})[i.IN_STREAM=1]="IN_STREAM",i[i.ACCOMPANYING_CONTENT=2]="ACCOMPANYING_CONTENT",i),y=e(37942),v=e(62129),h=e(54504),w=e(73035),g=e(53192),C=function(){function n(t){if((0,o._)(this,n),this.player=t,this.addEvents(),this.buildCloseBtn(),this.closeButton){var e;null==(e=this.player.getRootNode().querySelector(".dailymotion-player-wrapper"))||e.appendChild(this.closeButton)}}var t=n.prototype;return t.addEvents=function(){var n=this;this.player.on(window.dailymotion.events.AD_START,function(){var t;null==(t=n.closeButton)||t.classList.add("dm-player-close-show")}),this.player.on(window.dailymotion.events.AD_END,function(){var t;null==(t=n.closeButton)||t.classList.remove("dm-player-close-show")})},t.buildCloseBtn=function(){var n=this;this.closeButton=document.createElement("div"),this.closeButton.className="dm__pip-close-button",this.closeButton.innerHTML='<svg viewBox="0 0 24 24"><path fill="#fff" transform="rotate(-45 12 12)" d="M12 2.586a1 1 0 011 1V11h7.414a1 1 0 010 2H13v7.414a1 1 0 01-2 0V13H3.586a1 1 0 010-2H11V3.586a1 1 0 011-1z"></path></svg>',this.closeButton.addEventListener("click",function(){window.dailymotion.pipClose(),n.player.pause()})},n}();function V(n,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;window.dailymotion.createPlayer(n,t).then(function(d){var u,f;if(a&&d.getRootNode().classList.add(a),null==(u=(f=window).DM_GTM_INIT)||u.call(f,d),i&&document.dispatchEvent(new CustomEvent("dm-render-collection",{detail:{numOfVideos:10,owners:"australiancommunitymedia",player:d,position:"right",videoId:t.video}})),new C(d),window.IntersectionObserver){var p=new IntersectionObserver(function(n){(0,r._)(n,1)[0].isIntersecting?o&&!e&&d.play():!e&&o&&d.pause()},{root:null,threshold:1}),y=document.getElementById(n);y&&(p.observe(y),null==l||l.current.push(p))}if(o&&!e){var v=!1;d.on(window.dailymotion.events.PLAYER_VIEWABILITYCHANGE,function(n){var t=n.playerIsPlaying,e=n.playerIsViewable;!e&&t?(d.pause(),v=!0):e&&v&&(v=!1,d.play())})}if(window.MutationObserver){var h,w,g,V=new MutationObserver(function(n){n.forEac
1h(function(n){if(n.addedNodes.length>0){var t,e;null==(e=window.dailymotion)||null==(t=e.pipClose)||t.call(e),V.disconnect()}})}),b=document.getElementById(m.MV);b&&(null==(h=b.parentElement)?void 0:h.id)===m.c4&&(b.firstChild?null==(g=window.dailymotion)||null==(w=g.pipClose)||w.call(g):(V.observe(b,{childList:!0}),null==s||s.current.push(V)))}(0,c.NK)(d)}).catch(function(){})}let b=function(n){var t,e=n.customPlayerId,i=n.element,o=i.description,m=i.embed,C=i.serviceId,b=i.serviceType,E=n.ignorePaywall,_=void 0!==E&&E,N=n.onVideoStory,A=void 0!==N&&N,I=n.useCollectionPlayer,G=void 0!==I&&I,x=n.widthClassName,M=(0,v.Ay)(),P=(0,f.GV)(function(n){return n.conf.dailymotionPlayerIdWithAutoplayDisabled}),T=(0,f.GV)(function(n){return n.story.dailymotionVideoCount}),j=(0,f.GV)(function(n){return n.story.dailymotionVideoIds}),S=(0,f.GV)(function(n){return n.features.piano.enabled&&(n.piano.hasPaywall||n.piano.loadingPaywall)}),k=(0,f.GV)(function(n){return n.conf.googleAdManagerNetworkIdentifier}),O=(0,f.GV)(function(n){return n.features.adServing}),B=(0,f.GV)(function(n){return n.conf.dailymotionSyndicationKey}),L=(0,f.GV)(function(n){return n.settings.staticUrl}),D=(0,f.GV)(function(n){return n.page.isGalleryOpen}),R=(0,f.GV)(function(n){return n.features.dailymotionAutoPause.enabled}),H=(0,h.mO)(),Y=H.hasValidatedPremium,z=H.supportPremiumExtended,K="",Z=T>=1&&0===j.indexOf(C),W=(0,u.useId)().slice(1,-1),q=M.isMobile(),J=(0,f.GV)(function(n){return n.conf.dailymotionPipEnabledDesktop}),U=(0,f.GV)(function(n){return n.conf.dailymotionPipEnabledMobile}),F=(0,f.GV)(function(n){return n.conf.dailymotionPlayerId}),Q=(0,r._)((0,u.useState)(e||F),2),X=Q[0],$=Q[1],nn=(0,r._)((0,u.useState)(!1),2),nt=nn[0],ne=nn[1],ni=q&&U||!q&&J,no=(0,g.i)(),na=(0,u.useRef)([]),nl=(0,u.useRef)([]);if((0,h.H5)(function(){return ni&&$(e||"x9tpr"),ne(!0),!0},[ni,e]),(0,u.useEffect)(function(){window.dailymotion&&_&&K&&t&&(!z||Y)&&nt&&V(K,(0,l._)((0,a._)({},t),{player:X}),ni,G,R,x,na,nl)},[R,K,_,t,z,Y,G,q,J,U,nt,X,ni,x]),(0,u.useEffect)(function(){var n,t;D?null==(n=window.dailymotion)||n.pipClose():null==(t=window.dailymotion)||t.pipResume()},[D]),(0,u.useEffect)(function(){return function(){na.current.forEach(function(n){n.disconnect()}),na.current=[],nl.current.forEach(function(n){n.disconnect()}),nl.current=[]}},[]),z&&!Y||b!==y.C0.Video||!nt||!C.trim()||S&&!_)return null;var nr=m.match(/https:\/\/(?:www\.)?dailymotion\.com\/embed\/(video|playlist)\/([a-zA-Z0-9]+)|https:\/\/geo\.dailymotion\.com\/player(?:\/[a-zA-Z0-9]+)?\.html\?(video|playlist)=([a-zA-Z0-9]+)/i);if(!nr)return null;var ns=nr[1]||nr[3],nd=nr[2]||nr[4];return K="dailymotion-video-".concat(W),t={params:{mute:Z&&!A,syndicationKey:B},player:Z?X:P,[ns]:nd},k&&O.enabled&&O.data.doubleClickSite&&no&&(t.params=(0,l._)((0,a._)({},t.params),{customConfig:(0,l._)((0,a._)({},no),{plcmt:A?p.IN_STREAM:p.ACCOMPANYING_CONTENT})})),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{id:K}),(0,s.jsx)(d.default,{async:!0,id:"dailymotion-chartbeat-dmstrategy",onLoad:function(){(0,c.fD)(DMStrategy)},src:"".concat(L,"javascripts/DMStrategy_v1.min.js")}),(0,s.jsx)(d.default,{id:"dailymotion-js-".concat(W),onLoad:function(){window.dailymotion&&t&&V(K,t,ni,G,R,x)},src:"https://geo.dailymotion.com/libs/player/".concat(Z?X:P,".js")}),G&&(0,s.jsx)(d.default,{id:"dailymotion-collection-player",src:"https://staging.dmvs-apac.com/DM-Video-collection/dm-video-collection.js"}),(0,s.jsx)(w.A,{isCaption:!A,text:o})]})}}}]);
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.