Qui di seguito è indicata la procedura per effettuare il root al Samsung Galaxy S4 modello GT-I9515 (su un android 5.0.1 built id LRX22C.I9515XXUIBOJ3) usando il programma Odin su un computer Windows.

Requisiti: Il tuo Samsung Galaxy S4 modello GT-I9515 su Android 5.0.1 dovrebbe avere almeno il 30-40% di batteria per effettuare correttamente la procedura di rooting del cellulare.

ATTENZIONE: Questa guida è valida esclusivamente per il Samsung Galaxy S4 modello GT-I9515 che gira su Android 5.0.1. Nel caso il tuo smartphone giri su Android 4.4.2 è prevista un altra guida.

Effettuare il root del Samsung Galaxy S4 modello GT-I9515 su 5.0.1 usando Odin

Step 1: Effettua il Download e installa il Samsung USB Driver sul tuo computer. Se hai gia installato i driver Samsung USB sul tuo computer allora salta questo step.

usb-samsung-driver-fabio-cammisa

Step 2: Effettua il Download ed estrai i files sul tuo computer. Dopo che hai estratto i files dovresti avere una cosa del genere:

cfautoroot-file-fabio-cammisa

Step 3: Ora, Spegni il tuo smartphone.

power-off-samsung-galaxy-s4-root-fabio-cammisa

Step 4: Dopo aver spento il tuo smartphone, hai bisogno di entrare nella Modalità Download. Per fare ciò tieni premuti contemporaneamente i tasti Volume Giù, Home e Tasto Accensione per circa 5-8 secondi fino a che sia avvierà la Modalità Download.

download-mode-on-samsung-galaxy-root-fabio-cammisa

Step 5: Nella Modalità Download dovresti vedere un simbolo di un triangolo giallo di allerta. In questo caso devi premere il tasto Volume Su per continuare.

samsung-galaxy-warning-root-fabio-cammisa

Step 6: Ora, apri Odin 3 (lo trovi nei files estratti che hai scaricato allo Step 2) sul tuo computer. Poi connetti il tuo smartphone al computer.

open-odin-downloader-root-fabio-cammisa

Step 7: Una volta connesso lo smartphone al computer, Odin dovrebbe automaticamente riconoscere il dispositivo e mostrare il messaggio “Added” alla sinistra del pannello.

samsung-galaxy-device-added-odin-root-fabiocammisa

Step 8: Una volta che il dispositivo è stato riconosciuto da Odin, clicca sul pulsante PDA e seleziona il file CF-Auto-Root.tar (hai scaricato questo file allo step 2).

add-samsung-pda-odin-root-fabio-cammisa

samsung-odin-cfautoroot-root-fabiocammisa

Step 9: Ora, clicca sul pulsante Start in Odin e comincia ad effettuare il caricamento.

samsung-pda-file-added-odin-root-fabiocammisa

Step 10: Il caricamento dovrebbe durare 30-50 secondi per completare il processo di rooting del tuo smartphone Samsung Galaxy S4 GT-I9515 su Android Marshmallow 5.0.1.

Una volta terminato il processo di root, dovrai vedere un box verde con la scritta PASS in Odin. Durante questo processo il tuo smartphone dovrebbe riavviarsi automaticamente.

samsung-flash-complete-odin-root-fabio-cammisa

Step 11: Una volta visto questo box verde, puoi disconnettere il tuo smartphone dal computer.

Step 12: Ora, per avere correttamente effettuato il root al tuo smartphone, devi aprire il Menu Applicazioni del tuo smartphone e trovare la App SuperSU. Se trovi questa app, il tuo cellulare è stato correttamente roottato. Complimenti!

supersu-installed-on-samsung-galaxy-root-fabiocammisa

 

cornerstone e pagina hub a cosa servono fabio cammisa web

Per una strategia di digital marketing fondata su una comunicazione inbound, che ha come obiettivo quello di intercettare i bisogni degli utenti e attrarli sul sito, oltre al content marketing possiamo usufruire di pagine hub o “cornerstone” (contenuti di fondamento), utili a generare SEO.

Ma allora questo “cornerstone” in pratica cosa è?

Non è che l’articolo più importante del tuo sito in quanto esprime esattamente quello di cui ti occupi.

Non a caso, infatti, una pagina ottimizzata e focalizzata sulla nostra parola chiave (keyword) più importante contenente i link ai prodotti di punta (ad esempio una scheda di categoria del blog o dell’e-commerce), è in grado di far crescere il ranking o posizionamento del tuo sito nei risultati di ricerca sui motori.

Questo prezioso contenuto deve occupare la posizione “più alta” della navigazione all’interno della struttura delle tue pagine web. Non deve quindi essere “affogato” nella cronologia degli altri post. L’ideale sarebbe poterlo raggiungere con un paio di clic dalla home page.

Un altro trucchetto è quello di trattare la pagina hub o cornerstone come una vera e propria landing page, eliminando cioè la sidebar, il footer ed eventuali altre distrazioni che porterebbero l’utente lontano dal nostro contenuto più importante.

Cosa deve contenere il cornerstone?

La pagina hub o cornerstone dovrebbe essere di tipo informativo e descrittivo della tua attività spiegando in che modo possano trarre beneficio da quello che proponi. L’ideale è di inserire il titolo, una breve descrizione e un link di approfondimento per ogni prodotto presentato oppure focalizzarsi su un unico prodotto che rappresenta la tua attività.

Il cornerstone, per la rilevanza che occupa e per gli argomenti trattati, dovrebbe contenere la parola chiave principale della tua keyword strategy ovvero la parola più ricercata dai tuoi potenziali clienti. Per saperlo puoi controllare le ricerche interne del sito attraverso Google Analytics e le chiavi organiche da Search Console, ex Webmaster tools.

Masterizzare un CD e un DVD è un’operazione ormai comune a tutte le persone che possiedono un PC.
La masterizzazione si rivela utile per creare dischi musicali, video, dati, immagini e in generale per riversare i contenuti multimediali del computer su queste diffuse unità ottiche di memoria.
Per masterizzare esistono svariati programmi sia a pagamento che freeware. In questo ultimo caso, per chi non vuole spendere nulla ma è in cerca di un buon programma a costo zero, vi propongo una lista dei migliori programmi gratuiti e in italiano per masterizzare CD, DVD e Blu-ray al computer.
Se invece hai problemi con la masterizzazione, clicca qui e leggi questa guida che ho scritto al riguardo.

Continua a leggere

Se non ti è possibile masterizzare un CD o DVD vergini con musica o dati, segui le procedure descritte per risolvere il problema. Prima di seguire questa guida innanzitutto installa un’altro programma per masterizzare, potrebbe essere semplicemente un errore del programma che utilizzi. Clicca qui per la lista dei migliori programmi per masterizzare. Continua a leggere

wordpress-4.5
Per correggere l’errore che si presenta fra Wordpress 4.5 e 4.5.1 e javascript bisogna copiare il file media-views.min.js scaricabile da questo indirizzo (clicca qui) e sovrascriverlo nella cartella di installazione di wordpress (wp-includes/js/media-views.min.js).

Nel caso non volessi scaricare il file, puoi copiare il codice qui sotto e sostituirlo con il contenuto del file “media-views.min.js” presente nell’installazione di wordpress.

!function e(t,i,s){function o(r,a){if(!i[r]){if(!t[r]){var l="function"==typeof require&&require;if(!a&&l)return l(r,!0);if(n)return n(r,!0);var d=new Error("Cannot find module '"+r+"'");throw d.code="MODULE_NOT_FOUND",d}var c=i[r]={exports:{}};t[r][0].call(c.exports,function(e){var i=t[r][1][e];return o(i?i:e)},c,c.exports,e,t,i,s)}return i[r].exports}for(var n="function"==typeof require&&require,r=0;r<s.length;r++)o(s[r]);return o}({1:[function(e,t,i){var s,o=wp.media.model.Selection,n=wp.media.controller.Library;s=n.extend({defaults:_.defaults({multiple:"add",filterable:"uploaded",priority:100,syncSelection:!1},n.prototype.defaults),initialize:function(){var e=this.get("collectionType");"video"===this.get("type")&&(e="video-"+e),this.set("id",e+"-library"),this.set("toolbar",e+"-add"),this.set("menu",e),this.get("library")||this.set("library",wp.media.query({type:this.get("type")})),n.prototype.initialize.apply(this,arguments)},activate:function(){var e=this.get("library"),t=this.get("editLibrary"),i=this.frame.state(this.get("collectionType")+"-edit").get("library");t&&t!==i&&e.unobserve(t),e.validator=function(e){return!!this.mirroring.get(e.cid)&&!i.get(e.cid)&&o.prototype.validator.apply(this,arguments)},e.reset(e.mirroring.models,{silent:!0}),e.observe(i),this.set("editLibrary",i),n.prototype.activate.apply(this,arguments)}}),t.exports=s},{}],2:[function(e,t,i){var s,o=wp.media.controller.Library,n=wp.media.view.l10n,r=jQuery;s=o.extend({defaults:{multiple:!1,sortable:!0,date:!1,searchable:!1,content:"browse",describe:!0,dragInfo:!0,idealColumnWidth:170,editing:!1,priority:60,SettingsView:!1,syncSelection:!1},initialize:function(){var e=this.get("collectionType");"video"===this.get("type")&&(e="video-"+e),this.set("id",e+"-edit"),this.set("toolbar",e+"-edit"),this.get("library")||this.set("library",new wp.media.model.Selection),this.get("AttachmentView")||this.set("AttachmentView",wp.media.view.Attachment.EditLibrary),o.prototype.initialize.apply(this,arguments)},activate:function(){var e=this.get("library");e.props.set("type",this.get("type")),this.get("library").observe(wp.Uploader.queue),this.frame.on("content:render:browse",this.renderSettings,this),o.prototype.activate.apply(this,arguments)},deactivate:function(){this.get("library").unobserve(wp.Uploader.queue),this.frame.off("content:render:browse",this.renderSettings,this),o.prototype.deactivate.apply(this,arguments)},renderSettings:function(e){var t=this.get("library"),i=this.get("collectionType"),s=this.get("dragInfoText"),o=this.get("SettingsView"),a={};t&&e&&(t[i]=t[i]||new Backbone.Model,a[i]=new o({controller:this,model:t[i],priority:40}),e.sidebar.set(a),s&&e.toolbar.set("dragInfo",new wp.media.View({el:r('<div class="instructions">'+s+"</div>")[0],priority:-40})),e.toolbar.set("reverse",{text:n.reverseOrder,priority:80,click:function(){t.reset(t.toArray().reverse())}}))}}),t.exports=s},{}],3:[function(e,t,i){var s,o=wp.media.view.l10n;s=wp.media.controller.State.extend({defaults:{id:"cropper",title:o.cropImage,toolbar:"crop",content:"crop",router:!1,canSkipCrop:!1,doCropArgs:{}},activate:function(){this.frame.on("content:create:crop",this.createCropContent,this),this.frame.on("close",this.removeCropper,this),this.set("selection",new Backbone.Collection(this.frame._selection.single))},deactivate:function(){this.frame.toolbar.mode("browse")},createCropContent:function(){this.cropperView=new wp.media.view.Cropper({controller:this,attachment:this.get("selection").first()}),this.cropperView.on("image-loaded",this.createCropToolbar,this),this.frame.content.set(this.cropperView)},removeCropper:function(){this.imgSelect.cancelSelection(),this.imgSelect.setOptions({remove:!0}),this.imgSelect.update(),this.cropperView.remove()},createCropToolbar:function(){var e,t;e=this.get("canSkipCrop")||!1,t={controller:this.frame,items:{insert:{style:"primary",text:o.cropImage,priority:80,requires:{library:!1,selection:!1},click:function(){var e,t=this.controller;e=t.state().get("selection").first(),e.set({cropDetails:t.state().imgSelect.getSelection()}),this.$el.text(o.cropping),this.$el.attr("disabled",!0),t.state().doCrop(e).done(function(e){t.trigger("cropped",e),t.close()}).fail(function(){t.trigger("content:error:crop")})}}}},e&&_.extend(t.items,{skip:{style:"secondary",text:o.skipCropping,priority:70,requires:{library:!1,selection:!1},click:function(){var e=this.controller.state().get("selection").first();this.controller.state().cropperView.remove(),this.controller.trigger("skippedcrop",e),this.controller.close()}}}),this.frame.toolbar.set(new wp.media.view.Toolbar(t))},doCrop:function(e){return wp.ajax.post("custom-header-crop",_.extend({},this.defaults.doCropArgs,{nonce:e.get("nonces").edit,id:e.get("id"),cropDetails:e.get("cropDetails")}))}}),t.exports=s},{}],4:[function(e,t,i){var s,o=wp.media.controller;s=o.Cropper.extend({doCrop:function(e){var t=e.get("cropDetails"),i=this.get("control"),s=t.width/t.height;return i.params.flex_width&&i.params.flex_height?(t.dst_width=t.width,t.dst_height=t.height):(t.dst_width=i.params.flex_width?i.params.height*s:i.params.width,t.dst_height=i.params.flex_height?i.params.width/s:i.params.height),wp.ajax.post("crop-image",{wp_customize:"on",nonce:e.get("nonces").edit,id:e.get("id"),context:i.id,cropDetails:t})}}),t.exports=s},{}],5:[function(e,t,i){var s,o=wp.media.view.l10n;s=wp.media.controller.State.extend({defaults:{id:"edit-image",title:o.editImage,menu:!1,toolbar:"edit-image",content:"edit-image",url:""},activate:function(){this.listenTo(this.frame,"toolbar:render:edit-image",this.toolbar)},deactivate:function(){this.stopListening(this.frame)},toolbar:function(){var e=this.frame,t=e.lastState(),i=t&&t.id;e.toolbar.set(new wp.media.view.Toolbar({controller:e,items:{back:{style:"primary",text:o.back,priority:20,click:function(){i?e.setState(i):e.close()}}}}))}}),t.exports=s},{}],6:[function(e,t,i){var s,o=wp.media.view.l10n,n=Backbone.$;s=wp.media.controller.State.extend({defaults:{id:"embed",title:o.insertFromUrlTitle,content:"embed",menu:"default",toolbar:"main-embed",priority:120,type:"link",url:"",metadata:{}},sensitivity:400,initialize:function(e){this.metadata=e.metadata,this.debouncedScan=_.debounce(_.bind(this.scan,this),this.sensitivity),this.props=new Backbone.Model(this.metadata||{url:""}),this.props.on("change:url",this.debouncedScan,this),this.props.on("change:url",this.refresh,this),this.on("scan",this.scanImage,this)},scan:function(){var e,t=this,i={type:"link",scanners:[]};this.props.get("url")&&this.trigger("scan",i),i.scanners.length?(e=i.scanners=n.when.apply(n,i.scanners),e.always(function(){t.get("scanners")===e&&t.set("loading",!1)})):i.scanners=null,i.loading=!!i.scanners,this.set(i)},scanImage:function(e){var t=this.frame,i=this,s=this.props.get("url"),o=new Image,r=n.Deferred();e.scanners.push(r.promise()),o.onload=function(){r.resolve(),i===t.state()&&s===i.props.get("url")&&(i.set({type:"image"}),i.props.set({width:o.width,height:o.height}))},o.onerror=r.reject,o.src=s},refresh:function(){this.frame.toolbar.get().refresh()},reset:function(){this.props.clear().set({url:""}),this.active&&this.refresh()}}),t.exports=s},{}],7:[function(e,t,i){var s,o=wp.media.model.Attachment,n=wp.media.controller.Library,r=wp.media.view.l10n;s=n.extend({defaults:_.defaults({id:"featured-image",title:r.setFeaturedImageTitle,multiple:!1,filterable:"uploaded",toolbar:"featured-image",priority:60,syncSelection:!0},n.prototype.defaults),initialize:function(){var e,t;this.get("library")||this.set("library",wp.media.query({type:"image"})),n.prototype.initialize.apply(this,arguments),e=this.get("library"),t=e.comparator,e.comparator=function(e,i){var s=!!this.mirroring.get(e.cid),o=!!this.mirroring.get(i.cid);return!s&&o?-1:s&&!o?1:t.apply(this,arguments)},e.observe(this.get("selection"))},activate:function(){this.updateSelection(),this.frame.on("open",this.updateSelection,this),n.prototype.activate.apply(this,arguments)},deactivate:function(){this.frame.off("open",this.updateSelection,this),n.prototype.deactivate.apply(this,arguments)},updateSelection:function(){var e,t=this.get("selection"),i=wp.media.view.settings.post.featuredImageId;""!==i&&-1!==i&&(e=o.get(i),e.fetch()),t.reset(e?[e]:[])}}),t.exports=s},{}],8:[function(e,t,i){var s,o=wp.media.model.Selection,n=wp.media.controller.Library,r=wp.media.view.l10n;s=n.extend({defaults:_.defaults({id:"gallery-library",title:r.addToGalleryTitle,multiple:"add",filterable:"uploaded",menu:"gallery",toolbar:"gallery-add",priority:100,syncSelection:!1},n.prototype.defaults),initialize:function(){this.get("library")||this.set("library",wp.media.query({type:"image"})),n.prototype.initialize.apply(this,arguments)},activate:function(){var e=this.get("library"),t=this.frame.state("gallery-edit").get("library");this.editLibrary&&this.editLibrary!==t&&e.unobserve(this.editLibrary),e.validator=function(e){return!!this.mirroring.get(e.cid)&&!t.get(e.cid)&&o.prototype.validator.apply(this,arguments)},e.reset(e.mirroring.models,{silent:!0}),e.observe(t),this.editLibrary=t,n.prototype.activate.apply(this,arguments)}}),t.exports=s},{}],9:[function(e,t,i){var s,o=wp.media.controller.Library,n=wp.media.view.l10n;s=o.extend({defaults:{id:"gallery-edit",title:n.editGalleryTitle,multiple:!1,searchable:!1,sortable:!0,date:!1,display:!1,content:"browse",toolbar:"gallery-edit",describe:!0,displaySettings:!0,dragInfo:!0,idealColumnWidth:170,editing:!1,priority:60,syncSelection:!1},initialize:function(){this.get("library")||this.set("library",new wp.media.model.Selection),this.get("AttachmentView")||this.set("AttachmentView",wp.media.view.Attachment.EditLibrary),o.prototype.initialize.apply(this,arguments)},activate:function(){var e=this.get("library");e.props.set("type","image"),this.get("library").observe(wp.Uploader.queue),this.frame.on("content:render:browse",this.gallerySettings,this),o.prototype.activate.apply(this,arguments)},deactivate:function(){this.get("library").unobserve(wp.Uploader.queue),this.frame.off("content:render:browse",this.gallerySettings,this),o.prototype.deactivate.apply(this,arguments)},gallerySettings:function(e){if(this.get("displaySettings")){var t=this.get("library");t&&e&&(t.gallery=t.gallery||new Backbone.Model,e.sidebar.set({gallery:new wp.media.view.Settings.Gallery({controller:this,model:t.gallery,priority:40})}),e.toolbar.set("reverse",{text:n.reverseOrder,priority:80,click:function(){t.reset(t.toArray().reverse())}}))}}}),t.exports=s},{}],10:[function(e,t,i){var s,o=wp.media.controller.State,n=wp.media.controller.Library,r=wp.media.view.l10n;s=o.extend({defaults:_.defaults({id:"image-details",title:r.imageDetailsTitle,content:"image-details",menu:!1,router:!1,toolbar:"image-details",editing:!1,priority:60},n.prototype.defaults),initialize:function(e){this.image=e.image,o.prototype.initialize.apply(this,arguments)},activate:function(){this.frame.modal.$el.addClass("image-details")}}),t.exports=s},{}],11:[function(e,t,i){var s,o=wp.media.view.l10n,n=window.getUserSetting,r=window.setUserSetting;s=wp.media.controller.State.extend({defaults:{id:"library",title:o.mediaLibraryTitle,multiple:!1,content:"upload",menu:"default",router:"browse",toolbar:"select",searchable:!0,filterable:!1,sortable:!0,autoSelect:!0,describe:!1,contentUserSetting:!0,syncSelection:!0},initialize:function(){var e,t=this.get("selection");this.get("library")||this.set("library",wp.media.query()),t instanceof wp.media.model.Selection||(e=t,e||(e=this.get("library").props.toJSON(),e=_.omit(e,"orderby","query")),this.set("selection",new wp.media.model.Selection(null,{multiple:this.get("multiple"),props:e}))),this.resetDisplays()},activate:function(){this.syncSelection(),wp.Uploader.queue.on("add",this.uploading,this),this.get("selection").on("add remove reset",this.refreshContent,this),this.get("router")&&this.get("contentUserSetting")&&(this.frame.on("content:activate",this.saveContentMode,this),this.set("content",n("libraryContent",this.get("content"))))},deactivate:function(){this.recordSelection(),this.frame.off("content:activate",this.saveContentMode,this),this.get("selection").off(null,null,this),wp.Uploader.queue.off(null,null,this)},reset:function(){this.get("selection").reset(),this.resetDisplays(),this.refreshContent()},resetDisplays:function(){var e=wp.media.view.settings.defaultProps;this._displays=[],this._defaultDisplaySettings={align:n("align",e.align)||"none",size:n("imgsize",e.size)||"medium",link:n("urlbutton",e.link)||"none"}},display:function(e){var t=this._displays;return t[e.cid]||(t[e.cid]=new Backbone.Model(this.defaultDisplaySettings(e))),t[e.cid]},defaultDisplaySettings:function(e){var t=_.clone(this._defaultDisplaySettings);return(t.canEmbed=this.canEmbed(e))?t.link="embed":this.isImageAttachment(e)||"none"!==t.link||(t.link="file"),t},isImageAttachment:function(e){return e.get("uploading")?/\.(jpe?g|png|gif)$/i.test(e.get("filename")):"image"===e.get("type")},canEmbed:function(e){if(!e.get("uploading")){var t=e.get("type");if("audio"!==t&&"video"!==t)return!1}return _.contains(wp.media.view.settings.embedExts,e.get("filename").split(".").pop())},refreshContent:function(){var e=this.get("selection"),t=this.frame,i=t.router.get(),s=t.content.mode();this.active&&!e.length&&i&&!i.get(s)&&this.frame.content.render(this.get("content"))},uploading:function(e){var t=this.frame.content;"upload"===t.mode()&&this.frame.content.mode("browse"),this.get("autoSelect")&&(this.get("selection").add(e),this.frame.trigger("library:selection:add"))},saveContentMode:function(){if("browse"===this.get("router")){var e=this.frame.content.mode(),t=this.frame.router.get();t&&t.get(e)&&r("libraryContent",e)}}}),_.extend(s.prototype,wp.media.selectionSync),t.exports=s},{}],12:[function(e,t,i){var s,o=wp.media.controller.Library;s=o.extend({defaults:_.defaults({filterable:"uploaded",displaySettings:!1,priority:80,syncSelection:!1},o.prototype.defaults),initialize:function(e){this.media=e.media,this.type=e.type,this.set("library",wp.media.query({type:this.type})),o.prototype.initialize.apply(this,arguments)},activate:function(){wp.media.frame.lastMime&&(this.set("library",wp.media.query({type:wp.media.frame.lastMime})),delete wp.media.frame.lastMime),o.prototype.activate.apply(this,arguments)}}),t.exports=s},{}],13:[function(e,t,i){var s=function(e){_.extend(this,_.pick(e||{},"id","view","selector"))};s.extend=Backbone.Model.extend,_.extend(s.prototype,{mode:function(e){return e?e===this._mode?this:(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(e);var t,i={view:null};return this.trigger("create",i),t=i.view,this.trigger("render",t),t&&this.set(t),this},get:function(){return this.view.views.first(this.selector)},set:function(e,t){return t&&(t.add=!1),this.view.views.set(this.selector,e,t)},trigger:function(e){var t,i;if(this._mode)return i=_.toArray(arguments),t=this.id+":"+e,i[0]=t+":"+this._mode,this.view.trigger.apply(this.view,i),i[0]=t,this.view.trigger.apply(this.view,i),this}}),t.exports=s},{}],14:[function(e,t,i){var s,o=wp.media.controller.Library,n=wp.media.view.l10n;s=o.extend({defaults:_.defaults({id:"replace-image",title:n.replaceImageTitle,multiple:!1,filterable:"uploaded",toolbar:"replace",menu:!1,priority:60,syncSelection:!0},o.prototype.defaults),initialize:function(e){var t,i;this.image=e.image,this.get("library")||this.set("library",wp.media.query({type:"image"})),o.prototype.initialize.apply(this,arguments),t=this.get("library"),i=t.comparator,t.comparator=function(e,t){var s=!!this.mirroring.get(e.cid),o=!!this.mirroring.get(t.cid);return!s&&o?-1:s&&!o?1:i.apply(this,arguments)},t.observe(this.get("selection"))},activate:function(){this.updateSelection(),o.prototype.activate.apply(this,arguments)},updateSelection:function(){var e=this.get("selection"),t=this.image.attachment;e.reset(t?[t]:[])}}),t.exports=s},{}],15:[function(e,t,i){var s,o=wp.media.controller;s=o.Cropper.extend({activate:function(){this.frame.on("content:create:crop",this.createCropContent,this),this.frame.on("close",this.removeCropper,this),this.set("selection",new Backbone.Collection(this.frame._selection.single))},createCropContent:function(){this.cropperView=new wp.media.view.SiteIconCropper({controller:this,attachment:this.get("selection").first()}),this.cropperView.on("image-loaded",this.createCropToolbar,this),this.frame.content.set(this.cropperView)},doCrop:function(e){var t=e.get("cropDetails"),i=this.get("control");return t.dst_width=i.params.width,t.dst_height=i.params.height,wp.ajax.post("crop-image",{nonce:e.get("nonces").edit,id:e.get("id"),context:"site-icon",cropDetails:t})}}),t.exports=s},{}],16:[function(e,t,i){var s=function(e){this.states=new Backbone.Collection(e)};s.extend=Backbone.Model.extend,_.extend(s.prototype,Backbone.Events,{state:function(e){return this.states=this.states||new Backbone.Collection,e=e||this._state,e&&!this.states.get(e)&&this.states.add({id:e}),this.states.get(e)},setState:function(e){var t=this.state();return t&&e===t.id||!this.states||!this.states.get(e)?this:(t&&(t.trigger("deactivate"),this._lastState=t.id),this._state=e,this.state().trigger("activate"),this)},lastState:function(){return this._lastState?this.state(this._lastState):void 0}}),_.each(["on","off","trigger"],function(e){s.prototype[e]=function(){return this.states=this.states||new Backbone.Collection,this.states[e].apply(this.states,arguments),this}}),t.exports=s},{}],17:[function(e,t,i){var s=Backbone.Model.extend({constructor:function(){this.on("activate",this._preActivate,this),this.on("activate",this.activate,this),this.on("activate",this._postActivate,this),this.on("deactivate",this._deactivate,this),this.on("deactivate",this.deactivate,this),this.on("reset",this.reset,this),this.on("ready",this._ready,this),this.on("ready",this.ready,this),Backbone.Model.apply(this,arguments),this.on("change:menu",this._updateMenu,this)},ready:function(){},activate:function(){},deactivate:function(){},reset:function(){},_ready:function(){this._updateMenu()},_preActivate:function(){this.active=!0},_postActivate:function(){this.on("change:menu",this._menu,this),this.on("change:titleMode",this._title,this),this.on("change:content",this._content,this),this.on("change:toolbar",this._toolbar,this),this.frame.on("title:render:default",this._renderTitle,this),this._title(),this._menu(),this._toolbar(),this._content(),this._router()},_deactivate:function(){this.active=!1,this.frame.off("title:render:default",this._renderTitle,this),this.off("change:menu",this._menu,this),this.off("change:titleMode",this._title,this),this.off("change:content",this._content,this),this.off("change:toolbar",this._toolbar,this)},_title:function(){this.frame.title.render(this.get("titleMode")||"default")},_renderTitle:function(e){e.$el.text(this.get("title")||"")},_router:function(){var e,t=this.frame.router,i=this.get("router");this.frame.$el.toggleClass("hide-router",!i),i&&(this.frame.router.render(i),e=t.get(),e&&e.select&&e.select(this.frame.content.mode()))},_menu:function(){var e,t=this.frame.menu,i=this.get("menu");this.frame.$el.toggleClass("hide-menu",!i),i&&(t.mode(i),e=t.get(),e&&e.select&&e.select(this.id))},_updateMenu:function(){var e=this.previous("menu"),t=this.get("menu");e&&this.frame.off("menu:render:"+e,this._renderMenu,this),t&&this.frame.on("menu:render:"+t,this._renderMenu,this)},_renderMenu:function(e){var t=this.get("menuItem"),i=this.get("title"),s=this.get("priority");!t&&i&&(t={text:i},s&&(t.priority=s)),t&&e.set(this.id,t)}});_.each(["toolbar","content"],function(e){s.prototype["_"+e]=function(){var t=this.get(e);t&&this.frame[e].render(t)}}),t.exports=s},{}],18:[function(e,t,i){var s={syncSelection:function(){var e=this.get("selection"),t=this.frame._selection;this.get("syncSelection")&&t&&e&&(e.multiple&&(e.reset([],{silent:!0}),e.validateAll(t.attachments),t.difference=_.difference(t.attachments.models,e.models)),e.single(t.single))},recordSelection:function(){var e=this.get("selection"),t=this.frame._selection;this.get("syncSelection")&&t&&e&&(e.multiple?(t.attachments.reset(e.toArray().concat(t.difference)),t.difference=[]):t.attachments.add(e.toArray()),t.single=e._single)}};t.exports=s},{}],19:[function(e,t,i){var s,o=wp.media,n=jQuery;o.isTouchDevice="ontouchend"in document,s=o.view.l10n=window._wpMediaViewsL10n||{},o.view.settings=s.settings||{},delete s.settings,o.model.settings.post=o.view.settings.post,n.support.transition=function(){var e,t=document.documentElement.style,i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};return e=_.find(_.keys(i),function(e){return!_.isUndefined(t[e])}),e&&{end:i[e]}}(),o.events=_.extend({},Backbone.Events),o.transition=function(e,t){var i=n.Deferred();return t=t||2e3,n.support.transition?(e instanceof n||(e=n(e)),e.first().one(n.support.transition.end,i.resolve),_.delay(i.resolve,t)):i.resolve(),i.promise()},o.controller.Region=e("./controllers/region.js"),o.controller.StateMachine=e("./controllers/state-machine.js"),o.controller.State=e("./controllers/state.js"),o.selectionSync=e("./utils/selection-sync.js"),o.controller.Library=e("./controllers/library.js"),o.controller.ImageDetails=e("./controllers/image-details.js"),o.controller.GalleryEdit=e("./controllers/gallery-edit.js"),o.controller.GalleryAdd=e("./controllers/gallery-add.js"),o.controller.CollectionEdit=e("./controllers/collection-edit.js"),o.controller.CollectionAdd=e("./controllers/collection-add.js"),o.controller.FeaturedImage=e("./controllers/featured-image.js"),o.controller.ReplaceImage=e("./controllers/replace-image.js"),o.controller.EditImage=e("./controllers/edit-image.js"),o.controller.MediaLibrary=e("./controllers/media-library.js"),o.controller.Embed=e("./controllers/embed.js"),o.controller.Cropper=e("./controllers/cropper.js"),o.controller.CustomizeImageCropper=e("./controllers/customize-image-cropper.js"),o.controller.SiteIconCropper=e("./controllers/site-icon-cropper.js"),o.View=e("./views/view.js"),o.view.Frame=e("./views/frame.js"),o.view.MediaFrame=e("./views/media-frame.js"),o.view.MediaFrame.Select=e("./views/frame/select.js"),o.view.MediaFrame.Post=e("./views/frame/post.js"),o.view.MediaFrame.ImageDetails=e("./views/frame/image-details.js"),o.view.Modal=e("./views/modal.js"),o.view.FocusManager=e("./views/focus-manager.js"),o.view.UploaderWindow=e("./views/uploader/window.js"),o.view.EditorUploader=e("./views/uploader/editor.js"),o.view.UploaderInline=e("./views/uploader/inline.js"),o.view.UploaderStatus=e("./views/uploader/status.js"),o.view.UploaderStatusError=e("./views/uploader/status-error.js"),o.view.Toolbar=e("./views/toolbar.js"),o.view.Toolbar.Select=e("./views/toolbar/select.js"),o.view.Toolbar.Embed=e("./views/toolbar/embed.js"),o.view.Button=e("./views/button.js"),o.view.ButtonGroup=e("./views/button-group.js"),o.view.PriorityList=e("./views/priority-list.js"),o.view.MenuItem=e("./views/menu-item.js"),o.view.Menu=e("./views/menu.js"),o.view.RouterItem=e("./views/router-item.js"),o.view.Router=e("./views/router.js"),o.view.Sidebar=e("./views/sidebar.js"),o.view.Attachment=e("./views/attachment.js"),o.view.Attachment.Library=e("./views/attachment/library.js"),o.view.Attachment.EditLibrary=e("./views/attachment/edit-library.js"),o.view.Attachments=e("./views/attachments.js"),o.view.Search=e("./views/search.js"),o.view.AttachmentFilters=e("./views/attachment-filters.js"),o.view.DateFilter=e("./views/attachment-filters/date.js"),o.view.AttachmentFilters.Uploaded=e("./views/attachment-filters/uploaded.js"),o.view.AttachmentFilters.All=e("./views/attachment-filters/all.js"),o.view.AttachmentsBrowser=e("./views/attachments/browser.js"),o.view.Selection=e("./views/selection.js"),o.view.Attachment.Selection=e("./views/attachment/selection.js"),o.view.Attachments.Selection=e("./views/attachments/selection.js"),o.view.Attachment.EditSelection=e("./views/attachment/edit-selection.js"),o.view.Settings=e("./views/settings.js"),o.view.Settings.AttachmentDisplay=e("./views/settings/attachment-display.js"),o.view.Settings.Gallery=e("./views/settings/gallery.js"),o.view.Settings.Playlist=e("./views/settings/playlist.js"),o.view.Attachment.Details=e("./views/attachment/details.js"),o.view.AttachmentCompat=e("./views/attachment-compat.js"),o.view.Iframe=e("./views/iframe.js"),o.view.Embed=e("./views/embed.js"),o.view.Label=e("./views/label.js"),o.view.EmbedUrl=e("./views/embed/url.js"),o.view.EmbedLink=e("./views/embed/link.js"),o.view.EmbedImage=e("./views/embed/image.js"),o.view.ImageDetails=e("./views/image-details.js"),o.view.Cropper=e("./views/cropper.js"),o.view.SiteIconCropper=e("./views/site-icon-cropper.js"),o.view.SiteIconPreview=e("./views/site-icon-preview.js"),o.view.EditImage=e("./views/edit-image.js"),o.view.Spinner=e("./views/spinner.js")},{"./controllers/collection-add.js":1,"./controllers/collection-edit.js":2,"./controllers/cropper.js":3,"./controllers/customize-image-cropper.js":4,"./controllers/edit-image.js":5,"./controllers/embed.js":6,"./controllers/featured-image.js":7,"./controllers/gallery-add.js":8,"./controllers/gallery-edit.js":9,"./controllers/image-details.js":10,"./controllers/library.js":11,"./controllers/media-library.js":12,"./controllers/region.js":13,"./controllers/replace-image.js":14,"./controllers/site-icon-cropper.js":15,"./controllers/state-machine.js":16,"./controllers/state.js":17,"./utils/selection-sync.js":18,"./views/attachment-compat.js":20,"./views/attachment-filters.js":21,"./views/attachment-filters/all.js":22,"./views/attachment-filters/date.js":23,"./views/attachment-filters/uploaded.js":24,"./views/attachment.js":25,"./views/attachment/details.js":26,"./views/attachment/edit-library.js":27,"./views/attachment/edit-selection.js":28,"./views/attachment/library.js":29,"./views/attachment/selection.js":30,"./views/attachments.js":31,"./views/attachments/browser.js":32,"./views/attachments/selection.js":33,"./views/button-group.js":34,"./views/button.js":35,"./views/cropper.js":36,"./views/edit-image.js":37,"./views/embed.js":38,"./views/embed/image.js":39,"./views/embed/link.js":40,"./views/embed/url.js":41,"./views/focus-manager.js":42,"./views/frame.js":43,"./views/frame/image-details.js":44,"./views/frame/post.js":45,"./views/frame/select.js":46,"./views/iframe.js":47,"./views/image-details.js":48,"./views/label.js":49,"./views/media-frame.js":50,"./views/menu-item.js":51,"./views/menu.js":52,"./views/modal.js":53,"./views/priority-list.js":54,"./views/router-item.js":55,"./views/router.js":56,"./views/search.js":57,"./views/selection.js":58,"./views/settings.js":59,"./views/settings/attachment-display.js":60,"./views/settings/gallery.js":61,"./views/settings/playlist.js":62,"./views/sidebar.js":63,"./views/site-icon-cropper.js":64,"./views/site-icon-preview.js":65,"./views/spinner.js":66,"./views/toolbar.js":67,"./views/toolbar/embed.js":68,"./views/toolbar/select.js":69,"./views/uploader/editor.js":70,"./views/uploader/inline.js":71,"./views/uploader/status-error.js":72,"./views/uploader/status.js":73,"./views/uploader/window.js":74,"./views/view.js":75}],20:[function(e,t,i){var s,o=wp.media.View;s=o.extend({tagName:"form",className:"compat-item",events:{submit:"preventDefault","change input":"save","change select":"save","change textarea":"save"},initialize:function(){this.listenTo(this.model,"change:compat",this.render)},dispose:function(){return this.$(":focus").length&&this.save(),o.prototype.dispose.apply(this,arguments)},render:function(){var e=this.model.get("compat");if(e&&e.item)return this.views.detach(),this.$el.html(e.item),this.views.render(),this},preventDefault:function(e){e.preventDefault()},save:function(e){var t={};e&&e.preventDefault(),_.each(this.$el.serializeArray(),function(e){t[e.name]=e.value}),this.controller.trigger("attachment:compat:waiting",["waiting"]),this.model.saveCompat(t).always(_.bind(this.postSave,this))},postSave:function(){this.controller.trigger("attachment:compat:ready",["ready"])}}),t.exports=s},{}],21:[function(e,t,i){var s,o=jQuery;s=wp.media.View.extend({tagName:"select",className:"attachment-filters",id:"media-attachment-filters",events:{change:"change"},keys:[],initialize:function(){this.createFilters(),_.extend(this.filters,this.options.filters),this.$el.html(_.chain(this.filters).map(function(e,t){return{el:o("<option></option>").val(t).html(e.text)[0],priority:e.priority||50}},this).sortBy("priority").pluck("el").value()),this.listenTo(this.model,"change",this.select),this.select()},createFilters:function(){this.filters={}},change:function(){var e=this.filters[this.el.value];e&&this.model.set(e.props)},select:function(){var e=this.model,t="all",i=e.toJSON();_.find(this.filters,function(e,s){var o=_.all(e.props,function(e,t){return e===(_.isUndefined(i[t])?null:i[t])});return o?t=s:void 0}),this.$el.val(t)}}),t.exports=s},{}],22:[function(e,t,i){var s,o=wp.media.view.l10n;s=wp.media.view.AttachmentFilters.extend({createFilters:function(){var e={};_.each(wp.media.view.settings.mimeTypes||{},function(t,i){e[i]={text:t,props:{status:null,type:i,uploadedTo:null,orderby:"date",order:"DESC"}}}),e.all={text:o.allMediaItems,props:{status:null,type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10},wp.media.view.settings.post.id&&(e.uploaded={text:o.uploadedToThisPost,props:{status:null,type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20}),e.unattached={text:o.unattached,props:{status:null,uploadedTo:0,type:null,orderby:"menuOrder",order:"ASC"},priority:50},wp.media.view.settings.mediaTrash&&this.controller.isModeActive("grid")&&(e.trash={text:o.trash,props:{uploadedTo:null,status:"trash",type:null,orderby:"date",order:"DESC"},priority:50}),this.filters=e}}),t.exports=s},{}],23:[function(e,t,i){var s,o=wp.media.view.l10n;s=wp.media.view.AttachmentFilters.extend({id:"media-attachment-date-filters",createFilters:function(){var e={};_.each(wp.media.view.settings.months||{},function(t,i){e[i]={text:t.text,props:{year:t.year,monthnum:t.month}}}),e.all={text:o.allDates,props:{monthnum:!1,year:!1},priority:10},this.filters=e}}),t.exports=s},{}],24:[function(e,t,i){var s,o=wp.media.view.l10n;s=wp.media.view.AttachmentFilters.extend({createFilters:function(){var e,t=this.model.get("type"),i=wp.media.view.settings.mimeTypes;i&&t&&(e=i[t]),this.filters={all:{text:e||o.allMediaItems,props:{uploadedTo:null,orderby:"date",order:"DESC"},priority:10},uploaded:{text:o.uploadedToThisPost,props:{uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20},unattached:{text:o.unattached,props:{uploadedTo:0,orderby:"menuOrder",order:"ASC"},priority:50}}}}),t.exports=s},{}],25:[function(e,t,i){var s,o=wp.media.View,n=jQuery;s=o.extend({tagName:"li",className:"attachment",template:wp.template("attachment"),attributes:function(){return{tabIndex:0,role:"checkbox","aria-label":this.model.get("title"),"aria-checked":!1,"data-id":this.model.get("id")}},events:{"click .js--select-attachment":"toggleSelectionHandler","change [data-setting]":"updateSetting","change [data-setting] input":"updateSetting","change [data-setting] select":"updateSetting","change [data-setting] textarea":"updateSetting","click .attachment-close":"removeFromLibrary","click .check":"checkClickHandler",keydown:"toggleSelectionHandler"},buttons:{},initialize:function(){var e=this.options.selection,t=_.defaults(this.options,{rerenderOnModelChange:!0});t.rerenderOnModelChange?this.listenTo(this.model,"change",this.render):this.listenTo(this.model,"change:percent",this.progress),this.listenTo(this.model,"change:title",this._syncTitle),this.listenTo(this.model,"change:caption",this._syncCaption),this.listenTo(this.model,"change:artist",this._syncArtist),this.listenTo(this.model,"change:album",this._syncAlbum),this.listenTo(this.model,"add",this.select),
this.listenTo(this.model,"remove",this.deselect),e&&(e.on("reset",this.updateSelect,this),this.listenTo(this.model,"selection:single selection:unsingle",this.details),this.details(this.model,this.controller.state().get("selection"))),this.listenTo(this.controller,"attachment:compat:waiting attachment:compat:ready",this.updateSave)},dispose:function(){var e=this.options.selection;return this.updateAll(),e&&e.off(null,null,this),o.prototype.dispose.apply(this,arguments),this},render:function(){var e=_.defaults(this.model.toJSON(),{orientation:"landscape",uploading:!1,type:"",subtype:"",icon:"",filename:"",caption:"",title:"",dateFormatted:"",width:"",height:"",compat:!1,alt:"",description:""},this.options);return e.buttons=this.buttons,e.describe=this.controller.state().get("describe"),"image"===e.type&&(e.size=this.imageSize()),e.can={},e.nonces&&(e.can.remove=!!e.nonces["delete"],e.can.save=!!e.nonces.update),this.controller.state().get("allowLocalEdits")&&(e.allowLocalEdits=!0),e.uploading&&!e.percent&&(e.percent=0),this.views.detach(),this.$el.html(this.template(e)),this.$el.toggleClass("uploading",e.uploading),e.uploading?this.$bar=this.$(".media-progress-bar div"):delete this.$bar,this.updateSelect(),this.updateSave(),this.views.render(),this},progress:function(){this.$bar&&this.$bar.length&&this.$bar.width(this.model.get("percent")+"%")},toggleSelectionHandler:function(e){var t;if("INPUT"!==e.target.nodeName&&"BUTTON"!==e.target.nodeName){if(37===e.keyCode||38===e.keyCode||39===e.keyCode||40===e.keyCode)return void this.controller.trigger("attachment:keydown:arrow",e);if("keydown"!==e.type||13===e.keyCode||32===e.keyCode){if(e.preventDefault(),this.controller.isModeActive("grid")){if(this.controller.isModeActive("edit"))return void this.controller.trigger("edit:attachment",this.model,e.currentTarget);this.controller.isModeActive("select")&&(t="toggle")}e.shiftKey?t="between":(e.ctrlKey||e.metaKey)&&(t="toggle"),this.toggleSelection({method:t}),this.controller.trigger("selection:toggle")}}},toggleSelection:function(e){var t,i,s,o,n=this.collection,r=this.options.selection,a=this.model,l=e&&e.method;if(r){if(t=r.single(),l=_.isUndefined(l)?r.multiple:l,"between"===l&&t&&r.multiple){if(t===a)return;return s=n.indexOf(t),o=n.indexOf(this.model),i=o>s?n.models.slice(s,o+1):n.models.slice(o,s+1),r.add(i),void r.single(a)}if("toggle"===l)return r[this.selected()?"remove":"add"](a),void r.single(a);if("add"===l)return r.add(a),void r.single(a);l||(l="add"),"add"!==l&&(l="reset"),this.selected()?r[t===a?"remove":"single"](a):(r[l](a),r.single(a))}},updateSelect:function(){this[this.selected()?"select":"deselect"]()},selected:function(){var e=this.options.selection;return e?!!e.get(this.model.cid):void 0},select:function(e,t){var i=this.options.selection,s=this.controller;!i||t&&t!==i||this.$el.hasClass("selected")||(this.$el.addClass("selected").attr("aria-checked",!0),s.isModeActive("grid")&&s.isModeActive("select")||this.$(".check").attr("tabindex","0"))},deselect:function(e,t){var i=this.options.selection;!i||t&&t!==i||this.$el.removeClass("selected").attr("aria-checked",!1).find(".check").attr("tabindex","-1")},details:function(e,t){var i,s=this.options.selection;s===t&&(i=s.single(),this.$el.toggleClass("details",i===this.model))},imageSize:function(e){var t=this.model.get("sizes"),i=!1;return e=e||"medium",t&&(t[e]?i=t[e]:t.large?i=t.large:t.thumbnail?i=t.thumbnail:t.full&&(i=t.full),i)?_.clone(i):{url:this.model.get("url"),width:this.model.get("width"),height:this.model.get("height"),orientation:this.model.get("orientation")}},updateSetting:function(e){var t,i,s=n(e.target).closest("[data-setting]");s.length&&(t=s.data("setting"),i=e.target.value,this.model.get(t)!==i&&this.save(t,i))},save:function(){var e=this,t=this._save=this._save||{status:"ready"},i=this.model.save.apply(this.model,arguments),s=t.requests?n.when(i,t.requests):i;t.savedTimer&&clearTimeout(t.savedTimer),this.updateSave("waiting"),t.requests=s,s.always(function(){t.requests===s&&(e.updateSave("resolved"===s.state()?"complete":"error"),t.savedTimer=setTimeout(function(){e.updateSave("ready"),delete t.savedTimer},2e3))})},updateSave:function(e){var t=this._save=this._save||{status:"ready"};return e&&e!==t.status&&(this.$el.removeClass("save-"+t.status),t.status=e),this.$el.addClass("save-"+t.status),this},updateAll:function(){var e,t=this.$("[data-setting]"),i=this.model;e=_.chain(t).map(function(e){var t,s,o=n("input, textarea, select, [value]",e);if(o.length)return t=n(e).data("setting"),s=o.val(),i.get(t)!==s?[t,s]:void 0}).compact().object().value(),_.isEmpty(e)||i.save(e)},removeFromLibrary:function(e){("keydown"!==e.type||13===e.keyCode||32===e.keyCode)&&(e.stopPropagation(),this.collection.remove(this.model))},checkClickHandler:function(e){var t=this.options.selection;t&&(e.stopPropagation(),t.where({id:this.model.get("id")}).length?(t.remove(this.model),this.$el.focus()):t.add(this.model))}}),_.each({caption:"_syncCaption",title:"_syncTitle",artist:"_syncArtist",album:"_syncAlbum"},function(e,t){s.prototype[e]=function(e,i){var s=this.$('[data-setting="'+t+'"]');return s.length?i===s.find("input, textarea, select, [value]").val()?this:this.render():this}}),t.exports=s},{}],26:[function(e,t,i){var s,o=wp.media.view.Attachment,n=wp.media.view.l10n;s=o.extend({tagName:"div",className:"attachment-details",template:wp.template("attachment-details"),attributes:function(){return{tabIndex:0,"data-id":this.model.get("id")}},events:{"change [data-setting]":"updateSetting","change [data-setting] input":"updateSetting","change [data-setting] select":"updateSetting","change [data-setting] textarea":"updateSetting","click .delete-attachment":"deleteAttachment","click .trash-attachment":"trashAttachment","click .untrash-attachment":"untrashAttachment","click .edit-attachment":"editAttachment",keydown:"toggleSelectionHandler"},initialize:function(){this.options=_.defaults(this.options,{rerenderOnModelChange:!1}),this.on("ready",this.initialFocus),o.prototype.initialize.apply(this,arguments)},initialFocus:function(){wp.media.isTouchDevice||this.$('input[type="text"]').eq(0).focus()},deleteAttachment:function(e){e.preventDefault(),window.confirm(n.warnDelete)&&(this.model.destroy(),this.controller.modal.focusManager.focus())},trashAttachment:function(e){var t=this.controller.library;e.preventDefault(),wp.media.view.settings.mediaTrash&&"edit-metadata"===this.controller.content.mode()?(this.model.set("status","trash"),this.model.save().done(function(){t._requery(!0)})):this.model.destroy()},untrashAttachment:function(e){var t=this.controller.library;e.preventDefault(),this.model.set("status","inherit"),this.model.save().done(function(){t._requery(!0)})},editAttachment:function(e){var t=this.controller.states.get("edit-image");window.imageEdit&&t?(e.preventDefault(),t.set("image",this.model),this.controller.setState("edit-image")):this.$el.addClass("needs-refresh")},toggleSelectionHandler:function(e){return"keydown"===e.type&&9===e.keyCode&&e.shiftKey&&e.target===this.$(":tabbable").get(0)?(this.controller.trigger("attachment:details:shift-tab",e),!1):37===e.keyCode||38===e.keyCode||39===e.keyCode||40===e.keyCode?void this.controller.trigger("attachment:keydown:arrow",e):void 0}}),t.exports=s},{}],27:[function(e,t,i){var s=wp.media.view.Attachment.extend({buttons:{close:!0}});t.exports=s},{}],28:[function(e,t,i){var s=wp.media.view.Attachment.Selection.extend({buttons:{close:!0}});t.exports=s},{}],29:[function(e,t,i){var s=wp.media.view.Attachment.extend({buttons:{check:!0}});t.exports=s},{}],30:[function(e,t,i){var s=wp.media.view.Attachment.extend({className:"attachment selection",toggleSelection:function(){this.options.selection.single(this.model)}});t.exports=s},{}],31:[function(e,t,i){var s,o=wp.media.View,n=jQuery;s=o.extend({tagName:"ul",className:"attachments",attributes:{tabIndex:-1},initialize:function(){this.el.id=_.uniqueId("__attachments-view-"),_.defaults(this.options,{refreshSensitivity:wp.media.isTouchDevice?300:200,refreshThreshold:3,AttachmentView:wp.media.view.Attachment,sortable:!1,resize:!0,idealColumnWidth:n(window).width()<640?135:150}),this._viewsByCid={},this.$window=n(window),this.resizeEvent="resize.media-modal-columns",this.collection.on("add",function(e){this.views.add(this.createAttachmentView(e),{at:this.collection.indexOf(e)})},this),this.collection.on("remove",function(e){var t=this._viewsByCid[e.cid];delete this._viewsByCid[e.cid],t&&t.remove()},this),this.collection.on("reset",this.render,this),this.listenTo(this.controller,"library:selection:add",this.attachmentFocus),this.scroll=_.chain(this.scroll).bind(this).throttle(this.options.refreshSensitivity).value(),this.options.scrollElement=this.options.scrollElement||this.el,n(this.options.scrollElement).on("scroll",this.scroll),this.initSortable(),_.bindAll(this,"setColumns"),this.options.resize&&(this.on("ready",this.bindEvents),this.controller.on("open",this.setColumns),_.defer(this.setColumns,this))},bindEvents:function(){this.$window.off(this.resizeEvent).on(this.resizeEvent,_.debounce(this.setColumns,50))},attachmentFocus:function(){this.$("li:first").focus()},restoreFocus:function(){this.$("li.selected:first").focus()},arrowEvent:function(e){var t=this.$el.children("li"),i=this.columns,s=t.filter(":focus").index(),o=i>=s+1?1:Math.ceil((s+1)/i);if(-1!==s){if(37===e.keyCode){if(0===s)return;t.eq(s-1).focus()}if(38===e.keyCode){if(1===o)return;t.eq(s-i).focus()}if(39===e.keyCode){if(t.length===s)return;t.eq(s+1).focus()}if(40===e.keyCode){if(Math.ceil(t.length/i)===o)return;t.eq(s+i).focus()}}},dispose:function(){this.collection.props.off(null,null,this),this.options.resize&&this.$window.off(this.resizeEvent),o.prototype.dispose.apply(this,arguments)},setColumns:function(){var e=this.columns,t=this.$el.width();t&&(this.columns=Math.min(Math.round(t/this.options.idealColumnWidth),12)||1,e&&e===this.columns||this.$el.closest(".media-frame-content").attr("data-columns",this.columns))},initSortable:function(){var e=this.collection;!wp.media.isTouchDevice&&this.options.sortable&&n.fn.sortable&&(this.$el.sortable(_.extend({disabled:!!e.comparator,tolerance:"pointer",start:function(e,t){t.item.data("sortableIndexStart",t.item.index())},update:function(t,i){var s=e.at(i.item.data("sortableIndexStart")),o=e.comparator;delete e.comparator,e.remove(s,{silent:!0}),e.add(s,{silent:!0,at:i.item.index()}),e.comparator=o,e.trigger("reset",e),e.saveMenuOrder()}},this.options.sortable)),e.props.on("change:orderby",function(){this.$el.sortable("option","disabled",!!e.comparator)},this),this.collection.props.on("change:orderby",this.refreshSortable,this),this.refreshSortable())},refreshSortable:function(){if(!wp.media.isTouchDevice&&this.options.sortable&&n.fn.sortable){var e=this.collection,t=e.props.get("orderby"),i="menuOrder"===t||!e.comparator;this.$el.sortable("option","disabled",!i)}},createAttachmentView:function(e){var t=new this.options.AttachmentView({controller:this.controller,model:e,collection:this.collection,selection:this.options.selection});return this._viewsByCid[e.cid]=t},prepare:function(){this.collection.length?this.views.set(this.collection.map(this.createAttachmentView,this)):(this.views.unset(),this.collection.more().done(this.scroll))},ready:function(){this.scroll()},scroll:function(){var e,t=this,i=this.options.scrollElement,s=i.scrollTop;i===document&&(i=document.body,s=n(document).scrollTop()),n(i).is(":visible")&&this.collection.hasMore()&&(e=this.views.parent.toolbar,i.scrollHeight-(s+i.clientHeight)<i.clientHeight/3&&e.get("spinner").show(),i.scrollHeight<s+i.clientHeight*this.options.refreshThreshold&&this.collection.more().done(function(){t.scroll(),e.get("spinner").hide()}))}}),t.exports=s},{}],32:[function(e,t,i){var s,o=wp.media.View,n=wp.media.view.settings.mediaTrash,r=wp.media.view.l10n,a=jQuery;s=o.extend({tagName:"div",className:"attachments-browser",initialize:function(){_.defaults(this.options,{filters:!1,search:!0,date:!0,display:!1,sidebar:!0,AttachmentView:wp.media.view.Attachment.Library}),this.controller.on("toggle:upload:attachment",this.toggleUploader,this),this.controller.on("edit:selection",this.editSelection),this.createToolbar(),this.options.sidebar&&this.createSidebar(),this.createUploader(),this.createAttachments(),this.updateContent(),this.options.sidebar&&"errors"!==this.options.sidebar||(this.$el.addClass("hide-sidebar"),"errors"===this.options.sidebar&&this.$el.addClass("sidebar-for-errors")),this.collection.on("add remove reset",this.updateContent,this)},editSelection:function(e){e.$(".media-button-backToLibrary").focus()},dispose:function(){return this.options.selection.off(null,null,this),o.prototype.dispose.apply(this,arguments),this},createToolbar:function(){var e,t,i;i={controller:this.controller},this.controller.isModeActive("grid")&&(i.className="media-toolbar wp-filter"),this.toolbar=new wp.media.view.Toolbar(i),this.views.add(this.toolbar),this.toolbar.set("spinner",new wp.media.view.Spinner({priority:-60})),-1!==a.inArray(this.options.filters,["uploaded","all"])&&(this.toolbar.set("filtersLabel",new wp.media.view.Label({value:r.filterByType,attributes:{"for":"media-attachment-filters"},priority:-80}).render()),"uploaded"===this.options.filters?this.toolbar.set("filters",new wp.media.view.AttachmentFilters.Uploaded({controller:this.controller,model:this.collection.props,priority:-80}).render()):(t=new wp.media.view.AttachmentFilters.All({controller:this.controller,model:this.collection.props,priority:-80}),this.toolbar.set("filters",t.render()))),this.controller.isModeActive("grid")?(e=o.extend({className:"view-switch media-grid-view-switch",template:wp.template("media-library-view-switcher")}),this.toolbar.set("libraryViewSwitcher",new e({controller:this.controller,priority:-90}).render()),this.toolbar.set("dateFilterLabel",new wp.media.view.Label({value:r.filterByDate,attributes:{"for":"media-attachment-date-filters"},priority:-75}).render()),this.toolbar.set("dateFilter",new wp.media.view.DateFilter({controller:this.controller,model:this.collection.props,priority:-75}).render()),this.toolbar.set("selectModeToggleButton",new wp.media.view.SelectModeToggleButton({text:r.bulkSelect,controller:this.controller,priority:-70}).render()),this.toolbar.set("deleteSelectedButton",new wp.media.view.DeleteSelectedButton({filters:t,style:"primary",disabled:!0,text:n?r.trashSelected:r.deleteSelected,controller:this.controller,priority:-60,click:function(){var e=[],t=[],i=this.controller.state().get("selection"),s=this.controller.state().get("library");i.length&&(n||window.confirm(r.warnBulkDelete))&&(!n||"trash"===i.at(0).get("status")||window.confirm(r.warnBulkTrash))&&(i.each(function(i){return i.get("nonces")["delete"]?void(n&&"trash"===i.get("status")?(i.set("status","inherit"),e.push(i.save()),t.push(i)):n?(i.set("status","trash"),e.push(i.save()),t.push(i)):i.destroy({wait:!0})):void t.push(i)}),e.length?(i.remove(t),a.when.apply(null,e).then(_.bind(function(){s._requery(!0),this.controller.trigger("selection:action:done")},this))):this.controller.trigger("selection:action:done"))}}).render()),n&&this.toolbar.set("deleteSelectedPermanentlyButton",new wp.media.view.DeleteSelectedPermanentlyButton({filters:t,style:"primary",disabled:!0,text:r.deleteSelected,controller:this.controller,priority:-55,click:function(){var e=[],t=this.controller.state().get("selection");t.length&&window.confirm(r.warnBulkDelete)&&(t.each(function(t){return t.get("nonces")["delete"]?void t.destroy():void e.push(t)}),t.remove(e),this.controller.trigger("selection:action:done"))}}).render())):this.options.date&&(this.toolbar.set("dateFilterLabel",new wp.media.view.Label({value:r.filterByDate,attributes:{"for":"media-attachment-date-filters"},priority:-75}).render()),this.toolbar.set("dateFilter",new wp.media.view.DateFilter({controller:this.controller,model:this.collection.props,priority:-75}).render())),this.options.search&&(this.toolbar.set("searchLabel",new wp.media.view.Label({value:r.searchMediaLabel,attributes:{"for":"media-search-input"},priority:60}).render()),this.toolbar.set("search",new wp.media.view.Search({controller:this.controller,model:this.collection.props,priority:60}).render())),this.options.dragInfo&&this.toolbar.set("dragInfo",new o({el:a('<div class="instructions">'+r.dragInfo+"</div>")[0],priority:-40})),this.options.suggestedWidth&&this.options.suggestedHeight&&this.toolbar.set("suggestedDimensions",new o({el:a('<div class="instructions">'+r.suggestedDimensions+" "+this.options.suggestedWidth+" × "+this.options.suggestedHeight+"</div>")[0],priority:-40}))},updateContent:function(){var e,t=this;e=this.controller.isModeActive("grid")?t.attachmentsNoResults:t.uploader,this.collection.length?(e.$el.addClass("hidden"),t.toolbar.get("spinner").hide()):(this.toolbar.get("spinner").show(),this.dfd=this.collection.more().done(function(){t.collection.length?e.$el.addClass("hidden"):e.$el.removeClass("hidden"),t.toolbar.get("spinner").hide()}))},createUploader:function(){this.uploader=new wp.media.view.UploaderInline({controller:this.controller,status:!1,message:this.controller.isModeActive("grid")?"":r.noItemsFound,canClose:this.controller.isModeActive("grid")}),this.uploader.hide(),this.views.add(this.uploader)},toggleUploader:function(){this.uploader.$el.hasClass("hidden")?this.uploader.show():this.uploader.hide()},createAttachments:function(){this.attachments=new wp.media.view.Attachments({controller:this.controller,collection:this.collection,selection:this.options.selection,model:this.model,sortable:this.options.sortable,scrollElement:this.options.scrollElement,idealColumnWidth:this.options.idealColumnWidth,AttachmentView:this.options.AttachmentView}),this.attachments.listenTo(this.controller,"attachment:keydown:arrow",this.attachments.arrowEvent),this.attachments.listenTo(this.controller,"attachment:details:shift-tab",this.attachments.restoreFocus),this.views.add(this.attachments),this.controller.isModeActive("grid")&&(this.attachmentsNoResults=new o({controller:this.controller,tagName:"p"}),this.attachmentsNoResults.$el.addClass("hidden no-media"),this.attachmentsNoResults.$el.html(r.noMedia),this.views.add(this.attachmentsNoResults))},createSidebar:function(){var e=this.options,t=e.selection,i=this.sidebar=new wp.media.view.Sidebar({controller:this.controller});this.views.add(i),this.controller.uploader&&i.set("uploads",new wp.media.view.UploaderStatus({controller:this.controller,priority:40})),t.on("selection:single",this.createSingle,this),t.on("selection:unsingle",this.disposeSingle,this),t.single()&&this.createSingle()},createSingle:function(){var e=this.sidebar,t=this.options.selection.single();e.set("details",new wp.media.view.Attachment.Details({controller:this.controller,model:t,priority:80})),e.set("compat",new wp.media.view.AttachmentCompat({controller:this.controller,model:t,priority:120})),this.options.display&&e.set("display",new wp.media.view.Settings.AttachmentDisplay({controller:this.controller,model:this.model.display(t),attachment:t,priority:160,userSettings:this.model.get("displayUserSettings")})),"insert"===this.model.id&&e.$el.addClass("visible")},disposeSingle:function(){var e=this.sidebar;e.unset("details"),e.unset("compat"),e.unset("display"),e.$el.removeClass("visible")}}),t.exports=s},{}],33:[function(e,t,i){var s,o=wp.media.view.Attachments;s=o.extend({events:{},initialize:function(){return _.defaults(this.options,{sortable:!1,resize:!1,AttachmentView:wp.media.view.Attachment.Selection}),o.prototype.initialize.apply(this,arguments)}}),t.exports=s},{}],34:[function(e,t,i){var s,o=Backbone.$;s=wp.media.View.extend({tagName:"div",className:"button-group button-large media-button-group",initialize:function(){this.buttons=_.map(this.options.buttons||[],function(e){return e instanceof Backbone.View?e:new wp.media.view.Button(e).render()}),delete this.options.buttons,this.options.classes&&this.$el.addClass(this.options.classes)},render:function(){return this.$el.html(o(_.pluck(this.buttons,"el")).detach()),this}}),t.exports=s},{}],35:[function(e,t,i){var s=wp.media.View.extend({tagName:"button",className:"media-button",attributes:{type:"button"},events:{click:"click"},defaults:{text:"",style:"",size:"large",disabled:!1},initialize:function(){this.model=new Backbone.Model(this.defaults),_.each(this.defaults,function(e,t){var i=this.options[t];_.isUndefined(i)||(this.model.set(t,i),delete this.options[t])},this),this.listenTo(this.model,"change",this.render)},render:function(){var e=["button",this.className],t=this.model.toJSON();return t.style&&e.push("button-"+t.style),t.size&&e.push("button-"+t.size),e=_.uniq(e.concat(this.options.classes)),this.el.className=e.join(" "),this.$el.attr("disabled",t.disabled),this.$el.text(this.model.get("text")),this},click:function(e){"#"===this.attributes.href&&e.preventDefault(),this.options.click&&!this.model.get("disabled")&&this.options.click.apply(this,arguments)}});t.exports=s},{}],36:[function(e,t,i){var s,o=wp.media.View,n=wp.media.view.UploaderStatus,r=wp.media.view.l10n,a=jQuery;s=o.extend({className:"crop-content",template:wp.template("crop-content"),initialize:function(){_.bindAll(this,"onImageLoad")},ready:function(){this.controller.frame.on("content:error:crop",this.onError,this),this.$image=this.$el.find(".crop-image"),this.$image.on("load",this.onImageLoad),a(window).on("resize.cropper",_.debounce(this.onImageLoad,250))},remove:function(){a(window).off("resize.cropper"),this.$el.remove(),this.$el.off(),o.prototype.remove.apply(this,arguments)},prepare:function(){return{title:r.cropYourImage,url:this.options.attachment.get("url")}},onImageLoad:function(){var e=this.controller.get("imgSelectOptions");"function"==typeof e&&(e=e(this.options.attachment,this.controller)),e=_.extend(e,{parent:this.$el}),this.trigger("image-loaded"),this.controller.imgSelect=this.$image.imgAreaSelect(e)},onError:function(){var e=this.options.attachment.get("filename");this.views.add(".upload-errors",new wp.media.view.UploaderStatusError({filename:n.prototype.filename(e),message:window._wpMediaViewsL10n.cropError}),{at:0})}}),t.exports=s},{}],37:[function(e,t,i){var s,o=wp.media.View;s=o.extend({className:"image-editor",template:wp.template("image-editor"),initialize:function(e){this.editor=window.imageEdit,this.controller=e.controller,o.prototype.initialize.apply(this,arguments)},prepare:function(){return this.model.toJSON()},loadEditor:function(){var e=this.editor.open(this.model.get("id"),this.model.get("nonces").edit,this);e.done(_.bind(this.focus,this))},focus:function(){this.$(".imgedit-submit .button").eq(0).focus()},back:function(){var e=this.controller.lastState();this.controller.setState(e)},refresh:function(){this.model.fetch()},save:function(){var e=this.controller.lastState();this.model.fetch().done(_.bind(function(){this.controller.setState(e)},this))}}),t.exports=s},{}],38:[function(e,t,i){var s=wp.media.View.extend({className:"media-embed",initialize:function(){this.url=new wp.media.view.EmbedUrl({controller:this.controller,model:this.model.props}).render(),this.views.set([this.url]),this.refresh(),this.listenTo(this.model,"change:type",this.refresh),this.listenTo(this.model,"change:loading",this.loading)},settings:function(e){this._settings&&this._settings.remove(),this._settings=e,this.views.add(e)},refresh:function(){var e,t=this.model.get("type");if("image"===t)e=wp.media.view.EmbedImage;else{if("link"!==t)return;e=wp.media.view.EmbedLink}this.settings(new e({controller:this.controller,model:this.model.props,priority:40}))},loading:function(){this.$el.toggleClass("embed-loading",this.model.get("loading"))}});t.exports=s},{}],39:[function(e,t,i){var s,o=wp.media.view.Settings.AttachmentDisplay;s=o.extend({className:"embed-media-settings",template:wp.template("embed-image-settings"),initialize:function(){o.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"change:url",this.updateImage)},updateImage:function(){this.$("img").attr("src",this.model.get("url"))}}),t.exports=s},{}],40:[function(e,t,i){var s,o=jQuery;s=wp.media.view.Settings.extend({className:"embed-link-settings",template:wp.template("embed-link-settings"),initialize:function(){this.listenTo(this.model,"change:url",this.updateoEmbed)},updateoEmbed:_.debounce(function(){var e=this.model.get("url");this.$(".embed-container").hide().find(".embed-preview").empty(),this.$(".setting").hide(),e&&(e.length<11||!e.match(/^http(s)?:\/\//))||this.fetch()},wp.media.controller.Embed.sensitivity),fetch:function(){var e;o("#embed-url-field").val()===this.model.get("url")&&(this.dfd&&"pending"===this.dfd.state()&&this.dfd.abort(),e=new wp.shortcode({tag:"embed",attrs:_.pick(this.model.attributes,["width","height","src"]),content:this.model.get("url")}),this.dfd=o.ajax({type:"POST",url:wp.ajax.settings.url,context:this,data:{action:"parse-embed",post_ID:wp.media.view.settings.post.id,shortcode:e.string()}}).done(this.renderoEmbed).fail(this.renderFail))},renderFail:function(e,t){"abort"!==t&&this.$(".link-text").show()},renderoEmbed:function(e){var t=e&&e.data&&e.data.body||"";t?this.$(".embed-container").show().find(".embed-preview").html(t):this.renderFail()}}),t.exports=s},{}],41:[function(e,t,i){var s,o=wp.media.View,n=jQuery;s=o.extend({tagName:"label",className:"embed-url",events:{input:"url",keyup:"url",change:"url"},initialize:function(){this.$input=n('<input id="embed-url-field" type="url" />').val(this.model.get("url")),this.input=this.$input[0],this.spinner=n('<span class="spinner" />')[0],this.$el.append([this.input,this.spinner]),this.listenTo(this.model,"change:url",this.render),this.model.get("url")&&_.delay(_.bind(function(){this.model.trigger("change:url")},this),500)},render:function(){var e=this.$input;if(!e.is(":focus"))return this.input.value=this.model.get("url")||"http://",o.prototype.render.apply(this,arguments),this},ready:function(){wp.media.isTouchDevice||this.focus()},url:function(e){this.model.set("url",e.target.value)},focus:function(){var e=this.$input;e.is(":visible")&&e.focus()[0].select()}}),t.exports=s},{}],42:[function(e,t,i){var s=wp.media.View.extend({events:{keydown:"constrainTabbing"},focus:function(){this.$(".media-menu-item").first().focus()},constrainTabbing:function(e){var t;if(9===e.keyCode)return t=this.$(":tabbable").not('.moxie-shim input[type="file"]'),t.last()[0]!==e.target||e.shiftKey?t.first()[0]===e.target&&e.shiftKey?(t.last().focus(),!1):void 0:(t.first().focus(),!1)}});t.exports=s},{}],43:[function(e,t,i){var s=wp.media.View.extend({initialize:function(){_.defaults(this.options,{mode:["select"]}),this._createRegions(),this._createStates(),this._createModes()},_createRegions:function(){this.regions=this.regions?this.regions.slice():[],_.each(this.regions,function(e){this[e]=new wp.media.controller.Region({view:this,id:e,selector:".media-frame-"+e})},this)},_createStates:function(){this.states=new Backbone.Collection(null,{model:wp.media.controller.State}),this.states.on("add",function(e){e.frame=this,e.trigger("ready")},this),this.options.states&&this.states.add(this.options.states)},_createModes:function(){this.activeModes=new Backbone.Collection,this.activeModes.on("add remove reset",_.bind(this.triggerModeEvents,this)),_.each(this.options.mode,function(e){this.activateMode(e)},this)},reset:function(){return this.states.invoke("trigger","reset"),this},triggerModeEvents:function(e,t,i){var s,o,n={add:"activate",remove:"deactivate"};_.each(i,function(e,t){e&&(s=t)}),_.has(n,s)&&(o=e.get("id")+":"+n[s],this.trigger(o))},activateMode:function(e){return this.isModeActive(e)?void 0:(this.activeModes.add([{id:e}]),this.$el.addClass("mode-"+e),this)},deactivateMode:function(e){return this.isModeActive(e)?(this.activeModes.remove(this.activeModes.where({id:e})),this.$el.removeClass("mode-"+e),this.trigger(e+":deactivate"),this):this},isModeActive:function(e){return Boolean(this.activeModes.where({id:e}).length)}});_.extend(s.prototype,wp.media.controller.StateMachine.prototype),t.exports=s},{}],44:[function(e,t,i){var s,o=wp.media.view.MediaFrame.Select,n=wp.media.view.l10n;s=o.extend({defaults:{id:"image",url:"",menu:"image-details",content:"image-details",toolbar:"image-details",type:"link",title:n.imageDetailsTitle,priority:120},initialize:function(e){this.image=new wp.media.model.PostImage(e.metadata),this.options.selection=new wp.media.model.Selection(this.image.attachment,{multiple:!1}),o.prototype.initialize.apply(this,arguments)},bindHandlers:function(){o.prototype.bindHandlers.apply(this,arguments),this.on("menu:create:image-details",this.createMenu,this),this.on("content:create:image-details",this.imageDetailsContent,this),this.on("content:render:edit-image",this.editImageContent,this),this.on("toolbar:render:image-details",this.renderImageDetailsToolbar,this),this.on("toolbar:render:replace",this.renderReplaceImageToolbar,this)},createStates:function(){this.states.add([new wp.media.controller.ImageDetails({image:this.image,editable:!1}),new wp.media.controller.ReplaceImage({id:"replace-image",library:wp.media.query({type:"image"}),image:this.image,multiple:!1,title:n.imageReplaceTitle,toolbar:"replace",priority:80,displaySettings:!0}),new wp.media.controller.EditImage({image:this.image,selection:this.options.selection})])},imageDetailsContent:function(e){e.view=new wp.media.view.ImageDetails({controller:this,model:this.state().image,attachment:this.state().image.attachment})},editImageContent:function(){var e,t=this.state(),i=t.get("image");i&&(e=new wp.media.view.EditImage({model:i,controller:this}).render(),this.content.set(e),e.loadEditor())},renderImageDetailsToolbar:function(){this.toolbar.set(new wp.media.view.Toolbar({controller:this,items:{select:{style:"primary",text:n.update,priority:80,click:function(){var e=this.controller,t=e.state();e.close(),t.trigger("update",e.image.toJSON()),e.setState(e.options.state),e.reset()}}}}))},renderReplaceImageToolbar:function(){var e=this,t=e.lastState(),i=t&&t.id;this.toolbar.set(new wp.media.view.Toolbar({controller:this,items:{back:{text:n.back,priority:20,click:function(){i?e.setState(i):e.close()}},replace:{style:"primary",text:n.replace,priority:80,click:function(){var e=this.controller,t=e.state(),i=t.get("selection"),s=i.single();e.close(),e.image.changeAttachment(s,t.display(s)),t.trigger("replace",e.image.toJSON()),e.setState(e.options.state),e.reset()}}}}))}}),t.exports=s},{}],45:[function(e,t,i){var s,o=wp.media.view.MediaFrame.Select,n=wp.media.controller.Library,r=wp.media.view.l10n;s=o.extend({initialize:function(){this.counts={audio:{count:wp.media.view.settings.attachmentCounts.audio,state:"playlist"},video:{count:wp.media.view.settings.attachmentCounts.video,state:"video-playlist"}},_.defaults(this.options,{multiple:!0,editing:!1,state:"insert",metadata:{}}),o.prototype.initialize.apply(this,arguments),this.createIframeStates()},createStates:function(){var e=this.options;this.states.add([new n({id:"insert",title:r.insertMediaTitle,priority:20,toolbar:"main-insert",filterable:"all",library:wp.media.query(e.library),multiple:e.multiple?"reset":!1,editable:!0,allowLocalEdits:!0,displaySettings:!0,displayUserSettings:!0}),new n({id:"gallery",title:r.createGalleryTitle,priority:40,toolbar:"main-gallery",filterable:"uploaded",multiple:"add",editable:!1,library:wp.media.query(_.defaults({type:"image"},e.library))}),new wp.media.controller.Embed({metadata:e.metadata}),new wp.media.controller.EditImage({model:e.editImage}),new wp.media.controller.GalleryEdit({library:e.selection,editing:e.editing,menu:"gallery"}),new wp.media.controller.GalleryAdd,new n({id:"playlist",title:r.createPlaylistTitle,priority:60,toolbar:"main-playlist",filterable:"uploaded",multiple:"add",editable:!1,library:wp.media.query(_.defaults({type:"audio"},e.library))}),new wp.media.controller.CollectionEdit({type:"audio",collectionType:"playlist",title:r.editPlaylistTitle,SettingsView:wp.media.view.Settings.Playlist,
library:e.selection,editing:e.editing,menu:"playlist",dragInfoText:r.playlistDragInfo,dragInfo:!1}),new wp.media.controller.CollectionAdd({type:"audio",collectionType:"playlist",title:r.addToPlaylistTitle}),new n({id:"video-playlist",title:r.createVideoPlaylistTitle,priority:60,toolbar:"main-video-playlist",filterable:"uploaded",multiple:"add",editable:!1,library:wp.media.query(_.defaults({type:"video"},e.library))}),new wp.media.controller.CollectionEdit({type:"video",collectionType:"playlist",title:r.editVideoPlaylistTitle,SettingsView:wp.media.view.Settings.Playlist,library:e.selection,editing:e.editing,menu:"video-playlist",dragInfoText:r.videoPlaylistDragInfo,dragInfo:!1}),new wp.media.controller.CollectionAdd({type:"video",collectionType:"playlist",title:r.addToVideoPlaylistTitle})]),wp.media.view.settings.post.featuredImageId&&this.states.add(new wp.media.controller.FeaturedImage)},bindHandlers:function(){var e,t;o.prototype.bindHandlers.apply(this,arguments),this.on("activate",this.activate,this),t=_.find(this.counts,function(e){return 0===e.count}),"undefined"!=typeof t&&this.listenTo(wp.media.model.Attachments.all,"change:type",this.mediaTypeCounts),this.on("menu:create:gallery",this.createMenu,this),this.on("menu:create:playlist",this.createMenu,this),this.on("menu:create:video-playlist",this.createMenu,this),this.on("toolbar:create:main-insert",this.createToolbar,this),this.on("toolbar:create:main-gallery",this.createToolbar,this),this.on("toolbar:create:main-playlist",this.createToolbar,this),this.on("toolbar:create:main-video-playlist",this.createToolbar,this),this.on("toolbar:create:featured-image",this.featuredImageToolbar,this),this.on("toolbar:create:main-embed",this.mainEmbedToolbar,this),e={menu:{"default":"mainMenu",gallery:"galleryMenu",playlist:"playlistMenu","video-playlist":"videoPlaylistMenu"},content:{embed:"embedContent","edit-image":"editImageContent","edit-selection":"editSelectionContent"},toolbar:{"main-insert":"mainInsertToolbar","main-gallery":"mainGalleryToolbar","gallery-edit":"galleryEditToolbar","gallery-add":"galleryAddToolbar","main-playlist":"mainPlaylistToolbar","playlist-edit":"playlistEditToolbar","playlist-add":"playlistAddToolbar","main-video-playlist":"mainVideoPlaylistToolbar","video-playlist-edit":"videoPlaylistEditToolbar","video-playlist-add":"videoPlaylistAddToolbar"}},_.each(e,function(e,t){_.each(e,function(e,i){this.on(t+":render:"+i,this[e],this)},this)},this)},activate:function(){_.each(this.counts,function(e){e.count<1&&this.menuItemVisibility(e.state,"hide")},this)},mediaTypeCounts:function(e,t){"undefined"!=typeof this.counts[t]&&this.counts[t].count<1&&(this.counts[t].count++,this.menuItemVisibility(this.counts[t].state,"show"))},mainMenu:function(e){e.set({"library-separator":new wp.media.View({className:"separator",priority:100})})},menuItemVisibility:function(e,t){var i=this.menu.get();"hide"===t?i.hide(e):"show"===t&&i.show(e)},galleryMenu:function(e){var t=this.lastState(),i=t&&t.id,s=this;e.set({cancel:{text:r.cancelGalleryTitle,priority:20,click:function(){i?s.setState(i):s.close(),this.controller.modal.focusManager.focus()}},separateCancel:new wp.media.View({className:"separator",priority:40})})},playlistMenu:function(e){var t=this.lastState(),i=t&&t.id,s=this;e.set({cancel:{text:r.cancelPlaylistTitle,priority:20,click:function(){i?s.setState(i):s.close()}},separateCancel:new wp.media.View({className:"separator",priority:40})})},videoPlaylistMenu:function(e){var t=this.lastState(),i=t&&t.id,s=this;e.set({cancel:{text:r.cancelVideoPlaylistTitle,priority:20,click:function(){i?s.setState(i):s.close()}},separateCancel:new wp.media.View({className:"separator",priority:40})})},embedContent:function(){var e=new wp.media.view.Embed({controller:this,model:this.state()}).render();this.content.set(e),wp.media.isTouchDevice||e.url.focus()},editSelectionContent:function(){var e,t=this.state(),i=t.get("selection");e=new wp.media.view.AttachmentsBrowser({controller:this,collection:i,selection:i,model:t,sortable:!0,search:!1,date:!1,dragInfo:!0,AttachmentView:wp.media.view.Attachments.EditSelection}).render(),e.toolbar.set("backToLibrary",{text:r.returnToLibrary,priority:-100,click:function(){this.controller.content.mode("browse")}}),this.content.set(e),this.trigger("edit:selection",this)},editImageContent:function(){var e=this.state().get("image"),t=new wp.media.view.EditImage({model:e,controller:this}).render();this.content.set(t),t.loadEditor()},selectionStatusToolbar:function(e){var t=this.state().get("editable");e.set("selection",new wp.media.view.Selection({controller:this,collection:this.state().get("selection"),priority:-40,editable:t&&function(){this.controller.content.mode("edit-selection")}}).render())},mainInsertToolbar:function(e){var t=this;this.selectionStatusToolbar(e),e.set("insert",{style:"primary",priority:80,text:r.insertIntoPost,requires:{selection:!0},click:function(){var e=t.state(),i=e.get("selection");t.close(),e.trigger("insert",i).reset()}})},mainGalleryToolbar:function(e){var t=this;this.selectionStatusToolbar(e),e.set("gallery",{style:"primary",text:r.createNewGallery,priority:60,requires:{selection:!0},click:function(){var e=t.state().get("selection"),i=t.state("gallery-edit"),s=e.where({type:"image"});i.set("library",new wp.media.model.Selection(s,{props:e.props.toJSON(),multiple:!0})),this.controller.setState("gallery-edit"),this.controller.modal.focusManager.focus()}})},mainPlaylistToolbar:function(e){var t=this;this.selectionStatusToolbar(e),e.set("playlist",{style:"primary",text:r.createNewPlaylist,priority:100,requires:{selection:!0},click:function(){var e=t.state().get("selection"),i=t.state("playlist-edit"),s=e.where({type:"audio"});i.set("library",new wp.media.model.Selection(s,{props:e.props.toJSON(),multiple:!0})),this.controller.setState("playlist-edit"),this.controller.modal.focusManager.focus()}})},mainVideoPlaylistToolbar:function(e){var t=this;this.selectionStatusToolbar(e),e.set("video-playlist",{style:"primary",text:r.createNewVideoPlaylist,priority:100,requires:{selection:!0},click:function(){var e=t.state().get("selection"),i=t.state("video-playlist-edit"),s=e.where({type:"video"});i.set("library",new wp.media.model.Selection(s,{props:e.props.toJSON(),multiple:!0})),this.controller.setState("video-playlist-edit"),this.controller.modal.focusManager.focus()}})},featuredImageToolbar:function(e){this.createSelectToolbar(e,{text:r.setFeaturedImage,state:this.options.state})},mainEmbedToolbar:function(e){e.view=new wp.media.view.Toolbar.Embed({controller:this})},galleryEditToolbar:function(){var e=this.state().get("editing");this.toolbar.set(new wp.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:e?r.updateGallery:r.insertGallery,priority:80,requires:{library:!0},click:function(){var e=this.controller,t=e.state();e.close(),t.trigger("update",t.get("library")),e.setState(e.options.state),e.reset()}}}}))},galleryAddToolbar:function(){this.toolbar.set(new wp.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:r.addToGallery,priority:80,requires:{selection:!0},click:function(){var e=this.controller,t=e.state(),i=e.state("gallery-edit");i.get("library").add(t.get("selection").models),t.trigger("reset"),e.setState("gallery-edit")}}}}))},playlistEditToolbar:function(){var e=this.state().get("editing");this.toolbar.set(new wp.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:e?r.updatePlaylist:r.insertPlaylist,priority:80,requires:{library:!0},click:function(){var e=this.controller,t=e.state();e.close(),t.trigger("update",t.get("library")),e.setState(e.options.state),e.reset()}}}}))},playlistAddToolbar:function(){this.toolbar.set(new wp.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:r.addToPlaylist,priority:80,requires:{selection:!0},click:function(){var e=this.controller,t=e.state(),i=e.state("playlist-edit");i.get("library").add(t.get("selection").models),t.trigger("reset"),e.setState("playlist-edit")}}}}))},videoPlaylistEditToolbar:function(){var e=this.state().get("editing");this.toolbar.set(new wp.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:e?r.updateVideoPlaylist:r.insertVideoPlaylist,priority:140,requires:{library:!0},click:function(){var e=this.controller,t=e.state(),i=t.get("library");i.type="video",e.close(),t.trigger("update",i),e.setState(e.options.state),e.reset()}}}}))},videoPlaylistAddToolbar:function(){this.toolbar.set(new wp.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:r.addToVideoPlaylist,priority:140,requires:{selection:!0},click:function(){var e=this.controller,t=e.state(),i=e.state("video-playlist-edit");i.get("library").add(t.get("selection").models),t.trigger("reset"),e.setState("video-playlist-edit")}}}}))}}),t.exports=s},{}],46:[function(e,t,i){var s,o=wp.media.view.MediaFrame,n=wp.media.view.l10n;s=o.extend({initialize:function(){o.prototype.initialize.apply(this,arguments),_.defaults(this.options,{selection:[],library:{},multiple:!1,state:"library"}),this.createSelection(),this.createStates(),this.bindHandlers()},createSelection:function(){var e=this.options.selection;e instanceof wp.media.model.Selection||(this.options.selection=new wp.media.model.Selection(e,{multiple:this.options.multiple})),this._selection={attachments:new wp.media.model.Attachments,difference:[]}},createStates:function(){var e=this.options;this.options.states||this.states.add([new wp.media.controller.Library({library:wp.media.query(e.library),multiple:e.multiple,title:e.title,priority:20})])},bindHandlers:function(){this.on("router:create:browse",this.createRouter,this),this.on("router:render:browse",this.browseRouter,this),this.on("content:create:browse",this.browseContent,this),this.on("content:render:upload",this.uploadContent,this),this.on("toolbar:create:select",this.createSelectToolbar,this)},browseRouter:function(e){e.set({upload:{text:n.uploadFilesTitle,priority:20},browse:{text:n.mediaLibraryTitle,priority:40}})},browseContent:function(e){var t=this.state();this.$el.removeClass("hide-toolbar"),e.view=new wp.media.view.AttachmentsBrowser({controller:this,collection:t.get("library"),selection:t.get("selection"),model:t,sortable:t.get("sortable"),search:t.get("searchable"),filters:t.get("filterable"),date:t.get("date"),display:t.has("display")?t.get("display"):t.get("displaySettings"),dragInfo:t.get("dragInfo"),idealColumnWidth:t.get("idealColumnWidth"),suggestedWidth:t.get("suggestedWidth"),suggestedHeight:t.get("suggestedHeight"),AttachmentView:t.get("AttachmentView")})},uploadContent:function(){this.$el.removeClass("hide-toolbar"),this.content.set(new wp.media.view.UploaderInline({controller:this}))},createSelectToolbar:function(e,t){t=t||this.options.button||{},t.controller=this,e.view=new wp.media.view.Toolbar.Select(t)}}),t.exports=s},{}],47:[function(e,t,i){var s=wp.media.View.extend({className:"media-iframe",render:function(){return this.views.detach(),this.$el.html('<iframe src="'+this.controller.state().get("src")+'" />'),this.views.render(),this}});t.exports=s},{}],48:[function(e,t,i){var s,o=wp.media.view.Settings.AttachmentDisplay,n=jQuery;s=o.extend({className:"image-details",template:wp.template("image-details"),events:_.defaults(o.prototype.events,{"click .edit-attachment":"editAttachment","click .replace-attachment":"replaceAttachment","click .advanced-toggle":"onToggleAdvanced",'change [data-setting="customWidth"]':"onCustomSize",'change [data-setting="customHeight"]':"onCustomSize",'keyup [data-setting="customWidth"]':"onCustomSize",'keyup [data-setting="customHeight"]':"onCustomSize"}),initialize:function(){this.options.attachment=this.model.attachment,this.listenTo(this.model,"change:url",this.updateUrl),this.listenTo(this.model,"change:link",this.toggleLinkSettings),this.listenTo(this.model,"change:size",this.toggleCustomSize),o.prototype.initialize.apply(this,arguments)},prepare:function(){var e=!1;return this.model.attachment&&(e=this.model.attachment.toJSON()),_.defaults({model:this.model.toJSON(),attachment:e},this.options)},render:function(){var e=arguments;return this.model.attachment&&"pending"===this.model.dfd.state()?this.model.dfd.done(_.bind(function(){o.prototype.render.apply(this,e),this.postRender()},this)).fail(_.bind(function(){this.model.attachment=!1,o.prototype.render.apply(this,e),this.postRender()},this)):(o.prototype.render.apply(this,arguments),this.postRender()),this},postRender:function(){setTimeout(_.bind(this.resetFocus,this),10),this.toggleLinkSettings(),"show"===window.getUserSetting("advImgDetails")&&this.toggleAdvanced(!0),this.trigger("post-render")},resetFocus:function(){this.$(".link-to-custom").blur(),this.$(".embed-media-settings").scrollTop(0)},updateUrl:function(){this.$(".image img").attr("src",this.model.get("url")),this.$(".url").val(this.model.get("url"))},toggleLinkSettings:function(){"none"===this.model.get("link")?this.$(".link-settings").addClass("hidden"):this.$(".link-settings").removeClass("hidden")},toggleCustomSize:function(){"custom"!==this.model.get("size")?this.$(".custom-size").addClass("hidden"):this.$(".custom-size").removeClass("hidden")},onCustomSize:function(e){var t,i=n(e.target).data("setting"),s=n(e.target).val();return!/^\d+/.test(s)||parseInt(s,10)<1?void e.preventDefault():void("customWidth"===i?(t=Math.round(1/this.model.get("aspectRatio")*s),this.model.set("customHeight",t,{silent:!0}),this.$('[data-setting="customHeight"]').val(t)):(t=Math.round(this.model.get("aspectRatio")*s),this.model.set("customWidth",t,{silent:!0}),this.$('[data-setting="customWidth"]').val(t)))},onToggleAdvanced:function(e){e.preventDefault(),this.toggleAdvanced()},toggleAdvanced:function(e){var t,i=this.$el.find(".advanced-section");i.hasClass("advanced-visible")||e===!1?(i.removeClass("advanced-visible"),i.find(".advanced-settings").addClass("hidden"),t="hide"):(i.addClass("advanced-visible"),i.find(".advanced-settings").removeClass("hidden"),t="show"),window.setUserSetting("advImgDetails",t)},editAttachment:function(e){var t=this.controller.states.get("edit-image");window.imageEdit&&t&&(e.preventDefault(),t.set("image",this.model.attachment),this.controller.setState("edit-image"))},replaceAttachment:function(e){e.preventDefault(),this.controller.setState("replace-image")}}),t.exports=s},{}],49:[function(e,t,i){var s=wp.media.View.extend({tagName:"label",className:"screen-reader-text",initialize:function(){this.value=this.options.value},render:function(){return this.$el.html(this.value),this}});t.exports=s},{}],50:[function(e,t,i){var s,o=wp.media.view.Frame,n=jQuery;s=o.extend({className:"media-frame",template:wp.template("media-frame"),regions:["menu","title","content","toolbar","router"],events:{"click div.media-frame-title h1":"toggleMenu"},initialize:function(){o.prototype.initialize.apply(this,arguments),_.defaults(this.options,{title:"",modal:!0,uploader:!0}),this.$el.addClass("wp-core-ui"),this.options.modal&&(this.modal=new wp.media.view.Modal({controller:this,title:this.options.title}),this.modal.content(this)),(wp.Uploader.limitExceeded||!wp.Uploader.browser.supported)&&(this.options.uploader=!1),this.options.uploader&&(this.uploader=new wp.media.view.UploaderWindow({controller:this,uploader:{dropzone:this.modal?this.modal.$el:this.$el,container:this.$el}}),this.views.set(".media-frame-uploader",this.uploader)),this.on("attach",_.bind(this.views.ready,this.views),this),this.on("title:create:default",this.createTitle,this),this.title.mode("default"),this.on("title:render",function(e){e.$el.append('<span class="dashicons dashicons-arrow-down"></span>')}),this.on("menu:create:default",this.createMenu,this)},render:function(){return!this.state()&&this.options.state&&this.setState(this.options.state),o.prototype.render.apply(this,arguments)},createTitle:function(e){e.view=new wp.media.View({controller:this,tagName:"h1"})},createMenu:function(e){e.view=new wp.media.view.Menu({controller:this})},toggleMenu:function(){this.$el.find(".media-menu").toggleClass("visible")},createToolbar:function(e){e.view=new wp.media.view.Toolbar({controller:this})},createRouter:function(e){e.view=new wp.media.view.Router({controller:this})},createIframeStates:function(e){var t,i=wp.media.view.settings,s=i.tabs,o=i.tabUrl;s&&o&&(t=n("#post_ID"),t.length&&(o+="&post_id="+t.val()),_.each(s,function(t,i){this.state("iframe:"+i).set(_.defaults({tab:i,src:o+"&tab="+i,title:t,content:"iframe",menu:"default"},e))},this),this.on("content:create:iframe",this.iframeContent,this),this.on("content:deactivate:iframe",this.iframeContentCleanup,this),this.on("menu:render:default",this.iframeMenu,this),this.on("open",this.hijackThickbox,this),this.on("close",this.restoreThickbox,this))},iframeContent:function(e){this.$el.addClass("hide-toolbar"),e.view=new wp.media.view.Iframe({controller:this})},iframeContentCleanup:function(){this.$el.removeClass("hide-toolbar")},iframeMenu:function(e){var t={};e&&(_.each(wp.media.view.settings.tabs,function(e,i){t["iframe:"+i]={text:this.state("iframe:"+i).get("title"),priority:200}},this),e.set(t))},hijackThickbox:function(){var e=this;window.tb_remove&&!this._tb_remove&&(this._tb_remove=window.tb_remove,window.tb_remove=function(){e.close(),e.reset(),e.setState(e.options.state),e._tb_remove.call(window)})},restoreThickbox:function(){this._tb_remove&&(window.tb_remove=this._tb_remove,delete this._tb_remove)}}),_.each(["open","close","attach","detach","escape"],function(e){s.prototype[e]=function(){return this.modal&&this.modal[e].apply(this.modal,arguments),this}}),t.exports=s},{}],51:[function(e,t,i){var s,o=jQuery;s=wp.media.View.extend({tagName:"a",className:"media-menu-item",attributes:{href:"#"},events:{click:"_click"},_click:function(e){var t=this.options.click;e&&e.preventDefault(),t?t.call(this):this.click(),wp.media.isTouchDevice||o(".media-frame-content input").first().focus()},click:function(){var e=this.options.state;e&&(this.controller.setState(e),this.views.parent.$el.removeClass("visible"))},render:function(){var e=this.options;return e.text?this.$el.text(e.text):e.html&&this.$el.html(e.html),this}}),t.exports=s},{}],52:[function(e,t,i){var s,o=wp.media.view.MenuItem,n=wp.media.view.PriorityList;s=n.extend({tagName:"div",className:"media-menu",property:"state",ItemView:o,region:"menu",toView:function(e,t){return e=e||{},e[this.property]=e[this.property]||t,new this.ItemView(e).render()},ready:function(){n.prototype.ready.apply(this,arguments),this.visibility()},set:function(){n.prototype.set.apply(this,arguments),this.visibility()},unset:function(){n.prototype.unset.apply(this,arguments),this.visibility()},visibility:function(){var e=this.region,t=this.controller[e].get(),i=this.views.get(),s=!i||i.length<2;this===t&&this.controller.$el.toggleClass("hide-"+e,s)},select:function(e){var t=this.get(e);t&&(this.deselect(),t.$el.addClass("active"))},deselect:function(){this.$el.children().removeClass("active")},hide:function(e){var t=this.get(e);t&&t.$el.addClass("hidden")},show:function(e){var t=this.get(e);t&&t.$el.removeClass("hidden")}}),t.exports=s},{}],53:[function(e,t,i){var s,o=jQuery;s=wp.media.View.extend({tagName:"div",template:wp.template("media-modal"),attributes:{tabindex:0},events:{"click .media-modal-backdrop, .media-modal-close":"escapeHandler",keydown:"keydown"},initialize:function(){_.defaults(this.options,{container:document.body,title:"",propagate:!0,freeze:!0}),this.focusManager=new wp.media.view.FocusManager({el:this.el})},prepare:function(){return{title:this.options.title}},attach:function(){return this.views.attached?this:(this.views.rendered||this.render(),this.$el.appendTo(this.options.container),this.views.attached=!0,this.views.ready(),this.propagate("attach"))},detach:function(){return this.$el.is(":visible")&&this.close(),this.$el.detach(),this.views.attached=!1,this.propagate("detach")},open:function(){var e,t=this.$el,i=this.options;return t.is(":visible")&&o.contains(document,t[0])?this:(this.views.attached||this.attach(),i.freeze&&(this._freeze={scrollTop:o(window).scrollTop()}),o("body").addClass("modal-open"),t.show(),"ontouchend"in document&&(e=window.tinymce&&window.tinymce.activeEditor)&&!e.isHidden()&&e.iframeElement&&(e.iframeElement.focus(),e.iframeElement.blur(),setTimeout(function(){e.iframeElement.blur()},100)),this.$el.focus(),this.propagate("open"))},close:function(e){var t=this._freeze;return this.views.attached&&this.$el.is(":visible")?(o("body").removeClass("modal-open"),this.$el.hide().undelegate("keydown"),o("#wpbody-content").focus(),this.propagate("close"),t&&o(window).scrollTop(t.scrollTop),e&&e.escape&&this.propagate("escape"),this):this},escape:function(){return this.close({escape:!0})},escapeHandler:function(e){e.preventDefault(),this.escape()},content:function(e){return this.views.set(".media-modal-content",e),this},propagate:function(e){return this.trigger(e),this.options.propagate&&this.controller.trigger(e),this},keydown:function(e){27===e.which&&this.$el.is(":visible")&&(this.escape(),e.stopImmediatePropagation())}}),t.exports=s},{}],54:[function(e,t,i){var s=wp.media.View.extend({tagName:"div",initialize:function(){this._views={},this.set(_.extend({},this._views,this.options.views),{silent:!0}),delete this.options.views,this.options.silent||this.render()},set:function(e,t,i){var s,o,n;return i=i||{},_.isObject(e)?(_.each(e,function(e,t){this.set(t,e)},this),this):(t instanceof Backbone.View||(t=this.toView(t,e,i)),t.controller=t.controller||this.controller,this.unset(e),s=t.options.priority||10,o=this.views.get()||[],_.find(o,function(e,t){return e.options.priority>s?(n=t,!0):void 0}),this._views[e]=t,this.views.add(t,{at:_.isNumber(n)?n:o.length||0}),this)},get:function(e){return this._views[e]},unset:function(e){var t=this.get(e);return t&&t.remove(),delete this._views[e],this},toView:function(e){return new wp.media.View(e)}});t.exports=s},{}],55:[function(e,t,i){var s=wp.media.view.MenuItem.extend({click:function(){var e=this.options.contentMode;e&&this.controller.content.mode(e)}});t.exports=s},{}],56:[function(e,t,i){var s,o=wp.media.view.Menu;s=o.extend({tagName:"div",className:"media-router",property:"contentMode",ItemView:wp.media.view.RouterItem,region:"router",initialize:function(){this.controller.on("content:render",this.update,this),o.prototype.initialize.apply(this,arguments)},update:function(){var e=this.controller.content.mode();e&&this.select(e)}}),t.exports=s},{}],57:[function(e,t,i){var s,o=wp.media.view.l10n;s=wp.media.View.extend({tagName:"input",className:"search",id:"media-search-input",attributes:{type:"search",placeholder:o.search},events:{input:"search",keyup:"search",change:"search",search:"search"},render:function(){return this.el.value=this.model.escape("search"),this},search:function(e){e.target.value?this.model.set("search",e.target.value):this.model.unset("search")}}),t.exports=s},{}],58:[function(e,t,i){var s,o=wp.media.view.l10n;s=wp.media.View.extend({tagName:"div",className:"media-selection",template:wp.template("media-selection"),events:{"click .edit-selection":"edit","click .clear-selection":"clear"},initialize:function(){_.defaults(this.options,{editable:!1,clearable:!0}),this.attachments=new wp.media.view.Attachments.Selection({controller:this.controller,collection:this.collection,selection:this.collection,model:new Backbone.Model}),this.views.set(".selection-view",this.attachments),this.collection.on("add remove reset",this.refresh,this),this.controller.on("content:activate",this.refresh,this)},ready:function(){this.refresh()},refresh:function(){if(this.$el.children().length){var e=this.collection,t="edit-selection"===this.controller.content.mode();this.$el.toggleClass("empty",!e.length),this.$el.toggleClass("one",1===e.length),this.$el.toggleClass("editing",t),this.$(".count").text(o.selected.replace("%d",e.length))}},edit:function(e){e.preventDefault(),this.options.editable&&this.options.editable.call(this,this.collection)},clear:function(e){e.preventDefault(),this.collection.reset(),this.controller.modal.focusManager.focus()}}),t.exports=s},{}],59:[function(e,t,i){var s,o=wp.media.View,n=Backbone.$;s=o.extend({events:{"click button":"updateHandler","change input":"updateHandler","change select":"updateHandler","change textarea":"updateHandler"},initialize:function(){this.model=this.model||new Backbone.Model,this.listenTo(this.model,"change",this.updateChanges)},prepare:function(){return _.defaults({model:this.model.toJSON()},this.options)},render:function(){return o.prototype.render.apply(this,arguments),_(this.model.attributes).chain().keys().each(this.update,this),this},update:function(e){var t,i,s=this.model.get(e),o=this.$('[data-setting="'+e+'"]');o.length&&(o.is("select")?(i=o.find('[value="'+s+'"]'),i.length?(o.find("option").prop("selected",!1),i.prop("selected",!0)):this.model.set(e,o.find(":selected").val())):o.hasClass("button-group")?(t=o.find("button").removeClass("active"),t.filter('[value="'+s+'"]').addClass("active")):o.is('input[type="text"], textarea')?o.is(":focus")||o.val(s):o.is('input[type="checkbox"]')&&o.prop("checked",!!s&&"false"!==s))},updateHandler:function(e){var t,i=n(e.target).closest("[data-setting]"),s=e.target.value;e.preventDefault(),i.length&&(i.is('input[type="checkbox"]')&&(s=i[0].checked),this.model.set(i.data("setting"),s),(t=i.data("userSetting"))&&window.setUserSetting(t,s))},updateChanges:function(e){e.hasChanged()&&_(e.changed).chain().keys().each(this.update,this)}}),t.exports=s},{}],60:[function(e,t,i){var s,o=wp.media.view.Settings;s=o.extend({className:"attachment-display-settings",template:wp.template("attachment-display-settings"),initialize:function(){var e=this.options.attachment;_.defaults(this.options,{userSettings:!1}),o.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"change:link",this.updateLinkTo),e&&e.on("change:uploading",this.render,this)},dispose:function(){var e=this.options.attachment;e&&e.off(null,null,this),o.prototype.dispose.apply(this,arguments)},render:function(){var e=this.options.attachment;return e&&_.extend(this.options,{sizes:e.get("sizes"),type:e.get("type")}),o.prototype.render.call(this),this.updateLinkTo(),this},updateLinkTo:function(){var e=this.model.get("link"),t=this.$(".link-to-custom"),i=this.options.attachment;return"none"===e||"embed"===e||!i&&"custom"!==e?void t.addClass("hidden"):(i&&("post"===e?t.val(i.get("link")):"file"===e?t.val(i.get("url")):this.model.get("linkUrl")||t.val("http://"),t.prop("readonly","custom"!==e)),t.removeClass("hidden"),void(!wp.media.isTouchDevice&&t.is(":visible")&&t.focus()[0].select()))}}),t.exports=s},{}],61:[function(e,t,i){var s=wp.media.view.Settings.extend({className:"collection-settings gallery-settings",template:wp.template("gallery-settings")});t.exports=s},{}],62:[function(e,t,i){var s=wp.media.view.Settings.extend({className:"collection-settings playlist-settings",template:wp.template("playlist-settings")});t.exports=s},{}],63:[function(e,t,i){var s=wp.media.view.PriorityList.extend({className:"media-sidebar"});t.exports=s},{}],64:[function(e,t,i){var s,o=wp.media.view;s=o.Cropper.extend({className:"crop-content site-icon",ready:function(){o.Cropper.prototype.ready.apply(this,arguments),this.$(".crop-image").on("load",_.bind(this.addSidebar,this))},addSidebar:function(){this.sidebar=new wp.media.view.Sidebar({controller:this.controller}),this.sidebar.set("preview",new wp.media.view.SiteIconPreview({controller:this.controller,attachment:this.options.attachment})),this.controller.cropperView.views.add(this.sidebar)}}),t.exports=s},{}],65:[function(e,t,i){var s,o=wp.media.View,n=jQuery;s=o.extend({className:"site-icon-preview",template:wp.template("site-icon-preview"),ready:function(){this.controller.imgSelect.setOptions({onInit:this.updatePreview,onSelectChange:this.updatePreview})},prepare:function(){return{url:this.options.attachment.get("url")}},updatePreview:function(e,t){var i=64/t.width,s=64/t.height,o=16/t.width,r=16/t.height;n("#preview-app-icon").css({width:Math.round(i*this.imageWidth)+"px",height:Math.round(s*this.imageHeight)+"px",marginLeft:"-"+Math.round(i*t.x1)+"px",marginTop:"-"+Math.round(s*t.y1)+"px"}),n("#preview-favicon").css({width:Math.round(o*this.imageWidth)+"px",height:Math.round(r*this.imageHeight)+"px",marginLeft:"-"+Math.round(o*t.x1)+"px",marginTop:"-"+Math.floor(r*t.y1)+"px"})}}),t.exports=s},{}],66:[function(e,t,i){var s=wp.media.View.extend({tagName:"span",className:"spinner",spinnerTimeout:!1,delay:400,show:function(){return this.spinnerTimeout||(this.spinnerTimeout=_.delay(function(e){e.addClass("is-active")},this.delay,this.$el)),this},hide:function(){return this.$el.removeClass("is-active"),this.spinnerTimeout=clearTimeout(this.spinnerTimeout),this}});t.exports=s},{}],67:[function(e,t,i){var s,o=wp.media.View;s=o.extend({tagName:"div",className:"media-toolbar",initialize:function(){var e=this.controller.state(),t=this.selection=e.get("selection"),i=this.library=e.get("library");this._views={},this.primary=new wp.media.view.PriorityList,this.secondary=new wp.media.view.PriorityList,this.primary.$el.addClass("media-toolbar-primary search-form"),this.secondary.$el.addClass("media-toolbar-secondary"),this.views.set([this.secondary,this.primary]),this.options.items&&this.set(this.options.items,{silent:!0}),this.options.silent||this.render(),t&&t.on("add remove reset",this.refresh,this),i&&i.on("add remove reset",this.refresh,this)},dispose:function(){return this.selection&&this.selection.off(null,null,this),this.library&&this.library.off(null,null,this),o.prototype.dispose.apply(this,arguments)},ready:function(){this.refresh()},set:function(e,t,i){var s;return i=i||{},_.isObject(e)?_.each(e,function(e,t){this.set(t,e,{silent:!0})},this):(t instanceof Backbone.View||(t.classes=["media-button-"+e].concat(t.classes||[]),t=new wp.media.view.Button(t).render()),t.controller=t.controller||this.controller,this._views[e]=t,s=t.options.priority<0?"secondary":"primary",this[s].set(e,t,i)),i.silent||this.refresh(),this},get:function(e){return this._views[e]},unset:function(e,t){return delete this._views[e],this.primary.unset(e,t),this.secondary.unset(e,t),t&&t.silent||this.refresh(),this},refresh:function(){var e=this.controller.state(),t=e.get("library"),i=e.get("selection");_.each(this._views,function(e){if(e.model&&e.options&&e.options.requires){var s=e.options.requires,o=!1;o=_.some(i.models,function(e){return e.get("uploading")===!0}),s.selection&&i&&!i.length?o=!0:s.library&&t&&!t.length&&(o=!0),e.model.set("disabled",o)}})}}),t.exports=s},{}],68:[function(e,t,i){var s,o=wp.media.view.Toolbar.Select,n=wp.media.view.l10n;s=o.extend({initialize:function(){_.defaults(this.options,{text:n.insertIntoPost,requires:!1}),o.prototype.initialize.apply(this,arguments)},refresh:function(){var e=this.controller.state().props.get("url");this.get("select").model.set("disabled",!e||"http://"===e),o.prototype.refresh.apply(this,arguments)}}),t.exports=s},{}],69:[function(e,t,i){var s,o=wp.media.view.Toolbar,n=wp.media.view.l10n;s=o.extend({initialize:function(){var e=this.options;_.bindAll(this,"clickSelect"),_.defaults(e,{event:"select",state:!1,reset:!0,close:!0,text:n.select,requires:{selection:!0}}),e.items=_.defaults(e.items||{},{select:{style:"primary",text:e.text,priority:80,click:this.clickSelect,requires:e.requires}}),o.prototype.initialize.apply(this,arguments)},clickSelect:function(){var e=this.options,t=this.controller;e.close&&t.close(),e.event&&t.state().trigger(e.event),e.state&&t.setState(e.state),e.reset&&t.reset()}}),t.exports=s},{}],70:[function(e,t,i){var s,o=wp.media.View,n=wp.media.view.l10n,r=jQuery;s=o.extend({tagName:"div",className:"uploader-editor",template:wp.template("uploader-editor"),localDrag:!1,overContainer:!1,overDropzone:!1,draggingFile:null,initialize:function(){return this.initialized=!1,window.tinyMCEPreInit&&window.tinyMCEPreInit.dragDropUpload&&this.browserSupport()?(this.$document=r(document),
this.dropzones=[],this.files=[],this.$document.on("drop",".uploader-editor",_.bind(this.drop,this)),this.$document.on("dragover",".uploader-editor",_.bind(this.dropzoneDragover,this)),this.$document.on("dragleave",".uploader-editor",_.bind(this.dropzoneDragleave,this)),this.$document.on("click",".uploader-editor",_.bind(this.click,this)),this.$document.on("dragover",_.bind(this.containerDragover,this)),this.$document.on("dragleave",_.bind(this.containerDragleave,this)),this.$document.on("dragstart dragend drop",_.bind(function(e){this.localDrag="dragstart"===e.type,"drop"===e.type&&this.containerDragleave()},this)),this.initialized=!0,this):this},browserSupport:function(){var e=!1,t=document.createElement("div");return e="draggable"in t||"ondragstart"in t&&"ondrop"in t,e=e&&!!(window.File&&window.FileList&&window.FileReader)},isDraggingFile:function(e){return null!==this.draggingFile?this.draggingFile:_.isUndefined(e.originalEvent)||_.isUndefined(e.originalEvent.dataTransfer)?!1:(this.draggingFile=_.indexOf(e.originalEvent.dataTransfer.types,"Files")>-1&&-1===_.indexOf(e.originalEvent.dataTransfer.types,"text/plain"),this.draggingFile)},refresh:function(e){var t;for(t in this.dropzones)this.dropzones[t].toggle(this.overContainer||this.overDropzone);return _.isUndefined(e)||r(e.target).closest(".uploader-editor").toggleClass("droppable",this.overDropzone),this.overContainer||this.overDropzone||(this.draggingFile=null),this},render:function(){return this.initialized?(o.prototype.render.apply(this,arguments),r(".wp-editor-wrap").each(_.bind(this.attach,this)),this):this},attach:function(e,t){var i=this.$el.clone();return this.dropzones.push(i),r(t).append(i),this},drop:function(e){var t,i;return this.containerDragleave(e),this.dropzoneDragleave(e),this.files=e.originalEvent.dataTransfer.files,this.files.length<1?void 0:(t=r(e.target).parents(".wp-editor-wrap"),t.length>0&&t[0].id&&(window.wpActiveEditor=t[0].id.slice(3,-5)),this.workflow?(this.workflow.state().reset(),this.addFiles.apply(this),this.workflow.open()):(this.workflow=wp.media.editor.open(window.wpActiveEditor,{frame:"post",state:"insert",title:n.addMedia,multiple:!0}),i=this.workflow.uploader,i.uploader&&i.uploader.ready?this.addFiles.apply(this):this.workflow.on("uploader:ready",this.addFiles,this)),!1)},addFiles:function(){return this.files.length&&(this.workflow.uploader.uploader.uploader.addFile(_.toArray(this.files)),this.files=[]),this},containerDragover:function(e){!this.localDrag&&this.isDraggingFile(e)&&(this.overContainer=!0,this.refresh())},containerDragleave:function(){this.overContainer=!1,_.delay(_.bind(this.refresh,this),50)},dropzoneDragover:function(e){return!this.localDrag&&this.isDraggingFile(e)?(this.overDropzone=!0,this.refresh(e),!1):void 0},dropzoneDragleave:function(e){this.overDropzone=!1,_.delay(_.bind(this.refresh,this,e),50)},click:function(e){this.containerDragleave(e),this.dropzoneDragleave(e),this.localDrag=!1}}),t.exports=s},{}],71:[function(e,t,i){var s,o=wp.media.View;s=o.extend({tagName:"div",className:"uploader-inline",template:wp.template("uploader-inline"),events:{"click .close":"hide"},initialize:function(){_.defaults(this.options,{message:"",status:!0,canClose:!1}),!this.options.$browser&&this.controller.uploader&&(this.options.$browser=this.controller.uploader.$browser),_.isUndefined(this.options.postId)&&(this.options.postId=wp.media.view.settings.post.id),this.options.status&&this.views.set(".upload-inline-status",new wp.media.view.UploaderStatus({controller:this.controller}))},prepare:function(){var e=this.controller.state().get("suggestedWidth"),t=this.controller.state().get("suggestedHeight"),i={};return i.message=this.options.message,i.canClose=this.options.canClose,e&&t&&(i.suggestedWidth=e,i.suggestedHeight=t),i},dispose:function(){return this.disposing?o.prototype.dispose.apply(this,arguments):(this.disposing=!0,this.remove())},remove:function(){var e=o.prototype.remove.apply(this,arguments);return _.defer(_.bind(this.refresh,this)),e},refresh:function(){var e=this.controller.uploader;e&&e.refresh()},ready:function(){var e,t=this.options.$browser;if(this.controller.uploader){if(e=this.$(".browser"),e[0]===t[0])return;t.detach().text(e.text()),t[0].className=e[0].className,e.replaceWith(t.show())}return this.refresh(),this},show:function(){this.$el.removeClass("hidden")},hide:function(){this.$el.addClass("hidden")}}),t.exports=s},{}],72:[function(e,t,i){var s=wp.media.View.extend({className:"upload-error",template:wp.template("uploader-status-error")});t.exports=s},{}],73:[function(e,t,i){var s,o=wp.media.View;s=o.extend({className:"media-uploader-status",template:wp.template("uploader-status"),events:{"click .upload-dismiss-errors":"dismiss"},initialize:function(){this.queue=wp.Uploader.queue,this.queue.on("add remove reset",this.visibility,this),this.queue.on("add remove reset change:percent",this.progress,this),this.queue.on("add remove reset change:uploading",this.info,this),this.errors=wp.Uploader.errors,this.errors.reset(),this.errors.on("add remove reset",this.visibility,this),this.errors.on("add",this.error,this)},dispose:function(){return wp.Uploader.queue.off(null,null,this),o.prototype.dispose.apply(this,arguments),this},visibility:function(){this.$el.toggleClass("uploading",!!this.queue.length),this.$el.toggleClass("errors",!!this.errors.length),this.$el.toggle(!!this.queue.length||!!this.errors.length)},ready:function(){_.each({$bar:".media-progress-bar div",$index:".upload-index",$total:".upload-total",$filename:".upload-filename"},function(e,t){this[t]=this.$(e)},this),this.visibility(),this.progress(),this.info()},progress:function(){var e=this.queue,t=this.$bar;t&&e.length&&t.width(e.reduce(function(e,t){if(!t.get("uploading"))return e+100;var i=t.get("percent");return e+(_.isNumber(i)?i:100)},0)/e.length+"%")},info:function(){var e,t=this.queue,i=0;t.length&&(e=this.queue.find(function(e,t){return i=t,e.get("uploading")}),this.$index.text(i+1),this.$total.text(t.length),this.$filename.html(e?this.filename(e.get("filename")):""))},filename:function(e){return _.escape(e)},error:function(e){this.views.add(".upload-errors",new wp.media.view.UploaderStatusError({filename:this.filename(e.get("file").name),message:e.get("message")}),{at:0})},dismiss:function(e){var t=this.views.get(".upload-errors");e.preventDefault(),t&&_.invoke(t,"remove"),wp.Uploader.errors.reset()}}),t.exports=s},{}],74:[function(e,t,i){var s,o=jQuery;s=wp.media.View.extend({tagName:"div",className:"uploader-window",template:wp.template("uploader-window"),initialize:function(){var e;this.$browser=o('<a href="#" class="browser" />').hide().appendTo("body"),e=this.options.uploader=_.defaults(this.options.uploader||{},{dropzone:this.$el,browser:this.$browser,params:{}}),!e.dropzone||e.dropzone instanceof o||(e.dropzone=o(e.dropzone)),this.controller.on("activate",this.refresh,this),this.controller.on("detach",function(){this.$browser.remove()},this)},refresh:function(){this.uploader&&this.uploader.refresh()},ready:function(){var e,t=wp.media.view.settings.post.id;this.uploader||(t&&(this.options.uploader.params.post_id=t),this.uploader=new wp.Uploader(this.options.uploader),e=this.uploader.dropzone,e.on("dropzone:enter",_.bind(this.show,this)),e.on("dropzone:leave",_.bind(this.hide,this)),o(this.uploader).on("uploader:ready",_.bind(this._ready,this)))},_ready:function(){this.controller.trigger("uploader:ready")},show:function(){var e=this.$el.show();_.defer(function(){e.css({opacity:1})})},hide:function(){var e=this.$el.css({opacity:0});wp.media.transition(e).done(function(){"0"===e.css("opacity")&&e.hide()}),_.delay(function(){"0"===e.css("opacity")&&e.is(":visible")&&e.hide()},500)}}),t.exports=s},{}],75:[function(e,t,i){var s=wp.Backbone.View.extend({constructor:function(e){e&&e.controller&&(this.controller=e.controller),wp.Backbone.View.apply(this,arguments)},dispose:function(){return this.undelegateEvents(),this.model&&this.model.off&&this.model.off(null,null,this),this.collection&&this.collection.off&&this.collection.off(null,null,this),this.controller&&this.controller.off&&this.controller.off(null,null,this),this},remove:function(){return this.dispose(),wp.Backbone.View.prototype.remove.apply(this,arguments)}});t.exports=s},{}]},{},[19]);

 

C’è un cantante emergente che ha messo gratuitamente su YouTube tutte le sue canzoni e vorresti tanto scaricarle sul tuo lettore MP3? Hai trovato una bellissima versione live di un brano che hai già su CD e vorresti salvarla sul tuo PC? Questi sono solo due esempi di come YouTube possa facilmente trasformarsi in una fonte di musica da scaricare gratis, ed oggi io sono qui per spiegarti come fare.

Se vuoi scoprire come scaricare musica da YouTube gratis, non devi far altro che rivolgerti a una delle soluzioni che sto per segnalarti e imparare ad usarla grazie alle indicazioni che trovi di seguito. Si tratta di una lista di servizi online, software ed estensioni per il browser che ti permetteranno di scaricare tutta la musica che vuoi da YouTube assolutamente gratis. Allora, pronto a scoprire tutto in dettaglio? Ti assicuro che è facilissimo, ci vuole quasi più tempo a dirlo che a farlo.

Prima di cominciare una piccola nota sulla qualità dei file audio: molti dei servizi e dei programmi che stiamo per vedere insieme permettono di scegliere formato e bitrate di output. Io ti consiglio di optare sempre per una qualità di almeno 192kbps, ma è bene precisare che di “miracoli” non se ne possono fare. Se un video di YouTube ha un audio di cattiva qualità, anche salvandolo a 320kbps (cioè il massimo bitrate consentito per gli MP3) non otterrai alcun miglioramento. Anzi, creerai dei file inutilmente pesanti che continueranno ad avere una pessima qualità! Fatta anche questa piccola precisazione, mettiamoci all’opera!
Scaricare musica da YouTube online

Per iniziare, eccoti una lista di servizi online che permettono di scaricare musica da YouTube a costo zero senza installare programmi aggiuntivi sul PC.

Convert2MP3

convert2mp3

Come scaricare musica da YouTube

Il primo servizio online che ti consiglio di provare è Convert2MP3, il quale permette di convertire i video di YouTube in brani MP3, AAC, FLAC, WMA, OGG ed M4A al massimo della qualità possibile.

Per utilizzarlo, collegati alla sua pagina principale, incolla l’indirizzo del video di YouTube che desideri convertire in file audio nel campo Insert video link (URL) and select format e scegli il formato di file che desideri come output dal menu a tendina adiacente.

Dopodiché clicca sul pulsante Convert e attendi che il video venga elaborato, compila il modulo che ti viene proposto (se vuoi aggiungere dei tag personalizzati al brano) e clicca sui pulsanti Continue e Download per avviare il download del file audio. Più facile di così?

ClipConvert

clip-converter

ClipConvert rientra anch’esso nel novero dei migliori servizi Web per scaricare e convertire video da YouTube. Usarlo è semplicissimo. Dopo esserti collegato alla sua pagina principale, incolla l’indirizzo del video di YouTube da scaricare nella barra collocata in alto e clicca sul pulsante Continua.

Seleziona dunque uno dei formati audio disponibili: MP3, M4A o AAC e clicca prima sul bottone Inizia e poi su Download per avviarne lo scaricamento. Se vuoi, puoi anche rimuovere il segno di spunta dalle voci Inizio del video e Fine del video e indicare un punto di inizio e fine personalizzato per il video (in modo da estrapolare solo la traccia audio da una porzione di filmato). La qualità di output viene impostata automaticamente per essere la migliore possibile.

Nota: se nella pagina di download vedi una scritta del tipo Download with accelerator and get recommendation offers, togli il segno di spunta da quest’ultima o verranno scaricati dei programmi promozionali sul tuo PC.

YouTubeMP3

youtubemp3.org_

Se cerchi una soluzione più essenziale, puoi affidarti a YouTubeMP3 che permette di convertire i video di YouTube in MP3 in un paio di click. Per provarlo, collegati subito alla sua pagina iniziale, incolla l’indirizzo del filmato da cui vuoi estrapolare l’audio nella barra di ricerca collocata in alto e clicca prima su Converti il video e poi su Scarica per avviarne il download.

Qualora YouTubeMP3 dovesse smettere di funzionare o risultare momentaneamente offline, puoi trovare un servizio analogo su Video Grabby, sito che permette di scaricare MP3 a 192 kbps da YouTube in due o tre click. Per utilizzarlo, collegati alla sua pagina principale e clicca sulla voce HQ collocata in basso a destra (per attivare il supporto ai video in HD). Dopodiché incolla l’indirizzo del video di YouTube da convertire nel campo di testo collocato al centro dello schermo e pigia sul pulsante Download MP3. Tutto qui!

Attenzione: scaricare brani musicali protetti da copyright in maniera abusiva equivale a commettere un reato. Questa guida è stata scritta a puro scopo illustrativo. Non è assolutamente mia intenzione incentivare la pirateria, pertanto non mi assumo alcuna responsabilità sull’uso che farai delle informazioni presenti nell’articolo.

Un cantante emergente che ti piace tanto che ha appena reso disponibili gratuitamente su YouTube tutti i suoi brani e vorrei poterli scaricare in formato MP3 sul tuo dispositivo Android in modo tale da poterli ascoltare in qualsiasi momento anche senza dover disporre di una connessione ad Internet? Se la risposta è “si” sappi che anche se apparentemente può sembrare complicato scaricare MP3 da YouTube Android è in realtà un ‘operazione molto semplice da effettuare.

Per scaricare MP3 da YouTube Android è infatti sufficiente ricorrere all’impiego di apposite app, programmi e servizi online che agiscono andando a convertire i video visualizzati in brani musicali salvandoli poi sulla memoria del tuo smartphone o tablet.

Prenditi quindi qualche minuto di tempo libero da dedicare alla lettura delle seguenti righe in modo tale da poter scoprire subito come fare per scaricare MP3 da YouTube Android e scegliere la risorsa che pensi possa essere più adatta alle tue esigenze.

Se desideri scaricare MP3 da YouTube Android la prima app che ti suggerisco di provare è TubeMate. Per effettuare il download gratuito di questa applicazione clicca qui dal tuo dispositivo Android e poi conferma la tua volontà di voler scaricare l’app sul dispositivo in uso.

Tieni conto del fatto che trattandosi di un’applicazione non disponibile su Google Play Store per poterla installare sul tuo dispositivo è necessario che quest’ultimo sia abilitato all’installazione diretta di file .apk provenienti al di fuori dal Google Play Store. Se non lo hai ancora fatto e desideri abilitare il tuo dispositivo all’installazione di app esterne dal Google Play Store ti basta accedere alla sezione Impostazioni di Android, pigiare sulla scheda Generali e poi sulla voce Sicurezza e dalla sezione Amministrazione dispositivo spuntare la casella relativa alla voce Sorgenti sconosciute.

Attendi ora che il download dell’applicazione venga ultimato e poi pigia sul file .apk che è stato scaricato. Pigia ora sulla voce Successivo presente nella schermata visualizzata e poi fai tap su Installa. Attendi che la procedura di installazione dell’applicazione venga portata a termine dopodiché pigia sulla voce Apri per avviare subito l’applicazione.

Nella schermata dell’applicazione pigia sul pulsante Sono d’accordo annesso all’avviso mostrato a schermo, pigia poi su Chiudi e fai tap su Successivo per tre volte di seguito dopodiché premi il pulsante Chiudi.

Adesso per scaricare MP3 da YouTube Android con l’app TubeMate clicca sull’icona raffigurante una lente di ingrandimento che risulta collocata nella parte in alto a destra della schermata, digita il nome del brano musicale dell’artista che intendi scaricare sul tuo dispositivo e poi pigia sull’icona a forma di lente di ingrandimento per avviare la ricerca. Successivamente fai tap sul risultato della ricerca che pensi sia più corretto.

Procedi pigiando sull’icona forma di freccia rivolta verso il basso che trovi nella parte in alto a destra della schermata dell’app dopodiché pigia su Audio (MP3, 128K) dal menu visualizzato e poi pigia su Download. Conferma la tua volontà di effettuare il download del video in formato MP3, assegna un eventuale titolo al brano, pigia su Conferma ed attendi che il download venga avviato e completato.

TubeMate

 

 

Una volta completato il download del video in formato MP3 potrai ascoltare il brano sfruttando il player multimediale che solitamente utilizzi sul tuo dispositivo.

Screenshot che mostra come scaricare MP3 da YouTube Android

Tieni però presente il fatto che l’app TubeMate potrebbe a sua volta richiede l’installazione dell’applicazione MP3 Video Converter per poter effettuare il download dei video in formato MP3. Si tratta di un’applicazione disponibile su Google Play Store che agisce andando a convertire i file multimediali scaricati sul dispositivo. In tal caso pigia sulla voce Installa che ti appare a schermo per confermare la tua volontà di installare MP3 Video Converter prima di procedere al download del video in formato MP3.

Screenshot che mostra come scaricare MP3 da YouTube Android

In alternativa alla soluzione che ti ho appena indicato tieni conto che puoi scaricare MP3 da YouTube Android anche sfruttando appositi programmi da installare direttamente sul tuo computer o servizi online pensati ad hoc. In tal caso una volta effettuato il download del video di YouTube in formato MP3 sul tuo computer dovrai poi provvedere a spostare il brano musicale sul tuo device mobile.

Se preferisci questa soluzione ti suggerisco di leggere la mia guida su come scaricare musica da YouTube. Scegli il programma o il servizio online che più preferisci, segui la procedura indicata per potertene servire e successivamente trasferisci i brani musicali sul tuo smartphone o tablet Android.

Attenzione: scaricare brani musicali protetti da copyright in maniera abusiva equivale a commettere un reato. Questa guida è stata scritta a puro scopo illustrativo. Non è assolutamente mia intenzione incentivare la pirateria, pertanto non mi assumo alcuna responsabilità sull’uso che farai delle informazioni presenti nell’articolo.

31 Dicembre, ultimo giorno dell’ultimo mese dell’anno. Ed ecco che si è chiuso un altro anno… il 2015. Questo anno di crisi che ha portato con se varie riforme e rinnovamenti. Voglio augurare a tutti i visitatori del sito, ed in generale a tutti gli italiani i migliori auguri di un felice fine anno e di un miglior inizio anno. Ed è un augurio ancor più sentito dato che abbiam vissuto questo anno tra mille difficoltà e drammi con la crisi che ci ha attanagliato ed i sacrifici che abbiamo dovuto sopportare.

Voglio augurare a tutti i visitatori del mio sito web www.fabiocammisa.altervista.org, e tutti gli idonei rimasti ancora fuori ed in generale a tutti gli italiani i migliori auguri di un felice fine anno e di un miglior inizio anno. Un augurio a tutti.

Buon fine anno capodanno

Per questo, auguro a tutti, ma proprio tutti i fruitori e non del mio sito web i miei più affettuosi e calorosi auguri di CAPODANNO, sperando porti con se per ognuno di noi un anno migliore. E per chi volesse augurare il buon capodanno in altre lingue, vi propongo qui di sotto le frasi:

Italiano: BUON CAPODANNO

Spagnolo: Feliz Año Nuevo

Russo: С Новым Годом (S Novim Godom)

Portoghese: Feliz Ano Novo

Giapponese: Akemashite Omedetô

Tedesco: Ein Gutes Neues Jahr / Prost Neujahr

Inglese: Happy New Year

Francese: Bonne Année

Cinese: Xin Nièn Kuai Le / Xin Nièn Hao

samsung s2-plusPer tutti gli utenti che hanno effettuato la procedura di Root e Recovery sul proprio Galaxy S2 Plus, ecco che ne arriva una nuova per effettuare il ripristino del dispositivo installando il firmware originale Italiano!

Attenzione

Non mi assumo nessuna responsabilità riguardo ai danni che questa procedura di ripristino Samsung Galaxy S2 Plus potrebbe causare ai vostri dispositivi. Eseguitela a vostro rischio e pericolo, prestando la massima attenzione ad ogni singolo passaggio.

Ripristino Firmware Originale Galaxy S2 Plus

Download Firmware i9105P

Per effettuare il download del firmware, seguiamo questa procedura:

  • Colleghiamoci a Questa Pagina ed in User Name scriviamo “thegeekbay”, mentre in Password “10041995” e clicchiamo su Login per continuare. Ora possiamo scaricare tranquillamente il firmware dai link sottostanti.

 

Guida

  1. Scarichiamo i Driver USB (Link) ed installiamoli
  2. Scarichiamo il file .zip di Odin3 (Link), estriamolo e dalla cartella appena estratta avviamo il file Odin3-v1.85.exe
  3. Spengiamo il dispositivo ed avviamo premendo Volume meno+Home+Power. Quando apparirà la dicitura Warning…, rilasciamo il tasto Power e premiamo il tasto Volume su per entrare in Download Mode. La conferma è data dal “pupazzetto” che apparirà con sotto scritto Downloading..
  4. Colleghiamo il dispositivo al pc tramite cavo usb e, se riconosciuto correttamente, il quadrato in alto a sinistra diventerà giallo. In caso contrario, proviamo a cambiare porta usb o a reinstallare i driver fino a quando non viene riconosciuto correttamente
  5. Scarichiamo il Firmware per il nostro dispositivo ed estraiamo il file zip
  6. In Odin, clicchiamo su PDA e selezioniamo il file .tar.md5 presente nella cartella del Firmware precedentemente scaricata ed estratta
  7. Clicchiamo su Start ed attendiamo il completamento della procedura

Al termine del flashing, che durerà qualche minuto, il nostro dispositivo si riavvierà automaticamente. Se l’avvio dovesse bloccarsi al logo Samsung per poi reiniziare, ecco la procedura per risolvere questo problema (Bootloop):

  1. Rimuoviamo la batteria del nostro Galaxy S2 Plus e reinseriamola
  2. Avviamo in Recovery premendo i tasti Volume su+Home+Power
  3. Quando apparià la prima schermata con il modello del dispositivo, rilasciamo il tasto Power ma continuiamo a tenere premuti gli altri due
  4. Quando saremo in Recovery, con il robot a “cuore aperto”, spotiamoci con i tasti volume sulla quarta voce, Wipe data/factory reset e confermiamo premendo il tasto Power
  5. Selezioniamo la voce Yes e confermiamo un’altra volta
  6. Al termine, selezioniamo la voce Reboot system e confermiamo

A questo punto il nostro dispositivo si riavvierà e, dopo una piccola attesa, apparirà la schermata di configurazione uguale a quella del primo acquisto. Ora il nostro Galaxy S2 Plus è stato ripristinato ed è tornato allo stato completamente originale! La procedura di ripristino Samsung Galaxy S2 Plus, come possiamo ben vedere, molto semplice e veloce!

Per qualsiasi problema con la guida basta lasciare un commento tramite il form sottostante!

Un augurio di un felice Natale a tutti voi

Dicembre, ultimo mese dell’anno, reca con sé la più poetica tra le feste e quella che più parla al cuore: il Natale.
Pur tra mille difficoltà palesi e nascoste, pur tra mille drammi che sconvolgono il mondo intero, prepariamoci ad accogliere il Divino Bambino all’insegna dell’amore e della pace cercando, ognuno nel nostro piccolo, di superare quelle barriere che non permettono alla luce di farsi strada.

Buon Natale
Il Natale è: le passeggiate per le vie ricoperte di luci, le emozioni di quando eravamo bambini, gli addobbi, i regali, la cioccolata calda presa al bar, i desideri espressi sotto il vischio, gli amici… ma soprattutto è respirare GIOIA e AMORE ed io vi auguro con tutto il cuore…

Buon Natale! Vi voglio bene!

Auguro a tutti i fruitori e non del mio sito web, ai miei colleghi, ai miei parenti, ai miei amici e a tutti i miei più sinceri auguri di BUON NATALE, tempo della tenerezza di Dio. E per chi volesse, vi scrivo anche buon Natale in alcune lingue:

Italiano: BUON NATALE
Afrikaans: Gesëende Kersfees
Albanese:Gezur Krislinjden Continua a leggere

Il tuo sito web!

Vuoi realizzare un sito per la tua azienda per attrarre un maggior numero di clienti o vuoi creare un tuo sito personale? Cosa aspetti!

 
Realizza il tuo sito
Oppure possiedi già un sito e vuoi pubblicizzarlo?

Inserisci il tuo sito
Mediajob.eu logo finale (550x200)

Mediajob.eu è il social network dell'arte! Pubblica i tuoi lavori creativi, pubblicizzati e trova lavoro!

Effettua una donazione

ATTENZIONE!

FRA POCO IL NUOVO SITO WEB SARA' WWW.FABIOCAMMISA.IT

QUESTO "VECCHIO" SITO RIMARRA' SEMPRE ON LINE ED AGGIORNATO