@jumpgroup/avacy
Version:
oil.js Opt-In Layer for consent management based on the IAB TCF Standard
2 lines • 923 B
JavaScript
/*! 2.7.2-SNAPSHOT */
(window.oilJsonp=window.oilJsonp||[]).push([[3],{332:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,n=(o=i(22))&&o.__esModule?o:{default:o};t.getGroupList=function(){var e=(0,a.getPoiGroupName)(),t=(0,r.getGlobalOilObject)("oilCachedGroupList");return new n.default(function(i){t||!(0,a.isPoiActive)()?i(t):(0,r.fetchJsonData)((0,a.getPoiListDirectory)()+"/"+e+".json").then(function(e){t=e.companyList,(0,r.setGlobalOilObject)("oilCachedGroupList",t),e.iabVendorWhitelist&&e.iabVendorWhitelist.length&&(0,a.setIabVendorWhitelist)(e.iabVendorWhitelist),e.iabVendorBlacklist&&e.iabVendorBlacklist.length&&(0,a.setIabVendorBlacklist)(e.iabVendorBlacklist),i(t)}).catch(function(t){(0,l.logError)("OIL getGroupList failed and returned error: "+t+'. Group "'+e+'" not found! Please add the JSON file with the correct name.'),i([])})})};var r=i(20),l=i(21),a=i(14)}}]);