From 741d39a962962fdb1b20c00d75416df2629f3123 Mon Sep 17 00:00:00 2001 From: Jeremy Rangel Date: Tue, 31 Dec 2024 18:53:46 -0800 Subject: [PATCH] Changes to lcp-button --- .gitignore | 1 - assets/js/icon-import.js | 15 +- functions.php | 9 +- includes/blocks/lcp-button/build/block.json | 101 +++++ .../blocks/lcp-button/build/index-rtl.css | 1 + .../blocks/lcp-button/build/index.asset.php | 1 + includes/blocks/lcp-button/build/index.css | 1 + includes/blocks/lcp-button/build/index.js | 1 + .../lcp-button/build/style-index-rtl.css | 1 + .../blocks/lcp-button/build/style-index.css | 1 + .../blocks/lcp-button/build/view.asset.php | 1 + includes/blocks/lcp-button/build/view.js | 1 + .../components/DimensionValueControl.js | 96 +++++ .../components/IconSelectControl.js | 59 +++ .../lcp-button/components/PaddingControl.js | 103 +++++ includes/blocks/lcp-button/src/block.json | 29 +- includes/blocks/lcp-button/src/save.js | 4 +- .../lcp-dynamic-container/build/block.json | 141 +++++++ .../build/index.asset.php | 1 + .../lcp-dynamic-container/build/index.js | 1 + .../build/style-index-rtl.css | 1 + .../build/style-index.css | 1 + .../build/view.asset.php | 1 + .../lcp-dynamic-container/build/view.js | 1 + includes/blocks/lcp-gallery/build/block.json | 384 ++++++++++++++++++ .../lcp-gallery/build/fonts/lg.356a0e9c.woff | Bin 0 -> 4832 bytes .../lcp-gallery/build/fonts/lg.64b800aa.woff2 | Bin 0 -> 2332 bytes .../lcp-gallery/build/fonts/lg.747d0385.ttf | Bin 0 -> 4756 bytes .../build/images/loading.fcba57cd.gif | Bin 0 -> 4178 bytes .../blocks/lcp-gallery/build/index-rtl.css | 2 + .../blocks/lcp-gallery/build/index.asset.php | 1 + includes/blocks/lcp-gallery/build/index.css | 2 + includes/blocks/lcp-gallery/build/index.js | 1 + .../lcp-gallery/build/style-index-rtl.css | 1 + .../blocks/lcp-gallery/build/style-index.css | 1 + .../blocks/lcp-gallery/build/view.asset.php | 1 + includes/blocks/lcp-gallery/build/view.js | 1 + .../lcp-header-container/build/block.json | 29 ++ .../lcp-header-container/build/index-rtl.css | 1 + .../build/index.asset.php | 1 + .../lcp-header-container/build/index.css | 1 + .../lcp-header-container/build/index.js | 1 + .../build/style-index-rtl.css | 1 + .../build/style-index.css | 1 + .../lcp-header-container/build/view.asset.php | 1 + .../blocks/lcp-header-container/build/view.js | 1 + .../blocks/lcp-header-container/src/edit.js | 3 - .../blocks/lcp-key-points/build/block.json | 41 ++ .../blocks/lcp-key-points/build/index-rtl.css | 1 + .../lcp-key-points/build/index.asset.php | 1 + .../blocks/lcp-key-points/build/index.css | 1 + includes/blocks/lcp-key-points/build/index.js | 1 + .../lcp-key-points/build/style-index-rtl.css | 1 + .../lcp-key-points/build/style-index.css | 1 + .../lcp-key-points/build/view.asset.php | 1 + includes/blocks/lcp-key-points/build/view.js | 1 + .../blocks/lcp-main-area/build/block.json | 25 ++ .../blocks/lcp-main-area/build/index-rtl.css | 1 + .../lcp-main-area/build/index.asset.php | 1 + includes/blocks/lcp-main-area/build/index.css | 1 + includes/blocks/lcp-main-area/build/index.js | 1 + .../lcp-main-area/build/style-index-rtl.css | 1 + .../lcp-main-area/build/style-index.css | 1 + .../blocks/lcp-main-area/build/view.asset.php | 1 + includes/blocks/lcp-main-area/build/view.js | 1 + .../blocks/lcp-sidecontent/build/block.json | 22 + .../lcp-sidecontent/build/index-rtl.css | 1 + .../lcp-sidecontent/build/index.asset.php | 1 + .../blocks/lcp-sidecontent/build/index.css | 1 + .../blocks/lcp-sidecontent/build/index.js | 1 + .../lcp-sidecontent/build/style-index-rtl.css | 1 + .../lcp-sidecontent/build/style-index.css | 1 + .../lcp-sidecontent/build/view.asset.php | 1 + includes/blocks/lcp-sidecontent/build/view.js | 0 includes/blocks/lcp-viewport/build/block.json | 29 ++ .../blocks/lcp-viewport/build/index-rtl.css | 1 + .../blocks/lcp-viewport/build/index.asset.php | 1 + includes/blocks/lcp-viewport/build/index.css | 1 + includes/blocks/lcp-viewport/build/index.js | 1 + .../lcp-viewport/build/style-index-rtl.css | 1 + .../blocks/lcp-viewport/build/style-index.css | 1 + .../blocks/lcp-viewport/build/view.asset.php | 1 + includes/blocks/lcp-viewport/build/view.js | 1 + .../blocks/lcp-visualizer/build/block.json | 19 + .../blocks/lcp-visualizer/build/index-rtl.css | 1 + .../lcp-visualizer/build/index.asset.php | 1 + .../blocks/lcp-visualizer/build/index.css | 1 + includes/blocks/lcp-visualizer/build/index.js | 1 + .../lcp-visualizer/build/style-index-rtl.css | 1 + .../lcp-visualizer/build/style-index.css | 1 + .../lcp-visualizer/build/view.asset.php | 1 + includes/blocks/lcp-visualizer/build/view.js | 1 + includes/classes/backend.php | 55 +-- script.js | 61 +-- 94 files changed, 1159 insertions(+), 138 deletions(-) create mode 100644 includes/blocks/lcp-button/build/block.json create mode 100644 includes/blocks/lcp-button/build/index-rtl.css create mode 100644 includes/blocks/lcp-button/build/index.asset.php create mode 100644 includes/blocks/lcp-button/build/index.css create mode 100644 includes/blocks/lcp-button/build/index.js create mode 100644 includes/blocks/lcp-button/build/style-index-rtl.css create mode 100644 includes/blocks/lcp-button/build/style-index.css create mode 100644 includes/blocks/lcp-button/build/view.asset.php create mode 100644 includes/blocks/lcp-button/build/view.js create mode 100644 includes/blocks/lcp-button/components/DimensionValueControl.js create mode 100644 includes/blocks/lcp-button/components/IconSelectControl.js create mode 100644 includes/blocks/lcp-button/components/PaddingControl.js create mode 100644 includes/blocks/lcp-dynamic-container/build/block.json create mode 100644 includes/blocks/lcp-dynamic-container/build/index.asset.php create mode 100644 includes/blocks/lcp-dynamic-container/build/index.js create mode 100644 includes/blocks/lcp-dynamic-container/build/style-index-rtl.css create mode 100644 includes/blocks/lcp-dynamic-container/build/style-index.css create mode 100644 includes/blocks/lcp-dynamic-container/build/view.asset.php create mode 100644 includes/blocks/lcp-dynamic-container/build/view.js create mode 100644 includes/blocks/lcp-gallery/build/block.json create mode 100644 includes/blocks/lcp-gallery/build/fonts/lg.356a0e9c.woff create mode 100644 includes/blocks/lcp-gallery/build/fonts/lg.64b800aa.woff2 create mode 100644 includes/blocks/lcp-gallery/build/fonts/lg.747d0385.ttf create mode 100644 includes/blocks/lcp-gallery/build/images/loading.fcba57cd.gif create mode 100644 includes/blocks/lcp-gallery/build/index-rtl.css create mode 100644 includes/blocks/lcp-gallery/build/index.asset.php create mode 100644 includes/blocks/lcp-gallery/build/index.css create mode 100644 includes/blocks/lcp-gallery/build/index.js create mode 100644 includes/blocks/lcp-gallery/build/style-index-rtl.css create mode 100644 includes/blocks/lcp-gallery/build/style-index.css create mode 100644 includes/blocks/lcp-gallery/build/view.asset.php create mode 100644 includes/blocks/lcp-gallery/build/view.js create mode 100644 includes/blocks/lcp-header-container/build/block.json create mode 100644 includes/blocks/lcp-header-container/build/index-rtl.css create mode 100644 includes/blocks/lcp-header-container/build/index.asset.php create mode 100644 includes/blocks/lcp-header-container/build/index.css create mode 100644 includes/blocks/lcp-header-container/build/index.js create mode 100644 includes/blocks/lcp-header-container/build/style-index-rtl.css create mode 100644 includes/blocks/lcp-header-container/build/style-index.css create mode 100644 includes/blocks/lcp-header-container/build/view.asset.php create mode 100644 includes/blocks/lcp-header-container/build/view.js create mode 100644 includes/blocks/lcp-key-points/build/block.json create mode 100644 includes/blocks/lcp-key-points/build/index-rtl.css create mode 100644 includes/blocks/lcp-key-points/build/index.asset.php create mode 100644 includes/blocks/lcp-key-points/build/index.css create mode 100644 includes/blocks/lcp-key-points/build/index.js create mode 100644 includes/blocks/lcp-key-points/build/style-index-rtl.css create mode 100644 includes/blocks/lcp-key-points/build/style-index.css create mode 100644 includes/blocks/lcp-key-points/build/view.asset.php create mode 100644 includes/blocks/lcp-key-points/build/view.js create mode 100644 includes/blocks/lcp-main-area/build/block.json create mode 100644 includes/blocks/lcp-main-area/build/index-rtl.css create mode 100644 includes/blocks/lcp-main-area/build/index.asset.php create mode 100644 includes/blocks/lcp-main-area/build/index.css create mode 100644 includes/blocks/lcp-main-area/build/index.js create mode 100644 includes/blocks/lcp-main-area/build/style-index-rtl.css create mode 100644 includes/blocks/lcp-main-area/build/style-index.css create mode 100644 includes/blocks/lcp-main-area/build/view.asset.php create mode 100644 includes/blocks/lcp-main-area/build/view.js create mode 100644 includes/blocks/lcp-sidecontent/build/block.json create mode 100644 includes/blocks/lcp-sidecontent/build/index-rtl.css create mode 100644 includes/blocks/lcp-sidecontent/build/index.asset.php create mode 100644 includes/blocks/lcp-sidecontent/build/index.css create mode 100644 includes/blocks/lcp-sidecontent/build/index.js create mode 100644 includes/blocks/lcp-sidecontent/build/style-index-rtl.css create mode 100644 includes/blocks/lcp-sidecontent/build/style-index.css create mode 100644 includes/blocks/lcp-sidecontent/build/view.asset.php create mode 100644 includes/blocks/lcp-sidecontent/build/view.js create mode 100644 includes/blocks/lcp-viewport/build/block.json create mode 100644 includes/blocks/lcp-viewport/build/index-rtl.css create mode 100644 includes/blocks/lcp-viewport/build/index.asset.php create mode 100644 includes/blocks/lcp-viewport/build/index.css create mode 100644 includes/blocks/lcp-viewport/build/index.js create mode 100644 includes/blocks/lcp-viewport/build/style-index-rtl.css create mode 100644 includes/blocks/lcp-viewport/build/style-index.css create mode 100644 includes/blocks/lcp-viewport/build/view.asset.php create mode 100644 includes/blocks/lcp-viewport/build/view.js create mode 100644 includes/blocks/lcp-visualizer/build/block.json create mode 100644 includes/blocks/lcp-visualizer/build/index-rtl.css create mode 100644 includes/blocks/lcp-visualizer/build/index.asset.php create mode 100644 includes/blocks/lcp-visualizer/build/index.css create mode 100644 includes/blocks/lcp-visualizer/build/index.js create mode 100644 includes/blocks/lcp-visualizer/build/style-index-rtl.css create mode 100644 includes/blocks/lcp-visualizer/build/style-index.css create mode 100644 includes/blocks/lcp-visualizer/build/view.asset.php create mode 100644 includes/blocks/lcp-visualizer/build/view.js diff --git a/.gitignore b/.gitignore index 304dbf9..e01961b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ wp-includes/ .DS_Store node_modules/ .env -build/ dist/ package-lock.json yarn.lock diff --git a/assets/js/icon-import.js b/assets/js/icon-import.js index 37e3b3e..b34406d 100644 --- a/assets/js/icon-import.js +++ b/assets/js/icon-import.js @@ -1,10 +1,17 @@ document.addEventListener('DOMContentLoaded', function () { + console.log('DOMContentLoaded event triggered'); + const installButtons = document.querySelectorAll('.install-btn'); const uninstallButtons = document.querySelectorAll('.uninstall-btn'); - + + console.log('Install buttons:', installButtons); + console.log('Uninstall buttons:', uninstallButtons); + // Handle Install button click installButtons.forEach(function (button) { - button.addEventListener('click', function () { + console.log('Adding install listener to button', button); + button.addEventListener('click', function (event) { + event.preventDefault(); // Prevent default form submission or page reload console.log('Install button clicked'); const iconSetId = this.getAttribute('data-icon-set-id'); console.log('Icon Set ID:', iconSetId); @@ -36,7 +43,9 @@ document.addEventListener('DOMContentLoaded', function () { // Handle Uninstall button click uninstallButtons.forEach(function (button) { - button.addEventListener('click', function () { + console.log('Adding uninstall listener to button', button); + button.addEventListener('click', function (event) { + event.preventDefault(); // Prevent default form submission or page reload console.log('Uninstall button clicked'); const iconSetId = this.getAttribute('data-icon-set-id'); console.log('Icon Set ID for uninstall:', iconSetId); diff --git a/functions.php b/functions.php index 25a05b9..6d480ef 100644 --- a/functions.php +++ b/functions.php @@ -229,10 +229,7 @@ function mytheme_display_icon_sets() { // Enqueue the dashboard styles only on the icon-management page function mytheme_enqueue_dashboard_styles($hook) { - // Only load the styles on the icon-management page - if ($hook != 'toplevel_page_icon-management') { - return; - } + // Enqueue CSS for the dashboard wp_enqueue_style( @@ -354,9 +351,7 @@ function mytheme_create_icons_table() { function mytheme_enqueue_dashboard_scripts($hook) { // Only load the script on the icon-management page - if ($hook != 'toplevel_page_icon-management') { - return; - } + // Enqueue JavaScript for AJAX wp_enqueue_script( diff --git a/includes/blocks/lcp-button/build/block.json b/includes/blocks/lcp-button/build/block.json new file mode 100644 index 0000000..a56033f --- /dev/null +++ b/includes/blocks/lcp-button/build/block.json @@ -0,0 +1,101 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "lcp/button", + "version": "0.1.0", + "title": "Button", + "category": "widgets", + "icon": "smiley", + "description": "A button for various functions or custom urls", + "example": {}, + "supports": { + "html": false + }, + "attributes": { + "buttonAction": { + "type": "string", + "default": "customUrl" + }, + "customUrl": { + "type": "string", + "default": "#" + }, + "buttonText": { + "type": "string", + "default": "Button Text" + }, + "displayIcon": { + "type": "boolean", + "default": true + }, + "iconSource": { + "type": "string", + "default": "manualSvgPath" + }, + "iconSvgPath": { + "type": "string", + "default": "" + }, + "iconSvgId": { + "type": "string", + "default": "" + }, + "iconSvgViewbox": { + "type": "string", + "default": "0 0 510 510" + }, + "popUpId": { + "type": "number" + }, + "manualIconSvgPath": { + "type": "string", + "default": "" + }, + "buttonHeight": { + "type": "string", + "default": "" + }, + "buttonPadding": { + "type": "object", + "default": { + "extraLarge": { + "top": "10px", + "right": "10px", + "bottom": "10px", + "left": "10px" + }, + "large": { + "top": "10px", + "right": "10px", + "bottom": "10px", + "left": "10px" + }, + "medium": { + "top": "10px", + "right": "10px", + "bottom": "10px", + "left": "10px" + }, + "small": { + "top": "10px", + "right": "10px", + "bottom": "10px", + "left": "10px" + } + } + }, + "iconHeight": { + "type": "string", + "default": "" + }, + "iconWidth": { + "type": "string", + "default": "" + } + }, + "textdomain": "lcp", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css", + "viewScript": "file:./view.js" +} \ No newline at end of file diff --git a/includes/blocks/lcp-button/build/index-rtl.css b/includes/blocks/lcp-button/build/index-rtl.css new file mode 100644 index 0000000..446581c --- /dev/null +++ b/includes/blocks/lcp-button/build/index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-button{border:1px dotted red}.lcp-button{background-color:var(--wp--preset--color--accent);border:none;color:#fff;cursor:pointer;display:inline-block;font-size:var(--wp--preset--font-size--small);font-weight:700;margin:auto 5px;padding:10px;text-decoration:none;white-space:nowrap}.lcp-button .lcp-icon{height:1.2em;margin-left:10px;max-height:100%;vertical-align:middle;width:auto;fill:#fff} diff --git a/includes/blocks/lcp-button/build/index.asset.php b/includes/blocks/lcp-button/build/index.asset.php new file mode 100644 index 0000000..14ca4f5 --- /dev/null +++ b/includes/blocks/lcp-button/build/index.asset.php @@ -0,0 +1 @@ + array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '00e12da1bdf9e61c448a'); diff --git a/includes/blocks/lcp-button/build/index.css b/includes/blocks/lcp-button/build/index.css new file mode 100644 index 0000000..bb17919 --- /dev/null +++ b/includes/blocks/lcp-button/build/index.css @@ -0,0 +1 @@ +.wp-block-create-block-button{border:1px dotted red}.lcp-button{background-color:var(--wp--preset--color--accent);border:none;color:#fff;cursor:pointer;display:inline-block;font-size:var(--wp--preset--font-size--small);font-weight:700;margin:auto 5px;padding:10px;text-decoration:none;white-space:nowrap}.lcp-button .lcp-icon{height:1.2em;margin-right:10px;max-height:100%;vertical-align:middle;width:auto;fill:#fff} diff --git a/includes/blocks/lcp-button/build/index.js b/includes/blocks/lcp-button/build/index.js new file mode 100644 index 0000000..f93a933 --- /dev/null +++ b/includes/blocks/lcp-button/build/index.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,n={216:()=>{const e=window.wp.blocks,n=window.wp.i18n,t=window.wp.blockEditor,o=window.wp.components,l=(window.wp.element,window.React),a=window.ReactJSXRuntime;function s(e){const{iconSvgId:t,onIconChange:s}=e,[c,i]=(0,l.useState)([]);if((0,l.useEffect)((()=>{(async()=>{try{const e=await fetch("/wp-json/lcp/v1/icons"),n=await e.json();Array.isArray(n)&&n.length>0&&i(n)}catch(e){console.error("Error fetching icons:",e)}})()}),[]),0===c.length)return(0,a.jsx)("p",{children:(0,n.__)("Loading icons...","lcp")});const r=c.map((e=>({value:e.iconSvgId,label:e.name})));return(0,a.jsx)(o.SelectControl,{label:(0,n.__)("Select Icon","lcp"),value:t,options:r,onChange:e=>{const n=c.find((n=>n.iconSvgId===e));n&&s&&(s({iconSvgId:n.iconSvgId,iconSvgPath:n.iconSvgPaths,viewbox:n.selectedIconViewbox}),console.log("Selected Icon ID:",n.iconSvgId),console.log("Selected Icon Path:",n.iconSvgPaths),console.log("Selected Icon Viewbox:",n.selectedIconViewbox))}})}function c({value:e="10px",onChange:t,includeAuto:s=!1,autoReturnsNull:c=!1}){const i=[{label:(0,n.__)("px"),value:"px"},{label:(0,n.__)("%"),value:"%"},{label:(0,n.__)("em"),value:"em"},{label:(0,n.__)("rem"),value:"rem"},{label:(0,n.__)("vw"),value:"vw"},{label:(0,n.__)("vh"),value:"vh"},...s?[{label:(0,n.__)("auto"),value:"auto"}]:[]],r=e=>{const n=e.match(/([0-9]+)([a-zA-Z%]+)?/);return n?{numberValue:parseInt(n[1],10),unitValue:n[2]||"px"}:{numberValue:0,unitValue:"px"}},{numberValue:h,unitValue:u}=r(e),[d,v]=(0,l.useState)(h),[x,g]=(0,l.useState)(u);return(0,l.useEffect)((()=>{const{numberValue:n,unitValue:t}=r(e);v(n),g(t)}),[e]),(0,a.jsx)(o.BaseControl,{className:"lcp-dimension-value-control",children:(0,a.jsxs)(o.__experimentalHStack,{children:[(0,a.jsx)(o.__experimentalNumberControl,{className:"lcp-number-control",value:d||"",onChange:e=>{v(e),t&&"auto"!==x&&t(`${e}${x}`)},min:0,step:.1,spinControls:"none",disabled:"auto"===x}),(0,a.jsx)(o.SelectControl,{className:"lcp-select-control",value:x,options:i,onChange:e=>{"auto"===e&&v(null),g(e),t&&t("auto"===e?c?null:"auto":`${d}${e}`)}})]})})}function i(){return(0,a.jsxs)(o.BaseControl,{className:"lcp-padding-control",children:[(0,a.jsxs)(o.__experimentalHStack,{children:[(0,a.jsx)("span",{children:(0,n.__)("Padding")}),(0,a.jsx)(o.Button,{variant:"secondary","aria-label":(0,n.__)("Unlink sides"),onClick:()=>{},children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,a.jsx)("path",{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})})})]}),(0,a.jsxs)(o.__experimentalHStack,{style:{flex:1},children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",className:"spacing-sizes-control__icon","aria-hidden":"true",focusable:"false",children:[(0,a.jsx)("path",{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,a.jsx)("path",{d:"m7.5 6h9v-1.5h-9z"}),(0,a.jsx)("path",{d:"m7.5 19.5h9v-1.5h-9z"})]}),(0,a.jsxs)(o.__experimentalHStack,{style:{flex:1},children:[(0,a.jsx)(c,{}),(0,a.jsx)(o.RangeControl,{withInputField:!1,value:10,onChange:()=>{},min:0,max:50})]}),(0,a.jsx)(o.Button,{style:{padding:0,background:"none",color:"var(--wp-components-color-foreground)"},variant:"primary",onClick:()=>{},children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,a.jsx)("path",{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,a.jsx)("path",{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]})})]}),(0,a.jsxs)(o.__experimentalHStack,{style:{flex:1},children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",className:"spacing-sizes-control__icon","aria-hidden":"true",focusable:"false",children:[(0,a.jsx)("path",{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,a.jsx)("path",{d:"m7.5 6h9v-1.5h-9z"}),(0,a.jsx)("path",{d:"m4.5 7.5v9h1.5v-9z"}),(0,a.jsx)("path",{d:"m18 7.5v9h1.5v-9z"})]}),(0,a.jsx)(o.RangeControl,{withInputField:!1,value:10,onChange:()=>{},min:0,max:50}),(0,a.jsx)(o.Button,{variant:"primary",onClick:()=>{},children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,a.jsx)("path",{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,a.jsx)("path",{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]})})]}),(0,a.jsx)(o.__experimentalVStack,{})]})}(0,e.registerBlockType)("lcp/button",{edit:function(e){const{attributes:l,setAttributes:r}=e,{buttonAction:h,iconHeight:u,buttonText:d,iconSvgId:v,iconSvgPath:x,iconSvgViewbox:g,displayIcon:p,iconSource:m,customUrl:w,buttonPadding:b}=l;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.InspectorControls,{children:(0,a.jsxs)(o.PanelBody,{title:(0,n.__)("Button Settings"),children:[(0,a.jsx)(i,{onChange:e=>{"number"==typeof e&&(e=`${e}px`),r({buttonPadding:e})}}),(0,a.jsx)(o.SelectControl,{label:(0,n.__)("Button Action"),value:h,options:[{value:"customUrl",label:"Custom URL"},{value:"showLoginForm",label:"Show Login Form"},{value:"logOut",label:"Open Popup"},{value:"shareCurrentPost",label:"Share Current Post"},{value:"displaySidecontent",label:"Display Sidecontent"}],onChange:e=>r({buttonAction:e})}),"customUrl"===h&&(0,a.jsx)(o.TextControl,{label:(0,n.__)("Custom URL"),value:w,onChange:e=>{r({customUrl:e})}}),(0,a.jsx)(o.TextControl,{label:(0,n.__)("Button Text"),value:d,onChange:e=>r({buttonText:e})}),(0,a.jsx)(o.ToggleControl,{label:"Display Icon",checked:p,onChange:e=>{r({displayIcon:e})}}),(0,a.jsx)(c,{value:u,onChange:e=>r({iconHeight:e}),includeAuto:!0,autoReturnsNull:!0}),p&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.SelectControl,{label:(0,n.__)("Icon Source"),value:m,options:[{value:"manualSvgPath",label:"SVG Path"},{value:"iconSelector",label:"Icon Library"}],onChange:e=>r({iconSource:e})}),"manualSvgPath"===m&&(0,a.jsx)(o.TextareaControl,{label:"Icon SVG Path",value:x,onChange:e=>r({iconSvgPath:e})}),"iconSelector"===m&&(0,a.jsx)(s,{iconSvgId:v,onIconChange:e=>{console.log("Icon changed:",e),e&&e.iconSvgPath&&r({iconSvgPath:e.iconSvgPath,iconSvgId:e.iconSvgId,iconSvgViewbox:e.viewbox})}})]})]})}),(0,a.jsx)("div",{...(0,t.useBlockProps)(),children:"customUrl"===h?(0,a.jsxs)("a",{href:w,className:"lcp-button",style:{padding:b||"10px"},children:[p&&x&&(0,a.jsx)("svg",{style:{height:u},className:"lcp-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:g||"0 0 576 576",dangerouslySetInnerHTML:{__html:x}}),(0,a.jsx)("span",{className:"lcp-button-text",children:d||"Button"})]}):(0,a.jsxs)("button",{className:"lcp-button",style:{padding:b||"10px"},children:[p&&x&&(0,a.jsx)("svg",{style:{height:u},className:"lcp-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:g||"0 0 576 576",dangerouslySetInnerHTML:{__html:x}}),(0,a.jsx)("span",{className:"lcp-button-text",children:d||"Button"})]})})]})},save:function(e){const{attributes:n}=e,{displayIcon:o,buttonText:l,buttonPadding:s,iconHeight:c,iconSvgPath:i,iconSvgViewbox:r,buttonAction:h,customUrl:u}=n,d=t.useBlockProps.save();return(0,a.jsx)("div",{...d,children:"customUrl"===h?(0,a.jsxs)("a",{href:u,className:"lcp-button",style:{padding:s||"10px"},children:[o&&i&&(0,a.jsx)("svg",{style:{height:c},className:"lcp-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:r||"0 0 576 576",dangerouslySetInnerHTML:{__html:i}}),(0,a.jsx)("span",{className:"lcp-button-text",children:l||"Button"})]}):(0,a.jsxs)("button",{className:"lcp-button",style:{padding:s||"10px"},children:[o&&i&&(0,a.jsx)("svg",{style:{height:c},className:"lcp-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:r||"0 0 576 576",dangerouslySetInnerHTML:{__html:i}}),(0,a.jsx)("span",{className:"lcp-button-text",children:l||"Button"})]})})}})}},t={};function o(e){var l=t[e];if(void 0!==l)return l.exports;var a=t[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.m=n,e=[],o.O=(n,t,l,a)=>{if(!t){var s=1/0;for(h=0;h=a)&&Object.keys(o.O).every((e=>o.O[e](t[i])))?t.splice(i--,1):(c=!1,a0&&e[h-1][2]>a;h--)e[h]=e[h-1];e[h]=[t,l,a]},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={57:0,350:0};o.O.j=n=>0===e[n];var n=(n,t)=>{var l,a,[s,c,i]=t,r=0;if(s.some((n=>0!==e[n]))){for(l in c)o.o(c,l)&&(o.m[l]=c[l]);if(i)var h=i(o)}for(n&&n(t);ro(216)));l=o.O(l)})(); \ No newline at end of file diff --git a/includes/blocks/lcp-button/build/style-index-rtl.css b/includes/blocks/lcp-button/build/style-index-rtl.css new file mode 100644 index 0000000..c1f8c3e --- /dev/null +++ b/includes/blocks/lcp-button/build/style-index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-button{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-button/build/style-index.css b/includes/blocks/lcp-button/build/style-index.css new file mode 100644 index 0000000..c1f8c3e --- /dev/null +++ b/includes/blocks/lcp-button/build/style-index.css @@ -0,0 +1 @@ +.wp-block-create-block-button{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-button/build/view.asset.php b/includes/blocks/lcp-button/build/view.asset.php new file mode 100644 index 0000000..cd2a56d --- /dev/null +++ b/includes/blocks/lcp-button/build/view.asset.php @@ -0,0 +1 @@ + array(), 'version' => '39bd3d2fc52e7ff1ed91'); diff --git a/includes/blocks/lcp-button/build/view.js b/includes/blocks/lcp-button/build/view.js new file mode 100644 index 0000000..1a3fd7c --- /dev/null +++ b/includes/blocks/lcp-button/build/view.js @@ -0,0 +1 @@ +console.log("Hello World! (from create-block-button block)"); \ No newline at end of file diff --git a/includes/blocks/lcp-button/components/DimensionValueControl.js b/includes/blocks/lcp-button/components/DimensionValueControl.js new file mode 100644 index 0000000..a4d956c --- /dev/null +++ b/includes/blocks/lcp-button/components/DimensionValueControl.js @@ -0,0 +1,96 @@ +import { __ } from '@wordpress/i18n'; +import { BaseControl, __experimentalNumberControl as NumberControl, SelectControl, __experimentalHStack as HStack } from '@wordpress/components'; +import { useState, useEffect } from 'react'; + +/** + * Control component with a number input and a select dropdown for units (px, rem, em, % etc.). + * Accepts a default value as a string (e.g., "15px", "10rem", etc.). + * Includes an optional 'auto' unit if includeAuto is true, and handles autoReturnsNull behavior. + */ +export function DimensionValueControl({ value = '10px', onChange, includeAuto = false, autoReturnsNull = false }) { + // Options for select control (CSS units) including 'auto' if enabled + const unitOptions = [ + { label: __('px'), value: 'px' }, + { label: __('%'), value: '%' }, + { label: __('em'), value: 'em' }, + { label: __('rem'), value: 'rem' }, + { label: __('vw'), value: 'vw' }, + { label: __('vh'), value: 'vh' }, + ...(includeAuto ? [{ label: __('auto'), value: 'auto' }] : []), // Add 'auto' option if includeAuto is true + ]; + + // Parse the value string into a number and unit + const parseValue = (value) => { + const regex = /([0-9]+)([a-zA-Z%]+)?/; // Capture the number and the unit + const match = value.match(regex); + if (match) { + return { + numberValue: parseInt(match[1], 10), // Number part + unitValue: match[2] || 'px' // Unit part (default to 'px' if no unit found) + }; + } + return { numberValue: 0, unitValue: 'px' }; // Fallback if invalid format + }; + + // Use the parsed value to set initial state + const { numberValue: initialNumber, unitValue: initialUnit } = parseValue(value); + const [numberValue, setNumberValue] = useState(initialNumber); + const [unitValue, setUnitValue] = useState(initialUnit); + + // Combine the number and unit into a string like "15px" + const dimensionValue = `${numberValue}${unitValue}`; + + // Handle number change + const onNumberChange = (newValue) => { + setNumberValue(newValue); + if (onChange && unitValue !== 'auto') { + onChange(`${newValue}${unitValue}`); // Pass updated value back to parent + } + }; + + // Handle unit change + const onUnitChange = (newUnit) => { + if (newUnit === 'auto') { + setNumberValue(null); // Reset the number value when 'auto' is selected + } + setUnitValue(newUnit); + if (onChange) { + const updatedValue = newUnit === 'auto' + ? (autoReturnsNull ? null : 'auto') + : `${numberValue}${newUnit}`; // Pass 'auto' or null or updated value back to parent + onChange(updatedValue); + } + }; + + // Effect to handle when value prop changes (useful for syncing) + useEffect(() => { + const { numberValue, unitValue } = parseValue(value); + setNumberValue(numberValue); + setUnitValue(unitValue); + }, [value]); + + return ( + + + {/* Number input control, disabled when 'auto' is selected */} + + + {/* Select dropdown control for units */} + + + + ); +} diff --git a/includes/blocks/lcp-button/components/IconSelectControl.js b/includes/blocks/lcp-button/components/IconSelectControl.js new file mode 100644 index 0000000..1c00e70 --- /dev/null +++ b/includes/blocks/lcp-button/components/IconSelectControl.js @@ -0,0 +1,59 @@ +import { useState, useEffect } from 'react'; +import { __ } from '@wordpress/i18n'; +import { SelectControl } from '@wordpress/components'; + +export function IconSelectControl(props) { + const { iconSvgId, onIconChange } = props; + + const [iconData, setIconData] = useState([]); + + useEffect(() => { + const fetchIconData = async () => { + try { + const response = await fetch('/wp-json/lcp/v1/icons'); + const data = await response.json(); + if (Array.isArray(data) && data.length > 0) { + setIconData(data); // Set the fetched data directly + } + } catch (error) { + console.error('Error fetching icons:', error); + } + }; + + fetchIconData(); + }, []); + + const handleIconChange = (selectedIconId) => { + const selectedIcon = iconData.find(icon => icon.iconSvgId === selectedIconId); + if (selectedIcon && onIconChange) { + // Send both icon ID and path (SVG) to the parent component + onIconChange({ + iconSvgId: selectedIcon.iconSvgId, // Pass icon ID to parent + iconSvgPath: selectedIcon.iconSvgPaths, // Pass icon paths to parent + viewbox: selectedIcon.selectedIconViewbox // Pass the viewbox to parent + }); + console.log("Selected Icon ID:", selectedIcon.iconSvgId); // Debugging output + console.log("Selected Icon Path:", selectedIcon.iconSvgPaths); // Debugging output + console.log("Selected Icon Viewbox:", selectedIcon.selectedIconViewbox); // Debugging output + } + }; + + if (iconData.length === 0) { + return

{__('Loading icons...', 'lcp')}

; // Loading state + } + + const iconOptions = iconData.map((icon) => ({ + value: icon.iconSvgId, // Use icon ID as value for the SelectControl + label: icon.name, // Directly use the icon's name as the label + })); + + + return ( + + ); +} diff --git a/includes/blocks/lcp-button/components/PaddingControl.js b/includes/blocks/lcp-button/components/PaddingControl.js new file mode 100644 index 0000000..9ab9aa4 --- /dev/null +++ b/includes/blocks/lcp-button/components/PaddingControl.js @@ -0,0 +1,103 @@ +import { __ } from '@wordpress/i18n'; +import { BaseControl, Button, RangeControl, __experimentalHStack as HStack, __experimentalVStack as VStack } from '@wordpress/components'; +import { DimensionValueControl } from './DimensionValueControl'; + +/** + * Padding Control component to manage padding values for different screen sizes. + */ +export function PaddingControl() { + return ( + + + + {/* Padding label and Unlink button */} + + {__('Padding')} + + + + {/* Extra Large Padding Controls */} + {/* Will update all padding values for all screen sizes if updateAllScreenSizes is true */} + + {/* Top and Bottom HStack */} + + {/* Top and Bottom Icon */} + + + {/* RangeControl wrapped in HStack with flex: 1 applied to its parent */} + + + {}} + min={0} + max={50} + /> + + + {/* Custom Padding Button */} + + + + {/* Left and Right HStack */} + + {/* Left and Right Icon */} + + + {/* RangeControl wrapped in HStack with flex: 1 applied to its parent */} + + {}} + min={0} + max={50} + /> + + + {/* Custom Padding Button */} + + + + {/* Additional controls can be added here in a VStack */} + + {/* Placeholder for additional components */} + + + ); +} diff --git a/includes/blocks/lcp-button/src/block.json b/includes/blocks/lcp-button/src/block.json index 320468d..cfab67a 100644 --- a/includes/blocks/lcp-button/src/block.json +++ b/includes/blocks/lcp-button/src/block.json @@ -6,17 +6,10 @@ "title": "Button", "category": "widgets", "icon": "smiley", - "description": "Example block scaffolded with Create Block tool.", + "description": "A button for various functions or custom urls", "example": {}, "supports": { - "html": false, - "color": { - "background": true, - "link": true, - "text": true, - "gradients": true, - "button": true - } + "html": false }, "attributes": { "buttonAction": { @@ -32,14 +25,16 @@ "default": "Button Text" }, "displayIcon": { - "type": "boolean" + "type": "boolean", + "default": true }, "iconSource": { "type": "string", "default": "manualSvgPath" }, "iconSvgPath": { - "type": "string" + "type": "string", + "default": "" }, "iconSvgId": { "type": "string", @@ -53,10 +48,12 @@ "type": "number" }, "manualIconSvgPath":{ - "type": "string" + "type": "string", + "default": "" }, "buttonHeight":{ - "type": "string" + "type": "string", + "default": "" }, "buttonPadding":{ "type": "object", @@ -88,10 +85,12 @@ } }, "iconHeight": { - "type": "string" + "type": "string", + "default": "" }, "iconWidth": { - "type": "string" + "type": "string", + "default": "" } }, "textdomain": "lcp", diff --git a/includes/blocks/lcp-button/src/save.js b/includes/blocks/lcp-button/src/save.js index e2fdcb3..1652fcf 100644 --- a/includes/blocks/lcp-button/src/save.js +++ b/includes/blocks/lcp-button/src/save.js @@ -2,7 +2,7 @@ import { useBlockProps } from '@wordpress/block-editor'; export default function save(props) { const { attributes } = props; - const { buttonText, buttonPadding,iconHeight,iconSvgPath, iconSvgViewbox, buttonAction, customUrl } = attributes; // Destructure buttonText, iconSvgPath, and iconSvgViewbox + const {displayIcon, buttonText, buttonPadding,iconHeight,iconSvgPath, iconSvgViewbox, buttonAction, customUrl } = attributes; // Destructure buttonText, iconSvgPath, and iconSvgViewbox // Get the block props for the button const blockProps = useBlockProps.save(); @@ -10,7 +10,7 @@ export default function save(props) { // Conditionally render the link or button based on buttonAction return ( -
+
{buttonAction === 'customUrl' ? ( {displayIcon && iconSvgPath && ( diff --git a/includes/blocks/lcp-dynamic-container/build/block.json b/includes/blocks/lcp-dynamic-container/build/block.json new file mode 100644 index 0000000..62ce8ff --- /dev/null +++ b/includes/blocks/lcp-dynamic-container/build/block.json @@ -0,0 +1,141 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "lcp/dynamic-container", + "version": "0.1.0", + "title": "Dynamic Container", + "category": "widgets", + "icon": "smiley", + "description": "A general purpose container that uses dynamic rendering", + "example": {}, + "supports": { + "anchor": true, + "align": [ + "left", + "right", + "wide", + "full" + ], + "background": { + "backgroundImage": true, + "backgroundSize": true, + "__experimentalDefaultControls": { + "backgroundImage": true + } + }, + "color": { + "gradients": true, + "background": true, + "link": true, + "__experimentalDefaultControls": { + "background": true, + "text": true + } + } + }, + "attributes": { + "maxWidthExtraLarge": { + "type": "string" + }, + "maxWidthLarge": { + "type": "string" + }, + "maxWidthMedium": { + "type": "string" + }, + "maxWidthSmall": { + "type": "string" + }, + "minHeightExtraLarge": { + "type": "string" + }, + "minHeightLarge": { + "type": "string" + }, + "minHeightMedium": { + "type": "string" + }, + "minHeightSmall": { + "type": "string" + }, + "isBox": { + "type": "boolean", + "default": false + }, + "backgroundColor": { + "type": "string" + }, + "entranceAnimation": { + "type": "string" + }, + "exitAnimation": { + "type": "string" + }, + "overflow": { + "type": "string" + }, + "padding": { + "type": "object", + "default": { + "extraLarge": { + "top": "0", + "right": "0", + "bottom": "0", + "left": "0" + }, + "large": { + "top": "0", + "right": "0", + "bottom": "0", + "left": "0" + }, + "medium": { + "top": "0", + "right": "0", + "bottom": "0", + "left": "0" + }, + "small": { + "top": "0", + "right": "0", + "bottom": "0", + "left": "0" + } + } + }, + "margin": { + "type": "object", + "default": { + "extraLarge": { + "top": "12px", + "right": "0", + "bottom": "12px", + "left": "0" + }, + "large": { + "top": "12px", + "right": "0", + "bottom": "12px", + "left": "0" + }, + "medium": { + "top": "12px", + "right": "0", + "bottom": "12px", + "left": "0" + }, + "small": { + "top": "12px", + "right": "0", + "bottom": "12px", + "left": "0" + } + } + } + }, + "textdomain": "lcp", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css", + "viewScript": "file:./view.js" +} \ No newline at end of file diff --git a/includes/blocks/lcp-dynamic-container/build/index.asset.php b/includes/blocks/lcp-dynamic-container/build/index.asset.php new file mode 100644 index 0000000..c9eef1f --- /dev/null +++ b/includes/blocks/lcp-dynamic-container/build/index.asset.php @@ -0,0 +1 @@ + array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '40a5279a7e8774abfe4c'); diff --git a/includes/blocks/lcp-dynamic-container/build/index.js b/includes/blocks/lcp-dynamic-container/build/index.js new file mode 100644 index 0000000..b3ee1af --- /dev/null +++ b/includes/blocks/lcp-dynamic-container/build/index.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,l={717:()=>{const e=window.wp.blocks,l=window.wp.blockEditor,t=window.wp.components,n=window.React,o=window.wp.i18n,r=window.ReactJSXRuntime,a=JSON.parse('{"UU":"lcp/dynamic-container"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const i=(0,l.useBlockProps)(),{padding:s,maxWidthLarge:d,maxWidthMedium:x,maxWidthSmall:p,minHeightLarge:g,minHeightMedium:c,minHeightSmall:h,backgroundColor:u}=e,[m,f]=(0,n.useState)(!1),[C,j]=(0,n.useState)(!1),[v,b]=(0,n.useState)(u||"#ffffff"),_=(e,l,t)=>{const n={...s};n[e][l]=t,a({padding:n})},y=(e,l)=>{a({[`maxWidth${l}`]:e})},w=(e,l)=>{a({[`minHeight${l}`]:e})};return(0,n.useEffect)((()=>{console.log("Updated attributes:",e)}),[e]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.InspectorControls,{children:[(0,r.jsxs)(t.__experimentalToggleGroupControl,{label:"my label",value:"vertical",isBlock:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,children:[(0,r.jsx)(t.__experimentalToggleGroupControlOption,{value:"horizontal",label:"Horizontal"}),(0,r.jsx)(t.__experimentalToggleGroupControlOption,{value:"vertical",label:"Vertical"})]}),(0,r.jsxs)(t.BaseControl,{label:"Padding - Desktop",children:[(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"row"},children:[(0,r.jsx)("span",{style:{marginRight:"10px"},children:"Padding"}),(0,r.jsx)(t.ToggleControl,{label:"Use Independent Padding",checked:m,onChange:()=>{f(!m)}})]}),m?(0,r.jsxs)("div",{style:{display:"grid",padding:"10px",gridTemplateColumns:"1fr 1fr",gap:"10px",justifyItems:"center"},children:[(0,r.jsxs)("fieldset",{style:{gridColumn:"span 2",width:"116px"},children:[(0,r.jsx)("legend",{children:"Top"}),(0,r.jsx)(t.__experimentalUnitControl,{value:s.extraLarge?.top||"10px",onChange:e=>_("extraLarge","top",e)})]}),(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("legend",{children:"Left"}),(0,r.jsx)(t.__experimentalUnitControl,{value:s.extraLarge?.left||"10px",onChange:e=>_("extraLarge","left",e)})]}),(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("legend",{children:"Right"}),(0,r.jsx)(t.__experimentalUnitControl,{value:s.extraLarge?.right||"10px",onChange:e=>_("extraLarge","right",e)})]}),(0,r.jsxs)("fieldset",{style:{gridColumn:"span 2",width:"116px"},children:[(0,r.jsx)("legend",{children:"Bottom"}),(0,r.jsx)(t.__experimentalUnitControl,{value:s.extraLarge?.bottom||"10px",onChange:e=>_("extraLarge","bottom",e)})]})]}):(0,r.jsx)(t.__experimentalUnitControl,{label:"Padding Value",value:999,onChange:e=>{a({padding:{extraLarge:{top:e,right:e,bottom:e,left:e},large:{top:e,right:e,bottom:e,left:e},medium:{top:e,right:e,bottom:e,left:e},small:{top:e,right:e,bottom:e,left:e}}})}})]}),(0,r.jsx)(t.BaseControl,{label:"Max Width",children:(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(t.__experimentalUnitControl,{label:"Large",value:d,onChange:e=>y(e,"Large"),defaultUnit:"px"}),(0,r.jsx)(t.__experimentalUnitControl,{label:"Medium",value:x,onChange:e=>y(e,"Medium"),defaultUnit:"px"}),(0,r.jsx)(t.__experimentalUnitControl,{label:"Small",value:p,onChange:e=>y(e,"Small"),defaultUnit:"px"})]})}),(0,r.jsx)(t.BaseControl,{label:"Min Height",children:(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(t.__experimentalUnitControl,{label:"Large",value:g,onChange:e=>w(e,"Large"),defaultUnit:"px"}),(0,r.jsx)(t.__experimentalUnitControl,{label:"Medium",value:c,onChange:e=>w(e,"Medium"),defaultUnit:"px"}),(0,r.jsx)(t.__experimentalUnitControl,{label:"Small",value:h,onChange:e=>w(e,"Small"),defaultUnit:"px"})]})}),(0,r.jsx)(t.BaseControl,{label:(0,o.__)("Background Color"),children:(0,r.jsxs)("div",{children:[(0,r.jsx)(t.Button,{onClick:()=>j(!C),children:(0,o.__)("Choose Background Color")}),C&&(0,r.jsx)(t.Popover,{position:"bottom center",children:(0,r.jsx)(t.ColorPalette,{value:v,onChange:e=>{b(e),a({backgroundColor:e})},colors:[{name:"Primary",slug:"primary",color:"#3E5062"},{name:"Secondary",slug:"secondary",color:"#2B3843"},{name:"Light Color - 1",slug:"light-color-1",color:"#ECF0F5"},{name:"Dark Gray",slug:"dark-gray",color:"#333333"},{name:"Accent",slug:"accent",color:"#61FFB6"}],disableCustomColors:!1})}),(0,r.jsx)("div",{style:{backgroundColor:v,width:"30px",height:"30px",marginTop:"10px",borderRadius:"50%"}})]})})]}),(0,r.jsx)("div",{...i,style:{maxWidth:d,minHeight:g},children:(0,r.jsx)(l.InnerBlocks,{})})]})},save:function(){const e=l.useBlockProps.save();return(0,r.jsx)("div",{...e,children:(0,r.jsx)(l.InnerBlocks.Content,{})})}})}},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var r=t[e]={exports:{}};return l[e](r,r.exports,n),r.exports}n.m=l,e=[],n.O=(l,t,o,r)=>{if(!t){var a=1/0;for(x=0;x=r)&&Object.keys(n.O).every((e=>n.O[e](t[s])))?t.splice(s--,1):(i=!1,r0&&e[x-1][2]>r;x--)e[x]=e[x-1];e[x]=[t,o,r]},n.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={57:0,350:0};n.O.j=l=>0===e[l];var l=(l,t)=>{var o,r,a=t[0],i=t[1],s=t[2],d=0;if(a.some((l=>0!==e[l]))){for(o in i)n.o(i,o)&&(n.m[o]=i[o]);if(s)var x=s(n)}for(l&&l(t);dn(717)));o=n.O(o)})(); \ No newline at end of file diff --git a/includes/blocks/lcp-dynamic-container/build/style-index-rtl.css b/includes/blocks/lcp-dynamic-container/build/style-index-rtl.css new file mode 100644 index 0000000..47253dd --- /dev/null +++ b/includes/blocks/lcp-dynamic-container/build/style-index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-dynamic-container/build/style-index.css b/includes/blocks/lcp-dynamic-container/build/style-index.css new file mode 100644 index 0000000..47253dd --- /dev/null +++ b/includes/blocks/lcp-dynamic-container/build/style-index.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-dynamic-container/build/view.asset.php b/includes/blocks/lcp-dynamic-container/build/view.asset.php new file mode 100644 index 0000000..3cee5e3 --- /dev/null +++ b/includes/blocks/lcp-dynamic-container/build/view.asset.php @@ -0,0 +1 @@ + array(), 'version' => 'd4e4a494008d04e1eb42'); diff --git a/includes/blocks/lcp-dynamic-container/build/view.js b/includes/blocks/lcp-dynamic-container/build/view.js new file mode 100644 index 0000000..f0b02e4 --- /dev/null +++ b/includes/blocks/lcp-dynamic-container/build/view.js @@ -0,0 +1 @@ +console.log("Hello World! (from create-block-lcp-viewport block)"); \ No newline at end of file diff --git a/includes/blocks/lcp-gallery/build/block.json b/includes/blocks/lcp-gallery/build/block.json new file mode 100644 index 0000000..547b6b9 --- /dev/null +++ b/includes/blocks/lcp-gallery/build/block.json @@ -0,0 +1,384 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "lcp/lcp-gallery", + "version": "0.1.0", + "title": "LCP Gallery", + "category": "widgets", + "icon": "", + "description": "A dynamic or static gallery based on the Lightgallery javascript plugin", + "example": {}, + "supports": { + "html": false + }, + "attributes": { + "parseElementForItems": { + "type": "boolean", + "default": false + }, + "parsedTargetElement": { + "type": "string", + "default": "" + }, + "parsedExcludedElements": { + "type": "string", + "default": "" + }, + "lgSettings": { + "type": "object", + "default": { + "zoom": false, + "thumbnail": false, + "toggleThumb": false, + "thumbWidth": 120, + "thumbHeight": "80px", + "thumbMargin": 4, + "hash": false, + "galleryId": "1", + "dynamic": false, + "mode": "lg-fade", + "cssEasing": "ease", + "rotate": false, + "fullScreen": false, + "autoplay": false, + "download": false, + "loop": true, + "closeOnTap": true, + "enableDrag": true, + "enableSwipe": true, + "escKey": true, + "getCaptionFromTitleOrAlt ": true, + "hideBarsDelay": 0, + "hideControlOnEnd": false, + "hideScrollbar ": false, + "controls": true, + "counter": true, + "container": "", + "closable": true, + "zoomFromOrigin": false, + "showMaximizeIcon": false, + "plugins": [] + } + }, + "hashGalleryId": { + "type": "string", + "default": "" + }, + "source": { + "type": "string", + "default": "manual" + }, + "galleryItems": { + "type": "array" + }, + "sourceMetaField": { + "type": "string", + "default": "" + }, + "sourceTable": { + "type": "string", + "default": "" + }, + "sourceColumn": { + "type": "string", + "default": "" + }, + "includePostThumbnail": { + "type": "boolean", + "default": false + }, + "initialLayout": { + "type": "string", + "default": "grid" + }, + "initialLayoutLarge": { + "type": "string", + "default": "inline" + }, + "initialLayoutSmall": { + "type": "string", + "default": "inline" + }, + "justifiedRowHeightSmall": { + "type": "string", + "default": "150px" + }, + "justifiedRowHeightMedium": { + "type": "string", + "default": "150px" + }, + "justifiedRowHeightLarge": { + "type": "string", + "default": "150px" + }, + "justifiedLastRow": { + "type": "string", + "default": "justify" + }, + "maxInitialItems": { + "type": "number", + "default": 0 + }, + "initialImageSize": { + "type": "string", + "default": "medium-large" + }, + "inlineHeightSmall": { + "type": "string", + "default": "300px" + }, + "inlineHeightMedium": { + "type": "string", + "default": "400px" + }, + "inlineHeightLarge": { + "type": "string", + "default": "500px" + }, + "containerWidthDesktop": { + "type": "string", + "default": "100%" + }, + "containerWidthTablet": { + "type": "string", + "default": "100%" + }, + "containerWidthMobile": { + "type": "string", + "default": "100%" + }, + "itemsAspectRatio": { + "type": "string", + "default": "1-1" + }, + "gridColumns": { + "type": "number", + "default": 4 + }, + "gridColumnsLarge": { + "type": "number", + "default": 4 + }, + "gridColumnsMedium": { + "type": "number", + "default": 3 + }, + "gridColumnsSmall": { + "type": "number", + "default": 2 + }, + "gridGapLarge": { + "type": "number", + "default": 10 + }, + "gridGapMedium": { + "type": "number", + "default": 10 + }, + "gridGapSmall": { + "type": "number", + "default": 10 + }, + "downloadLimitRoles": { + "type": "array", + "default": "" + }, + "allowHideThumbnails": { + "type": "boolean", + "default": false + }, + "thumbnailsStyle": { + "type": "string", + "default": "" + }, + "thumbnailActiveStyle": { + "type": "string", + "default": "" + }, + "thumbnailBorders": { + "type": "object" + }, + "thumbnailBordersSelected": { + "type": "object" + }, + "thumbsBackgroundColor": { + "type": "string" + }, + "backdropBackgroundColor": { + "type": "string" + }, + "showCaptions": { + "type": "boolean" + }, + "showItemTitle": { + "type": "boolean" + }, + "showItemDescription": { + "type": "boolean" + }, + "lgMode": { + "type": "string", + "default": "lg-slide" + }, + "downloadSize": { + "type": "string", + "default": "full" + }, + "allowShare": { + "type": "boolean", + "default": true + }, + "lgVideo": { + "type": "boolean", + "default": "true" + }, + "dynamic": { + "type": "boolean", + "default": false + }, + "loop": { + "type": "boolean", + "default": true + }, + "speed": { + "type": "number", + "default": 500 + }, + "slideDelay": { + "type": "number", + "default": 200 + }, + "hash": { + "type": "boolean", + "default": false + }, + "allowZoom": { + "type": "boolean", + "default": false + }, + "closable": { + "type": "boolean", + "default": true + }, + "closeOnTap": { + "type": "boolean", + "default": true + }, + "container": { + "type": "string", + "default": "" + }, + "showControls": { + "type": "boolean", + "default": true + }, + "showCounter": { + "type": "boolean", + "default": true + }, + "showMaximizeIcon": { + "type": "boolean", + "default": true + }, + "easing": { + "type": "string", + "default": "ease" + }, + "download": { + "type": "boolean", + "default": false + }, + "appendThumbnailsTo": { + "type": "string", + "default": ".lg-components" + }, + "appendSubHtmlTo": { + "type": "string", + "default": ".lg-item" + }, + "thumbWidth": { + "type": "string", + "default": "80px" + }, + "thumbHeight": { + "type": "string", + "default": "80px" + }, + "thumbnailsBorders": { + "type": "object", + "default": { + "top": { + "color": "#000000", + "style": "solid", + "width": "10px" + }, + "right": { + "color": "#000000", + "style": "solid", + "width": "10px" + }, + "bottom": { + "color": "#000000", + "style": "solid", + "width": "10px" + }, + "left": { + "color": "#000000", + "style": "solid", + "width": "10px" + } + } + }, + "thumbnailsBordersSelected": { + "type": "object", + "default": { + "top": { + "color": "#000000", + "style": "solid", + "width": "1px" + }, + "right": { + "color": "#000000", + "style": "solid", + "width": "1px" + }, + "bottom": { + "color": "#000000", + "style": "solid", + "width": "1px" + }, + "left": { + "color": "#000000", + "style": "solid", + "width": "1px" + } + } + }, + "thumbMargin": { + "type": "number", + "default": 5 + }, + "toggleThumb": { + "type": "boolean", + "default": false + }, + "numberOfSlideItemsInDom": { + "type": "number", + "default": 10 + }, + "galleryCustomStyles": { + "type": "string", + "default": "" + } + }, + "textdomain": "lcp", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css", + "viewScript": [ + "file:./view.js" + ], + "viewStyle": [ + "file:./lightgallery-bundle.min.css" + ] +} \ No newline at end of file diff --git a/includes/blocks/lcp-gallery/build/fonts/lg.356a0e9c.woff b/includes/blocks/lcp-gallery/build/fonts/lg.356a0e9c.woff new file mode 100644 index 0000000000000000000000000000000000000000..fd02a6f46e7fed18d854fe47e4f4c2931ed05a9e GIT binary patch literal 4832 zcmai2O>7&-6`miGE0W8fU5cbAQR2^vq(n-Jq!mg3$g*RnwiU^-?2=4uIF4jnmXgYn zVasrWHUVuoK+qa(4`~_$MNzaxkkYJS^pr!9x;_Lw^bj<(P7UD5IV7!-LxJ`XlvKaj zB^}49;t^-&&3kX={mh#;v$}Y2?_NR)ih7qgjs8u-ME}il@Vifp5<=TRnHANe+M*}V z%$)^p5#!&A`o?{Ibz$y2a7@Nn@QUhPSbF6&aP5S+w}|@e2Y*%;=jTp=G!1%A)UMxU zZY%-`+!c&_MU`&wj~CCZz6{*E7-L;>_B3(2msU=KPwBvTo2aSRdZTCNUItw$U>r4S zlKgmi?#w)JtI+XjQQs}@?m4@19%J>^13nIj^ZWFt#0nj+vA<&c6SJrPBs#TY{BWV( zherb5Mabt4erw|v*~L+TF?@<%l&H}fQUHZP6L1)<;0hB9c>{e9@dD!pE_%1~ZuedN z?%BIPyZf(CHr8GD)X!X>J2vVY8{orw59n_iborhFIx*;U<6h(+kQPAkP@N1!i$jSBN|D;6^gD%qxoER zES1#alFi>94ERQa0e`z>)8eUQb}XOsfrq6_<*V~3SIze3t0*^(cDO_-Ei|gt2Sl)N z(jp6{dQ~t$YD>O{L`a;F#A78}8QDbaQABJnL+z9sy`NfFI;*xXL~$pkEp3G)>b&quwHj8)(=b~ z+0l_?whKq%V zV`ePrtf-20#rjxEme=bGret;vl4T*UaR*Wi1%$M9xDif-W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co6`21JfjxXn~Vjr(fFk1+j*uh^#rH4{5TC$ zSM=;|3-t%vbMdju`}+$0_iS!S@mQx7)u)D!@9KMgBsCe)rvh$|>a|dw`?Xz>v`KC2 z>He;aSM~C-bl>83VSnqrog`1feqm)`bf?HFFcWWRVNYrc9Wk7OCpfN(fDSwHxQ=^p zu_lp3@#w~D9PAkJka&@5@_I;BL&zRh&Ls=CTQ-Oq3aJg_z1pOPRB9kOS(kh9OkKYw zSSYcySu7Ig7R(MQYN%dZ$9gW;C)bovNHNz@LdM>mATs|YpTrIO40QjdQo{Gp-PnYd zf;9hi+lI%!X503r3-aub>-Z$-6^1Aw1e9S2R5Nw1Pd561(gv~E zxiHB}854e~ubakDVr{b^d?}2jpeP}jifJ&$u#Z$Nt53e*8UHtNT12#xzdv*S>Q{a9 zrW5}cz?Y;^FwgjQ#^o;xzi+H$z|AIXQp}NAj{60F&q6G>txs7$ zw9VLVNMXzreh8DR_%0BoWu-A_Hg3GO1ef3ybQ5OydbretIq(;num$j2O<25&3QgDs z{P&x%1Ftq4Ubxg^2S&^=VTS)GywQX?@E4mfl!jddQX@M+} zg}p1wtI>t|<@s}StMjL#Ctit8o?JPwva&ox_L3E{Ojb#hERcCX^W+?v!+4&Y0`3HP z1??m`39bXEf_JDifA0K?E6dT*po<> T$r4sSXOiGKDXfAxF literal 0 HcmV?d00001 diff --git a/includes/blocks/lcp-gallery/build/fonts/lg.64b800aa.woff2 b/includes/blocks/lcp-gallery/build/fonts/lg.64b800aa.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..2c2e289260bf80880c447749205a7024c34310f0 GIT binary patch literal 2332 zcmV+%3FG#6Pew8T0RR9100|rb3jhEB01}7*00_+h0RR9100000000000000000000 z00006U;u$65eN#LES5?OIsgGS0we=)1Rw>1N(UetsSW_<=W(-oKMAExFsmpPS1K05 zm`JkguSY3=L2BQ9_!?p4ex41!yLOc&r zDT^p(Lo)AyuQlo9HLa2 zByzBWk}@|mNkOuaW+ht7^5wbI?CAO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fJB$ zPkRzQo!Q7;LKT7Qa`SdGMb*RTPMEx1AXH*eG8#_F1-iszG-bNG&kq2g2NnT_yKy6| z0TF%{ZvzAX7=Se@)3#Dt`L|Gt004j=b?yB~9>>q(zr`PK0z(0VMg;KkgbEo4~mUH~pO5l?vLTezY|&tu%iGVZ&~wX_mmvWmQm&hN7E= z!09nKV6dMN+#VwU3TO)P@uPJlMA$IX0})}EWz=IZkiZ9o`}jd3zz1Rkpn;VX0)BiW z5(*)1+eX+18{Z_p?$wA5ZEJV_rZMM0Gwg&NurFE%v|a;VzXw*^K&Ex}`ZaJ^s&9j} zk<`gWyzw8}ZZJPP7nr1my|CGh7|Mri$Q{@q89y~{IrIgCk@oMJR>L0mnF9_D0000L C#$m<) literal 0 HcmV?d00001 diff --git a/includes/blocks/lcp-gallery/build/fonts/lg.747d0385.ttf b/includes/blocks/lcp-gallery/build/fonts/lg.747d0385.ttf new file mode 100644 index 0000000000000000000000000000000000000000..825f4832d409eaebc9684ea59d1e599c364f721d GIT binary patch literal 4756 zcmai2O>7&-6`miGE0W8fU5cbAQR2^vq(n-Jq!mfomSx3GV=Izl*(I6Sa2(6FEGLyE z!s3eQeaD+M>X`kAD2*+4*yC-qlwLp<#@F zyEuR09Nu1xujAdexb({DXFmM1g7HU$xW~^d%%AG|eP-QYAtZMO2x*;vit#x3d(WI* zefczTx-mYA@wugylk=(9dZQTs1>@~!=U+ZYlH^B(C~X)=m*>we{I0mW2jf1-cb#*LhT3J6d_+a`1Q@}WQwDMD16as zQ3DXtL=S^zzPZ5_CKmE0@ICMbCvM=Pw>xil-_~!RyZy7<|NLxo!*xgf!u6$Nv%a}$ ztaOk5Q-dzwQ9vgKoo?QV{5|qTm59(VD0;LG8TI1K?#Kf&wYH1 zko-1d+P%5ojD0u1KT#Ty`v#)Z&uO-yRJ3MuP!=yJXYisbqF6 zpYwr-rAy^23usr&=e1YSt{Kna5~Z}zs8+urf`yY7SuoYBf&o%n@;xL%;)Em~DcQ=% z7GjT3Q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Q6RIt7a1!U}C0dUd?Gi zM$X1StY`6#kv}nv=O_i`-co(z5@!t{3BBQHb+2PyoW-{|P8+I@GIuz_y7aZ^0&g^J z1J>6cAe6LatWY?g`uJ>xo; literal 0 HcmV?d00001 diff --git a/includes/blocks/lcp-gallery/build/index-rtl.css b/includes/blocks/lcp-gallery/build/index-rtl.css new file mode 100644 index 0000000..fbf5acf --- /dev/null +++ b/includes/blocks/lcp-gallery/build/index-rtl.css @@ -0,0 +1,2 @@ +.wp-block-create-block-lcp-gallery{background-color:#21759b;color:#fff;padding:2px}.lcp-gallery.inline{height:500px;position:relative;width:100%}.lcp-gallery.inline .gallery-item{display:none}.lcp-gallery .gallery-item,.lcp-gallery .gallery-item>img{width:100%}.lcp-gallery .gallery-item.last:after{background:red;content:"";height:100%;right:0;opacity:.5;position:absolute;top:0;width:100%}.lg-thumbnail-active-grayscale .lg-thumb-item.active img,.lg-thumbnail-grayscale .lg-thumb-item:not(.active) img{filter:grayscale(100%)}.lg-thumbnail-active-blur .lg-thumb-item.active img,.lg-thumbnail-blur .lg-thumb-item:not(.active) img{filter:blur(1px)}.lg-outer{background:none}.lcp-display-none{display:none}.gallery-item{position:relative}span.gallery-more{color:#fff;font-size:40px;right:50%;position:absolute;top:50%;transform:translate3d(50%,-50%,0);z-index:10}.lcp-gallery.aspect-1-1 .gallery-item{aspect-ratio:1/1}.lcp-gallery.aspect-2-3 .gallery-item{aspect-ratio:2/3}.lcp-gallery.aspect-3-4 .gallery-item{aspect-ratio:3/4}.lcp-gallery.aspect-4-5 .gallery-item{aspect-ratio:4/5}.lcp-gallery.aspect-3-2 .gallery-item{aspect-ratio:3/2}.lcp-gallery.aspect-16-9 .gallery-item{aspect-ratio:16/9}.gallery-item img{-o-object-fit:cover;object-fit:cover}.lcp-gallery.grid{display:grid}.lcp-gallery.grid .gallery-item img{height:100%;-o-object-fit:cover;object-fit:cover}.lcp-gallery.grid{gap:1rem;grid-template-columns:1fr 1fr 1fr 1fr}@media only screen and (min-width:1167px){.lcp-gallery.grid.large-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.large-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.large-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.large-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}}@media only screen and (min-width:768px)and (max-width:1166px){.lcp-gallery.grid.medium-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.medium-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.medium-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.medium-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}}@media only screen and (max-width:767px){.lcp-gallery.grid.small-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.small-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.small-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.small-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}} +@font-face{font-display:block;font-family:lg;font-style:normal;font-weight:400;src:url(fonts/lg.64b800aa.woff2) format("woff2"),url(fonts/lg.747d0385.ttf) format("truetype"),url(fonts/lg.356a0e9c.woff) format("woff"),url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiID4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8bWV0YWRhdGE+Cjxqc29uPgo8IVtDREFUQVsKewoJImZvbnRGYW1pbHkiOiAibGciLAoJIm1ham9yVmVyc2lvbiI6IDIsCgkibWlub3JWZXJzaW9uIjogMCwKCSJmb250VVJMIjogIiIsCgkiY29weXJpZ2h0IjogIiIsCgkibGljZW5zZSI6ICIiLAoJImxpY2Vuc2VVUkwiOiAiIiwKCSJkZXNjcmlwdGlvbiI6ICJGb250IGdlbmVyYXRlZCBieSBJY29Nb29uLiIsCgkidmVyc2lvbiI6ICJWZXJzaW9uIDIuMCIsCgkiZm9udElkIjogImxnIiwKCSJwc05hbWUiOiAibGciLAoJInN1YkZhbWlseSI6ICJSZWd1bGFyIiwKCSJmdWxsT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jY2Ny00Mi42NjcgNDIuNjY3ek0xNTguMTY1IDEyLjUwMmwyMjUuODM1IDIyNS44MzV2LTE1My4wMDNjMC0yMy41NTIgMTkuMTE1LTQyLjY2NyA0Mi42NjctNDIuNjY3czQyLjY2NyAxOS4xMTUgNDIuNjY3IDQyLjY2N3YyNTZjMCA1LjgwMy0xLjE1MiAxMS4zMDctMy4yNDMgMTYuMzQxcy01LjE2MyA5LjcyOC05LjIxNiAxMy43ODFjLTAuMDQzIDAuMDQzLTAuMDQzIDAuMDQzLTAuMDg1IDAuMDg1LTQuMDk2IDQuMDUzLTguNzg5IDcuMTI1LTEzLjc4MSA5LjIxNi01LjAzNSAyLjA5MS0xMC41MzkgMy4yNDMtMTYuMzQxIDMuMjQzaC0yNTZjLTIzLjU1MiAwLTQyLjY2Ny0xOS4xMTUtNDIuNjY3LTQyLjY2N3MxOS4xMTUtNDIuNjY3IDQyLjY2Ny00Mi42NjdoMTUzLjAwM2wtMjI1LjgzNS0yMjUuODM1Yy0xNi42ODMtMTYuNjgzLTE2LjY4My00My42OTEgMC02MC4zMzFzNDMuNjkxLTE2LjY4MyA2MC4zMzEgMHoiIC8+CjwvZm9udD48L2RlZnM+PC9zdmc+#lg) format("svg")}.lg-icon{font-family:lg!important;speak:never;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.lg-container{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.lg-next,.lg-prev{background-color:rgba(0,0,0,.45);border:none;border-radius:2px;color:#999;cursor:pointer;display:block;font-size:22px;margin-top:-10px;outline:none;padding:8px 10px 9px;position:absolute;top:50%;z-index:1084}.lg-next.disabled,.lg-prev.disabled{cursor:default;opacity:0!important}.lg-next:hover:not(.disabled),.lg-prev:hover:not(.disabled){color:#fff}.lg-single-item .lg-next,.lg-single-item .lg-prev{display:none}.lg-next{left:20px}.lg-next:before{content:"\e095"}.lg-prev{right:20px}.lg-prev:after{content:"\e094"}@keyframes lg-right-end{0%{right:0}50%{right:-30px}to{right:0}}@keyframes lg-left-end{0%{right:0}50%{right:30px}to{right:0}}.lg-outer.lg-right-end .lg-object{animation:lg-right-end .3s;position:relative}.lg-outer.lg-left-end .lg-object{animation:lg-left-end .3s;position:relative}.lg-toolbar{right:0;position:absolute;top:0;width:100%;z-index:1082}.lg-media-overlap .lg-toolbar{background-image:linear-gradient(0deg,transparent,rgba(0,0,0,.4))}.lg-toolbar .lg-icon{background:none;border:none;box-shadow:none;color:#999;cursor:pointer;float:left;font-size:24px;height:47px;line-height:27px;outline:medium none;padding:10px 0;text-align:center;text-decoration:none!important;transition:color .2s linear;width:50px;will-change:color}.lg-toolbar .lg-icon.lg-icon-18{font-size:18px}.lg-toolbar .lg-icon:hover{color:#fff}.lg-toolbar .lg-close:after{content:"\e070"}.lg-toolbar .lg-maximize{font-size:22px}.lg-toolbar .lg-maximize:after{content:"\e90a"}.lg-toolbar .lg-download:after{content:"\e0f2"}.lg-sub-html{color:#eee;font-size:16px;opacity:0;padding:10px 40px;text-align:center;transition:opacity .2s ease-out 0s;z-index:1080}.lg-sub-html h4{font-size:13px;font-weight:700;margin:0}.lg-sub-html p{font-size:12px;margin:5px 0 0}.lg-sub-html a{color:inherit}.lg-sub-html a:hover{text-decoration:underline}.lg-media-overlap .lg-sub-html{background-image:linear-gradient(-180deg,transparent,rgba(0,0,0,.6))}.lg-item .lg-sub-html{bottom:0;right:0;position:absolute;left:0}.lg-error-msg{color:#999;font-size:14px}.lg-counter{color:#999;display:inline-block;font-size:16px;height:47px;padding-right:20px;padding-top:12px;vertical-align:middle}.lg-closing .lg-next,.lg-closing .lg-prev,.lg-closing .lg-sub-html,.lg-closing .lg-toolbar{opacity:0;transition:transform .08 cubic-bezier(0,0,.25,1) 0s,opacity .08 cubic-bezier(0,0,.25,1) 0s,color .08 linear}body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable) .lg-img-wrap,body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable) .lg-media-cont,body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable) .lg-video-cont{opacity:0;transform:scale3d(.5,.5,.5);transition:transform .25s cubic-bezier(0,0,.25,1) 0s,opacity .25s cubic-bezier(0,0,.25,1)!important;will-change:transform,opacity}body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable).lg-complete .lg-img-wrap,body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable).lg-complete .lg-media-cont,body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable).lg-complete .lg-video-cont{opacity:1;transform:scaleX(1)}.lg-icon:focus-visible{border-radius:3px;color:#fff;outline:1px dashed hsla(0,0%,100%,.6)}.lg-toolbar .lg-icon:focus-visible{border-radius:8px;outline-offset:-5px}.lg-group:after{clear:both;content:"";display:table}.lg-container{outline:none}.lg-on{scroll-behavior:unset}.lg-overlay-open{overflow:hidden}.lg-hide-sub-html .lg-sub-html,.lg-next,.lg-pager-outer,.lg-prev,.lg-toolbar{opacity:0;transition:transform .25s cubic-bezier(0,0,.25,1) 0s,opacity .25s cubic-bezier(0,0,.25,1) 0s;will-change:transform,opacity}.lg-show-in .lg-next,.lg-show-in .lg-pager-outer,.lg-show-in .lg-prev,.lg-show-in .lg-toolbar,.lg-show-in.lg-hide-sub-html .lg-sub-html{opacity:1}.lg-show-in .lg-hide-items .lg-prev{opacity:0;transform:translate3d(10px,0,0)}.lg-show-in .lg-hide-items .lg-next{opacity:0;transform:translate3d(-10px,0,0)}.lg-show-in .lg-hide-items .lg-toolbar{opacity:0;transform:translate3d(0,-10px,0)}.lg-show-in .lg-hide-items.lg-hide-sub-html .lg-sub-html{opacity:0;transform:translate3d(0,20px,0)}.lg-outer{height:100%;right:0;opacity:.001;outline:none;overflow:hidden;position:fixed;text-align:right;top:0;transition:opacity .15s ease 0s;width:100%;will-change:auto;z-index:1050}.lg-outer *{box-sizing:border-box}.lg-outer.lg-visible,.lg-outer.lg-zoom-from-image{opacity:1}.lg-outer.lg-css3 .lg-item:not(.lg-start-end-progress).lg-current,.lg-outer.lg-css3 .lg-item:not(.lg-start-end-progress).lg-next-slide,.lg-outer.lg-css3 .lg-item:not(.lg-start-end-progress).lg-prev-slide{transition-duration:inherit!important;transition-timing-function:inherit!important}.lg-outer.lg-css3.lg-dragging .lg-item.lg-current,.lg-outer.lg-css3.lg-dragging .lg-item.lg-next-slide,.lg-outer.lg-css3.lg-dragging .lg-item.lg-prev-slide{opacity:1;transition-duration:0s!important}.lg-outer.lg-grab img.lg-object{cursor:-o-grab;cursor:-ms-grab;cursor:grab}.lg-outer.lg-grabbing img.lg-object{cursor:move;cursor:-o-grabbing;cursor:-ms-grabbing;cursor:grabbing}.lg-outer .lg-content{bottom:0;right:0;position:absolute;left:0;top:0}.lg-outer .lg-inner{bottom:0;right:0;position:absolute;top:0;transition:opacity 0s;white-space:nowrap;width:100%}.lg-outer .lg-item{display:none!important}.lg-outer .lg-item:not(.lg-start-end-progress){background:url(images/loading.fcba57cd.gif) no-repeat scroll 50% transparent}.lg-outer.lg-css .lg-current,.lg-outer.lg-css3 .lg-current,.lg-outer.lg-css3 .lg-next-slide,.lg-outer.lg-css3 .lg-prev-slide{display:inline-block!important}.lg-outer .lg-img-wrap,.lg-outer .lg-item{display:inline-block;height:100%;position:absolute;text-align:center;width:100%}.lg-outer .lg-img-wrap:before,.lg-outer .lg-item:before{content:"";display:inline-block;height:100%;vertical-align:middle}.lg-outer .lg-img-wrap{bottom:0;font-size:0;right:0;position:absolute;left:0;top:0;white-space:nowrap}.lg-outer .lg-item.lg-complete{background-image:none}.lg-outer .lg-item.lg-current{z-index:1060}.lg-outer .lg-object{display:inline-block;height:auto;max-height:100%;max-width:100%;position:relative;vertical-align:middle;width:auto}.lg-outer .lg-empty-html .lg-sub-html,.lg-outer .lg-empty-html.lg-sub-html{display:none}.lg-outer.lg-hide-download .lg-download{opacity:.75;pointer-events:none}.lg-outer .lg-first-slide .lg-dummy-img{right:50%;position:absolute;top:50%}.lg-outer.lg-components-open:not(.lg-zoomed) .lg-components{opacity:1;transform:translateZ(0)}.lg-outer.lg-components-open:not(.lg-zoomed) .lg-sub-html{opacity:1;transition:opacity .2s ease-out .15s}.lg-outer .lg-media-cont{display:inline-block;position:relative;text-align:center;vertical-align:middle}.lg-outer .lg-media-cont .lg-object{height:100%!important;width:100%!important}.lg-outer .lg-has-iframe .lg-media-cont{-webkit-overflow-scrolling:touch;overflow:auto}.lg-backdrop{background-color:#000;bottom:0;right:0;opacity:0;position:fixed;left:0;top:0;transition:opacity 333ms ease-in 0s;will-change:auto;z-index:1040}.lg-backdrop.in{opacity:1}.lg-css3.lg-no-trans .lg-current,.lg-css3.lg-no-trans .lg-next-slide,.lg-css3.lg-no-trans .lg-prev-slide{transition:none 0s ease 0s!important}.lg-css3.lg-use-css3 .lg-item{backface-visibility:hidden}.lg-css3.lg-fade .lg-item{opacity:0}.lg-css3.lg-fade .lg-item.lg-current{opacity:1}.lg-css3.lg-fade .lg-item.lg-current,.lg-css3.lg-fade .lg-item.lg-next-slide,.lg-css3.lg-fade .lg-item.lg-prev-slide{transition:opacity .1s ease 0s}.lg-css3.lg-use-css3 .lg-item.lg-start-progress{transition:transform 1s cubic-bezier(.175,.885,.32,1.275) 0s}.lg-css3.lg-use-css3 .lg-item.lg-start-end-progress{transition:transform 1s cubic-bezier(0,0,.25,1) 0s}.lg-css3.lg-slide.lg-use-css3 .lg-item{opacity:0}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-prev-slide{transform:translate3d(100%,0,0)}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-next-slide{transform:translate3d(-100%,0,0)}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-current{opacity:1;transform:translateZ(0)}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-current,.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-next-slide,.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-prev-slide{transition:transform 1s cubic-bezier(0,0,.25,1) 0s,opacity .1s ease 0s}.lg-container{display:none}.lg-container.lg-show{display:block}.lg-container.lg-dragging-vertical .lg-backdrop{transition-duration:0s!important}.lg-container.lg-dragging-vertical .lg-css3 .lg-item.lg-current{opacity:1;transition-duration:0s!important}.lg-inline .lg-backdrop,.lg-inline .lg-outer{position:absolute}.lg-inline .lg-backdrop{z-index:1}.lg-inline .lg-outer{z-index:2}.lg-inline .lg-maximize:after{content:"\e909"}.lg-components{bottom:0;right:0;position:absolute;left:0;transform:translate3d(0,100%,0);transition:transform .35s ease-out 0s;will-change:transform;z-index:1080} diff --git a/includes/blocks/lcp-gallery/build/index.asset.php b/includes/blocks/lcp-gallery/build/index.asset.php new file mode 100644 index 0000000..3e6216f --- /dev/null +++ b/includes/blocks/lcp-gallery/build/index.asset.php @@ -0,0 +1 @@ + array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n'), 'version' => 'd3179ce436628bbcba93'); diff --git a/includes/blocks/lcp-gallery/build/index.css b/includes/blocks/lcp-gallery/build/index.css new file mode 100644 index 0000000..80b4d6a --- /dev/null +++ b/includes/blocks/lcp-gallery/build/index.css @@ -0,0 +1,2 @@ +.wp-block-create-block-lcp-gallery{background-color:#21759b;color:#fff;padding:2px}.lcp-gallery.inline{height:500px;position:relative;width:100%}.lcp-gallery.inline .gallery-item{display:none}.lcp-gallery .gallery-item,.lcp-gallery .gallery-item>img{width:100%}.lcp-gallery .gallery-item.last:after{background:red;content:"";height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%}.lg-thumbnail-active-grayscale .lg-thumb-item.active img,.lg-thumbnail-grayscale .lg-thumb-item:not(.active) img{filter:grayscale(100%)}.lg-thumbnail-active-blur .lg-thumb-item.active img,.lg-thumbnail-blur .lg-thumb-item:not(.active) img{filter:blur(1px)}.lg-outer{background:none}.lcp-display-none{display:none}.gallery-item{position:relative}span.gallery-more{color:#fff;font-size:40px;left:50%;position:absolute;top:50%;transform:translate3d(-50%,-50%,0);z-index:10}.lcp-gallery.aspect-1-1 .gallery-item{aspect-ratio:1/1}.lcp-gallery.aspect-2-3 .gallery-item{aspect-ratio:2/3}.lcp-gallery.aspect-3-4 .gallery-item{aspect-ratio:3/4}.lcp-gallery.aspect-4-5 .gallery-item{aspect-ratio:4/5}.lcp-gallery.aspect-3-2 .gallery-item{aspect-ratio:3/2}.lcp-gallery.aspect-16-9 .gallery-item{aspect-ratio:16/9}.gallery-item img{-o-object-fit:cover;object-fit:cover}.lcp-gallery.grid{display:grid}.lcp-gallery.grid .gallery-item img{height:100%;-o-object-fit:cover;object-fit:cover}.lcp-gallery.grid{gap:1rem;grid-template-columns:1fr 1fr 1fr 1fr}@media only screen and (min-width:1167px){.lcp-gallery.grid.large-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.large-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.large-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.large-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}}@media only screen and (min-width:768px)and (max-width:1166px){.lcp-gallery.grid.medium-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.medium-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.medium-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.medium-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}}@media only screen and (max-width:767px){.lcp-gallery.grid.small-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.small-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.small-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.small-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}} +@font-face{font-display:block;font-family:lg;font-style:normal;font-weight:400;src:url(fonts/lg.64b800aa.woff2) format("woff2"),url(fonts/lg.747d0385.ttf) format("truetype"),url(fonts/lg.356a0e9c.woff) format("woff"),url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1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MTYuNjgzLTE2LjY4My00My42OTEgMC02MC4zMzFzNDMuNjkxLTE2LjY4MyA2MC4zMzEgMHoiIC8+CjwvZm9udD48L2RlZnM+PC9zdmc+#lg) format("svg")}.lg-icon{font-family:lg!important;speak:never;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.lg-container{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.lg-next,.lg-prev{background-color:rgba(0,0,0,.45);border:none;border-radius:2px;color:#999;cursor:pointer;display:block;font-size:22px;margin-top:-10px;outline:none;padding:8px 10px 9px;position:absolute;top:50%;z-index:1084}.lg-next.disabled,.lg-prev.disabled{cursor:default;opacity:0!important}.lg-next:hover:not(.disabled),.lg-prev:hover:not(.disabled){color:#fff}.lg-single-item .lg-next,.lg-single-item .lg-prev{display:none}.lg-next{right:20px}.lg-next:before{content:"\e095"}.lg-prev{left:20px}.lg-prev:after{content:"\e094"}@keyframes lg-right-end{0%{left:0}50%{left:-30px}to{left:0}}@keyframes lg-left-end{0%{left:0}50%{left:30px}to{left:0}}.lg-outer.lg-right-end .lg-object{animation:lg-right-end .3s;position:relative}.lg-outer.lg-left-end .lg-object{animation:lg-left-end .3s;position:relative}.lg-toolbar{left:0;position:absolute;top:0;width:100%;z-index:1082}.lg-media-overlap .lg-toolbar{background-image:linear-gradient(0deg,transparent,rgba(0,0,0,.4))}.lg-toolbar .lg-icon{background:none;border:none;box-shadow:none;color:#999;cursor:pointer;float:right;font-size:24px;height:47px;line-height:27px;outline:medium none;padding:10px 0;text-align:center;text-decoration:none!important;transition:color .2s linear;width:50px;will-change:color}.lg-toolbar .lg-icon.lg-icon-18{font-size:18px}.lg-toolbar .lg-icon:hover{color:#fff}.lg-toolbar .lg-close:after{content:"\e070"}.lg-toolbar .lg-maximize{font-size:22px}.lg-toolbar .lg-maximize:after{content:"\e90a"}.lg-toolbar .lg-download:after{content:"\e0f2"}.lg-sub-html{color:#eee;font-size:16px;opacity:0;padding:10px 40px;text-align:center;transition:opacity .2s ease-out 0s;z-index:1080}.lg-sub-html h4{font-size:13px;font-weight:700;margin:0}.lg-sub-html p{font-size:12px;margin:5px 0 0}.lg-sub-html a{color:inherit}.lg-sub-html a:hover{text-decoration:underline}.lg-media-overlap .lg-sub-html{background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.6))}.lg-item .lg-sub-html{bottom:0;left:0;position:absolute;right:0}.lg-error-msg{color:#999;font-size:14px}.lg-counter{color:#999;display:inline-block;font-size:16px;height:47px;padding-left:20px;padding-top:12px;vertical-align:middle}.lg-closing .lg-next,.lg-closing .lg-prev,.lg-closing .lg-sub-html,.lg-closing .lg-toolbar{opacity:0;transition:transform .08 cubic-bezier(0,0,.25,1) 0s,opacity .08 cubic-bezier(0,0,.25,1) 0s,color .08 linear}body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable) .lg-img-wrap,body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable) .lg-media-cont,body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable) .lg-video-cont{opacity:0;transform:scale3d(.5,.5,.5);transition:transform .25s cubic-bezier(0,0,.25,1) 0s,opacity .25s cubic-bezier(0,0,.25,1)!important;will-change:transform,opacity}body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable).lg-complete .lg-img-wrap,body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable).lg-complete .lg-media-cont,body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item:not(.lg-zoomable).lg-complete .lg-video-cont{opacity:1;transform:scaleX(1)}.lg-icon:focus-visible{border-radius:3px;color:#fff;outline:1px dashed hsla(0,0%,100%,.6)}.lg-toolbar .lg-icon:focus-visible{border-radius:8px;outline-offset:-5px}.lg-group:after{clear:both;content:"";display:table}.lg-container{outline:none}.lg-on{scroll-behavior:unset}.lg-overlay-open{overflow:hidden}.lg-hide-sub-html .lg-sub-html,.lg-next,.lg-pager-outer,.lg-prev,.lg-toolbar{opacity:0;transition:transform .25s cubic-bezier(0,0,.25,1) 0s,opacity .25s cubic-bezier(0,0,.25,1) 0s;will-change:transform,opacity}.lg-show-in .lg-next,.lg-show-in .lg-pager-outer,.lg-show-in .lg-prev,.lg-show-in .lg-toolbar,.lg-show-in.lg-hide-sub-html .lg-sub-html{opacity:1}.lg-show-in .lg-hide-items .lg-prev{opacity:0;transform:translate3d(-10px,0,0)}.lg-show-in .lg-hide-items .lg-next{opacity:0;transform:translate3d(10px,0,0)}.lg-show-in .lg-hide-items .lg-toolbar{opacity:0;transform:translate3d(0,-10px,0)}.lg-show-in .lg-hide-items.lg-hide-sub-html .lg-sub-html{opacity:0;transform:translate3d(0,20px,0)}.lg-outer{height:100%;left:0;opacity:.001;outline:none;overflow:hidden;position:fixed;text-align:left;top:0;transition:opacity .15s ease 0s;width:100%;will-change:auto;z-index:1050}.lg-outer *{box-sizing:border-box}.lg-outer.lg-visible,.lg-outer.lg-zoom-from-image{opacity:1}.lg-outer.lg-css3 .lg-item:not(.lg-start-end-progress).lg-current,.lg-outer.lg-css3 .lg-item:not(.lg-start-end-progress).lg-next-slide,.lg-outer.lg-css3 .lg-item:not(.lg-start-end-progress).lg-prev-slide{transition-duration:inherit!important;transition-timing-function:inherit!important}.lg-outer.lg-css3.lg-dragging .lg-item.lg-current,.lg-outer.lg-css3.lg-dragging .lg-item.lg-next-slide,.lg-outer.lg-css3.lg-dragging .lg-item.lg-prev-slide{opacity:1;transition-duration:0s!important}.lg-outer.lg-grab img.lg-object{cursor:-o-grab;cursor:-ms-grab;cursor:grab}.lg-outer.lg-grabbing img.lg-object{cursor:move;cursor:-o-grabbing;cursor:-ms-grabbing;cursor:grabbing}.lg-outer .lg-content{bottom:0;left:0;position:absolute;right:0;top:0}.lg-outer .lg-inner{bottom:0;left:0;position:absolute;top:0;transition:opacity 0s;white-space:nowrap;width:100%}.lg-outer .lg-item{display:none!important}.lg-outer .lg-item:not(.lg-start-end-progress){background:url(images/loading.fcba57cd.gif) no-repeat scroll 50% transparent}.lg-outer.lg-css .lg-current,.lg-outer.lg-css3 .lg-current,.lg-outer.lg-css3 .lg-next-slide,.lg-outer.lg-css3 .lg-prev-slide{display:inline-block!important}.lg-outer .lg-img-wrap,.lg-outer .lg-item{display:inline-block;height:100%;position:absolute;text-align:center;width:100%}.lg-outer .lg-img-wrap:before,.lg-outer .lg-item:before{content:"";display:inline-block;height:100%;vertical-align:middle}.lg-outer .lg-img-wrap{bottom:0;font-size:0;left:0;position:absolute;right:0;top:0;white-space:nowrap}.lg-outer .lg-item.lg-complete{background-image:none}.lg-outer .lg-item.lg-current{z-index:1060}.lg-outer .lg-object{display:inline-block;height:auto;max-height:100%;max-width:100%;position:relative;vertical-align:middle;width:auto}.lg-outer .lg-empty-html .lg-sub-html,.lg-outer .lg-empty-html.lg-sub-html{display:none}.lg-outer.lg-hide-download .lg-download{opacity:.75;pointer-events:none}.lg-outer .lg-first-slide .lg-dummy-img{left:50%;position:absolute;top:50%}.lg-outer.lg-components-open:not(.lg-zoomed) .lg-components{opacity:1;transform:translateZ(0)}.lg-outer.lg-components-open:not(.lg-zoomed) .lg-sub-html{opacity:1;transition:opacity .2s ease-out .15s}.lg-outer .lg-media-cont{display:inline-block;position:relative;text-align:center;vertical-align:middle}.lg-outer .lg-media-cont .lg-object{height:100%!important;width:100%!important}.lg-outer .lg-has-iframe .lg-media-cont{-webkit-overflow-scrolling:touch;overflow:auto}.lg-backdrop{background-color:#000;bottom:0;left:0;opacity:0;position:fixed;right:0;top:0;transition:opacity 333ms ease-in 0s;will-change:auto;z-index:1040}.lg-backdrop.in{opacity:1}.lg-css3.lg-no-trans .lg-current,.lg-css3.lg-no-trans .lg-next-slide,.lg-css3.lg-no-trans .lg-prev-slide{transition:none 0s ease 0s!important}.lg-css3.lg-use-css3 .lg-item{backface-visibility:hidden}.lg-css3.lg-fade .lg-item{opacity:0}.lg-css3.lg-fade .lg-item.lg-current{opacity:1}.lg-css3.lg-fade .lg-item.lg-current,.lg-css3.lg-fade .lg-item.lg-next-slide,.lg-css3.lg-fade .lg-item.lg-prev-slide{transition:opacity .1s ease 0s}.lg-css3.lg-use-css3 .lg-item.lg-start-progress{transition:transform 1s cubic-bezier(.175,.885,.32,1.275) 0s}.lg-css3.lg-use-css3 .lg-item.lg-start-end-progress{transition:transform 1s cubic-bezier(0,0,.25,1) 0s}.lg-css3.lg-slide.lg-use-css3 .lg-item{opacity:0}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-prev-slide{transform:translate3d(-100%,0,0)}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-next-slide{transform:translate3d(100%,0,0)}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-current{opacity:1;transform:translateZ(0)}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-current,.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-next-slide,.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-prev-slide{transition:transform 1s cubic-bezier(0,0,.25,1) 0s,opacity .1s ease 0s}.lg-container{display:none}.lg-container.lg-show{display:block}.lg-container.lg-dragging-vertical .lg-backdrop{transition-duration:0s!important}.lg-container.lg-dragging-vertical .lg-css3 .lg-item.lg-current{opacity:1;transition-duration:0s!important}.lg-inline .lg-backdrop,.lg-inline .lg-outer{position:absolute}.lg-inline .lg-backdrop{z-index:1}.lg-inline .lg-outer{z-index:2}.lg-inline .lg-maximize:after{content:"\e909"}.lg-components{bottom:0;left:0;position:absolute;right:0;transform:translate3d(0,100%,0);transition:transform .35s ease-out 0s;will-change:transform;z-index:1080} diff --git a/includes/blocks/lcp-gallery/build/index.js b/includes/blocks/lcp-gallery/build/index.js new file mode 100644 index 0000000..6e6be5b --- /dev/null +++ b/includes/blocks/lcp-gallery/build/index.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,t={659:()=>{const e=window.wp.blocks,t=window.wp.i18n,i=window.wp.blockEditor,s=window.React,o=window.wp.data,l=window.wp.components,n=JSON.parse('{"UU":"lcp/lcp-gallery","KR":"lcp"}');var r=function(){return r=Object.assign||function(e){for(var t,i=1,s=arguments.length;i";t.append(s)}else t.html(e)}))},y=function(e,t,i,s){void 0===i&&(i=0);var o=m(e).attr("data-lg-size")||s;if(o){var l=o.split(",");if(l[1])for(var n=window.innerWidth,r=0;rn){o=a;break}r===l.length-1&&(o=a)}var g=o.split("-"),d=parseInt(g[0],10),h=parseInt(g[1],10),c=t.width(),u=t.height()-i,p=Math.min(c,d),f=Math.min(u,h),v=Math.min(p/d,f/h);return{width:d*v,height:h*v}}},b=function(e,t,i,s,o){if(o){var l=m(e).find("img").first();if(l.get()){var n=t.get().getBoundingClientRect(),r=n.width,a=t.height()-(i+s),g=l.width(),d=l.height(),h=l.style(),c=(r-g)/2-l.offset().left+(parseFloat(h.paddingLeft)||0)+(parseFloat(h.borderLeft)||0)+m(window).scrollLeft()+n.left,u=(a-d)/2-l.offset().top+(parseFloat(h.paddingTop)||0)+(parseFloat(h.borderTop)||0)+m(window).scrollTop()+i;return"translate3d("+(c*=-1)+"px, "+(u*=-1)+"px, 0) scale3d("+g/o.width+", "+d/o.height+", 1)"}}},C=function(e,t,i,s,o,l){var n="',r="";return l&&(r=("string"==typeof l?JSON.parse(l):l).map((function(e){var t="";return Object.keys(e).forEach((function(i){t+=" "+i+'="'+e[i]+'"'})),""}))),""+r+n},x=0,S=function(){function e(e,t){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!e)return this;if(x++,this.lgId=x,this.el=e,this.LGel=m(e),this.generateSettings(t),this.buildModules(),this.settings.dynamic&&void 0!==this.settings.dynamicEl&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return e.prototype.generateSettings=function(e){if(this.settings=r(r({},c),e),this.settings.isMobile&&"function"==typeof this.settings.isMobile?this.settings.isMobile():/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)){var t=r(r({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=r(r({},this.settings),t)}},e.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var e=this.settings.container;if("function"==typeof e)this.settings.container=e();else if("string"==typeof e){var t=document.querySelector(e);this.settings.container=null!=t?t:document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},e.prototype.init=function(){var e=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger("lgInit",{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout((function(){e.enableDrag(),e.enableSwipe(),e.triggerPosterClick()}),50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},e.prototype.openGalleryOnItemClick=function(){for(var e=this,t=function(t){var s=i.items[t],o=m(s),l=u.generateUUID();o.attr("data-lg-id",l).on("click.lgcustom-item-"+l,(function(i){i.preventDefault();var o=e.settings.index||t;e.openGallery(o,s)}))},i=this,s=0;s '+this.settings.prevHtml+' \n "),".lg-item"!==this.settings.appendSubHtmlTo&&(i='
');var s="";this.settings.allowMediaOverlap&&(s+="lg-media-overlap ");var o=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",l=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",n="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),r=this.settings.closable&&this.settings.showCloseIcon?'':"",a=this.settings.showMaximizeIcon?'':"",g='\n \n ";m(this.settings.container).append(g),document.body!==this.settings.container&&m(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var d=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(d+="lg-grab "),this.outer.addClass(d),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('
'),this.counter(),m(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,(function(){e.refreshOnResize()})),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},e.prototype.refreshOnResize=function(){if(this.lgOpened){var e=this.galleryItems[this.index].__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var t=this.mediaContainerPosition,i=t.top,s=t.bottom;if(this.currentImageSize=y(this.items[this.index],this.outer,i+s,e&&this.settings.videoMaxSize),e&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var o=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",o)}this.LGel.trigger("lgContainerResize")}},e.prototype.resizeVideoSlide=function(e,t){var i=this.getVideoContStyle(t);this.getSlideItem(e).find(".lg-video-cont").attr("style",i)},e.prototype.updateSlides=function(e,t){if(this.index>e.length-1&&(this.index=e.length-1),1===e.length&&(this.index=0),e.length){var i=this.galleryItems[t].src;this.galleryItems=e,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var s=0;this.galleryItems.some((function(e,t){return e.src===i&&(s=t,!0)})),this.currentItemsInDom=this.organizeSlideItems(s,-1),this.loadContent(s,!0),this.getSlideItem(s).addClass("lg-current"),this.index=s,this.updateCurrentCounter(s),this.LGel.trigger(a)}else this.closeGallery()},e.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if("this"===this.settings.selector)this.items.push(this.el);else if(this.settings.selector)if("string"==typeof this.settings.selector)if(this.settings.selectWithin){var e=m(this.settings.selectWithin);this.items=e.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return t=this.items,i=this.settings.extraProps,s=this.settings.getCaptionFromTitleOrAlt,o=this.settings.exThumbImage,l=[],n=function(){for(var e=0,t=0,i=arguments.length;t-1&&(g=a),g&&(t[g]=r.value)}}var d=m(e),h=d.find("img").first().attr("alt"),c=d.attr("title"),u=o?d.attr(o):d.find("img").first().attr("src");t.thumb=u,s&&!t.subHtml&&(t.subHtml=c||h||""),t.alt=h||c||"",l.push(t)})),console.log(l,"dynamicElements"),l;var t,i,s,o,l,n},e.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},e.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(m("body").style().paddingRight);var e=document.documentElement.getBoundingClientRect(),t=window.innerWidth-e.width;m(document.body).css("padding-right",t+this.bodyPaddingRight+"px"),m(document.body).addClass("lg-overlay-open")}},e.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(m(document.body).css("padding-right",this.bodyPaddingRight+"px"),m(document.body).removeClass("lg-overlay-open"))},e.prototype.openGallery=function(e,t){var i=this;if(void 0===e&&(e=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var s=this.getItemsToBeInsertedToDom(e,e);this.currentItemsInDom=s;var o="";s.forEach((function(e){o=o+'
'})),this.$inner.append(o),this.addHtml(e);var l="";this.mediaContainerPosition=this.getMediaContainerPosition();var n=this.mediaContainerPosition,r=n.top,a=n.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(r,a);var g=this.galleryItems[e].__slideVideoInfo;this.zoomFromOrigin&&t&&(this.currentImageSize=y(t,this.outer,r+a,g&&this.settings.videoMaxSize),l=b(t,this.outer,r,a,this.currentImageSize)),this.zoomFromOrigin&&l||(this.outer.addClass(this.settings.startClass),this.getSlideItem(e).removeClass("lg-complete"));var d=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout((function(){i.outer.addClass("lg-components-open")}),d),this.index=e,this.LGel.trigger("lgBeforeOpen"),this.getSlideItem(e).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=m(window).scrollTop(),setTimeout((function(){if(i.zoomFromOrigin&&l){var t=i.getSlideItem(e);t.css("transform",l),setTimeout((function(){t.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",i.settings.startAnimationDuration+"ms"),i.outer.addClass("lg-zoom-from-image")})),setTimeout((function(){t.css("transform","translate3d(0, 0, 0)")}),100)}setTimeout((function(){i.$backdrop.addClass("in"),i.$container.addClass("lg-show-in")}),10),setTimeout((function(){i.settings.trapFocus&&document.body===i.settings.container&&i.trapFocus()}),i.settings.backdropDuration+50),i.zoomFromOrigin&&l||setTimeout((function(){i.outer.addClass("lg-visible")}),i.settings.backdropDuration),i.slide(e,!1,!1,!1),i.LGel.trigger("lgAfterOpen")})),document.body===this.settings.container&&m("html").addClass("lg-on")}},e.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var e=this.$toolbar.get().clientHeight||0,t=this.outer.find(".lg-components .lg-sub-html").get(),i=this.settings.defaultCaptionHeight||t&&t.clientHeight||0,s=this.outer.find(".lg-thumb-outer").get();return{top:e,bottom:(s?s.clientHeight:0)+i}},e.prototype.setMediaContainerPosition=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.$content.css("top",e+"px").css("bottom",t+"px")},e.prototype.hideBars=function(){var e=this;setTimeout((function(){e.outer.removeClass("lg-hide-items"),e.settings.hideBarsDelay>0&&(e.outer.on("mousemove.lg click.lg touchstart.lg",(function(){e.outer.removeClass("lg-hide-items"),clearTimeout(e.hideBarTimeout),e.hideBarTimeout=setTimeout((function(){e.outer.addClass("lg-hide-items")}),e.settings.hideBarsDelay)})),e.outer.trigger("mousemove.lg"))}),this.settings.showBarsAfter)},e.prototype.initPictureFill=function(e){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[e.get()]})}catch(e){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},e.prototype.counter=function(){if(this.settings.counter){var e='
\n '+(this.index+1)+' /\n '+this.galleryItems.length+"
";this.outer.find(this.settings.appendCounterTo).append(e)}},e.prototype.addHtml=function(e){var t,i;if(this.galleryItems[e].subHtmlUrl?i=this.galleryItems[e].subHtmlUrl:t=this.galleryItems[e].subHtml,!i)if(t){var s=t.substring(0,1);"."!==s&&"#"!==s||(t=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?m(this.items).eq(e).find(t).first().html():m(t).first().html())}else t="";if(".lg-item"!==this.settings.appendSubHtmlTo)i?v(i,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(t);else{var o=m(this.getSlideItemId(e));i?v(i,o,"append"):o.append('
'+t+"
")}null!=t&&(""===t?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger("lgAfterAppendSubHtml",{index:e})},e.prototype.preload=function(e){for(var t=1;t<=this.settings.preload&&!(t>=this.galleryItems.length-e);t++)this.loadContent(e+t,!1);for(var i=1;i<=this.settings.preload&&!(e-i<0);i++)this.loadContent(e-i,!1)},e.prototype.getDummyImgStyles=function(e){return e?"width:"+e.width+"px;\n margin-left: -"+e.width/2+"px;\n margin-top: -"+e.height/2+"px;\n height:"+e.height+"px":""},e.prototype.getVideoContStyle=function(e){return e?"width:"+e.width+"px;\n height:"+e.height+"px":""},e.prototype.getDummyImageContent=function(e,t,i){var s;if(this.settings.dynamic||(s=m(this.items).eq(t)),s){var o;if(!(o=this.settings.exThumbImage?s.attr(this.settings.exThumbImage):s.find("img").first().attr("src")))return"";var l=this.getDummyImgStyles(this.currentImageSize),n=document.createElement("img");return n.alt=i||"",n.src=o,n.className="lg-dummy-img",n.style.cssText=l,e.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),n}return""},e.prototype.setImgMarkup=function(e,t,i){var s,o=this.galleryItems[i],l=o.alt,n=o.srcset,r=o.sizes,a=o.sources,g=l?'alt="'+l+'"':"";s=this.isFirstSlideWithZoomAnimation()?this.getDummyImageContent(t,i,g):C(i,e,g,n,r,a);var d=document.createElement("picture");d.className="lg-img-wrap",m(d).append(s),t.prepend(d)},e.prototype.onSlideObjectLoad=function(e,t,i,s){var o,l=e.find(".lg-object").first();(o=l.get())&&o.complete&&0!==o.naturalWidth||t?i():(l.on("load.lg error.lg",(function(){i&&i()})),l.on("error.lg",(function(){s&&s()})))},e.prototype.onLgObjectLoad=function(e,t,i,s,o,l){var n=this;this.onSlideObjectLoad(e,l,(function(){n.triggerSlideItemLoad(e,t,i,s,o)}),(function(){e.addClass("lg-complete lg-complete_"),e.html(''+n.settings.strings.mediaLoadingFailed+"")}))},e.prototype.triggerSlideItemLoad=function(e,t,i,s,o){var l=this,n=this.galleryItems[t],r=o&&"video"===this.getSlideType(n)&&!n.poster?s:0;setTimeout((function(){e.addClass("lg-complete lg-complete_"),l.LGel.trigger("lgSlideItemLoad",{index:t,delay:i||0,isFirstSlide:o})}),r)},e.prototype.isFirstSlideWithZoomAnimation=function(){return!(this.lGalleryOn||!this.zoomFromOrigin||!this.currentImageSize)},e.prototype.addSlideVideoInfo=function(e){var t=this;e.forEach((function(e,i){e.__slideVideoInfo=function(e,t,i){if(!e)return t?{html5:!0}:void console.error("lightGallery :- data-src is not provided on slide item "+(i+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");var s=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),o=e.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),l=e.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);return s?{youtube:s}:o?{vimeo:o}:l?{wistia:l}:void 0}(e.src,!!e.video,i),e.__slideVideoInfo&&t.settings.loadYouTubePoster&&!e.poster&&e.__slideVideoInfo.youtube&&(e.poster="//img.youtube.com/vi/"+e.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")}))},e.prototype.loadContent=function(e,t){var i=this,s=this.galleryItems[e],o=m(this.getSlideItemId(e)),l=s.poster,n=s.srcset,r=s.sizes,a=s.sources,g=s.src,d=s.video,h=d&&"string"==typeof d?JSON.parse(d):d;if(s.responsive){var c=s.responsive.split(",");g=function(e){for(var t=[],i=[],s="",o=0;on){s=i[r];break}return s}(c)||g}var u=s.__slideVideoInfo,p="",f=!!s.iframe,v=!this.lGalleryOn,b=0;if(v&&(b=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),!o.hasClass("lg-loaded")){if(u){var x=this.mediaContainerPosition,S=x.top,w=x.bottom,I=y(this.items[e],this.outer,S+w,u&&this.settings.videoMaxSize);p=this.getVideoContStyle(I)}if(f){var _=function(e,t,i,s,o,l){return'
\n \n
'}(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,g,s.iframeTitle);o.prepend(_)}else if(l){var z="";v&&this.zoomFromOrigin&&this.currentImageSize&&(z=this.getDummyImageContent(o,e,"")),_=function(e,t,i,s,o){var l;l=o&&o.youtube?"lg-has-youtube":o&&o.vimeo?"lg-has-vimeo":"lg-has-html5";var n=t;return"string"!=typeof t&&(n=t.outerHTML),'
\n
\n \n '+s+'\n \n \n \n \n \n \n \n
\n '+n+'\n \n
'}(l,z||"",p,this.settings.strings.playVideo,u),o.prepend(_)}else if(u)_='
',o.prepend(_);else if(this.setImgMarkup(g,o,e),n||a){var T=o.find(".lg-object");this.initPictureFill(T)}(l||u)&&this.LGel.trigger("lgHasVideo",{index:e,src:g,html5Video:h,hasPoster:!!l}),this.LGel.trigger("lgAfterAppendSlide",{index:e}),this.lGalleryOn&&".lg-item"===this.settings.appendSubHtmlTo&&this.addHtml(e)}var L=0;b&&!m(document.body).hasClass("lg-from-hash")&&(L=b),this.isFirstSlideWithZoomAnimation()&&(setTimeout((function(){o.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")}),this.settings.startAnimationDuration+100),o.hasClass("lg-loaded")||setTimeout((function(){if("image"===i.getSlideType(s)){var t=s.alt,d=t?'alt="'+t+'"':"";if(o.find(".lg-img-wrap").append(C(e,g,d,n,r,s.sources)),n||a){var h=o.find(".lg-object");i.initPictureFill(h)}}("image"===i.getSlideType(s)||"video"===i.getSlideType(s)&&l)&&(i.onLgObjectLoad(o,e,b,L,!0,!1),i.onSlideObjectLoad(o,!(!u||!u.html5||l),(function(){i.loadContentOnFirstSlideLoad(e,o,L)}),(function(){i.loadContentOnFirstSlideLoad(e,o,L)})))}),this.settings.startAnimationDuration+100)),o.addClass("lg-loaded"),this.isFirstSlideWithZoomAnimation()&&("video"!==this.getSlideType(s)||l)||this.onLgObjectLoad(o,e,b,L,v,!(!u||!u.html5||l)),this.zoomFromOrigin&&this.currentImageSize||!o.hasClass("lg-complete_")||this.lGalleryOn||setTimeout((function(){o.addClass("lg-complete")}),this.settings.backdropDuration),this.lGalleryOn=!0,!0===t&&(o.hasClass("lg-complete_")?this.preload(e):o.find(".lg-object").first().on("load.lg error.lg",(function(){i.preload(e)})))},e.prototype.loadContentOnFirstSlideLoad=function(e,t,i){var s=this;setTimeout((function(){t.find(".lg-dummy-img").remove(),t.removeClass("lg-first-slide"),s.outer.removeClass("lg-first-slide-loading"),s.isDummyImageRemoved=!0,s.preload(e)}),i+300)},e.prototype.getItemsToBeInsertedToDom=function(e,t,i){var s=this;void 0===i&&(i=0);var o=[],l=Math.max(i,3);l=Math.min(l,this.galleryItems.length);var n="lg-item-"+this.lgId+"-"+t;if(this.galleryItems.length<=3)return this.galleryItems.forEach((function(e,t){o.push("lg-item-"+s.lgId+"-"+t)})),o;if(e<(this.galleryItems.length-1)/2){for(var r=e;r>e-l/2&&r>=0;r--)o.push("lg-item-"+this.lgId+"-"+r);var a=o.length;for(r=0;r
')})),this.currentItemsInDom.forEach((function(e){-1===s.indexOf(e)&&m("#"+e).remove()})),s},e.prototype.getPreviousSlideIndex=function(){var e=0;try{var t=this.outer.find(".lg-current").first().attr("id");e=parseInt(t.split("-")[3])||0}catch(t){e=0}return e},e.prototype.setDownloadValue=function(e){if(this.settings.download){var t=this.galleryItems[e];if(!1===t.downloadUrl||"false"===t.downloadUrl)this.outer.addClass("lg-hide-download");else{var i=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),i.attr("href",t.downloadUrl||t.src),t.download&&i.attr("download",t.download)}}},e.prototype.makeSlideAnimation=function(e,t,i){var s=this;this.lGalleryOn&&i.addClass("lg-slide-progress"),setTimeout((function(){s.outer.addClass("lg-no-trans"),s.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),"prev"===e?(t.addClass("lg-prev-slide"),i.addClass("lg-next-slide")):(t.addClass("lg-next-slide"),i.addClass("lg-prev-slide")),setTimeout((function(){s.outer.find(".lg-item").removeClass("lg-current"),t.addClass("lg-current"),s.outer.removeClass("lg-no-trans")}),50)}),this.lGalleryOn?this.settings.slideDelay:0)},e.prototype.slide=function(e,t,i,s){var o=this,l=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(e,l),!this.lGalleryOn||l!==e){var n=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(e);var r=this.getSlideItem(e),a=this.getSlideItem(l),g=this.galleryItems[e],d=g.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(g)),this.setDownloadValue(e),d){var h=this.mediaContainerPosition,c=h.top,u=h.bottom,m=y(this.items[e],this.outer,c+u,d&&this.settings.videoMaxSize);this.resizeVideoSlide(e,m)}if(this.LGel.trigger("lgBeforeSlide",{prevIndex:l,index:e,fromTouch:!!t,fromThumb:!!i}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(e),s||(el&&(s="next")),t){this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var p=void 0,f=void 0;n>2?(p=e-1,f=e+1,(0===e&&l===n-1||e===n-1&&0===l)&&(f=0,p=n-1)):(p=0,f=1),"prev"===s?this.getSlideItem(f).addClass("lg-next-slide"):this.getSlideItem(p).addClass("lg-prev-slide"),r.addClass("lg-current")}else this.makeSlideAnimation(s,r,a);this.lGalleryOn?setTimeout((function(){o.loadContent(e,!0),".lg-item"!==o.settings.appendSubHtmlTo&&o.addHtml(e)}),this.settings.speed+50+(t?0:this.settings.slideDelay)):this.loadContent(e,!0),setTimeout((function(){o.lgBusy=!1,a.removeClass("lg-slide-progress"),o.LGel.trigger("lgAfterSlide",{prevIndex:l,index:e,fromTouch:t,fromThumb:i})}),(this.lGalleryOn?this.settings.speed+100:100)+(t?0:this.settings.slideDelay))}this.index=e}},e.prototype.updateCurrentCounter=function(e){this.getElementById("lg-counter-current").html(e+1+"")},e.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},e.prototype.getSlideType=function(e){return e.__slideVideoInfo?"video":e.iframe?"iframe":"image"},e.prototype.touchMove=function(e,t,i){var s=t.pageX-e.pageX,o=t.pageY-e.pageY,l=!1;if(this.swipeDirection?l=!0:Math.abs(s)>15?(this.swipeDirection="horizontal",l=!0):Math.abs(o)>15&&(this.swipeDirection="vertical",l=!0),l){var n=this.getSlideItem(this.index);if("horizontal"===this.swipeDirection){null==i||i.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(n,s,0);var r=n.get().offsetWidth,a=15*r/100-Math.abs(10*s/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-r+s-a,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),r+s+a,0)}else if("vertical"===this.swipeDirection&&this.settings.swipeToClose){null==i||i.preventDefault(),this.$container.addClass("lg-dragging-vertical");var g=1-Math.abs(o)/window.innerHeight;this.$backdrop.css("opacity",g);var d=1-Math.abs(o)/(2*window.innerWidth);this.setTranslate(n,0,o,d,d),Math.abs(o)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},e.prototype.touchEnd=function(e,t,i){var s,o=this;"lg-slide"!==this.settings.mode&&this.outer.addClass("lg-slide"),setTimeout((function(){o.$container.removeClass("lg-dragging-vertical"),o.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var l=!0;if("horizontal"===o.swipeDirection){s=e.pageX-t.pageX;var n=Math.abs(e.pageX-t.pageX);s<0&&n>o.settings.swipeThreshold?(o.goToNextSlide(!0),l=!1):s>0&&n>o.settings.swipeThreshold&&(o.goToPrevSlide(!0),l=!1)}else if("vertical"===o.swipeDirection){if(s=Math.abs(e.pageY-t.pageY),o.settings.closable&&o.settings.swipeToClose&&s>100)return void o.closeGallery();o.$backdrop.css("opacity",1)}if(o.outer.find(".lg-item").removeAttr("style"),l&&Math.abs(e.pageX-t.pageX)<5){var r=m(i.target);o.isPosterElement(r)&&o.LGel.trigger(g)}o.swipeDirection=void 0})),setTimeout((function(){o.outer.hasClass("lg-dragging")||"lg-slide"===o.settings.mode||o.outer.removeClass("lg-slide")}),this.settings.speed+100)},e.prototype.enableSwipe=function(){var e=this,t={},i={},s=!1,o=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",(function(i){e.dragOrSwipeEnabled=!0;var s=e.getSlideItem(e.index);!m(i.target).hasClass("lg-item")&&!s.get().contains(i.target)||e.outer.hasClass("lg-zoomed")||e.lgBusy||1!==i.touches.length||(o=!0,e.touchAction="swipe",e.manageSwipeClass(),t={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY})})),this.$inner.on("touchmove.lg",(function(l){o&&"swipe"===e.touchAction&&1===l.touches.length&&(i={pageX:l.touches[0].pageX,pageY:l.touches[0].pageY},e.touchMove(t,i,l),s=!0)})),this.$inner.on("touchend.lg",(function(l){if("swipe"===e.touchAction){if(s)s=!1,e.touchEnd(i,t,l);else if(o){var n=m(l.target);e.isPosterElement(n)&&e.LGel.trigger(g)}e.touchAction=void 0,o=!1}})))},e.prototype.enableDrag=function(){var e=this,t={},i={},s=!1,o=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",(function(i){e.dragOrSwipeEnabled=!0;var o=e.getSlideItem(e.index);(m(i.target).hasClass("lg-item")||o.get().contains(i.target))&&(e.outer.hasClass("lg-zoomed")||e.lgBusy||(i.preventDefault(),e.lgBusy||(e.manageSwipeClass(),t={pageX:i.pageX,pageY:i.pageY},s=!0,e.outer.get().scrollLeft+=1,e.outer.get().scrollLeft-=1,e.outer.removeClass("lg-grab").addClass("lg-grabbing"),e.LGel.trigger("lgDragStart"))))})),m(window).on("mousemove.lg.global"+this.lgId,(function(l){s&&e.lgOpened&&(o=!0,i={pageX:l.pageX,pageY:l.pageY},e.touchMove(t,i),e.LGel.trigger("lgDragMove"))})),m(window).on("mouseup.lg.global"+this.lgId,(function(l){if(e.lgOpened){var n=m(l.target);o?(o=!1,e.touchEnd(i,t,l),e.LGel.trigger("lgDragEnd")):e.isPosterElement(n)&&e.LGel.trigger(g),s&&(s=!1,e.outer.removeClass("lg-grabbing").addClass("lg-grab"))}})))},e.prototype.triggerPosterClick=function(){var e=this;this.$inner.on("click.lg",(function(t){!e.dragOrSwipeEnabled&&e.isPosterElement(m(t.target))&&e.LGel.trigger(g)}))},e.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(0===this.index?t=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(e=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),t>-1&&this.getSlideItem(t).addClass("lg-prev-slide"),this.getSlideItem(e).addClass("lg-next-slide")},e.prototype.goToNextSlide=function(e){var t=this,i=this.settings.loop;e&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index+10?(this.index--,this.LGel.trigger(h,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):i?(this.index=this.galleryItems.length-1,this.LGel.trigger(h,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-left-end"),setTimeout((function(){t.outer.removeClass("lg-left-end")}),400)))},e.prototype.keyPress=function(){var e=this;m(window).on("keydown.lg.global"+this.lgId,(function(t){e.lgOpened&&!0===e.settings.escKey&&27===t.keyCode&&(t.preventDefault(),e.settings.allowMediaOverlap&&e.outer.hasClass("lg-can-toggle")&&e.outer.hasClass("lg-components-open")?e.outer.removeClass("lg-components-open"):e.closeGallery()),e.lgOpened&&e.galleryItems.length>1&&(37===t.keyCode&&(t.preventDefault(),e.goToPrevSlide()),39===t.keyCode&&(t.preventDefault(),e.goToNextSlide()))}))},e.prototype.arrow=function(){var e=this;this.getElementById("lg-prev").on("click.lg",(function(){e.goToPrevSlide()})),this.getElementById("lg-next").on("click.lg",(function(){e.goToNextSlide()}))},e.prototype.arrowDisable=function(e){if(!this.settings.loop&&this.settings.hideControlOnEnd){var t=this.getElementById("lg-prev"),i=this.getElementById("lg-next");e+1===this.galleryItems.length?i.attr("disabled","disabled").addClass("disabled"):i.removeAttr("disabled").removeClass("disabled"),0===e?t.attr("disabled","disabled").addClass("disabled"):t.removeAttr("disabled").removeClass("disabled")}},e.prototype.setTranslate=function(e,t,i,s,o){void 0===s&&(s=1),void 0===o&&(o=1),e.css("transform","translate3d("+t+"px, "+i+"px, 0px) scale3d("+s+", "+o+", 1)")},e.prototype.mousewheel=function(){var e=this,t=0;this.outer.on("wheel.lg",(function(i){if(i.deltaY&&!(e.galleryItems.length<2)){i.preventDefault();var s=(new Date).getTime();s-t<1e3||(t=s,i.deltaY>0?e.goToNextSlide():i.deltaY<0&&e.goToPrevSlide())}}))},e.prototype.isSlideElement=function(e){return e.hasClass("lg-outer")||e.hasClass("lg-item")||e.hasClass("lg-img-wrap")||e.hasClass("lg-img-rotate")},e.prototype.isPosterElement=function(e){var t=this.getSlideItem(this.index).find(".lg-video-play-button").get();return e.hasClass("lg-video-poster")||e.hasClass("lg-video-play-button")||t&&t.contains(e.get())},e.prototype.toggleMaximize=function(){var e=this;this.getElementById("lg-maximize").on("click.lg",(function(){e.$container.toggleClass("lg-inline"),e.refreshOnResize()}))},e.prototype.invalidateItems=function(){for(var e=0;e':"";this.settings.actualSize&&(e+=''),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(e)},e.prototype.enableZoom=function(e){var t=this,i=this.settings.enableZoomAfter+e.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&e.detail.delay?i=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout((function(){t.isImageSlide(t.core.index)&&(t.core.getSlideItem(e.detail.index).addClass("lg-zoomable"),e.detail.index===t.core.index&&t.setZoomEssentials())}),i+30)},e.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on("lgSlideItemLoad.zoom",this.enableZoom.bind(this))},e.prototype.getDragCords=function(e){return{x:e.pageX,y:e.pageY}},e.prototype.getSwipeCords=function(e){return{x:e.touches[0].pageX,y:e.touches[0].pageY}},e.prototype.getDragAllowedAxises=function(e,t){if(!this.containerRect)return{allowX:!1,allowY:!1};var i=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),s=0,o=0,l=i.getBoundingClientRect();e?(s=i.offsetHeight*e,o=i.offsetWidth*e):t?(s=l.height+t*l.height,o=l.width+t*l.width):(s=l.height,o=l.width);var n=s>this.containerRect.height;return{allowX:o>this.containerRect.width,allowY:n}},e.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},e.prototype.zoomImage=function(e,t,i,s){if(!(Math.abs(t)<=0)){var o,l,n=this.containerRect.width/2+this.containerRect.left,r=this.containerRect.height/2+this.containerRect.top+this.scrollTop;1===e&&(this.positionChanged=!1);var a=this.getDragAllowedAxises(0,t),g=a.allowY,d=a.allowX;this.positionChanged&&(o=this.left/(this.scale-t),l=this.top/(this.scale-t),this.pageX=n-o,this.pageY=r-l,this.positionChanged=!1);var h,c,u=this.getPossibleSwipeDragCords(t),_x=n-this.pageX,m=r-this.pageY;if(e-t>1){var p=(e-t)/Math.abs(t);h=(_x=(t<0?-_x:_x)+this.left*(p+(t<0?-1:1)))/p,c=(m=(t<0?-m:m)+this.top*(p+(t<0?-1:1)))/p}else h=_x*(p=(e-t)*t),c=m*p;i&&(d?this.isBeyondPossibleLeft(h,u.minX)?h=u.minX:this.isBeyondPossibleRight(h,u.maxX)&&(h=u.maxX):e>1&&(hu.maxX&&(h=u.maxX)),g?this.isBeyondPossibleTop(c,u.minY)?c=u.minY:this.isBeyondPossibleBottom(c,u.maxY)&&(c=u.maxY):e>1&&(cu.maxY&&(c=u.maxY))),this.setZoomStyles({x:h,y:c,scale:e}),this.left=h,this.top=c,s&&this.setZoomImageSize()}},e.prototype.resetImageTranslate=function(e){if(this.isImageSlide(e)){var t=this.core.getSlideItem(e).find(".lg-image").first();this.imageReset=!1,t.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),t.css("width","auto").css("height","auto"),setTimeout((function(){t.removeClass("no-transition")}),10)}},e.prototype.setZoomImageSize=function(){var e=this,t=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout((function(){var i=e.getCurrentImageActualSizeScale();e.scale>=i&&(t.addClass("no-transition"),e.imageReset=!0)}),500),setTimeout((function(){var i=e.getCurrentImageActualSizeScale();if(e.scale>=i){var s=e.getDragAllowedAxises(e.scale);t.css("width",t.get().naturalWidth+"px").css("height",t.get().naturalHeight+"px"),e.core.outer.addClass("lg-actual-size"),s.allowX&&s.allowY?t.addClass("reset-transition"):s.allowX&&!s.allowY?t.addClass("reset-transition-x"):!s.allowX&&s.allowY&&t.addClass("reset-transition-y")}}),550)},e.prototype.setZoomStyles=function(e){var t=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),i=this.core.getSlideItem(this.core.index).find(".lg-image").first(),s=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=e.scale,i.css("transform","scale3d("+e.scale+", "+e.scale+", 1)"),s.css("transform","scale3d("+e.scale+", "+e.scale+", 1)");var o="translate3d("+e.x+"px, "+e.y+"px, 0)";t.css("transform",o)},e.prototype.setActualSize=function(e,t){var i=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var s=this.core.galleryItems[this.core.index];this.resetImageTranslate(e),setTimeout((function(){if(s.src&&!i.core.outer.hasClass("lg-first-slide-loading")){var e=i.getCurrentImageActualSizeScale(),o=i.scale;i.core.outer.hasClass("lg-zoomed")?i.scale=1:i.scale=i.getScale(e),i.setPageCords(t),i.beginZoom(i.scale),i.zoomImage(i.scale,i.scale-o,!0,!0)}}),50),setTimeout((function(){i.core.outer.removeClass("lg-grabbing").addClass("lg-grab")}),60),setTimeout((function(){i.zoomInProgress=!1}),610)}},e.prototype.getNaturalWidth=function(e){var t=this.core.getSlideItem(e).find(".lg-image").first(),i=this.core.galleryItems[e].width;return i?parseFloat(i):t.get().naturalWidth},e.prototype.getActualSizeScale=function(e,t){return e>=t?e/t||2:1},e.prototype.getCurrentImageActualSizeScale=function(){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first().get().offsetWidth,t=this.getNaturalWidth(this.core.index)||e;return this.getActualSizeScale(t,e)},e.prototype.getPageCords=function(e){var t={};if(e)t.x=e.pageX||e.touches[0].pageX,t.y=e.pageY||e.touches[0].pageY;else{var i=this.core.$content.get().getBoundingClientRect();t.x=i.width/2+i.left,t.y=i.height/2+this.scrollTop+i.top}return t},e.prototype.setPageCords=function(e){var t=this.getPageCords(e);this.pageX=t.x,this.pageY=t.y},e.prototype.manageActualPixelClassNames=function(){this.core.getElementById("lg-actual-size").removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},e.prototype.beginZoom=function(e){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),e>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),e>1},e.prototype.getScale=function(e){var t=this.getCurrentImageActualSizeScale();return e<1?e=1:e>t&&(e=t),e},e.prototype.init=function(){var e=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var t=null;this.core.outer.on("dblclick.lg",(function(t){e.$LG(t.target).hasClass("lg-image")&&e.setActualSize(e.core.index,t)})),this.core.outer.on("touchstart.lg",(function(i){var s=e.$LG(i.target);1===i.touches.length&&s.hasClass("lg-image")&&(t?(clearTimeout(t),t=null,i.preventDefault(),e.setActualSize(e.core.index,i)):t=setTimeout((function(){t=null}),300))})),this.core.LGel.on("lgContainerResize.zoom lgRotateRight.zoom lgRotateLeft.zoom lgFlipHorizontal.zoom lgFlipVertical.zoom",(function(){if(e.core.lgOpened&&e.isImageSlide(e.core.index)&&!e.core.touchAction){var t=e.core.getSlideItem(e.core.index).find(".lg-img-wrap").first();e.top=0,e.left=0,e.setZoomEssentials(),e.setZoomSwipeStyles(t,{x:0,y:0}),e.positionChanged=!0}})),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,(function(){e.core.lgOpened&&(e.scrollTop=e.$LG(window).scrollTop())})),this.core.getElementById("lg-zoom-out").on("click.lg",(function(){if(e.isImageSlide(e.core.index)){var t=0;e.imageReset&&(e.resetImageTranslate(e.core.index),t=50),setTimeout((function(){var t=e.scale-e.settings.scale;t<1&&(t=1),e.beginZoom(t),e.zoomImage(t,-e.settings.scale,!0,!e.settings.infiniteZoom)}),t)}})),this.core.getElementById("lg-zoom-in").on("click.lg",(function(){e.zoomIn()})),this.core.getElementById("lg-actual-size").on("click.lg",(function(){e.setActualSize(e.core.index)})),this.core.LGel.on("lgBeforeOpen.zoom",(function(){e.core.outer.find(".lg-item").removeClass("lg-zoomable")})),this.core.LGel.on("lgAfterOpen.zoom",(function(){e.scrollTop=e.$LG(window).scrollTop(),e.pageX=e.core.outer.width()/2,e.pageY=e.core.outer.height()/2+e.scrollTop,e.scale=1})),this.core.LGel.on("lgAfterSlide.zoom",(function(t){var i=t.detail.prevIndex;e.scale=1,e.positionChanged=!1,e.zoomInProgress=!1,e.resetZoom(i),e.resetImageTranslate(i),e.isImageSlide(e.core.index)&&e.setZoomEssentials()})),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},e.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var e=this.scale+this.settings.scale;this.settings.infiniteZoom||(e=this.getScale(e)),this.beginZoom(e),this.zoomImage(e,Math.min(this.settings.scale,e-this.scale),!0,!this.settings.infiniteZoom)}},e.prototype.resetZoom=function(e){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var t=this.core.getElementById("lg-actual-size"),i=this.core.getSlideItem(void 0!==e?e:this.core.index);t.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),i.find(".lg-img-wrap").first().removeAttr("style"),i.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},e.prototype.getTouchDistance=function(e){return Math.sqrt((e.touches[0].pageX-e.touches[1].pageX)*(e.touches[0].pageX-e.touches[1].pageX)+(e.touches[0].pageY-e.touches[1].pageY)*(e.touches[0].pageY-e.touches[1].pageY))},e.prototype.pinchZoom=function(){var e=this,t=0,i=!1,s=1,o=0,l=this.core.getSlideItem(this.core.index);this.core.outer.on("touchstart.lg",(function(i){if(l=e.core.getSlideItem(e.core.index),e.isImageSlide(e.core.index)&&2===i.touches.length){if(i.preventDefault(),e.core.outer.hasClass("lg-first-slide-loading"))return;s=e.scale||1,e.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),e.setPageCords(i),e.resetImageTranslate(e.core.index),e.core.touchAction="pinch",t=e.getTouchDistance(i)}})),this.core.$inner.on("touchmove.lg",(function(n){if(2===n.touches.length&&"pinch"===e.core.touchAction&&(e.$LG(n.target).hasClass("lg-item")||l.get().contains(n.target))){n.preventDefault();var r=e.getTouchDistance(n),a=t-r;if(!i&&Math.abs(a)>5&&(i=!0),i){o=e.scale;var g=Math.max(1,s+.02*-a);e.scale=Math.round(100*(g+Number.EPSILON))/100;var d=e.scale-o;e.zoomImage(e.scale,Math.round(100*(d+Number.EPSILON))/100,!1,!1)}}})),this.core.$inner.on("touchend.lg",(function(s){if("pinch"===e.core.touchAction&&(e.$LG(s.target).hasClass("lg-item")||l.get().contains(s.target))){if(i=!1,t=0,e.scale<=1)e.resetZoom();else{var o=e.getCurrentImageActualSizeScale();if(e.scale>=o){var n=o-e.scale;0===n&&(n=.01),e.zoomImage(o,n,!1,!0)}e.manageActualPixelClassNames(),e.core.outer.addClass("lg-zoomed")}e.core.touchAction=void 0}}))},e.prototype.touchendZoom=function(e,t,i,s,o){var l=t.x-e.x,n=t.y-e.y,r=Math.abs(l)/o+1,a=Math.abs(n)/o+1;r>2&&(r+=1),a>2&&(a+=1),l*=r,n*=a;var g=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),d={};d.x=this.left+l,d.y=this.top+n;var h=this.getPossibleSwipeDragCords();(Math.abs(l)>15||Math.abs(n)>15)&&(s&&(this.isBeyondPossibleTop(d.y,h.minY)?d.y=h.minY:this.isBeyondPossibleBottom(d.y,h.maxY)&&(d.y=h.maxY)),i&&(this.isBeyondPossibleLeft(d.x,h.minX)?d.x=h.minX:this.isBeyondPossibleRight(d.x,h.maxX)&&(d.x=h.maxX)),s?this.top=d.y:d.y=this.top,i?this.left=d.x:d.x=this.left,this.setZoomSwipeStyles(g,d),this.positionChanged=!0)},e.prototype.getZoomSwipeCords=function(e,t,i,s,o){var l={};if(s){if(l.y=this.top+(t.y-e.y),this.isBeyondPossibleTop(l.y,o.minY)){var n=o.minY-l.y;l.y=o.minY-n/6}else if(this.isBeyondPossibleBottom(l.y,o.maxY)){var r=l.y-o.maxY;l.y=o.maxY+r/6}}else l.y=this.top;if(i){if(l.x=this.left+(t.x-e.x),this.isBeyondPossibleLeft(l.x,o.minX)){var a=o.minX-l.x;l.x=o.minX-a/6}else if(this.isBeyondPossibleRight(l.x,o.maxX)){var g=l.x-o.maxX;l.x=o.maxX+g/6}}else l.x=this.left;return l},e.prototype.isBeyondPossibleLeft=function(e,t){return e>=t},e.prototype.isBeyondPossibleRight=function(e,t){return e<=t},e.prototype.isBeyondPossibleTop=function(e,t){return e>=t},e.prototype.isBeyondPossibleBottom=function(e,t){return e<=t},e.prototype.isImageSlide=function(e){var t=this.core.galleryItems[e];return"image"===this.core.getSlideType(t)},e.prototype.getPossibleSwipeDragCords=function(e){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),i=this.core.mediaContainerPosition.bottom,s=t.get().getBoundingClientRect(),o=s.height,l=s.width;return e&&(o+=e*o,l+=e*l),{minY:(o-this.containerRect.height)/2,maxY:(this.containerRect.height-o)/2+i,minX:(l-this.containerRect.width)/2,maxX:(this.containerRect.width-l)/2}},e.prototype.setZoomSwipeStyles=function(e,t){e.css("transform","translate3d("+t.x+"px, "+t.y+"px, 0)")},e.prototype.zoomSwipe=function(){var e,t,i=this,s={},o={},l=!1,n=!1,r=!1,a=new Date,g=(new Date,this.core.getSlideItem(this.core.index));this.core.$inner.on("touchstart.lg",(function(o){if(i.isImageSlide(i.core.index)&&(g=i.core.getSlideItem(i.core.index),(i.$LG(o.target).hasClass("lg-item")||g.get().contains(o.target))&&1===o.touches.length&&i.core.outer.hasClass("lg-zoomed"))){o.preventDefault(),a=new Date,i.core.touchAction="zoomSwipe",t=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();var l=i.getDragAllowedAxises(0);r=l.allowY,((n=l.allowX)||r)&&(s=i.getSwipeCords(o)),e=i.getPossibleSwipeDragCords(),i.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}})),this.core.$inner.on("touchmove.lg",(function(a){if(1===a.touches.length&&"zoomSwipe"===i.core.touchAction&&(i.$LG(a.target).hasClass("lg-item")||g.get().contains(a.target))){a.preventDefault(),i.core.touchAction="zoomSwipe",o=i.getSwipeCords(a);var d=i.getZoomSwipeCords(s,o,n,r,e);(Math.abs(o.x-s.x)>15||Math.abs(o.y-s.y)>15)&&(l=!0,i.setZoomSwipeStyles(t,d))}})),this.core.$inner.on("touchend.lg",(function(e){if("zoomSwipe"===i.core.touchAction&&(i.$LG(e.target).hasClass("lg-item")||g.get().contains(e.target))){if(e.preventDefault(),i.core.touchAction=void 0,i.core.outer.removeClass("lg-zoom-dragging"),!l)return;l=!1;var t=(new Date).valueOf()-a.valueOf();i.touchendZoom(s,o,n,r,t)}}))},e.prototype.zoomDrag=function(){var e,t,i,s,o=this,l={},n={},r=!1,a=!1,g=!1,d=!1;this.core.outer.on("mousedown.lg.zoom",(function(t){if(o.isImageSlide(o.core.index)){var n=o.core.getSlideItem(o.core.index);if(o.$LG(t.target).hasClass("lg-item")||n.get().contains(t.target)){e=new Date,s=o.core.getSlideItem(o.core.index).find(".lg-img-wrap").first();var a=o.getDragAllowedAxises(0);d=a.allowY,g=a.allowX,o.core.outer.hasClass("lg-zoomed")&&o.$LG(t.target).hasClass("lg-object")&&(g||d)&&(t.preventDefault(),l=o.getDragCords(t),i=o.getPossibleSwipeDragCords(),r=!0,o.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}})),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,(function(e){if(r){a=!0,n=o.getDragCords(e);var t=o.getZoomSwipeCords(l,n,g,d,i);o.setZoomSwipeStyles(s,t)}})),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,(function(i){if(r){if(t=new Date,r=!1,o.core.outer.removeClass("lg-zoom-dragging"),a&&(l.x!==n.x||l.y!==n.y)){n=o.getDragCords(i);var s=t.valueOf()-e.valueOf();o.touchendZoom(l,n,g,d,s)}a=!1}o.core.outer.removeClass("lg-grabbing").addClass("lg-grab")}))},e.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},e.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},e}();const T=z;var L=function(){return L=Object.assign||function(e){for(var t,i=1,s=arguments.length;i0){this.$LG(document.body).addClass("lg-from-hash");var t=this.getIndexFromUrl(e);return this.core.openGallery(t),!0}},e.prototype.onCloseAfter=function(){this.oldHash&&this.oldHash.indexOf("lg="+this.settings.galleryId)<0?history.replaceState?history.replaceState(null,"",this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash=""},e.prototype.onHashchange=function(){if(this.core.lgOpened){var e=window.location.hash,t=this.getIndexFromUrl(e);e.indexOf("lg="+this.settings.galleryId)>-1?this.core.slide(t,!1,!1):this.core.lGalleryOn&&this.core.closeGallery()}},e.prototype.closeGallery=function(){this.settings.hash&&this.$LG(document.body).removeClass("lg-from-hash")},e.prototype.destroy=function(){this.core.LGel.off(".lg.hash"),this.core.LGel.off(".hash"),this.$LG(window).off("hashchange.lg.hash.global"+this.core.lgId)},e}();const A=O,R=window.ReactJSXRuntime,D=e=>{const[t,i]=(0,s.useState)({elementClassNames:"lcp-gallery grid",plugins:[],zoom:!1,hash:!1,download:!1}),o=(0,s.useRef)(null),l=(0,s.useCallback)((e=>{e&&(o.current=e.instance)}),[]);return(0,s.useEffect)((()=>{console.log("Props received:",e);const t=[];e.plugins&&e.plugins.forEach((e=>{console.log(`Adding plugin: ${e}`),"lgZoom"===e?t.push(T):"lgHash"===e&&t.push(A)})),i((i=>({...i,plugins:t,zoom:e.zoom||!1,hash:e.hash||!1,download:e.download||!1})))}),[e]),(0,s.useEffect)((()=>{console.log("Settings changed:",t),o.current&&(console.log("Refreshing gallery..."),o.current.refresh())}),[t]),(0,R.jsxs)(w,{ref:o,plugins:t.plugins,elementClassNames:t.elementClassNames,zoom:t.zoom,hash:t.hash,download:t.download,onInit:l,children:[(0,R.jsx)("a",{"data-lg-size":"1600-1067",className:"gallery-item","data-src":"https://images.unsplash.com/photo-1609342122563-a43ac8917a3a?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=1600&q=80","data-sub-html":"

Photo by - Tobias Rademacher

Location - Puezgruppe, Wolkenstein in Gröden, Südtirol, Italienlayers of blue.

",children:(0,R.jsx)("img",{alt:"layers of blue.",className:"img-responsive",src:"https://images.unsplash.com/photo-1609342122563-a43ac8917a3a?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=240&q=80"})}),(0,R.jsx)("a",{"data-lg-size":"1600-2400",className:"gallery-item","data-src":"https://images.unsplash.com/photo-1608481337062-4093bf3ed404?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=1600&q=80","data-sub-html":"

Photo by - Massimiliano Morosinotto

Location - Tre Cime di Lavaredo, ItaliaThis is the Way

",children:(0,R.jsx)("img",{className:"img-responsive",src:"https://images.unsplash.com/photo-1608481337062-4093bf3ed404?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=240&q=80"})})]})},P=[{value:"1-1",label:(0,t.__)("1:1",n.KR)},{value:"16-9",label:(0,t.__)("16:9",n.KR)},{value:"3-2",label:(0,t.__)("3:2",n.KR)},{value:"5-7",label:(0,t.__)("5:7",n.KR)},{value:"3-4",label:(0,t.__)("3:4",n.KR)},{value:"4-5",label:(0,t.__)("4:5",n.KR)},{value:"2-3",label:(0,t.__)("2:3",n.KR)}],{apiFetch:B}=wp;B({path:"/custom/v1/get-gallery-supported-plugins-data"}).then((e=>{console.log(e),e.jetengine_active&&console.log("Jet Engine is activated")})).catch((e=>{console.error("Error fetching Jet Engine status:",e)}));const G=({onSelect:e})=>{const[o,n]=(0,s.useState)([]);return(0,R.jsx)(i.MediaUploadCheck,{children:(0,R.jsx)(i.MediaUpload,{onSelect:t=>{const i=t.map((e=>({id:e.id,url:e.url,alt:e.alt||""})));n(i),e(i)},allowedTypes:["image","video"],multiple:!0,gallery:!0,render:({open:e})=>(0,R.jsx)(l.Button,{onClick:e,isPrimary:!0,children:(0,t.__)("Open Media Library")})})})};(0,e.registerBlockType)(n.UU,{edit:function(e){const{attributes:r,setAttributes:a}=e,{galleryItems:g=[],source:d,sourceMetaField:h,sourceTable:c,sourceColumn:u,includePostThumbnail:m,initialLayout:p,itemsAspectRatio:f,gridColumnsLarge:v,gridColumnsMedium:y,gridColumnsSmall:b,gridGapLarge:C,gridGapMedium:x,gridGapSmall:S,download:w,downloadSize:I,maxInitialItems:_,thumbnail:z,inlineHeightLarge:T,inlineHeightMedium:L,inlineHeightSmall:E,justifiedRowHeightSmall:O,justifiedRowHeightMedium:A,justifiedRowHeightLarge:B,justifiedLastRow:M,thumbnailsBorders:k,thumbnailsBordersSelected:j,thumbnailsStyle:H,thumbnailActiveStyle:F,showCaptions:N,zoomFromOrigin:$,galleryCustomStyles:K,lgSettings:Y}=r,[X,Z]=(0,s.useState)(Y),[V,U]=(0,s.useState)(k||{top:{color:"#000000",style:"solid",width:"1px"},right:{color:"#000000",style:"solid",width:"1px"},bottom:{color:"#000000",style:"solid",width:"1px"},left:{color:"#000000",style:"solid",width:"1px"}}),[W,q]=(0,s.useState)(j||{top:{color:"#000000",style:"solid",width:"1px"},right:{color:"#000000",style:"solid",width:"1px"},bottom:{color:"#000000",style:"solid",width:"1px"},left:{color:"#000000",style:"solid",width:"1px"}}),J=e=>{a({galleryItems:e})},Q=e=>{U(e),a({thumbnailsBorders:e})},ee=e=>{q(e),a({thumbnailsBordersSelected:e})},te=[{label:"lg-slide",value:"lg-slide"},{label:"lg-fade",value:"lg-fade"},{label:"lg-zoom-in",value:"lg-zoom-in"},{label:"lg-zoom-in-big",value:"lg-zoom-in-big"},{label:"lg-zoom-out",value:"lg-zoom-out"},{label:"lg-zoom-out-big",value:"lg-zoom-out-big"},{label:"lg-zoom-out-in",value:"lg-zoom-out-in"},{label:"lg-zoom-in-out",value:"lg-zoom-in-out"},{label:"lg-soft-zoom",value:"lg-soft-zoom"},{label:"lg-scale-up",value:"lg-scale-up"},{label:"lg-slide-circular",value:"lg-slide-circular"},{label:"lg-slide-circular-vertical",value:"lg-slide-circular-vertical"},{label:"lg-slide-vertical",value:"lg-slide-vertical"},{label:"lg-slide-vertical-growth",value:"lg-slide-vertical-growth"},{label:"lg-slide-skew-only",value:"lg-slide-skew-only"},{label:"lg-slide-skew-only-rev",value:"lg-slide-skew-only-rev"},{label:"lg-slide-skew-only-y",value:"lg-slide-skew-only-y"},{label:"lg-slide-skew-only-y-rev",value:"lg-slide-skew-only-y-rev"},{label:"lg-slide-skew",value:"lg-slide-skew"},{label:"lg-slide-skew-rev",value:"lg-slide-skew-rev"},{label:"lg-slide-skew-cross",value:"lg-slide-skew-cross"},{label:"lg-slide-skew-cross-rev",value:"lg-slide-skew-cross-rev"},{label:"lg-slide-skew-ver",value:"lg-slide-skew-ver"},{label:"lg-slide-skew-ver-rev",value:"lg-slide-skew-ver-rev"},{label:"lg-slide-skew-ver-cross",value:"lg-slide-skew-ver-cross"},{label:"lg-slide-skew-ver-cross-rev",value:"lg-slide-skew-ver-cross-rev"},{label:"lg-lollipop",value:"lg-lollipop"},{label:"lg-lollipop-rev",value:"lg-lollipop-rev"},{label:"lg-rotate",value:"lg-rotate"},{label:"lg-rotate-rev",value:"lg-rotate-rev"},{label:"lg-tube",value:"lg-tube"}],{isTemplate:ie,postType:se,postId:oe}=(0,o.useSelect)((e=>{const t=e("core/editor"),i=t.getCurrentPostType();return{isTemplate:"wp_template"===i,postType:i,postId:t.getCurrentPostId()}}),[]);let le=[];return le=ie?[{value:"manual",label:(0,t.__)("Manually Select",n.KR)},{value:"lcpPostGallery",label:(0,t.__)("Post Gallery",n.KR)},{value:"metaField",label:(0,t.__)("Meta field of current post",n.KR)},{value:"linkedTable",label:(0,t.__)("Linked Table",n.KR)}]:[{value:"manual",label:(0,t.__)("Manually Select",n.KR)},{value:"lcpPostGallery",label:(0,t.__)("Post Gallery",n.KR)}],(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(D,{...r.lgSettings}),(0,R.jsx)(i.InspectorControls,{children:(0,R.jsx)(l.TabPanel,{className:"my-tab-panel",activeClass:"active-tab",tabs:[{name:"settings",title:(0,t.__)("Settings"),className:"settings-tab"},{name:"style",title:(0,t.__)("Style Settings"),className:"style-tab"}],children:({name:e})=>"settings"===e?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(l.PanelBody,{title:(0,t.__)("Source Settings"),children:[(0,R.jsx)(l.SelectControl,{label:(0,t.__)("Gallery Items Source",n.KR),value:d,onChange:e=>a({source:e}),options:le}),"manual"===d&&(0,R.jsx)(G,{onSelect:J}),"metaField"===d&&(0,R.jsx)(l.TextControl,{label:(0,t.__)("Meta Field Name"),value:h,onChange:e=>a({sourceMetaField:e})}),"linkedTable"===d&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(l.TextControl,{label:(0,t.__)("Table Name"),value:c,onChange:e=>a({sourceTable:e})}),(0,R.jsx)(l.TextControl,{label:(0,t.__)("Column Name"),value:u,onChange:e=>a({sourceColumn:e})})]}),(0,R.jsx)(l.ToggleControl,{checked:r.parseElementForItems,label:(0,t.__)("Parse element for gallery items",n.KR),onChange:e=>{a({parseElementForItems:e})}}),r.parseElementForItems&&(0,R.jsx)(l.TextControl,{label:(0,t.__)("Elements to parse"),value:r.parsedTargetElement,onChange:e=>a({parsedTargetElement:e})}),(0,R.jsx)(l.ToggleControl,{onChange:e=>a({includePostThumbnail:e}),checked:m,label:(0,t.__)("Include Post Thumbnail (Featured Image)",n.KR)})]}),(0,R.jsxs)(l.PanelBody,{title:(0,t.__)("Display Settings"),children:[(0,R.jsx)(l.SelectControl,{label:(0,t.__)("Initial Layout",n.KR),value:p,onChange:e=>{a({initialLayout:e,lgSettings:{...r.lgSettings,closable:"inline"!==e,showMaximizeIcon:"inline"===e}})},options:[{value:"inline",label:(0,t.__)("Inline",n.KR)},{value:"grid",label:(0,t.__)("Grid",n.KR)},{value:"button",label:(0,t.__)("Button",n.KR)}]}),(0,R.jsx)(l.ToggleControl,{onChange:e=>a({includePostThumbnail:e}),checked:m,label:(0,t.__)("Include Post Thumbnail (Featured Image)",n.KR)}),"button"===p&&(0,R.jsx)(l.TextControl,{label:(0,t.__)("Button Text"),value:u,onChange:e=>a({sourceColumn:e})}),(0,R.jsx)(l.ToggleControl,{onChange:e=>{a({lgSettings:{...r.lgSettings,thumbnail:e}})},checked:r.lgSettings?.thumbnail,label:(0,t.__)("Show Thumbnails",n.KR)}),z&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(l.SelectControl,{label:(0,t.__)("Thumbnails Position - Desktop",n.KR),value:f,onChange:e=>a({itemsAspectRatio:e}),options:[{value:"bottom",label:(0,t.__)("Bottom",n.KR)},{value:"right",label:(0,t.__)("Right",n.KR)},{value:"left",label:(0,t.__)("Left",n.KR)},{value:"hidden",label:(0,t.__)("Hidden",n.KR)}]}),(0,R.jsx)(l.SelectControl,{label:(0,t.__)("Thumbnails Position - Tablet",n.KR),value:f,onChange:e=>a({itemsAspectRatio:e}),options:[{value:"bottom",label:(0,t.__)("Bottom",n.KR)},{value:"right",label:(0,t.__)("Right",n.KR)},{value:"left",label:(0,t.__)("Left",n.KR)},{value:"hidden",label:(0,t.__)("Hidden",n.KR)}]}),(0,R.jsx)(l.SelectControl,{label:(0,t.__)("Thumbnails Position - Mobile",n.KR),value:f,onChange:e=>a({itemsAspectRatio:e}),options:[{value:"bottom",label:(0,t.__)("Bottom",n.KR)},{value:"right",label:(0,t.__)("Right",n.KR)},{value:"left",label:(0,t.__)("Left",n.KR)},{value:"hidden",label:(0,t.__)("Hidden",n.KR)}]})]}),"inline"!==p&&"justified"!==p&&(0,R.jsx)(l.SelectControl,{label:(0,t.__)("Items Aspect Ratio",n.KR),value:f,onChange:e=>a({itemsAspectRatio:e}),options:P}),"inline"!==p&&(0,R.jsx)(l.__experimentalNumberControl,{label:(0,t.__)("Max Initial Images"),onChange:e=>a({maxInitialItems:1}),value:_,isShiftStepEnabled:!0,shiftStep:1,min:0})]}),(0,R.jsxs)(l.PanelBody,{title:(0,t.__)("Gallery Settings"),children:["inline"===r.initialLayout&&(0,R.jsx)(l.ToggleControl,{label:(0,t.__)("Show maximize icon",n.KR),checked:r.lgSettings.showMaximizeIcon,onChange:e=>a({lgSettings:{...r.lgSettings,showMaximizeIcon:!0}})}),(0,R.jsx)(l.ToggleControl,{label:(0,t.__)("Dynamic Load","lcp"),checked:Y.dynamic,onChange:e=>{a({lgSettings:{...Y,dynamic:e}})}}),(0,R.jsx)(l.ToggleControl,{label:(0,t.__)("Enable Zoom","lcp"),checked:Y.zoom,onChange:e=>{a({lgSettings:{...Y,zoom:e,plugins:e?[...Y.plugins,"lgZoom"]:Y.plugins.filter((e=>"lgZoom"!==e))}})}}),(0,R.jsx)(l.ToggleControl,{label:(0,t.__)("Enable Fullscreen","lcp"),checked:Y.fullScreen,onChange:e=>{a({lgSettings:{...Y,fullScreen:e,plugins:e?[...Y.plugins,"lgFullScreen"]:Y.plugins.filter((e=>"lgFullScreen"!==e))}})}}),(0,R.jsx)(l.ToggleControl,{label:(0,t.__)("Enable Sharing","lcp"),checked:Y.share,onChange:e=>{a({lgSettings:{...Y,share:e,plugins:e?[...Y.plugins,"lgShare"]:Y.plugins.filter((e=>"lgShare"!==e))}})}}),(0,R.jsx)(l.ToggleControl,{label:(0,t.__)("Enable Autoplay","lcp"),checked:Y.autoplay,onChange:e=>{a({lgSettings:{...Y,autoplay:e,plugins:e?[...Y.plugins,"lgAutoplay"]:Y.plugins.filter((e=>"lgAutoplay"!==e))}})}}),(0,R.jsx)(l.ToggleControl,{label:(0,t.__)("Enable Hash","lcp"),checked:Y.hash,onChange:e=>{a({lgSettings:{...Y,hash:e,plugins:e?[...Y.plugins,"lgHash"]:Y.plugins.filter((e=>"lgHash"!==e))}})}}),Y.hash&&(0,R.jsx)(l.TextControl,{label:(0,t.__)("Hash","lcp"),value:Y.hashGalleryId,onChange:e=>{a({lgSettings:{...Y,galleryId:e}})}}),(0,R.jsx)(l.ToggleControl,{label:(0,t.__)("Zoom From Origin","lcp"),checked:Y.zoomFromOrigin,onChange:e=>{a({lgSettings:{...Y,zoomFromOrigin:e}})}}),(0,R.jsx)(l.ToggleControl,{onChange:e=>a({showCaptions:e}),checked:N,label:(0,t.__)("Show Captions",n.KR)}),(0,R.jsx)(l.ToggleControl,{checked:Y.download,label:(0,t.__)("Allow Download",n.KR),onChange:e=>{a({lgSettings:{...Y,download:e}})}}),w&&(0,R.jsx)(l.SelectControl,{label:(0,t.__)("Download Size",n.KR),value:I,onChange:e=>a({downloadSize:e}),options:[{value:"full",label:(0,t.__)("Full",n.KR)},{value:"medium",label:(0,t.__)("Medium",n.KR)},{value:"large",label:(0,t.__)("Large",n.KR)}]}),(0,R.jsx)(l.SelectControl,{label:"Transition Style",value:Y.mode||"lg-slide",options:te,onChange:e=>{a({lgSettings:{...Y,mode:e}})}}),"inline"!=p,(0,R.jsx)(l.TextControl,{label:(0,t.__)("Open gallery in container"),value:Y.container,onChange:e=>a({lgSettings:{...Y,container:e}})})]})]}):"style"===e?(0,R.jsxs)(l.PanelBody,{title:(0,t.__)("Style Settings"),children:["inline"===p&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(l.__experimentalUnitControl,{label:(0,t.__)("Inline Height - Desktop"),onChange:e=>a({inlineHeightLarge:e}),value:T}),(0,R.jsx)(l.__experimentalUnitControl,{label:(0,t.__)("Inline Height - Tablet"),onChange:e=>a({inlineHeightMedium:e}),value:L}),(0,R.jsx)(l.__experimentalUnitControl,{label:(0,t.__)("Inline Height - Mobile"),onChange:e=>a({inlineHeightSmall:e}),value:E})]}),"justified"===p&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(l.SelectControl,{label:(0,t.__)("Last Row",n.KR),value:M,onChange:e=>a({justifiedLastRow:e}),options:[{value:"justify",label:(0,t.__)("Justify",n.KR)},{value:"nojustify",label:(0,t.__)("Unjustified",n.KR)},{value:"left",label:(0,t.__)("Align Left",n.KR)},{value:"center",label:(0,t.__)("Align Center",n.KR)},{value:"right",label:(0,t.__)("Align Right",n.KR)},{value:"hide",label:(0,t.__)("Hide",n.KR)}]}),(0,R.jsx)(l.__experimentalUnitControl,{label:(0,t.__)("Row Height - Desktop"),onChange:e=>a({justifiedRowHeightLarge:e}),value:B}),(0,R.jsx)(l.__experimentalUnitControl,{label:(0,t.__)("Row Height - Tablet"),onChange:e=>a({justifiedRowHeightMedium:e}),value:A}),(0,R.jsx)(l.__experimentalUnitControl,{label:(0,t.__)("Row Height - Mobile"),onChange:e=>a({justifiedRowHeightSmall:e}),value:O})]}),"grid"===p&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(l.__experimentalNumberControl,{label:(0,t.__)("Grid Columns - Desktop"),onChange:e=>a({gridColumnsLarge:e}),value:v,isShiftStepEnabled:!0,shiftStep:1,min:1,max:9}),(0,R.jsx)(l.__experimentalNumberControl,{label:(0,t.__)("Grid Columns - Tablet"),onChange:e=>a({gridColumnsMedium:e}),value:y,isShiftStepEnabled:!0,shiftStep:1,min:1,max:9}),(0,R.jsx)(l.__experimentalNumberControl,{label:(0,t.__)("Grid Columns - Mobile"),onChange:e=>a({gridColumnsSmall:e}),value:b,isShiftStepEnabled:!0,shiftStep:1,min:1,max:9}),(0,R.jsx)(l.__experimentalNumberControl,{label:(0,t.__)("Grid Gap"),onChange:e=>a({gridGapLarge:e}),value:C,isShiftStepEnabled:!0,shiftStep:1,min:0})]}),z&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(l.__experimentalBorderControl,{label:(0,t.__)("Thumbnail Borders"),value:V,onChange:Q}),(0,R.jsx)(l.__experimentalBorderControl,{label:(0,t.__)("Thumbnail Borders - Selected"),value:j,onChange:ee}),(0,R.jsx)(l.SelectControl,{label:(0,t.__)("Thumbnail Style",n.KR),value:H,onChange:e=>a({thumbnailsStyle:e}),options:[{value:"",label:(0,t.__)("None",n.KR)},{value:"lg-thumbnail-blur",label:(0,t.__)("Blur",n.KR)},{value:"lg-thumbnail-grayscale",label:(0,t.__)("Monochrome",n.KR)}]}),(0,R.jsx)(l.SelectControl,{label:(0,t.__)("Thumbnail Style - Selected",n.KR),value:F,onChange:e=>a({thumbnailActiveStyle:e}),options:[{value:"",label:(0,t.__)("None",n.KR)},{value:"lg-thumbnail-active-grayscale",label:(0,t.__)("Monochrome",n.KR)},{value:"lg-thumbnail-active-blur",label:(0,t.__)("Blur",n.KR)}]})]})]}):void 0})})]})},save:function(){return null}})}},i={};function s(e){var o=i[e];if(void 0!==o)return o.exports;var l=i[e]={exports:{}};return t[e](l,l.exports,s),l.exports}s.m=t,e=[],s.O=(t,i,o,l)=>{if(!i){var n=1/0;for(d=0;d=l)&&Object.keys(s.O).every((e=>s.O[e](i[a])))?i.splice(a--,1):(r=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[i,o,l]},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};s.O.j=t=>0===e[t];var t=(t,i)=>{var o,l,[n,r,a]=i,g=0;if(n.some((t=>0!==e[t]))){for(o in r)s.o(r,o)&&(s.m[o]=r[o]);if(a)var d=a(s)}for(t&&t(i);gs(659)));o=s.O(o)})(); \ No newline at end of file diff --git a/includes/blocks/lcp-gallery/build/style-index-rtl.css b/includes/blocks/lcp-gallery/build/style-index-rtl.css new file mode 100644 index 0000000..a0df652 --- /dev/null +++ b/includes/blocks/lcp-gallery/build/style-index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-gallery{background-color:#21759b;color:#fff;padding:2px}.admin-bar .lg-container:not(.lg-inline) .lg-outer{height:calc(100% - 32px)!important;top:32px}.lcp-inline-gallery{height:500px;position:relative;width:100%}.lcp-inline-gallery .lcp-gallery-item .img-fluid{display:none}.lcp-gallery .gallery-item,.lcp-gallery .gallery-item>img{width:100%}.lcp-gallery .gallery-item.last:after{background:red;content:"";height:100%;right:0;opacity:.5;position:absolute;top:0;width:100%}.lg-thumbnail-active-grayscale .lg-thumb-item.active img,.lg-thumbnail-grayscale .lg-thumb-item:not(.active) img{filter:grayscale(100%)}.lg-thumbnail-active-blur .lg-thumb-item.active img,.lg-thumbnail-blur .lg-thumb-item:not(.active) img{filter:blur(1px)}.lg-outer{background:none}.lcp-display-none{display:none}.gallery-item{position:relative}span.gallery-more{color:#fff;font-size:40px;right:50%;position:absolute;top:50%;transform:translate3d(50%,-50%,0);z-index:10}.lcp-gallery.aspect-1-1 .lcp-gallery-item{aspect-ratio:1/1}.lcp-gallery.aspect-2-3 .lcp-gallery-item{aspect-ratio:2/3}.lcp-gallery.aspect-3-4 .lcp-gallery-item{aspect-ratio:3/4}.lcp-gallery.aspect-4-5 .lcp-gallery-item{aspect-ratio:4/5}.lcp-gallery.aspect-5-7 .lcp-gallery-item{aspect-ratio:5/7}.lcp-gallery.aspect-3-2 .lcp-gallery-item{aspect-ratio:3/2}.lcp-gallery.aspect-16-9 .lcp-gallery-item{aspect-ratio:16/9}.gallery-item img{-o-object-fit:cover;object-fit:cover}.lcp-gallery.grid{display:grid}.lcp-gallery.grid .gallery-item img{height:100%;-o-object-fit:cover;object-fit:cover}.lcp-gallery.grid{gap:1rem;grid-template-columns:1fr 1fr 1fr 1fr}@media only screen and (min-width:1167px){.lcp-gallery.grid.large-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.large-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.large-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.large-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}}@media only screen and (min-width:768px)and (max-width:1166px){.lcp-gallery.grid.medium-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.medium-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.medium-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.medium-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}}@media only screen and (max-width:767px){.lcp-gallery.grid.small-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.small-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.small-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.small-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}}.lcp-gallery.grid>a>img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%} diff --git a/includes/blocks/lcp-gallery/build/style-index.css b/includes/blocks/lcp-gallery/build/style-index.css new file mode 100644 index 0000000..1983de7 --- /dev/null +++ b/includes/blocks/lcp-gallery/build/style-index.css @@ -0,0 +1 @@ +.wp-block-create-block-gallery{background-color:#21759b;color:#fff;padding:2px}.admin-bar .lg-container:not(.lg-inline) .lg-outer{height:calc(100% - 32px)!important;top:32px}.lcp-inline-gallery{height:500px;position:relative;width:100%}.lcp-inline-gallery .lcp-gallery-item .img-fluid{display:none}.lcp-gallery .gallery-item,.lcp-gallery .gallery-item>img{width:100%}.lcp-gallery .gallery-item.last:after{background:red;content:"";height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%}.lg-thumbnail-active-grayscale .lg-thumb-item.active img,.lg-thumbnail-grayscale .lg-thumb-item:not(.active) img{filter:grayscale(100%)}.lg-thumbnail-active-blur .lg-thumb-item.active img,.lg-thumbnail-blur .lg-thumb-item:not(.active) img{filter:blur(1px)}.lg-outer{background:none}.lcp-display-none{display:none}.gallery-item{position:relative}span.gallery-more{color:#fff;font-size:40px;left:50%;position:absolute;top:50%;transform:translate3d(-50%,-50%,0);z-index:10}.lcp-gallery.aspect-1-1 .lcp-gallery-item{aspect-ratio:1/1}.lcp-gallery.aspect-2-3 .lcp-gallery-item{aspect-ratio:2/3}.lcp-gallery.aspect-3-4 .lcp-gallery-item{aspect-ratio:3/4}.lcp-gallery.aspect-4-5 .lcp-gallery-item{aspect-ratio:4/5}.lcp-gallery.aspect-5-7 .lcp-gallery-item{aspect-ratio:5/7}.lcp-gallery.aspect-3-2 .lcp-gallery-item{aspect-ratio:3/2}.lcp-gallery.aspect-16-9 .lcp-gallery-item{aspect-ratio:16/9}.gallery-item img{-o-object-fit:cover;object-fit:cover}.lcp-gallery.grid{display:grid}.lcp-gallery.grid .gallery-item img{height:100%;-o-object-fit:cover;object-fit:cover}.lcp-gallery.grid{gap:1rem;grid-template-columns:1fr 1fr 1fr 1fr}@media only screen and (min-width:1167px){.lcp-gallery.grid.large-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.large-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.large-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.large-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.large-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}}@media only screen and (min-width:768px)and (max-width:1166px){.lcp-gallery.grid.medium-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.medium-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.medium-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.medium-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.medium-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}}@media only screen and (max-width:767px){.lcp-gallery.grid.small-1-columns{grid-template-columns:1fr}.lcp-gallery.grid.small-2-columns{grid-template-columns:1fr 1fr}.lcp-gallery.grid.small-3-columns{grid-template-columns:1fr 1fr 1fr}.lcp-gallery.grid.small-4-columns{grid-template-columns:1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-5-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-6-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-7-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-8-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.lcp-gallery.grid.small-9-columns{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}}.lcp-gallery.grid>a>img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%} diff --git a/includes/blocks/lcp-gallery/build/view.asset.php b/includes/blocks/lcp-gallery/build/view.asset.php new file mode 100644 index 0000000..e6c6700 --- /dev/null +++ b/includes/blocks/lcp-gallery/build/view.asset.php @@ -0,0 +1 @@ + array(), 'version' => '746811f5e99c6342d4cc'); diff --git a/includes/blocks/lcp-gallery/build/view.js b/includes/blocks/lcp-gallery/build/view.js new file mode 100644 index 0000000..7a03372 --- /dev/null +++ b/includes/blocks/lcp-gallery/build/view.js @@ -0,0 +1 @@ +document.addEventListener("DOMContentLoaded",(()=>{"function"==typeof lightGallery?document.querySelectorAll(".lcp-gallery").forEach((l=>{const e=l.getAttribute("data-lgsettings"),t="init-on-load"===l.getAttribute("data-gallery-settings"),o=l.classList.contains("lcp-inline-gallery");if(e)try{const i=JSON.parse(e);console.log("LightGallery Settings:",i);const n={lgZoom,lgThumbnail,lgFullScreen:lgFullscreen,lgRotate,lgAutoplay,lgShare,lgComment,lgHash,lgPager,lgVideo,lgMediumZoom};Array.isArray(i.plugins)&&(i.plugins=i.plugins.map((l=>n[l]||l)));let a=null;(!l.classList.contains("lcp-inline-gallery")||t||o)&&(a=lightGallery(l,i),o&&(a.openGallery(0),l.classList.add("initialized"))),l.querySelectorAll(".lcp-gallery-item").forEach(((l,e)=>{l.addEventListener("click",(()=>{a&&"function"==typeof a.openGallery?a.openGallery(e):console.error("LightGallery instance is not initialized correctly or missing openGallery method.")}))}))}catch(l){console.error("Error parsing data-lgsettings JSON:",l)}else console.error("data-lgsettings attribute is missing for a gallery.")})):console.error("LightGallery is not defined")})); \ No newline at end of file diff --git a/includes/blocks/lcp-header-container/build/block.json b/includes/blocks/lcp-header-container/build/block.json new file mode 100644 index 0000000..ee6d5b2 --- /dev/null +++ b/includes/blocks/lcp-header-container/build/block.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "lcp/header-container", + "version": "0.1.0", + "title": "Header Container", + "category": "widgets", + "icon": "smiley", + "description": "Viewport container which is designed to be the parent of all other blocks", + "example": {}, + "supports": { + "color": { + "background": true, + "text": false, + "link": false + } + }, + "attributes": { + "sticky": { + "type": "string", + "default": "never" + } + }, + "textdomain": "lcp-viewport", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css", + "viewScript": "file:./view.js" +} \ No newline at end of file diff --git a/includes/blocks/lcp-header-container/build/index-rtl.css b/includes/blocks/lcp-header-container/build/index-rtl.css new file mode 100644 index 0000000..06326ea --- /dev/null +++ b/includes/blocks/lcp-header-container/build/index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{border:1px dotted red} diff --git a/includes/blocks/lcp-header-container/build/index.asset.php b/includes/blocks/lcp-header-container/build/index.asset.php new file mode 100644 index 0000000..5147c76 --- /dev/null +++ b/includes/blocks/lcp-header-container/build/index.asset.php @@ -0,0 +1 @@ + array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '8285297d94129972e4c4'); diff --git a/includes/blocks/lcp-header-container/build/index.css b/includes/blocks/lcp-header-container/build/index.css new file mode 100644 index 0000000..06326ea --- /dev/null +++ b/includes/blocks/lcp-header-container/build/index.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{border:1px dotted red} diff --git a/includes/blocks/lcp-header-container/build/index.js b/includes/blocks/lcp-header-container/build/index.js new file mode 100644 index 0000000..45b88f3 --- /dev/null +++ b/includes/blocks/lcp-header-container/build/index.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,t={717:()=>{const e=window.wp.blocks,t=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.components,o=window.React,r=window.ReactJSXRuntime,s=JSON.parse('{"UU":"lcp/header-container"}');(0,e.registerBlockType)(s.UU,{edit:function({attributes:e,setAttributes:s}){const[i,a]=(0,o.useState)(!1),[d,c]=(0,o.useState)("10px"),[p,h]=(0,o.useState)("10px"),[x,g]=(0,o.useState)("10px"),[u,v]=(0,o.useState)("10px"),{sticky:f}=e,j=(0,n.useBlockProps)();return(0,r.jsxs)("div",{...j,children:[(0,r.jsxs)(n.InspectorControls,{children:[(0,r.jsx)(l.SelectControl,{label:(0,t.__)("Sticky Behavior","lcp"),value:f,options:[{label:(0,t.__)("Never","lcp"),value:"never"},{label:(0,t.__)("On Scroll","lcp"),value:"onScroll"},{label:(0,t.__)("Always","lcp"),value:"always"}],onChange:e=>{s({sticky:e})}}),(0,r.jsxs)(l.BaseControl,{label:"Padding - Desktop",children:[(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"row"},children:[(0,r.jsx)("span",{style:{marginRight:"10px"},children:"Padding"}),(0,r.jsx)(l.ToggleControl,{label:"Use Independent Padding",checked:i,onChange:()=>{a(!i)}})]}),i?(0,r.jsxs)("div",{style:{display:"grid",padding:"10px",gridTemplateColumns:"1fr 1fr",gap:"10px",justifyItems:"center"},children:[(0,r.jsxs)("fieldset",{style:{gridColumn:"span 2",width:"116px"},children:[(0,r.jsx)("legend",{children:"Top"}),(0,r.jsx)(l.__experimentalUnitControl,{value:d,onChange:e=>{c(e),s({paddingTop:e})}})]}),(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("legend",{children:"Left"}),(0,r.jsx)(l.__experimentalUnitControl,{value:u,onChange:e=>{v(e),s({paddingLeft:e})}})]}),(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("legend",{children:"Right"}),(0,r.jsx)(l.__experimentalUnitControl,{value:p,onChange:e=>{h(e),s({paddingRight:e})}})]}),(0,r.jsxs)("fieldset",{style:{gridColumn:"span 2",width:"116px"},children:[(0,r.jsx)("legend",{children:"Bottom"}),(0,r.jsx)(l.__experimentalUnitControl,{value:x,onChange:e=>{g(e),s({paddingBottom:e})}})]})]}):(0,r.jsx)(l.__experimentalUnitControl,{label:"Padding Value",value:999,onChange:e=>{s({padding:{extraLarge:{top:e,right:e,bottom:e,left:e},large:{top:e,right:e,bottom:e,left:e},medium:{top:e,right:e,bottom:e,left:e},small:{top:e,right:e,bottom:e,left:e}}})}})]})]}),(0,r.jsx)(n.InnerBlocks,{})]})},save:function({attributes:e}){const{sticky:t}=e,l=n.useBlockProps.save();let o="";"onScroll"===t?o="lcp-sticky-on-scroll":"always"===t&&(o="lcp-sticky");const s=`${l.className} ${o}`;return(0,r.jsx)("div",{...l,className:s,id:"lcp-header-container",children:(0,r.jsx)(n.InnerBlocks.Content,{})})}})}},n={};function l(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,l),r.exports}l.m=t,e=[],l.O=(t,n,o,r)=>{if(!n){var s=1/0;for(c=0;c=r)&&Object.keys(l.O).every((e=>l.O[e](n[a])))?n.splice(a--,1):(i=!1,r0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[n,o,r]},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};l.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,s=n[0],i=n[1],a=n[2],d=0;if(s.some((t=>0!==e[t]))){for(o in i)l.o(i,o)&&(l.m[o]=i[o]);if(a)var c=a(l)}for(t&&t(n);dl(717)));o=l.O(o)})(); \ No newline at end of file diff --git a/includes/blocks/lcp-header-container/build/style-index-rtl.css b/includes/blocks/lcp-header-container/build/style-index-rtl.css new file mode 100644 index 0000000..47253dd --- /dev/null +++ b/includes/blocks/lcp-header-container/build/style-index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-header-container/build/style-index.css b/includes/blocks/lcp-header-container/build/style-index.css new file mode 100644 index 0000000..47253dd --- /dev/null +++ b/includes/blocks/lcp-header-container/build/style-index.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-header-container/build/view.asset.php b/includes/blocks/lcp-header-container/build/view.asset.php new file mode 100644 index 0000000..3cee5e3 --- /dev/null +++ b/includes/blocks/lcp-header-container/build/view.asset.php @@ -0,0 +1 @@ + array(), 'version' => 'd4e4a494008d04e1eb42'); diff --git a/includes/blocks/lcp-header-container/build/view.js b/includes/blocks/lcp-header-container/build/view.js new file mode 100644 index 0000000..f0b02e4 --- /dev/null +++ b/includes/blocks/lcp-header-container/build/view.js @@ -0,0 +1 @@ +console.log("Hello World! (from create-block-lcp-viewport block)"); \ No newline at end of file diff --git a/includes/blocks/lcp-header-container/src/edit.js b/includes/blocks/lcp-header-container/src/edit.js index d096b57..9914983 100644 --- a/includes/blocks/lcp-header-container/src/edit.js +++ b/includes/blocks/lcp-header-container/src/edit.js @@ -142,9 +142,6 @@ export default function Edit({ attributes, setAttributes }) { -

- {__('Lcp Main – hello from the editor!', 'lcp')} -

array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '4b2344baeb9a3fcd6366'); diff --git a/includes/blocks/lcp-key-points/build/index.css b/includes/blocks/lcp-key-points/build/index.css new file mode 100644 index 0000000..0c2e089 --- /dev/null +++ b/includes/blocks/lcp-key-points/build/index.css @@ -0,0 +1 @@ +.wp-block-create-block-key-points{border:1px dotted red} diff --git a/includes/blocks/lcp-key-points/build/index.js b/includes/blocks/lcp-key-points/build/index.js new file mode 100644 index 0000000..370bc39 --- /dev/null +++ b/includes/blocks/lcp-key-points/build/index.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,i={717:()=>{const e=window.wp.blocks,i=window.wp.i18n,t=window.wp.blockEditor,n=window.wp.components,l=window.React,o=window.ReactJSXRuntime,r=JSON.parse('{"UU":"lcp/key-points"}');(0,e.registerBlockType)(r.UU,{edit:function({attributes:e,setAttributes:r}){const{heading:a,pointsFontSizeLarge:s,headingFontSizeLarge:u,listStyleType:p}=e,c=[{name:(0,i.__)("Small","key-points"),slug:"small",size:"12px"},{name:(0,i.__)("Medium","key-points"),slug:"medium",size:"16px"},{name:(0,i.__)("Large","key-points"),slug:"large",size:"24px"},{name:(0,i.__)("Extra Large","key-points"),slug:"x-large",size:"36px"}],d=[{label:(0,i.__)("Disc","lcp"),value:"disc"},{label:(0,i.__)("Circle","lcp"),value:"circle"},{label:(0,i.__)("Square","lcp"),value:"square"},{label:(0,i.__)("None","lcp"),value:"none"}],[m,g]=(0,l.useState)(["Lorem ipsum dolor sit amet, consectetur adipiscing elit.","Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.","Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.","Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(t.InspectorControls,{children:[(0,o.jsx)(n.SelectControl,{label:(0,i.__)("List Style","lcp"),value:p,options:d,onChange:e=>{r({listStyleType:e})}}),(0,o.jsx)(n.TextControl,{label:(0,i.__)("Heading","lcp"),value:a||"",onChange:e=>r({heading:e})}),(0,o.jsx)(n.FontSizePicker,{fontSizes:c,units:["px","em","rem","vw","vh"],value:s,onChange:e=>{"string"==typeof e&&r({pointsFontSizeLarge:e})},fallbackFontSize:"16px"}),(0,o.jsx)(n.FontSizePicker,{fontSizes:c,units:["px","em","rem","vw","vh"],value:u,onChange:e=>{"string"==typeof e&&r({headingFontSizeLarge:e})},fallbackFontSize:"24px"})]}),(0,o.jsx)("p",{...(0,t.useBlockProps)(),children:(0,i.__)("Key Points – hello from the editor!","lcp")}),a&&(0,o.jsx)("h2",{children:a}),m&&m.length>0&&(0,o.jsx)("ul",{style:{listStyleType:p},children:m.map(((e,i)=>(0,o.jsx)("li",{style:{fontSize:s},children:e},i)))})]})},save:function(){return null}})}},t={};function n(e){var l=t[e];if(void 0!==l)return l.exports;var o=t[e]={exports:{}};return i[e](o,o.exports,n),o.exports}n.m=i,e=[],n.O=(i,t,l,o)=>{if(!t){var r=1/0;for(p=0;p=o)&&Object.keys(n.O).every((e=>n.O[e](t[s])))?t.splice(s--,1):(a=!1,o0&&e[p-1][2]>o;p--)e[p]=e[p-1];e[p]=[t,l,o]},n.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={57:0,350:0};n.O.j=i=>0===e[i];var i=(i,t)=>{var l,o,r=t[0],a=t[1],s=t[2],u=0;if(r.some((i=>0!==e[i]))){for(l in a)n.o(a,l)&&(n.m[l]=a[l]);if(s)var p=s(n)}for(i&&i(t);un(717)));l=n.O(l)})(); \ No newline at end of file diff --git a/includes/blocks/lcp-key-points/build/style-index-rtl.css b/includes/blocks/lcp-key-points/build/style-index-rtl.css new file mode 100644 index 0000000..31f0e8c --- /dev/null +++ b/includes/blocks/lcp-key-points/build/style-index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-key-points{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-key-points/build/style-index.css b/includes/blocks/lcp-key-points/build/style-index.css new file mode 100644 index 0000000..31f0e8c --- /dev/null +++ b/includes/blocks/lcp-key-points/build/style-index.css @@ -0,0 +1 @@ +.wp-block-create-block-key-points{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-key-points/build/view.asset.php b/includes/blocks/lcp-key-points/build/view.asset.php new file mode 100644 index 0000000..5fcb4aa --- /dev/null +++ b/includes/blocks/lcp-key-points/build/view.asset.php @@ -0,0 +1 @@ + array(), 'version' => '72803a5be5f5e56a43b5'); diff --git a/includes/blocks/lcp-key-points/build/view.js b/includes/blocks/lcp-key-points/build/view.js new file mode 100644 index 0000000..d5cac3f --- /dev/null +++ b/includes/blocks/lcp-key-points/build/view.js @@ -0,0 +1 @@ +console.log("Hello World! (from create-block-key-points block)"); \ No newline at end of file diff --git a/includes/blocks/lcp-main-area/build/block.json b/includes/blocks/lcp-main-area/build/block.json new file mode 100644 index 0000000..33ab6ea --- /dev/null +++ b/includes/blocks/lcp-main-area/build/block.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "lcp/main-area", + "version": "0.1.0", + "title": "Main Content", + "category": "widgets", + "icon": "smiley", + "description": "Viewport container which is designed to be the parent of all other blocks", + "example": {}, + "supports": { + "html": false + }, + "attributes": { + "maxWidth": { + "type": "string", + "default": "100%" + } + }, + "textdomain": "lcp-viewport", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css", + "viewScript": "file:./view.js" +} \ No newline at end of file diff --git a/includes/blocks/lcp-main-area/build/index-rtl.css b/includes/blocks/lcp-main-area/build/index-rtl.css new file mode 100644 index 0000000..3064925 --- /dev/null +++ b/includes/blocks/lcp-main-area/build/index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{border:1px dotted red}#lcp-main-wrap{margin-right:340px} diff --git a/includes/blocks/lcp-main-area/build/index.asset.php b/includes/blocks/lcp-main-area/build/index.asset.php new file mode 100644 index 0000000..be5c79a --- /dev/null +++ b/includes/blocks/lcp-main-area/build/index.asset.php @@ -0,0 +1 @@ + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '4c475d6920d9d10f9da0'); diff --git a/includes/blocks/lcp-main-area/build/index.css b/includes/blocks/lcp-main-area/build/index.css new file mode 100644 index 0000000..2da0d40 --- /dev/null +++ b/includes/blocks/lcp-main-area/build/index.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{border:1px dotted red}#lcp-main-wrap{margin-left:340px} diff --git a/includes/blocks/lcp-main-area/build/index.js b/includes/blocks/lcp-main-area/build/index.js new file mode 100644 index 0000000..5386f6f --- /dev/null +++ b/includes/blocks/lcp-main-area/build/index.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,t={998:()=>{const e=window.wp.blocks,t=window.wp.i18n,n=window.wp.blockEditor,r=window.wp.components,i=window.ReactJSXRuntime,o=JSON.parse('{"UU":"lcp/main-area"}');(0,e.registerBlockType)(o.UU,{edit:function(e){const{attributes:o,setAttributes:s}=e,{maxWidth:a="100%"}=o,l=(0,n.useBlockProps)(),c=(0,n.useInnerBlocksProps)(l);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.InspectorControls,{children:(0,i.jsx)(r.PanelBody,{title:(0,t.__)("Max Width Settings","lcp"),initialOpen:!0,children:(0,i.jsx)("div",{className:"max-width-settings",children:(0,i.jsx)(r.__experimentalUnitControl,{onChange:e=>{s({maxWidth:e})},value:a,defaultUnit:"px"})})})}),(0,i.jsx)("div",{...c,id:"lcp-main-wrap",children:(0,i.jsx)(n.InnerBlocks,{...c})})]})},save:function({attributes:e}){const{maxWidth:t="100%"}=e,r=n.useBlockProps.save(),o={maxWidth:t};return(0,i.jsx)("div",{...r,id:"lcp-main-wrap",style:o,children:(0,i.jsx)(n.InnerBlocks.Content,{})})}})}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,n,i,o)=>{if(!n){var s=1/0;for(p=0;p=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(a=!1,o0&&e[p-1][2]>o;p--)e[p]=e[p-1];e[p]=[n,i,o]},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,s=n[0],a=n[1],l=n[2],c=0;if(s.some((t=>0!==e[t]))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(l)var p=l(r)}for(t&&t(n);cr(998)));i=r.O(i)})(); \ No newline at end of file diff --git a/includes/blocks/lcp-main-area/build/style-index-rtl.css b/includes/blocks/lcp-main-area/build/style-index-rtl.css new file mode 100644 index 0000000..47253dd --- /dev/null +++ b/includes/blocks/lcp-main-area/build/style-index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-main-area/build/style-index.css b/includes/blocks/lcp-main-area/build/style-index.css new file mode 100644 index 0000000..47253dd --- /dev/null +++ b/includes/blocks/lcp-main-area/build/style-index.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-main-area/build/view.asset.php b/includes/blocks/lcp-main-area/build/view.asset.php new file mode 100644 index 0000000..3cee5e3 --- /dev/null +++ b/includes/blocks/lcp-main-area/build/view.asset.php @@ -0,0 +1 @@ + array(), 'version' => 'd4e4a494008d04e1eb42'); diff --git a/includes/blocks/lcp-main-area/build/view.js b/includes/blocks/lcp-main-area/build/view.js new file mode 100644 index 0000000..f0b02e4 --- /dev/null +++ b/includes/blocks/lcp-main-area/build/view.js @@ -0,0 +1 @@ +console.log("Hello World! (from create-block-lcp-viewport block)"); \ No newline at end of file diff --git a/includes/blocks/lcp-sidecontent/build/block.json b/includes/blocks/lcp-sidecontent/build/block.json new file mode 100644 index 0000000..4c3b69c --- /dev/null +++ b/includes/blocks/lcp-sidecontent/build/block.json @@ -0,0 +1,22 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "lcp/sidecontent", + "version": "0.1.0", + "title": "Sidecontent", + "category": "widgets", + "icon": "smiley", + "description": "A separate content area to be nested inside the LCP viewport", + "example": {}, + "supports": { + "color": { + "background": true, + "text": false + } + }, + "textdomain": "lcp", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css", + "viewScript": "file:./view.js" +} \ No newline at end of file diff --git a/includes/blocks/lcp-sidecontent/build/index-rtl.css b/includes/blocks/lcp-sidecontent/build/index-rtl.css new file mode 100644 index 0000000..bf118ab --- /dev/null +++ b/includes/blocks/lcp-sidecontent/build/index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-sidecontent{border:1px dotted red}#lcp-sidecontent{background:#fff;border-left:2px solid #eee;height:100%;right:0;outline:0;overflow:scroll;position:absolute;top:var(--my-top);width:340px;z-index:2} diff --git a/includes/blocks/lcp-sidecontent/build/index.asset.php b/includes/blocks/lcp-sidecontent/build/index.asset.php new file mode 100644 index 0000000..f4f79ae --- /dev/null +++ b/includes/blocks/lcp-sidecontent/build/index.asset.php @@ -0,0 +1 @@ + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => 'c0cad1dbf39c1f85add9'); diff --git a/includes/blocks/lcp-sidecontent/build/index.css b/includes/blocks/lcp-sidecontent/build/index.css new file mode 100644 index 0000000..64e14b3 --- /dev/null +++ b/includes/blocks/lcp-sidecontent/build/index.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-sidecontent{border:1px dotted red}#lcp-sidecontent{background:#fff;border-right:2px solid #eee;height:100%;left:0;outline:0;overflow:scroll;position:absolute;top:var(--my-top);width:340px;z-index:2} diff --git a/includes/blocks/lcp-sidecontent/build/index.js b/includes/blocks/lcp-sidecontent/build/index.js new file mode 100644 index 0000000..ba1c70d --- /dev/null +++ b/includes/blocks/lcp-sidecontent/build/index.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,n={650:()=>{const e=window.wp.blocks,n=(window.wp.i18n,window.wp.blockEditor),r=window.ReactJSXRuntime,o=JSON.parse('{"UU":"lcp/sidecontent"}');(0,e.registerBlockType)(o.UU,{edit:function(){return(0,n.useBlockProps)(),(0,r.jsx)("div",{...n.useBlockProps,children:(0,r.jsx)("div",{id:"lcp-sidecontent",children:(0,r.jsx)(n.InnerBlocks,{renderAppender:()=>(0,r.jsx)(n.InnerBlocks.ButtonBlockAppender,{})})})})},save:function(){const e=n.useBlockProps.save();return(0,r.jsxs)("div",{...e,id:"lcp-sidecontent",children:[(0,r.jsx)("div",{id:"lcp-sidecontent-inner",children:(0,r.jsx)(n.InnerBlocks.Content,{})}),(0,r.jsx)("div",{id:"lcp-scroll-track",children:(0,r.jsx)("div",{id:"lcp-scroll-bar"})})]})}})}},r={};function o(e){var i=r[e];if(void 0!==i)return i.exports;var s=r[e]={exports:{}};return n[e](s,s.exports,o),s.exports}o.m=n,e=[],o.O=(n,r,i,s)=>{if(!r){var t=1/0;for(p=0;p=s)&&Object.keys(o.O).every((e=>o.O[e](r[l])))?r.splice(l--,1):(c=!1,s0&&e[p-1][2]>s;p--)e[p]=e[p-1];e[p]=[r,i,s]},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={57:0,350:0};o.O.j=n=>0===e[n];var n=(n,r)=>{var i,s,t=r[0],c=r[1],l=r[2],d=0;if(t.some((n=>0!==e[n]))){for(i in c)o.o(c,i)&&(o.m[i]=c[i]);if(l)var p=l(o)}for(n&&n(r);do(650)));i=o.O(i)})(); \ No newline at end of file diff --git a/includes/blocks/lcp-sidecontent/build/style-index-rtl.css b/includes/blocks/lcp-sidecontent/build/style-index-rtl.css new file mode 100644 index 0000000..71421a6 --- /dev/null +++ b/includes/blocks/lcp-sidecontent/build/style-index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-sidecontent{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-sidecontent/build/style-index.css b/includes/blocks/lcp-sidecontent/build/style-index.css new file mode 100644 index 0000000..71421a6 --- /dev/null +++ b/includes/blocks/lcp-sidecontent/build/style-index.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-sidecontent{background-color:#21759b;color:#fff;padding:2px} diff --git a/includes/blocks/lcp-sidecontent/build/view.asset.php b/includes/blocks/lcp-sidecontent/build/view.asset.php new file mode 100644 index 0000000..f534533 --- /dev/null +++ b/includes/blocks/lcp-sidecontent/build/view.asset.php @@ -0,0 +1 @@ + array(), 'version' => '31d6cfe0d16ae931b73c'); diff --git a/includes/blocks/lcp-sidecontent/build/view.js b/includes/blocks/lcp-sidecontent/build/view.js new file mode 100644 index 0000000..e69de29 diff --git a/includes/blocks/lcp-viewport/build/block.json b/includes/blocks/lcp-viewport/build/block.json new file mode 100644 index 0000000..575c835 --- /dev/null +++ b/includes/blocks/lcp-viewport/build/block.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "lcp/viewport", + "version": "0.1.0", + "title": "Viewport", + "category": "widgets", + "icon": "smiley", + "description": "Viewport container which is designed to be the parent of all other blocks", + "example": {}, + "supports": { + "color": { + "background": true, + "text": false, + "link": false + } + }, + "attributes": { + "hasSidecontent": { + "type": "boolean", + "default": true + } + }, + "textdomain": "lcp-viewport", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css", + "viewScript": "file:./view.js" +} \ No newline at end of file diff --git a/includes/blocks/lcp-viewport/build/index-rtl.css b/includes/blocks/lcp-viewport/build/index-rtl.css new file mode 100644 index 0000000..06326ea --- /dev/null +++ b/includes/blocks/lcp-viewport/build/index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{border:1px dotted red} diff --git a/includes/blocks/lcp-viewport/build/index.asset.php b/includes/blocks/lcp-viewport/build/index.asset.php new file mode 100644 index 0000000..de27e6b --- /dev/null +++ b/includes/blocks/lcp-viewport/build/index.asset.php @@ -0,0 +1 @@ + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '65f373ffa98edc78a0fd'); diff --git a/includes/blocks/lcp-viewport/build/index.css b/includes/blocks/lcp-viewport/build/index.css new file mode 100644 index 0000000..06326ea --- /dev/null +++ b/includes/blocks/lcp-viewport/build/index.css @@ -0,0 +1 @@ +.wp-block-create-block-lcp-viewport{border:1px dotted red} diff --git a/includes/blocks/lcp-viewport/build/index.js b/includes/blocks/lcp-viewport/build/index.js new file mode 100644 index 0000000..31d22d7 --- /dev/null +++ b/includes/blocks/lcp-viewport/build/index.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,n={998:()=>{const e=window.wp.blocks,n=window.wp.i18n,r=window.wp.blockEditor,t=window.wp.components,o=window.ReactJSXRuntime,i=JSON.parse('{"UU":"lcp/viewport"}');(0,e.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:i}){const{hasSidecontent:s}=e,c=(0,r.useBlockProps)({className:s?"has-sidecontent":""}),l=[s&&["lcp/sidecontent"],["lcp/main-area"]].filter(Boolean);return(0,o.jsxs)("div",{...c,children:[(0,o.jsx)(r.InspectorControls,{children:(0,o.jsx)(t.ToggleControl,{label:(0,n.__)("Include Side Content","lcp-viewport"),checked:s,onChange:e=>i({hasSidecontent:e})})}),(0,o.jsx)("div",{id:"lcp-viewport-outer",children:(0,o.jsx)("div",{id:"lcp-viewport-inner",children:(0,o.jsx)(r.InnerBlocks,{template:l,renderAppender:()=>(0,o.jsx)(r.InnerBlocks.ButtonBlockAppender,{})})})})]})},save:function({attributes:e}){const{hasSidecontent:n}=e,t=(r.useBlockProps.save(),n?"has-sidecontent":"");return(0,o.jsx)("div",{class:t,id:"lcp-viewport-outer",children:(0,o.jsx)("div",{id:"lcp-viewport-inner",class:t,children:(0,o.jsx)(r.InnerBlocks.Content,{})})})}})}},r={};function t(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,t),i.exports}t.m=n,e=[],t.O=(n,r,o,i)=>{if(!r){var s=1/0;for(d=0;d=i)&&Object.keys(t.O).every((e=>t.O[e](r[l])))?r.splice(l--,1):(c=!1,i0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[r,o,i]},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={57:0,350:0};t.O.j=n=>0===e[n];var n=(n,r)=>{var o,i,s=r[0],c=r[1],l=r[2],p=0;if(s.some((n=>0!==e[n]))){for(o in c)t.o(c,o)&&(t.m[o]=c[o]);if(l)var d=l(t)}for(n&&n(r);pt(998)));o=t.O(o)})(); \ No newline at end of file diff --git a/includes/blocks/lcp-viewport/build/style-index-rtl.css b/includes/blocks/lcp-viewport/build/style-index-rtl.css new file mode 100644 index 0000000..6af15f7 --- /dev/null +++ b/includes/blocks/lcp-viewport/build/style-index-rtl.css @@ -0,0 +1 @@ +#lcp-viewport-inner{display:block;position:relative;width:100%} diff --git a/includes/blocks/lcp-viewport/build/style-index.css b/includes/blocks/lcp-viewport/build/style-index.css new file mode 100644 index 0000000..6af15f7 --- /dev/null +++ b/includes/blocks/lcp-viewport/build/style-index.css @@ -0,0 +1 @@ +#lcp-viewport-inner{display:block;position:relative;width:100%} diff --git a/includes/blocks/lcp-viewport/build/view.asset.php b/includes/blocks/lcp-viewport/build/view.asset.php new file mode 100644 index 0000000..3cee5e3 --- /dev/null +++ b/includes/blocks/lcp-viewport/build/view.asset.php @@ -0,0 +1 @@ + array(), 'version' => 'd4e4a494008d04e1eb42'); diff --git a/includes/blocks/lcp-viewport/build/view.js b/includes/blocks/lcp-viewport/build/view.js new file mode 100644 index 0000000..f0b02e4 --- /dev/null +++ b/includes/blocks/lcp-viewport/build/view.js @@ -0,0 +1 @@ +console.log("Hello World! (from create-block-lcp-viewport block)"); \ No newline at end of file diff --git a/includes/blocks/lcp-visualizer/build/block.json b/includes/blocks/lcp-visualizer/build/block.json new file mode 100644 index 0000000..f2a0966 --- /dev/null +++ b/includes/blocks/lcp-visualizer/build/block.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "lcp/visualizer", + "version": "0.1.0", + "title": "Visualizer", + "category": "widgets", + "icon": "smiley", + "description": "Block for charts and data visualization", + "example": {}, + "supports": { + "html": false + }, + "textdomain": "lcp", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css", + "viewScript": "file:./view.js" +} \ No newline at end of file diff --git a/includes/blocks/lcp-visualizer/build/index-rtl.css b/includes/blocks/lcp-visualizer/build/index-rtl.css new file mode 100644 index 0000000..c8b399f --- /dev/null +++ b/includes/blocks/lcp-visualizer/build/index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-todo-list{border:1px dotted red} diff --git a/includes/blocks/lcp-visualizer/build/index.asset.php b/includes/blocks/lcp-visualizer/build/index.asset.php new file mode 100644 index 0000000..de40eaf --- /dev/null +++ b/includes/blocks/lcp-visualizer/build/index.asset.php @@ -0,0 +1 @@ + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '449eb637586399932c7e'); diff --git a/includes/blocks/lcp-visualizer/build/index.css b/includes/blocks/lcp-visualizer/build/index.css new file mode 100644 index 0000000..c8b399f --- /dev/null +++ b/includes/blocks/lcp-visualizer/build/index.css @@ -0,0 +1 @@ +.wp-block-create-block-todo-list{border:1px dotted red} diff --git a/includes/blocks/lcp-visualizer/build/index.js b/includes/blocks/lcp-visualizer/build/index.js new file mode 100644 index 0000000..b8a3042 --- /dev/null +++ b/includes/blocks/lcp-visualizer/build/index.js @@ -0,0 +1 @@ +(()=>{"use strict";var r,o={650:()=>{const r=window.wp.blocks,o=window.wp.i18n,e=window.wp.blockEditor,t=window.ReactJSXRuntime,i=JSON.parse('{"UU":"lcp/visualizer"}');(0,r.registerBlockType)(i.UU,{edit:function(){return(0,t.jsx)("p",{...(0,e.useBlockProps)(),children:(0,o.__)("Todo List – hello from the editor!","todo-list")})},save:function(){return null}})}},e={};function t(r){var i=e[r];if(void 0!==i)return i.exports;var n=e[r]={exports:{}};return o[r](n,n.exports,t),n.exports}t.m=o,r=[],t.O=(o,e,i,n)=>{if(!e){var l=1/0;for(c=0;c=n)&&Object.keys(t.O).every((r=>t.O[r](e[a])))?e.splice(a--,1):(s=!1,n0&&r[c-1][2]>n;c--)r[c]=r[c-1];r[c]=[e,i,n]},t.o=(r,o)=>Object.prototype.hasOwnProperty.call(r,o),(()=>{var r={57:0,350:0};t.O.j=o=>0===r[o];var o=(o,e)=>{var i,n,[l,s,a]=e,p=0;if(l.some((o=>0!==r[o]))){for(i in s)t.o(s,i)&&(t.m[i]=s[i]);if(a)var c=a(t)}for(o&&o(e);pt(650)));i=t.O(i)})(); \ No newline at end of file diff --git a/includes/blocks/lcp-visualizer/build/style-index-rtl.css b/includes/blocks/lcp-visualizer/build/style-index-rtl.css new file mode 100644 index 0000000..1eb1e36 --- /dev/null +++ b/includes/blocks/lcp-visualizer/build/style-index-rtl.css @@ -0,0 +1 @@ +.wp-block-create-block-todo-list{background-color:#21759b;color:#fff;padding:2px}.line{fill:none;stroke-width:2px}.hover-line{stroke-width:4px}.axis-label{font-size:12px} diff --git a/includes/blocks/lcp-visualizer/build/style-index.css b/includes/blocks/lcp-visualizer/build/style-index.css new file mode 100644 index 0000000..1eb1e36 --- /dev/null +++ b/includes/blocks/lcp-visualizer/build/style-index.css @@ -0,0 +1 @@ +.wp-block-create-block-todo-list{background-color:#21759b;color:#fff;padding:2px}.line{fill:none;stroke-width:2px}.hover-line{stroke-width:4px}.axis-label{font-size:12px} diff --git a/includes/blocks/lcp-visualizer/build/view.asset.php b/includes/blocks/lcp-visualizer/build/view.asset.php new file mode 100644 index 0000000..1c3aecf --- /dev/null +++ b/includes/blocks/lcp-visualizer/build/view.asset.php @@ -0,0 +1 @@ + array(), 'version' => '9504dff164e131288259'); diff --git a/includes/blocks/lcp-visualizer/build/view.js b/includes/blocks/lcp-visualizer/build/view.js new file mode 100644 index 0000000..cb82140 --- /dev/null +++ b/includes/blocks/lcp-visualizer/build/view.js @@ -0,0 +1 @@ +console.log("Hello World! (from lcp-visualizer)"),document.addEventListener("DOMContentLoaded",(function(){const t=[{date:"2023-01-01",team:"Manchester City",goals:2},{date:"2023-01-01",team:"Liverpool",goals:1},{date:"2023-02-01",team:"Manchester City",goals:3},{date:"2023-02-01",team:"Liverpool",goals:2},{date:"2023-03-01",team:"Manchester City",goals:4},{date:"2023-03-01",team:"Liverpool",goals:3},{date:"2023-04-01",team:"Manchester City",goals:3},{date:"2023-04-01",team:"Liverpool",goals:4},{date:"2023-05-01",team:"Manchester City",goals:5},{date:"2023-05-01",team:"Liverpool",goals:4}],a=d3.timeParse("%Y-%m-%d");t.forEach((t=>{t.date=a(t.date),t.goals=+t.goals}));const e=Array.from(new Set(t.map((t=>t.team)))),l=d3.scaleOrdinal().domain(e).range(d3.schemeCategory10),r=d3.select(".lcp-visualizer").attr("width",800).attr("height",400).append("g").attr("transform","translate(40,20)"),o=d3.scaleTime().domain(d3.extent(t,(t=>t.date))).range([0,730]),s=d3.scaleLinear().domain([0,d3.max(t,(t=>t.goals))]).nice().range([340,0]),n=d3.line().x((t=>o(t.date))).y((t=>s(t.goals)));r.append("g").attr("transform","translate(0,340)").call(d3.axisBottom(o)),r.append("g").call(d3.axisLeft(s));const d=e.map((a=>({team:a,values:t.filter((t=>t.team===a))})));r.selectAll(".line").data(d).enter().append("path").attr("class","line").attr("d",(t=>n(t.values))).attr("stroke",(t=>l(t.team))),d.forEach((t=>{r.selectAll(`circle.${t.team}`).data(t.values).enter().append("circle").attr("class",t.team).attr("cx",(t=>o(t.date))).attr("cy",(t=>s(t.goals))).attr("r",4).attr("fill",l(t.team)).on("mouseover",(function(t,a){d3.select(this).transition().duration(200).attr("r",6).attr("fill","orange"),d3.select(`path.${a.team}`).classed("hover-line",!0)})).on("mouseout",(function(t,a){d3.select(this).transition().duration(200).attr("r",4).attr("fill",l(a.team)),d3.select(`path.${a.team}`).classed("hover-line",!1)}))}))})); \ No newline at end of file diff --git a/includes/classes/backend.php b/includes/classes/backend.php index 993bd83..69a4b0e 100644 --- a/includes/classes/backend.php +++ b/includes/classes/backend.php @@ -14,15 +14,7 @@ function lcp_backend_pages() { ); // Register the Custom Code settings page - add_menu_page( - 'Custom Code Inserter', // Page title - 'Code Inserter', // Menu title - 'manage_options', // Capability required - admin only - 'lcp-code-inserter', // Menu slug - 'custom-code-inserter', // Callback function - '', // Icon - 25 - ); + } add_action( 'admin_menu', 'lcp_backend_pages' ); // Function to render the theme settings page @@ -169,44 +161,6 @@ function lcp_enable_highlight_to_share() { // The callback function to display the custom code inserterpage content -function lcp_custom_code_inserter_page() { - // Get the stored options from wp_options - $custom_code = get_option( 'custom_code_options', array() ); - - ?> -
-

Custom Code Settings

-
- LCP Custom Code Inserter is currently disabled. -

You can add and modify code snippets, but they will not be in effect.

"; - } - ?> - - - - - - - - - - - - - - - - - - -
CSS in Header
JavaScript in Header
JavaScript in Footer
- -
-
- @@ -368,3 +323,9 @@ function lcp_wp_head_hooks(){ } add_action('wp_head', 'lcp_wp_head_hooks'); + + + + +/* ICONS */ + diff --git a/script.js b/script.js index 94dd223..d9cb862 100644 --- a/script.js +++ b/script.js @@ -34,7 +34,7 @@ document.addEventListener('DOMContentLoaded', function () { // Function to handle the scroll event function handleScroll() { - console.log ("hey"); + const scrolled = window.scrollY || document.documentElement.scrollTop; // Check if the page has scrolled past the height of the header @@ -110,65 +110,6 @@ const innerContent = document.getElementById("lcp-sidecontent-inner"); const scrollTrack = document.getElementById("lcp-scroll-track"); const scrollBar = document.getElementById("lcp-scroll-bar"); -let isDragging = false; -let startY = 0; -let startScrollTop = 0; - -// Update the custom scrollbar position based on the content's scroll position -function updateCustomScrollbar() { - const contentHeight = innerContent.scrollHeight; - const visibleHeight = innerContent.clientHeight; - const scrollTrackHeight = scrollTrack.clientHeight; - - // Calculate the proportion of visible content to total content - const thumbHeight = (visibleHeight / contentHeight) * scrollTrackHeight; - scrollBar.style.height = `${thumbHeight}px`; - - // Calculate the scroll ratio (position of the content relative to its height) - const scrollRatio = innerContent.scrollTop / (contentHeight - visibleHeight); - - // Position the scrollbar thumb based on the scroll ratio - scrollBar.style.top = `${scrollRatio * (scrollTrackHeight - thumbHeight)}px`; -} - -// Handle the mouse down event to begin dragging the scrollbar -scrollBar.addEventListener("mousedown", (e) => { - isDragging = true; - startY = e.clientY; - startScrollTop = innerContent.scrollTop; - document.body.style.userSelect = "none"; // Disable text selection while dragging -}); - -// Handle mouse movement to drag the scrollbar and simulate scrolling -document.addEventListener("mousemove", (e) => { - if (!isDragging) return; - - const deltaY = e.clientY - startY; - const contentHeight = innerContent.scrollHeight; - const visibleHeight = innerContent.clientHeight; - const scrollTrackHeight = scrollTrack.clientHeight; - - const thumbHeight = scrollBar.clientHeight; - const scrollableDistance = contentHeight - visibleHeight; - const thumbDistance = scrollTrackHeight - thumbHeight; - - // Calculate new scroll position for content based on dragging - const newScrollTop = (deltaY / thumbDistance) * scrollableDistance + startScrollTop; - innerContent.scrollTop = newScrollTop; - updateCustomScrollbar(); -}); - -// Handle mouse up event to stop dragging -document.addEventListener("mouseup", () => { - isDragging = false; - document.body.style.userSelect = ""; // Enable text selection again -}); - -// Handle scroll events on the content to update the custom scrollbar -innerContent.addEventListener("scroll", updateCustomScrollbar); - -// Initialize the custom scrollbar position when the page loads -updateCustomScrollbar();