Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.64 KB | None | 0 0
  1. try
  2. {
  3. (function (w, d)
  4. {
  5.  
  6. //{{REPLACE_JS_BLOCK_START}}
  7. !function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=8)}([function(t,e,n){"use strict";(function(t){var o=n(4),i=n.n(o),r=n(5),u=n.n(r),c=n(6),s=n.n(c),a=n(1),f=n.n(a),l=n(2),d=n.n(l),p=n(7),h=void 0!==document.documentMode||/Edge/.test(navigator.userAgent),y=function(){function t(){f()(this,t),this.windowHasFocus=!1,this.prevFocusValue=null,this.emitter=Object(p.a)()}return d()(t,[{key:"_createListeners",value:function(){h||window.addEventListener("focus",this.onFocus.bind(this)),window.addEventListener("blur",this.onBlur.bind(this)),window.addEventListener("mousemove",this.onFocus.bind(this))}},{key:"onFocus",value:function(t){this.windowHasFocus=!0,this.dispatchChange(t)}},{key:"onBlur",value:function(t){this.windowHasFocus=!1,this.dispatchChange(t)}},{key:"dispatchChange",value:function(t){var e=this.hasFocus();this.prevFocusValue!==e&&(this.prevFocusValue=e,this.emitter.emit("window_focus_change",{detail:t?t.type:"auto",focusValue:e})),e&&(this.hadFocusBefore=!0)}},{key:"documentVisible",value:function(){var t;return void 0!==document.hidden?t="hidden":void 0!==document.msHidden?t="msHidden":void 0!==document.webkitHidden&&(t="webkitHidden"),this.documentVisible=function(){return!document[t]},this.documentVisible()}},{key:"hasFocus",value:function(){return(document.hasFocus()||this.windowHasFocus)&&this.documentVisible()}},{key:"hadFocus",value:function(){return!!this.hadFocusBefore}},{key:"init",value:function(){this.init=function(){},setInterval(this.dispatchChange.bind(this),500),this._createListeners()}}]),t}(),m=function(t){function e(){return f()(this,e),i()(this,u()(e).apply(this,arguments))}return s()(e,t),d()(e,[{key:"hasFocus",value:function(){return!0}},{key:"init",value:function(){this.init=function(){},setTimeout(this.dispatchChange.bind(this),500)}}]),e}(y),b=t.parent!==t;e.a=t.ptFocusTool=t.ptFocusTool||(b?new m:new y)}).call(this,n(3))},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var o=n(10),i=n(11);t.exports=function(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?i(t):e}},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){var o=n(12);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}},function(t,e,n){"use strict";e.a=function(t){return t=t||Object.create(null),{on:function(e,n){(t[e]||(t[e]=[])).push(n)},off:function(e,n){t[e]&&t[e].splice(t[e].indexOf(n)>>>0,1)},emit:function(e,n){(t[e]||[]).slice().map(function(t){t(n)}),(t["*"]||[]).slice().map(function(t){t(e,n)})}}}},function(t,e,n){t.exports=n(9)},function(t,e,n){"use strict";n.r(e),function(t){var e=n(0);t.ptInitFakePromoPlayer=t.ptInitFakePromoPlayer||function(n,o,i){function r(){function r(){var n;n="inFocus",l&&l.contentWindow&&"function"==typeof l.contentWindow.postMessage?l.contentWindow.postMessage({id:l.name,type:n},"*"):(e.a.emitter.off("window_focus_change",u),t.removeEventListener("message",c),l=null)}function u(){e.a.hasFocus()&&a&&(a=!1,r())}function c(t){var e=t.data,n=e.id,o=e.type;e.value;n===l.name&&"performerLoaded"===o&&!a&&r()}var c=c.bind(this),u=u.bind(this),s=document.getElementById("object_container");if(s){for(var a=!0,f=0;document.getElementById("object_container_"+f);)f++;s.id="object_container_"+f,s.style.display=s.style.display||"inline-block";var l=d.createElement("iframe");l.src=n,l.name="promo_player_"+f,l.style.width="100%",l.style.height="100%",l.frameBorder=0,l.addEventListener("load",u),null!==o&&null!==i&&(s.style.width=o+"px",s.style.height=i+"px"),e.a.init(),e.a.emitter.on("window_focus_change",u),t.addEventListener("message",c),s.appendChild(l)}}"complete"!==document.readyState?document.addEventListener("readystatechange",function t(){"complete"===document.readyState&&(document.removeEventListener("readystatechange",t),r())}):r()}}.call(this,n(3))},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(e){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?t.exports=o=function(t){return n(t)}:t.exports=o=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},o(e)}t.exports=o},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e){function n(e,o){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,o)}t.exports=n}]);
  8. //{{REPLACE_JS_BLOCK_END}}
  9.  
  10. window.ptInitFakePromoPlayer(
  11. '//pt.prtawe.com/live-feed/fk/?c=object_container&site=jasmin&cobrandId=&psid=BMWGuy&pstool=319_1&psprogram=revs&campaign_id=&vp%5BshowChat%5D=true&vp%5BchatAutoHide%5D=true&vp%5BshowCallToAction%5D=true&vp%5BshowPerformerName%5D=false&vp%5BshowPerformerStatus%5D=false&subAffId=%7BSUBAFFID%7D&categoryName=girl&origin=&embedTool=1',
  12. null,
  13. null );
  14.  
  15. }(window, document));
  16. }
  17. catch(exception)
  18. {
  19. console.warn('Promotool error: ' + exception.message);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement