text: pbjsChunk([227],{231:function(e,n,r){e.exports=r(232)},232:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),r.d(n,"spec",function(){return a});var t=r(1),s=r(0),i=r(2),a={code:"bidphysics",aliases:["yieldlift"],supportedMediaTypes:[i.b],isBidRequestValid:function(e){return!!e.params.unitId&&"string"==typeof e.params.unitId||!!e.params.networkId&&"string"==typeof e.params.networkId||!!e.params.publisherId&&"string"==typeof e.params.publisherId},buildRequests:function(e,n){if(e&&n){var r=e[0].params.publisherId,t=e[0].params.networkId,i=e.map(function(e){return{id:e.bidId,banner:{format:e.sizes.map(function(e){return{w:e[0],h:e[1]}})},ext:{bidphysics:{unitId:e.params.unitId}}}}),s={id:n.auctionId,imp:i,site:{domain:window.location.hostname,page:window.location.href,ref:n.refererInfo&&n.refererInfo.referer||null},ext:{bidphysics:{publisherId:r,networkId:t}}};return n.gdprConsent&&(s.regs={ext:{gdpr:n.gdprConsent.gdprApplies?1:0}},s.user={ext:{consent:n.gdprConsent.consentString}}),{method:"POST",url:"https://exchange.bidphysics.com/auction",data:JSON.stringify(s)}}},interpretResponse:function(e){var n=[],r=(e||{}).body;return r&&r.seatbid&&1===r.seatbid.length&&r.seatbid[0].bid&&r.seatbid[0].bid.length?r.seatbid[0].bid.forEach(function(e){n.push({requestId:e.impid,cpm:e.price,width:e.w,height:e.h,ad:e.adm,ttl:30,creativeId:e.crid,netRevenue:!0,currency:"USD"})}):s.logInfo("bidphysics.interpretResponse :: no valid responses to interpret"),n},getUserSyncs:function(n,e){s.logInfo("bidphysics.getUserSyncs","syncOptions",n,"serverResponses",e);var i=[];return(n.iframeEnabled||n.pixelEnabled)&&(e.forEach(function(e){var r=s.deepAccess(e,"body.ext.usersync");if(r){var t=[];Object.keys(r).forEach(function(e){var n=r[e];n.syncs&&n.syncs.length&&(t=t.concat(n.syncs))}),t.forEach(function(e){i.push({type:"iframe"===e.type?"iframe":"image",url:e.url})}),n.iframeEnabled||(i=i.filter(function(e){return"iframe"!==e.type})),n.pixelEnabled||(i=i.filter(function(e){return"image"!==e.type}))}}),s.logInfo("bidphysics.getUserSyncs result=%o",i)),i}};Object(t.registerBidder)(a)}},[231]);