AlkantarClanX12
Current Path : /home/thanudqk/thepball.com/wp-content/plugins/wp-smushit/app/assets/js/ |
Current File : /home/thanudqk/thepball.com/wp-content/plugins/wp-smushit/app/assets/js/smush-media.min.js.map |
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./_src/js/smush/media.js"],"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","$","_","smushMedia","wp","media","template","prepareTemplate","smushHTML","label","smush_vars","strings","stats_label","view","Attachment","Details","TwoColumn","smushMediaTwoColumn","extend","initialize","apply","this","arguments","listenTo","model","render","fetch","views","detach","$el","find","append","smushAttachmentDetails","MediaLibraryTaxonomyFilter","AttachmentFilters","id","createFilters","filters","all","text","filter_all","props","stats","priority","unsmushed","filter_not_processed","excluded","filter_excl","AttachmentsBrowser","createToolbar","toolbar","set","controller","collection","jQuery"],"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,EAA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O,CAC1E+B,cAD0E,WAGzED,EAAmBnD,UAAUoD,cAAc7E,KAAKiD,MAChDA,KAAK6B,QAAQC,IACZ,6BACA,IAAIlB,EAA2B,CAC9BmB,WAAY/B,KAAK+B,WACjB5B,MAAOH,KAAKgC,WAAWZ,MACvBE,UAAW,KACTlB,aAnKP,CAuKG6B,OAAQpD","file":"smush-media.min.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 = 24);\n","/* global smush_vars */\n/* global _ */\n\n/**\n * Adds a Smush Now button and displays stats in Media Attachment Details Screen\n */\n(function ($, _) {\n\t'use strict';\n\n\t// Local reference to the WordPress media namespace.\n\tconst smushMedia = wp.media,\n\t\tsharedTemplate =\n\t\t\t\"<span class='setting smush-stats' data-setting='smush'>\" +\n\t\t\t\"<span class='name'><%= label %></span>\" +\n\t\t\t\"<span class='value'><%= value %></span>\" +\n\t\t\t'</span>',\n\t\ttemplate = _.template(sharedTemplate);\n\n\t/**\n\t * Create the template.\n\t *\n\t * @param {string} smushHTML\n\t * @return {Object} Template object\n\t */\n\tconst prepareTemplate = function (smushHTML) {\n\t\t/**\n\t\t * @param {Array} smush_vars.strings Localization strings.\n\t\t * @param {Object} smush_vars Object from wp_localize_script()\n\t\t */\n\t\treturn template({\n\t\t\tlabel: smush_vars.strings.stats_label,\n\t\t\tvalue: smushHTML,\n\t\t});\n\t};\n\n\tif (\n\t\t'undefined' !== typeof smushMedia.view &&\n\t\t'undefined' !== typeof smushMedia.view.Attachment.Details.TwoColumn\n\t) {\n\t\t// Local instance of the Attachment Details TwoColumn used in the edit attachment modal view\n\t\tconst smushMediaTwoColumn =\n\t\t\tsmushMedia.view.Attachment.Details.TwoColumn;\n\n\t\t/**\n\t\t * Add Smush details to attachment.\n\t\t *\n\t\t * A similar view to media.view.Attachment.Details\n\t\t * for use in the Edit Attachment modal.\n\t\t *\n\t\t * @see wp-includes/js/media-grid.js\n\t\t */\n\t\tsmushMedia.view.Attachment.Details.TwoColumn = smushMediaTwoColumn.extend(\n\t\t\t{\n\t\t\t\tinitialize() {\n\t\t\t\t\tsmushMediaTwoColumn.prototype.initialize.apply(this, arguments);\n\t\t\t\t\tthis.listenTo(this.model, 'change:smush', this.render);\n\t\t\t\t},\n\n\t\t\t\trender() {\n\t\t\t\t\t// Ensure that the main attachment fields are rendered.\n\t\t\t\t\tsmushMedia.view.Attachment.prototype.render.apply(\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\targuments\n\t\t\t\t\t);\n\n\t\t\t\t\tconst smushHTML = this.model.get('smush');\n\t\t\t\t\tif (typeof smushHTML === 'undefined') {\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.model.fetch();\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Detach the views, append our custom fields, make sure that our data is fully updated\n\t\t\t\t\t * and re-render the updated view.\n\t\t\t\t\t */\n\t\t\t\t\tthis.views.detach();\n\t\t\t\t\tthis.$el\n\t\t\t\t\t\t.find('.settings')\n\t\t\t\t\t\t.append(prepareTemplate(smushHTML));\n\t\t\t\t\tthis.views.render();\n\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\t\t\t}\n\t\t);\n\t}\n\n\t// Local instance of the Attachment Details TwoColumn used in the edit attachment modal view\n\tconst smushAttachmentDetails = smushMedia.view.Attachment.Details;\n\n\t/**\n\t * Add Smush details to attachment.\n\t */\n\tsmushMedia.view.Attachment.Details = smushAttachmentDetails.extend({\n\t\tinitialize() {\n\t\t\tsmushAttachmentDetails.prototype.initialize.apply(this, arguments);\n\t\t\tthis.listenTo(this.model, 'change:smush', this.render);\n\t\t},\n\n\t\trender() {\n\t\t\t// Ensure that the main attachment fields are rendered.\n\t\t\tsmushMedia.view.Attachment.prototype.render.apply(this, arguments);\n\n\t\t\tconst smushHTML = this.model.get('smush');\n\t\t\tif (typeof smushHTML === 'undefined') {\n\t\t\t\treturn this;\n\t\t\t}\n\n\t\t\tthis.model.fetch();\n\n\t\t\t/**\n\t\t\t * Detach the views, append our custom fields, make sure that our data is fully updated\n\t\t\t * and re-render the updated view.\n\t\t\t */\n\t\t\tthis.views.detach();\n\t\t\tthis.$el.append(prepareTemplate(smushHTML));\n\n\t\t\treturn this;\n\t\t},\n\t});\n\n\t/**\n\t * Create a new MediaLibraryTaxonomyFilter we later will instantiate\n\t *\n\t * @since 3.0\n\t */\n\tconst MediaLibraryTaxonomyFilter = wp.media.view.AttachmentFilters.extend({\n\t\tid: 'media-attachment-smush-filter',\n\n\t\tcreateFilters() {\n\t\t\tthis.filters = {\n\t\t\t\tall: {\n\t\t\t\t\ttext: smush_vars.strings.filter_all,\n\t\t\t\t\tprops: { stats: 'all' },\n\t\t\t\t\tpriority: 10,\n\t\t\t\t},\n\n\t\t\t\tunsmushed: {\n\t\t\t\t\ttext: smush_vars.strings.filter_not_processed,\n\t\t\t\t\tprops: { stats: 'unsmushed' },\n\t\t\t\t\tpriority: 20,\n\t\t\t\t},\n\n\t\t\t\texcluded: {\n\t\t\t\t\ttext: smush_vars.strings.filter_excl,\n\t\t\t\t\tprops: { stats: 'excluded' },\n\t\t\t\t\tpriority: 30,\n\t\t\t\t},\n\t\t\t};\n\t\t},\n\t});\n\n\t/**\n\t * Extend and override wp.media.view.AttachmentsBrowser to include our new filter.\n\t *\n\t * @since 3.0\n\t */\n\tconst AttachmentsBrowser = wp.media.view.AttachmentsBrowser;\n\twp.media.view.AttachmentsBrowser = wp.media.view.AttachmentsBrowser.extend({\n\t\tcreateToolbar() {\n\t\t\t// Make sure to load the original toolbar\n\t\t\tAttachmentsBrowser.prototype.createToolbar.call(this);\n\t\t\tthis.toolbar.set(\n\t\t\t\t'MediaLibraryTaxonomyFilter',\n\t\t\t\tnew MediaLibraryTaxonomyFilter({\n\t\t\t\t\tcontroller: this.controller,\n\t\t\t\t\tmodel: this.collection.props,\n\t\t\t\t\tpriority: -75,\n\t\t\t\t}).render()\n\t\t\t);\n\t\t},\n\t});\n})(jQuery, _);\n"],"sourceRoot":""}