1'use strict'; 2 3/******/ (function(modules) { // webpackBootstrap 4/******/ // The module cache 5/******/ var installedModules = {}; 6/******/ 7/******/ // The require function 8/******/ function __webpack_require__(moduleId) { 9/******/ 10/******/ // Check if module is in cache 11/******/ if(installedModules[moduleId]) { 12/******/ return installedModules[moduleId].exports; 13/******/ } 14/******/ // Create a new module (and put it into the cache) 15/******/ var module = installedModules[moduleId] = { 16/******/ i: moduleId, 17/******/ l: false, 18/******/ exports: {} 19/******/ }; 20/******/ 21/******/ // Execute the module function 22/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 23/******/ 24/******/ // Flag the module as loaded 25/******/ module.l = true; 26/******/ 27/******/ // Return the exports of the module 28/******/ return module.exports; 29/******/ } 30/******/ 31/******/ 32/******/ // expose the modules object (__webpack_modules__) 33/******/ __webpack_require__.m = modules; 34/******/ 35/******/ // expose the module cache 36/******/ __webpack_require__.c = installedModules; 37/******/ 38/******/ // define getter function for harmony exports 39/******/ __webpack_require__.d = function(exports, name, getter) { 40/******/ if(!__webpack_require__.o(exports, name)) { 41/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 42/******/ } 43/******/ }; 44/******/ 45/******/ // define __esModule on exports 46/******/ __webpack_require__.r = function(exports) { 47/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 48/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 49/******/ } 50/******/ Object.defineProperty(exports, '__esModule', { value: true }); 51/******/ }; 52/******/ 53/******/ // create a fake namespace object 54/******/ // mode & 1: value is a module id, require it 55/******/ // mode & 2: merge all properties of value into the ns 56/******/ // mode & 4: return value when already ns object 57/******/ // mode & 8|1: behave like require 58/******/ __webpack_require__.t = function(value, mode) { 59/******/ if(mode & 1) value = __webpack_require__(value); 60/******/ if(mode & 8) return value; 61/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 62/******/ var ns = Object.create(null); 63/******/ __webpack_require__.r(ns); 64/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 65/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 66/******/ return ns; 67/******/ }; 68/******/ 69/******/ // getDefaultExport function for compatibility with non-harmony modules 70/******/ __webpack_require__.n = function(module) { 71/******/ var getter = module && module.__esModule ? 72/******/ function getDefault() { return module['default']; } : 73/******/ function getModuleExports() { return module; }; 74/******/ __webpack_require__.d(getter, 'a', getter); 75/******/ return getter; 76/******/ }; 77/******/ 78/******/ // Object.prototype.hasOwnProperty.call 79/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 80/******/ 81/******/ // __webpack_public_path__ 82/******/ __webpack_require__.p = ""; 83/******/ 84/******/ 85/******/ // Load entry module and return exports 86/******/ return __webpack_require__(__webpack_require__.s = 20); 87/******/ }) 88/************************************************************************/ 89/******/ ({ 90 91/***/ 20: 92/***/ (function(module, exports, __webpack_require__) { 93 94module.exports = __webpack_require__(21); 95 96 97/***/ }), 98 99/***/ 21: 100/***/ (function(module, exports) { 101 102function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } 103 104/*! 105 * Name : nK Share 106 * Version : 1.0.0 107 * Author : _nK http://nkdev.info 108 */ 109var $ = window.jQuery; // nKShare instance 110 111var nKShare = function () { 112 var instanceID = 0; 113 114 function nKShare(item, userOptions) { 115 var _this = this; 116 117 _this.$item = $(item); 118 _this.defaults = { 119 name: null, 120 text: null, 121 link: null, 122 media: null, 123 popupOptions: 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600', 124 networks: { 125 facebook: function facebook() { 126 var result = '//www.facebook.com/share.php?m2w&s=100&p[url]=' + encodeURIComponent(this.options.link); 127 128 if (this.options.media) { 129 result += '&p[images][0]=' + encodeURIComponent(this.options.media); 130 } 131 132 if (this.options.text) { 133 result += '&p[title]=' + encodeURIComponent(this.options.text); 134 } 135 136 window.open(result, 'Facebook', this.options.popupOptions); 137 }, 138 twitter: function twitter() { 139 var result = 'https://twitter.com/intent/tweet?original_referer=' + encodeURIComponent(this.options.link); 140 141 if (this.options.text) { 142 result += '&text=' + encodeURIComponent(this.options.text) + '%20' + encodeURIComponent(this.options.link); 143 } else { 144 result += '&text=' + encodeURIComponent(this.options.link); 145 } 146 147 window.open(result, 'Twitter', this.options.popupOptions); 148 }, 149 pinterest: function pinterest() { 150 var result = '//pinterest.com/pin/create/button/?url=' + encodeURIComponent(this.options.link); 151 152 if (this.options.media) { 153 result += '&media=' + encodeURIComponent(this.options.media); 154 } 155 156 if (this.options.text) { 157 result += '&description=' + encodeURIComponent(this.options.text); 158 } 159 160 window.open(result, 'Pinterest', this.options.popupOptions); 161 }, 162 'google-plus': function googlePlus() { 163 window.open('//plus.google.com/share?url=' + encodeURIComponent(this.options.link), 'GooglePlus', this.options.popupOptions); 164 }, 165 linkedin: function linkedin() { 166 var result = '//www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(this.options.link) + '&source=' + encodeURIComponent(this.options.link); 167 168 if (this.options.text) { 169 result += '&title=' + encodeURIComponent(this.options.text); 170 } 171 172 window.open(result, 'LinkedIn', this.options.popupOptions); 173 }, 174 vk: function vk() { 175 window.open('//vk.com/share.php?url=' + encodeURIComponent(this.options.link), 'Vkontakte', this.options.popupOptions); 176 } 177 } 178 }; 179 _this.options = $.extend({}, _this.defaults, userOptions); 180 _this.instanceID = instanceID++; 181 182 _this.onClickInit(); 183 } 184 185 return nKShare; 186}(); 187 188nKShare.prototype.onClickInit = function () { 189 var self = this; 190 self.$item.on('click', function (e) { 191 if (self.options.networks[self.options.name]) { 192 e.preventDefault(); 193 self.options.networks[self.options.name].call(self); 194 } 195 }); 196}; 197 198var oldNkshare = $.fn.nkshare; 199 200$.fn.nkshare = function () { 201 var items = this; 202 var options = arguments[0] || {}; 203 var args = Array.prototype.slice.call(arguments, 1); 204 var len = items.length; 205 var k = 0; 206 var ret; 207 208 for (k; k < len; k++) { 209 if (_typeof(options) === 'object') { 210 if (!items[k].nkshare) { 211 var thisOpts = $.extend({}, options); 212 var $item = $(items[k]); // prepare options 213 214 if (typeof thisOpts.name === 'undefined') { 215 thisOpts.name = $item.attr('data-share'); 216 } 217 218 if (typeof thisOpts.name === 'undefined') { 219 return false;
220 } 221 222 if (typeof thisOpts.text === 'undefined') { 223 thisOpts.text = $item.attr('data-share-text') || document.title; 224 } 225 226 if (typeof thisOpts.link === 'undefined') { 227 thisOpts.link = $item.attr('data-share-link') || window.location.href.replace(window.location.hash, ''); 228 } 229 230 if (typeof thisOpts.media === 'undefined') { 231 thisOpts.media = $item.attr('data-share-media'); 232 } // init 233 234 235 items[k].nkshare = new nKShare(items[k], thisOpts); 236 } 237 } else { 238 ret = items[k].nkshare ? items[k].nkshare[options].apply(items[k].nkshare, args) : undefined; 239 } 240 241 if (typeof ret !== 'undefined') { 242 return ret; 243 } 244 } 245 246 return this; 247}; // no conflict 248 249 250$.fn.nkshare.noConflict = function () { 251 $.fn.nkshare = oldNkshare; 252 return this; 253}; // data-share initialization 254 255 256$(document).on('ready.data-nkshare', function () { 257 $('[data-share]').nkshare(); 258}); 259 260/***/ }) 261 262/******/ });
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.