Plugin Directory

Changeset 3297455


Ignore:
Timestamp:
05/20/2025 02:33:12 PM (8 months ago)
Author:
wildoperation
Message:

Update to version 1.1.15 from GitHub

Location:
ad-commander
Files:
4 added
30 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ad-commander/tags/1.1.15/ad-commander.php

    r3271922 r3297455  
    44 * Plugin URI:      https://wpadcommander.com
    55 * Description:     Insert, schedule and track custom advertising banners or script ads from AdSense, Amazon, and other affiliate networks into your site.
    6  * Version:         1.1.14
     6 * Version:         1.1.15
    77 * Author:          Wild Operation
    88 * Author URI:      https://wildoperation.com
     
    1414 * @subpackage Ad Commander - Banner & Ad Manager
    1515 * @since 1.0.0
    16  * @version 1.1.14
     16 * @version 1.1.15
    1717 */
    1818
  • ad-commander/tags/1.1.15/dist/js/front.js

    r3101435 r3297455  
    11/*! For license information please see front.js.LICENSE.txt */
    2 (()=>{"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)e[i]=r[i]}return e}var t=function t(r,i){function n(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({},i,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in o)o[a]&&(s+="; "+a,!0!==o[a]&&(s+="="+o[a].split(";")[0]));return document.cookie=t+"="+r.write(n,t)+s}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],i={},n=0;n<t.length;n++){var o=t[n].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(i[a]=r.read(s,a),e===a)break}catch(e){}}return e?i[e]:i}},remove:function(t,r){n(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}!function(){var e=(("undefined"!=typeof window?window:this).WOUtil=function(){return this}).prototype;e.prefix=function(){return void 0!==adcmdr_front.prefix?adcmdr_front.prefix:"adcmdr"},e.prefixed=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return this.prefix()+t+e},e.ignorePopupAds=function(e){var t=this;return r(e).filter((function(e){for(var r=e;r.parentElement;){if(r.parentElement.classList.contains(t.prefixed("pop-content")))return!1;r=r.parentElement}return!0}))}}(),function(){var e=("undefined"!=typeof window?window:this).WOVisitor=function(){this.woUtil=new WOUtil,this.impressionCookie=adcmdr_front.cookies.i,this.referrerCookie=adcmdr_front.cookies.r,this.visitorCookie=adcmdr_front.cookies.v,this.adImpressionCookie=adcmdr_front.cookies.i_a,this.adClickCookie=adcmdr_front.cookies.c_a;var r=e.prototype;r.impressions=function(){var e=t.get(this.impressionCookie);return e&&void 0!==e?parseInt(e,10):0},r.track_impression_cookie=function(){t.set(this.impressionCookie,this.impressions()+1,{expires:400})},r.update_user_placement_impressions=function(){var e=this.get_user_ad_impressions(),r=window[this.woUtil.prefixed("plids","_")]||[];window[this.woUtil.prefixed("plids","_")]=[],void 0!==r&&r.length>0&&(void 0===e.placements&&(e.placements=[]),r.forEach((function(t){var r=e.placements.findIndex((function(e){return e.id===t}));r>=0?e.placements[r]={id:t,i:parseInt(e.placements[r].i,10)+1}:e.placements.push({id:t,i:1})})),t.set(this.adImpressionCookie,JSON.stringify(e),{expires:400}))},r.update_user_ad_impressions=function(e){var r=this.get_user_ad_impressions();void 0!==e&&e.length>0&&(void 0===r.ads&&(r.ads=[]),e.forEach((function(e){if(void 0!==e.adId){var t=parseInt(e.adId,10),i=r.ads.findIndex((function(e){return e.id===t}));i>=0?r.ads[i].i=parseInt(r.ads[i].i,10)+1:r.ads.push({id:t,i:1})}})),t.set(this.adImpressionCookie,JSON.stringify(r),{expires:400}))},r.update_user_ad_clicks=function(e){var r=this.get_user_ad_clicks();void 0!==e&&e.length>0&&(void 0===r.ads&&(r.ads=[]),e.forEach((function(e){if(void 0!==e.adId){var t=parseInt(e.adId,10),i=r.ads.findIndex((function(e){return e.id===t}));i>=0?r.ads[i].c=parseInt(r.ads[i].c,10)+1:r.ads.push({id:t,c:1})}})),t.set(this.adClickCookie,JSON.stringify(r),{expires:400}))},r.get_user_ad_impressions=function(){var e=t.get(this.adImpressionCookie);return void 0===e?{ads:[],placements:[]}:JSON.parse(e)},r.get_user_ad_clicks=function(){var e=t.get(this.adClickCookie);return void 0===e?{ads:[]}:JSON.parse(e)},r.maybe_set_referrer_cookie=function(){void 0===t.get(this.referrerCookie)&&t.set(this.referrerCookie,document.referrer)},r.get_referrer=function(){var e=t.get(this.referrerCookie);return void 0===e?"":e},r.get_visitor_cookie=function(){var e=t.get(this.visitorCookie);return void 0===e?{}:e},r.set_visitor_cookie=function(){var e={viewportWidth:window.innerWidth,browserLanguage:navigator.language||navigator.userLanguage};t.set(this.visitorCookie,JSON.stringify(e))}},r=new e;r.maybe_set_referrer_cookie(),r.set_visitor_cookie(),document.addEventListener("DOMContentLoaded",(function(){var e=new WOUtil;new WORotateInit(e.ignorePopupAds(document.getElementsByClassName(e.prefixed("rotate"))));var t="undefined"!=typeof WOTrack?new WOTrack:null;t&&t.trackImpressionsAndBindClicksBySelector(document,"."+e.prefixed("ad"),"woslide",!0);var i="undefined"!=typeof WOFrontPro?new WOFrontPro:null;i?i.loadAds({woVisitor:r,woTracker:t}):document.dispatchEvent(new Event("adcmdrAdsLoaded"))}),!1),document.addEventListener("adcmdrAdsLoaded",(function(){r.track_impression_cookie(),r.update_user_placement_impressions()}))}()})();
     2(()=>{"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)e[i]=r[i]}return e}var t=function t(r,i){function n(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({},i,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var d in o)o[d]&&(s+="; "+d,!0!==o[d]&&(s+="="+o[d].split(";")[0]));return document.cookie=t+"="+r.write(n,t)+s}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],i={},n=0;n<t.length;n++){var o=t[n].split("="),s=o.slice(1).join("=");try{var d=decodeURIComponent(o[0]);if(i[d]=r.read(s,d),e===d)break}catch(e){}}return e?i[e]:i}},remove:function(t,r){n(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}!function(){var e=(("undefined"!=typeof window?window:this).WOUtil=function(){return this}).prototype;e.prefix=function(){return void 0!==adcmdr_front.prefix?adcmdr_front.prefix:"adcmdr"},e.prefixed=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return this.prefix()+t+e},e.ignorePopupAds=function(e){var t=this;return r(e).filter((function(e){for(var r=e;r.parentElement;){if(r.parentElement.classList.contains(t.prefixed("pop-content")))return!1;r=r.parentElement}return!0}))}}(),function(){var e=("undefined"!=typeof window?window:this).WOVisitor=function(){this.woUtil=new WOUtil,this.impressionCookie=adcmdr_front.cookies.i,this.referrerCookie=adcmdr_front.cookies.r,this.visitorCookie=adcmdr_front.cookies.v,this.adImpressionCookie=adcmdr_front.cookies.i_a,this.adClickCookie=adcmdr_front.cookies.c_a;var r=e.prototype;r.impressions=function(){var e=t.get(this.impressionCookie);return e&&void 0!==e?parseInt(e,10):0},r.track_impression_cookie=function(){t.set(this.impressionCookie,this.impressions()+1,{expires:400})},r.update_user_placement_impressions=function(){var e=this.get_user_ad_impressions(),r=window[this.woUtil.prefixed("plids","_")]||[];window[this.woUtil.prefixed("plids","_")]=[],void 0!==r&&r.length>0&&(void 0===e.placements&&(e.placements=[]),r.forEach((function(t){var r=e.placements.findIndex((function(e){return e.id===t}));r>=0?e.placements[r]={id:t,i:parseInt(e.placements[r].i,10)+1}:e.placements.push({id:t,i:1})})),t.set(this.adImpressionCookie,JSON.stringify(e),{expires:400}))},r.update_user_ad_impressions=function(e){var r=this.get_user_ad_impressions();void 0!==e&&e.length>0&&(void 0===r.ads&&(r.ads=[]),e.forEach((function(e){if(void 0!==e.adId){var t=parseInt(e.adId,10),i=r.ads.findIndex((function(e){return e.id===t}));i>=0?r.ads[i].i=parseInt(r.ads[i].i,10)+1:r.ads.push({id:t,i:1})}})),t.set(this.adImpressionCookie,JSON.stringify(r),{expires:400}))},r.update_user_ad_clicks=function(e){var r=this.get_user_ad_clicks();void 0!==e&&e.length>0&&(void 0===r.ads&&(r.ads=[]),e.forEach((function(e){if(void 0!==e.adId){var t=parseInt(e.adId,10),i=r.ads.findIndex((function(e){return e.id===t}));i>=0?r.ads[i].c=parseInt(r.ads[i].c,10)+1:r.ads.push({id:t,c:1})}})),t.set(this.adClickCookie,JSON.stringify(r),{expires:400}))},r.get_user_ad_impressions=function(){var e=t.get(this.adImpressionCookie);return void 0===e?{ads:[],placements:[]}:JSON.parse(e)},r.get_user_ad_clicks=function(){var e=t.get(this.adClickCookie);return void 0===e?{ads:[]}:JSON.parse(e)},r.maybe_set_referrer_cookie=function(){void 0===t.get(this.referrerCookie)&&t.set(this.referrerCookie,document.referrer)},r.get_referrer=function(){var e=t.get(this.referrerCookie);return void 0===e?"":e},r.get_visitor_cookie=function(){var e=t.get(this.visitorCookie);return void 0===e?{}:e},r.set_visitor_cookie=function(){var e={viewportWidth:window.innerWidth,browserLanguage:navigator.language||navigator.userLanguage};t.set(this.visitorCookie,JSON.stringify(e))}},r=new e;r.maybe_set_referrer_cookie(),r.set_visitor_cookie(),document.addEventListener("DOMContentLoaded",(function(){var e=new WOUtil;new WORotateInit(e.ignorePopupAds(document.getElementsByClassName(e.prefixed("rotate"))));var t="undefined"!=typeof WOTrack?new WOTrack:null;t&&t.trackImpressionsAndBindClicksBySelector(document,"."+e.prefixed("ad"),"woslide",!0);var i="undefined"!=typeof WOFrontPro?new WOFrontPro:null;if(i){if(i.loadAds({woVisitor:r,woTracker:t}),adcmdr_front.integrations.includes("buddypress")){var n=document.getElementById("buddypress");if(n&&!n.querySelector(".activity-list"))new MutationObserver((function(o,s){n.querySelector(".activity-list")&&(new WORotateInit(e.ignorePopupAds(n.getElementsByClassName(e.prefixed("rotate")))),t&&t.trackImpressionsAndBindClicksBySelector(n,"."+e.prefixed("ad"),"woslide",!0),i.loadAds({woVisitor:r,woTracker:t}),s.disconnect())})).observe(n,{childList:!0,subtree:!0})}}else document.dispatchEvent(new Event("adcmdrAdsLoaded"))}),!1),document.addEventListener("adcmdrAdsLoaded",(function(){r.track_impression_cookie(),r.update_user_placement_impressions()}))}()})();
  • ad-commander/tags/1.1.15/dist/js/front.js.map

    r3115166 r3297455  
    1 {"version":3,"file":"/dist/js/front.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,EAAE;AACtC,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,kCAAkC;;AAElC;AACA;AACA;;AAEA;AACA;AACA,qEAAqE;AACrE;AACA;AACA,0CAA0C;AAC1C;AACA,uEAAuE;AACvE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,6DAA6D;AAC7D;AACA,oBAAoB,oBAAoB;AACxC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;;AAEA;AACA;;AAEA;AACA;AACA;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,SAAS,CAACE,uCAAuC,CAChDnB,QAAQ,EACR,GAAG,GAAG5C,MAAM,CAACjB,QAAQ,CAAC,IAAI,CAAC,EAC3B,SAAS;MAAE;MACX,IAAI,CAAC;MACN,CAAC;IACF;IAEA,IAAMiF,UAAU,GACf,OAAOC,UAAU,KAAK,WAAW,GAAG,IAAIA,UAAU,CAAC,CAAC,GAAG,IAAI;IAE5D,IAAID,UAAU,EAAE;MACfA,UAAU,CAACE,OAAO,CAAC;QAAET,SAAS,EAAEA,SAAS;QAAEI,SAAS,EAAEA;MAAU,CAAC,CAAC;IACnE,CAAC,MAAM;MACNjB,QAAQ,CAACuB,aAAa,CAAC,IAAIC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrD;EACD,CAAC,EACD,KACD,CAAC;EAEDxB,QAAQ,CAACc,gBAAgB,CAAC,iBAAiB,EAAE,YAAY;IACxDD,SAAS,CAACzC,uBAAuB,CAAC,CAAC;IACnCyC,SAAS,CAACtC,iCAAiC,CAAC,CAAC;EAC9C,CAAC,CAAC;AACH,CAAC,EAAE,CAAC,C","sources":["webpack://wo/./node_modules/js-cookie/dist/js.cookie.mjs","webpack://wo/webpack/bootstrap","webpack://wo/webpack/runtime/define property getters","webpack://wo/webpack/runtime/hasOwnProperty shorthand","webpack://wo/webpack/runtime/make namespace object","webpack://wo/./src/js/front/front.js"],"sourcesContent":["/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = arguments[i];\n    for (var key in source) {\n      target[key] = source[key];\n    }\n  }\n  return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n  read: function (value) {\n    if (value[0] === '\"') {\n      value = value.slice(1, -1);\n    }\n    return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n  },\n  write: function (value) {\n    return encodeURIComponent(value).replace(\n      /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n      decodeURIComponent\n    )\n  }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n  function set (name, value, attributes) {\n    if (typeof document === 'undefined') {\n      return\n    }\n\n    attributes = assign({}, defaultAttributes, attributes);\n\n    if (typeof attributes.expires === 'number') {\n      attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n    }\n    if (attributes.expires) {\n      attributes.expires = attributes.expires.toUTCString();\n    }\n\n    name = encodeURIComponent(name)\n      .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n      .replace(/[()]/g, escape);\n\n    var stringifiedAttributes = '';\n    for (var attributeName in attributes) {\n      if (!attributes[attributeName]) {\n        continue\n      }\n\n      stringifiedAttributes += '; ' + attributeName;\n\n      if (attributes[attributeName] === true) {\n        continue\n      }\n\n      // Considers RFC 6265 section 5.2:\n      // ...\n      // 3.  If the remaining unparsed-attributes contains a %x3B (\";\")\n      //     character:\n      // Consume the characters of the unparsed-attributes up to,\n      // not including, the first %x3B (\";\") character.\n      // ...\n      stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n    }\n\n    return (document.cookie =\n      name + '=' + converter.write(value, name) + stringifiedAttributes)\n  }\n\n  function get (name) {\n    if (typeof document === 'undefined' || (arguments.length && !name)) {\n      return\n    }\n\n    // To prevent the for loop in the first place assign an empty array\n    // in case there are no cookies at all.\n    var cookies = document.cookie ? document.cookie.split('; ') : [];\n    var jar = {};\n    for (var i = 0; i < cookies.length; i++) {\n      var parts = cookies[i].split('=');\n      var value = parts.slice(1).join('=');\n\n      try {\n        var found = decodeURIComponent(parts[0]);\n        jar[found] = converter.read(value, found);\n\n        if (name === found) {\n          break\n        }\n      } catch (e) {}\n    }\n\n    return name ? jar[name] : jar\n  }\n\n  return Object.create(\n    {\n      set,\n      get,\n      remove: function (name, attributes) {\n        set(\n          name,\n          '',\n          assign({}, attributes, {\n            expires: -1\n          })\n        );\n      },\n      withAttributes: function (attributes) {\n        return init(this.converter, assign({}, this.attributes, attributes))\n      },\n      withConverter: function (converter) {\n        return init(assign({}, this.converter, converter), this.attributes)\n      }\n    },\n    {\n      attributes: { value: Object.freeze(defaultAttributes) },\n      converter: { value: Object.freeze(converter) }\n    }\n  )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import Cookies from \"js-cookie\";\n\n(function () {\n\tconst _window = typeof window !== \"undefined\" ? window : this;\n\n\t/**\n\t * WOUtilities instance\n\t */\n\tconst WOUtil = (_window.WOUtil = function () {\n\t\treturn this;\n\t});\n\n\t/**\n\t * Prototype functions\n\t */\n\tconst WOUtilPrototype = WOUtil.prototype;\n\n\tWOUtilPrototype.prefix = function () {\n\t\treturn typeof adcmdr_front.prefix !== \"undefined\"\n\t\t\t? adcmdr_front.prefix\n\t\t\t: \"adcmdr\";\n\t};\n\n\tWOUtilPrototype.prefixed = function (str, sep = \"-\") {\n\t\treturn this.prefix() + sep + str;\n\t};\n\n\tWOUtilPrototype.ignorePopupAds = function (elements) {\n\t\treturn [...elements].filter((element) => {\n\t\t\tlet currentElement = element;\n\t\t\twhile (currentElement.parentElement) {\n\t\t\t\tif (\n\t\t\t\t\tcurrentElement.parentElement.classList.contains(\n\t\t\t\t\t\tthis.prefixed(\"pop-content\")\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tcurrentElement = currentElement.parentElement;\n\t\t\t}\n\t\t\treturn true;\n\t\t});\n\t};\n})();\n\n(function () {\n\tconst _window = typeof window !== \"undefined\" ? window : this;\n\n\t/**\n\t * WOVisitor instance\n\t */\n\tconst WOVisitor = (_window.WOVisitor = function () {\n\t\tthis.woUtil = new WOUtil();\n\n\t\tthis.impressionCookie = adcmdr_front.cookies.i;\n\t\tthis.referrerCookie = adcmdr_front.cookies.r;\n\t\tthis.visitorCookie = adcmdr_front.cookies.v;\n\t\tthis.adImpressionCookie = adcmdr_front.cookies.i_a;\n\t\tthis.adClickCookie = adcmdr_front.cookies.c_a;\n\n\t\t/**\n\t\t * Prototype functions\n\t\t */\n\t\tconst WOVisitorPrototype = WOVisitor.prototype;\n\n\t\t/**\n\t\t * Get current site impressions.\n\t\t */\n\t\tWOVisitorPrototype.impressions = function () {\n\t\t\tconst i = Cookies.get(this.impressionCookie);\n\n\t\t\tif (!i || typeof i === \"undefined\") {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\treturn parseInt(i, 10);\n\t\t};\n\n\t\t/**\n\t\t * Track site impressions.\n\t\t */\n\t\tWOVisitorPrototype.track_impression_cookie = function () {\n\t\t\tCookies.set(this.impressionCookie, this.impressions() + 1, {\n\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t});\n\t\t};\n\n\t\t/**\n\t\t * Track placement impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_placement_impressions = function () {\n\t\t\tlet current_impressions = this.get_user_ad_impressions();\n\t\t\tconst current_placements =\n\t\t\t\twindow[this.woUtil.prefixed(\"plids\", \"_\")] || [];\n\n\t\t\twindow[this.woUtil.prefixed(\"plids\", \"_\")] = [];\n\n\t\t\tif (\n\t\t\t\ttypeof current_placements !== \"undefined\" &&\n\t\t\t\tcurrent_placements.length > 0\n\t\t\t) {\n\t\t\t\tif (typeof current_impressions.placements === \"undefined\") {\n\t\t\t\t\tcurrent_impressions.placements = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_placements.forEach((plid) => {\n\t\t\t\t\tconst obj_idx = current_impressions.placements.findIndex(\n\t\t\t\t\t\t(obj) => obj.id === plid\n\t\t\t\t\t);\n\n\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\tcurrent_impressions.placements[obj_idx] = {\n\t\t\t\t\t\t\tid: plid,\n\t\t\t\t\t\t\ti: parseInt(current_impressions.placements[obj_idx].i, 10) + 1,\n\t\t\t\t\t\t};\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrent_impressions.placements.push({ id: plid, i: 1 });\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(\n\t\t\t\t\tthis.adImpressionCookie,\n\t\t\t\t\tJSON.stringify(current_impressions),\n\t\t\t\t\t{\n\t\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Track ad impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_ad_impressions = function (current_ads) {\n\t\t\tlet current_impressions = this.get_user_ad_impressions();\n\n\t\t\tif (typeof current_ads !== \"undefined\" && current_ads.length > 0) {\n\t\t\t\tif (typeof current_impressions.ads === \"undefined\") {\n\t\t\t\t\tcurrent_impressions.ads = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_ads.forEach((ad) => {\n\t\t\t\t\tif (typeof ad.adId !== \"undefined\") {\n\t\t\t\t\t\tconst adId = parseInt(ad.adId, 10);\n\n\t\t\t\t\t\tconst obj_idx = current_impressions.ads.findIndex(\n\t\t\t\t\t\t\t(obj) => obj.id === adId\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\t\tcurrent_impressions.ads[obj_idx].i =\n\t\t\t\t\t\t\t\tparseInt(current_impressions.ads[obj_idx].i, 10) + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcurrent_impressions.ads.push({ id: adId, i: 1 });\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(\n\t\t\t\t\tthis.adImpressionCookie,\n\t\t\t\t\tJSON.stringify(current_impressions),\n\t\t\t\t\t{\n\t\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Track ad impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_ad_clicks = function (current_ads) {\n\t\t\tlet current_clicks = this.get_user_ad_clicks();\n\n\t\t\tif (typeof current_ads !== \"undefined\" && current_ads.length > 0) {\n\t\t\t\tif (typeof current_clicks.ads === \"undefined\") {\n\t\t\t\t\tcurrent_clicks.ads = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_ads.forEach((ad) => {\n\t\t\t\t\tif (typeof ad.adId !== \"undefined\") {\n\t\t\t\t\t\tconst adId = parseInt(ad.adId, 10);\n\n\t\t\t\t\t\tconst obj_idx = current_clicks.ads.findIndex(\n\t\t\t\t\t\t\t(obj) => obj.id === adId\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\t\tcurrent_clicks.ads[obj_idx].c =\n\t\t\t\t\t\t\t\tparseInt(current_clicks.ads[obj_idx].c, 10) + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcurrent_clicks.ads.push({ id: adId, c: 1 });\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(this.adClickCookie, JSON.stringify(current_clicks), {\n\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Get ad impressions to pass to server if loading over ajax.\n\t\t */\n\t\tWOVisitorPrototype.get_user_ad_impressions = function () {\n\t\t\tconst current_impressions = Cookies.get(this.adImpressionCookie);\n\n\t\t\tif (typeof current_impressions === \"undefined\") {\n\t\t\t\treturn { ads: [], placements: [] };\n\t\t\t}\n\n\t\t\treturn JSON.parse(current_impressions);\n\t\t};\n\n\t\t/**\n\t\t * Get ad clicks to pass to server if loading over ajax.\n\t\t */\n\t\tWOVisitorPrototype.get_user_ad_clicks = function () {\n\t\t\tconst current_clicks = Cookies.get(this.adClickCookie);\n\n\t\t\tif (typeof current_clicks === \"undefined\") {\n\t\t\t\treturn { ads: [] };\n\t\t\t}\n\n\t\t\treturn JSON.parse(current_clicks);\n\t\t};\n\n\t\t/**\n\t\t * Set the referrer cookie.\n\t\t */\n\t\tWOVisitorPrototype.maybe_set_referrer_cookie = function () {\n\t\t\tif (typeof Cookies.get(this.referrerCookie) === \"undefined\") {\n\t\t\t\tCookies.set(this.referrerCookie, document.referrer);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Get the referrer cookie.\n\t\t */\n\t\tWOVisitorPrototype.get_referrer = function () {\n\t\t\tconst referrer = Cookies.get(this.referrerCookie);\n\t\t\tif (typeof referrer === \"undefined\") {\n\t\t\t\treturn \"\";\n\t\t\t}\n\n\t\t\treturn referrer;\n\t\t};\n\n\t\t/**\n\t\t * Get visitor information cookie.\n\t\t */\n\t\tWOVisitorPrototype.get_visitor_cookie = function () {\n\t\t\tconst visitor = Cookies.get(this.visitorCookie);\n\n\t\t\tif (typeof visitor === \"undefined\") {\n\t\t\t\treturn {};\n\t\t\t}\n\n\t\t\treturn visitor;\n\t\t};\n\n\t\t/**\n\t\t * Set visitor information cookie.\n\t\t */\n\t\tWOVisitorPrototype.set_visitor_cookie = function () {\n\t\t\tconst visitor_obj = {\n\t\t\t\tviewportWidth: window.innerWidth,\n\t\t\t\tbrowserLanguage: navigator.language || navigator.userLanguage,\n\t\t\t};\n\n\t\t\tCookies.set(this.visitorCookie, JSON.stringify(visitor_obj));\n\t\t};\n\t});\n\n\tconst woVisitor = new WOVisitor();\n\twoVisitor.maybe_set_referrer_cookie();\n\twoVisitor.set_visitor_cookie();\n\n\t/**\n\t * DOMContentLoaded\n\t */\n\tdocument.addEventListener(\n\t\t\"DOMContentLoaded\",\n\t\tfunction () {\n\t\t\tconst woUtil = new WOUtil();\n\n\t\t\t/**\n\t\t\t * Initialize rotating ads that are already loaded on the page.\n\t\t\t *\n\t\t\t */\n\t\t\tnew WORotateInit(\n\t\t\t\twoUtil.ignorePopupAds(\n\t\t\t\t\tdocument.getElementsByClassName(woUtil.prefixed(\"rotate\"))\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tconst woTracker = typeof WOTrack !== \"undefined\" ? new WOTrack() : null;\n\n\t\t\t/**\n\t\t\t * Find all ads that are already loaded on the page and track impressions\n\t\t\t */\n\t\t\tif (woTracker) {\n\t\t\t\twoTracker.trackImpressionsAndBindClicksBySelector(\n\t\t\t\t\tdocument,\n\t\t\t\t\t\".\" + woUtil.prefixed(\"ad\"),\n\t\t\t\t\t\"woslide\", // ignore rotate slides,\n\t\t\t\t\ttrue // ignore popups\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst woFrontPro =\n\t\t\t\ttypeof WOFrontPro !== \"undefined\" ? new WOFrontPro() : null;\n\n\t\t\tif (woFrontPro) {\n\t\t\t\twoFrontPro.loadAds({ woVisitor: woVisitor, woTracker: woTracker });\n\t\t\t} else {\n\t\t\t\tdocument.dispatchEvent(new Event(\"adcmdrAdsLoaded\"));\n\t\t\t}\n\t\t},\n\t\tfalse\n\t);\n\n\tdocument.addEventListener(\"adcmdrAdsLoaded\", function () {\n\t\twoVisitor.track_impression_cookie();\n\t\twoVisitor.update_user_placement_impressions();\n\t});\n})();\n"],"names":["Cookies","_window","window","WOUtil","WOUtilPrototype","prototype","prefix","adcmdr_front","prefixed","str","sep","arguments","length","undefined","ignorePopupAds","elements","_this","_toConsumableArray","filter","element","currentElement","parentElement","classList","contains","WOVisitor","woUtil","impressionCookie","cookies","i","referrerCookie","r","visitorCookie","v","adImpressionCookie","i_a","adClickCookie","c_a","WOVisitorPrototype","impressions","get","parseInt","track_impression_cookie","set","expires","update_user_placement_impressions","current_impressions","get_user_ad_impressions","current_placements","placements","forEach","plid","obj_idx","findIndex","obj","id","push","JSON","stringify","update_user_ad_impressions","current_ads","ads","ad","adId","update_user_ad_clicks","current_clicks","get_user_ad_clicks","c","parse","maybe_set_referrer_cookie","document","referrer","get_referrer","get_visitor_cookie","visitor","set_visitor_cookie","visitor_obj","viewportWidth","innerWidth","browserLanguage","navigator","language","userLanguage","woVisitor","addEventListener","WORotateInit","getElementsByClassName","woTracker","WOTrack","trackImpressionsAndBindClicksBySelector","woFrontPro","WOFrontPro","loadAds","dispatchEvent","Event"],"sourceRoot":""}
     1{"version":3,"file":"/dist/js/front.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,EAAE;AACtC,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,kCAAkC;;AAElC;AACA;AACA;;AAEA;AACA;AACA,qEAAqE;AACrE;AACA;AACA,0CAA0C;AAC1C;A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;cAEAiF,UAAU,CAACE,OAAO,CAAC;gBAClBT,SAAS,EAAEA,SAAS;gBACpBI,SAAS,EAAEA;cACZ,CAAC,CAAC;cACFc,GAAG,CAACC,UAAU,CAAC,CAAC;YACjB;UACD,CAAC,CAAC;UAEFJ,QAAQ,CAACK,OAAO,CAACR,UAAU,EAAE;YAC5BS,SAAS,EAAE,IAAI;YACfC,OAAO,EAAE;UACV,CAAC,CAAC;QACH;MACD;IACD,CAAC,MAAM;MACNnC,QAAQ,CAACoC,aAAa,CAAC,IAAIC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrD;EACD,CAAC,EACD,KACD,CAAC;EAEDrC,QAAQ,CAACc,gBAAgB,CAAC,iBAAiB,EAAE,YAAY;IACxDD,SAAS,CAACzC,uBAAuB,CAAC,CAAC;IACnCyC,SAAS,CAACtC,iCAAiC,CAAC,CAAC;EAC9C,CAAC,CAAC;AACH,CAAC,EAAE,CAAC,C","sources":["webpack://wo/./node_modules/js-cookie/dist/js.cookie.mjs","webpack://wo/webpack/bootstrap","webpack://wo/webpack/runtime/define property getters","webpack://wo/webpack/runtime/hasOwnProperty shorthand","webpack://wo/webpack/runtime/make namespace object","webpack://wo/./src/js/front/front.js"],"sourcesContent":["/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = arguments[i];\n    for (var key in source) {\n      target[key] = source[key];\n    }\n  }\n  return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n  read: function (value) {\n    if (value[0] === '\"') {\n      value = value.slice(1, -1);\n    }\n    return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n  },\n  write: function (value) {\n    return encodeURIComponent(value).replace(\n      /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n      decodeURIComponent\n    )\n  }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n  function set (name, value, attributes) {\n    if (typeof document === 'undefined') {\n      return\n    }\n\n    attributes = assign({}, defaultAttributes, attributes);\n\n    if (typeof attributes.expires === 'number') {\n      attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n    }\n    if (attributes.expires) {\n      attributes.expires = attributes.expires.toUTCString();\n    }\n\n    name = encodeURIComponent(name)\n      .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n      .replace(/[()]/g, escape);\n\n    var stringifiedAttributes = '';\n    for (var attributeName in attributes) {\n      if (!attributes[attributeName]) {\n        continue\n      }\n\n      stringifiedAttributes += '; ' + attributeName;\n\n      if (attributes[attributeName] === true) {\n        continue\n      }\n\n      // Considers RFC 6265 section 5.2:\n      // ...\n      // 3.  If the remaining unparsed-attributes contains a %x3B (\";\")\n      //     character:\n      // Consume the characters of the unparsed-attributes up to,\n      // not including, the first %x3B (\";\") character.\n      // ...\n      stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n    }\n\n    return (document.cookie =\n      name + '=' + converter.write(value, name) + stringifiedAttributes)\n  }\n\n  function get (name) {\n    if (typeof document === 'undefined' || (arguments.length && !name)) {\n      return\n    }\n\n    // To prevent the for loop in the first place assign an empty array\n    // in case there are no cookies at all.\n    var cookies = document.cookie ? document.cookie.split('; ') : [];\n    var jar = {};\n    for (var i = 0; i < cookies.length; i++) {\n      var parts = cookies[i].split('=');\n      var value = parts.slice(1).join('=');\n\n      try {\n        var found = decodeURIComponent(parts[0]);\n        jar[found] = converter.read(value, found);\n\n        if (name === found) {\n          break\n        }\n      } catch (e) {}\n    }\n\n    return name ? jar[name] : jar\n  }\n\n  return Object.create(\n    {\n      set,\n      get,\n      remove: function (name, attributes) {\n        set(\n          name,\n          '',\n          assign({}, attributes, {\n            expires: -1\n          })\n        );\n      },\n      withAttributes: function (attributes) {\n        return init(this.converter, assign({}, this.attributes, attributes))\n      },\n      withConverter: function (converter) {\n        return init(assign({}, this.converter, converter), this.attributes)\n      }\n    },\n    {\n      attributes: { value: Object.freeze(defaultAttributes) },\n      converter: { value: Object.freeze(converter) }\n    }\n  )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import Cookies from \"js-cookie\";\n\n(function () {\n\tconst _window = typeof window !== \"undefined\" ? window : this;\n\n\t/**\n\t * WOUtilities instance\n\t */\n\tconst WOUtil = (_window.WOUtil = function () {\n\t\treturn this;\n\t});\n\n\t/**\n\t * Prototype functions\n\t */\n\tconst WOUtilPrototype = WOUtil.prototype;\n\n\tWOUtilPrototype.prefix = function () {\n\t\treturn typeof adcmdr_front.prefix !== \"undefined\"\n\t\t\t? adcmdr_front.prefix\n\t\t\t: \"adcmdr\";\n\t};\n\n\tWOUtilPrototype.prefixed = function (str, sep = \"-\") {\n\t\treturn this.prefix() + sep + str;\n\t};\n\n\tWOUtilPrototype.ignorePopupAds = function (elements) {\n\t\treturn [...elements].filter((element) => {\n\t\t\tlet currentElement = element;\n\t\t\twhile (currentElement.parentElement) {\n\t\t\t\tif (\n\t\t\t\t\tcurrentElement.parentElement.classList.contains(\n\t\t\t\t\t\tthis.prefixed(\"pop-content\")\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tcurrentElement = currentElement.parentElement;\n\t\t\t}\n\t\t\treturn true;\n\t\t});\n\t};\n})();\n\n(function () {\n\tconst _window = typeof window !== \"undefined\" ? window : this;\n\n\t/**\n\t * WOVisitor instance\n\t */\n\tconst WOVisitor = (_window.WOVisitor = function () {\n\t\tthis.woUtil = new WOUtil();\n\n\t\tthis.impressionCookie = adcmdr_front.cookies.i;\n\t\tthis.referrerCookie = adcmdr_front.cookies.r;\n\t\tthis.visitorCookie = adcmdr_front.cookies.v;\n\t\tthis.adImpressionCookie = adcmdr_front.cookies.i_a;\n\t\tthis.adClickCookie = adcmdr_front.cookies.c_a;\n\n\t\t/**\n\t\t * Prototype functions\n\t\t */\n\t\tconst WOVisitorPrototype = WOVisitor.prototype;\n\n\t\t/**\n\t\t * Get current site impressions.\n\t\t */\n\t\tWOVisitorPrototype.impressions = function () {\n\t\t\tconst i = Cookies.get(this.impressionCookie);\n\n\t\t\tif (!i || typeof i === \"undefined\") {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\treturn parseInt(i, 10);\n\t\t};\n\n\t\t/**\n\t\t * Track site impressions.\n\t\t */\n\t\tWOVisitorPrototype.track_impression_cookie = function () {\n\t\t\tCookies.set(this.impressionCookie, this.impressions() + 1, {\n\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t});\n\t\t};\n\n\t\t/**\n\t\t * Track placement impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_placement_impressions = function () {\n\t\t\tlet current_impressions = this.get_user_ad_impressions();\n\t\t\tconst current_placements =\n\t\t\t\twindow[this.woUtil.prefixed(\"plids\", \"_\")] || [];\n\n\t\t\twindow[this.woUtil.prefixed(\"plids\", \"_\")] = [];\n\n\t\t\tif (\n\t\t\t\ttypeof current_placements !== \"undefined\" &&\n\t\t\t\tcurrent_placements.length > 0\n\t\t\t) {\n\t\t\t\tif (typeof current_impressions.placements === \"undefined\") {\n\t\t\t\t\tcurrent_impressions.placements = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_placements.forEach((plid) => {\n\t\t\t\t\tconst obj_idx = current_impressions.placements.findIndex(\n\t\t\t\t\t\t(obj) => obj.id === plid\n\t\t\t\t\t);\n\n\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\tcurrent_impressions.placements[obj_idx] = {\n\t\t\t\t\t\t\tid: plid,\n\t\t\t\t\t\t\ti: parseInt(current_impressions.placements[obj_idx].i, 10) + 1,\n\t\t\t\t\t\t};\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrent_impressions.placements.push({ id: plid, i: 1 });\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(\n\t\t\t\t\tthis.adImpressionCookie,\n\t\t\t\t\tJSON.stringify(current_impressions),\n\t\t\t\t\t{\n\t\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Track ad impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_ad_impressions = function (current_ads) {\n\t\t\tlet current_impressions = this.get_user_ad_impressions();\n\n\t\t\tif (typeof current_ads !== \"undefined\" && current_ads.length > 0) {\n\t\t\t\tif (typeof current_impressions.ads === \"undefined\") {\n\t\t\t\t\tcurrent_impressions.ads = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_ads.forEach((ad) => {\n\t\t\t\t\tif (typeof ad.adId !== \"undefined\") {\n\t\t\t\t\t\tconst adId = parseInt(ad.adId, 10);\n\n\t\t\t\t\t\tconst obj_idx = current_impressions.ads.findIndex(\n\t\t\t\t\t\t\t(obj) => obj.id === adId\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\t\tcurrent_impressions.ads[obj_idx].i =\n\t\t\t\t\t\t\t\tparseInt(current_impressions.ads[obj_idx].i, 10) + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcurrent_impressions.ads.push({ id: adId, i: 1 });\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(\n\t\t\t\t\tthis.adImpressionCookie,\n\t\t\t\t\tJSON.stringify(current_impressions),\n\t\t\t\t\t{\n\t\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Track ad impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_ad_clicks = function (current_ads) {\n\t\t\tlet current_clicks = this.get_user_ad_clicks();\n\n\t\t\tif (typeof current_ads !== \"undefined\" && current_ads.length > 0) {\n\t\t\t\tif (typeof current_clicks.ads === \"undefined\") {\n\t\t\t\t\tcurrent_clicks.ads = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_ads.forEach((ad) => {\n\t\t\t\t\tif (typeof ad.adId !== \"undefined\") {\n\t\t\t\t\t\tconst adId = parseInt(ad.adId, 10);\n\n\t\t\t\t\t\tconst obj_idx = current_clicks.ads.findIndex(\n\t\t\t\t\t\t\t(obj) => obj.id === adId\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\t\tcurrent_clicks.ads[obj_idx].c =\n\t\t\t\t\t\t\t\tparseInt(current_clicks.ads[obj_idx].c, 10) + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcurrent_clicks.ads.push({ id: adId, c: 1 });\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(this.adClickCookie, JSON.stringify(current_clicks), {\n\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Get ad impressions to pass to server if loading over ajax.\n\t\t */\n\t\tWOVisitorPrototype.get_user_ad_impressions = function () {\n\t\t\tconst current_impressions = Cookies.get(this.adImpressionCookie);\n\n\t\t\tif (typeof current_impressions === \"undefined\") {\n\t\t\t\treturn { ads: [], placements: [] };\n\t\t\t}\n\n\t\t\treturn JSON.parse(current_impressions);\n\t\t};\n\n\t\t/**\n\t\t * Get ad clicks to pass to server if loading over ajax.\n\t\t */\n\t\tWOVisitorPrototype.get_user_ad_clicks = function () {\n\t\t\tconst current_clicks = Cookies.get(this.adClickCookie);\n\n\t\t\tif (typeof current_clicks === \"undefined\") {\n\t\t\t\treturn { ads: [] };\n\t\t\t}\n\n\t\t\treturn JSON.parse(current_clicks);\n\t\t};\n\n\t\t/**\n\t\t * Set the referrer cookie.\n\t\t */\n\t\tWOVisitorPrototype.maybe_set_referrer_cookie = function () {\n\t\t\tif (typeof Cookies.get(this.referrerCookie) === \"undefined\") {\n\t\t\t\tCookies.set(this.referrerCookie, document.referrer);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Get the referrer cookie.\n\t\t */\n\t\tWOVisitorPrototype.get_referrer = function () {\n\t\t\tconst referrer = Cookies.get(this.referrerCookie);\n\t\t\tif (typeof referrer === \"undefined\") {\n\t\t\t\treturn \"\";\n\t\t\t}\n\n\t\t\treturn referrer;\n\t\t};\n\n\t\t/**\n\t\t * Get visitor information cookie.\n\t\t */\n\t\tWOVisitorPrototype.get_visitor_cookie = function () {\n\t\t\tconst visitor = Cookies.get(this.visitorCookie);\n\n\t\t\tif (typeof visitor === \"undefined\") {\n\t\t\t\treturn {};\n\t\t\t}\n\n\t\t\treturn visitor;\n\t\t};\n\n\t\t/**\n\t\t * Set visitor information cookie.\n\t\t */\n\t\tWOVisitorPrototype.set_visitor_cookie = function () {\n\t\t\tconst visitor_obj = {\n\t\t\t\tviewportWidth: window.innerWidth,\n\t\t\t\tbrowserLanguage: navigator.language || navigator.userLanguage,\n\t\t\t};\n\n\t\t\tCookies.set(this.visitorCookie, JSON.stringify(visitor_obj));\n\t\t};\n\t});\n\n\tconst woVisitor = new WOVisitor();\n\twoVisitor.maybe_set_referrer_cookie();\n\twoVisitor.set_visitor_cookie();\n\n\t/**\n\t * DOMContentLoaded\n\t */\n\tdocument.addEventListener(\n\t\t\"DOMContentLoaded\",\n\t\tfunction () {\n\t\t\tconst woUtil = new WOUtil();\n\n\t\t\t/**\n\t\t\t * Initialize rotating ads that are already loaded on the page.\n\t\t\t *\n\t\t\t */\n\t\t\tnew WORotateInit(\n\t\t\t\twoUtil.ignorePopupAds(\n\t\t\t\t\tdocument.getElementsByClassName(woUtil.prefixed(\"rotate\"))\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tconst woTracker = typeof WOTrack !== \"undefined\" ? new WOTrack() : null;\n\n\t\t\t/**\n\t\t\t * Find all ads that are already loaded on the page and track impressions\n\t\t\t */\n\t\t\tif (woTracker) {\n\t\t\t\twoTracker.trackImpressionsAndBindClicksBySelector(\n\t\t\t\t\tdocument,\n\t\t\t\t\t\".\" + woUtil.prefixed(\"ad\"),\n\t\t\t\t\t\"woslide\", // ignore rotate slides,\n\t\t\t\t\ttrue // ignore popups\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst woFrontPro =\n\t\t\t\ttypeof WOFrontPro !== \"undefined\" ? new WOFrontPro() : null;\n\n\t\t\tif (woFrontPro) {\n\t\t\t\twoFrontPro.loadAds({ woVisitor: woVisitor, woTracker: woTracker });\n\n\t\t\t\tif (adcmdr_front.integrations.includes(\"buddypress\")) {\n\t\t\t\t\tconst buddypress = document.getElementById(\"buddypress\");\n\t\t\t\t\tif (buddypress && !buddypress.querySelector(\".activity-list\")) {\n\t\t\t\t\t\tconst observer = new MutationObserver((mutations, obs) => {\n\t\t\t\t\t\t\tif (buddypress.querySelector(\".activity-list\")) {\n\t\t\t\t\t\t\t\tnew WORotateInit(\n\t\t\t\t\t\t\t\t\twoUtil.ignorePopupAds(\n\t\t\t\t\t\t\t\t\t\tbuddypress.getElementsByClassName(woUtil.prefixed(\"rotate\"))\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\tif (woTracker) {\n\t\t\t\t\t\t\t\t\twoTracker.trackImpressionsAndBindClicksBySelector(\n\t\t\t\t\t\t\t\t\t\tbuddypress,\n\t\t\t\t\t\t\t\t\t\t\".\" + woUtil.prefixed(\"ad\"),\n\t\t\t\t\t\t\t\t\t\t\"woslide\", // ignore rotate slides,\n\t\t\t\t\t\t\t\t\t\ttrue // ignore popups\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\twoFrontPro.loadAds({\n\t\t\t\t\t\t\t\t\twoVisitor: woVisitor,\n\t\t\t\t\t\t\t\t\twoTracker: woTracker,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tobs.disconnect();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tobserver.observe(buddypress, {\n\t\t\t\t\t\t\tchildList: true,\n\t\t\t\t\t\t\tsubtree: true,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdocument.dispatchEvent(new Event(\"adcmdrAdsLoaded\"));\n\t\t\t}\n\t\t},\n\t\tfalse\n\t);\n\n\tdocument.addEventListener(\"adcmdrAdsLoaded\", function () {\n\t\twoVisitor.track_impression_cookie();\n\t\twoVisitor.update_user_placement_impressions();\n\t});\n})();\n"],"names":["Cookies","_window","window","WOUtil","WOUtilPrototype","prototype","prefix","adcmdr_front","prefixed","str","sep","arguments","length","undefined","ignorePopupAds","elements","_this","_toConsumableArray","filter","element","currentElement","parentElement","classList","contains","WOVisitor","woUtil","impressionCookie","cookies","i","referrerCookie","r","visitorCookie","v","adImpressionCookie","i_a","adClickCookie","c_a","WOVisitorPrototype","impressions","get","parseInt","track_impression_cookie","set","expires","update_user_placement_impressions","current_impressions","get_user_ad_impressions","current_placements","placements","forEach","plid","obj_idx","findIndex","obj","id","push","JSON","stringify","update_user_ad_impressions","current_ads","ads","ad","adId","update_user_ad_clicks","current_clicks","get_user_ad_clicks","c","parse","maybe_set_referrer_cookie","document","referrer","get_referrer","get_visitor_cookie","visitor","set_visitor_cookie","visitor_obj","viewportWidth","innerWidth","browserLanguage","navigator","language","userLanguage","woVisitor","addEventListener","WORotateInit","getElementsByClassName","woTracker","WOTrack","trackImpressionsAndBindClicksBySelector","woFrontPro","WOFrontPro","loadAds","integrations","includes","buddypress","getElementById","querySelector","observer","MutationObserver","mutations","obs","disconnect","observe","childList","subtree","dispatchEvent","Event"],"sourceRoot":""}
  • ad-commander/tags/1.1.15/dist/js/placement-post.js

    r3115166 r3297455  
    1 (()=>{var e={899:()=>{jQuery(document).ready((function(e){e(".adcmdr-color-picker").each((function(){var r=e(this);r.wpColorPicker({change:function(e){r.val(e.target.value||""),console.log(r.val())}})}))}))}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var c=r[o]={exports:{}};return e[o](c,c.exports,t),c.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{"use strict";t(899);jQuery(document).ready((function(e){e("#_adcmdr_placement_position").setting_restrict(),e("input[name='_adcmdr_popup_display_when']").setting_restrict({restricted_selector:".adcmdr-popup-restrict"})}))})()})();
     1(()=>{var e={899:()=>{jQuery(document).ready((function(e){e(".adcmdr-color-picker").each((function(){var r=e(this);r.wpColorPicker({change:function(e){r.val(e.target.value||"")}})}))}))}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var c=r[o]={exports:{}};return e[o](c,c.exports,t),c.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{"use strict";t(899);jQuery(document).ready((function(e){e("#_adcmdr_placement_position").setting_restrict(),e("input[name='_adcmdr_popup_display_when']").setting_restrict({restricted_selector:".adcmdr-popup-restrict"})}))})()})();
  • ad-commander/tags/1.1.15/dist/js/placement-post.js.map

    r3115166 r3297455  
    1 {"version":3,"file":"/dist/js/placement-post.js","mappings":";;;;;;;;;AAAAA,MAAM,CAACC,QAAQ,CAAC,CAACC,KAAK,CAAC,UAAUC,CAAC,EAAE;EACnCA,CAAC,CAAC,sBAAsB,CAAC,CAACC,IAAI,CAAC,YAAY;IAC1C,IAAMC,KAAK,GAAGF,CAAC,CAAC,IAAI,CAAC;IACrBE,KAAK,CAACC,aAAa,CAAC;MACnBC,MAAM,EAAE,SAAAA,OAAUC,CAAC,EAAE;QACpBH,KAAK,CAACI,GAAG,CAACD,CAAC,CAACE,MAAM,CAACC,KAAK,IAAI,EAAE,CAAC;QAC/BC,OAAO,CAACC,GAAG,CAACR,KAAK,CAACI,GAAG,CAAC,CAAC,CAAC;MACzB;IACD,CAAC,CAAC;EACH,CAAC,CAAC;AACH,CAAC,CAAC;;;;;;UCVF;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;ACNgD;AAEhDT,MAAM,CAACC,QAAQ,CAAC,CAACC,KAAK,CAAC,UAAUC,CAAC,EAAE;EACnCA,CAAC,CAAC,6BAA6B,CAAC,CAACY,gBAAgB,CAAC,CAAC;EAEnDZ,CAAC,CAAC,0CAA0C,CAAC,CAACY,gBAAgB,CAAC;IAC9DC,mBAAmB,EAAE;EACtB,CAAC,CAAC;AACH,CAAC,CAAC,C","sources":["webpack://wo/./src/js/admin/color-pickers.js","webpack://wo/webpack/bootstrap","webpack://wo/webpack/runtime/compat get default export","webpack://wo/webpack/runtime/define property getters","webpack://wo/webpack/runtime/hasOwnProperty shorthand","webpack://wo/webpack/runtime/make namespace object","webpack://wo/./src/js/admin/placement-post.js"],"sourcesContent":["jQuery(document).ready(function ($) {\n\t$(\".adcmdr-color-picker\").each(function () {\n\t\tconst $this = $(this);\n\t\t$this.wpColorPicker({\n\t\t\tchange: function (e) {\n\t\t\t\t$this.val(e.target.value || \"\");\n\t\t\t\tconsole.log($this.val());\n\t\t\t},\n\t\t});\n\t});\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import * as colorPickers from \"./color-pickers\";\n\njQuery(document).ready(function ($) {\n\t$(\"#_adcmdr_placement_position\").setting_restrict();\n\n\t$(\"input[name='_adcmdr_popup_display_when']\").setting_restrict({\n\t\trestricted_selector: \".adcmdr-popup-restrict\",\n\t});\n});\n"],"names":["jQuery","document","ready","$","each","$this","wpColorPicker","change","e","val","target","value","console","log","colorPickers","setting_restrict","restricted_selector"],"sourceRoot":""}
     1{"version":3,"file":"/dist/js/placement-post.js","mappings":";;;;;;;;;AAAAA,MAAM,CAACC,QAAQ,CAAC,CAACC,KAAK,CAAC,UAAUC,CAAC,EAAE;EACnCA,CAAC,CAAC,sBAAsB,CAAC,CAACC,IAAI,CAAC,YAAY;IAC1C,IAAMC,KAAK,GAAGF,CAAC,CAAC,IAAI,CAAC;IACrBE,KAAK,CAACC,aAAa,CAAC;MACnBC,MAAM,EAAE,SAAAA,OAAUC,CAAC,EAAE;QACpBH,KAAK,CAACI,GAAG,CAACD,CAAC,CAACE,MAAM,CAACC,KAAK,IAAI,EAAE,CAAC;MAChC;IACD,CAAC,CAAC;EACH,CAAC,CAAC;AACH,CAAC,CAAC;;;;;;UCTF;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;ACNgD;AAEhDX,MAAM,CAACC,QAAQ,CAAC,CAACC,KAAK,CAAC,UAAUC,CAAC,EAAE;EACnCA,CAAC,CAAC,6BAA6B,CAAC,CAACU,gBAAgB,CAAC,CAAC;EAEnDV,CAAC,CAAC,0CAA0C,CAAC,CAACU,gBAAgB,CAAC;IAC9DC,mBAAmB,EAAE;EACtB,CAAC,CAAC;AACH,CAAC,CAAC,C","sources":["webpack://wo/./src/js/admin/color-pickers.js","webpack://wo/webpack/bootstrap","webpack://wo/webpack/runtime/compat get default export","webpack://wo/webpack/runtime/define property getters","webpack://wo/webpack/runtime/hasOwnProperty shorthand","webpack://wo/webpack/runtime/make namespace object","webpack://wo/./src/js/admin/placement-post.js"],"sourcesContent":["jQuery(document).ready(function ($) {\n\t$(\".adcmdr-color-picker\").each(function () {\n\t\tconst $this = $(this);\n\t\t$this.wpColorPicker({\n\t\t\tchange: function (e) {\n\t\t\t\t$this.val(e.target.value || \"\");\n\t\t\t},\n\t\t});\n\t});\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import * as colorPickers from \"./color-pickers\";\n\njQuery(document).ready(function ($) {\n\t$(\"#_adcmdr_placement_position\").setting_restrict();\n\n\t$(\"input[name='_adcmdr_popup_display_when']\").setting_restrict({\n\t\trestricted_selector: \".adcmdr-popup-restrict\",\n\t});\n});\n"],"names":["jQuery","document","ready","$","each","$this","wpColorPicker","change","e","val","target","value","colorPickers","setting_restrict","restricted_selector"],"sourceRoot":""}
  • ad-commander/tags/1.1.15/includes/AdCommander.php

    r3271922 r3297455  
    1313     */
    1414    public static function version() {
    15         return '1.1.14';
     15        return '1.1.15';
    1616    }
    1717
  • ad-commander/tags/1.1.15/includes/AdminPlacementPostMeta.php

    r3268081 r3297455  
    385385            <?php $this->meta()->message( __( 'Ads will inject after this paragraph number. They will inject into the parent of the paragraph.', 'ad-commander' ) ); ?>
    386386        </div>
     387        <?php
     388        $bbpress_restrict = array_map(
     389            function ( $key ) {
     390                return 'adcmdr-mode-restrict--' . $key;
     391            },
     392            bbPressInterface::bbpress_theme_placements()
     393        );
     394        ?>
     395        <div class="<?php echo esc_attr( Admin::metaitem_classes( 'inject_at_bbpress_post' ) ); ?> <?php echo esc_attr( implode( ' ', array_merge( array( 'adcmdr-mode-restrict' ), $bbpress_restrict ) ) ); ?>">
     396            <?php
     397            $this->meta()->label( 'inject_at_bbpress_post', __( 'Inject at post #', 'ad-commander' ) );
     398            $this->meta()->input(
     399                'inject_at_bbpress_post',
     400                absint( $this->meta()->get_value( $this->current_meta(), 'inject_at_bbpress_post', 1 ) ),
     401                'number'
     402            )
     403            ?>
     404        </div>
     405        <?php
     406        $bbpress_restrict = array_map(
     407            function ( $key ) {
     408                return 'adcmdr-mode-restrict--' . $key;
     409            },
     410            array_keys( buddyPressInterface::buddypress_placement_positions() )
     411        );
     412        ?>
     413        <div class="<?php echo esc_attr( Admin::metaitem_classes( 'inject_at_buddypress_entry' ) ); ?> <?php echo esc_attr( implode( ' ', array_merge( array( 'adcmdr-mode-restrict' ), $bbpress_restrict ) ) ); ?>">
     414            <?php
     415            $this->meta()->label( 'inject_at_buddypress_entry', __( 'Inject at entry #', 'ad-commander' ) );
     416            $this->meta()->input(
     417                'inject_at_buddypress_entry',
     418                absint( $this->meta()->get_value( $this->current_meta(), 'inject_at_buddypress_entry', 1 ) ),
     419                'number'
     420            )
     421            ?>
     422        </div>
    387423        <div class="<?php echo esc_attr( Admin::metaitem_classes( array( 'disable_consent', 'divide' ) ) ); ?>">
    388424            <?php
  • ad-commander/tags/1.1.15/includes/Frontend.php

    r3115166 r3297455  
    450450                 */
    451451                $front_args = array(
    452                     'ajaxurl' => admin_url( 'admin-ajax.php' ),
    453                     'prefix'  => esc_html( $prefix ),
    454                     'cookies' => array(
     452                    'ajaxurl'      => admin_url( 'admin-ajax.php' ),
     453                    'prefix'       => esc_html( $prefix ),
     454                    'cookies'      => array(
    455455                        'i'   => Visitor::instance()->impression_cookie_name(),
    456456                        'i_a' => Visitor::instance()->ad_impression_cookie_name(),
     
    459459                        'v'   => Visitor::instance()->visitor_cookie_name(),
    460460                    ),
    461                     'actions' => apply_filters( 'adcmdr_frontend_actions', $this->get_ajax_actions( false ) ),
     461                    'actions'      => apply_filters( 'adcmdr_frontend_actions', $this->get_ajax_actions( false ) ),
     462                    'integrations' => array(),
    462463                );
     464
     465                if ( $is_pro && buddyPressInterface::is_buddypress_active() ) {
     466                    $front_args['integrations'][] = 'buddypress';
     467                }
    463468
    464469                /**
  • ad-commander/tags/1.1.15/includes/Placement.php

    r3268081 r3297455  
    167167
    168168        if ( ! empty( $placements ) ) {
    169             wo_log( 'display placements' );
    170169            $placements = $this->process_placements( $placements, true );
    171170
     
    325324    public function get_placements() {
    326325        if ( ! $this->processed_placements ) {
    327             wo_log( 'get_placements processed_placements' );
    328326            $this->processed_placements = $this->process_placements( Query::placements() );
    329327        }
     
    483481                        if ( ! apply_filters( 'adcmdr_pro_placement_passes_content_targeting', true, $this->meta()->get_value( $placement['meta'], 'content_conditions', false ), $placement['placement_id'] ) ||
    484482                            ! apply_filters( 'adcmdr_pro_placement_passes_visitor_targeting', true, $this->meta()->get_value( $placement['meta'], 'visitor_conditions', false ), $placement['placement_id'] ) ) {
    485                                 wo_log( 'failed filters' );
    486483                            continue;
    487484                        }
     
    562559        }
    563560
    564         wo_log( 'get_placements' );
    565561        $placements = $this->get_placements();
    566562
     
    576572
    577573            if ( isset( $placements['after_content'] ) && ! empty( $placements['after_content'] ) ) {
    578                 wo_log( 'after_content' );
    579574                $content = $content . $this->build_placement_ads( $placements['after_content'] );
    580575            }
  • ad-commander/tags/1.1.15/includes/PlacementPostMeta.php

    r3181689 r3297455  
    9090                    'default' => 1,
    9191                ),
     92                'inject_at_bbpress_post'     => array(
     93                    'type'     => 'int',
     94                    'default'  => 1,
     95                    'required' => array( 'placement_position' => bbPressInterface::bbpress_theme_placements() ),
     96                ),
     97                'inject_at_buddypress_entry' => array(
     98                    'type'     => 'int',
     99                    'default'  => 1,
     100                    'required' => array( 'placement_position' => array_keys( buddyPressInterface::buddypress_placement_positions() ) ),
     101                ),
    92102            ),
    93103            TargetingMeta::post_meta_keys(),
     
    101111     */
    102112    public static function placement_positions() {
    103         return array(
     113        $placements = array(
    104114            'before_content' => __( 'Content: Before Content', 'ad-commander' ),
    105115            'after_content'  => __( 'Content: After Content', 'ad-commander' ),
     
    112122            'body_close_tag' => __( 'HTML: Before </body>', 'ad-commander' ),
    113123        );
     124
     125        if ( bbPressInterface::is_bbpress_active() ) {
     126            $placements = array_merge( $placements, bbPressInterface::bbpress_placement_positions() );
     127        }
     128
     129        if ( buddyPressInterface::is_buddypress_active() ) {
     130            $placements = array_merge( $placements, buddyPressInterface::buddypress_placement_positions() );
     131        }
     132
     133        return $placements;
    114134    }
    115135
  • ad-commander/tags/1.1.15/includes/ProBridge.php

    r3268081 r3297455  
    4949                return version_compare( AdCommanderPro::version(), '1.1.7', '>=' );
    5050            break;
     51
     52            case 'bbPress':
     53            case 'buddyPress':
     54                return version_compare( AdCommanderPro::version(), '1.1.10', '>=' ) && version_compare( AdCommander::version(), '1.1.15', '>=' );
    5155        }
    5256
     
    171175     */
    172176    public function pro_placement_positions() {
    173         return array( 'within_content', 'post_list', 'above_title', 'after_p_tag', 'popup' );
     177        return array_merge(
     178            array( 'within_content', 'post_list', 'above_title', 'after_p_tag', 'popup' ),
     179            array_keys( bbPressInterface::bbpress_placement_positions() ),
     180            array_keys( buddyPressInterface::buddypress_placement_positions() )
     181        );
    174182    }
    175183
  • ad-commander/tags/1.1.15/package-lock.json

    r3268081 r3297455  
    69196919        },
    69206920        "node_modules/http-proxy-middleware": {
    6921             "version": "2.0.7",
    6922             "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz",
    6923             "integrity": "sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA==",
     6921            "version": "2.0.9",
     6922            "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.9.tgz",
     6923            "integrity": "sha512-c1IyJYLYppU574+YI7R4QyX2ystMtVXZwIdzazUIPIJsHuWNd+mho2j+bKoHftndicGj9yh+xjd+l0yj7VeT1Q==",
    69246924            "dev": true,
    69256925            "license": "MIT",
  • ad-commander/tags/1.1.15/readme.txt

    r3271922 r3297455  
    44Requires at least: 6.2
    55Tested up to: 6.8
    6 Stable tag: 1.1.14
     6Stable tag: 1.1.15
    77Requires PHP: 7.4
    88License: GPLv3
     
    5353* Expire ads by date or maximum stats
    5454* Advanced automatic placement positions
     55* Automatic placements for bbPress and BuddyPress
    5556* Lazy load ads when they enter the viewport
    5657* Popup ads
     
    8788Ad Commander supports inserting any script code using the Text or Code ad type. These ads can be inserted within your site or placed in the site head or body using automatic placements. The flexibility of this approach should allow any ad network to be used on your site. If you have trouble with a specific ad network, please reach out to support for help.
    8889
     90= Does Ad Commander work with bbPress and BuddyPress =
     91
     92There are two options for implementing ads in bbPress or BuddyPress:
     93
     94The free version of Ad Commander can be implemented by editing your bbPress and BuddyPress templates using template tags.
     95
     96Ad Commander Pro includes Automatic Placements for bbPress and BuddyPress. View our documentation for a full list of supported ad locations.
     97
    8998= Can Ad Commander require consent before displaying ads? =
    9099
     
    110119
    111120== Changelog ==
     121= 1.1.15 =
     122* Support for Ad Commander Pro 1.1.10; bbPress and BuddyPress integrations
     123* Misc bug fixes and improvements
     124
    112125= 1.1.14 =
    113126* WordPress 6.8 compatibility
  • ad-commander/tags/1.1.15/src/js/admin/color-pickers.js

    r3115166 r3297455  
    55            change: function (e) {
    66                $this.val(e.target.value || "");
    7                 console.log($this.val());
    87            },
    98        });
  • ad-commander/tags/1.1.15/src/js/front/front.js

    r3111304 r3297455  
    315315            if (woFrontPro) {
    316316                woFrontPro.loadAds({ woVisitor: woVisitor, woTracker: woTracker });
     317
     318                /**
     319                 * BuddyPress integration
     320                 */
     321                if (adcmdr_front.integrations.includes("buddypress")) {
     322                    const buddypress = document.getElementById("buddypress");
     323                    if (buddypress && !buddypress.querySelector(".activity-list")) {
     324                        const observer = new MutationObserver((mutations, obs) => {
     325                            if (buddypress.querySelector(".activity-list")) {
     326                                new WORotateInit(
     327                                    woUtil.ignorePopupAds(
     328                                        buddypress.getElementsByClassName(woUtil.prefixed("rotate"))
     329                                    )
     330                                );
     331
     332                                if (woTracker) {
     333                                    woTracker.trackImpressionsAndBindClicksBySelector(
     334                                        buddypress,
     335                                        "." + woUtil.prefixed("ad"),
     336                                        "woslide", // ignore rotate slides,
     337                                        true // ignore popups
     338                                    );
     339                                }
     340
     341                                woFrontPro.loadAds({
     342                                    woVisitor: woVisitor,
     343                                    woTracker: woTracker,
     344                                });
     345                                obs.disconnect();
     346                            }
     347                        });
     348
     349                        observer.observe(buddypress, {
     350                            childList: true,
     351                            subtree: true,
     352                        });
     353                    }
     354                }
    317355            } else {
    318356                document.dispatchEvent(new Event("adcmdrAdsLoaded"));
  • ad-commander/trunk/ad-commander.php

    r3271922 r3297455  
    44 * Plugin URI:      https://wpadcommander.com
    55 * Description:     Insert, schedule and track custom advertising banners or script ads from AdSense, Amazon, and other affiliate networks into your site.
    6  * Version:         1.1.14
     6 * Version:         1.1.15
    77 * Author:          Wild Operation
    88 * Author URI:      https://wildoperation.com
     
    1414 * @subpackage Ad Commander - Banner & Ad Manager
    1515 * @since 1.0.0
    16  * @version 1.1.14
     16 * @version 1.1.15
    1717 */
    1818
  • ad-commander/trunk/dist/js/front.js

    r3101435 r3297455  
    11/*! For license information please see front.js.LICENSE.txt */
    2 (()=>{"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)e[i]=r[i]}return e}var t=function t(r,i){function n(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({},i,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in o)o[a]&&(s+="; "+a,!0!==o[a]&&(s+="="+o[a].split(";")[0]));return document.cookie=t+"="+r.write(n,t)+s}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],i={},n=0;n<t.length;n++){var o=t[n].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(i[a]=r.read(s,a),e===a)break}catch(e){}}return e?i[e]:i}},remove:function(t,r){n(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}!function(){var e=(("undefined"!=typeof window?window:this).WOUtil=function(){return this}).prototype;e.prefix=function(){return void 0!==adcmdr_front.prefix?adcmdr_front.prefix:"adcmdr"},e.prefixed=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return this.prefix()+t+e},e.ignorePopupAds=function(e){var t=this;return r(e).filter((function(e){for(var r=e;r.parentElement;){if(r.parentElement.classList.contains(t.prefixed("pop-content")))return!1;r=r.parentElement}return!0}))}}(),function(){var e=("undefined"!=typeof window?window:this).WOVisitor=function(){this.woUtil=new WOUtil,this.impressionCookie=adcmdr_front.cookies.i,this.referrerCookie=adcmdr_front.cookies.r,this.visitorCookie=adcmdr_front.cookies.v,this.adImpressionCookie=adcmdr_front.cookies.i_a,this.adClickCookie=adcmdr_front.cookies.c_a;var r=e.prototype;r.impressions=function(){var e=t.get(this.impressionCookie);return e&&void 0!==e?parseInt(e,10):0},r.track_impression_cookie=function(){t.set(this.impressionCookie,this.impressions()+1,{expires:400})},r.update_user_placement_impressions=function(){var e=this.get_user_ad_impressions(),r=window[this.woUtil.prefixed("plids","_")]||[];window[this.woUtil.prefixed("plids","_")]=[],void 0!==r&&r.length>0&&(void 0===e.placements&&(e.placements=[]),r.forEach((function(t){var r=e.placements.findIndex((function(e){return e.id===t}));r>=0?e.placements[r]={id:t,i:parseInt(e.placements[r].i,10)+1}:e.placements.push({id:t,i:1})})),t.set(this.adImpressionCookie,JSON.stringify(e),{expires:400}))},r.update_user_ad_impressions=function(e){var r=this.get_user_ad_impressions();void 0!==e&&e.length>0&&(void 0===r.ads&&(r.ads=[]),e.forEach((function(e){if(void 0!==e.adId){var t=parseInt(e.adId,10),i=r.ads.findIndex((function(e){return e.id===t}));i>=0?r.ads[i].i=parseInt(r.ads[i].i,10)+1:r.ads.push({id:t,i:1})}})),t.set(this.adImpressionCookie,JSON.stringify(r),{expires:400}))},r.update_user_ad_clicks=function(e){var r=this.get_user_ad_clicks();void 0!==e&&e.length>0&&(void 0===r.ads&&(r.ads=[]),e.forEach((function(e){if(void 0!==e.adId){var t=parseInt(e.adId,10),i=r.ads.findIndex((function(e){return e.id===t}));i>=0?r.ads[i].c=parseInt(r.ads[i].c,10)+1:r.ads.push({id:t,c:1})}})),t.set(this.adClickCookie,JSON.stringify(r),{expires:400}))},r.get_user_ad_impressions=function(){var e=t.get(this.adImpressionCookie);return void 0===e?{ads:[],placements:[]}:JSON.parse(e)},r.get_user_ad_clicks=function(){var e=t.get(this.adClickCookie);return void 0===e?{ads:[]}:JSON.parse(e)},r.maybe_set_referrer_cookie=function(){void 0===t.get(this.referrerCookie)&&t.set(this.referrerCookie,document.referrer)},r.get_referrer=function(){var e=t.get(this.referrerCookie);return void 0===e?"":e},r.get_visitor_cookie=function(){var e=t.get(this.visitorCookie);return void 0===e?{}:e},r.set_visitor_cookie=function(){var e={viewportWidth:window.innerWidth,browserLanguage:navigator.language||navigator.userLanguage};t.set(this.visitorCookie,JSON.stringify(e))}},r=new e;r.maybe_set_referrer_cookie(),r.set_visitor_cookie(),document.addEventListener("DOMContentLoaded",(function(){var e=new WOUtil;new WORotateInit(e.ignorePopupAds(document.getElementsByClassName(e.prefixed("rotate"))));var t="undefined"!=typeof WOTrack?new WOTrack:null;t&&t.trackImpressionsAndBindClicksBySelector(document,"."+e.prefixed("ad"),"woslide",!0);var i="undefined"!=typeof WOFrontPro?new WOFrontPro:null;i?i.loadAds({woVisitor:r,woTracker:t}):document.dispatchEvent(new Event("adcmdrAdsLoaded"))}),!1),document.addEventListener("adcmdrAdsLoaded",(function(){r.track_impression_cookie(),r.update_user_placement_impressions()}))}()})();
     2(()=>{"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)e[i]=r[i]}return e}var t=function t(r,i){function n(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({},i,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var d in o)o[d]&&(s+="; "+d,!0!==o[d]&&(s+="="+o[d].split(";")[0]));return document.cookie=t+"="+r.write(n,t)+s}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],i={},n=0;n<t.length;n++){var o=t[n].split("="),s=o.slice(1).join("=");try{var d=decodeURIComponent(o[0]);if(i[d]=r.read(s,d),e===d)break}catch(e){}}return e?i[e]:i}},remove:function(t,r){n(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}!function(){var e=(("undefined"!=typeof window?window:this).WOUtil=function(){return this}).prototype;e.prefix=function(){return void 0!==adcmdr_front.prefix?adcmdr_front.prefix:"adcmdr"},e.prefixed=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return this.prefix()+t+e},e.ignorePopupAds=function(e){var t=this;return r(e).filter((function(e){for(var r=e;r.parentElement;){if(r.parentElement.classList.contains(t.prefixed("pop-content")))return!1;r=r.parentElement}return!0}))}}(),function(){var e=("undefined"!=typeof window?window:this).WOVisitor=function(){this.woUtil=new WOUtil,this.impressionCookie=adcmdr_front.cookies.i,this.referrerCookie=adcmdr_front.cookies.r,this.visitorCookie=adcmdr_front.cookies.v,this.adImpressionCookie=adcmdr_front.cookies.i_a,this.adClickCookie=adcmdr_front.cookies.c_a;var r=e.prototype;r.impressions=function(){var e=t.get(this.impressionCookie);return e&&void 0!==e?parseInt(e,10):0},r.track_impression_cookie=function(){t.set(this.impressionCookie,this.impressions()+1,{expires:400})},r.update_user_placement_impressions=function(){var e=this.get_user_ad_impressions(),r=window[this.woUtil.prefixed("plids","_")]||[];window[this.woUtil.prefixed("plids","_")]=[],void 0!==r&&r.length>0&&(void 0===e.placements&&(e.placements=[]),r.forEach((function(t){var r=e.placements.findIndex((function(e){return e.id===t}));r>=0?e.placements[r]={id:t,i:parseInt(e.placements[r].i,10)+1}:e.placements.push({id:t,i:1})})),t.set(this.adImpressionCookie,JSON.stringify(e),{expires:400}))},r.update_user_ad_impressions=function(e){var r=this.get_user_ad_impressions();void 0!==e&&e.length>0&&(void 0===r.ads&&(r.ads=[]),e.forEach((function(e){if(void 0!==e.adId){var t=parseInt(e.adId,10),i=r.ads.findIndex((function(e){return e.id===t}));i>=0?r.ads[i].i=parseInt(r.ads[i].i,10)+1:r.ads.push({id:t,i:1})}})),t.set(this.adImpressionCookie,JSON.stringify(r),{expires:400}))},r.update_user_ad_clicks=function(e){var r=this.get_user_ad_clicks();void 0!==e&&e.length>0&&(void 0===r.ads&&(r.ads=[]),e.forEach((function(e){if(void 0!==e.adId){var t=parseInt(e.adId,10),i=r.ads.findIndex((function(e){return e.id===t}));i>=0?r.ads[i].c=parseInt(r.ads[i].c,10)+1:r.ads.push({id:t,c:1})}})),t.set(this.adClickCookie,JSON.stringify(r),{expires:400}))},r.get_user_ad_impressions=function(){var e=t.get(this.adImpressionCookie);return void 0===e?{ads:[],placements:[]}:JSON.parse(e)},r.get_user_ad_clicks=function(){var e=t.get(this.adClickCookie);return void 0===e?{ads:[]}:JSON.parse(e)},r.maybe_set_referrer_cookie=function(){void 0===t.get(this.referrerCookie)&&t.set(this.referrerCookie,document.referrer)},r.get_referrer=function(){var e=t.get(this.referrerCookie);return void 0===e?"":e},r.get_visitor_cookie=function(){var e=t.get(this.visitorCookie);return void 0===e?{}:e},r.set_visitor_cookie=function(){var e={viewportWidth:window.innerWidth,browserLanguage:navigator.language||navigator.userLanguage};t.set(this.visitorCookie,JSON.stringify(e))}},r=new e;r.maybe_set_referrer_cookie(),r.set_visitor_cookie(),document.addEventListener("DOMContentLoaded",(function(){var e=new WOUtil;new WORotateInit(e.ignorePopupAds(document.getElementsByClassName(e.prefixed("rotate"))));var t="undefined"!=typeof WOTrack?new WOTrack:null;t&&t.trackImpressionsAndBindClicksBySelector(document,"."+e.prefixed("ad"),"woslide",!0);var i="undefined"!=typeof WOFrontPro?new WOFrontPro:null;if(i){if(i.loadAds({woVisitor:r,woTracker:t}),adcmdr_front.integrations.includes("buddypress")){var n=document.getElementById("buddypress");if(n&&!n.querySelector(".activity-list"))new MutationObserver((function(o,s){n.querySelector(".activity-list")&&(new WORotateInit(e.ignorePopupAds(n.getElementsByClassName(e.prefixed("rotate")))),t&&t.trackImpressionsAndBindClicksBySelector(n,"."+e.prefixed("ad"),"woslide",!0),i.loadAds({woVisitor:r,woTracker:t}),s.disconnect())})).observe(n,{childList:!0,subtree:!0})}}else document.dispatchEvent(new Event("adcmdrAdsLoaded"))}),!1),document.addEventListener("adcmdrAdsLoaded",(function(){r.track_impression_cookie(),r.update_user_placement_impressions()}))}()})();
  • ad-commander/trunk/dist/js/front.js.map

    r3115166 r3297455  
    1 {"version":3,"file":"/dist/js/front.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,EAAE;AACtC,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,kCAAkC;;AAElC;AACA;AACA;;AAEA;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M,CAACX,cAAc,CACpBuD,QAAQ,CAACgB,sBAAsB,CAAC5D,MAAM,CAACjB,QAAQ,CAAC,QAAQ,CAAC,CAC1D,CACD,CAAC;IAED,IAAM8E,SAAS,GAAG,OAAOC,OAAO,KAAK,WAAW,GAAG,IAAIA,OAAO,CAAC,CAAC,GAAG,IAAI;;IAEvE;AACH;AACA;IACG,IAAID,SAAS,EAAE;MACdA,SAAS,CAACE,uCAAuC,CAChDnB,QAAQ,EACR,GAAG,GAAG5C,MAAM,CAACjB,QAAQ,CAAC,IAAI,CAAC,EAC3B,SAAS;MAAE;MACX,IAAI,CAAC;MACN,CAAC;IACF;IAEA,IAAMiF,UAAU,GACf,OAAOC,UAAU,KAAK,WAAW,GAAG,IAAIA,UAAU,CAAC,CAAC,GAAG,IAAI;IAE5D,IAAID,UAAU,EAAE;MACfA,UAAU,CAACE,OAAO,CAAC;QAAET,SAAS,EAAEA,SAAS;QAAEI,SAAS,EAAEA;MAAU,CAAC,CAAC;IACnE,CAAC,MAAM;MACNjB,QAAQ,CAACuB,aAAa,CAAC,IAAIC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrD;EACD,CAAC,EACD,KACD,CAAC;EAEDxB,QAAQ,CAACc,gBAAgB,CAAC,iBAAiB,EAAE,YAAY;IACxDD,SAAS,CAACzC,uBAAuB,CAAC,CAAC;IACnCyC,SAAS,CAACtC,iCAAiC,CAAC,CAAC;EAC9C,CAAC,CAAC;AACH,CAAC,EAAE,CAAC,C","sources":["webpack://wo/./node_modules/js-cookie/dist/js.cookie.mjs","webpack://wo/webpack/bootstrap","webpack://wo/webpack/runtime/define property getters","webpack://wo/webpack/runtime/hasOwnProperty shorthand","webpack://wo/webpack/runtime/make namespace object","webpack://wo/./src/js/front/front.js"],"sourcesContent":["/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = arguments[i];\n    for (var key in source) {\n      target[key] = source[key];\n    }\n  }\n  return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n  read: function (value) {\n    if (value[0] === '\"') {\n      value = value.slice(1, -1);\n    }\n    return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n  },\n  write: function (value) {\n    return encodeURIComponent(value).replace(\n      /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n      decodeURIComponent\n    )\n  }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n  function set (name, value, attributes) {\n    if (typeof document === 'undefined') {\n      return\n    }\n\n    attributes = assign({}, defaultAttributes, attributes);\n\n    if (typeof attributes.expires === 'number') {\n      attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n    }\n    if (attributes.expires) {\n      attributes.expires = attributes.expires.toUTCString();\n    }\n\n    name = encodeURIComponent(name)\n      .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n      .replace(/[()]/g, escape);\n\n    var stringifiedAttributes = '';\n    for (var attributeName in attributes) {\n      if (!attributes[attributeName]) {\n        continue\n      }\n\n      stringifiedAttributes += '; ' + attributeName;\n\n      if (attributes[attributeName] === true) {\n        continue\n      }\n\n      // Considers RFC 6265 section 5.2:\n      // ...\n      // 3.  If the remaining unparsed-attributes contains a %x3B (\";\")\n      //     character:\n      // Consume the characters of the unparsed-attributes up to,\n      // not including, the first %x3B (\";\") character.\n      // ...\n      stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n    }\n\n    return (document.cookie =\n      name + '=' + converter.write(value, name) + stringifiedAttributes)\n  }\n\n  function get (name) {\n    if (typeof document === 'undefined' || (arguments.length && !name)) {\n      return\n    }\n\n    // To prevent the for loop in the first place assign an empty array\n    // in case there are no cookies at all.\n    var cookies = document.cookie ? document.cookie.split('; ') : [];\n    var jar = {};\n    for (var i = 0; i < cookies.length; i++) {\n      var parts = cookies[i].split('=');\n      var value = parts.slice(1).join('=');\n\n      try {\n        var found = decodeURIComponent(parts[0]);\n        jar[found] = converter.read(value, found);\n\n        if (name === found) {\n          break\n        }\n      } catch (e) {}\n    }\n\n    return name ? jar[name] : jar\n  }\n\n  return Object.create(\n    {\n      set,\n      get,\n      remove: function (name, attributes) {\n        set(\n          name,\n          '',\n          assign({}, attributes, {\n            expires: -1\n          })\n        );\n      },\n      withAttributes: function (attributes) {\n        return init(this.converter, assign({}, this.attributes, attributes))\n      },\n      withConverter: function (converter) {\n        return init(assign({}, this.converter, converter), this.attributes)\n      }\n    },\n    {\n      attributes: { value: Object.freeze(defaultAttributes) },\n      converter: { value: Object.freeze(converter) }\n    }\n  )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import Cookies from \"js-cookie\";\n\n(function () {\n\tconst _window = typeof window !== \"undefined\" ? window : this;\n\n\t/**\n\t * WOUtilities instance\n\t */\n\tconst WOUtil = (_window.WOUtil = function () {\n\t\treturn this;\n\t});\n\n\t/**\n\t * Prototype functions\n\t */\n\tconst WOUtilPrototype = WOUtil.prototype;\n\n\tWOUtilPrototype.prefix = function () {\n\t\treturn typeof adcmdr_front.prefix !== \"undefined\"\n\t\t\t? adcmdr_front.prefix\n\t\t\t: \"adcmdr\";\n\t};\n\n\tWOUtilPrototype.prefixed = function (str, sep = \"-\") {\n\t\treturn this.prefix() + sep + str;\n\t};\n\n\tWOUtilPrototype.ignorePopupAds = function (elements) {\n\t\treturn [...elements].filter((element) => {\n\t\t\tlet currentElement = element;\n\t\t\twhile (currentElement.parentElement) {\n\t\t\t\tif (\n\t\t\t\t\tcurrentElement.parentElement.classList.contains(\n\t\t\t\t\t\tthis.prefixed(\"pop-content\")\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tcurrentElement = currentElement.parentElement;\n\t\t\t}\n\t\t\treturn true;\n\t\t});\n\t};\n})();\n\n(function () {\n\tconst _window = typeof window !== \"undefined\" ? window : this;\n\n\t/**\n\t * WOVisitor instance\n\t */\n\tconst WOVisitor = (_window.WOVisitor = function () {\n\t\tthis.woUtil = new WOUtil();\n\n\t\tthis.impressionCookie = adcmdr_front.cookies.i;\n\t\tthis.referrerCookie = adcmdr_front.cookies.r;\n\t\tthis.visitorCookie = adcmdr_front.cookies.v;\n\t\tthis.adImpressionCookie = adcmdr_front.cookies.i_a;\n\t\tthis.adClickCookie = adcmdr_front.cookies.c_a;\n\n\t\t/**\n\t\t * Prototype functions\n\t\t */\n\t\tconst WOVisitorPrototype = WOVisitor.prototype;\n\n\t\t/**\n\t\t * Get current site impressions.\n\t\t */\n\t\tWOVisitorPrototype.impressions = function () {\n\t\t\tconst i = Cookies.get(this.impressionCookie);\n\n\t\t\tif (!i || typeof i === \"undefined\") {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\treturn parseInt(i, 10);\n\t\t};\n\n\t\t/**\n\t\t * Track site impressions.\n\t\t */\n\t\tWOVisitorPrototype.track_impression_cookie = function () {\n\t\t\tCookies.set(this.impressionCookie, this.impressions() + 1, {\n\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t});\n\t\t};\n\n\t\t/**\n\t\t * Track placement impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_placement_impressions = function () {\n\t\t\tlet current_impressions = this.get_user_ad_impressions();\n\t\t\tconst current_placements =\n\t\t\t\twindow[this.woUtil.prefixed(\"plids\", \"_\")] || [];\n\n\t\t\twindow[this.woUtil.prefixed(\"plids\", \"_\")] = [];\n\n\t\t\tif (\n\t\t\t\ttypeof current_placements !== \"undefined\" &&\n\t\t\t\tcurrent_placements.length > 0\n\t\t\t) {\n\t\t\t\tif (typeof current_impressions.placements === \"undefined\") {\n\t\t\t\t\tcurrent_impressions.placements = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_placements.forEach((plid) => {\n\t\t\t\t\tconst obj_idx = current_impressions.placements.findIndex(\n\t\t\t\t\t\t(obj) => obj.id === plid\n\t\t\t\t\t);\n\n\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\tcurrent_impressions.placements[obj_idx] = {\n\t\t\t\t\t\t\tid: plid,\n\t\t\t\t\t\t\ti: parseInt(current_impressions.placements[obj_idx].i, 10) + 1,\n\t\t\t\t\t\t};\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrent_impressions.placements.push({ id: plid, i: 1 });\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(\n\t\t\t\t\tthis.adImpressionCookie,\n\t\t\t\t\tJSON.stringify(current_impressions),\n\t\t\t\t\t{\n\t\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Track ad impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_ad_impressions = function (current_ads) {\n\t\t\tlet current_impressions = this.get_user_ad_impressions();\n\n\t\t\tif (typeof current_ads !== \"undefined\" && current_ads.length > 0) {\n\t\t\t\tif (typeof current_impressions.ads === \"undefined\") {\n\t\t\t\t\tcurrent_impressions.ads = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_ads.forEach((ad) => {\n\t\t\t\t\tif (typeof ad.adId !== \"undefined\") {\n\t\t\t\t\t\tconst adId = parseInt(ad.adId, 10);\n\n\t\t\t\t\t\tconst obj_idx = current_impressions.ads.findIndex(\n\t\t\t\t\t\t\t(obj) => obj.id === adId\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\t\tcurrent_impressions.ads[obj_idx].i =\n\t\t\t\t\t\t\t\tparseInt(current_impressions.ads[obj_idx].i, 10) + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcurrent_impressions.ads.push({ id: adId, i: 1 });\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(\n\t\t\t\t\tthis.adImpressionCookie,\n\t\t\t\t\tJSON.stringify(current_impressions),\n\t\t\t\t\t{\n\t\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Track ad impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_ad_clicks = function (current_ads) {\n\t\t\tlet current_clicks = this.get_user_ad_clicks();\n\n\t\t\tif (typeof current_ads !== \"undefined\" && current_ads.length > 0) {\n\t\t\t\tif (typeof current_clicks.ads === \"undefined\") {\n\t\t\t\t\tcurrent_clicks.ads = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_ads.forEach((ad) => {\n\t\t\t\t\tif (typeof ad.adId !== \"undefined\") {\n\t\t\t\t\t\tconst adId = parseInt(ad.adId, 10);\n\n\t\t\t\t\t\tconst obj_idx = current_clicks.ads.findIndex(\n\t\t\t\t\t\t\t(obj) => obj.id === adId\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\t\tcurrent_clicks.ads[obj_idx].c =\n\t\t\t\t\t\t\t\tparseInt(current_clicks.ads[obj_idx].c, 10) + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcurrent_clicks.ads.push({ id: adId, c: 1 });\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(this.adClickCookie, JSON.stringify(current_clicks), {\n\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Get ad impressions to pass to server if loading over ajax.\n\t\t */\n\t\tWOVisitorPrototype.get_user_ad_impressions = function () {\n\t\t\tconst current_impressions = Cookies.get(this.adImpressionCookie);\n\n\t\t\tif (typeof current_impressions === \"undefined\") {\n\t\t\t\treturn { ads: [], placements: [] };\n\t\t\t}\n\n\t\t\treturn JSON.parse(current_impressions);\n\t\t};\n\n\t\t/**\n\t\t * Get ad clicks to pass to server if loading over ajax.\n\t\t */\n\t\tWOVisitorPrototype.get_user_ad_clicks = function () {\n\t\t\tconst current_clicks = Cookies.get(this.adClickCookie);\n\n\t\t\tif (typeof current_clicks === \"undefined\") {\n\t\t\t\treturn { ads: [] };\n\t\t\t}\n\n\t\t\treturn JSON.parse(current_clicks);\n\t\t};\n\n\t\t/**\n\t\t * Set the referrer cookie.\n\t\t */\n\t\tWOVisitorPrototype.maybe_set_referrer_cookie = function () {\n\t\t\tif (typeof Cookies.get(this.referrerCookie) === \"undefined\") {\n\t\t\t\tCookies.set(this.referrerCookie, document.referrer);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Get the referrer cookie.\n\t\t */\n\t\tWOVisitorPrototype.get_referrer = function () {\n\t\t\tconst referrer = Cookies.get(this.referrerCookie);\n\t\t\tif (typeof referrer === \"undefined\") {\n\t\t\t\treturn \"\";\n\t\t\t}\n\n\t\t\treturn referrer;\n\t\t};\n\n\t\t/**\n\t\t * Get visitor information cookie.\n\t\t */\n\t\tWOVisitorPrototype.get_visitor_cookie = function () {\n\t\t\tconst visitor = Cookies.get(this.visitorCookie);\n\n\t\t\tif (typeof visitor === \"undefined\") {\n\t\t\t\treturn {};\n\t\t\t}\n\n\t\t\treturn visitor;\n\t\t};\n\n\t\t/**\n\t\t * Set visitor information cookie.\n\t\t */\n\t\tWOVisitorPrototype.set_visitor_cookie = function () {\n\t\t\tconst visitor_obj = {\n\t\t\t\tviewportWidth: window.innerWidth,\n\t\t\t\tbrowserLanguage: navigator.language || navigator.userLanguage,\n\t\t\t};\n\n\t\t\tCookies.set(this.visitorCookie, JSON.stringify(visitor_obj));\n\t\t};\n\t});\n\n\tconst woVisitor = new WOVisitor();\n\twoVisitor.maybe_set_referrer_cookie();\n\twoVisitor.set_visitor_cookie();\n\n\t/**\n\t * DOMContentLoaded\n\t */\n\tdocument.addEventListener(\n\t\t\"DOMContentLoaded\",\n\t\tfunction () {\n\t\t\tconst woUtil = new WOUtil();\n\n\t\t\t/**\n\t\t\t * Initialize rotating ads that are already loaded on the page.\n\t\t\t *\n\t\t\t */\n\t\t\tnew WORotateInit(\n\t\t\t\twoUtil.ignorePopupAds(\n\t\t\t\t\tdocument.getElementsByClassName(woUtil.prefixed(\"rotate\"))\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tconst woTracker = typeof WOTrack !== \"undefined\" ? new WOTrack() : null;\n\n\t\t\t/**\n\t\t\t * Find all ads that are already loaded on the page and track impressions\n\t\t\t */\n\t\t\tif (woTracker) {\n\t\t\t\twoTracker.trackImpressionsAndBindClicksBySelector(\n\t\t\t\t\tdocument,\n\t\t\t\t\t\".\" + woUtil.prefixed(\"ad\"),\n\t\t\t\t\t\"woslide\", // ignore rotate slides,\n\t\t\t\t\ttrue // ignore popups\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst woFrontPro =\n\t\t\t\ttypeof WOFrontPro !== \"undefined\" ? new WOFrontPro() : null;\n\n\t\t\tif (woFrontPro) {\n\t\t\t\twoFrontPro.loadAds({ woVisitor: woVisitor, woTracker: woTracker });\n\t\t\t} else {\n\t\t\t\tdocument.dispatchEvent(new Event(\"adcmdrAdsLoaded\"));\n\t\t\t}\n\t\t},\n\t\tfalse\n\t);\n\n\tdocument.addEventListener(\"adcmdrAdsLoaded\", function () {\n\t\twoVisitor.track_impression_cookie();\n\t\twoVisitor.update_user_placement_impressions();\n\t});\n})();\n"],"names":["Cookies","_window","window","WOUtil","WOUtilPrototype","prototype","prefix","adcmdr_front","prefixed","str","sep","arguments","length","undefined","ignorePopupAds","elements","_this","_toConsumableArray","filter","element","currentElement","parentElement","classList","contains","WOVisitor","woUtil","impressionCookie","cookies","i","referrerCookie","r","visitorCookie","v","adImpressionCookie","i_a","adClickCookie","c_a","WOVisitorPrototype","impressions","get","parseInt","track_impression_cookie","set","expires","update_user_placement_impressions","current_impressions","get_user_ad_impressions","current_placements","placements","forEach","plid","obj_idx","findIndex","obj","id","push","JSON","stringify","update_user_ad_impressions","current_ads","ads","ad","adId","update_user_ad_clicks","current_clicks","get_user_ad_clicks","c","parse","maybe_set_referrer_cookie","document","referrer","get_referrer","get_visitor_cookie","visitor","set_visitor_cookie","visitor_obj","viewportWidth","innerWidth","browserLanguage","navigator","language","userLanguage","woVisitor","addEventListener","WORotateInit","getElementsByClassName","woTracker","WOTrack","trackImpressionsAndBindClicksBySelector","woFrontPro","WOFrontPro","loadAds","dispatchEvent","Event"],"sourceRoot":""}
     1{"version":3,"file":"/dist/js/front.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,EAAE;AACtC,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,kCAAkC;;AAElC;AACA;AACA;;AAEA;AACA;AACA,qEAAqE;AACrE;AACA;AACA,0CAA0C;AAC1C;AACA,uEAAuE;AACvE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,6DAA6D;AAC7D;AACA,oBAAoB,oBAAoB;AACxC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA,WAAW;AACX;AACA,OAAO;AACP;AACA,6CAA6C;AAC7C,OAAO;AACP;AACA,6BAA6B;AAC7B;AACA,KAAK;AACL;AACA,oBAAoB,yCAAyC;AAC7D,mBAAmB;AACnB;AACA;AACA;;AAEA,mCAAmC,WAAW;AAC9C;;AAE0B;;;;;;;UCrI1B;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;ACNgC;AAEhC,CAAC,YAAY;EACZ,IAAMC,OAAO,GAAG,OAAOC,MAAM,KAAK,WAAW,GAAGA,MAAM,GAAG,IAAI;;EAE7D;AACD;AACA;EACC,IAAMC,MAAM,GAAIF,OAAO,CAACE,MAAM,GAAG,YAAY;IAC5C,OAAO,IAAI;EACZ,CAAE;;EAEF;AACD;AACA;EACC,IAAMC,eAAe,GAAGD,MAAM,CAACE,SAAS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BAAsB,CAAC5D,MAAM,CAACjB,QAAQ,CAAC,QAAQ,CAAC,CAC5D,CACD,CAAC;cAED,IAAI8E,SAAS,EAAE;gBACdA,SAAS,CAACE,uCAAuC,CAChDM,UAAU,EACV,GAAG,GAAGrE,MAAM,CAACjB,QAAQ,CAAC,IAAI,CAAC,EAC3B,SAAS;gBAAE;gBACX,IAAI,CAAC;gBACN,CAAC;cACF;cAEAiF,UAAU,CAACE,OAAO,CAAC;gBAClBT,SAAS,EAAEA,SAAS;gBACpBI,SAAS,EAAEA;cACZ,CAAC,CAAC;cACFc,GAAG,CAACC,UAAU,CAAC,CAAC;YACjB;UACD,CAAC,CAAC;UAEFJ,QAAQ,CAACK,OAAO,CAACR,UAAU,EAAE;YAC5BS,SAAS,EAAE,IAAI;YACfC,OAAO,EAAE;UACV,CAAC,CAAC;QACH;MACD;IACD,CAAC,MAAM;MACNnC,QAAQ,CAACoC,aAAa,CAAC,IAAIC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrD;EACD,CAAC,EACD,KACD,CAAC;EAEDrC,QAAQ,CAACc,gBAAgB,CAAC,iBAAiB,EAAE,YAAY;IACxDD,SAAS,CAACzC,uBAAuB,CAAC,CAAC;IACnCyC,SAAS,CAACtC,iCAAiC,CAAC,CAAC;EAC9C,CAAC,CAAC;AACH,CAAC,EAAE,CAAC,C","sources":["webpack://wo/./node_modules/js-cookie/dist/js.cookie.mjs","webpack://wo/webpack/bootstrap","webpack://wo/webpack/runtime/define property getters","webpack://wo/webpack/runtime/hasOwnProperty shorthand","webpack://wo/webpack/runtime/make namespace object","webpack://wo/./src/js/front/front.js"],"sourcesContent":["/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = arguments[i];\n    for (var key in source) {\n      target[key] = source[key];\n    }\n  }\n  return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n  read: function (value) {\n    if (value[0] === '\"') {\n      value = value.slice(1, -1);\n    }\n    return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n  },\n  write: function (value) {\n    return encodeURIComponent(value).replace(\n      /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n      decodeURIComponent\n    )\n  }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n  function set (name, value, attributes) {\n    if (typeof document === 'undefined') {\n      return\n    }\n\n    attributes = assign({}, defaultAttributes, attributes);\n\n    if (typeof attributes.expires === 'number') {\n      attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n    }\n    if (attributes.expires) {\n      attributes.expires = attributes.expires.toUTCString();\n    }\n\n    name = encodeURIComponent(name)\n      .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n      .replace(/[()]/g, escape);\n\n    var stringifiedAttributes = '';\n    for (var attributeName in attributes) {\n      if (!attributes[attributeName]) {\n        continue\n      }\n\n      stringifiedAttributes += '; ' + attributeName;\n\n      if (attributes[attributeName] === true) {\n        continue\n      }\n\n      // Considers RFC 6265 section 5.2:\n      // ...\n      // 3.  If the remaining unparsed-attributes contains a %x3B (\";\")\n      //     character:\n      // Consume the characters of the unparsed-attributes up to,\n      // not including, the first %x3B (\";\") character.\n      // ...\n      stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n    }\n\n    return (document.cookie =\n      name + '=' + converter.write(value, name) + stringifiedAttributes)\n  }\n\n  function get (name) {\n    if (typeof document === 'undefined' || (arguments.length && !name)) {\n      return\n    }\n\n    // To prevent the for loop in the first place assign an empty array\n    // in case there are no cookies at all.\n    var cookies = document.cookie ? document.cookie.split('; ') : [];\n    var jar = {};\n    for (var i = 0; i < cookies.length; i++) {\n      var parts = cookies[i].split('=');\n      var value = parts.slice(1).join('=');\n\n      try {\n        var found = decodeURIComponent(parts[0]);\n        jar[found] = converter.read(value, found);\n\n        if (name === found) {\n          break\n        }\n      } catch (e) {}\n    }\n\n    return name ? jar[name] : jar\n  }\n\n  return Object.create(\n    {\n      set,\n      get,\n      remove: function (name, attributes) {\n        set(\n          name,\n          '',\n          assign({}, attributes, {\n            expires: -1\n          })\n        );\n      },\n      withAttributes: function (attributes) {\n        return init(this.converter, assign({}, this.attributes, attributes))\n      },\n      withConverter: function (converter) {\n        return init(assign({}, this.converter, converter), this.attributes)\n      }\n    },\n    {\n      attributes: { value: Object.freeze(defaultAttributes) },\n      converter: { value: Object.freeze(converter) }\n    }\n  )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import Cookies from \"js-cookie\";\n\n(function () {\n\tconst _window = typeof window !== \"undefined\" ? window : this;\n\n\t/**\n\t * WOUtilities instance\n\t */\n\tconst WOUtil = (_window.WOUtil = function () {\n\t\treturn this;\n\t});\n\n\t/**\n\t * Prototype functions\n\t */\n\tconst WOUtilPrototype = WOUtil.prototype;\n\n\tWOUtilPrototype.prefix = function () {\n\t\treturn typeof adcmdr_front.prefix !== \"undefined\"\n\t\t\t? adcmdr_front.prefix\n\t\t\t: \"adcmdr\";\n\t};\n\n\tWOUtilPrototype.prefixed = function (str, sep = \"-\") {\n\t\treturn this.prefix() + sep + str;\n\t};\n\n\tWOUtilPrototype.ignorePopupAds = function (elements) {\n\t\treturn [...elements].filter((element) => {\n\t\t\tlet currentElement = element;\n\t\t\twhile (currentElement.parentElement) {\n\t\t\t\tif (\n\t\t\t\t\tcurrentElement.parentElement.classList.contains(\n\t\t\t\t\t\tthis.prefixed(\"pop-content\")\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tcurrentElement = currentElement.parentElement;\n\t\t\t}\n\t\t\treturn true;\n\t\t});\n\t};\n})();\n\n(function () {\n\tconst _window = typeof window !== \"undefined\" ? window : this;\n\n\t/**\n\t * WOVisitor instance\n\t */\n\tconst WOVisitor = (_window.WOVisitor = function () {\n\t\tthis.woUtil = new WOUtil();\n\n\t\tthis.impressionCookie = adcmdr_front.cookies.i;\n\t\tthis.referrerCookie = adcmdr_front.cookies.r;\n\t\tthis.visitorCookie = adcmdr_front.cookies.v;\n\t\tthis.adImpressionCookie = adcmdr_front.cookies.i_a;\n\t\tthis.adClickCookie = adcmdr_front.cookies.c_a;\n\n\t\t/**\n\t\t * Prototype functions\n\t\t */\n\t\tconst WOVisitorPrototype = WOVisitor.prototype;\n\n\t\t/**\n\t\t * Get current site impressions.\n\t\t */\n\t\tWOVisitorPrototype.impressions = function () {\n\t\t\tconst i = Cookies.get(this.impressionCookie);\n\n\t\t\tif (!i || typeof i === \"undefined\") {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\treturn parseInt(i, 10);\n\t\t};\n\n\t\t/**\n\t\t * Track site impressions.\n\t\t */\n\t\tWOVisitorPrototype.track_impression_cookie = function () {\n\t\t\tCookies.set(this.impressionCookie, this.impressions() + 1, {\n\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t});\n\t\t};\n\n\t\t/**\n\t\t * Track placement impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_placement_impressions = function () {\n\t\t\tlet current_impressions = this.get_user_ad_impressions();\n\t\t\tconst current_placements =\n\t\t\t\twindow[this.woUtil.prefixed(\"plids\", \"_\")] || [];\n\n\t\t\twindow[this.woUtil.prefixed(\"plids\", \"_\")] = [];\n\n\t\t\tif (\n\t\t\t\ttypeof current_placements !== \"undefined\" &&\n\t\t\t\tcurrent_placements.length > 0\n\t\t\t) {\n\t\t\t\tif (typeof current_impressions.placements === \"undefined\") {\n\t\t\t\t\tcurrent_impressions.placements = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_placements.forEach((plid) => {\n\t\t\t\t\tconst obj_idx = current_impressions.placements.findIndex(\n\t\t\t\t\t\t(obj) => obj.id === plid\n\t\t\t\t\t);\n\n\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\tcurrent_impressions.placements[obj_idx] = {\n\t\t\t\t\t\t\tid: plid,\n\t\t\t\t\t\t\ti: parseInt(current_impressions.placements[obj_idx].i, 10) + 1,\n\t\t\t\t\t\t};\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrent_impressions.placements.push({ id: plid, i: 1 });\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(\n\t\t\t\t\tthis.adImpressionCookie,\n\t\t\t\t\tJSON.stringify(current_impressions),\n\t\t\t\t\t{\n\t\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Track ad impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_ad_impressions = function (current_ads) {\n\t\t\tlet current_impressions = this.get_user_ad_impressions();\n\n\t\t\tif (typeof current_ads !== \"undefined\" && current_ads.length > 0) {\n\t\t\t\tif (typeof current_impressions.ads === \"undefined\") {\n\t\t\t\t\tcurrent_impressions.ads = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_ads.forEach((ad) => {\n\t\t\t\t\tif (typeof ad.adId !== \"undefined\") {\n\t\t\t\t\t\tconst adId = parseInt(ad.adId, 10);\n\n\t\t\t\t\t\tconst obj_idx = current_impressions.ads.findIndex(\n\t\t\t\t\t\t\t(obj) => obj.id === adId\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\t\tcurrent_impressions.ads[obj_idx].i =\n\t\t\t\t\t\t\t\tparseInt(current_impressions.ads[obj_idx].i, 10) + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcurrent_impressions.ads.push({ id: adId, i: 1 });\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(\n\t\t\t\t\tthis.adImpressionCookie,\n\t\t\t\t\tJSON.stringify(current_impressions),\n\t\t\t\t\t{\n\t\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Track ad impressions to cookie.\n\t\t */\n\t\tWOVisitorPrototype.update_user_ad_clicks = function (current_ads) {\n\t\t\tlet current_clicks = this.get_user_ad_clicks();\n\n\t\t\tif (typeof current_ads !== \"undefined\" && current_ads.length > 0) {\n\t\t\t\tif (typeof current_clicks.ads === \"undefined\") {\n\t\t\t\t\tcurrent_clicks.ads = [];\n\t\t\t\t}\n\n\t\t\t\tcurrent_ads.forEach((ad) => {\n\t\t\t\t\tif (typeof ad.adId !== \"undefined\") {\n\t\t\t\t\t\tconst adId = parseInt(ad.adId, 10);\n\n\t\t\t\t\t\tconst obj_idx = current_clicks.ads.findIndex(\n\t\t\t\t\t\t\t(obj) => obj.id === adId\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif (obj_idx >= 0) {\n\t\t\t\t\t\t\tcurrent_clicks.ads[obj_idx].c =\n\t\t\t\t\t\t\t\tparseInt(current_clicks.ads[obj_idx].c, 10) + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcurrent_clicks.ads.push({ id: adId, c: 1 });\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tCookies.set(this.adClickCookie, JSON.stringify(current_clicks), {\n\t\t\t\t\texpires: 400, // maximum allowed cookie days in Chrome\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Get ad impressions to pass to server if loading over ajax.\n\t\t */\n\t\tWOVisitorPrototype.get_user_ad_impressions = function () {\n\t\t\tconst current_impressions = Cookies.get(this.adImpressionCookie);\n\n\t\t\tif (typeof current_impressions === \"undefined\") {\n\t\t\t\treturn { ads: [], placements: [] };\n\t\t\t}\n\n\t\t\treturn JSON.parse(current_impressions);\n\t\t};\n\n\t\t/**\n\t\t * Get ad clicks to pass to server if loading over ajax.\n\t\t */\n\t\tWOVisitorPrototype.get_user_ad_clicks = function () {\n\t\t\tconst current_clicks = Cookies.get(this.adClickCookie);\n\n\t\t\tif (typeof current_clicks === \"undefined\") {\n\t\t\t\treturn { ads: [] };\n\t\t\t}\n\n\t\t\treturn JSON.parse(current_clicks);\n\t\t};\n\n\t\t/**\n\t\t * Set the referrer cookie.\n\t\t */\n\t\tWOVisitorPrototype.maybe_set_referrer_cookie = function () {\n\t\t\tif (typeof Cookies.get(this.referrerCookie) === \"undefined\") {\n\t\t\t\tCookies.set(this.referrerCookie, document.referrer);\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Get the referrer cookie.\n\t\t */\n\t\tWOVisitorPrototype.get_referrer = function () {\n\t\t\tconst referrer = Cookies.get(this.referrerCookie);\n\t\t\tif (typeof referrer === \"undefined\") {\n\t\t\t\treturn \"\";\n\t\t\t}\n\n\t\t\treturn referrer;\n\t\t};\n\n\t\t/**\n\t\t * Get visitor information cookie.\n\t\t */\n\t\tWOVisitorPrototype.get_visitor_cookie = function () {\n\t\t\tconst visitor = Cookies.get(this.visitorCookie);\n\n\t\t\tif (typeof visitor === \"undefined\") {\n\t\t\t\treturn {};\n\t\t\t}\n\n\t\t\treturn visitor;\n\t\t};\n\n\t\t/**\n\t\t * Set visitor information cookie.\n\t\t */\n\t\tWOVisitorPrototype.set_visitor_cookie = function () {\n\t\t\tconst visitor_obj = {\n\t\t\t\tviewportWidth: window.innerWidth,\n\t\t\t\tbrowserLanguage: navigator.language || navigator.userLanguage,\n\t\t\t};\n\n\t\t\tCookies.set(this.visitorCookie, JSON.stringify(visitor_obj));\n\t\t};\n\t});\n\n\tconst woVisitor = new WOVisitor();\n\twoVisitor.maybe_set_referrer_cookie();\n\twoVisitor.set_visitor_cookie();\n\n\t/**\n\t * DOMContentLoaded\n\t */\n\tdocument.addEventListener(\n\t\t\"DOMContentLoaded\",\n\t\tfunction () {\n\t\t\tconst woUtil = new WOUtil();\n\n\t\t\t/**\n\t\t\t * Initialize rotating ads that are already loaded on the page.\n\t\t\t *\n\t\t\t */\n\t\t\tnew WORotateInit(\n\t\t\t\twoUtil.ignorePopupAds(\n\t\t\t\t\tdocument.getElementsByClassName(woUtil.prefixed(\"rotate\"))\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tconst woTracker = typeof WOTrack !== \"undefined\" ? new WOTrack() : null;\n\n\t\t\t/**\n\t\t\t * Find all ads that are already loaded on the page and track impressions\n\t\t\t */\n\t\t\tif (woTracker) {\n\t\t\t\twoTracker.trackImpressionsAndBindClicksBySelector(\n\t\t\t\t\tdocument,\n\t\t\t\t\t\".\" + woUtil.prefixed(\"ad\"),\n\t\t\t\t\t\"woslide\", // ignore rotate slides,\n\t\t\t\t\ttrue // ignore popups\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst woFrontPro =\n\t\t\t\ttypeof WOFrontPro !== \"undefined\" ? new WOFrontPro() : null;\n\n\t\t\tif (woFrontPro) {\n\t\t\t\twoFrontPro.loadAds({ woVisitor: woVisitor, woTracker: woTracker });\n\n\t\t\t\tif (adcmdr_front.integrations.includes(\"buddypress\")) {\n\t\t\t\t\tconst buddypress = document.getElementById(\"buddypress\");\n\t\t\t\t\tif (buddypress && !buddypress.querySelector(\".activity-list\")) {\n\t\t\t\t\t\tconst observer = new MutationObserver((mutations, obs) => {\n\t\t\t\t\t\t\tif (buddypress.querySelector(\".activity-list\")) {\n\t\t\t\t\t\t\t\tnew WORotateInit(\n\t\t\t\t\t\t\t\t\twoUtil.ignorePopupAds(\n\t\t\t\t\t\t\t\t\t\tbuddypress.getElementsByClassName(woUtil.prefixed(\"rotate\"))\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\tif (woTracker) {\n\t\t\t\t\t\t\t\t\twoTracker.trackImpressionsAndBindClicksBySelector(\n\t\t\t\t\t\t\t\t\t\tbuddypress,\n\t\t\t\t\t\t\t\t\t\t\".\" + woUtil.prefixed(\"ad\"),\n\t\t\t\t\t\t\t\t\t\t\"woslide\", // ignore rotate slides,\n\t\t\t\t\t\t\t\t\t\ttrue // ignore popups\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\twoFrontPro.loadAds({\n\t\t\t\t\t\t\t\t\twoVisitor: woVisitor,\n\t\t\t\t\t\t\t\t\twoTracker: woTracker,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tobs.disconnect();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tobserver.observe(buddypress, {\n\t\t\t\t\t\t\tchildList: true,\n\t\t\t\t\t\t\tsubtree: true,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdocument.dispatchEvent(new Event(\"adcmdrAdsLoaded\"));\n\t\t\t}\n\t\t},\n\t\tfalse\n\t);\n\n\tdocument.addEventListener(\"adcmdrAdsLoaded\", function () {\n\t\twoVisitor.track_impression_cookie();\n\t\twoVisitor.update_user_placement_impressions();\n\t});\n})();\n"],"names":["Cookies","_window","window","WOUtil","WOUtilPrototype","prototype","prefix","adcmdr_front","prefixed","str","sep","arguments","length","undefined","ignorePopupAds","elements","_this","_toConsumableArray","filter","element","currentElement","parentElement","classList","contains","WOVisitor","woUtil","impressionCookie","cookies","i","referrerCookie","r","visitorCookie","v","adImpressionCookie","i_a","adClickCookie","c_a","WOVisitorPrototype","impressions","get","parseInt","track_impression_cookie","set","expires","update_user_placement_impressions","current_impressions","get_user_ad_impressions","current_placements","placements","forEach","plid","obj_idx","findIndex","obj","id","push","JSON","stringify","update_user_ad_impressions","current_ads","ads","ad","adId","update_user_ad_clicks","current_clicks","get_user_ad_clicks","c","parse","maybe_set_referrer_cookie","document","referrer","get_referrer","get_visitor_cookie","visitor","set_visitor_cookie","visitor_obj","viewportWidth","innerWidth","browserLanguage","navigator","language","userLanguage","woVisitor","addEventListener","WORotateInit","getElementsByClassName","woTracker","WOTrack","trackImpressionsAndBindClicksBySelector","woFrontPro","WOFrontPro","loadAds","integrations","includes","buddypress","getElementById","querySelector","observer","MutationObserver","mutations","obs","disconnect","observe","childList","subtree","dispatchEvent","Event"],"sourceRoot":""}
  • ad-commander/trunk/dist/js/placement-post.js

    r3115166 r3297455  
    1 (()=>{var e={899:()=>{jQuery(document).ready((function(e){e(".adcmdr-color-picker").each((function(){var r=e(this);r.wpColorPicker({change:function(e){r.val(e.target.value||""),console.log(r.val())}})}))}))}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var c=r[o]={exports:{}};return e[o](c,c.exports,t),c.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{"use strict";t(899);jQuery(document).ready((function(e){e("#_adcmdr_placement_position").setting_restrict(),e("input[name='_adcmdr_popup_display_when']").setting_restrict({restricted_selector:".adcmdr-popup-restrict"})}))})()})();
     1(()=>{var e={899:()=>{jQuery(document).ready((function(e){e(".adcmdr-color-picker").each((function(){var r=e(this);r.wpColorPicker({change:function(e){r.val(e.target.value||"")}})}))}))}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var c=r[o]={exports:{}};return e[o](c,c.exports,t),c.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{"use strict";t(899);jQuery(document).ready((function(e){e("#_adcmdr_placement_position").setting_restrict(),e("input[name='_adcmdr_popup_display_when']").setting_restrict({restricted_selector:".adcmdr-popup-restrict"})}))})()})();
  • ad-commander/trunk/dist/js/placement-post.js.map

    r3115166 r3297455  
    1 {"version":3,"file":"/dist/js/placement-post.js","mappings":";;;;;;;;;AAAAA,MAAM,CAACC,QAAQ,CAAC,CAACC,KAAK,CAAC,UAAUC,CAAC,EAAE;EACnCA,CAAC,CAAC,sBAAsB,CAAC,CAACC,IAAI,CAAC,YAAY;IAC1C,IAAMC,KAAK,GAAGF,CAAC,CAAC,IAAI,CAAC;IACrBE,KAAK,CAACC,aAAa,CAAC;MACnBC,MAAM,EAAE,SAAAA,OAAUC,CAAC,EAAE;QACpBH,KAAK,CAACI,GAAG,CAACD,CAAC,CAACE,MAAM,CAACC,KAAK,IAAI,EAAE,CAAC;QAC/BC,OAAO,CAACC,GAAG,CAACR,KAAK,CAACI,GAAG,CAAC,CAAC,CAAC;MACzB;IACD,CAAC,CAAC;EACH,CAAC,CAAC;AACH,CAAC,CAAC;;;;;;UCVF;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;ACNgD;AAEhDT,MAAM,CAACC,QAAQ,CAAC,CAACC,KAAK,CAAC,UAAUC,CAAC,EAAE;EACnCA,CAAC,CAAC,6BAA6B,CAAC,CAACY,gBAAgB,CAAC,CAAC;EAEnDZ,CAAC,CAAC,0CAA0C,CAAC,CAACY,gBAAgB,CAAC;IAC9DC,mBAAmB,EAAE;EACtB,CAAC,CAAC;AACH,CAAC,CAAC,C","sources":["webpack://wo/./src/js/admin/color-pickers.js","webpack://wo/webpack/bootstrap","webpack://wo/webpack/runtime/compat get default export","webpack://wo/webpack/runtime/define property getters","webpack://wo/webpack/runtime/hasOwnProperty shorthand","webpack://wo/webpack/runtime/make namespace object","webpack://wo/./src/js/admin/placement-post.js"],"sourcesContent":["jQuery(document).ready(function ($) {\n\t$(\".adcmdr-color-picker\").each(function () {\n\t\tconst $this = $(this);\n\t\t$this.wpColorPicker({\n\t\t\tchange: function (e) {\n\t\t\t\t$this.val(e.target.value || \"\");\n\t\t\t\tconsole.log($this.val());\n\t\t\t},\n\t\t});\n\t});\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import * as colorPickers from \"./color-pickers\";\n\njQuery(document).ready(function ($) {\n\t$(\"#_adcmdr_placement_position\").setting_restrict();\n\n\t$(\"input[name='_adcmdr_popup_display_when']\").setting_restrict({\n\t\trestricted_selector: \".adcmdr-popup-restrict\",\n\t});\n});\n"],"names":["jQuery","document","ready","$","each","$this","wpColorPicker","change","e","val","target","value","console","log","colorPickers","setting_restrict","restricted_selector"],"sourceRoot":""}
     1{"version":3,"file":"/dist/js/placement-post.js","mappings":";;;;;;;;;AAAAA,MAAM,CAACC,QAAQ,CAAC,CAACC,KAAK,CAAC,UAAUC,CAAC,EAAE;EACnCA,CAAC,CAAC,sBAAsB,CAAC,CAACC,IAAI,CAAC,YAAY;IAC1C,IAAMC,KAAK,GAAGF,CAAC,CAAC,IAAI,CAAC;IACrBE,KAAK,CAACC,aAAa,CAAC;MACnBC,MAAM,EAAE,SAAAA,OAAUC,CAAC,EAAE;QACpBH,KAAK,CAACI,GAAG,CAACD,CAAC,CAACE,MAAM,CAACC,KAAK,IAAI,EAAE,CAAC;MAChC;IACD,CAAC,CAAC;EACH,CAAC,CAAC;AACH,CAAC,CAAC;;;;;;UCTF;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;ACNgD;AAEhDX,MAAM,CAACC,QAAQ,CAAC,CAACC,KAAK,CAAC,UAAUC,CAAC,EAAE;EACnCA,CAAC,CAAC,6BAA6B,CAAC,CAACU,gBAAgB,CAAC,CAAC;EAEnDV,CAAC,CAAC,0CAA0C,CAAC,CAACU,gBAAgB,CAAC;IAC9DC,mBAAmB,EAAE;EACtB,CAAC,CAAC;AACH,CAAC,CAAC,C","sources":["webpack://wo/./src/js/admin/color-pickers.js","webpack://wo/webpack/bootstrap","webpack://wo/webpack/runtime/compat get default export","webpack://wo/webpack/runtime/define property getters","webpack://wo/webpack/runtime/hasOwnProperty shorthand","webpack://wo/webpack/runtime/make namespace object","webpack://wo/./src/js/admin/placement-post.js"],"sourcesContent":["jQuery(document).ready(function ($) {\n\t$(\".adcmdr-color-picker\").each(function () {\n\t\tconst $this = $(this);\n\t\t$this.wpColorPicker({\n\t\t\tchange: function (e) {\n\t\t\t\t$this.val(e.target.value || \"\");\n\t\t\t},\n\t\t});\n\t});\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import * as colorPickers from \"./color-pickers\";\n\njQuery(document).ready(function ($) {\n\t$(\"#_adcmdr_placement_position\").setting_restrict();\n\n\t$(\"input[name='_adcmdr_popup_display_when']\").setting_restrict({\n\t\trestricted_selector: \".adcmdr-popup-restrict\",\n\t});\n});\n"],"names":["jQuery","document","ready","$","each","$this","wpColorPicker","change","e","val","target","value","colorPickers","setting_restrict","restricted_selector"],"sourceRoot":""}
  • ad-commander/trunk/includes/AdCommander.php

    r3271922 r3297455  
    1313     */
    1414    public static function version() {
    15         return '1.1.14';
     15        return '1.1.15';
    1616    }
    1717
  • ad-commander/trunk/includes/AdminPlacementPostMeta.php

    r3268081 r3297455  
    385385            <?php $this->meta()->message( __( 'Ads will inject after this paragraph number. They will inject into the parent of the paragraph.', 'ad-commander' ) ); ?>
    386386        </div>
     387        <?php
     388        $bbpress_restrict = array_map(
     389            function ( $key ) {
     390                return 'adcmdr-mode-restrict--' . $key;
     391            },
     392            bbPressInterface::bbpress_theme_placements()
     393        );
     394        ?>
     395        <div class="<?php echo esc_attr( Admin::metaitem_classes( 'inject_at_bbpress_post' ) ); ?> <?php echo esc_attr( implode( ' ', array_merge( array( 'adcmdr-mode-restrict' ), $bbpress_restrict ) ) ); ?>">
     396            <?php
     397            $this->meta()->label( 'inject_at_bbpress_post', __( 'Inject at post #', 'ad-commander' ) );
     398            $this->meta()->input(
     399                'inject_at_bbpress_post',
     400                absint( $this->meta()->get_value( $this->current_meta(), 'inject_at_bbpress_post', 1 ) ),
     401                'number'
     402            )
     403            ?>
     404        </div>
     405        <?php
     406        $bbpress_restrict = array_map(
     407            function ( $key ) {
     408                return 'adcmdr-mode-restrict--' . $key;
     409            },
     410            array_keys( buddyPressInterface::buddypress_placement_positions() )
     411        );
     412        ?>
     413        <div class="<?php echo esc_attr( Admin::metaitem_classes( 'inject_at_buddypress_entry' ) ); ?> <?php echo esc_attr( implode( ' ', array_merge( array( 'adcmdr-mode-restrict' ), $bbpress_restrict ) ) ); ?>">
     414            <?php
     415            $this->meta()->label( 'inject_at_buddypress_entry', __( 'Inject at entry #', 'ad-commander' ) );
     416            $this->meta()->input(
     417                'inject_at_buddypress_entry',
     418                absint( $this->meta()->get_value( $this->current_meta(), 'inject_at_buddypress_entry', 1 ) ),
     419                'number'
     420            )
     421            ?>
     422        </div>
    387423        <div class="<?php echo esc_attr( Admin::metaitem_classes( array( 'disable_consent', 'divide' ) ) ); ?>">
    388424            <?php
  • ad-commander/trunk/includes/Frontend.php

    r3115166 r3297455  
    450450                 */
    451451                $front_args = array(
    452                     'ajaxurl' => admin_url( 'admin-ajax.php' ),
    453                     'prefix'  => esc_html( $prefix ),
    454                     'cookies' => array(
     452                    'ajaxurl'      => admin_url( 'admin-ajax.php' ),
     453                    'prefix'       => esc_html( $prefix ),
     454                    'cookies'      => array(
    455455                        'i'   => Visitor::instance()->impression_cookie_name(),
    456456                        'i_a' => Visitor::instance()->ad_impression_cookie_name(),
     
    459459                        'v'   => Visitor::instance()->visitor_cookie_name(),
    460460                    ),
    461                     'actions' => apply_filters( 'adcmdr_frontend_actions', $this->get_ajax_actions( false ) ),
     461                    'actions'      => apply_filters( 'adcmdr_frontend_actions', $this->get_ajax_actions( false ) ),
     462                    'integrations' => array(),
    462463                );
     464
     465                if ( $is_pro && buddyPressInterface::is_buddypress_active() ) {
     466                    $front_args['integrations'][] = 'buddypress';
     467                }
    463468
    464469                /**
  • ad-commander/trunk/includes/Placement.php

    r3268081 r3297455  
    167167
    168168        if ( ! empty( $placements ) ) {
    169             wo_log( 'display placements' );
    170169            $placements = $this->process_placements( $placements, true );
    171170
     
    325324    public function get_placements() {
    326325        if ( ! $this->processed_placements ) {
    327             wo_log( 'get_placements processed_placements' );
    328326            $this->processed_placements = $this->process_placements( Query::placements() );
    329327        }
     
    483481                        if ( ! apply_filters( 'adcmdr_pro_placement_passes_content_targeting', true, $this->meta()->get_value( $placement['meta'], 'content_conditions', false ), $placement['placement_id'] ) ||
    484482                            ! apply_filters( 'adcmdr_pro_placement_passes_visitor_targeting', true, $this->meta()->get_value( $placement['meta'], 'visitor_conditions', false ), $placement['placement_id'] ) ) {
    485                                 wo_log( 'failed filters' );
    486483                            continue;
    487484                        }
     
    562559        }
    563560
    564         wo_log( 'get_placements' );
    565561        $placements = $this->get_placements();
    566562
     
    576572
    577573            if ( isset( $placements['after_content'] ) && ! empty( $placements['after_content'] ) ) {
    578                 wo_log( 'after_content' );
    579574                $content = $content . $this->build_placement_ads( $placements['after_content'] );
    580575            }
  • ad-commander/trunk/includes/PlacementPostMeta.php

    r3181689 r3297455  
    9090                    'default' => 1,
    9191                ),
     92                'inject_at_bbpress_post'     => array(
     93                    'type'     => 'int',
     94                    'default'  => 1,
     95                    'required' => array( 'placement_position' => bbPressInterface::bbpress_theme_placements() ),
     96                ),
     97                'inject_at_buddypress_entry' => array(
     98                    'type'     => 'int',
     99                    'default'  => 1,
     100                    'required' => array( 'placement_position' => array_keys( buddyPressInterface::buddypress_placement_positions() ) ),
     101                ),
    92102            ),
    93103            TargetingMeta::post_meta_keys(),
     
    101111     */
    102112    public static function placement_positions() {
    103         return array(
     113        $placements = array(
    104114            'before_content' => __( 'Content: Before Content', 'ad-commander' ),
    105115            'after_content'  => __( 'Content: After Content', 'ad-commander' ),
     
    112122            'body_close_tag' => __( 'HTML: Before </body>', 'ad-commander' ),
    113123        );
     124
     125        if ( bbPressInterface::is_bbpress_active() ) {
     126            $placements = array_merge( $placements, bbPressInterface::bbpress_placement_positions() );
     127        }
     128
     129        if ( buddyPressInterface::is_buddypress_active() ) {
     130            $placements = array_merge( $placements, buddyPressInterface::buddypress_placement_positions() );
     131        }
     132
     133        return $placements;
    114134    }
    115135
  • ad-commander/trunk/includes/ProBridge.php

    r3268081 r3297455  
    4949                return version_compare( AdCommanderPro::version(), '1.1.7', '>=' );
    5050            break;
     51
     52            case 'bbPress':
     53            case 'buddyPress':
     54                return version_compare( AdCommanderPro::version(), '1.1.10', '>=' ) && version_compare( AdCommander::version(), '1.1.15', '>=' );
    5155        }
    5256
     
    171175     */
    172176    public function pro_placement_positions() {
    173         return array( 'within_content', 'post_list', 'above_title', 'after_p_tag', 'popup' );
     177        return array_merge(
     178            array( 'within_content', 'post_list', 'above_title', 'after_p_tag', 'popup' ),
     179            array_keys( bbPressInterface::bbpress_placement_positions() ),
     180            array_keys( buddyPressInterface::buddypress_placement_positions() )
     181        );
    174182    }
    175183
  • ad-commander/trunk/package-lock.json

    r3268081 r3297455  
    69196919        },
    69206920        "node_modules/http-proxy-middleware": {
    6921             "version": "2.0.7",
    6922             "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz",
    6923             "integrity": "sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA==",
     6921            "version": "2.0.9",
     6922            "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.9.tgz",
     6923            "integrity": "sha512-c1IyJYLYppU574+YI7R4QyX2ystMtVXZwIdzazUIPIJsHuWNd+mho2j+bKoHftndicGj9yh+xjd+l0yj7VeT1Q==",
    69246924            "dev": true,
    69256925            "license": "MIT",
  • ad-commander/trunk/readme.txt

    r3271922 r3297455  
    44Requires at least: 6.2
    55Tested up to: 6.8
    6 Stable tag: 1.1.14
     6Stable tag: 1.1.15
    77Requires PHP: 7.4
    88License: GPLv3
     
    5353* Expire ads by date or maximum stats
    5454* Advanced automatic placement positions
     55* Automatic placements for bbPress and BuddyPress
    5556* Lazy load ads when they enter the viewport
    5657* Popup ads
     
    8788Ad Commander supports inserting any script code using the Text or Code ad type. These ads can be inserted within your site or placed in the site head or body using automatic placements. The flexibility of this approach should allow any ad network to be used on your site. If you have trouble with a specific ad network, please reach out to support for help.
    8889
     90= Does Ad Commander work with bbPress and BuddyPress =
     91
     92There are two options for implementing ads in bbPress or BuddyPress:
     93
     94The free version of Ad Commander can be implemented by editing your bbPress and BuddyPress templates using template tags.
     95
     96Ad Commander Pro includes Automatic Placements for bbPress and BuddyPress. View our documentation for a full list of supported ad locations.
     97
    8998= Can Ad Commander require consent before displaying ads? =
    9099
     
    110119
    111120== Changelog ==
     121= 1.1.15 =
     122* Support for Ad Commander Pro 1.1.10; bbPress and BuddyPress integrations
     123* Misc bug fixes and improvements
     124
    112125= 1.1.14 =
    113126* WordPress 6.8 compatibility
  • ad-commander/trunk/src/js/admin/color-pickers.js

    r3115166 r3297455  
    55            change: function (e) {
    66                $this.val(e.target.value || "");
    7                 console.log($this.val());
    87            },
    98        });
  • ad-commander/trunk/src/js/front/front.js

    r3111304 r3297455  
    315315            if (woFrontPro) {
    316316                woFrontPro.loadAds({ woVisitor: woVisitor, woTracker: woTracker });
     317
     318                /**
     319                 * BuddyPress integration
     320                 */
     321                if (adcmdr_front.integrations.includes("buddypress")) {
     322                    const buddypress = document.getElementById("buddypress");
     323                    if (buddypress && !buddypress.querySelector(".activity-list")) {
     324                        const observer = new MutationObserver((mutations, obs) => {
     325                            if (buddypress.querySelector(".activity-list")) {
     326                                new WORotateInit(
     327                                    woUtil.ignorePopupAds(
     328                                        buddypress.getElementsByClassName(woUtil.prefixed("rotate"))
     329                                    )
     330                                );
     331
     332                                if (woTracker) {
     333                                    woTracker.trackImpressionsAndBindClicksBySelector(
     334                                        buddypress,
     335                                        "." + woUtil.prefixed("ad"),
     336                                        "woslide", // ignore rotate slides,
     337                                        true // ignore popups
     338                                    );
     339                                }
     340
     341                                woFrontPro.loadAds({
     342                                    woVisitor: woVisitor,
     343                                    woTracker: woTracker,
     344                                });
     345                                obs.disconnect();
     346                            }
     347                        });
     348
     349                        observer.observe(buddypress, {
     350                            childList: true,
     351                            subtree: true,
     352                        });
     353                    }
     354                }
    317355            } else {
    318356                document.dispatchEvent(new Event("adcmdrAdsLoaded"));
Note: See TracChangeset for help on using the changeset viewer.