text: pbjsChunk([54],{201:function(e,r,a){a(202),e.exports=a(203)},202:function(e,r,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var i=(function(e){{if(e&&e.__esModule)return e;var r={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r.default=e,r}})(a(0)),t=a(1);var n=r.spec={code:"komoona",isBidRequestValid:function(e){return!!(e&&e.params&&e.params.placementId&&e.params.hbid)},buildRequests:function(e){var r,a=e.map((function(e){var r={uuid:e.bidId,sizes:e.sizes,trid:e.transactionId,hbid:e.params.hbid,placementid:e.params.placementId};return e.params.floorPrice&&(r.floorprice=e.params.floorPrice),r})),t=(new Date).getTime(),n={ts_as:t,hb_placements:[],hb_placement_bidids:{},hb_floors:{},cb:(r=t,Math.floor(r%65536+65536*Math.floor(65536*Math.random()))),tz:(new Date).getTimezoneOffset()};e.forEach((function(e){n.hdbdid=n.hdbdid||e.params.hbid,n.encode_bid=n.encode_bid||e.params.encode_bid,n.hb_placement_bidids[e.params.placementId]=e.bidId,e.params.floorPrice&&(n.hb_floors[e.params.placementId]=e.params.floorPrice),n.hb_placements.push(e.params.placementId)}));var o={};return i.isEmpty(a)||(o={bids:[].concat(function(e){if(Array.isArray(e)){for(var r=0,a=Array(e.length);r<e.length;r++)a[r]=e[r];return a}return Array.from(e)}(a)),kbConf:n}),{method:"POST",url:"//bidder.komoona.com/v1/GetSBids",data:JSON.stringify(o)}},interpretResponse:function(e,r){var a=[];try{e.body&&e.body.bids&&e.body.bids.forEach((function(e){e.requestId=e.uuid,e.ad=e.creative,a.push(e)}))}catch(e){i.logError(e)}return a},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:"iframe",url:"//s.komoona.com/sync/usync.html"}]}};(0,t.registerBidder)(n)},203:function(e,r){}},[201]);