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

2 lines
105 KiB
JavaScript
Raw Normal View History

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