1"use strict";(self.webpackChunk_fancode_web_app=self.webpackChunk_fancode_web_app||[]).push([["4473"],{15815:function(e,t,n){let i;n.d(t,{$:()=>b,Z:()=>I});var a=n(6368),r=n(65313),d=n(2784),o=n(50094),l=n(6371),s=n(52916),c=n(6237),u=n(34721),g=n(78943);let p=g.ZP.div.withConfig({displayName:"gam-banner.styled__PlaceHolderView",componentId:"sc-9196923c-0"})(["position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-family:'Noto Sans Display','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:12px;color:",";"],e=>e.theme.palette.fc_colour_text_neutralLight),m=g.ZP.div.withConfig({displayName:"gam-banner.styled__NativeContainer",componentId:"sc-9196923c-1"})(["width:100%;position:absolute;"]),h=g.ZP.div.withConfig({displayName:"gam-banner.styled__BannerContainer",componentId:"sc-9196923c-2"})(["min-width:",";min-height:",";position:absolute;"],e=>e.adWidth+"px",e=>e.adHeight+"px"),v=g.ZP.div.withConfig({displayName:"gam-banner.styled__FixedBox",componentId:"sc-9196923c-3"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;"]),f={},y=(i=0,{getSuffix:()=>++i}),b=e=>{let t=(0,d.useRef)(null),{isNative:n,adunitID:i,adHeight:g,adWidth:b,containerHeight:I,containerWidth:E=o.S_?screen.width:360,showPlaceHolder:W}=e,_=(0,d.useMemo)(()=>y.getSuffix(),[]),w=(0,d.useMemo)(()=>`div-gpt-${i}-${_}`,[i,_]),[k,S]=(0,d.useState)({adHeight:g,adWidth:b}),N=(0,d.useRef)(!1);return(0,d.useEffect)(()=>{var e;(null===o.W8||void 0===o.W8||null==(e=o.W8.googletag)?void 0:e.cmd)||(0,l.Y$)(()=>{(0,s.ve)({async:!0,url:u.v.gptAds})})},[]),(0,d.useEffect)(()=>{var t;!o.W8||(null===o.W8||void 0===o.W8||null==(t=o.W8.googletag)?void 0:t.cmd)||(o.W8.googletag=(0,r._)((0,a._)({},null===o.W8||void 0===o.W8?void 0:o.W8.googletag),{cmd:[]}));let n=null===o.W8||void 0===o.W8?void 0:o.W8.googletag;o.S_&&i&&n&&!f[w]&&(n.cmd.push(function(){var t;null==(t=n.defineSlot(i||"",[b,g],w))||t.addService(n.pubads()),n.pubads().enableSingleRequest(),n.pubads().setForceSafeFrame(!0),n.pubads().addEventListener("slotRequested",function(){setTimeout(()=>{!N.current&&e.setIsGamError&&e.setIsGamError(!0)},1e4)}),n.pubads().addEventListener("slotRenderEnded",function(t){t.slot.getSlotElementId()===w&&(N.current=!0,t.isEmpty&&e.setIsGamError&&e.setIsGamError(!0),t.size&&S({adWidth:t.size[0],adHeight:t.size[1]}),e.setIsGamLoaded&&e.setIsGamLoaded(!0))}),n.enableServices()}),n.cmd.push(function(){n.display(w)}),f[w]=!0)},[i]),(0,d.useEffect)(()=>{t&&t.current&&(t.current.style.transform=`scale(${(0,c.nc)(E,I,k.adWidth,k.adHeight)})`)},[k]),d.createElement(d.Fragment,null,!(e.isGamLoaded||e.isGAMError)&&W?d.createElement(p,null,"Ad is Loading..."):null,n?d.createElement(m,{id:w}):d.createElement(v,{ref:t},d.createElement(h,{id:w,adWidth:k.adWidth,adHeight:k.adHeight})))},I=d.memo(b)},6237:function(e,t,n){function i(e,t,n,i){return e/t<n/i?e/n:t/i}n.d(t,{Cr:()=>a,O5:()=>r,R8:()=>d,ap:()=>o,nc:()=>i});let a=(e,t)=>{let[n,i]=t.split(":").map(e=>parseInt(e,10));return n&&i?i*e/n:e},r=(e,t,n,i)=>{let a=e/t<n/i,r=a?e/n:t/i;return a?[e,i*r]:[n*r,t]};function d(e){if(e){let[t="0",n="0"]=e.split("x");return[parseInt(t,10),parseInt(n,10)]}return[0,0]}let o=(e,t)=>{let n=a(e,t);return`${e}x${n}`}},6450:function(e,t,n){n.r(t),n.d(t,{Dimensions:()=>$,default:()=>G});var i=n(6237),a=n(8837),r=n(1038),d=n(27029),o=n(50094),l=n(22706),s=n(2784),c=n(21852),u=n(40511),g=n(70590),p=n(4830);let m=(0,d.zI)("gamNudge",{response:null,hasError:!1,loaded:!1}),h=(0,d.PU)(m,{mount:e=>(e.loaded=!0,e),response:(e,t)=>{var n,i;return(0,p.cN)(t)&&(null==t||null==(n=t.data)?void 0:n.data)?e.response=null==(i=t.data.data)?void 0:i.nudgeSegmentV2.edges:e.hasError=!0,e}});var v=n(6368),f=n(17579);let y=["nudgeSegmentV2"],b=`query NudgeSegmentV2($input: SegmentFilter!, $source: String!, $isMobile: Boolean) { 2 nudgeSegmentV2(input: $input, source: $source, isMobile: $isMobile) { 3 edges { 4 id 5 title 6 isAd 7 navigationLink 8 artwork { 9 src 10 } 11 isExternal 12 bannerStartDate 13 bannerEndDate 14 impressionLink 15 adunitID 16 adWidth 17 aspectRatio 18 type 19 gamType 20 nativeAdUnitID 21 } 22 } 23} 24 `,I=(e,t)=>(0,f.Uv)(t,(0,v._)({query:b,operationName:"NudgeSegmentV2",operationType:"query",sha256Hash:"de5d46ba810090e3845002922b5a2de237c06601395474c589056b0c51bcb401",queryFieldNames:y},e)),E=(0,d.Rl)(h,{mount:(e,t,n,i,a)=>{let r=(0,c.QG)(a),d={input:{adIdentity:n.adId},source:"fc-web",isMobile:r.isMobile};return[{resultCallback:t.response,ioAction:I({variables:d,enableAPQ:!0},a)}]},trackEvent:(e,t,n,i,a)=>[{ioAction:(0,g.UI)({type:g.n7.TRACK,destinations:[g.D1.DATA_HIGHWAY],name:n.eventName,params:(0,u.P)(n.props,a)})}],navigateWithLink:(e,t,n,i,a)=>[{ioAction:(0,g.KS)({params:{target:g.m$.OPEN,targetType:n.isExternal?g.Mg.BLANK:g.Mg.SELF,path:n.link}})}]});var W=n(78943),_=n(45797);let w=W.ZP.div.withConfig({displayName:"gam-nudge.styled__Container",componentId:"sc-2c8fa03e-0"}
24)(["height:",";width:",";position:relative;overflow:hidden;"],e=>e.cardheight+"px",e=>e.cardwidth+"px"),k=W.ZP.div.withConfig({displayName:"gam-nudge.styled__NudgeContainer",componentId:"sc-2c8fa03e-1"})(["width:auto;position:",";overflow:auto;"],e=>e.position),S=W.ZP.div.withConfig({displayName:"gam-nudge.styled__StickyNudge",componentId:"sc-2c8fa03e-2"})(["position:fixed;bottom:",";z-index:1000;background:",";width:100%;overflow:auto;"],e=>e.bottom+"px",e=>e.background),N=W.ZP.div.withConfig({displayName:"gam-nudge.styled__NudgeWrapper",componentId:"sc-2c8fa03e-3"})(["display:flex;align-items:center;overflow-x:scroll;min-width:fit-content;"]),P=W.ZP.div.withConfig({displayName:"gam-nudge.styled__ImageContainer",componentId:"sc-2c8fa03e-4"})(["display:flex;justify-content:center;align-items:center;width:100%;height:100%;position:relative;z-index:1;"]),x=(0,W.ZP)(_.V).withConfig({displayName:"gam-nudge.styled__BgImagStyled",componentId:"sc-2c8fa03e-5"})(["height:",";width:",";background-size:cover;"],e=>e.height+"px",e=>e.width+"px");var C=n(15815);let A=e=>{var t,n,i;return{bannerSize:e.bannerSize,adUnitId:e.adUnitId,cardType:"Banner",lowPriorityTag:(null==(t=e.bannerProperties)?void 0:t.isAd)?"ad":null,contentName:null==(n=e.bannerProperties)?void 0:n.title,contentId:null==(i=e.bannerProperties)?void 0:i.id,slotPosition:e.nudgeIndex,slot:e.nudgeIndex,adType:e.type}},H=s.lazy(()=>n.e("301").then(n.bind(n,80416))),L=e=>{var t;
24let[n,a]=(0,s.useState)(!1),[r,d]=(0,s.useState)(!1),o=(0,s.useMemo)(()=>{var t;let n={onBannerAttempt:e=>{null==t||t.emit({eventName:"BannerAttempt",props:(0,v._)({vendorName:e.type,type:e.type},A(e))})},onError:e=>{null==t||t.emit({eventName:"BannerImpression",props:(0,v._)({vendorName:e.type,type:"DEFAULT"},A(e),{errormessage:e.errormessage||void 0})})},onClick:e=>{null==t||t.emit({eventName:"BannerClicked",props:(0,v._)({vendorName:"GAM",type:e.type},A(e))})},onDefaultClick:(t={emit:e.trackEvent,navigate:e.navigateWithLink}).navigate?e=>{let n=e.link,i=e.isExternal;(null==t?void 0:t.navigate)&&t.navigate({link:n,isExternal:i})}:()=>void 0};return{navigate:()=>n.onDefaultClick({link:e.bannerProperties.navigationLink,isExternal:e.bannerProperties.isExternal}),error:()=>n.onError({nudgeIndex:0,adUnitId:e.bannerProperties.adunitID||"",bannerSize:`${e.bannerProperties.adWidth}x${(0,i.Cr)(e.bannerProperties.adWidth||0,e.bannerProperties.aspectRatio||"1:1")}`,type:e.bannerProperties.type,adType:"Banner",bannerProperties:e.bannerProperties})}},[e.bannerProperties,e.trackEvent,e.navigateWithLink]);(0,s.useEffect)(()=>{n&&o.error()},[n]);let[l=0,c=0]=(0,i.O5)(e.containerWidth,e.containerHeight,e.adWidth,e.adHeight);return s.createElement(s.Fragment,null,e.useJioAds&&e.adIdentity?s.createElement(s.Suspense,{fallback:s.createElement("div",null,"Loading...")},s.createElement(H,{adSpotId:e.adunitID,adWidth:e.adWidth,adHeight:e.adHeight,containerHeight:e.containerHeight,containerWidth:e.containerWidth,setIsGamError:a,setIsGamLoaded:d,isGamLoaded:r,isGAMError:n})):s.createElement(C.$,{adunitID:e.adunitID,isNative:!1,adWidth:e.adWidth,adHeight:e.adHeight,containerHeight:e.containerHeight,containerWidth:e.containerWidth,setIsGamError:a,setIsGamLoaded:d,isGamLoaded:r,isGAMError:n,showPlaceHolder:!0}),n?s.createElement(P,{onClick:o.navigate,role:"link"},s.createElement(x,{src:null!=(t=e.bannerProperties.artwork.src)?t:"",height:c,width:l,alt:"gam"})):null)},$={width:()=>o.W8?null===o.W8||void 0===o.W8?void 0:o.W8.screen.width:360},G=function(e){var t;let[n,c,u]=(0,d.cE)(`gam-banner-${e.source}`,E,d.zG);(0,a.n)(n,c,()=>{c.loaded||u.mount({adId:e.adIdentity})},o.s$,[c.loaded,e.adIdentity]);let g=(null==(t=c.response)?void 0:t.slice(0,1))||[],p=(0,s.useMemo)(()=>e.isSticky?S:k,[e.isSticky]),m=(0,r.z)();return s.createElement(p,{bottom:e.bottom||0,background:m.palette.fc_colour_surface_neutral_50},s.createElement(N,null,g.length?null==g?void 0:g.map((t,n)=>{let{adWidth:a,aspectRatio:r}=t,d=(0,i.Cr)(a||0,r||"1:1")||250,[o,c]=(0,i.R8)(e.containerSize||(0,i.ap)(a||0,r||"16:5"));return s.createElement(w,{cardheight:c,cardwidth:o,style:e.gamContainerStyle,key:`gam_nudge_${e.adIdentity}_${n}`},s.createElement(L,{bannerProperties:t,adunitID:t.adunitID||"",isNative:!1,adWidth:a||300,adHeight:d,containerWidth:o,containerHeight:c,trackEvent:u.trackEvent,navigateWithLink:u.navigateWithLink,useJioAds:t.gamType===l.DIX.NATIVE,adIdentity:e.adIdentity}))}):null))}}}]);
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.