admin-folders.js
7 months ago
admin-galleries.js
3 years ago
admin-gallery.js
4 years ago
admin-media.js
7 months ago
admin-plugins.js
3 years ago
admin-widgets.js
3 years ago
admin.js
3 years ago
front-basicmasonry.js
3 years ago
front-basicslider.js
1 year ago
front.js
7 months ago
gutenberg.min.js
7 months ago
gutenberg.min.js
7 lines
| 1 | (function(){"use strict";var c=document.createElement("style");c.textContent=`.wp-block-responsive-lightbox-remote-library-image{padding:1em 0 0}.wp-block-responsive-lightbox-remote-library-image .components-placeholder__fieldset{max-width:100%}.wp-block-responsive-lightbox-remote-library-image .rl-block-image-preview{display:none}.wp-block-responsive-lightbox-remote-library-image.rl-image-selected{padding:0}.wp-block-responsive-lightbox-remote-library-image.rl-image-selected .components-placeholder__label,.wp-block-responsive-lightbox-remote-library-image.rl-image-selected .components-placeholder__instructions,.wp-block-responsive-lightbox-remote-library-image.rl-image-selected .components-placeholder__fieldset{display:none}.wp-block-responsive-lightbox-remote-library-image.rl-image-selected .rl-block-image-preview{display:block;max-width:100%;height:auto}.wp-block-responsive-lightbox-gallery{padding:1em 0 0}.wp-block-responsive-lightbox-gallery .components-placeholder__fieldset{max-width:100%}.wp-block-responsive-lightbox-gallery .rl-block-image-preview{display:none}.wp-block-responsive-lightbox-gallery.rl-gallery-selected{padding:0}.wp-block-responsive-lightbox-gallery.rl-gallery-selected .components-placeholder__label,.wp-block-responsive-lightbox-gallery.rl-gallery-selected .components-placeholder__instructions,.wp-block-responsive-lightbox-gallery.rl-gallery-selected .components-placeholder__fieldset{display:none}.wp-block-responsive-lightbox-gallery.rl-gallery-selected .rl-block-image-preview{display:block;max-width:100%;height:auto} |
| 2 | /*$vite$:1*/`,document.head.appendChild(c);function _(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var m={exports:{}};/*! |
| 3 | Copyright (c) 2018 Jed Watson. |
| 4 | Licensed under the MIT License (MIT), see |
| 5 | http://jedwatson.github.io/classnames |
| 6 | */(function(t){(function(){var o={}.hasOwnProperty;function r(){for(var e="",a=0;a<arguments.length;a++){var n=arguments[a];n&&(e=s(e,i(n)))}return e}function i(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e!="object")return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var n in e)o.call(e,n)&&e[n]&&(a=s(a,n));return a}function s(e,a){return a?e?e+" "+a:e+a:e}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(m);var f=m.exports;const d=_(f),{MediaUpload:p,MediaUploadCheck:g,BlockControls:b}=wp.blockEditor,{Button:y,Dashicon:u,ToolbarButton:h,ToolbarGroup:v}=wp.components,{registerBlockType:R}=wp.blocks,{__:l}=wp.i18n,{useSelect:w,registerStore:E}=wp.data;E("responsive-lightbox/gallery",{reducer:(t={selectedGallery:null},o)=>{switch(o.type){case"SET_SELECTED_GALLERY":return{...t,selectedGallery:o.payload};default:return t}},actions:{setSelectedGallery:t=>({type:"SET_SELECTED_GALLERY",payload:t})},selectors:{getSelectedGallery:t=>t.selectedGallery}}),R("responsive-lightbox/remote-library-image",{title:l("Remote Library Image"),description:l("Remote Library images"),icon:"format-image",category:"responsive-lightbox",keywords:[l("image"),l("photo")],attributes:{imageURL:{type:"string",default:""},imageID:{type:"integer",default:""}},edit:t=>{const{setAttributes:o}=t,{attributes:r}=t,i=r.imageURL!=="",s=d("components-placeholder",t.className,i?"rl-image-selected":""),e=a=>{o({imageURL:a.sizes.full.url,imageID:a.id})};return React.createElement("div",null,React.createElement(b,null,i&&React.createElement(v,null,React.createElement(g,null,React.createElement(p,{title:l("Remote Library Images"),addToGallery:!0,gallery:!0,multiple:!1,onSelect:e,allowedTypes:["image"],value:r.imageID,render:({open:a})=>React.createElement(h,{className:["components-toolbar__control","rl-remote-library-media-button"],label:l("Edit image"),icon:"edit",onClick:a})})))),React.createElement("div",{className:s},React.createElement("div",{className:"components-placeholder__label"},React.createElement(u,{icon:"format-image"}),l("Responsive Lightbox | Remote Library Image")),React.createElement("div",{className:"components-placeholder__instructions"},l("Select a file from your remote libraries.")),React.createElement("div",{className:"components-placeholder__fieldset"},React.createElement(g,null,React.createElement(p,{title:l("Remote Library Images"),addToGallery:!0,gallery:!0,multiple:!1,onSelect:e,allowedTypes:["image"],value:r.imageID,render:({open:a})=>React.createElement(y,{className:["is-button","is-secondary","is-default","is-large","editor-media-placeholder__button","editor-media-placeholder__media-library-button","rl-remote-library-media-button"],onClick:()=>{a()}},l("Select image"))}))),React.createElement("img",{className:"rl-block-image-preview",src:r.imageURL})))},save:t=>{const{attributes:o}=t;return React.createElement("figure",{className:"rl-image wp-block-image"},React.createElement("img",{src:o.imageURL}))}}),R("responsive-lightbox/gallery",{title:l("Gallery"),description:l("Galleries"),icon:"format-gallery",category:"responsive-lightbox",keywords:[l("images"),l("photos"),l("gallery")],attributes:{imageURL:{type:"string",default:""},galleryID:{type:"integer",default:0}},edit:t=>{const{setAttributes:o}=t,{attributes:r}=t,i=r.galleryID!==0,s=d("components-placeholder",t.className,i?"rl-gallery-selected":""),e=function(){o({imageURL:ResponsiveLightboxGallery.lastGalleryImage,galleryID:parseInt(ResponsiveLightboxGallery.lastGalleryID)}),this.removeEventListener("click",e)};return React.createElement("div",null,React.createElement(b,null,i&&React.createElement(v,null,React.createElement(h,{className:["components-toolbar__control","rl-gallery-media-button"],label:l("Edit gallery"),icon:"edit",onClick:()=>{ResponsiveLightboxGallery.resetFilters=!0,ResponsiveLightboxGallery.open(r.galleryID),ResponsiveLightboxGallery.getModalButton().addEventListener("click",e)}}))),React.createElement("div",{className:s},React.createElement("div",{className:"components-placeholder__label"},React.createElement(u,{icon:"format-image"}),l("Responsive Lightbox | Gallery")),React.createElement("div",{className:"components-placeholder__instructions"},l("Select a gallery.")),React.createElement("div",{className:"components-placeholder__fieldset"},React.createElement(y,{className:["is-button","is-secondary","is-default","is-large","editor-media-placeholder__button","editor-media-placeholder__media-library-button","rl-gallery-media-button"],onClick:a=>{ResponsiveLightboxGallery.resetFilters=!0,ResponsiveLightboxGallery.open(),ResponsiveLightboxGallery.getModalButton().addEventListener("click",e)}},l("Select gallery"))),React.createElement("img",{className:"rl-block-image-preview",src:r.imageURL})))},save:t=>{const{attributes:o}=t;return React.createElement("div",null,'[rl_gallery id="',o.galleryID,'"]')}})})(); |
| 7 |