pressbooks aldine theme the theme used for the front page or default book
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
824 KiB

/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
/******/ (function() { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./assets/scripts/catalog-admin.js":
/*!*****************************************!*\
!*** ./assets/scripts/catalog-admin.js ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
eval("/* provided dependency */ var jQuery = __webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\");\n/* global ajaxurl, PB_Aldine_Admin */\n(function ($) {\n $(document).ready(function () {\n $('.wrap').on('click', '.notice-dismiss', function () {\n $(this).parent('#message').fadeOut(500, function () {\n $(this).remove();\n });\n });\n $('input.in-catalog').on('change', function () {\n var book_id = $(this).parent('td').siblings('th').children('input').val();\n var in_catalog = $(this).prop('checked');\n $.ajax({\n url: ajaxurl,\n type: 'POST',\n data: {\n action: 'pressbooks_aldine_update_catalog',\n book_id: book_id,\n in_catalog: in_catalog,\n _ajax_nonce: PB_Aldine_Admin.aldineAdminNonce\n },\n success: function success() {\n if ($('#message').length < 1) {\n $('<div id=\"message\" class=\"updated notice is-dismissible\">').html('<p><strong>' + PB_Aldine_Admin.catalog_updated + '</strong></p><button type=\"button\" class=\"notice-dismiss\"><span class=\"screen-reader-text\">' + PB_Aldine_Admin.dismiss_notice + '</span></button>').hide().insertAfter('.wrap h1').fadeIn(500);\n } else {\n $('#message').fadeOut(500, function () {\n $(this).remove();\n $('<div id=\"message\" class=\"updated notice is-dismissible\">').html('<p><strong>' + PB_Aldine_Admin.catalog_updated + '</strong></p><button type=\"button\" class=\"notice-dismiss\"><span class=\"screen-reader-text\">' + PB_Aldine_Admin.dismiss_notice + '</span></button>').hide().insertAfter('.wrap h1').fadeIn(500);\n });\n }\n },\n error: function error(jqXHR, textStatus, errorThrown) {\n if ($('#message').length < 1) {\n $('<div id=\"message\" class=\"error notice is-dismissible\">').html('<p><strong>' + PB_Aldine_Admin.catalog_not_updated + '</strong></p><button type=\"button\" class=\"notice-dismiss\"><span class=\"screen-reader-text\">' + PB_Aldine_Admin.dismiss_notice + '</span></button>').hide().insertAfter('.wrap h1').fadeIn(500);\n } else {\n $('#message').fadeOut(500, function () {\n $(this).remove();\n $('<div id=\"message\" class=\"error notice is-dismissible\">').html('<p><strong>' + PB_Aldine_Admin.catalog_not_updated + '</strong></p><button type=\"button\" class=\"notice-dismiss\"><span class=\"screen-reader-text\">' + PB_Aldine_Admin.dismiss_notice + '</span></button>').hide().insertAfter('.wrap h1').fadeIn(500);\n });\n }\n }\n });\n });\n });\n})(jQuery);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AcHJlc3Nib29rcy9wcmVzc2Jvb2tzLWFsZGluZS8uL2Fzc2V0cy9zY3JpcHRzL2NhdGFsb2ctYWRtaW4uanM/OTVjNiJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsIm9uIiwicGFyZW50IiwiZmFkZU91dCIsInJlbW92ZSIsImJvb2tfaWQiLCJzaWJsaW5ncyIsImNoaWxkcmVuIiwidmFsIiwiaW5fY2F0YWxvZyIsInByb3AiLCJhamF4IiwidXJsIiwiYWpheHVybCIsInR5cGUiLCJkYXRhIiwiYWN0aW9uIiwiX2FqYXhfbm9uY2UiLCJQQl9BbGRpbmVfQWRtaW4iLCJhbGRpbmVBZG1pbk5vbmNlIiwic3VjY2VzcyIsImxlbmd0aCIsImh0bWwiLCJjYXRhbG9nX3VwZGF0ZWQiLCJkaXNtaXNzX25vdGljZSIsImhpZGUiLCJpbnNlcnRBZnRlciIsImZhZGVJbiIsImVycm9yIiwianFYSFIiLCJ0ZXh0U3RhdHVzIiwiZXJyb3JUaHJvd24iLCJjYXRhbG9nX25vdF91cGRhdGVkIiwialF1ZXJ5Il0sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSxDQUFFLFVBQVdBLENBQVgsRUFBZTtBQUNoQkEsR0FBQyxDQUFFQyxRQUFGLENBQUQsQ0FBY0MsS0FBZCxDQUFxQixZQUFZO0FBQ2hDRixLQUFDLENBQUUsT0FBRixDQUFELENBQWFHLEVBQWIsQ0FBaUIsT0FBakIsRUFBMEIsaUJBQTFCLEVBQTZDLFlBQVk7QUFDeERILE9BQUMsQ0FBRSxJQUFGLENBQUQsQ0FDRUksTUFERixDQUNVLFVBRFYsRUFFRUMsT0FGRixDQUVXLEdBRlgsRUFFZ0IsWUFBWTtBQUMxQkwsU0FBQyxDQUFFLElBQUYsQ0FBRCxDQUFVTSxNQUFWO0FBQ0EsT0FKRjtBQUtBLEtBTkQ7QUFPQU4sS0FBQyxDQUFFLGtCQUFGLENBQUQsQ0FBd0JHLEVBQXhCLENBQTRCLFFBQTVCLEVBQXNDLFlBQVk7QUFDakQsVUFBSUksT0FBTyxHQUFHUCxDQUFDLENBQUUsSUFBRixDQUFELENBQ1pJLE1BRFksQ0FDSixJQURJLEVBRVpJLFFBRlksQ0FFRixJQUZFLEVBR1pDLFFBSFksQ0FHRixPQUhFLEVBSVpDLEdBSlksRUF
/***/ }),
/***/ "./node_modules/jquery/dist/jquery.js":
/*!********************************************!*\
!*** ./node_modules/jquery/dist/jquery.js ***!
\********************************************/
/***/ (function(module, exports) {
eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n * jQuery JavaScript Library v3.6.0\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2021-03-02T17:08Z\n */\n( function( global, factory ) {\n\n\t\"use strict\";\n\n\tif ( true && typeof module.exports === \"object\" ) {\n\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t// is present, execute the factory and get jQuery.\n\t\t// For environments that do not have a `window` with a `document`\n\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t// This accentuates the need for the creation of a real `window`.\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t// See ticket #14549 for more info.\n\t\tmodule.exports = global.document ?\n\t\t\tfactory( global, true ) :\n\t\t\tfunction( w ) {\n\t\t\t\tif ( !w.document ) {\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t}\n\t\t\t\treturn factory( w );\n\t\t\t};\n\t} else {\n\t\tfactory( global );\n\t}\n\n// Pass this if window is not defined yet\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n\"use strict\";\n\nvar arr = [];\n\nvar getProto = Object.getPrototypeOf;\n\nvar slice = arr.slice;\n\nvar flat = arr.flat ? function( array ) {\n\treturn arr.flat.call( array );\n} : function( array ) {\n\treturn arr.concat.apply( [], array );\n};\n\n\nvar push = arr.push;\n\nvar indexOf = arr.indexOf;\n\nvar class2type = {};\n\nvar toString = class2type.toString;\n\nvar hasOwn = class2type.hasOwnProperty;\n\nvar fnToString = hasOwn.toString;\n\nvar ObjectFunctionString = fnToString.call( Object );\n\nvar support = {};\n\nvar isFunction = function isFunction( obj ) {\n\n\t\t// Support: Chrome <=57, Firefox <=52\n\t\t// In some browsers, typeof returns \"function\" for HTML <object> elements\n\t\t// (i.e., `typeof document.createElement( \"object\" ) === \"function\"`).\n\t\t// We don't want to classify *any* DOM node as a function.\n\t\t// Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5\n\t\t// Plus for old WebKit, typeof returns \"function\" for HTML collections\n\t\t// (e.g., `typeof document.getElementsByTagName(\"div\") === \"function\"`). (gh-4756)\n\t\treturn typeof obj === \"function\" && typeof obj.nodeType !== \"number\" &&\n\t\t\ttypeof obj.item !== \"function\";\n\t};\n\n\nvar isWindow = function isWindow( obj ) {\n\t\treturn obj != null && obj === obj.window;\n\t};\n\n\nvar document = window.document;\n\n\n\n\tvar preservedScriptAttributes = {\n\t\ttype: true,\n\t\tsrc: true,\n\t\tnonce: true,\n\t\tnoModule: true\n\t};\n\n\tfunction DOMEval( code, node, doc ) {\n\t\tdoc = doc || document;\n\n\t\tvar i, val,\n\t\t\tscript = doc.createElement( \"script\" );\n\n\t\tscript.text = code;\n\t\tif ( node ) {\n\t\t\tfor ( i in preservedScriptAttributes ) {\n\n\t\t\t\t// Support: Firefox 64+, Edge 18+\n\t\t\t\t// Some browsers don't support the \"nonce\" property on scripts.\n\t\t\t\t// On the other hand, just using `getAttribute` is not enough as\n\t\t\t\t// the `nonce` attribute is reset to an empty string whenever it\n\t\t\t\t// becomes browsing-context connected.\n\t\t\t\t// See https://github.com/whatwg/html/issues/2369\n\t\t\t\t// See https://html.spec.whatwg.org/#nonce-attributes\n\t\t\t\t// The `node.getAttribute` check was added for the sake of\n\t\t\t\t// `jQuery.globalEval` so that it can fake a nonce-containing node\n\t\t\t\t// via an object.\n\t\t\t\tval = node[ i ] || node.getAttribute && node.getAttribute( i );\n\t\t\t\tif ( val ) {\n\t\t\t\t\tscript.setAttribu
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module can't be inlined because the eval-source-map devtool is used.
/******/ var __webpack_exports__ = __webpack_require__("./assets/scripts/catalog-admin.js");
/******/
/******/ })()
;