{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/script/jquery.scrollSpot.js","webpack:///./src/script/public.es6"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","$","jQuery","fn","scrollSpot","callback","selector","this","length","$me","check","collection","find","each","element","eTop","offset","top","eBot","outerHeight","vTop","window","scrollTop","vBot","height","spotted","removeClass","data","addClass","MutationObserver","observe","childList","characterData","attributes","subtree","on","document","ready","DaReactions","ajax_url","display_detail_modal","display_detail_modal_toolbar","display_detail_tooltip","display_name","emotion_id","labels","modal_no_tabs_title","modal_tab_all_title","modal_pagination_close","modal_pagination_next","modal_pagination_prev","modal_pagination_desc","loader_url","modal_result_limit","nonce","pagination","index","total","size","reactions","show_count","tooltip_result_limit","user_link","clickedReaction","me","closest","my_type","my_id","my_reaction","my_nonce","clicked_image","siblings","outer_container","before_reveal_container","target_image","target_total_count","current_image_src","attr","removeFromCache","ajax","url","method","cache","success","result","foundCurrent","totalScore","showCount","val","showCountBeforeReveal","a","$ico","reactionCount","reactionPercentage","Math","round","$countBadge","numberFormatter","show","hide","String","message","$background","$window","$paragraph","text","$spacer","$closeButton","removeUsersModal","append","prepend","alertWindow","error","clickedToggle","event","stopPropagation","parent","toggleClass","clickedCount","e","target","preventDefault","removeUserTooltip","my_container","pageNum","loadFromCache","parseInt","showUsersModal","saveToCache","initDaReactionsCache","prefix","page","userReactions","requestData","$modal_background","$modal","type","id","limit","reaction","activeEmotions","$scrollContainer","userReaction","image","label","$row","$rowImage","$rowLabel","Array","isArray","buttons","$tools","$emptyButton","html","tool","$toolButton","ID","$toolImage","current","pageCount","ceil","$paginator","$prevButton","$currentPage","replace","$nextButton","remove","showUserTooltip","mouseEvent","$tooltip","css","left","clientX","clientY","$tooltip_inner","count","mouseOverCounter","mouseMoveCounter","is","mouseOutCounter","loadReactions","context","action","number","si","symbol","toFixed","$daReactionsDocument","$currentActive","has"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB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1I,YAAYI,wBACZiJ,EAAqBxJ,GAAG,YAAa8I,GAQE,OAAvC3I,YAAYI,wBACZiJ,EAAqBxJ,GAAG,WAAY,6BAA8BgJ,MArtB9E,CAytBGjL","file":"public.js","sourcesContent":[" \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 \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\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.l = 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// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 138);\n","export function jQueryScrollSpot() {\n\n (function ($) {\n\n /**\n * Copyright 2018, Daniele Alessandra\n * Licensed under the MIT license.\n * https://www.danielealessandra.com\n *\n * @author Daniele Alessandra\n * @desc A small plugin that checks whether elements are within\n * the user visible viewport of a web browser and calls\n * a callback on it\n */\n\n $.fn.scrollSpot = function (callback, selector) {\n if ($(this).length < 1) {\n return;\n }\n\n let $me = this;\n\n function spotted(element) {\n\n let eTop = $(element).offset().top;\n let eBot = eTop + $(element).outerHeight();\n let vTop = $(window).scrollTop();\n let vBot = vTop + $(window).height();\n return eBot > vTop && eTop < vBot;\n }\n function check() {\n\n\n let collection = $me;\n if (!!selector) {\n\n collection = $me.find(selector);\n }\n $(collection).each(function () {\n if (spotted(this)) {\n if (!!callback) {\n callback.call(this);\n }\n $(this).addClass('in-viewport');\n $(this).addClass('spotted');\n $(this).data('spotted', true);\n $(this).data('in-viewport', true);\n } else {\n $(this).removeClass('in-viewport');\n $(this).data('in-viewport', false);\n }\n });\n }\n\n if (!$me.find(selector).length) {\n const observer = new MutationObserver(check);\n observer.observe($me[0], { childList: true, characterData: true, attributes: true, subtree: true });\n }\n\n $(window).on('resize scroll', check);\n $(document).ready(check);\n\n return this;\n };\n\n }(jQuery));\n\n}\n","import {jQueryScrollSpot} from './jquery.scrollSpot';\r\n\r\njQueryScrollSpot();\r\n\r\n/**\r\n * Global plugin options object\r\n *\r\n * @type {*|{ajax_url: string}}\r\n *\r\n * @since 1.0.0\r\n */\r\nwindow.DaReactions = {\r\n ...{\r\n ajax_url: '',\r\n display_detail_modal: 'off',\r\n display_detail_modal_toolbar: 'off',\r\n display_detail_tooltip: 'off',\r\n display_name: '',\r\n emotion_id: 0,\r\n labels: {\r\n modal_no_tabs_title: 'Reactions',\r\n modal_tab_all_title: 'All reactions',\r\n modal_pagination_close: '×',\r\n modal_pagination_next: '→',\r\n modal_pagination_prev: '←',\r\n modal_pagination_desc: 'Page %d of %d'\r\n },\r\n loader_url: '',\r\n modal_result_limit: 0,\r\n nonce: '',\r\n pagination: {\r\n index: 0,\r\n total: 0,\r\n size: 0\r\n },\r\n reactions: [],\r\n show_count: '',\r\n tooltip_result_limit: 0,\r\n user_link: ''\r\n }, ...DaReactions\r\n};\r\n\r\n(function ($) {\r\n\r\n /**\r\n * Callback for click on reaction image to save reaction\r\n *\r\n * @since 1.0.0\r\n */\r\n function clickedReaction() {\r\n // gets all parameters\r\n let me = $(this).closest('.da-reactions-data'),\r\n my_type = $(me).data('type'),\r\n my_id = $(me).data('id'),\r\n my_reaction = $(me).data('reaction'),\r\n my_nonce = $(me).data('nonce') || DaReactions.nonce,\r\n clicked_image = $(me).find('img'),\r\n siblings = $('.da-reactions-outer.T' + my_type + 'ID' + my_id),\r\n outer_container = $(me).closest('.da-reactions-outer'),\r\n before_reveal_container = $(outer_container).find('.before-reveal'),\r\n target_image = before_reveal_container.find('img'),\r\n target_total_count = before_reveal_container.find('.count');\r\n\r\n const current_image_src = target_image.attr('src');\r\n target_image.attr('src', DaReactions.loader_url);\r\n\r\n removeFromCache('clickedCount', my_type, my_id);\r\n removeFromCache('mouseOverCount', my_type, my_id);\r\n\r\n // calls ajax service\r\n $.ajax({\r\n url: DaReactions.ajax_url,\r\n method: 'post',\r\n cache: false,\r\n data: {\r\n 'action': 'da_reactions_add_reaction',\r\n 'id': my_id,\r\n 'nonce': my_nonce,\r\n 'reaction': my_reaction,\r\n 'type': my_type\r\n },\r\n success: function (result) {\r\n if (result.success === 'ok') {\r\n removeFromCache('mouseOverCount', my_type, my_id)\r\n // update classes and labels\r\n $(siblings).each(function () {\r\n let before_reveal_container = $(this).find('.before-reveal');\r\n let target_image = before_reveal_container.find('img');\r\n let foundCurrent = false;\r\n let totalScore = 0;\r\n if (target_image.length) {\r\n target_image.attr('src', clicked_image.attr('src'));\r\n }\r\n let showCount = DaReactions.show_count;\r\n if ($('select#show_count').length) {\r\n showCount = $('select#show_count').val();\r\n }\r\n const showCountBeforeReveal = {\r\n 'always': 'always',\r\n 'percentage': 'always',\r\n 'non-zero': 'non-zero',\r\n 'percentage-non-zero': 'non-zero',\r\n 'never': 'never'\r\n }[showCount] || 'never';\r\n for (let a in result['reactions']) {\r\n if (result['reactions'].hasOwnProperty(a)) {\r\n let $ico = $(this).find('.reaction.reaction_' + result['reactions'][a]['ID']);\r\n if (result['reactions'][a]['current']) {\r\n foundCurrent = true;\r\n $ico.addClass('active');\r\n $ico.removeClass('inactive');\r\n } else {\r\n $ico.removeClass('active');\r\n $ico.addClass('inactive');\r\n }\r\n const reactionCount = result['reactions'][a]['total'] || 0;\r\n const reactionPercentage = Math.round(+result['reactions'][a]['percentage'] || 0) + '%';\r\n const $countBadge = $ico.find('.count');\r\n\r\n switch (showCount) {\r\n case 'always':\r\n $countBadge.attr('data-value', numberFormatter(reactionCount));\r\n $countBadge.show();\r\n break;\r\n case 'percentage':\r\n $countBadge.attr('data-value', reactionPercentage);\r\n $countBadge.show();\r\n break;\r\n case 'non-zero':\r\n $countBadge.attr('data-value', numberFormatter(reactionCount));\r\n if (reactionCount > 0) {\r\n $countBadge.show();\r\n } else {\r\n $countBadge.hide();\r\n }\r\n break;\r\n case 'percentage-non-zero':\r\n if (reactionPercentage !== '0%') {\r\n $countBadge.show();\r\n } else {\r\n $countBadge.hide();\r\n }\r\n $countBadge.attr('data-value', reactionPercentage);\r\n break;\r\n case 'never':\r\n $countBadge.hide();\r\n break;\r\n }\r\n totalScore += +result['reactions'][a]['total'];\r\n }\r\n }\r\n switch (showCountBeforeReveal) {\r\n case 'always':\r\n target_total_count.attr('data-value', numberFormatter(totalScore));\r\n target_total_count.show();\r\n break;\r\n case 'non-zero':\r\n if (String(totalScore)[0] === '0') {\r\n target_total_count.hide();\r\n } else {\r\n target_total_count.attr('data-value', numberFormatter(totalScore));\r\n }\r\n break;\r\n case 'never':\r\n target_total_count.hide();\r\n break;\r\n }\r\n if (foundCurrent) {\r\n $(this).closest('.da-reactions-container').addClass('has_current');\r\n } else {\r\n $(this).closest('.da-reactions-container').removeClass('has_current');\r\n }\r\n });\r\n } else {\r\n alertWindow(result.message);\r\n }\r\n },\r\n error: () => {\r\n target_image.attr('src', current_image_src);\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Toggle visibility of widget on small screen devices\r\n *\r\n * @param event\r\n *\r\n * @since 2.0.4\r\n */\r\n function clickedToggle(event) {\r\n event.stopPropagation();\r\n $(this).parent().toggleClass('open');\r\n }\r\n\r\n /**\r\n * Callback for click on count badge, opens details modal\r\n *\r\n * @since 3.0.0\r\n */\r\n function clickedCount(e) {\r\n const me = e.target;\r\n e.preventDefault();\r\n removeUserTooltip();\r\n let my_container = $(me).closest('.da-reactions-data, .da-reactions-container-async.gutenberg-block'),\r\n my_type = $(my_container).data('type'),\r\n my_id = $(my_container).data('id'),\r\n my_nonce = $(my_container).data('nonce') || DaReactions.nonce,\r\n my_reaction = $(me).data('reaction') || $(my_container).data('reaction') || 0,\r\n pageNum = $(me).data('pageNum') || 0,\r\n result = loadFromCache('clickedCount', my_type, my_id, my_reaction, pageNum);\r\n let data = {\r\n 'action': 'da_reactions_get_users_reactions',\r\n 'type': my_type,\r\n 'id': my_id,\r\n 'nonce': my_nonce,\r\n 'reaction': my_reaction,\r\n 'pageNum': pageNum,\r\n 'limit': parseInt(DaReactions.modal_result_limit, 10)\r\n };\r\n if (!result || result.success !== 'ok') {\r\n $.ajax({\r\n url: DaReactions.ajax_url,\r\n method: 'post',\r\n cache: false,\r\n data,\r\n success: function (result) {\r\n saveToCache('clickedCount', my_type, my_id, my_reaction, result, pageNum);\r\n if (result.success && result.success === 'ok') {\r\n showUsersModal(result, data);\r\n }\r\n }\r\n });\r\n } else {\r\n showUsersModal(result, data);\r\n }\r\n }\r\n\r\n /**\r\n *\r\n * @param prefix\r\n * @param my_type\r\n * @param my_id\r\n * @param my_reaction\r\n * @param page\r\n */\r\n function initDaReactionsCache(prefix, my_type, my_id, my_reaction, page) {\r\n DaReactions.cache = DaReactions.cache || {};\r\n DaReactions.cache[prefix] = DaReactions.cache[prefix] || {};\r\n DaReactions.cache[prefix][my_type] = DaReactions.cache[prefix][my_type] || {};\r\n DaReactions.cache[prefix][my_type][my_id] = DaReactions.cache[prefix][my_type][my_id] || {};\r\n DaReactions.cache[prefix][my_type][my_id][my_reaction] = DaReactions.cache[prefix][my_type][my_id][my_reaction] || {};\r\n DaReactions.cache[prefix][my_type][my_id][my_reaction][page] = DaReactions.cache[prefix][my_type][my_id][my_reaction][page] || {};\r\n }\r\n\r\n /**\r\n * Retrieve cached object to avoid redundant server requests\r\n *\r\n * @param prefix\r\n * @param my_type\r\n * @param my_id\r\n * @param my_reaction\r\n * @param page\r\n * @returns {{success: string}|*}\r\n *\r\n * @since 3.0.0\r\n */\r\n function loadFromCache(prefix, my_type, my_id, my_reaction, page) {\r\n initDaReactionsCache(prefix, my_type, my_id, my_reaction, page);\r\n\r\n if (DaReactions.cache[prefix][my_type][my_id][my_reaction][page].hasOwnProperty('success') && DaReactions.cache[prefix][my_type][my_id][my_reaction][page].success === 'ok') {\r\n return DaReactions.cache[prefix][my_type][my_id][my_reaction][page];\r\n }\r\n\r\n return {\r\n success: 'no'\r\n };\r\n }\r\n\r\n /**\r\n * Remove cached value\r\n *\r\n * @param prefix\r\n * @param my_type\r\n * @param my_id\r\n * @param my_reaction\r\n *\r\n * @since 3.0.0\r\n */\r\n function removeFromCache(prefix = '', my_type = '', my_id = 0, my_reaction = 0) {\r\n initDaReactionsCache(prefix, my_type, my_id, my_reaction, 0);\r\n if (!!prefix) {\r\n if (!!my_type) {\r\n if (!!my_id) {\r\n if (!!my_reaction) {\r\n delete DaReactions.cache[prefix][my_type][my_id][my_reaction];\r\n } else {\r\n delete DaReactions.cache[prefix][my_type][my_id];\r\n }\r\n } else {\r\n delete DaReactions.cache[prefix][my_type];\r\n }\r\n } else {\r\n delete DaReactions.cache[prefix];\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Save value on local cache\r\n *\r\n * @param prefix\r\n * @param my_type\r\n * @param my_id\r\n * @param my_reaction\r\n * @param value\r\n * @param page\r\n * @since 3.0.0\r\n */\r\n function saveToCache(prefix, my_type, my_id, my_reaction, value, page) {\r\n initDaReactionsCache(prefix, my_type, my_id, my_reaction, page);\r\n DaReactions.cache[prefix][my_type][my_id][my_reaction][page] = value;\r\n }\r\n\r\n /**\r\n * Display a modal popup with users and reactions list\r\n *\r\n * @param userReactions\r\n * @param requestData\r\n *\r\n * @since 3.0.0\r\n */\r\n function showUsersModal(userReactions, requestData) {\r\n removeUsersModal();\r\n if (!userReactions.reactions.length) {\r\n return;\r\n }\r\n let $modal_background = $('