PageSourceSearch

https://www.cined.com/content/themes/cinemad/assets/js/dist/smartbanner.min.js?v=7.1.2

js cined.com collected 2026-10-02 05:18:46 UTC 11,850 bytes, 1 lines download raw bytes

1!function o(r,i,a){function u(e,t){if(!i[e]){if(!r[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(l)return l(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}n=i[e]={exports:{}},r[e][0].call(n.exports,function(t){return u(r[e][1][t]||t)},n,n.exports,o,r,i,a)}return i[e].exports}for(var l="function"==typeof require&&require,t=0;t<a.length;t++)u(a[t]);return u}({1:[function(t,e,n){function r(t){return(r="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 i(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,(t=>(t=((t,e)=>{if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=r(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==r(t)?t:t+""))(o.key),o)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=(()=>{function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}return t=n,o=[{key:"getCookieExpiresString",value:function(t){var e=new Date,e=new Date(e.getTime()+t);return"expires=".concat(e.toGMTString(),";")}},{key:"bake",value:function(t,e){document.cookie="smartbanner_exited=1; ".concat(t?n.getCookieExpiresString(t):""," path=").concat(e)}},{key:"unbake",value:function(){document.cookie="smartbanner_exited=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"}},{key:"baked",get:function(){return"1"===document.cookie.replace(/(?:(?:^|.*;\s*)smartbanner_exited\s*=\s*([^;]*).*$)|^.*$/,"$1")}}],(e=null)&&i(t.prototype,e),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,o})()},{}],2:[function(t,e,n){!function(a){!function(){function r(t){return(r="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 i(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,(t=>(t=((t,e)=>{if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=r(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==r(t)?t:t+""))(o.key),o)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=(()=>{function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function")}return t=e,o=[{key:"platform",value:function(){var t=window.navigator.maxTouchPoints,e=window.navigator.userAgent;return/Android/i.test(e)?"android":!window.MSStream&&!/X11|Linux|Windows/i.test(e)&&t&&0<t||/iPhone|iPad|iPod/i.test(e)?"ios":void 0}},{key:"userAgentMatchesRegex",value:function(t){return new RegExp(t).test(window.navigator.userAgent)}},{key:"jQueryMobilePage",value:function(){return void 0!==a.$&&"undefined"!==a.$.mobile&&null!==document.querySelector(".ui-page")}},{key:"wrapperElement",value:function(){var t=e.jQueryMobilePage()?".ui-page":"html";return document.querySelectorAll(t)}}],(n=null)&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o})()}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(t,e,n){var o,r=(t=t("./smartbanner.js"))&&t.__esModule?t:{default:t};window.addEventListener("load",function(){(o=new r.default).apiEnabled?window.smartbanner=o:o.publish()})},{"./smartbanner.js":5}],4:[function(t,e,n){function r(t){return(r="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 i(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,(t=>(t=((t,e)=>{if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=r(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==r(t)?t:t+""))(o.key),o)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=(()=>{function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function")}return e=t,(n=[{key:"parse",value:function(){var t=document.getElementsByTagName("meta"),i={};return Array.apply(null,t).forEach(function(t){var n,e,o=null,r=t.getAttribute("name"),t=t.getAttribute("content");r&&t&&-1!==(e=r).indexOf("smartbanner:")&&0<e.split(":")[1].length&&0<t.length&&(-1!==(o=r.split(":")[1]).indexOf("-")&&((n=o.split("-")).map(function(t,e){0<e&&(n[e]=t.charAt(0).toUpperCase()+t.substring(1))}),o=n.join("")),i[o]=t)}),i}}])&&i(e.prototype,n),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o})()},{}],5:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t("./optionparser.js")),a=o(t("./detector.js")),i=o(t("./bakery.js"));function o(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="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 l(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,(t=>(t=((t,e)=>{if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=u(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==u(t)?t:t+""))(o.key),o)}}var s={originalTop:"data-smartbanner-original-top",originalMarginTop:"data-smartbanner-original-margin-top"};function c(t){this.positioningDisabled||p(t.data.height)}function p(t){for(var e=a.default.wrapperElement(),n=0,o=e.length;n<o;n++){var r,i=e[n];a.default.jQueryMobilePage()?i.getAttribute(s.originalTop)||(r=parseFloat(getComputedStyle(i).top),i.setAttribute(s.originalTop,isNaN(r)?0:r),i.style.top=t+"px"):i.getAttribute(s.originalMarginTop)||(r=parseFloat(getComputedStyle(i).marginTop),i.setAttribute(s.originalMarginTop,isNaN(r)?0:r),i.style.marginTop=t+"px")}}n.default=(()=>{function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var t=new r.default,t=(this.options=t.parse(),this.platform=a.default.platform(),new Event("smartbanner.init"));document.dispatchEvent(t)}return t=e,(n=[{key:"originalTop",get:function(){var t=a.default.wrapperElement()[0];return parseFloat(t.getAttribute(s.originalTop))}},{key:"originalTopMargin",get:function(){var t=a.default.wrapperElement()[0];return parseFloat(t.getAttribute(s.originalMarginTop))}},{key:"priceSuffix",get:function(){return"ios"===this.platform&&this.options.priceSuffixApple?this.options.priceSuffixApple:"android"===this.platform&&this.options.priceSuffixGoogle?this.options.priceSuffixGoogle:""}},{key:"price",get:function(){return this.options.price&&""!==this.options.price?this.options.price:""}},{key:"icon",get:function(){return"android"===this.platform?this.options.iconGoogle:this.options.iconApple}},{key:"buttonUrl",get:function(){return"android"===this.platform?this.options.buttonUrlGoogle:"ios"===this.platform?this.options.buttonUrlApple:"#"}},{key:"closeLabel",get:function(){return void 0!==this.options.closeLabel?this.options.closeLabel:"Close"}},{key:"buttonLabel",get:function(){var t=this.options.button;return"android"===this.platform&&this.options.buttonGoogle?t=this.options.buttonGoogle:"ios"===this.platform&&this.options.buttonApple&&(t=this.options.buttonApple),t||"View"}},{key:"html",get:function(){var t=this.options.customDesignModifier||this.platform;return'<div class="smartbanner smartbanner--'.concat(t,' js_smartbanner">\n      <a href="#" class="smartbanner__exit js_smartbanner__exit" title="').concat(this.closeLabel,'" rel="nofollow"></a>\n      <div class="smartbanner__icon" style="background-image: url(').concat(this.icon,');"></div>\n      <div class="smartbanner__info">\n        <div class="smartbanner__info_inner">\n          <div class="smartbanner__info__title">').concat(this.options.title,'</div>\n          <div class="smartbanner__info__description">').concat(this.options.description,'</div>\n          <div class="smartbanner__info__price">').concat(this.price).concat(this.priceSuffix,'</div>\n        </div>\n      </div>\n      <a href="').concat(this.buttonUrl,'" target="_blank" class="smartbanner__button app_link_button js_smartbanner__button" rel="noopener" aria-label="').concat(this.buttonLabel,'"><span class="smartbanner__button__label app_link_button_label">').concat(this.buttonLabel,"</span></a>\n    </div>")}},{key:"height",get:function(){try{return document.querySelector(".js_smartbanner").offsetHeight}catch(t){return 0}}},{key:"platformEnabled",get:function(){var t=this.options.enabledPlatforms||"android,ios";return t&&-1!==t.replace(/\s+/g,"").split(",").indexOf(this.platform)}},{key:"positioningDisabled",get:function(){return"true"===this.options.disablePositioning}},{key:"apiEnabled",get:function(){return"true"===this.options.api||"yes"===this.options.api}},{key:"userAgentExcluded",get:function(){return!!this.options.excludeUserAgentRegex&&a.default.userAgentMatchesRegex(this.options.excludeUserAgentRegex)}},{key:"userAgentIncluded",get:function(){return!!this.options.includeUserAgentRegex&&a.default.userAgentMatchesRegex(this.options.includeUserAgentRegex)}},{key:"hideTtl",get:function(){return!!this.options.hideTtl&&parseInt(this.options.hideTtl)}},{key:"hidePath",get:function(){return this.options.hidePath||"/"}},{key:"publish",value:function(){if(0===Object.keys(this.options).length)throw new Error("No options detected. Please consult documentation.");var t,e;return!i.default.baked&&!(this.userAgentExcluded||!this.platformEnabled&&!this.userAgentIncluded)&&(t=document.createElement("div"),document.querySelector("body").prepend(t),t.outerHTML=this.html,t=new Event("smartbanner.view"),document.dispatchEvent(t),this.positioningDisabled||p(this.height),e=this,document.querySelector(".js_smartbanner__exit").addEventListener("click",function(t){return t=t,e.exit(),void t.preventDefault()}),document.querySelector(".js_smartbanner__button").addEventListener("click",function(t){e.clickout()}),void(a.default.jQueryMobilePage()&&$(document).on("pagebeforeshow",e,c)))}},{key:"exit",value:function(){if(a.default.jQueryMobilePage()&&$(document).off("pagebeforeshow",c),!this.positioningDisabled)for(var t,e=a.default.wrapperElement(),n=0,o=e.length;n<o;n++)t=e[n],a.default.jQueryMobilePage()&&t.getAttribute(s.originalTop)?t.style.top=t.getAttribute(s.originalTop)+"px":t.getAttribute(s.originalMarginTop)&&(t.style.marginTop=t.getAttribute(s.originalMarginTop)+"px");var r=document.querySelector(".js_smartbanner"),r=(document.querySelector("body").removeChild(r),new Event("smartbanner.exit"));document.dispatchEvent(r),i.default.bake(this.hideTtl,this.hidePath)}},{key:"clickout",value:function(){var t=new Event("smartbanner.clickout");document.dispatchEvent(t)}}
1])&&l(t.prototype,n),o&&l(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o})()},{"./bakery.js":1,"./detector.js":2,"./optionparser.js":4}]},{},[3]);

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.