{"version":3,"sources":["webpack:///partial.3.js","webpack:///./components/share/share.js"],"names":["webpackJsonp","49","module","exports","__webpack_require__","__WEBPACK_AMD_DEFINE_FACTORY__","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","root","factory","apply","undefined","this","share","pageParams","shareUrls","facebook","twitter","google","linkedin","tumblr","gmail","email","init","_getPageParams","_initShareLinks","that","links","document","querySelectorAll","i","length","link","shareService","getAttribute","_setupPrintLink","setAttribute","_getShareLink","service","shareUrl","replace","url","title","onclick","event","evt","window","preventDefault","returnValue","print","metas","getElementsByTagName","encodeURIComponent","location","href"],"mappings":"AAAAA,cAAc,IAERC,GACA,SAAUC,EAAQC,EAASC,GCHjC,GAAAC,GAAAC,EAAAC,GAAA,SAAAC,EAAAC,GACA,YAIAH,MAAAD,EAAA,EAAAE,EAAA,kBAAAF,KAAAK,MAAAP,EAAAG,GAAAD,IAAAM,SAAAJ,IAAAL,EAAAC,QAAAI,KAQCK,KAAA,WACD,YAQA,IAAAC,IAGAC,cAGAC,WACAC,SAAA,qDACAC,QAAA,kDACAC,OAAA,0CACAC,SAAA,4DACAC,OAAA,uFACAC,MAAA,oFACAC,MAAA,sCAQAC,KAAA,WACAX,KAAAY,iBACAZ,KAAAa,mBAQAA,gBAAA,WAIA,OAHAC,GAAAd,KACAe,EAAAC,SAAAC,iBAAA,uBAEAC,EAAA,EAAkBA,EAAAH,EAAAI,OAAkBD,IAAA,CACpC,GAAAE,GAAAL,EAAAG,GACAG,EAAAD,EAAAE,aAAA,qBAEA,QAAAD,IACA,UAAAA,EACArB,KAAAuB,gBAAAH,IAEAA,EAAAI,aAAA,OAAAV,EAAAW,cAAAJ,IACA,UAAAA,GACAD,EAAAI,aAAA,uBAaAC,cAAA,SAAAC,GACA,GAAAC,GAAA,EAOA,OALA5B,UAAAC,KAAAG,UAAAuB,KACAC,EAAA3B,KAAAG,UAAAuB,GAAAE,QAAA,WAAA5B,KAAAE,WAAA2B,KACAF,IAAAC,QAAA,aAAA5B,KAAAE,WAAA4B,QAGAH,GASAJ,gBAAA,SAAAH,GACAA,EAAAW,QAAA,SAAAC,GACA,GAAAC,GAAAD,GAAAE,OAAAF,KAEAC,GAAAE,eACAF,EAAAE,iBAEAF,EAAAG,aAAA,EAGAF,OAAAG,UASAzB,eAAA,WACA,GAAAE,GAAAd,KACAsC,EAAAtB,SAAAuB,qBAAA,OAEAzB,GAAAZ,aAEA,QAAAgB,GAAA,EAAkBA,EAAAoB,EAAAnB,OAAkBD,IACpC,WAAAoB,EAAApB,GAAAI,aAAA,cACAR,EAAAZ,WAAA2B,IAAAW,mBAAAF,EAAApB,GAAAI,aAAA,aAEA,aAAAgB,EAAApB,GAAAI,aAAA,cACAR,EAAAZ,WAAA4B,MAAAU,mBAAAF,EAAApB,GAAAI,aAAA,YAIAvB,UAAAe,EAAAZ,WAAA2B,MACAf,EAAAZ,WAAA2B,IAAAW,mBAAAN,OAAAO,SAAAC,OAEA3C,SAAAe,EAAAZ,WAAA4B,QACAhB,EAAAZ,WAAA4B,MAAAU,mBAAAxB,SAAAc,SAMA,OAAA7B","file":"partial.3.js","sourcesContent":["webpackJsonp([3],{\n\n/***/ 49:\n/***/ (function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\n\t\t'use strict';\n\t\n\t\tif (true) {\n\t\t\t// AMD\n\t\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t\t} else if (typeof exports === 'object') {\n\t\t\t// Node, CommonJS-like\n\t\t\tmodule.exports = factory();\n\t\t} else {\n\t\t\t// Browser globals (root is window)\n\t\t\troot.s5Share = factory();\n\t\t}\n\t}(this, function () {\n\t\t'use strict';\n\t\n\t\t/**\n\t\t * Share\n\t\t * A share plugin.\n\t\t * @version 1.1.5\n\t\t * @exports share\n\t\t */\n\t\tvar share = {\n\t\n\t\t\t/** Object placeholder that will contain page parameters used for sharing. */\n\t\t\tpageParams: {},\n\t\n\t\t\t/** Object containing urls for supported share services with placeholders for url (and optional title). */\n\t\t\tshareUrls: {\n\t\t\t\tfacebook: 'https://www.facebook.com/sharer/sharer.php?u=[url]',\n\t\t\t\ttwitter: 'https://twitter.com/home?status=[title]%20[url]',\n\t\t\t\tgoogle: 'https://plus.google.com/share?url=[url]',\n\t\t\t\tlinkedin: 'https://www.linkedin.com/shareArticle?mini=true&url=[url]',\n\t\t\t\ttumblr: 'https://www.tumblr.com/widgets/share/tool?canonicalUrl=[url]&url=[url]&title=[title]',\n\t\t\t\tgmail: 'https://mail.google.com/mail/u/0/?view=cm&fs=1&to&su=[title]&body=[url]&ui=2&tf=1',\n\t\t\t\temail: 'mailto:?subject=[title]&body=[url]'\n\t\t\t},\n\t\n\t\n\t\t\t/**\n\t\t\t * The initialization function for this module.\n\t\t\t * @public\n\t\t\t */\n\t\t\tinit: function () {\n\t\t\t\tthis._getPageParams();\n\t\t\t\tthis._initShareLinks();\n\t\t\t},\n\t\n\t\n\t\t\t/**\n\t\t\t * Adds the correct sharing url for each share-link.\n\t\t\t * @private\n\t\t\t */\n\t\t\t_initShareLinks: function () {\n\t\t\t\tvar that = this,\n\t\t\t\t\tlinks = document.querySelectorAll('[data-type=\"share\"]');\n\t\n\t\t\t\tfor (var i = 0; i < links.length; i++) {\n\t\t\t\t\tvar link = links[i],\n\t\t\t\t\t\tshareService = link.getAttribute('data-share-service');\n\t\n\t\t\t\t\tif (shareService !== null) {\n\t\t\t\t\t\tif (shareService === 'print') {\n\t\t\t\t\t\t\tthis._setupPrintLink(link);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlink.setAttribute('href', that._getShareLink(shareService));\n\t\t\t\t\t\t\tif (shareService !== 'email') {\n\t\t\t\t\t\t\t\tlink.setAttribute('target', '_blank');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\n\t\n\t\t\t/**\n\t\t\t * Returns the url for a share-service.\n\t\t\t * @param {String} service - The searvice name as a string.\n\t\t\t * @private\n\t\t\t */\n\t\t\t_getShareLink: function (service) {\n\t\t\t\tvar shareUrl = '';\n\t\n\t\t\t\tif (this.shareUrls[service] !== undefined) {\n\t\t\t\t\tshareUrl = this.shareUrls[service].replace(/\\[url\\]/g, this.pageParams.url);\n\t\t\t\t\tshareUrl = shareUrl.replace(/\\[title\\]/g, this.pageParams.title);\n\t\t\t\t}\n\t\n\t\t\t\treturn shareUrl;\n\t\t\t},\n\t\n\t\n\t\t\t/**\n\t\t\t * Adds an onclick event to print current page.\n\t\t\t * @param {Object} link - A link as a DOM node.\n\t\t\t * @private\n\t\t\t */\n\t\t\t_setupPrintLink: function (link) {\n\t\t\t\tlink.onclick = function (event) {\n\t\t\t\t\tvar evt = event || window.event;\n\t\n\t\t\t\t\tif (evt.preventDefault) {\n\t\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tevt.returnValue = false;\n\t\t\t\t\t}\n\t\n\t\t\t\t\twindow.print();\n\t\t\t\t};\n\t\t\t},\n\t\n\t\n\t\t\t/**\n\t\t\t * Collects the page parameters used when sharing.\n\t\t\t * @private\n\t\t\t */\n\t\t\t_getPageParams: function () {\n\t\t\t\tvar that = this,\n\t\t\t\t\tmetas = document.getElementsByTagName('meta');\n\t\n\t\t\t\tthat.pageParams = {};\n\t\n\t\t\t\tfor (var i = 0; i < metas.length; i++) {\n\t\t\t\t\tif (metas[i].getAttribute('property') === 'og:url') {\n\t\t\t\t\t\tthat.pageParams.url = encodeURIComponent(metas[i].getAttribute('content'));\n\t\t\t\t\t}\n\t\t\t\t\tif (metas[i].getAttribute('property') === 'og:title') {\n\t\t\t\t\t\tthat.pageParams.title = encodeURIComponent(metas[i].getAttribute('content'));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\tif (that.pageParams.url === undefined) {\n\t\t\t\t\tthat.pageParams.url = encodeURIComponent(window.location.href);\n\t\t\t\t}\n\t\t\t\tif (that.pageParams.title === undefined) {\n\t\t\t\t\tthat.pageParams.title = encodeURIComponent(document.title);\n\t\t\t\t}\n\t\n\t\t\t}\n\t\t};\n\t\n\t\treturn share;\n\t}));\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// partial.3.js","(function (root, factory) {\n\t'use strict';\n\n\tif (typeof define === 'function' && define.amd) {\n\t\t// AMD\n\t\tdefine([], factory);\n\t} else if (typeof exports === 'object') {\n\t\t// Node, CommonJS-like\n\t\tmodule.exports = factory();\n\t} else {\n\t\t// Browser globals (root is window)\n\t\troot.s5Share = factory();\n\t}\n}(this, function () {\n\t'use strict';\n\n\t/**\n\t * Share\n\t * A share plugin.\n\t * @version 1.1.5\n\t * @exports share\n\t */\n\tvar share = {\n\n\t\t/** Object placeholder that will contain page parameters used for sharing. */\n\t\tpageParams: {},\n\n\t\t/** Object containing urls for supported share services with placeholders for url (and optional title). */\n\t\tshareUrls: {\n\t\t\tfacebook: 'https://www.facebook.com/sharer/sharer.php?u=[url]',\n\t\t\ttwitter: 'https://twitter.com/home?status=[title]%20[url]',\n\t\t\tgoogle: 'https://plus.google.com/share?url=[url]',\n\t\t\tlinkedin: 'https://www.linkedin.com/shareArticle?mini=true&url=[url]',\n\t\t\ttumblr: 'https://www.tumblr.com/widgets/share/tool?canonicalUrl=[url]&url=[url]&title=[title]',\n\t\t\tgmail: 'https://mail.google.com/mail/u/0/?view=cm&fs=1&to&su=[title]&body=[url]&ui=2&tf=1',\n\t\t\temail: 'mailto:?subject=[title]&body=[url]'\n\t\t},\n\n\n\t\t/**\n\t\t * The initialization function for this module.\n\t\t * @public\n\t\t */\n\t\tinit: function () {\n\t\t\tthis._getPageParams();\n\t\t\tthis._initShareLinks();\n\t\t},\n\n\n\t\t/**\n\t\t * Adds the correct sharing url for each share-link.\n\t\t * @private\n\t\t */\n\t\t_initShareLinks: function () {\n\t\t\tvar that = this,\n\t\t\t\tlinks = document.querySelectorAll('[data-type=\"share\"]');\n\n\t\t\tfor (var i = 0; i < links.length; i++) {\n\t\t\t\tvar link = links[i],\n\t\t\t\t\tshareService = link.getAttribute('data-share-service');\n\n\t\t\t\tif (shareService !== null) {\n\t\t\t\t\tif (shareService === 'print') {\n\t\t\t\t\t\tthis._setupPrintLink(link);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlink.setAttribute('href', that._getShareLink(shareService));\n\t\t\t\t\t\tif (shareService !== 'email') {\n\t\t\t\t\t\t\tlink.setAttribute('target', '_blank');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\n\t\t/**\n\t\t * Returns the url for a share-service.\n\t\t * @param {String} service - The searvice name as a string.\n\t\t * @private\n\t\t */\n\t\t_getShareLink: function (service) {\n\t\t\tvar shareUrl = '';\n\n\t\t\tif (this.shareUrls[service] !== undefined) {\n\t\t\t\tshareUrl = this.shareUrls[service].replace(/\\[url\\]/g, this.pageParams.url);\n\t\t\t\tshareUrl = shareUrl.replace(/\\[title\\]/g, this.pageParams.title);\n\t\t\t}\n\n\t\t\treturn shareUrl;\n\t\t},\n\n\n\t\t/**\n\t\t * Adds an onclick event to print current page.\n\t\t * @param {Object} link - A link as a DOM node.\n\t\t * @private\n\t\t */\n\t\t_setupPrintLink: function (link) {\n\t\t\tlink.onclick = function (event) {\n\t\t\t\tvar evt = event || window.event;\n\n\t\t\t\tif (evt.preventDefault) {\n\t\t\t\t\tevt.preventDefault();\n\t\t\t\t} else {\n\t\t\t\t\tevt.returnValue = false;\n\t\t\t\t}\n\n\t\t\t\twindow.print();\n\t\t\t};\n\t\t},\n\n\n\t\t/**\n\t\t * Collects the page parameters used when sharing.\n\t\t * @private\n\t\t */\n\t\t_getPageParams: function () {\n\t\t\tvar that = this,\n\t\t\t\tmetas = document.getElementsByTagName('meta');\n\n\t\t\tthat.pageParams = {};\n\n\t\t\tfor (var i = 0; i < metas.length; i++) {\n\t\t\t\tif (metas[i].getAttribute('property') === 'og:url') {\n\t\t\t\t\tthat.pageParams.url = encodeURIComponent(metas[i].getAttribute('content'));\n\t\t\t\t}\n\t\t\t\tif (metas[i].getAttribute('property') === 'og:title') {\n\t\t\t\t\tthat.pageParams.title = encodeURIComponent(metas[i].getAttribute('content'));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (that.pageParams.url === undefined) {\n\t\t\t\tthat.pageParams.url = encodeURIComponent(window.location.href);\n\t\t\t}\n\t\t\tif (that.pageParams.title === undefined) {\n\t\t\t\tthat.pageParams.title = encodeURIComponent(document.title);\n\t\t\t}\n\n\t\t}\n\t};\n\n\treturn share;\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/share/share.js\n// module id = 49\n// module chunks = 3"],"sourceRoot":""}