UNPKG

@tashop/oil.js

Version:

oil.js Opt-In Layer for consent management based on the IAB TCF Standard

16 lines 30.6 kB
/*! 1.3.5-5-RELEASE */!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="https://unpkg.com/@tashop/oil.js@1.3.5-5/release/current/",n(n.s=130)}({111:function(e,t,n){var o=n(131);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(116)(o,i),o.locals&&(e.exports=o.locals)},112:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refreshSlider=void 0,t.initNavbar=function(){$("body").append('\n<div id="as-oil-dev-kit__slider" class="as-oil-dev-kit">\n <div class="as-oil-dev-kit__slider-inner">\n <h2>OIL DEV KIT</h2>\n <div>\n <a href="https://oil.axelspringer.com/docs/" target="_blank">Documentation</a>\n <a href="https://oil.axelspringer.com/release/">Version: <span id="as-oil-dev-kit__oil-version"></span></a>\n </div>\n <hr>\n <div>\n <span id="as-oil-dev-kit__btn-oil" class="btn "><i/>OIL loaded</span>\n <span id="as-oil-dev-kit__btn-verbose" onclick="AS_OIL_DEV_KIT.toogleVerbose()" class="btn "><i/>Verbose Mode</span>\n <span id="as-oil-dev-kit__btn-preview" onclick="AS_OIL_DEV_KIT.tooglePreview()" class="btn "><i/>Preview Mode</span>\n </div>\n <hr>\n <div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.showConfig()">Show Config</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.status()">???y</div>\n </div>\n <div class="as-oil-dev-kit__state">Current State:<pre id="as-oil-dev-kit__state-pre"></pre></div>\n <hr>\n <div class="as-oil-dev-kit__button-wrapper">\n <h6>All JS-API calls are available under AS_OIL (or window.AS_OIL)</h6>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.reload()">reload()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.status()">status()</div>\n </div>\n <div class="as-oil-dev-kit__button-wrapper">\n <h6>API for triggerin functions of OIL:</h6>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.previewModeOn()">previewModeOn()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.previewModeOff()">previewModeOff()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.triggerOptIn()">triggerOptIn()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.triggerOptOut()">triggerOptOut()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.triggerPoiOptIn()">triggerPoiOptIn()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.triggerSoiOptIn()">triggerSoiOptIn()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.verboseModeOff()">verboseModeOff()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.verboseModeOn()">verboseModeOn()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.showPreferenceCenter()">showPreferenceCenter()</div>\n </div>\n\n <div class="as-oil-dev-kit__button-wrapper">\n <h6>CMP-API (aka Transparency & Consent Framework)</h6>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.getConsentData()">getConsentData</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.getVendorConsents()">getVendorConsents</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.ping()">ping</div>\n <h6>Optional calls</h6>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.getVendorList()">getVendorList</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.getPublisherConsents()">getPublisherConsents</div>\n </div>\n\n </div>\n</div>\n'),$("body").append('<div id="as-oil-dev-kit__trigger"></div>'),$("#as-oil-dev-kit__slider").slideReveal({trigger:$("#as-oil-dev-kit__trigger"),position:"left",show:i,width:430}),console.info("OIL-DEV-KIT initialized."),window.AS_OIL_DEV_KIT.toogleVerbose=function(){(0,o.getCurrentState)().oilVerbose?window.AS_OIL.verboseModeOff():window.AS_OIL.verboseModeOn(),i()},window.AS_OIL_DEV_KIT.tooglePreview=function(){(0,o.getCurrentState)().oilPreview?window.AS_OIL.previewModeOff():window.AS_OIL.previewModeOn(),i()}},t.sidebareTemplate=function(){return'\n<div id="as-oil-dev-kit__slider" class="as-oil-dev-kit">\n <div class="as-oil-dev-kit__slider-inner">\n <h2>OIL DEV KIT</h2>\n <div>\n <a href="https://oil.axelspringer.com/docs/" target="_blank">Documentation</a>\n <a href="https://oil.axelspringer.com/release/">Version: <span id="as-oil-dev-kit__oil-version"></span></a>\n </div>\n <hr>\n <div>\n <span id="as-oil-dev-kit__btn-oil" class="btn "><i/>OIL loaded</span>\n <span id="as-oil-dev-kit__btn-verbose" onclick="AS_OIL_DEV_KIT.toogleVerbose()" class="btn "><i/>Verbose Mode</span>\n <span id="as-oil-dev-kit__btn-preview" onclick="AS_OIL_DEV_KIT.tooglePreview()" class="btn "><i/>Preview Mode</span>\n </div>\n <hr>\n <div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.showConfig()">Show Config</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.status()">???y</div>\n </div>\n <div class="as-oil-dev-kit__state">Current State:<pre id="as-oil-dev-kit__state-pre"></pre></div>\n <hr>\n <div class="as-oil-dev-kit__button-wrapper">\n <h6>All JS-API calls are available under AS_OIL (or window.AS_OIL)</h6>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.reload()">reload()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.status()">status()</div>\n </div>\n <div class="as-oil-dev-kit__button-wrapper">\n <h6>API for triggerin functions of OIL:</h6>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.previewModeOn()">previewModeOn()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.previewModeOff()">previewModeOff()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.triggerOptIn()">triggerOptIn()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.triggerOptOut()">triggerOptOut()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.triggerPoiOptIn()">triggerPoiOptIn()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.triggerSoiOptIn()">triggerSoiOptIn()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.verboseModeOff()">verboseModeOff()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.verboseModeOn()">verboseModeOn()</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.showPreferenceCenter()">showPreferenceCenter()</div>\n </div>\n\n <div class="as-oil-dev-kit__button-wrapper">\n <h6>CMP-API (aka Transparency & Consent Framework)</h6>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.getConsentData()">getConsentData</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.getVendorConsents()">getVendorConsents</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.ping()">ping</div>\n <h6>Optional calls</h6>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.getVendorList()">getVendorList</div>\n <div class="as-oil-dev-kit__button" onclick="AS_OIL_DEV_KIT.getPublisherConsents()">getPublisherConsents</div>\n </div>\n\n </div>\n</div>\n'};var o=n(113),i=function(){window.setTimeout(function(){var e=(0,o.getCurrentState)();$("#as-oil-dev-kit__state-pre").text(JSON.stringify(e,null,1));var t=document.getElementById("as-oil-dev-kit__btn-oil"),n=document.getElementById("as-oil-dev-kit__btn-verbose"),i=document.getElementById("as-oil-dev-kit__btn-preview");window.AS_OIL?t.className="btn btn-enabled":(t.className="btn btn-disabled",t.onclick=o.loadOilJs),e.oilVerbose?n.className="btn btn-enabled":n.className="btn btn-disabled",e.oilPreview?i.className="btn btn-enabled":i.className="btn btn-disabled",document.getElementById("as-oil-dev-kit__oil-version").innerText=(0,o.readOilVersion)()},300)};t.refreshSlider=i},113:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cmp=void 0,t.getCurrentState=function(){var e=i.default.get("oil_data"),t=i.default.get("oil_verbose"),n=i.default.get("oil_preview");return{oilData:e?JSON.parse(e):{},oilVerbose:t||!1,oilPreview:n||!1}},t.readOilConfig=function(){var e=document.querySelector('script[type="application/configuration"]#oil-configuration');return e&&e.text?JSON.parse(e.text):{}},t.loadOilJs=function(){if(!document.getElementById("oil-configuration")){var e=document.getElementsByTagName("head")[0],t=document.createElement("script");t.id="oil-configuration",t.type="application/configuration",t.text=JSON.stringify({publicPath:"//unpkg.com/@tashop/oil.js/release/current/"}),e.appendChild(t)}(0,r.loadJS)("oil-stub-js","//unpkg.com/@tashop/oil.js/release/current/oilstub.min.js",function(){(0,r.loadJS)("oil-js","//unpkg.com/@tashop/oil.js/release/current/oil.min.js",function(){document.getElementById("as-oil-dev-kit__btn-oil").className="btn btn-enabled"})})},t.readOilVersion=function(){var e=document.querySelector('script[src*="oil.1"]');return e?/oil.([0-9.]*)-/gm.exec(e.src)[1]:void 0};var o,i=(o=n(38))&&o.__esModule?o:{default:o},r=n(114);t.cmp={getVendorsConsent:function(){return window.__cmp("getVendorsConsent",null,function(e){return console.info(e)})}}},114:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadModules=function(){function e(){i("slidereveal-js","//cdnjs.cloudflare.com/ajax/libs/slideReveal/1.1.2/jquery.slidereveal.min.js",o.initNavbar),i("modal-js","//cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.19.3/sweetalert2.all.min.js")}r()?e():i("jquery-js","//cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js",e)},t.loadJS=i,t.isJqueryAvailable=r,n(111);var o=n(112);function i(e,t,n){if(!document.getElementById(e)){var o=document,i=o.createElement("script");i.id=e,n&&(i.onload=n),i.src=t,i.setAttribute("data-timestamp",+new Date),(o.head||o.body).appendChild(i)}}function r(){return!("undefined"==typeof jQuery)}},115:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n,o=e[1]||"",i=e[3];if(!i)return o;if(t&&"function"==typeof btoa){var r=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[o].concat(s).concat([r]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(o[r]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&o[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},116:function(e,t,n){var o,i,r={},s=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=o.apply(this,arguments)),i}),a=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),l=null,d=0,c=[],u=n(117);function f(e,t){for(var n=0;n<e.length;n++){var o=e[n],i=r[o.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](o.parts[s]);for(;s<o.parts.length;s++)i.parts.push(_(o.parts[s],t))}else{var a=[];for(s=0;s<o.parts.length;s++)a.push(_(o.parts[s],t));r[o.id]={id:o.id,refs:1,parts:a}}}}function p(e,t){for(var n=[],o={},i=0;i<e.length;i++){var r=e[i],s=t.base?r[0]+t.base:r[0],a={css:r[1],media:r[2],sourceMap:r[3]};o[s]?o[s].parts.push(a):n.push(o[s]={id:s,parts:[a]})}return n}function v(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=c[c.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=a(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,i)}}function b(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function h(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),g(t,e.attrs),v(e,t),t}function g(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function _(e,t){var n,o,i,r;if(t.transform&&e.css){if(!(r=t.transform(e.css)))return function(){};e.css=r}if(t.singleton){var s=d++;n=l||(l=h(t)),o=O.bind(null,n,s,!1),i=O.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",g(t,e.attrs),v(e,t),t}(t),o=function(e,t,n){var o=n.css,i=n.sourceMap,r=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||r)&&(o=u(o)),i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var s=new Blob([o],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,n,t),i=function(){b(n),n.href&&URL.revokeObjectURL(n.href)}):(n=h(t),o=function(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){b(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return f(n,t),function(e){for(var o=[],i=0;i<n.length;i++){var s=n[i];(a=r[s.id]).refs--,o.push(a)}for(e&&f(p(e,t),t),i=0;i<o.length;i++){var a;if(0===(a=o[i]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete r[a.id]}}}};var w,m=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function O(e,t,n,o){var i=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=m(t,i);else{var r=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}},117:function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,o=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,r=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?e:(i=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:o+r.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},130:function(e,t,n){"use strict";n(111);var o=n(112),i=n(132),r=n(114),s=n(113);(0,r.loadModules)(),window.AS_OIL_DEV_KIT={showConfig:function(){var e='OIL comes with a wide range of customisation features which can be configured via a configuration block. Put the configuration object somewhere in the upper part of your page. Please disable the preview mode for the first production test. The preview mode hides the OIL layer except you enable it on your browser session. See the parameter section below for more details.<br><br>OIL also comes with a default configuration, that will support Single Opt-In with a German standard text.<pre class="modal-pre">'+'<script id="oil-configuration" type="application/configuration">\n{\n "poi_group_name": "axelSpringerSe_01"\n}\n<\/script>'.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")+"</pre><br><br>Current configuration:";(0,i.showModal)("Current OIL Config",e,JSON.stringify((0,s.readOilConfig)(),null,1))},previewModeOn:function(){window.AS_OIL.previewModeOn(),(0,o.refreshSlider)(),(0,i.showModal)("previewModeOn",'Sets the "preview enable cookie" in your browser. The preview mode is useful for testing OIL in a live environment without making it available to your end-users. The <b>preview mode is turned off by default</b>, meaning OIL will be available to all your users. If you <b>turn the preview mode on in the configuration of OIL</b>, OIL won’t be shown at first, but can be enabled for your current session on the browser’s console. When preview mode is turned on some debug information will be seen on the browser console. See also "Verbose Logging" below for more detailed logging.',"")},previewModeOff:function(){window.AS_OIL.previewModeOff(),(0,o.refreshSlider)(),(0,i.showModal)("previewModeOff",'Deletes the "preview enable cookie" in your browser. The preview mode is useful for testing OIL in a live environment without making it available to your end-users. The preview mode is turned off by default, meaning OIL will be available to all your users. If you turn the preview mode on (please see configuration section), OIL won’t be shown at first, but can be enabled for your current session on the browser’s console When preview mode is turned on some debug information will be seen on the browser console. See also "Verbose Logging" below for more detailed logging.',"")},verboseModeOn:function(){window.AS_OIL.verboseModeOn(),(0,o.refreshSlider)(),(0,i.showModal)("verboseModeOn",'Sets the "verbose mode enable cookie" in your browser.OIL will show no logs, except in preview mode or verbose mode.\nVerbose mode (as kind of debog mode) can be turned on at any time, whereas the similar preview mode can only be enabled in the configuration.\nPlease note that verbose logging can only be activated for your own browser, all other users won’t see those logs.',"")},verboseModeOff:function(){window.AS_OIL.verboseModeOff(),(0,o.refreshSlider)(),(0,i.showModal)("verboseModeOff",'Deletes the "verbose mode enable cookie" in your browser.OIL will show no logs, except in preview mode or verbose mode.\nVerbose mode (as kind of debog mode) can be turned on at any time, whereas the similar preview mode can only be enabled in the configuration.\nPlease note that verbose logging can only be activated for your own browser, all other users won’t see those logs.',"")},reload:function(){window.AS_OIL.reload(),(0,o.refreshSlider)(),(0,i.showModal)("reload","OIL will reload the configuration from the host’s website. This is like a full reload of OIL.js","")},showPreferenceCenter:function(){window.AS_OIL.showPreferenceCenter(),(0,o.refreshSlider)(),(0,i.showModal)("reload",'OIL will inject the Cookie Preference Center into your website. Please see "OIL CPC API" section in the configuration. This call is meant to inline the CPC into a part of your own website.',"")},status:function(){window.AS_OIL.status(),(0,o.refreshSlider)(),(0,i.showModal)("status","Returns the value, stored of the cookie, or the default, eg. the current status of OIL",JSON.stringify(window.AS_OIL.status(),null,2))},triggerOptIn:function(){window.AS_OIL.triggerOptIn(),(0,o.refreshSlider)(),(0,i.showModal)("triggerOptIn","The user will opted in. It’s the same behaviour as when the user is clicking Accept on the layer. It respects the configuration of OIL (eg. is POI enabled?)","")},triggerSoiOptIn:function(){window.AS_OIL.triggerSoiOptIn(),(0,o.refreshSlider)(),(0,i.showModal)("triggerSoiOptIn","The user will opted in. It’s the same behaviour as when the user is clicking Accept on the layer. Forces SOI without regard of the configuration.","")},triggerPoiOptIn:function(){window.AS_OIL.triggerPoiOptIn(),(0,o.refreshSlider)(),(0,i.showModal)("triggerPoiOptIn","The user will opted in. It’s the same behaviour as when the user is clicking Accept on the layer. Forces POI without regard of the configuration.","")},triggerOptOut:function(){window.AS_OIL.triggerOptOut(),(0,o.refreshSlider)(),(0,i.showModal)("triggerOptOut","OIL will remove all cookies if triggered and therefore opt-out the user of everything, even POI.","")},getVendorConsents:function(){window.__cmp("getVendorConsents",null,function(e){(0,o.refreshSlider)(),(0,i.showModal)("getVendorConsents","The getVendorConsents() method returns the consent by purpose and by vendor as well as a flag indicating if the GDPR applies to the current user. <br><br>Here is what the Didomi CMP returned just now for that function (it should match the consents table and change when you updates your consents):",JSON.stringify(e,null,2))})},getPublisherConsents:function(){window.__cmp("getPublisherConsents",null,function(e){(0,o.refreshSlider)(),(0,i.showModal)("getPublisherConsents","The getPublisherConsents() method returns custom and standard purposes",JSON.stringify(e,null,2))})},getConsentData:function(){__cmp("getConsentData",null,function(e){(0,o.refreshSlider)(),(0,i.showModal)("getConsentData","The getConsentData() method returns the consent string which encodes all the consent information (by vendor and by purpose) as well as a flag indicating if the GDPR applies to the current user. <br><br>This should match the consents table and change when you updates your consents:",JSON.stringify(e,null,2))})},ping:function(){__cmp("ping",null,function(e){(0,o.refreshSlider)(),(0,i.showModal)("ping","The ping() is used by vendors to know if the CMP is loaded yet and if the website has decided to apply GDPR globally to all users or only to EU-based users.",JSON.stringify(e,null,2))})},getVendorList:function(){__cmp("getVendorList",null,function(e){(0,o.refreshSlider)(),(0,i.showModal)("getVendorList","The getVendorList() returns the Global Vendor List hosted by the IAB. That list includes all the purposes that are part of the framework, the vendors that support it as well as a list of the consent purposes that each vendor requires. The list is used by CMP to determine what information they need to who the user and what consents to collect.",JSON.stringify(e,null,2))})}}},131:function(e,t,n){(e.exports=n(115)(!1)).push([e.i,'.as-oil{z-index:2147483630!important}.as-oil-dev-kit{font-family:Arial,serif!important;font-size:16px}.as-oil-dev-kit a{color:#fff;font-size:10px}.as-oil-dev-kit .btn{font-size:12px;border-radius:4px;display:inline-block;padding:2px 10px;margin:4px}.as-oil-dev-kit .btn i{margin-right:5px}.as-oil-dev-kit .btn-enabled{background-color:#008db6;color:#fff}.as-oil-dev-kit .btn-enabled i:before{content:"\\2713"}.as-oil-dev-kit .btn-disabled{background-color:#dfdfdf;color:#545454}.as-oil-dev-kit .btn-disabled i:before{content:"\\2717"}#as-oil-dev-kit__trigger{height:50px;width:50px;position:fixed;z-index:2147483640;right:0;top:25px;background-repeat:no-repeat;background-size:70%;background-position:50%;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAMAAAAKqCSwAAAAwFBMVEUAAADd3d3Ly8spKSkLCwt/f396enoqKioQEBCXl5ebm5vi4uIEBAT///8JCQlJSUnGxsZeXl7s7OwXFxciIiL6+vpycnI3Nzf6+vqlpaX19fU/Pz9YWFi8vLzw8PBLS0tra2vZ2dkaGhrn5+eurq6pqalkZGSSkpIgICAvLy+4uLjBwcGEhIRRUVGNjY3U1NTs7OzPz8+IiIh/f3/U1NTd3d2goKDPz8+zs7Ozs7P19fX19fXd3d2goKDs7Oz///+KUDtYAAAAP3RSTlMA2sgnCXt4Kg+VmOEC/AZGw1vpFCH4cDX6o/I9VrvvS2nXGeatqGKQHS62v4JPi9HrzYd+1Nygz7Ow9PXdnexGo8cMAAAH10lEQVR42tSaiW7aQBRFX4GAA7YJGLOXnbAFaCALaUnv//9V8wbTgcFxYqkZT48UKUJCuhK+x89vTJ9me0f/B3YeuKX/AXcMoF4k83FHYDo5Mh17jAMFj8zGfsUbmwKAVIaMZoU3spRrAhjZZDA9vMGmKjoAVmQuXQ54Tcwt3uiRqcxOf/YNAMdUZVnHMkkVNGdkIvbuXFGZGwDDARlIFoA/I4m3B/Bsk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v0TTe+0iVF9xUV3eC/zpA6HVV0xUJQ8eEHp9xUe1fQ2ZUH3FRnXaPcIj1ldsVHPZl0dVhCxUx60c8ETLLVg1GL3yGx89w18uDHaro/gLrK+KVQ1FkqgIVZq+KoeqnL4qh6qavmKwrE5Q7eF+Vg5VX9ZXpVAFWV+VQxX/aVQOVa2+MlZ1MsDBjJZzKlj7OCeAO9azk2Ku/QmLOec/foBC8Oe2fKpf+LOCioqKc3DRKJoYFHHDjCbk0BZFs6dd1YigUv0I1VrhBKBY18xg8sW5FRUVFZ+Vv9Gft+SPb3J2AAAAAElFTkSuQmCC");background-color:#1c1817;box-shadow:-2px 2px 2px rgba(50,50,50,.3)}.swal2-container{z-index:2147483641!important}#as-oil-dev-kit__slider{padding:12px;background-color:#1c1817;color:#fff;z-index:2147483640;overflow:scroll}#as-oil-dev-kit__slider .as-oil-dev-kit__slider-inner{padding-bottom:70px}.as-oil-dev-kit__button-wrapper{display:flex;flex-wrap:wrap}.as-oil-dev-kit__button-wrapper h6{flex:1 1 100%}.as-oil-dev-kit__button{font-size:12px;flex:1 1 40%;text-align:center;margin:auto;padding:5px;margin-top:6px;margin-right:5px;border-radius:4px;background-color:#363432}hr.modal-hr{border-color:#d0d0d054!important;margin:12px 2px;border-bottom:none}div.modal-header-text,pre.modal-pre{text-align:left}pre.modal-pre{color:#000;background:#ececec;padding:12px}',""])},132:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showModal=function(e,t,n){var o='<hr class="modal-hr"><div class="modal-header-text">'+t+"</div>"+(n?'<pre class="modal-pre">'+n+"</pre>":"")+'<hr class="modal-hr">';window.swal({title:e,html:o})}},38:function(e,t,n){var o,i,r; /*! * JavaScript Cookie v2.1.4 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */ /*! * JavaScript Cookie v2.1.4 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */ void 0===(i="function"==typeof(o=r=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}return function t(n){function o(t,i,r){var s;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(r=e({path:"/"},o.defaults,r)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*r.expires),r.expires=a}r.expires=r.expires?r.expires.toUTCString():"";try{s=JSON.stringify(i),/^[\{\[]/.test(s)&&(i=s)}catch(e){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var l="";for(var d in r)r[d]&&(l+="; "+d,!0!==r[d]&&(l+="="+r[d]));return document.cookie=t+"="+i+l}t||(s={});for(var c=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,f=0;f<c.length;f++){var p=c[f].split("="),v=p.slice(1).join("=");'"'===v.charAt(0)&&(v=v.slice(1,-1));try{var b=p[0].replace(u,decodeURIComponent);if(v=n.read?n.read(v,b):n(v,b)||v.replace(u,decodeURIComponent),this.json)try{v=JSON.parse(v)}catch(e){}if(t===b){s=v;break}t||(s[b]=v)}catch(e){}}return s}}return o.set=o,o.get=function(e){return o.call(o,e)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(t,n){o(t,"",e(n,{expires:-1}))},o.withConverter=t,o}(function(){})})?o.call(t,n,t,e):o)||(e.exports=i),e.exports=r()}});