1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5587],{65587:(e,n,t)=>{t.r(n),t.d(n,{default:()=>E});var a=t(37876),l=t(74703),o=t(62079),r=t(71189),c=t(15113),u=t(80485),i=t(45105),s=t.n(i),T=t(14232);function E(e){var n,t;let i=(0,T.useRef)(null),[E,d]=(0,T.useState)(!1),{isMobileNoReactive:I}=(0,o.l)(),L=()=>{var n,t,a,l,o,s;if(null==(n=c.sw.value.selfData)?void 0:n.legacyContractId){let n=(0,u.gf)("OAuth");null==i||null==(l=i.current)||null==(a=l.contentWindow)||a.postMessage({action:r.wT.SEND_CREDENTIAL,data:{token:n,accountId:null==(t=c.sw.value.selfData)?void 0:t.legacyContractId},channelMessage:e.urlTransaction?r.Jq.LDT_RECEIPT:r.Jq.THIS},"*")}else null==i||null==(s=i.current)||null==(o=s.contentWindow)||o.postMessage({action:r.wT.SEND_CREDENTIAL,data:{token:"",accountId:""},channelMessage:e.urlTransaction?r.Jq.LDT_RECEIPT:r.Jq.THIS},"*")},A=e=>{let n=e.data;n.action===r.wT.ASK_CREDENTIAL&&(n.channelMessage===r.Jq.LDT_SHOWCASE||n.channelMessage===r.Jq.LDT_RECEIPT)&&l.xT.configuration.coreProperties.ldtShadowToken&&L()};return(0,T.useEffect)(()=>{if(c.j.value&&E){var e;(null==(e=l.xT.configuration.coreProperties)?void 0:e.litShadowToken)&&L()}},[c.j.value,E]),(0,T.useEffect)(()=>(window.addEventListener("message",A),()=>{window.removeEventListener("message",A)}),[]),(0,T.useEffect)(()=>{var e,n,t;if((null==(e=c.sw.value.selfData)?void 0:e.legacyContractId)&&!(null==(n=l.xT.configuration.coreProperties)?void 0:n.ldtShadowToken)&&i.current){let e=(0,u.gf)("OAuth");i.current.src+="&idConto=".concat(null==(t=c.sw.value.selfData)?void 0:t.legacyContractId,"&token=").concat(e)}},[null==(n=c.sw.value.selfData)?void 0:n.legacyContractId,i.current]),(0,a.jsxs)(a.Fragment,{children:[e.url&&E?(0,a.jsx)(s(),{src:e.urlLib,onLoad:()=>c.Vc.value=!0}):"",(e.url||e.urlTransaction)&&(0,a.jsx)("iframe",{ref:i,id:e.id,title:e.id,src:e.urlTransaction?e.urlTransaction:"".concat(e.url,"?idRivenditore=").concat(null==(t=l.xT.configuration.coreProperties)?void 0:t.resellerId,"&kind=").concat(I?"mobile":"web","&_=").concat(new Date().getTime()),style:{width:e.urlTransaction?"":"100%",height:"".concat(e.height,"px")||0},onLoad:()=>d(!0)})]})}},71189:(e,n,t)=>{t.d(n,{Jq:()=>a,wT:()=>l}),t(10241),t(38293);var a=function(e){return e.THIS="EMBEDLIT",e.LIT_SHOWCASE="LIT-SHOWCASE",e.LIT_RECEIPT="VETRINAGEV-DETAIL",e.LDT_SHOWCASE="VETRINALOTITA",e.LDT_RECEIPT="VETRINALOTITA-DETAIL",e.ISIBET="ISIBET",e.PMJS="PMJS",e}({}),l=function(e){return e.LOGIN="login",e.ASK_CREDENTIAL="ASK-CREDENTIAL",e.SEND_CREDENTIAL="SEND-CREDENTIAL",e.LIT_NAV_ALLGAMES="LIT-NAV-ALLGAMES",e.ACK_LOGIN="ACK_LOGIN",e}({})}}]);
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.