File: /var/www/epamokos.kaunokolegija.lt/wp-content/plugins/lifterlms/assets/js/llms-admin-addons.js.map
{"version":3,"file":"js/llms-admin-addons.js","mappings":";;;;;;;;;;;AAAA;;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;UCAA;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;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAE8C;AACvB;AACY;AAEjC,aAAW;EACZ;AACD;AACA;AACA;AACA;EACC,MAAMG,OAAO,GAAG;IACfC,MAAM,EAAE,CAAC;IACTC,OAAO,EAAE,CAAC;IACVC,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE;EACb,CAAC;;EAED;AACD;AACA;AACA;AACA;EACCL,6CAAC,CAAE,kBAAmB,CAAC,CAACM,EAAE,CAAE,OAAO,EAAE,UAAUC,CAAC,EAAG;IAClDA,CAAC,CAACC,cAAc,CAAC,CAAC;IAClBR,6CAAC,CAAE,uBAAwB,CAAC,CAACS,MAAM,CAAE,UAAW,CAAC,CAACC,IAAI,CAAE,SAAS,EAAE,KAAM,CAAC,CAACC,OAAO,CAAE,QAAS,CAAC;EAC/F,CAAE,CAAC;;EAEH;AACD;AACA;AACA;AACA;EACCX,6CAAC,CAAE,uBAAwB,CAAC,CAACM,EAAE,CAAE,QAAQ,EAAE,YAAW;IACrD,MAAMM,MAAM,GAAGZ,6CAAC,CAAE,IAAK,CAAC,CAACa,IAAI,CAAE,aAAc,CAAC;IAE9C,IAAKb,6CAAC,CAAE,IAAK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AAC;EACrC,CAAE,CAAC;AACJ,CAAC,EAAC,CAAC,C","sources":["webpack://lifterlms/./src/scss/admin-addons.scss?82ea","webpack://lifterlms/external window \"jQuery\"","webpack://lifterlms/external window [\"wp\",\"i18n\"]","webpack://lifterlms/webpack/bootstrap","webpack://lifterlms/webpack/runtime/compat get default export","webpack://lifterlms/webpack/runtime/define property getters","webpack://lifterlms/webpack/runtime/hasOwnProperty shorthand","webpack://lifterlms/webpack/runtime/make namespace object","webpack://lifterlms/./src/js/admin-addons.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"jQuery\"];","module.exports = window[\"wp\"][\"i18n\"];","// 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};","/**\n * UI & UX for the Admin add-ons management screen\n *\n * @package LifterLMS/Scripts/Admin\n *\n * @since 3.22.0\n * @version 5.5.0\n */\n\nimport { _n, sprintf } from '@wordpress/i18n';\nimport $ from 'jquery';\nimport '../scss/admin-addons.scss';\n\n( function() {\n\t/**\n\t * Tracks current # of each bulk action to be run upon form submission\n\t *\n\t * @type {Object}\n\t */\n\tconst actions = {\n\t\tupdate: 0,\n\t\tinstall: 0,\n\t\tactivate: 0,\n\t\tdeactivate: 0,\n\t};\n\n\t/**\n\t * When the bulk action modal is closed, clear all existing staged actions\n\t *\n\t * @since 3.22.0\n\t */\n\t$( '.llms-bulk-close' ).on( 'click', function( e ) {\n\t\te.preventDefault();\n\t\t$( 'input.llms-bulk-check' ).filter( ':checked' ).prop( 'checked', false ).trigger( 'change' );\n\t} );\n\n\t/**\n\t * Update the UI and counters when a checkbox action is changed\n\t *\n\t * @since 3.22.0\n\t */\n\t$( 'input.llms-bulk-check' ).on( 'change', function() {\n\t\tconst action = $( this ).attr( 'data-action' );\n\n\t\tif ( $( this ).is( ':checked' ) ) {\n\t\t\tactions[ action ]++;\n\t\t} else {\n\t\t\tactions[ action ]--;\n\t\t}\n\n\t\tupdateUserInterface();\n\t} );\n\n\t/**\n\t * Updates the UI when bulk actions are changed.\n\t *\n\t * Shows # of each action to be applied & shows the form submission / cancel buttons\n\t *\n\t * @since 3.22.0\n\t * @since 5.5.0 Use `wp.i18n` functions in favor of `LLMS.l10n` and use `$.text()` in favor of `$.html()`.\n\t * Renamed from `update_ui()` to match coding standards.\n\t *\n\t * @return {void}\n\t */\n\tfunction updateUserInterface() {\n\t\tconst $el = $( '#llms-addons-bulk-actions' );\n\t\tif ( actions.update || actions.install || actions.activate || actions.deactivate ) {\n\t\t\t$el.addClass( 'active' );\n\t\t} else {\n\t\t\t$el.removeClass( 'active' );\n\t\t}\n\n\t\t$.each( actions, function( key, count ) {\n\t\t\tconst $desc = $el.find( '.llms-bulk-desc.' + key );\n\n\t\t\tlet text = '';\n\n\t\t\tif ( count ) {\n\t\t\t\t// Translators: %d = Number of add-ons to perform the specified action against.\n\t\t\t\ttext = sprintf( _n( '%d add-on', '%d add-ons', count, 'lifterlms' ), count );\n\t\t\t\t$desc.show();\n\t\t\t} else {\n\t\t\t\t$desc.hide();\n\t\t\t}\n\t\t\t$desc.find( 'span' ).text( text );\n\t\t} );\n\t}\n\n\t/**\n\t * Show the keys management dropdown on click of the \"My License Keys\" button\n\t *\n\t * @since 3.22.0\n\t */\n\t$( '#llms-active-keys-toggle' ).on( 'click', function() {\n\t\t$( '#llms-key-field-form' ).toggle();\n\t} );\n}() );\n"],"names":["_n","sprintf","$","actions","update","install","activate","deactivate","on","e","preventDefault","filter","prop","trigger","action","attr","is","updateUserInterface","$el","addClass","removeClass","each","key","count","$desc","find","text","show","hide","toggle"],"sourceRoot":""}