WordPress/wp-includes/js/media-views.min.js

2 lines
108 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
!function(i){var s={};function o(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=i,o.c=s,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)o.d(i,s,function(e){return t[e]}.bind(null,s));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=29)}(Array(29).concat([function(e,t,i){e.exports=i(30)},function(e,t,i){var s,o,n,a=wp.media,r=jQuery;a.isTouchDevice="ontouchend"in document,n=a.view.l10n=window._wpMediaViewsL10n||{},a.view.settings=n.settings||{},delete n.settings,a.model.settings.post=a.view.settings.post,r.support.transition=(s=document.documentElement.style,o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},(n=_.find(_.keys(o),function(e){return!_.isUndefined(s[e])}))&&{end:o[n]}),a.events=_.extend({},Backbone.Events),a.transition=function(e,t){var i=r.Deferred();return t=t||2e3,r.support.transition?((e=!(e instanceof r)?r(e):e).first().one(r.support.transition.end,i.resolve),_.delay(i.resolve,t)):i.resolve(),i.promise()},a.controller.Region=i(31),a.controller.StateMachine=i(32),a.controller.State=i(33),a.selectionSync=i(34),a.controller.Library=i(35),a.controller.ImageDetails=i(36),a.controller.GalleryEdit=i(37),a.controller.GalleryAdd=i(38),a.controller.CollectionEdit=i(39),a.controller.CollectionAdd=i(40),a.controller.FeaturedImage=i(41),a.controller.ReplaceImage=i(42),a.controller.EditImage=i(43),a.controller.MediaLibrary=i(44),a.controller.Embed=i(45),a.controller.Cropper=i(46),a.controller.CustomizeImageCropper=i(47),a.controller.SiteIconCropper=i(48),a.View=i(49),a.view.Frame=i(50),a.view.MediaFrame=i(51),a.view.MediaFrame.Select=i(52),a.view.MediaFrame.Post=i(53),a.view.MediaFrame.ImageDetails=i(54),a.view.Modal=i(55),a.view.FocusManager=i(56),a.view.UploaderWindow=i(57),a.view.EditorUploader=i(58),a.view.UploaderInline=i(59),a.view.UploaderStatus=i(60),a.view.UploaderStatusError=i(61),a.view.Toolbar=i(62),a.view.Toolbar.Select=i(63),a.view.Toolbar.Embed=i(64),a.view.Button=i(65),a.view.ButtonGroup=i(66),a.view.PriorityList=i(67),a.view.MenuItem=i(68),a.view.Menu=i(69),a.view.RouterItem=i(70),a.view.Router=i(71),a.view.Sidebar=i(72),a.view.Attachment=i(73),a.view.Attachment.Library=i(74),a.view.Attachment.EditLibrary=i(75),a.view.Attachments=i(76),a.view.Search=i(77),a.view.AttachmentFilters=i(78),a.view.DateFilter=i(79),a.view.AttachmentFilters.Uploaded=i(80),a.view.AttachmentFilters.All=i(81),a.view.AttachmentsBrowser=i(82),a.view.Selection=i(83),a.view.Attachment.Selection=i(84),a.view.Attachments.Selection=i(85),a.view.Attachment.EditSelection=i(86),a.view.Settings=i(87),a.view.Settings.AttachmentDisplay=i(88),a.view.Settings.Gallery=i(89),a.view.Settings.Playlist=i(90),a.view.Attachment.Details=i(91),a.view.AttachmentCompat=i(92),a.view.Iframe=i(93),a.view.Embed=i(94),a.view.Label=i(95),a.view.EmbedUrl=i(96),a.view.EmbedLink=i(97),a.view.EmbedImage=i(98),a.view.ImageDetails=i(99),a.view.Cropper=i(100),a.view.SiteIconCropper=i(101),a.view.SiteIconPreview=i(102),a.view.EditImage=i(103),a.view.Spinner=i(104),a.view.Heading=i(105)},function(e,t){function i(e){_.extend(this,_.pick(e||{},"id","view","selector"))}i.extend=Backbone.Model.extend,_.extend(i.prototype,{mode:function(e){return e?(e===this._mode||(this.trigger("deactivate"),this._mode=e,this.render(e),this.trigger("activate")),this):this._mode},render:function(e){if(e&&e!==this._mode)return this.mode