{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6*****************","webpack:///crosslinking-module.js","webpack:///webpack/bootstrap d5734f541ded75760e6e?820c*****************","webpack:///./src/modules/crosslinking-module.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","Voonto","getInstance","wakeUp","$elm","Logger","info","app","libPath","lookup","undefined","find","each","new_ns_source","$","attr","replace","voc_site","new_ns_linkname","voc_tcnew","voc_se"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,UAAAH,GACA,gBAAAC,SACAA,QAAA,OAAAD,IAEAD,EAAA,OAAAC,KACCK,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAP,OAGA,IAAAC,GAAAO,EAAAD,IACAP,WACAS,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAS,QAAA,EAGAT,EAAAD,QAvBA,GAAAQ,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,GAGAR,EAAA,KDgBM,SAAUL,EAAQD,GAEvB,YExDDe,QAAOC,cAAcd,QAAQ,UAAW,SAAUD,GAC9C,OACIgB,OADG,SACIC,GACHC,OAAOC,KAAP,kBAA8BnB,EAAOQ,GAErC,IAAMY,GAAMN,OAAOC,cAEbM,EAAUD,EAAIE,OAAO,yBAAyBD,OACpD,IAAgBE,SAAZF,EACA,KAAM,gCAGVJ,GAAKO,KAAK,KAAKC,KAAK,WAChB,GAAIC,GAAgBZ,OAAOa,EAAExB,MAAMyB,KAAK,QAAQC,QAAQ,sBAAuBC,UAC3EC,EAAkBL,EAAcG,QAAQ,wBAAyBG,UAAY,IAAMC,OACvFnB,QAAOa,EAAExB,MAAMyB,KAAK,OAAQG","file":"crosslinking-module.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Nibara\"] = factory();\n\telse\n\t\troot[\"Nibara\"] = factory();\n})(this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Nibara\"] = factory();\n\telse\n\t\troot[\"Nibara\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tVoonto.getInstance().define(['module'], function (module) {\n\t return {\n\t wakeUp: function wakeUp($elm) {\n\t Logger.info('wake up module ' + module.id);\n\t\n\t var app = Voonto.getInstance();\n\t\n\t var libPath = app.lookup('vocento.config.nibara').libPath;\n\t if (libPath === undefined) {\n\t throw 'nibara libPath config is empty';\n\t }\n\t\n\t $elm.find('a').each(function () {\n\t var new_ns_source = Voonto.$(this).attr('href').replace('%%value_ns_source%%', voc_site);\n\t var new_ns_linkname = new_ns_source.replace('%%value_ns_linkname%%', voc_tcnew + '.' + voc_se);\n\t Voonto.$(this).attr('href', new_ns_linkname);\n\t });\n\t\n\t function ns_onclick(q, f, u, b, o) {\n\t var i = window,\n\t l = i.ns_p,\n\t m = l && l.src,\n\t s = \"&ns_\",\n\t h = document.referrer.replace(/\\/$/, \"\"),\n\t j = {\n\t t: 0,\n\t o: 0\n\t },\n\t e = eventURL = c1_match = c2_match = \"\",\n\t c = /\\bc1=[^&]+\\b/i,\n\t g = /\\bc2=[^&]+\\b/i,\n\t p = i.encodeURIComponent ? encodeURIComponent : encodeURI,\n\t n = \"3.1212.07\";\n\t f = f || q.href;\n\t o = o || \"\";\n\t if (m && (c1_match = l.src.match(c)) && !c.test(u)) {\n\t e += \"&\" + c1_match;\n\t }\n\t if (m && (c2_match = l.src.match(g)) && !g.test(u)) {\n\t e += \"&\" + c2_match;\n\t }\n\t if (m) {\n\t var t = l.src,\n\t k = t.indexOf(\"?\");\n\t eventURL = t.substr(0, k > -1 ? k : t.length) + \"?\";\n\t }\n\t eventURL = [eventURL, u, e, s, \"type=\", b, s, \"action=view\", s, \"_t=\", +new Date(), h ? s + \"referrer=\" + p(h) : \"\", s, \"sc_sv=\", n, s, \"sc_href=\", p(f).substr(0, 1000)].join(\"\");\n\t var r = q && q.target ? q.target.replace(/^_/, \"\") : \"self\",\n\t d = new Image();\n\t if (i[r]) {\n\t j.t = function (w, v, a) {\n\t return function () {\n\t clearTimeout(a.o);\n\t d.onload = d.onerror = function () {\n\t return;\n\t };\n\t i[w].location.href = v;\n\t };\n\t }(r, f, j);\n\t j.o = setTimeout(j.t, 5000);\n\t d.onload = d.onerror = j.t;\n\t } else {\n\t i.open(f, r, o);\n\t }\n\t d.src = eventURL;\n\t return false;\n\t };\n\t }\n\t };\n\t});\n\n/***/ })\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// crosslinking-module.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap d5734f541ded75760e6e","Voonto.getInstance().define(['module'], function (module) {\n return {\n wakeUp($elm){\n Logger.info(`wake up module ${module.id}`);\n\n const app = Voonto.getInstance();\n\n const libPath = app.lookup('vocento.config.nibara').libPath;\n if (libPath === undefined) {\n throw 'nibara libPath config is empty';\n }\n\n $elm.find('a').each(function() {\n let new_ns_source = Voonto.$(this).attr('href').replace('%%value_ns_source%%', voc_site);\n let new_ns_linkname = new_ns_source.replace('%%value_ns_linkname%%', voc_tcnew + '.' + voc_se);\n Voonto.$(this).attr('href', new_ns_linkname);\n });\n\n function ns_onclick(q, f, u, b, o) {\n let i = window,\n l = i.ns_p,\n m = l && l.src,\n s = \"&ns_\",\n h = document.referrer.replace(/\\/$/, \"\"),\n j = {\n t: 0,\n o: 0\n },\n e = eventURL = c1_match = c2_match = \"\",\n c = /\\bc1=[^&]+\\b/i,\n g = /\\bc2=[^&]+\\b/i,\n p = (i.encodeURIComponent ? encodeURIComponent : encodeURI),\n n = \"3.1212.07\";\n f = f || q.href;\n o = o || \"\";\n if (m && (c1_match = l.src.match(c)) && !c.test(u)) {\n e += \"&\" + c1_match\n }\n if (m && (c2_match = l.src.match(g)) && !g.test(u)) {\n e += \"&\" + c2_match\n }\n if (m) {\n let t = l.src,\n k = t.indexOf(\"?\");\n eventURL = t.substr(0, k > -1 ? k : t.length) + \"?\"\n }\n eventURL = [eventURL, u, e, s, \"type=\", b, s, \"action=view\", s, \"_t=\", +new Date, h ? s + \"referrer=\" + p(h) : \"\", s, \"sc_sv=\", n, s, \"sc_href=\", p(f).substr(0, 1000)].join(\"\");\n let r = q && q.target ? q.target.replace(/^_/, \"\") : \"self\",\n d = new Image();\n if (i[r]) {\n j.t = (function(w, v, a) {\n return function() {\n clearTimeout(a.o);\n d.onload = d.onerror = function() {\n return\n };\n i[w].location.href = v\n }\n })(r, f, j);\n j.o = setTimeout(j.t, 5000);\n d.onload = d.onerror = j.t\n } else {\n i.open(f, r, o)\n }\n d.src = eventURL;\n return false\n };\n }\n }\n});\n\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/crosslinking-module.js"],"sourceRoot":""}