Changeset 3214417
- Timestamp:
- 12/29/2024 12:17:10 PM (15 months ago)
- Location:
- marquee-block
- Files:
-
- 92 added
- 49 edited
-
assets/blueprints/blueprint.json (modified) (1 diff)
-
tags/1.1.0 (added)
-
tags/1.1.0/README.txt (added)
-
tags/1.1.0/build (added)
-
tags/1.1.0/build/editor-scripts.asset.php (added)
-
tags/1.1.0/build/editor-scripts.js (added)
-
tags/1.1.0/build/editor-scripts.js.map (added)
-
tags/1.1.0/build/marquee (added)
-
tags/1.1.0/build/marquee/block.json (added)
-
tags/1.1.0/build/marquee/index-rtl.css (added)
-
tags/1.1.0/build/marquee/index.asset.php (added)
-
tags/1.1.0/build/marquee/index.css (added)
-
tags/1.1.0/build/marquee/index.css.map (added)
-
tags/1.1.0/build/marquee/index.js (added)
-
tags/1.1.0/build/marquee/index.js.map (added)
-
tags/1.1.0/build/marquee/render.php (added)
-
tags/1.1.0/build/marquee/view-rtl.css (added)
-
tags/1.1.0/build/marquee/view.asset.php (added)
-
tags/1.1.0/build/marquee/view.css (added)
-
tags/1.1.0/build/marquee/view.css.map (added)
-
tags/1.1.0/build/marquee/view.js (added)
-
tags/1.1.0/build/marquee/view.js.map (added)
-
tags/1.1.0/changelog.txt (added)
-
tags/1.1.0/includes (added)
-
tags/1.1.0/includes/Blocks.php (added)
-
tags/1.1.0/includes/Common.php (added)
-
tags/1.1.0/includes/Plugin.php (added)
-
tags/1.1.0/includes/functions.php (added)
-
tags/1.1.0/languages (added)
-
tags/1.1.0/languages/marquee-block.pot (added)
-
tags/1.1.0/marquee-block.php (added)
-
tags/1.1.0/vendor (added)
-
tags/1.1.0/vendor/autoload.php (added)
-
tags/1.1.0/vendor/autoload_packages.php (added)
-
tags/1.1.0/vendor/automattic (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/CHANGELOG.md (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/LICENSE.txt (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/README.md (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/SECURITY.md (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/composer.json (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/AutoloadFileWriter.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/AutoloadProcessor.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/ManifestGenerator.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/autoload.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-autoloader-handler.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-autoloader-locator.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-autoloader.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-container.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-hook-manager.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-latest-autoloader-guard.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-manifest-reader.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-path-processor.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-php-autoloader.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-plugin-locator.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-plugins-handler.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-shutdown-handler.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-version-loader.php (added)
-
tags/1.1.0/vendor/automattic/jetpack-autoloader/src/class-version-selector.php (added)
-
tags/1.1.0/vendor/composer (added)
-
tags/1.1.0/vendor/composer/ClassLoader.php (added)
-
tags/1.1.0/vendor/composer/InstalledVersions.php (added)
-
tags/1.1.0/vendor/composer/LICENSE (added)
-
tags/1.1.0/vendor/composer/autoload_classmap.php (added)
-
tags/1.1.0/vendor/composer/autoload_namespaces.php (added)
-
tags/1.1.0/vendor/composer/autoload_psr4.php (added)
-
tags/1.1.0/vendor/composer/autoload_real.php (added)
-
tags/1.1.0/vendor/composer/autoload_static.php (added)
-
tags/1.1.0/vendor/composer/installed.json (added)
-
tags/1.1.0/vendor/composer/installed.php (added)
-
tags/1.1.0/vendor/composer/jetpack_autoload_classmap.php (added)
-
tags/1.1.0/vendor/composer/platform_check.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-autoloader-handler.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-autoloader-locator.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-autoloader.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-container.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-hook-manager.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-latest-autoloader-guard.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-manifest-reader.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-path-processor.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-php-autoloader.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-plugin-locator.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-plugins-handler.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-shutdown-handler.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-version-loader.php (added)
-
tags/1.1.0/vendor/jetpack-autoloader/class-version-selector.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/build/editor-scripts.asset.php (modified) (1 diff)
-
trunk/build/editor-scripts.js (modified) (1 diff)
-
trunk/build/editor-scripts.js.map (modified) (1 diff)
-
trunk/build/marquee/block.json (modified) (3 diffs)
-
trunk/build/marquee/index-rtl.css (added)
-
trunk/build/marquee/index.asset.php (modified) (1 diff)
-
trunk/build/marquee/index.css (added)
-
trunk/build/marquee/index.css.map (added)
-
trunk/build/marquee/index.js (modified) (1 diff)
-
trunk/build/marquee/index.js.map (modified) (1 diff)
-
trunk/build/marquee/render.php (modified) (2 diffs)
-
trunk/build/marquee/view-rtl.css (modified) (1 diff)
-
trunk/build/marquee/view.asset.php (modified) (1 diff)
-
trunk/build/marquee/view.css (modified) (1 diff)
-
trunk/build/marquee/view.css.map (modified) (1 diff)
-
trunk/build/marquee/view.js.map (modified) (1 diff)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/Blocks.php (modified) (9 diffs)
-
trunk/includes/Common.php (modified) (8 diffs)
-
trunk/includes/Plugin.php (modified) (4 diffs)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/languages/marquee-block.pot (modified) (3 diffs)
-
trunk/marquee-block.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/autoload_packages.php (modified) (1 diff)
-
trunk/vendor/automattic/jetpack-autoloader/CHANGELOG.md (modified) (2 diffs)
-
trunk/vendor/automattic/jetpack-autoloader/composer.json (modified) (3 diffs)
-
trunk/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php (modified) (1 diff)
-
trunk/vendor/automattic/jetpack-autoloader/src/class-latest-autoloader-guard.php (modified) (3 diffs)
-
trunk/vendor/automattic/jetpack-autoloader/src/class-php-autoloader.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (3 diffs)
-
trunk/vendor/composer/jetpack_autoload_classmap.php (modified) (2 diffs)
-
trunk/vendor/composer/platform_check.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-autoloader-handler.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-autoloader-locator.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-autoloader.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-container.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-hook-manager.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-latest-autoloader-guard.php (modified) (4 diffs)
-
trunk/vendor/jetpack-autoloader/class-manifest-reader.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-path-processor.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-php-autoloader.php (modified) (2 diffs)
-
trunk/vendor/jetpack-autoloader/class-plugin-locator.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-plugins-handler.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-shutdown-handler.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-version-loader.php (modified) (1 diff)
-
trunk/vendor/jetpack-autoloader/class-version-selector.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
marquee-block/assets/blueprints/blueprint.json
r3174808 r3214417 21 21 { 22 22 "step": "runPHP", 23 "code": "<?php require_once('wordpress/wp-load.php'); wp_insert_post(array('post_title' => 'Marquee Block Example', 'post_status' => 'publish', 'post_type'=>'page', 'post_content'=>'<!-- wp: storepress/marquee --><!-- wp:paragraph {\"align\":\"center\"} --><p class=\"has-text-align-center\">Marquee block adds a touch of movement and interactivity to your site and help to capture attention and engage your site visitors in a unique way.</p><!-- /wp:paragraph --><!-- /wp:storepress/marquee-->')); ?>"23 "code": "<?php require_once('wordpress/wp-load.php'); wp_insert_post(array('post_title' => 'Marquee Block Example', 'post_status' => 'publish', 'post_type'=>'page', 'post_content'=>'<!-- wp:group {\"align\":\"wide\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group alignwide\"><!-- wp:heading -->\n<h2 class=\"wp-block-heading\">Image Marquee</h2>\n<!-- /wp:heading -->\n\n<!-- wp:storepress/marquee {\"animationSpeed\":\"20s\",\"gap\":\"1.2rem\",\"overlayColor\":\"#f9f9f9\",\"align\":\"wide\"} -->\n<!-- wp:group {\"layout\":{\"type\":\"grid\",\"columnCount\":5,\"minimumColumnWidth\":null}} -->\n<div class=\"wp-block-group\"><!-- wp:image {\"aspectRatio\":\"1\",\"scale\":\"cover\",\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"style\":{\"border\":{\"radius\":\"5px\"}}} -->\n<figure class=\"wp-block-image size-large has-custom-border\"><img src=\"https://woocommercecore.mystagingwebsite.com/wp-content/uploads/2017/12/sunglasses-2.jpg\" style=\"border-radius:5px;aspect-ratio:1;object-fit:cover\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"aspectRatio\":\"1\",\"scale\":\"cover\",\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"style\":{\"border\":{\"radius\":\"5px\"}}} -->\n<figure class=\"wp-block-image size-large has-custom-border\"><img src=\"https://woocommercecore.mystagingwebsite.com/wp-content/uploads/2017/12/pennant-1.jpg\" style=\"border-radius:5px;aspect-ratio:1;object-fit:cover\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"aspectRatio\":\"1\",\"scale\":\"cover\",\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"style\":{\"border\":{\"radius\":\"5px\"}}} -->\n<figure class=\"wp-block-image size-large has-custom-border\"><img src=\"https://woocommercecore.mystagingwebsite.com/wp-content/uploads/2017/12/cap-2.jpg\" style=\"border-radius:5px;aspect-ratio:1;object-fit:cover\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"aspectRatio\":\"1\",\"scale\":\"cover\",\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"style\":{\"border\":{\"radius\":\"5px\"}}} -->\n<figure class=\"wp-block-image size-large has-custom-border\"><img src=\"https://woocommercecore.mystagingwebsite.com/wp-content/uploads/2017/12/belt-2.jpg\" style=\"border-radius:5px;aspect-ratio:1;object-fit:cover\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"aspectRatio\":\"1\",\"scale\":\"cover\",\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"style\":{\"border\":{\"radius\":\"5px\"}}} -->\n<figure class=\"wp-block-image size-large has-custom-border\"><img src=\"https://woocommercecore.mystagingwebsite.com/wp-content/uploads/2017/12/beanie-2.jpg\" style=\"border-radius:5px;aspect-ratio:1;object-fit:cover\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:group -->\n<!-- /wp:storepress/marquee --></div>\n<!-- /wp:group -->\n\n<!-- wp:group {\"align\":\"wide\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group alignwide\"><!-- wp:heading -->\n<h2 class=\"wp-block-heading\">Text Marquee</h2>\n<!-- /wp:heading -->\n\n<!-- wp:group {\"align\":\"wide\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|base-2\"}}}},\"backgroundColor\":\"accent-3\",\"textColor\":\"base-2\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group alignwide has-base-2-color has-accent-3-background-color has-text-color has-background has-link-color\"><!-- wp:storepress/marquee {\"animationSpeed\":\"20s\",\"gap\":\"0rem\",\"overlayColor\":\"#f9f9f9\",\"align\":\"wide\"} -->\n<!-- wp:group {\"style\":{\"spacing\":{\"padding\":{\"top\":\"var:preset|spacing|10\",\"bottom\":\"var:preset|spacing|10\",\"left\":\"var:preset|spacing|10\",\"right\":\"var:preset|spacing|10\"}}},\"layout\":{\"type\":\"grid\",\"columnCount\":4,\"minimumColumnWidth\":null}} -->\n<div class=\"wp-block-group\" style=\"padding-top:var(--wp--preset--spacing--10);padding-right:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10);padding-left:var(--wp--preset--spacing--10)\"><!-- wp:paragraph {\"align\":\"center\",\"style\":{\"layout\":{\"columnSpan\":1,\"rowSpan\":1}}} -->\n<p class=\"has-text-align-center\"><strong>Eagle</strong></p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"layout\":{\"columnSpan\":1,\"rowSpan\":1}}} -->\n<p class=\"has-text-align-center\"><strong>Peacock</strong></p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"layout\":{\"columnSpan\":1,\"rowSpan\":1}}} -->\n<p class=\"has-text-align-center\"><strong>Owl</strong></p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"layout\":{\"columnSpan\":1,\"rowSpan\":1}}} -->\n<p class=\"has-text-align-center\"><strong>Kingfisher</strong></p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group -->\n<!-- /wp:storepress/marquee --></div>\n<!-- /wp:group --></div>\n<!-- /wp:group -->')); ?>" 24 24 } 25 25 ], -
marquee-block/trunk/README.txt
r3174808 r3214417 3 3 Tags: block, marquee, scroller, image, fse 4 4 Requires at least: 6.4 5 Tested up to: 6. 65 Tested up to: 6.7 6 6 Requires PHP: 7.4 7 Stable tag: 1. 0.47 Stable tag: 1.1.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 39 39 == Changelog == 40 40 41 = 1.1.0 - 2024-12-29 = 42 43 - Change settings and layout. 44 - Breaking Changed applied. 45 41 46 = 1.0.4 - 2024-10-24 = 42 47 - Update packages. -
marquee-block/trunk/build/editor-scripts.asset.php
r3174808 r3214417 1 <?php return array('dependencies' => array('react', ' react-jsx-runtime', 'wp-blocks', 'wp-element', 'wp-primitives'), 'version' => '960223fa7f5061cbaf96');1 <?php return array('dependencies' => array('react', 'wp-blocks', 'wp-element', 'wp-primitives'), 'version' => '799644dafe0be69eb271'); -
marquee-block/trunk/build/editor-scripts.js
r3174808 r3214417 1 (()=>{"use strict";const e=window. wp.element,t=(0,e.forwardRef)((function({icon:t,size:n=24,...o},i){return(0,e.cloneElement)(t,{width:n,height:n,...o,ref:i})})),n=window.wp.blocks,o=window.React,i=window.wp.primitives,w=(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)("polygon",{fill:"#394fa1",points:"21.5 14.7 7.2 6.5 7.2 6.5 12 3.7 19.2 7.9 19.2 10.6 21.5 12 21.5 6.5 12 1 2.5 6.5 19.1 16.1 16.7 17.5 2.5 9.3 2.5 12 16.8 20.2 21.5 17.5 21.5 14.7"}),(0,o.createElement)("polygon",{fill:"#3cb44a",points:"2.5 14.8 2.5 17.5 12 23 14.4 21.6 2.5 14.8"})),c=window.ReactJSXRuntime;(0,n.updateCategory)("storepress",{icon:(0,c.jsx)(t,{icon:w})})})();1 (()=>{"use strict";const e=window.React,t=window.wp.element,n=(0,t.forwardRef)((function({icon:e,size:n=24,...o},i){return(0,t.cloneElement)(e,{width:n,height:n,...o,ref:i})})),o=window.wp.blocks,i=window.wp.primitives,w=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("polygon",{fill:"#394fa1",points:"21.5 14.7 7.2 6.5 7.2 6.5 12 3.7 19.2 7.9 19.2 10.6 21.5 12 21.5 6.5 12 1 2.5 6.5 19.1 16.1 16.7 17.5 2.5 9.3 2.5 12 16.8 20.2 21.5 17.5 21.5 14.7"}),(0,e.createElement)("polygon",{fill:"#3cb44a",points:"2.5 14.8 2.5 17.5 12 23 14.4 21.6 2.5 14.8"}));(0,o.updateCategory)("storepress",{icon:(0,e.createElement)(n,{icon:w})})})(); -
marquee-block/trunk/build/editor-scripts.js.map
r3174808 r3214417 1 {"version":3,"file":"editor-scripts.js","mappings":";;;;;;;;;;;;;;;;;;AAAsC;AACtC;AACA;AACA;AAC4C;AAC5C,iEAAe,oDAAa,CAAC,sDAAG;AAChC;AACA;AACA,CAAC,EAAE,oDAAa;AAChB;AACA;AACA,CAAC,GAAG,oDAAa;AACjB;AACA;AACA,CAAC,EAAE;;;;;;;;;;;;;;;;ACdH;AACA;AACA;AAC8D;;AAE9D,eAAe,kCAAkC,4CAA4C;;AAE7F;AACA;AACA;AACA,WAAW,2CAA2C;AACtD;AACA;AACA,WAAW,2CAA2C;AACtD;AACA,YAAY,cAAc;AAC1B;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,SAAS,gEAAY;AACrB;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,iEAAe,8DAAU,MAAM,EAAC;AAChC;;;;;;;;;;AC9BA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;; ;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACwC;AACW;AACJ;AAAA;AAE/C,CAAC,YAAY;EACZC,iEAAc,CAAC,YAAY,EAAE;IAAEI,IAAI,eAAED,sDAAA,CAACJ,wDAAI;MAACK,IAAI,EAAEH,yDAAUA;IAAC,CAAE;EAAE,CAAC,CAAC;AACnE,CAAC,EAAE,CAAC,C","sources":["webpack://marquee-block/./node_modules/@storepress/icons/build-module/library/storepress.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/icon/index.js","webpack://marquee-block/external window \"React\"","webpack://marquee-block/external window \"ReactJSXRuntime\"","webpack://marquee-block/external window [\"wp\",\"blocks\"]","webpack://marquee-block/external window [\"wp\",\"element\"]","webpack://marquee-block/external window [\"wp\",\"primitives\"]","webpack://marquee-block/webpack/bootstrap","webpack://marquee-block/webpack/runtime/compat get default export","webpack://marquee-block/webpack/runtime/define property getters","webpack://marquee-block/webpack/runtime/hasOwnProperty shorthand","webpack://marquee-block/webpack/runtime/make namespace object","webpack://marquee-block/./src/editor-scripts.js"],"sourcesContent":["import { createElement } from \"react\";\n/**\n * External dependencies\n */\nimport { SVG } from '@wordpress/primitives';\nexport default createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(\"polygon\", {\n fill: \"#394fa1\",\n points: \"21.5 14.7 7.2 6.5 7.2 6.5 12 3.7 19.2 7.9 19.2 10.6 21.5 12 21.5 6.5 12 1 2.5 6.5 19.1 16.1 16.7 17.5 2.5 9.3 2.5 12 16.8 20.2 21.5 17.5 21.5 14.7\"\n}), createElement(\"polygon\", {\n fill: \"#3cb44a\",\n points: \"2.5 14.8 2.5 17.5 12 23 14.4 21.6 2.5 14.8\"\n}));","/**\n * WordPress dependencies\n */\nimport { cloneElement, forwardRef } from '@wordpress/element';\n\n/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */\n\n/**\n * Return an SVG icon.\n *\n * @param {IconProps} props icon is the SVG component to render\n * size is a number specifiying the icon size in pixels\n * Other props will be passed to wrapped SVG component\n * @param {import('react').ForwardedRef<HTMLElement>} ref The forwarded ref to the SVG element.\n *\n * @return {JSX.Element} Icon component\n */\nfunction Icon({\n icon,\n size = 24,\n ...props\n}, ref) {\n return cloneElement(icon, {\n width: size,\n height: size,\n ...props,\n ref\n });\n}\nexport default forwardRef(Icon);\n//# sourceMappingURL=index.js.map","module.exports = window[\"React\"];","module.exports = window[\"ReactJSXRuntime\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * External dependencies\n */\nimport { Icon } from '@wordpress/icons';\nimport { updateCategory } from '@wordpress/blocks';\nimport { storepress } from '@storepress/icons';\n\n(function () {\n\tupdateCategory('storepress', { icon: <Icon icon={storepress} /> });\n})();\n"],"names":["Icon","updateCategory","storepress","jsx","_jsx","icon"],"sourceRoot":""}1 {"version":3,"file":"editor-scripts.js","mappings":";;;;;;;;;;;;;;;;;;AAAsC;AACtC;AACA;AACA;AAC4C;AAC5C,iEAAe,oDAAa,CAAC,sDAAG;AAChC;AACA;AACA,CAAC,EAAE,oDAAa;AAChB;AACA;AACA,CAAC,GAAG,oDAAa;AACjB;AACA;AACA,CAAC,EAAE;;;;;;;;;;;;;;;;ACdH;AACA;AACA;AAC8D;;AAE9D,eAAe,kCAAkC,4CAA4C;;AAE7F;AACA;AACA;AACA,WAAW,2CAA2C;AACtD;AACA;AACA,WAAW,2CAA2C;AACtD;AACA,YAAY,cAAc;AAC1B;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,SAAS,gEAAY;AACrB;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,iEAAe,8DAAU,MAAM,EAAC;AAChC;;;;;;;;;;AC9BA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACwC;AACW;AACJ;AAE/C,CAAC,YAAY;EACZC,iEAAc,CAAC,YAAY,EAAE;IAAEE,IAAI,EAAEC,oDAAA,CAACJ,wDAAI;MAACG,IAAI,EAAED,yDAAUA;IAAC,CAAE;EAAE,CAAC,CAAC;AACnE,CAAC,EAAE,CAAC,C","sources":["webpack://marquee-block/./node_modules/@storepress/icons/build-module/library/storepress.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/icon/index.js","webpack://marquee-block/external window \"React\"","webpack://marquee-block/external window [\"wp\",\"blocks\"]","webpack://marquee-block/external window [\"wp\",\"element\"]","webpack://marquee-block/external window [\"wp\",\"primitives\"]","webpack://marquee-block/webpack/bootstrap","webpack://marquee-block/webpack/runtime/compat get default export","webpack://marquee-block/webpack/runtime/define property getters","webpack://marquee-block/webpack/runtime/hasOwnProperty shorthand","webpack://marquee-block/webpack/runtime/make namespace object","webpack://marquee-block/./src/editor-scripts.js"],"sourcesContent":["import { createElement } from \"react\";\n/**\n * External dependencies\n */\nimport { SVG } from '@wordpress/primitives';\nexport default createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(\"polygon\", {\n fill: \"#394fa1\",\n points: \"21.5 14.7 7.2 6.5 7.2 6.5 12 3.7 19.2 7.9 19.2 10.6 21.5 12 21.5 6.5 12 1 2.5 6.5 19.1 16.1 16.7 17.5 2.5 9.3 2.5 12 16.8 20.2 21.5 17.5 21.5 14.7\"\n}), createElement(\"polygon\", {\n fill: \"#3cb44a\",\n points: \"2.5 14.8 2.5 17.5 12 23 14.4 21.6 2.5 14.8\"\n}));","/**\n * WordPress dependencies\n */\nimport { cloneElement, forwardRef } from '@wordpress/element';\n\n/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */\n\n/**\n * Return an SVG icon.\n *\n * @param {IconProps} props icon is the SVG component to render\n * size is a number specifiying the icon size in pixels\n * Other props will be passed to wrapped SVG component\n * @param {import('react').ForwardedRef<HTMLElement>} ref The forwarded ref to the SVG element.\n *\n * @return {JSX.Element} Icon component\n */\nfunction Icon({\n icon,\n size = 24,\n ...props\n}, ref) {\n return cloneElement(icon, {\n width: size,\n height: size,\n ...props,\n ref\n });\n}\nexport default forwardRef(Icon);\n//# sourceMappingURL=index.js.map","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * External dependencies\n */\nimport { Icon } from '@wordpress/icons';\nimport { updateCategory } from '@wordpress/blocks';\nimport { storepress } from '@storepress/icons';\n\n(function () {\n\tupdateCategory('storepress', { icon: <Icon icon={storepress} /> });\n})();\n"],"names":["Icon","updateCategory","storepress","icon","createElement"],"sourceRoot":""} -
marquee-block/trunk/build/marquee/block.json
r3152148 r3214417 3 3 "apiVersion": 3, 4 4 "name": "storepress/marquee", 5 "version": "1. 0.3",5 "version": "1.1.0", 6 6 "title": "Marquee", 7 7 "category": "storepress", … … 12 12 "default": "x" 13 13 }, 14 " direction": {14 "animationDirection": { 15 15 "type": "string", 16 "default": "left" 16 "enum": [ 17 "normal", 18 "reverse" 19 ], 20 "default": "normal" 17 21 }, 18 "pause": { 19 "type": "boolean", 20 "default": true 22 "hoverAnimationState": { 23 "type": "string", 24 "enum": [ 25 "paused", 26 "running" 27 ], 28 "default": "paused" 21 29 }, 22 30 "animationSpeed": { 23 "type": " integer",24 "default": 1031 "type": "string", 32 "default": "10s" 25 33 }, 26 34 "gap": { 27 "type": " integer",28 "default": 4035 "type": "string", 36 "default": "40px" 29 37 }, 30 " overlay": {31 "type": " boolean",32 " default": false33 },34 "whiteSpaceNoWrap": {35 "type": "boolean",36 "default": false38 "whiteSpace": { 39 "type": "string", 40 "enum": [ 41 "wrap", 42 "nowrap" 43 ], 44 "default": "wrap" 37 45 }, 38 46 "overlayColor": { 39 "type": "string", 40 "default": "#fff" 47 "type": "string" 41 48 } 42 49 }, … … 51 58 "textdomain": "marquee-block", 52 59 "editorScript": "file:./index.js", 60 "editorStyle": "file:./index.css", 53 61 "viewScript": "file:./view.js", 54 62 "viewStyle": "file:./view.css", -
marquee-block/trunk/build/marquee/index.asset.php
r3174808 r3214417 1 <?php return array('dependencies' => array('react -jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'e16fd1e8b17ea0dcea9f');1 <?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '738306c196c20628642c'); -
marquee-block/trunk/build/marquee/index.js
r3174808 r3214417 1 (()=>{ "use strict";const e=window.wp.blocks,o=window.wp.primitives,n=window.ReactJSXRuntime,l=(0,n.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(o.Path,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})}),t=window.wp.blockEditor,i=window.wp.i18n,r=window.wp.components,a=window.wp.element,s=(0,a.forwardRef)((function({icon:e,size:o=24,...n},l){return(0,a.cloneElement)(e,{width:o,height:o,...n,ref:l})})),c=(0,n.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(o.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})}),h=(0,n.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(o.Path,{d:"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z"})}),p=(0,n.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(o.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})}),x=(0,n.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(o.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})}),g=JSON.parse('{"UU":"storepress/marquee"}');(0,e.registerBlockType)(g.UU,{icon:l,edit:function({attributes:e,setAttributes:o}){const{orientation:l,direction:a,pause:g,animationSpeed:d,gap:w,overlay:m,overlayColor:u,whiteSpaceNoWrap:v}=e,j=(0,t.useBlockProps)(),_=(0,t.useInnerBlocksProps)({className:"wp-block-storepress-marquee__item"},{template:[["core/paragraph",{align:"center",content:"Marquee block adds a touch of movement and interactivity to your site and help to capture attention and engage your site visitors in a unique way."}]]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.InspectorControls,{children:(0,n.jsxs)(r.PanelBody,{title:(0,i.__)("Settings","marquee-block"),children:[(0,n.jsxs)(r.__experimentalToggleGroupControl,{label:(0,i.__)("Orientation","marquee-block"),value:l,onChange:e=>o({orientation:e}),isBlock:!0,children:[(0,n.jsx)(r.__experimentalToggleGroupControlOption,{value:"x",label:(0,n.jsx)(s,{icon:(0,n.jsx)("svg",{children:(0,n.jsx)("path",{transform:"rotate(45 12 12)",d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})})})},"x"),(0,n.jsx)(r.__experimentalToggleGroupControlOption,{value:"y",label:(0,n.jsx)(s,{icon:(0,n.jsx)("svg",{children:(0,n.jsx)("path",{transform:"rotate(135 12 12)",d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})})})},"y")]}),(0,n.jsxs)(r.__experimentalToggleGroupControl,{label:(0,i.__)("Animation Direction","marquee-block"),value:a,onChange:e=>o({direction:e}),isBlock:!0,children:[(0,n.jsx)(r.__experimentalToggleGroupControlOption,{value:"left",label:(0,n.jsx)(s,{icon:"x"===l?c:h,size:"30"})},"left"),(0,n.jsx)(r.__experimentalToggleGroupControlOption,{value:"right",label:(0,n.jsx)(s,{icon:"x"===l?p:x,size:"30"})},"right")]}),(0,n.jsx)(r.RangeControl,{initialPosition:10,value:d,label:(0,i.__)("Animation Speed","marquee-block"),help:(0,i.__)("Animation speed in seconds","marquee-block"),max:100,min:1,onChange:e=>o({animationSpeed:e})}),(0,n.jsx)(r.RangeControl,{initialPosition:40,value:w,label:(0,i.__)("Content Gap","marquee-block"),help:(0,i.__)("Content gap in PX","marquee-block"),max:200,min:0,step:5,onChange:e=>o({gap:e})}),(0,n.jsx)(r.ToggleControl,{label:(0,i.__)("Pause on hover","marquee-block"),checked:g,onChange:e=>o({pause:e})})]})}),(0,n.jsx)(t.InspectorControls,{group:"styles",children:(0,n.jsxs)(r.PanelBody,{title:(0,i.__)("Styles","marquee-block"),children:[(0,n.jsx)(r.ToggleControl,{label:(0,i.__)("Enable Overlay","marquee-block"),checked:m,onChange:e=>o({overlay:e})}),m&&(0,n.jsx)(r.ColorPicker,{defaultValue:u,onChange:e=>{o({overlayColor:e})}}),(0,n.jsx)(r.ToggleControl,{label:(0,i.__)("White Space - No Wrap","marquee-block"),checked:v,onChange:e=>o({whiteSpaceNoWrap:e})})]})}),(0,n.jsx)("div",{...j,children:(0,n.jsx)("div",{..._})})]})},save:()=>(0,n.jsx)(t.InnerBlocks.Content,{})})})();1 (()=>{var e={694:(e,t,n)=>{"use strict";var a=n(925);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,l,r){if(r!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var l=t[a]={exports:{}};return e[a](l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,t=window.wp.blocks,a=window.wp.primitives,o=window.ReactJSXRuntime,l=(0,o.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(a.Path,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})}),r=window.wp.blockEditor,i=window.wp.i18n,s=window.wp.components,u=window.wp.element,m=(0,u.forwardRef)((function({icon:e,size:t=24,...n},a){return(0,u.cloneElement)(e,{width:t,height:t,...n,ref:a})})),p=(0,o.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(a.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})}),c=(0,o.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(a.Path,{d:"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z"})}),d=(0,o.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(a.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})}),v=(0,o.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(a.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})});function g(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=g(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function x(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=g(e))&&(a&&(a+=" "),a+=t);return a}var _=n(556),h=n.n(_);const w=[{value:"%",label:"%",default:0,min:0,max:100,step:.1},{value:"px",label:"px",default:0,min:0,max:1e3,step:1},{value:"em",label:"em",default:0,min:0,max:50,step:.01},{value:"rem",label:"rem",default:0,min:0,max:50,step:.01},{value:"vw",label:"vw",default:0,min:0,max:100,step:.1},{value:"vh",label:"vh",default:0,min:0,max:100,step:.1},{value:"s",label:"s",default:0,min:0,max:120,step:.1},{value:"ms",label:"ms",default:0,min:0,max:12e4,step:100},{value:"fr",label:"fr",default:1,min:1,max:100,step:1}],b=[{fromUnits:["em","rem"],toUnits:["px"],operator:"*",digit:16},{fromUnits:["px"],toUnits:["em","rem"],operator:"/",digit:16},{fromUnits:["s"],toUnits:["ms"],operator:"*",digit:1e3},{fromUnits:["ms"],toUnits:["s"],operator:"/",digit:1e3}];function f({label:e,onChange:t,value:n,allowedUnits:a=["%","px","em","rem"],defaultUnits:l=w,convertUnits:r=b}){var i,m,p,c,d,v;const g=parseFloat(n),x=(0,u.useMemo)((()=>l.reduce(((e,t)=>(e[t.label]=t.default,e)),{})),[l]),_=(0,u.useMemo)((()=>l.reduce(((e,t)=>(e[t.label]=t,e)),{})),[l]),h=(0,s.__experimentalUseCustomUnits)({units:l,availableUnits:a,defaultValues:x}),f=(0,u.useMemo)((()=>(0,s.__experimentalParseQuantityAndUnitFromRawValue)(n,l)),[n,l])[1]||h[0]?.value||"px";return(0,o.jsx)(s.BaseControl,{label:e,className:"storepress-component-unit-range-control",children:(0,o.jsxs)(s.Flex,{children:[(0,o.jsx)(s.FlexItem,{isBlock:!0,children:(0,o.jsx)(s.__experimentalUnitControl,{value:n,units:h,onChange:t,onUnitChange:e=>{const[a,o]=(0,s.__experimentalParseQuantityAndUnitFromRawValue)(n,l),{unitValue:i,unitString:u}=function(e,t,n,a){if(e===t)return{unitName:e,unitValue:n,unitString:`${n}${e}`};for(const o of a){const{fromUnits:a,toUnits:l,operator:r,digit:i}=o;if(l.includes(e)&&a.includes(t)){if("/"===r){const t=(n/i).toFixed(2);return{unitName:e,unitValue:t,unitString:`${t}${e}`}}if("*"===r){const t=Math.round(n*i);return{unitName:e,unitValue:t,unitString:`${t}${e}`}}}}return{unitName:e,unitValue:n,unitString:`${n}${e}`}}(e,o,a,r);i>_[e]?.max?t(_[e]?.max+e):t(u)},min:null!==(i=_[f]?.min)&&void 0!==i?i:0,max:null!==(m=_[f]?.max)&&void 0!==m?m:100,step:null!==(p=_[f]?.step)&&void 0!==p?p:.1,size:"__unstable-large",label:e,hideLabelFromVision:!0})}),(0,o.jsx)(s.FlexItem,{isBlock:!0,children:(0,o.jsx)(s.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,o.jsx)(s.RangeControl,{__next40pxDefaultSize:!0,value:g,min:null!==(c=_[f]?.min)&&void 0!==c?c:0,max:null!==(d=_[f]?.max)&&void 0!==d?d:100,step:null!==(v=_[f]?.step)&&void 0!==v?v:.1,withInputField:!1,onChange:e=>{t([e,f].join(""))},label:e,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,renderTooltipContent:e=>`${e}${f}`})})})]})})}f.propTypes={label:h().string.isRequired,value:h().string.isRequired,onChange:h().func.isRequired,allowedUnits:h().array,defaultUnits:h().array,convertUnits:h().array};const y=f,C=JSON.parse('{"UU":"storepress/marquee"}');(0,t.registerBlockType)(C.UU,{icon:l,edit:function({attributes:t,setAttributes:n,clientId:a}){const{orientation:o,animationDirection:l,hoverAnimationState:u,animationSpeed:g,gap:_,overlayColor:h,whiteSpace:w}=t,b=(0,r.useBlockProps)({className:x({"has-overlay-color":h,"orientation-x":"x"===o,"orientation-y":"y"===o}),style:{"--overlay-color":null!=h?h:"transparent","--white-space":w}}),f=(0,r.__experimentalUseMultipleOriginColorsAndGradients)(),C=(0,r.useInnerBlocksProps)({className:"wp-block-storepress-marquee__item"},{template:[["core/paragraph",{align:"center",content:"Marquee block adds a touch of movement and interactivity to your site and help to capture attention and engage your site visitors in a unique way."}]]});return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(s.PanelBody,{title:(0,i.__)("Settings","marquee-block")},(0,e.createElement)(s.__experimentalToggleGroupControl,{label:(0,i.__)("Orientation","marquee-block"),value:o,onChange:e=>{n({orientation:e})},isBlock:!0},(0,e.createElement)(s.__experimentalToggleGroupControlOption,{value:"x",label:(0,e.createElement)(m,{icon:(0,e.createElement)("svg",null,(0,e.createElement)("path",{transform:"rotate(45 12 12)",d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"}))})}),(0,e.createElement)(s.__experimentalToggleGroupControlOption,{value:"y",label:(0,e.createElement)(m,{icon:(0,e.createElement)("svg",null,(0,e.createElement)("path",{transform:"rotate(135 12 12)",d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"}))})})),(0,e.createElement)(s.__experimentalToggleGroupControl,{label:(0,i.__)("Animation Direction","marquee-block"),value:l,onChange:e=>{n({animationDirection:e})},isBlock:!0},(0,e.createElement)(s.__experimentalToggleGroupControlOption,{value:"normal",label:(0,e.createElement)(m,{icon:"x"===o?p:c,size:"30"})}),(0,e.createElement)(s.__experimentalToggleGroupControlOption,{value:"reverse",label:(0,e.createElement)(m,{icon:"x"===o?d:v,size:"30"})})),(0,e.createElement)(s.__experimentalToggleGroupControl,{label:(0,i.__)("On Hover Animation","marquee-block"),value:u,onChange:e=>{n({hoverAnimationState:e})},isBlock:!0},(0,e.createElement)(s.__experimentalToggleGroupControlOption,{value:"paused",label:(0,i.__)("Pause","marquee-block")}),(0,e.createElement)(s.__experimentalToggleGroupControlOption,{value:"running",label:(0,i.__)("Continue","marquee-block")})),(0,e.createElement)(y,{label:(0,i.__)("Animation Speed","marquee-block"),onChange:e=>{n({animationSpeed:e})},value:g,allowedUnits:["s","ms"]})),(0,e.createElement)(s.PanelBody,{title:(0,i.__)("Style","marquee-block")},(0,e.createElement)(s.__experimentalToggleGroupControl,{label:(0,i.__)("White Space","marquee-block"),value:w,onChange:e=>{n({whiteSpace:e})},isBlock:!0},(0,e.createElement)(s.__experimentalToggleGroupControlOption,{value:"wrap",label:(0,i.__)("Wrap","marquee-block")}),(0,e.createElement)(s.__experimentalToggleGroupControlOption,{value:"nowrap",label:(0,i.__)("No Wrap","marquee-block")})),(0,e.createElement)(y,{label:(0,i.__)("Content Gap","marquee-block"),onChange:e=>{n({gap:e})},value:_,allowedUnits:["%","px","em","rem"]}))),(0,e.createElement)(r.InspectorControls,{group:"color"},(0,e.createElement)(r.__experimentalColorGradientSettingsDropdown,{panelId:a,settings:[{label:(0,i.__)("Overlay color","marquee-block"),colorValue:h,onColorChange:e=>{n({overlayColor:e})}}],...f})),(0,e.createElement)("div",{...b},(0,e.createElement)("div",{...C})))},save:()=>(0,e.createElement)(r.InnerBlocks.Content,null)})})()})(); -
marquee-block/trunk/build/marquee/index.js.map
r3174808 r3214417 1 {"version":3,"file":"marquee/index.js","mappings":";;;;;;;;;;;;;;;; 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","sources":["webpack://marquee-block/./node_modules/@wordpress/icons/build-module/icon/index.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/library/arrow-down.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/library/arrow-left.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/library/arrow-right.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/library/arrow-up.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/library/text-horizontal.js","webpack://marquee-block/./src/marquee/edit.js","webpack://marquee-block/external window \"ReactJSXRuntime\"","webpack://marquee-block/external window [\"wp\",\"blockEditor\"]","webpack://marquee-block/external window [\"wp\",\"blocks\"]","webpack://marquee-block/external window [\"wp\",\"components\"]","webpack://marquee-block/external window [\"wp\",\"element\"]","webpack://marquee-block/external window [\"wp\",\"i18n\"]","webpack://marquee-block/external window [\"wp\",\"primitives\"]","webpack://marquee-block/webpack/bootstrap","webpack://marquee-block/webpack/runtime/compat get default export","webpack://marquee-block/webpack/runtime/define property getters","webpack://marquee-block/webpack/runtime/hasOwnProperty shorthand","webpack://marquee-block/webpack/runtime/make namespace object","webpack://marquee-block/./src/marquee/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { cloneElement, forwardRef } from '@wordpress/element';\n\n/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */\n\n/**\n * Return an SVG icon.\n *\n * @param {IconProps} props icon is the SVG component to render\n * size is a number specifiying the icon size in pixels\n * Other props will be passed to wrapped SVG component\n * @param {import('react').ForwardedRef<HTMLElement>} ref The forwarded ref to the SVG element.\n *\n * @return {JSX.Element} Icon component\n */\nfunction Icon({\n icon,\n size = 24,\n ...props\n}, ref) {\n return cloneElement(icon, {\n width: size,\n height: size,\n ...props,\n ref\n });\n}\nexport default forwardRef(Icon);\n//# sourceMappingURL=index.js.map","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst arrowDown = /*#__PURE__*/_jsx(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n children: /*#__PURE__*/_jsx(Path, {\n d: \"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z\"\n })\n});\nexport default arrowDown;\n//# sourceMappingURL=arrow-down.js.map","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst arrowLeft = /*#__PURE__*/_jsx(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n children: /*#__PURE__*/_jsx(Path, {\n d: \"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z\"\n })\n});\nexport default arrowLeft;\n//# sourceMappingURL=arrow-left.js.map","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst arrowRight = /*#__PURE__*/_jsx(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n children: /*#__PURE__*/_jsx(Path, {\n d: \"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z\"\n })\n});\nexport default arrowRight;\n//# sourceMappingURL=arrow-right.js.map","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst arrowUp = /*#__PURE__*/_jsx(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n children: /*#__PURE__*/_jsx(Path, {\n d: \"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z\"\n })\n});\nexport default arrowUp;\n//# sourceMappingURL=arrow-up.js.map","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst textHorizontal = /*#__PURE__*/_jsx(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n children: /*#__PURE__*/_jsx(Path, {\n d: \"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z\"\n })\n});\nexport default textHorizontal;\n//# sourceMappingURL=text-horizontal.js.map","/**\n * External dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\tInspectorControls,\n\tuseBlockProps,\n\tuseInnerBlocksProps,\n} from '@wordpress/block-editor';\nimport {\n\tPanelBody,\n\tToggleControl,\n\tRangeControl,\n\tColorPicker,\n\t__experimentalToggleGroupControl as ToggleGroupControl, // eslint-disable-line @wordpress/no-unsafe-wp-apis\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption, // eslint-disable-line @wordpress/no-unsafe-wp-apis\n} from '@wordpress/components';\nimport {\n\tIcon,\n\tarrowLeft,\n\tarrowRight,\n\tarrowUp,\n\tarrowDown,\n} from '@wordpress/icons';\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst {\n\t\torientation,\n\t\tdirection,\n\t\tpause,\n\t\tanimationSpeed,\n\t\tgap,\n\t\toverlay,\n\t\toverlayColor,\n\t\twhiteSpaceNoWrap,\n\t} = attributes;\n\n\tconst blockProps = useBlockProps();\n\n\tconst innerBlockProps = useInnerBlocksProps(\n\t\t{\n\t\t\tclassName: 'wp-block-storepress-marquee__item',\n\t\t},\n\t\t{\n\t\t\ttemplate: [\n\t\t\t\t[\n\t\t\t\t\t'core/paragraph',\n\t\t\t\t\t{\n\t\t\t\t\t\talign: 'center',\n\t\t\t\t\t\tcontent:\n\t\t\t\t\t\t\t'Marquee block adds a touch of movement and interactivity to your site and help to capture attention and engage your site visitors in a unique way.',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t],\n\t\t}\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<InspectorControls>\n\t\t\t\t<PanelBody title={__('Settings', 'marquee-block')}>\n\t\t\t\t\t<ToggleGroupControl\n\t\t\t\t\t\tlabel={__('Orientation', 'marquee-block')}\n\t\t\t\t\t\tvalue={orientation}\n\t\t\t\t\t\tonChange={(value) =>\n\t\t\t\t\t\t\tsetAttributes({ orientation: value })\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisBlock\n\t\t\t\t\t>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tkey=\"x\"\n\t\t\t\t\t\t\tvalue=\"x\"\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\t\t\t<svg>\n\t\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\t\ttransform=\"rotate(45 12 12)\"\n\t\t\t\t\t\t\t\t\t\t\t\td=\"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z\"\n\t\t\t\t\t\t\t\t\t\t\t></path>\n\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tkey=\"y\"\n\t\t\t\t\t\t\tvalue=\"y\"\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\t\t\t<svg>\n\t\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\t\ttransform=\"rotate(135 12 12)\"\n\t\t\t\t\t\t\t\t\t\t\t\td=\"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z\"\n\t\t\t\t\t\t\t\t\t\t\t></path>\n\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToggleGroupControl>\n\n\t\t\t\t\t<ToggleGroupControl\n\t\t\t\t\t\tlabel={__('Animation Direction', 'marquee-block')}\n\t\t\t\t\t\tvalue={direction}\n\t\t\t\t\t\tonChange={(value) =>\n\t\t\t\t\t\t\tsetAttributes({ direction: value })\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisBlock\n\t\t\t\t\t>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tkey=\"left\"\n\t\t\t\t\t\t\tvalue=\"left\"\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\t\t\torientation === 'x'\n\t\t\t\t\t\t\t\t\t\t\t? arrowLeft\n\t\t\t\t\t\t\t\t\t\t\t: arrowUp\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsize=\"30\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tkey=\"right\"\n\t\t\t\t\t\t\tvalue=\"right\"\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\t\t\torientation === 'x'\n\t\t\t\t\t\t\t\t\t\t\t? arrowRight\n\t\t\t\t\t\t\t\t\t\t\t: arrowDown\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsize=\"30\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToggleGroupControl>\n\n\t\t\t\t\t<RangeControl\n\t\t\t\t\t\tinitialPosition={10}\n\t\t\t\t\t\tvalue={animationSpeed}\n\t\t\t\t\t\tlabel={__('Animation Speed', 'marquee-block')}\n\t\t\t\t\t\thelp={__('Animation speed in seconds', 'marquee-block')}\n\t\t\t\t\t\tmax={100}\n\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\tonChange={(value) =>\n\t\t\t\t\t\t\tsetAttributes({ animationSpeed: value })\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<RangeControl\n\t\t\t\t\t\tinitialPosition={40}\n\t\t\t\t\t\tvalue={gap}\n\t\t\t\t\t\tlabel={__('Content Gap', 'marquee-block')}\n\t\t\t\t\t\thelp={__('Content gap in PX', 'marquee-block')}\n\t\t\t\t\t\tmax={200}\n\t\t\t\t\t\tmin={0}\n\t\t\t\t\t\tstep={5}\n\t\t\t\t\t\tonChange={(value) => setAttributes({ gap: value })}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\tlabel={__('Pause on hover', 'marquee-block')}\n\t\t\t\t\t\tchecked={pause}\n\t\t\t\t\t\tonChange={(value) => setAttributes({ pause: value })}\n\t\t\t\t\t/>\n\t\t\t\t</PanelBody>\n\t\t\t</InspectorControls>\n\n\t\t\t<InspectorControls group=\"styles\">\n\t\t\t\t<PanelBody title={__('Styles', 'marquee-block')}>\n\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\tlabel={__('Enable Overlay', 'marquee-block')}\n\t\t\t\t\t\tchecked={overlay}\n\t\t\t\t\t\tonChange={(value) => setAttributes({ overlay: value })}\n\t\t\t\t\t/>\n\n\t\t\t\t\t{overlay && (\n\t\t\t\t\t\t<ColorPicker\n\t\t\t\t\t\t\tdefaultValue={overlayColor}\n\t\t\t\t\t\t\tonChange={(value) => {\n\t\t\t\t\t\t\t\tsetAttributes({ overlayColor: value });\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\tlabel={__('White Space - No Wrap', 'marquee-block')}\n\t\t\t\t\t\tchecked={whiteSpaceNoWrap}\n\t\t\t\t\t\tonChange={(value) =>\n\t\t\t\t\t\t\tsetAttributes({ whiteSpaceNoWrap: value })\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t</PanelBody>\n\t\t\t</InspectorControls>\n\n\t\t\t<div {...blockProps}>\n\t\t\t\t<div {...innerBlockProps} />\n\t\t\t</div>\n\t\t</>\n\t);\n}\n","module.exports = window[\"ReactJSXRuntime\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * External dependencies\n */\nimport { registerBlockType } from '@wordpress/blocks';\nimport { textHorizontal as icon } from '@wordpress/icons';\nimport { InnerBlocks } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport Edit from './edit';\nimport metadata from './block.json';\n\n/**\n * Every block starts by registering a new block type definition.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\n */\nregisterBlockType(metadata.name, {\n\t/**\n\t * @see ./edit.js\n\t */\n\ticon,\n\tedit: Edit,\n\tsave: () => <InnerBlocks.Content />,\n});\n"],"names":["__","InspectorControls","useBlockProps","useInnerBlocksProps","PanelBody","ToggleControl","RangeControl","ColorPicker","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","Icon","arrowLeft","arrowRight","arrowUp","arrowDown","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","orientation","direction","pause","animationSpeed","gap","overlay","overlayColor","whiteSpaceNoWrap","blockProps","innerBlockProps","className","template","align","content","children","title","label","value","onChange","isBlock","icon","transform","d","size","initialPosition","help","max","min","step","checked","group","defaultValue","registerBlockType","textHorizontal","InnerBlocks","metadata","name","edit","save","Content"],"sourceRoot":""}1 {"version":3,"file":"marquee/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AAC6C;AASqE;AAC/E;AACoB;;AAEvD;AACA;;AAEA;AACA,aAAa,QAAQ;AACrB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB;;AAEA,WAAW,iBAAiB;AACmC;AACxD;AACP;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA,aAAa,QAAQ;AACrB,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB;;AAEA,WAAW,iBAAiB;AACrB;AACP;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,CAAC;AACM;AACP;AACA;AACA;AACA;AACA,qBAAqB,aAAa,EAAE,QAAQ;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS,EAAE,QAAQ;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,SAAS,EAAE,QAAQ;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,aAAa,EAAE,QAAQ;AAC1C;AACA;;AAEA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA,WAAW,iBAAiB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,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,WAAW;AACtB;AACA;AACA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6GAA6G;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;;AAEA;;;;;;;;;;;;ACtGA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,cAAc,mBAAO,CAAC,0EAAU;AAChC,aAAa,mBAAO,CAAC,4DAAe;;AAEpC,2BAA2B,mBAAO,CAAC,yFAA4B;AAC/D,UAAU,mBAAO,CAAC,uDAAW;AAC7B,qBAAqB,mBAAO,CAAC,qEAAkB;;AAE/C;;AAEA,IAAI,IAAqC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,8BAA8B;AAC9B,QAAQ;AACR;AACA;AACA;AACA;AACA,+BAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,4BAA4B;AAC5B,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,SAAS,KAAqC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,sBAAsB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,IAAqC;AAC/C;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB,2BAA2B;AACjD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM,KAAqC,4FAA4F,CAAM;AAC7I;AACA;;AAEA,oBAAoB,gCAAgC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB,gCAAgC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iHAAiH;AACjH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;ACjmBA;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAI,IAAqC;AACzC,gBAAgB,mBAAO,CAAC,0EAAU;;AAElC;AACA;AACA;AACA,mBAAmB,mBAAO,CAAC,uFAA2B;AACtD,EAAE,KAAK,EAIN;;;;;;;;;;;;AClBD;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;;AAEA;;;;;;;;;;;ACXA;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;;;AAIb,IAAI,IAAqC;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA2E;AAC3E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;;AAEjD;AACA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB;AACjB,sBAAsB;AACtB,uBAAuB;AACvB,uBAAuB;AACvB,eAAe;AACf,kBAAkB;AAClB,gBAAgB;AAChB,YAAY;AACZ,YAAY;AACZ,cAAc;AACd,gBAAgB;AAChB,kBAAkB;AAClB,gBAAgB;AAChB,mBAAmB;AACnB,wBAAwB;AACxB,yBAAyB;AACzB,yBAAyB;AACzB,iBAAiB;AACjB,oBAAoB;AACpB,kBAAkB;AAClB,cAAc;AACd,cAAc;AACd,gBAAgB;AAChB,kBAAkB;AAClB,oBAAoB;AACpB,kBAAkB;AAClB,0BAA0B;AAC1B,cAAc;AACd,GAAG;AACH;;;;;;;;;;;;ACpLa;;AAEb,IAAI,KAAqC,EAAE,EAE1C,CAAC;AACF,EAAE,wJAAyD;AAC3D;;;;;;;;;;;;ACNA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;ACAA,cAAc,aAAa,+CAA+C,gDAAgD,eAAe,QAAQ,IAAI,0CAA0C,yCAAyC,SAAgB,gBAAgB,wCAAwC,IAAI,mDAAmD,SAAS,iEAAe,IAAI;;;;;;;;;;;;;;;;;UCAnY;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACsD;AACI;AACJ;;AAEtD;AACA;AACA;AAC0B;AACU;;AAEpC;AACA;AACA;AACA;AACA;AACA6B,oEAAiB,CAACG,6CAAa,EAAE;EAChC;AACD;AACA;EACCb,IAAI;EACJe,IAAI,EAAEjD,6CAAI;EACVkD,IAAI,EAAEA,CAAA,KAAMvB,oDAAA,CAACmB,gEAAW,CAACK,OAAO,MAAE;AACnC,CAAC,CAAC,C","sources":["webpack://marquee-block/./node_modules/@storepress/components/build-module/unit-range-control/index.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/icon/index.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/library/arrow-down.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/library/arrow-left.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/library/arrow-right.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/library/arrow-up.js","webpack://marquee-block/./node_modules/@wordpress/icons/build-module/library/text-horizontal.js","webpack://marquee-block/./src/marquee/edit.js","webpack://marquee-block/./src/marquee/editor.scss?6fea","webpack://marquee-block/./node_modules/object-assign/index.js","webpack://marquee-block/./node_modules/prop-types/checkPropTypes.js","webpack://marquee-block/./node_modules/prop-types/factoryWithTypeCheckers.js","webpack://marquee-block/./node_modules/prop-types/index.js","webpack://marquee-block/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://marquee-block/./node_modules/prop-types/lib/has.js","webpack://marquee-block/./node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","webpack://marquee-block/./node_modules/prop-types/node_modules/react-is/index.js","webpack://marquee-block/external window \"React\"","webpack://marquee-block/external window \"ReactJSXRuntime\"","webpack://marquee-block/external window [\"wp\",\"blockEditor\"]","webpack://marquee-block/external window [\"wp\",\"blocks\"]","webpack://marquee-block/external window [\"wp\",\"components\"]","webpack://marquee-block/external window [\"wp\",\"element\"]","webpack://marquee-block/external window [\"wp\",\"i18n\"]","webpack://marquee-block/external window [\"wp\",\"primitives\"]","webpack://marquee-block/./node_modules/clsx/dist/clsx.mjs","webpack://marquee-block/webpack/bootstrap","webpack://marquee-block/webpack/runtime/compat get default export","webpack://marquee-block/webpack/runtime/define property getters","webpack://marquee-block/webpack/runtime/hasOwnProperty shorthand","webpack://marquee-block/webpack/runtime/make namespace object","webpack://marquee-block/./src/marquee/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useMemo } from '@wordpress/element';\nimport { BaseControl, RangeControl, Flex, FlexItem,\n// eslint-disable-next-line @wordpress/no-unsafe-wp-apis\n__experimentalSpacer as Spacer,\n// eslint-disable-next-line @wordpress/no-unsafe-wp-apis\n__experimentalUseCustomUnits as useCustomUnits,\n// eslint-disable-next-line @wordpress/no-unsafe-wp-apis\n__experimentalUnitControl as UnitControl,\n// eslint-disable-next-line @wordpress/no-unsafe-wp-apis\n__experimentalParseQuantityAndUnitFromRawValue as parseQuantityAndUnitFromRawValue } from '@wordpress/components';\nimport PropTypes from 'prop-types';\nimport SearchListControl from '../search-list-control';\n\n// @see: https://github.com/WordPress/gutenberg/blob/trunk/packages/components/src/unit-control/utils.ts\n// @see: https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/src/components/height-control/index.js\n\n/**\n * @typedef {Object} availableUnit - Type 'availableUnit'\n * @property {string} value - Unit Key.\n * @property {string} label - Unit Label.\n * @property {number} default - Unit Default Value\n * @property {number} min - Unit Minimum Value\n * @property {number} max - Unit Maximum Value\n * @property {number} step - Unit Step\n */\n\n/** @type {availableUnit[]} */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const availableUnits = [{\n value: '%',\n label: '%',\n default: 0,\n min: 0,\n max: 100,\n step: 0.1\n}, {\n value: 'px',\n label: 'px',\n default: 0,\n min: 0,\n max: 1000,\n step: 1\n}, {\n value: 'em',\n label: 'em',\n default: 0,\n min: 0,\n max: 50,\n step: 0.01\n}, {\n value: 'rem',\n label: 'rem',\n default: 0,\n min: 0,\n max: 50,\n step: 0.01\n}, {\n value: 'vw',\n label: 'vw',\n default: 0,\n min: 0,\n max: 100,\n step: 0.1\n}, {\n value: 'vh',\n label: 'vh',\n default: 0,\n min: 0,\n max: 100,\n step: 0.1\n}, {\n value: 's',\n label: 's',\n default: 0,\n min: 0,\n max: 120,\n step: 0.1\n}, {\n value: 'ms',\n label: 'ms',\n default: 0,\n min: 0,\n max: 120000,\n step: 100\n}, {\n value: 'fr',\n label: 'fr',\n default: 1,\n min: 1,\n max: 100,\n step: 1\n}];\n\n/**\n * @typedef {Object} unitOperation - Type 'unitOperation'\n * @property {string[]} fromUnits - Convert from unit array.\n * @property {string[]} toUnits - Convert to unit array\n * @property {string} operator - Conversion operator\n * @property {number} digit - Conversion digit\n */\n\n/** @type {unitOperation[]} */\nexport const unitOperations = [{\n fromUnits: ['em', 'rem'],\n toUnits: ['px'],\n operator: '*',\n digit: 16\n}, {\n fromUnits: ['px'],\n toUnits: ['em', 'rem'],\n operator: '/',\n digit: 16\n}, {\n fromUnits: ['s'],\n toUnits: ['ms'],\n operator: '*',\n digit: 1000\n}, {\n fromUnits: ['ms'],\n toUnits: ['s'],\n operator: '/',\n digit: 1000\n}];\nexport function unitConverter(newUnit, oldUnit, currentValue, operationLogics) {\n if (newUnit === oldUnit) {\n return {\n unitName: newUnit,\n unitValue: currentValue,\n unitString: `${currentValue}${newUnit}`\n };\n }\n for (const operation of operationLogics) {\n const {\n fromUnits,\n toUnits,\n operator,\n digit\n } = operation;\n if (toUnits.includes(newUnit) && fromUnits.includes(oldUnit)) {\n if (operator === '/') {\n const newValue = (currentValue / digit).toFixed(2);\n return {\n unitName: newUnit,\n unitValue: newValue,\n unitString: `${newValue}${newUnit}`\n };\n }\n if (operator === '*') {\n const newValue = Math.round(currentValue * digit);\n return {\n unitName: newUnit,\n unitValue: newValue,\n unitString: `${newValue}${newUnit}`\n };\n }\n }\n }\n return {\n unitName: newUnit,\n unitValue: currentValue,\n unitString: `${currentValue}${newUnit}`\n };\n}\n\n/**\n * @callback onChange\n * @param {string} value\n * @return {void}\n */\n\n/**\n * UnitRangeControl renders a linked unit control and range control.\n *\n *\n * @param {Object} props\n * @param {string} props.label - A label for the control.\n * @param {onChange} props.onChange - Called when the value changes.\n * @param {string} props.value - The current value with unit.\n * @param {string[]} [props.allowedUnits=['%', 'px', 'em', 'rem']] - Available values.\n * @param {availableUnit[]} [props.defaultUnits] - Default units.\n * @param {unitOperation[]} [props.convertUnits] - Unit value conversion logic.\n *\n */\nfunction UnitRangeControl({\n label,\n onChange,\n value,\n allowedUnits = ['%', 'px', 'em', 'rem'],\n defaultUnits = availableUnits,\n convertUnits = unitOperations\n}) {\n var _unitSettings$selecte, _unitSettings$selecte2, _unitSettings$selecte3, _unitSettings$selecte4, _unitSettings$selecte5, _unitSettings$selecte6;\n const customRangeValue = parseFloat(value);\n const defaultValues = useMemo(() => {\n return defaultUnits.reduce((accumulator, unit) => {\n accumulator[unit.label] = unit.default;\n return accumulator;\n }, {});\n }, [defaultUnits]);\n const unitSettings = useMemo(() => {\n return defaultUnits.reduce((accumulator, unit) => {\n accumulator[unit.label] = unit;\n return accumulator;\n }, {});\n }, [defaultUnits]);\n const units = useCustomUnits({\n units: defaultUnits,\n availableUnits: allowedUnits,\n defaultValues\n });\n const selectedUnit = useMemo(() => parseQuantityAndUnitFromRawValue(value, defaultUnits), [value, defaultUnits])[1] || units[0]?.value || 'px';\n const handleSliderChange = next => {\n onChange([next, selectedUnit].join(''));\n };\n const handleUnitChange = newUnit => {\n // Attempt to smooth over differences between currentUnit and newUnit.\n // This should slightly improve the experience of switching between unit types.\n const [currentValue, currentUnit] = parseQuantityAndUnitFromRawValue(value, defaultUnits);\n const {\n unitValue,\n unitString\n } = unitConverter(newUnit, currentUnit, currentValue, convertUnits);\n if (unitValue > unitSettings[newUnit]?.max) {\n onChange(unitSettings[newUnit]?.max + newUnit);\n } else {\n onChange(unitString);\n }\n };\n return /*#__PURE__*/_jsx(BaseControl, {\n label: label,\n className: \"storepress-component-unit-range-control\",\n children: /*#__PURE__*/_jsxs(Flex, {\n children: [/*#__PURE__*/_jsx(FlexItem, {\n isBlock: true,\n children: /*#__PURE__*/_jsx(UnitControl, {\n value: value,\n units: units,\n onChange: onChange,\n onUnitChange: handleUnitChange,\n min: (_unitSettings$selecte = unitSettings[selectedUnit]?.min) !== null && _unitSettings$selecte !== void 0 ? _unitSettings$selecte : 0,\n max: (_unitSettings$selecte2 = unitSettings[selectedUnit]?.max) !== null && _unitSettings$selecte2 !== void 0 ? _unitSettings$selecte2 : 100,\n step: (_unitSettings$selecte3 = unitSettings[selectedUnit]?.step) !== null && _unitSettings$selecte3 !== void 0 ? _unitSettings$selecte3 : 0.1,\n size: \"__unstable-large\",\n label: label,\n hideLabelFromVision: true\n })\n }), /*#__PURE__*/_jsx(FlexItem, {\n isBlock: true,\n children: /*#__PURE__*/_jsx(Spacer, {\n marginX: 2,\n marginBottom: 0,\n children: /*#__PURE__*/_jsx(RangeControl, {\n __next40pxDefaultSize: true,\n value: customRangeValue,\n min: (_unitSettings$selecte4 = unitSettings[selectedUnit]?.min) !== null && _unitSettings$selecte4 !== void 0 ? _unitSettings$selecte4 : 0,\n max: (_unitSettings$selecte5 = unitSettings[selectedUnit]?.max) !== null && _unitSettings$selecte5 !== void 0 ? _unitSettings$selecte5 : 100,\n step: (_unitSettings$selecte6 = unitSettings[selectedUnit]?.step) !== null && _unitSettings$selecte6 !== void 0 ? _unitSettings$selecte6 : 0.1,\n withInputField: false,\n onChange: handleSliderChange,\n label: label,\n hideLabelFromVision: true,\n __nextHasNoMarginBottom: true,\n renderTooltipContent: contentValue => `${contentValue}${selectedUnit}`\n })\n })\n })]\n })\n });\n}\n\n/*UnitRangeControl.defaultProps = {\n label: 'Range Control',\n onChange: (updatedValue) => {},\n value: '10px',\n allowedUnits: ['%', 'px', 'em', 'rem'],\n defaultUnits: availableUnits,\n convertUnits: unitOperations,\n}*/\n\nUnitRangeControl.propTypes = {\n label: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n onChange: PropTypes.func.isRequired,\n allowedUnits: PropTypes.array,\n defaultUnits: PropTypes.array,\n convertUnits: PropTypes.array\n};\nexport default UnitRangeControl;","/**\n * WordPress dependencies\n */\nimport { cloneElement, forwardRef } from '@wordpress/element';\n\n/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */\n\n/**\n * Return an SVG icon.\n *\n * @param {IconProps} props icon is the SVG component to render\n * size is a number specifiying the icon size in pixels\n * Other props will be passed to wrapped SVG component\n * @param {import('react').ForwardedRef<HTMLElement>} ref The forwarded ref to the SVG element.\n *\n * @return {JSX.Element} Icon component\n */\nfunction Icon({\n icon,\n size = 24,\n ...props\n}, ref) {\n return cloneElement(icon, {\n width: size,\n height: size,\n ...props,\n ref\n });\n}\nexport default forwardRef(Icon);\n//# sourceMappingURL=index.js.map","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst arrowDown = /*#__PURE__*/_jsx(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n children: /*#__PURE__*/_jsx(Path, {\n d: \"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z\"\n })\n});\nexport default arrowDown;\n//# sourceMappingURL=arrow-down.js.map","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst arrowLeft = /*#__PURE__*/_jsx(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n children: /*#__PURE__*/_jsx(Path, {\n d: \"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z\"\n })\n});\nexport default arrowLeft;\n//# sourceMappingURL=arrow-left.js.map","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst arrowRight = /*#__PURE__*/_jsx(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n children: /*#__PURE__*/_jsx(Path, {\n d: \"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z\"\n })\n});\nexport default arrowRight;\n//# sourceMappingURL=arrow-right.js.map","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst arrowUp = /*#__PURE__*/_jsx(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n children: /*#__PURE__*/_jsx(Path, {\n d: \"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z\"\n })\n});\nexport default arrowUp;\n//# sourceMappingURL=arrow-up.js.map","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst textHorizontal = /*#__PURE__*/_jsx(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n children: /*#__PURE__*/_jsx(Path, {\n d: \"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z\"\n })\n});\nexport default textHorizontal;\n//# sourceMappingURL=text-horizontal.js.map","/**\n * External dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\tInspectorControls,\n\tuseBlockProps,\n\tuseInnerBlocksProps,\n\t// eslint-disable-next-line @wordpress/no-unsafe-wp-apis\n\t__experimentalColorGradientSettingsDropdown as ColorGradientSettingsDropdown,\n\t// eslint-disable-next-line @wordpress/no-unsafe-wp-apis\n\t__experimentalUseMultipleOriginColorsAndGradients as useMultipleOriginColorsAndGradients,\n} from '@wordpress/block-editor';\nimport {\n\tPanelBody,\n\t__experimentalToggleGroupControl as ToggleGroupControl, // eslint-disable-line @wordpress/no-unsafe-wp-apis\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption, // eslint-disable-line @wordpress/no-unsafe-wp-apis\n} from '@wordpress/components';\nimport {\n\tIcon,\n\tarrowLeft,\n\tarrowRight,\n\tarrowUp,\n\tarrowDown,\n} from '@wordpress/icons';\n\nimport { clsx } from 'clsx';\n\nimport { UnitRangeControl } from '@storepress/components';\n\n/**\n * Internal dependencies\n */\n\nimport './editor.scss';\n\nexport default function Edit({ attributes, setAttributes, clientId }) {\n\tconst {\n\t\torientation,\n\t\tanimationDirection,\n\t\thoverAnimationState,\n\t\tanimationSpeed,\n\t\tgap,\n\t\toverlayColor,\n\t\twhiteSpace,\n\t} = attributes;\n\n\tconst blockProps = useBlockProps({\n\t\tclassName: clsx({\n\t\t\t'has-overlay-color': overlayColor,\n\t\t\t'orientation-x': orientation === 'x',\n\t\t\t'orientation-y': orientation === 'y',\n\t\t}),\n\t\tstyle: {\n\t\t\t'--overlay-color': overlayColor ?? 'transparent',\n\t\t\t'--white-space': whiteSpace,\n\t\t},\n\t});\n\n\tconst colorGradientSettings = useMultipleOriginColorsAndGradients();\n\n\tconst innerBlockProps = useInnerBlocksProps(\n\t\t{\n\t\t\tclassName: 'wp-block-storepress-marquee__item',\n\t\t},\n\t\t{\n\t\t\ttemplate: [\n\t\t\t\t[\n\t\t\t\t\t'core/paragraph',\n\t\t\t\t\t{\n\t\t\t\t\t\talign: 'center',\n\t\t\t\t\t\tcontent:\n\t\t\t\t\t\t\t'Marquee block adds a touch of movement and interactivity to your site and help to capture attention and engage your site visitors in a unique way.',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t],\n\t\t}\n\t);\n\n\tconst setOverlayColor = (newValue) => {\n\t\tsetAttributes({ overlayColor: newValue });\n\t};\n\n\tconst setOrientation = (newValue) => {\n\t\tsetAttributes({ orientation: newValue });\n\t};\n\n\tconst setAnimationDirection = (newValue) => {\n\t\tsetAttributes({ animationDirection: newValue });\n\t};\n\n\tconst setHoverAnimationState = (newValue) => {\n\t\tsetAttributes({ hoverAnimationState: newValue });\n\t};\n\n\tconst setAnimationSpeed = (newValue) => {\n\t\tsetAttributes({ animationSpeed: newValue });\n\t};\n\n\tconst setWhiteSpace = (newValue) => {\n\t\tsetAttributes({ whiteSpace: newValue });\n\t};\n\n\tconst setGap = (newValue) => {\n\t\tsetAttributes({ gap: newValue });\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<InspectorControls>\n\t\t\t\t<PanelBody title={__('Settings', 'marquee-block')}>\n\t\t\t\t\t<ToggleGroupControl\n\t\t\t\t\t\tlabel={__('Orientation', 'marquee-block')}\n\t\t\t\t\t\tvalue={orientation}\n\t\t\t\t\t\tonChange={setOrientation}\n\t\t\t\t\t\tisBlock\n\t\t\t\t\t>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tvalue=\"x\"\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\t\t\t<svg>\n\t\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\t\ttransform=\"rotate(45 12 12)\"\n\t\t\t\t\t\t\t\t\t\t\t\td=\"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z\"\n\t\t\t\t\t\t\t\t\t\t\t></path>\n\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tvalue=\"y\"\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\t\t\t<svg>\n\t\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\t\ttransform=\"rotate(135 12 12)\"\n\t\t\t\t\t\t\t\t\t\t\t\td=\"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z\"\n\t\t\t\t\t\t\t\t\t\t\t></path>\n\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToggleGroupControl>\n\n\t\t\t\t\t<ToggleGroupControl\n\t\t\t\t\t\tlabel={__('Animation Direction', 'marquee-block')}\n\t\t\t\t\t\tvalue={animationDirection}\n\t\t\t\t\t\tonChange={setAnimationDirection}\n\t\t\t\t\t\tisBlock\n\t\t\t\t\t>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tvalue=\"normal\"\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\t\t\torientation === 'x'\n\t\t\t\t\t\t\t\t\t\t\t? arrowLeft\n\t\t\t\t\t\t\t\t\t\t\t: arrowUp\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsize=\"30\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tvalue=\"reverse\"\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\t\t\torientation === 'x'\n\t\t\t\t\t\t\t\t\t\t\t? arrowRight\n\t\t\t\t\t\t\t\t\t\t\t: arrowDown\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsize=\"30\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToggleGroupControl>\n\n\t\t\t\t\t<ToggleGroupControl\n\t\t\t\t\t\tlabel={__('On Hover Animation', 'marquee-block')}\n\t\t\t\t\t\tvalue={hoverAnimationState}\n\t\t\t\t\t\tonChange={setHoverAnimationState}\n\t\t\t\t\t\tisBlock\n\t\t\t\t\t>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tvalue=\"paused\"\n\t\t\t\t\t\t\tlabel={__('Pause', 'marquee-block')}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tvalue=\"running\"\n\t\t\t\t\t\t\tlabel={__('Continue', 'marquee-block')}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToggleGroupControl>\n\n\t\t\t\t\t<UnitRangeControl\n\t\t\t\t\t\tlabel={__('Animation Speed', 'marquee-block')}\n\t\t\t\t\t\tonChange={setAnimationSpeed}\n\t\t\t\t\t\tvalue={animationSpeed}\n\t\t\t\t\t\tallowedUnits={['s', 'ms']}\n\t\t\t\t\t/>\n\t\t\t\t</PanelBody>\n\t\t\t\t<PanelBody title={__('Style', 'marquee-block')}>\n\t\t\t\t\t<ToggleGroupControl\n\t\t\t\t\t\tlabel={__('White Space', 'marquee-block')}\n\t\t\t\t\t\tvalue={whiteSpace}\n\t\t\t\t\t\tonChange={setWhiteSpace}\n\t\t\t\t\t\tisBlock\n\t\t\t\t\t>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tvalue=\"wrap\"\n\t\t\t\t\t\t\tlabel={__('Wrap', 'marquee-block')}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<ToggleGroupControlOption\n\t\t\t\t\t\t\tvalue=\"nowrap\"\n\t\t\t\t\t\t\tlabel={__('No Wrap', 'marquee-block')}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToggleGroupControl>\n\n\t\t\t\t\t<UnitRangeControl\n\t\t\t\t\t\tlabel={__('Content Gap', 'marquee-block')}\n\t\t\t\t\t\tonChange={setGap}\n\t\t\t\t\t\tvalue={gap}\n\t\t\t\t\t\tallowedUnits={['%', 'px', 'em', 'rem']}\n\t\t\t\t\t/>\n\t\t\t\t</PanelBody>\n\t\t\t</InspectorControls>\n\n\t\t\t<InspectorControls group=\"color\">\n\t\t\t\t<ColorGradientSettingsDropdown\n\t\t\t\t\tpanelId={clientId}\n\t\t\t\t\tsettings={[\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel: __('Overlay color', 'marquee-block'),\n\t\t\t\t\t\t\tcolorValue: overlayColor,\n\t\t\t\t\t\t\tonColorChange: setOverlayColor,\n\t\t\t\t\t\t},\n\t\t\t\t\t]}\n\t\t\t\t\t{...colorGradientSettings}\n\t\t\t\t/>\n\t\t\t</InspectorControls>\n\n\t\t\t<div {...blockProps}>\n\t\t\t\t<div {...innerBlockProps} />\n\t\t\t</div>\n\t\t</>\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","module.exports = window[\"React\"];","module.exports = window[\"ReactJSXRuntime\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * External dependencies\n */\nimport { registerBlockType } from '@wordpress/blocks';\nimport { textHorizontal as icon } from '@wordpress/icons';\nimport { InnerBlocks } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport Edit from './edit';\nimport metadata from './block.json';\n\n/**\n * Every block starts by registering a new block type definition.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\n */\nregisterBlockType(metadata.name, {\n\t/**\n\t * @see ./edit.js\n\t */\n\ticon,\n\tedit: Edit,\n\tsave: () => <InnerBlocks.Content />,\n});\n"],"names":["__","InspectorControls","useBlockProps","useInnerBlocksProps","__experimentalColorGradientSettingsDropdown","ColorGradientSettingsDropdown","__experimentalUseMultipleOriginColorsAndGradients","useMultipleOriginColorsAndGradients","PanelBody","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","Icon","arrowLeft","arrowRight","arrowUp","arrowDown","clsx","UnitRangeControl","Edit","attributes","setAttributes","clientId","orientation","animationDirection","hoverAnimationState","animationSpeed","gap","overlayColor","whiteSpace","blockProps","className","style","colorGradientSettings","innerBlockProps","template","align","content","setOverlayColor","newValue","setOrientation","setAnimationDirection","setHoverAnimationState","setAnimationSpeed","setWhiteSpace","setGap","createElement","Fragment","title","label","value","onChange","isBlock","icon","transform","d","size","allowedUnits","group","panelId","settings","colorValue","onColorChange","registerBlockType","textHorizontal","InnerBlocks","metadata","name","edit","save","Content"],"sourceRoot":""} -
marquee-block/trunk/build/marquee/render.php
r3152148 r3214417 15 15 * Dynamic Block Template. 16 16 * 17 * @ global array$attributes - A clean associative array of block attributes.18 * @ global WP_Block $block- The block instance. All the block settings and attributes.19 * @ global string $content- The block inner HTML (usually empty unless using inner blocks).17 * @var array<string, mixed> $attributes - A clean associative array of block attributes. 18 * @var WP_Block $block - The block instance. All the block settings and attributes. 19 * @var string $content - The block inner HTML (usually empty unless using inner blocks). 20 20 */ 21 21 22 22 $marquee_block_classes = array( 23 'pause-on-hover' => marquee_block_plugin()->get_blocks()->string_to_boolean( $attributes['pause'] ), 24 'has-overlay' => marquee_block_plugin()->get_blocks()->string_to_boolean( $attributes['overlay'] ), 25 'orientation-x' => 'x' === $attributes['orientation'], 26 'orientation-y' => 'y' === $attributes['orientation'], 27 'white-space--no-wrap' => marquee_block_plugin()->get_blocks()->string_to_boolean( $attributes['whiteSpaceNoWrap'] ), 23 'has-overlay-color' => isset( $attributes['overlayColor'] ), 24 'orientation-x' => 'x' === $attributes['orientation'], 25 'orientation-y' => 'y' === $attributes['orientation'], 28 26 ); 29 27 30 28 $marquee_block_styles = array( 31 '--direction' => 'left' === $attributes['direction'] ? 'normal' : 'reverse', 32 '--animation-speed' => sprintf( '%ds', absint( $attributes['animationSpeed'] ) ), 33 '--content-gap' => sprintf( '%dpx', absint( $attributes['gap'] ) ), 34 '--overlay-color' => sanitize_hex_color( $attributes['overlayColor'] ), 29 '--animation-direction' => esc_attr( $attributes['animationDirection'] ), 30 '--animation-speed' => esc_attr( $attributes['animationSpeed'] ), 31 '--content-gap' => esc_attr( $attributes['gap'] ), 32 '--overlay-color' => isset( $attributes['overlayColor'] ) ? sanitize_hex_color( $attributes['overlayColor'] ) : 'transparent', 33 '--white-space' => esc_attr( $attributes['whiteSpace'] ), 34 '--animation-name' => sprintf( 'storepress-marquee-animation-%s', esc_attr( $attributes['orientation'] ) ), 35 '--animation-play-state' => esc_attr( $attributes['hoverAnimationState'] ), 35 36 ); 36 37 … … 43 44 ?> 44 45 45 <div <?php echo wp_kses_post( get_block_wrapper_attributes( $marquee_block_wrapper_attrs ) ); ?>> 46 <div 47 <?php 48 echo wp_kses_post( get_block_wrapper_attributes( $marquee_block_wrapper_attrs ) ); 49 ?> 50 > 46 51 <div class="wp-block-storepress-marquee__item"> 47 <?php echo wp_kses( $content, $marquee_block_allowed_html ); ?> 52 <?php 53 echo wp_kses( $content, $marquee_block_allowed_html ); 54 ?> 48 55 </div> 49 56 <!-- Mirrors the content above --> 50 57 <div class="wp-block-storepress-marquee__item mirror" aria-hidden="true"> 51 <?php echo wp_kses( $content, $marquee_block_allowed_html ); ?> 58 <?php 59 echo wp_kses( $content, $marquee_block_allowed_html ); 60 ?> 52 61 </div> 53 62 </div> -
marquee-block/trunk/build/marquee/view-rtl.css
r3137585 r3214417 1 .wp-block-storepress-marquee{-- direction:normal;--content-gap:40px;--animation-speed:9s;--overlay-color:#fff;align-items:center;display:flex;gap:var(--content-gap);overflow:hidden}.wp-block-storepress-marquee>.wp-block-storepress-marquee__item{animation:storepress-marquee-animation-x var(--animation-speed) linear infinite;animation-direction:var(--direction);flex:0 0 100%}@media(prefers-reduced-motion:reduce){.wp-block-storepress-marquee>.wp-block-storepress-marquee__item{animation:none!important}.wp-block-storepress-marquee>.wp-block-storepress-marquee__item.mirror{display:none}}.wp-block-storepress-marquee.pause-on-hover:hover>.wp-block-storepress-marquee__item{animation-play-state:paused}.wp-block-storepress-marquee.white-space--no-wrap.orientation-x>.wp-block-storepress-marquee__item{white-space:nowrap}.wp-block-storepress-marquee.orientation-y{flex-direction:column}.wp-block-storepress-marquee.orientation-y>.wp-block-storepress-marquee__item{animation:storepress-marquee-animation-y var(--animation-speed) linear infinite;animation-delay:-3s;animation-direction:var(--direction)}.wp-block-storepress-marquee.has-overlay{position:relative}.wp-block-storepress-marquee.has-overlay:after,.wp-block-storepress-marquee.has-overlay:before{content:"";height:100%;position:absolute;width:10%;z-index:1}.wp-block-storepress-marquee.has-overlay:before{background:linear-gradient(-270deg,transparent 0,var(--overlay-color) 100%);right:0}.wp-block-storepress-marquee.has-overlay:after{background:linear-gradient(-90deg,transparent 0,var(--overlay-color) 100%);left:0}.wp-block-storepress-marquee.has-overlay.orientation-y:after,.wp-block-storepress-marquee.has-overlay.orientation-y:before{height:10%;width:100%}.wp-block-storepress-marquee.has-overlay.orientation-y:before{background:linear-gradient(0deg,transparent 0,var(--overlay-color) 100%);top:0}.wp-block-storepress-marquee.has-overlay.orientation-y:after{background:linear-gradient(-180deg,transparent 0,var(--overlay-color) 100%);bottom:0}@keyframes storepress-marquee-animation-x{to{transform:translateX(calc(-1*(-100% - var(--content-gap))))}}@keyframes storepress-marquee-animation-y{0%{transform:translateY(0)}to{transform:translateY(calc(-100% - var(--content-gap)))}}1 .wp-block-storepress-marquee{--animation-direction:normal;--content-gap:40px;--animation-speed:10s;--overlay-color:transparent;--white-space:wrap;--animation-play-state:paused;--animation-name:storepress-marquee-animation-x;--_animation-transform:calc(-100% - var(--content-gap));align-items:center;display:flex;gap:var(--content-gap);overflow:clip;position:relative}.wp-block-storepress-marquee:hover>.wp-block-storepress-marquee__item{animation-play-state:var(--animation-play-state)}.wp-block-storepress-marquee>.wp-block-storepress-marquee__item{animation:var(--animation-name) var(--animation-speed) linear infinite;animation-direction:var(--animation-direction);flex:1 0 100%;width:100%}@media(prefers-reduced-motion:reduce){.wp-block-storepress-marquee>.wp-block-storepress-marquee__item{animation:none!important}.wp-block-storepress-marquee>.wp-block-storepress-marquee__item.mirror{display:none}}.wp-block-storepress-marquee.orientation-x{flex-direction:row}.wp-block-storepress-marquee.orientation-x>.wp-block-storepress-marquee__item>*{white-space:var(--white-space)}.wp-block-storepress-marquee.orientation-y{flex-direction:column}.wp-block-storepress-marquee.has-overlay-color{isolation:isolate}.wp-block-storepress-marquee.has-overlay-color:after,.wp-block-storepress-marquee.has-overlay-color:before{content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.wp-block-storepress-marquee.has-overlay-color.orientation-x:after,.wp-block-storepress-marquee.has-overlay-color.orientation-x:before{height:100%;width:10%}.wp-block-storepress-marquee.has-overlay-color.orientation-x:before{background:linear-gradient(-270deg,transparent 0,var(--overlay-color) 100%);margin-inline:0 auto}.wp-block-storepress-marquee.has-overlay-color.orientation-x:after{background:linear-gradient(-90deg,transparent 0,var(--overlay-color) 100%);margin-inline:auto 0}.wp-block-storepress-marquee.has-overlay-color.orientation-y:after,.wp-block-storepress-marquee.has-overlay-color.orientation-y:before{height:10%;width:100%}.wp-block-storepress-marquee.has-overlay-color.orientation-y:before{background:linear-gradient(0deg,transparent 0,var(--overlay-color) 100%);margin-block:0 auto}.wp-block-storepress-marquee.has-overlay-color.orientation-y:after{background:linear-gradient(-180deg,transparent 0,var(--overlay-color) 100%);margin-block:auto 0}@keyframes storepress-marquee-animation-x{0%{transform:translateX(0)}to{transform:translateX(var(--_animation-transform))}}@keyframes storepress-marquee-animation-y{0%{transform:translateY(0)}to{transform:translateY(var(--_animation-transform))}} -
marquee-block/trunk/build/marquee/view.asset.php
r3137585 r3214417 1 <?php return array('dependencies' => array('wp-dom-ready'), 'version' => ' c9a9b6d6ca2064d70988');1 <?php return array('dependencies' => array('wp-dom-ready'), 'version' => 'ba8d618aeaf8d7f2fa47'); -
marquee-block/trunk/build/marquee/view.css
r3137585 r3214417 1 .wp-block-storepress-marquee{-- direction:normal;--content-gap:40px;--animation-speed:9s;--overlay-color:#fff;align-items:center;display:flex;gap:var(--content-gap);overflow:hidden}.wp-block-storepress-marquee>.wp-block-storepress-marquee__item{animation:storepress-marquee-animation-x var(--animation-speed) linear infinite;animation-direction:var(--direction);flex:0 0 100%}@media(prefers-reduced-motion:reduce){.wp-block-storepress-marquee>.wp-block-storepress-marquee__item{animation:none!important}.wp-block-storepress-marquee>.wp-block-storepress-marquee__item.mirror{display:none}}.wp-block-storepress-marquee.pause-on-hover:hover>.wp-block-storepress-marquee__item{animation-play-state:paused}.wp-block-storepress-marquee.white-space--no-wrap.orientation-x>.wp-block-storepress-marquee__item{white-space:nowrap}.wp-block-storepress-marquee.orientation-y{flex-direction:column}.wp-block-storepress-marquee.orientation-y>.wp-block-storepress-marquee__item{animation:storepress-marquee-animation-y var(--animation-speed) linear infinite;animation-delay:-3s;animation-direction:var(--direction)}.wp-block-storepress-marquee.has-overlay{position:relative}.wp-block-storepress-marquee.has-overlay:after,.wp-block-storepress-marquee.has-overlay:before{content:"";height:100%;position:absolute;width:10%;z-index:1}.wp-block-storepress-marquee.has-overlay:before{background:linear-gradient(270deg,transparent 0,var(--overlay-color) 100%);left:0}.wp-block-storepress-marquee.has-overlay:after{background:linear-gradient(90deg,transparent 0,var(--overlay-color) 100%);right:0}.wp-block-storepress-marquee.has-overlay.orientation-y:after,.wp-block-storepress-marquee.has-overlay.orientation-y:before{height:10%;width:100%}.wp-block-storepress-marquee.has-overlay.orientation-y:before{background:linear-gradient(0deg,transparent 0,var(--overlay-color) 100%);top:0}.wp-block-storepress-marquee.has-overlay.orientation-y:after{background:linear-gradient(180deg,transparent 0,var(--overlay-color) 100%);bottom:0}@keyframes storepress-marquee-animation-x{to{transform:translateX(calc(-100% - var(--content-gap)))}}@keyframes storepress-marquee-animation-y{0%{transform:translateY(0)}to{transform:translateY(calc(-100% - var(--content-gap)))}}1 .wp-block-storepress-marquee{--animation-direction:normal;--content-gap:40px;--animation-speed:10s;--overlay-color:transparent;--white-space:wrap;--animation-play-state:paused;--animation-name:storepress-marquee-animation-x;--_animation-transform:calc(-100% - var(--content-gap));align-items:center;display:flex;gap:var(--content-gap);overflow:clip;position:relative}.wp-block-storepress-marquee:hover>.wp-block-storepress-marquee__item{animation-play-state:var(--animation-play-state)}.wp-block-storepress-marquee>.wp-block-storepress-marquee__item{animation:var(--animation-name) var(--animation-speed) linear infinite;animation-direction:var(--animation-direction);flex:1 0 100%;width:100%}@media(prefers-reduced-motion:reduce){.wp-block-storepress-marquee>.wp-block-storepress-marquee__item{animation:none!important}.wp-block-storepress-marquee>.wp-block-storepress-marquee__item.mirror{display:none}}.wp-block-storepress-marquee.orientation-x{flex-direction:row}.wp-block-storepress-marquee.orientation-x>.wp-block-storepress-marquee__item>*{white-space:var(--white-space)}.wp-block-storepress-marquee.orientation-y{flex-direction:column}.wp-block-storepress-marquee.has-overlay-color{isolation:isolate}.wp-block-storepress-marquee.has-overlay-color:after,.wp-block-storepress-marquee.has-overlay-color:before{content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.wp-block-storepress-marquee.has-overlay-color.orientation-x:after,.wp-block-storepress-marquee.has-overlay-color.orientation-x:before{height:100%;width:10%}.wp-block-storepress-marquee.has-overlay-color.orientation-x:before{background:linear-gradient(270deg,transparent 0,var(--overlay-color) 100%);margin-inline:0 auto}.wp-block-storepress-marquee.has-overlay-color.orientation-x:after{background:linear-gradient(90deg,transparent 0,var(--overlay-color) 100%);margin-inline:auto 0}.wp-block-storepress-marquee.has-overlay-color.orientation-y:after,.wp-block-storepress-marquee.has-overlay-color.orientation-y:before{height:10%;width:100%}.wp-block-storepress-marquee.has-overlay-color.orientation-y:before{background:linear-gradient(0deg,transparent 0,var(--overlay-color) 100%);margin-block:0 auto}.wp-block-storepress-marquee.has-overlay-color.orientation-y:after{background:linear-gradient(180deg,transparent 0,var(--overlay-color) 100%);margin-block:auto 0}@keyframes storepress-marquee-animation-x{0%{transform:translateX(0)}to{transform:translateX(var(--_animation-transform))}}@keyframes storepress-marquee-animation-y{0%{transform:translateY(0)}to{transform:translateY(var(--_animation-transform))}} -
marquee-block/trunk/build/marquee/view.css.map
r3137585 r3214417 1 {"version":3,"file":"marquee/view.css","mappings":";;;AAAA;EACC;EACA;EACA;EACA;EA EA;EACA;EAEA;EACA;EACA;AADD;AAGC;EACC;EACA;EACA;AADF;AAGE;EALD;IAME;IACA;EAAD;EAEC;IACC;EAAF;AACF;AAIC;EACC;AAFF;AAKC;EACC;AAHF;AAMC;EACC;AAJF;AAME;EACC;EACA;EACA;AAJH;AAQC;EACC;AANF;AAQE;EAEC;EACA;EACA;EACA;EACA;AAPH;AAUE;EACC;EACA;AARH;AAWE;EACC;EACA;AATH;AAaG;EAEC;EACA;AAZJ;AAeG;EACC;EACA;AAbJ;AAgBG;EACC;EACA;AAdJ;;AAoBA;EACC;IACC;EAjBA;AACF;AAoBA;EACC;IACC;EAlBA;EAqBD;IACC;EAnBA;AACF,C","sources":["webpack://marquee-block/./src/marquee/view.scss"],"sourcesContent":[".wp-block-storepress-marquee {\n\t--direction: normal;\n\t--content-gap: 40px;\n\t--animation-speed: 9s;\n\t--overlay-color: #fff;\n\n\tdisplay: flex;\n\talign-items: center;\n\n\t/*justify-content: space-around;*/\n\tgap: var(--content-gap);\n\toverflow: hidden;\n\n\t> .wp-block-storepress-marquee__item {\n\t\tflex: 0 0 100%;\n\t\tanimation: storepress-marquee-animation-x var(--animation-speed) linear infinite;\n\t\tanimation-direction: var(--direction);\n\n\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\tanimation: none !important;\n\t\t\t/*white-space: unset;*/\n\n\t\t\t&.mirror {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t&.pause-on-hover:hover > .wp-block-storepress-marquee__item {\n\t\tanimation-play-state: paused;\n\t}\n\n\t&.white-space--no-wrap.orientation-x > .wp-block-storepress-marquee__item {\n\t\twhite-space: nowrap;\n\t}\n\n\t&.orientation-y {\n\t\tflex-direction: column;\n\n\t\t> .wp-block-storepress-marquee__item {\n\t\t\tanimation: storepress-marquee-animation-y var(--animation-speed) linear infinite;\n\t\t\tanimation-direction: var(--direction);\n\t\t\tanimation-delay: -3s;\n\t\t}\n\t}\n\n\t&.has-overlay {\n\t\tposition: relative;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\tposition: absolute;\n\t\t\tcontent: \"\";\n\t\t\twidth: 10%;\n\t\t\theight: 100%;\n\t\t\tz-index: 1;\n\t\t}\n\n\t\t&::before {\n\t\t\tbackground: linear-gradient(270deg, transparent 0%, var(--overlay-color) 100%);\n\t\t\tleft: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tbackground: linear-gradient(90deg, transparent 0%, var(--overlay-color) 100%);\n\t\t\tright: 0;\n\t\t}\n\n\t\t&.orientation-y {\n\t\t\t&::before,\n\t\t\t&::after {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 10%;\n\t\t\t}\n\n\t\t\t&::before {\n\t\t\t\tbackground: linear-gradient(0deg, transparent 0%, var(--overlay-color) 100%);\n\t\t\t\ttop: 0;\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tbackground: linear-gradient(180deg, transparent 0%, var(--overlay-color) 100%);\n\t\t\t\tbottom: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n@keyframes storepress-marquee-animation-x {\n\tto {\n\t\ttransform: translateX(calc(-100% - var(--content-gap)));\n\t}\n}\n\n@keyframes storepress-marquee-animation-y {\n\tfrom {\n\t\ttransform: translateY(0);\n\t}\n\n\tto {\n\t\ttransform: translateY(calc(-100% - var(--content-gap)));\n\t}\n}\n"],"names":[],"sourceRoot":""}1 {"version":3,"file":"marquee/view.css","mappings":";;;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EAEA;EACA;EAEA;EACA;AAHD;AAKC;EACC;AAHF;AAMC;EACC;EACA;EACA;gBAAA;EAEA;EACA;AAJF;AAKE;EAPD;IAQE;EAFD;EAGC;IACC;EADF;AACF;AAKC;EACC;AAHF;AAIE;EACC;AAFH;AAMC;EACC;AAJF;AAKE;EACC;AAHH;AAOC;EACC;AALF;AAOE;EAEC;EACA;EACA;EACA;EACA;AANH;AAWG;EAEC;EACA;AAVJ;AAaG;EACC;EACA;AAXJ;AAcG;EACC;EACA;AAZJ;AAiBG;EAEC;EACA;AAhBJ;AAmBG;EACC;EACA;AAjBJ;AAoBG;EACC;EACA;AAlBJ;;AAwBA;EACC;IACC;EArBA;EAuBD;IACC;EArBA;AACF;AAwBA;EACC;IACC;EAtBA;EAwBD;IACC;EAtBA;AACF,C","sources":["webpack://marquee-block/./src/marquee/view.scss"],"sourcesContent":[".wp-block-storepress-marquee {\n\t--animation-direction: normal;\n\t--content-gap: 40px;\n\t--animation-speed: 10s;\n\t--overlay-color: transparent;\n\t--white-space: wrap;\n\t--animation-play-state: paused;\n\n\t--animation-name: storepress-marquee-animation-x;\n\t--_animation-transform: calc(-100% - var(--content-gap));\n\n\tposition: relative;\n\n\tdisplay: flex;\n\talign-items: center;\n\n\tgap: var(--content-gap);\n\toverflow: clip;\n\n\t&:hover > .wp-block-storepress-marquee__item {\n\t\tanimation-play-state: var(--animation-play-state);\n\t}\n\n\t& > .wp-block-storepress-marquee__item {\n\t\tflex: 1 0 100%;\n\t\twidth: 100%;\n\t\t/*width: 100%;\n\t\theight: 100%;*/\n\t\tanimation: var(--animation-name) var(--animation-speed) linear infinite;\n\t\tanimation-direction: var(--animation-direction);\n\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\tanimation: none !important;\n\t\t\t&.mirror {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t&.orientation-x {\n\t\tflex-direction: row;\n\t\t& > .wp-block-storepress-marquee__item > * {\n\t\t\twhite-space: var(--white-space);\n\t\t}\n\t}\n\n\t&.orientation-y {\n\t\tflex-direction: column;\n\t\t& > .wp-block-storepress-marquee__item {\n\t\t\t/*animation-delay: -3s;*/\n\t\t}\n\t}\n\n\t&.has-overlay-color {\n\t\tisolation: isolate;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\tpointer-events: none;\n\t\t\tposition: absolute;\n\t\t\tcontent: \"\";\n\t\t\tz-index: 1;\n\t\t\tinset: 0;\n\t\t}\n\n\t\t&.orientation-x {\n\n\t\t\t&::before,\n\t\t\t&::after {\n\t\t\t\twidth: 10%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\n\t\t\t&::before {\n\t\t\t\tbackground: linear-gradient(270deg, transparent 0%, var(--overlay-color) 100%);\n\t\t\t\tmargin-inline: 0 auto;\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tbackground: linear-gradient(90deg, transparent 0%, var(--overlay-color) 100%);\n\t\t\t\tmargin-inline: auto 0;\n\t\t\t}\n\t\t}\n\n\t\t&.orientation-y {\n\t\t\t&::before,\n\t\t\t&::after {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 10%;\n\t\t\t}\n\n\t\t\t&::before {\n\t\t\t\tbackground: linear-gradient(0deg, transparent 0%, var(--overlay-color) 100%);\n\t\t\t\tmargin-block: 0 auto;\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tbackground: linear-gradient(180deg, transparent 0%, var(--overlay-color) 100%);\n\t\t\t\tmargin-block: auto 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n@keyframes storepress-marquee-animation-x {\n\tfrom {\n\t\ttransform: translateX(0);\n\t}\n\tto {\n\t\ttransform: translateX(var(--_animation-transform));\n\t}\n}\n\n@keyframes storepress-marquee-animation-y {\n\tfrom {\n\t\ttransform: translateY(0);\n\t}\n\tto {\n\t\ttransform: translateY(var(--_animation-transform));\n\t}\n}\n"],"names":[],"sourceRoot":""} -
marquee-block/trunk/build/marquee/view.js.map
r3174808 r3214417 1 {"version":3,"file":"marquee/view.js","mappings":";;;;;;;;;;;AAAA;;;;;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;ACNA;AACA;AACA;AAC4C;;AAE5C;AACA;AACA;AACA;AAC A;AACqB;AAErB,SAASC,4BAA4BA,CAAA,EAAG;EACvCC,QAAQ,CACNC,gBAAgB,CAChB,+EACD,CAAC,CACAC,OAAO,CAAC,UAAUC,EAAE,EAAE;IACtBA,EAAE,CAACC,UAAU,CAACC,KAAK,CAACC,MAAM,GAAG,KAAK;IAElC,MAAM;MAAEA;IAAO,CAAC,GAAGH,EAAE,CAACI,qBAAqB,CAAC,CAAC;IAE7CJ,EAAE,CAACC,UAAU,CAACC,KAAK,CAACC,MAAM,GAAG,GAAGA,MAAM,IAAI;EAC3C,CAAC,CAAC;AACJ;AAEAR,2DAAQ,CAAC,YAAY;EACpB,MAAMU,SAAS,GACdC,MAAM,CAACC,UAAU,CAAC,kCAAkC,CAAC,KAAK,IAAI,IAC9DD,MAAM,CAACC,UAAU,CAAC,kCAAkC,CAAC,CAACC,OAAO,KAAK,IAAI;EAEvE,IAAIH,SAAS,EAAE;IACd,OAAO,KAAK;EACb;EAEAT,4BAA4B,CAAC,CAAC;AAC/B,CAAC,CAAC,C","sources":["webpack://marquee-block/./src/marquee/view.scss?83da","webpack://marquee-block/external window [\"wp\",\"domReady\"]","webpack://marquee-block/webpack/bootstrap","webpack://marquee-block/webpack/runtime/compat get default export","webpack://marquee-block/webpack/runtime/define property getters","webpack://marquee-block/webpack/runtime/hasOwnProperty shorthand","webpack://marquee-block/webpack/runtime/make namespace object","webpack://marquee-block/./src/marquee/view.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"domReady\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * External dependencies\n */\nimport domReady from '@wordpress/dom-ready';\n\n/**\n * Internal dependencies\n *\n * @see https://github.com/WordPress/gutenberg/pull/55492\n */\nimport './view.scss';\n\nfunction storepressMarqueeBlockHeight() {\n\tdocument\n\t\t.querySelectorAll(\n\t\t\t'.wp-block-storepress-marquee.orientation-y .wp-block-storepress-marquee__item'\n\t\t)\n\t\t.forEach(function (el) {\n\t\t\tel.parentNode.style.height = false;\n\n\t\t\tconst { height } = el.getBoundingClientRect();\n\n\t\t\tel.parentNode.style.height = `${height}px`;\n\t\t});\n}\n\ndomReady(function () {\n\tconst isReduced =\n\t\twindow.matchMedia(`(prefers-reduced-motion: reduce)`) === true ||\n\t\twindow.matchMedia(`(prefers-reduced-motion: reduce)`).matches === true;\n\n\tif (isReduced) {\n\t\treturn false;\n\t}\n\n\tstorepressMarqueeBlockHeight();\n});\n"],"names":["domReady","storepressMarqueeBlockHeight","document","querySelectorAll","forEach","el","parentNode","style","height","getBoundingClientRect","isReduced","window","matchMedia","matches"],"sourceRoot":""}1 {"version":3,"file":"marquee/view.js","mappings":";;;;;;;;;;;AAAA;;;;;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;ACNA;AACA;AACA;AAC4C;;AAE5C;AACA;AACA;AACA;AACqB;AAErB,SAASC,4BAA4BA,CAAA,EAAG;EACvCC,QAAQ,CACNC,gBAAgB,CAChB,+EACD,CAAC,CACAC,OAAO,CAAC,UAAUC,EAAE,EAAE;IACtBA,EAAE,CAACC,UAAU,CAACC,KAAK,CAACC,MAAM,GAAG,KAAK;IAElC,MAAM;MAAEA;IAAO,CAAC,GAAGH,EAAE,CAACI,qBAAqB,CAAC,CAAC;IAE7CJ,EAAE,CAACC,UAAU,CAACC,KAAK,CAACC,MAAM,GAAG,GAAGA,MAAM,IAAI;EAC3C,CAAC,CAAC;AACJ;AAEAR,2DAAQ,CAAC,YAAY;EACpB,MAAMU,SAAS,GACdC,MAAM,CAACC,UAAU,CAAC,kCAAkC,CAAC,KAAK,IAAI,IAC9DD,MAAM,CAACC,UAAU,CAAC,kCAAkC,CAAC,CAACC,OAAO,KAAK,IAAI;EAEvE,IAAIH,SAAS,EAAE;IACd,OAAO,KAAK;EACb;EAEAT,4BAA4B,CAAC,CAAC;AAC/B,CAAC,CAAC,C","sources":["webpack://marquee-block/./src/marquee/view.scss?83da","webpack://marquee-block/external window [\"wp\",\"domReady\"]","webpack://marquee-block/webpack/bootstrap","webpack://marquee-block/webpack/runtime/compat get default export","webpack://marquee-block/webpack/runtime/define property getters","webpack://marquee-block/webpack/runtime/hasOwnProperty shorthand","webpack://marquee-block/webpack/runtime/make namespace object","webpack://marquee-block/./src/marquee/view.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"domReady\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * External dependencies\n */\nimport domReady from '@wordpress/dom-ready';\n\n/**\n * Internal dependencies\n *\n */\nimport './view.scss';\n\nfunction storepressMarqueeBlockHeight() {\n\tdocument\n\t\t.querySelectorAll(\n\t\t\t'.wp-block-storepress-marquee.orientation-y .wp-block-storepress-marquee__item'\n\t\t)\n\t\t.forEach(function (el) {\n\t\t\tel.parentNode.style.height = false;\n\n\t\t\tconst { height } = el.getBoundingClientRect();\n\n\t\t\tel.parentNode.style.height = `${height}px`;\n\t\t});\n}\n\ndomReady(function () {\n\tconst isReduced =\n\t\twindow.matchMedia(`(prefers-reduced-motion: reduce)`) === true ||\n\t\twindow.matchMedia(`(prefers-reduced-motion: reduce)`).matches === true;\n\n\tif (isReduced) {\n\t\treturn false;\n\t}\n\n\tstorepressMarqueeBlockHeight();\n});\n"],"names":["domReady","storepressMarqueeBlockHeight","document","querySelectorAll","forEach","el","parentNode","style","height","getBoundingClientRect","isReduced","window","matchMedia","matches"],"sourceRoot":""} -
marquee-block/trunk/changelog.txt
r3174808 r3214417 1 1 == Marquee Block == 2 3 = 1.1.0 - 2024-12-29 = 4 5 * Change settings and layout. 2 6 3 7 = 1.0.4 - 2024-10-24 = -
marquee-block/trunk/includes/Blocks.php
r3152148 r3214417 7 7 * @version 1.0.0 8 8 */ 9 10 declare( strict_types=1 ); 9 11 10 12 namespace StorePress\MarqueeBlock; … … 33 35 * Action to signal that Plugin has finished loading. 34 36 * 35 * @param Blocks $ thisPlugin Object.37 * @param Blocks $instance Plugin Object. 36 38 * 37 39 * @since 1.0.0 … … 43 45 * Blocks Hooks 44 46 * 47 * @return void 45 48 * @since 1.0.0 46 49 */ … … 54 57 * Initialize Blocks Included Classes 55 58 * 59 * @return void 56 60 * @since 1.0.0 57 61 */ … … 62 66 * Add custom block category 63 67 * 64 * @param array $block_categories Available block category.68 * @param array<string, mixed> $block_categories Available block category. 65 69 * 66 * @return array New category.70 * @return array<string, mixed> 67 71 * @since 1.0.0 68 72 */ … … 77 81 78 82 if ( ! in_array( 'storepress', $available_slugs, true ) ) { 79 array_unshift( $block_categories, $category );83 $block_categories[] = $category; 80 84 } 81 85 … … 86 90 * Block Editor Script 87 91 * 92 * @return void 88 93 * @since 1.0.0 89 94 * @see https://developer.wordpress.org/reference/functions/wp_set_script_translations/ … … 104 109 * Block Register 105 110 * 111 * @return void 106 112 * @since 1.0.0 107 113 */ … … 128 134 * Returns an array of allowed HTML tags and attributes for a given context. 129 135 * 130 * @param array $args extra argument.136 * @param array<string, mixed> $args extra argument. 131 137 * 132 * @return array 138 * @return array<string, mixed> 133 139 * @since 1.0.0 134 140 */ -
marquee-block/trunk/includes/Common.php
r3152148 r3214417 1 1 <?php 2 /** 3 * Common Methods for Classes. 4 * 5 * @package StorePress/MarqueeBlock 6 * @since 1.0.0 7 * @version 1.0.0 8 */ 9 10 namespace StorePress\MarqueeBlock; 11 12 defined( 'ABSPATH' ) || die( 'Keep Silent' ); 2 /** 3 * Common Methods for Classes. 4 * 5 * @package StorePress/MarqueeBlock 6 * @since 1.0.0 7 * @version 1.0.0 8 */ 9 10 declare( strict_types=1 ); 11 12 namespace StorePress\MarqueeBlock; 13 14 defined( 'ABSPATH' ) || die( 'Keep Silent' ); 13 15 14 16 trait Common { … … 32 34 * Create HTML Attributes from given array 33 35 * 34 * @param array $attributes Attribute array. 35 * @param array $exclude Exclude attribute. Default array. 36 * 37 * @return string 38 */ 39 public function get_html_attributes( array $attributes, array $exclude = array() ): string { 40 41 $attrs = array_map( 42 function ( $key ) use ( $attributes, $exclude ) { 43 44 // Exclude attribute. 45 if ( in_array( $key, $exclude, true ) ) { 46 return ''; 47 } 48 49 $value = $attributes[ $key ]; 50 51 // If attribute value is null. 52 if ( is_null( $value ) ) { 53 return ''; 54 } 55 56 // If attribute value is boolean. 57 if ( is_bool( $value ) ) { 58 return $value ? $key : ''; 59 } 60 61 // If attribute value is array. 62 if ( is_array( $value ) ) { 63 $value = $this->get_css_classes( $value ); 64 } 65 66 return sprintf( '%s="%s"', esc_attr( $key ), esc_attr( $value ) ); 67 }, 68 array_keys( $attributes ) 69 ); 70 71 return implode( ' ', $attrs ); 36 * @param array<string, mixed> $attributes Attribute array. 37 * @param string[] $exclude Exclude attribute. Default array. 38 * 39 * @return string 40 */ 41 public function get_html_attributes( 42 array $attributes, 43 array $exclude = array() 44 ): string { 45 $attrs = array(); 46 47 foreach ( $attributes as $attribute_name => $attribute_value ) { 48 // Exclude attribute. 49 if ( in_array( $attribute_name, $exclude, true ) ) { 50 continue; 51 } 52 53 // Skip if attribute value is blank. 54 if ( is_string( $attribute_value ) 55 && $this->is_empty_string( $attribute_value ) 56 ) { 57 continue; 58 } 59 60 // Skip if attribute value is null. 61 if ( is_null( $attribute_value ) ) { 62 continue; 63 } 64 65 // Skip if attribute value is boolean false. 66 if ( false === $attribute_value ) { 67 continue; 68 } 69 70 // If attribute is class and value is array. 71 if ( is_array( $attribute_value ) ) { 72 if ( 'class' === $attribute_name ) { 73 $attribute_value 74 = $this->get_css_classes( $attribute_value ); 75 } else { 76 $attribute_value = wp_json_encode( $attribute_value ); 77 } 78 } 79 80 // If attribute is boolean true only use attribute name. 81 if ( true === $attribute_value ) { 82 $attrs[] = sprintf( '%s', esc_attr( $attribute_name ) ); 83 continue; 84 } 85 86 $attrs[] = sprintf( 87 '%s="%s"', 88 esc_attr( $attribute_name ), 89 esc_attr( $attribute_value ) 90 ); 91 } 92 93 return implode( ' ', array_unique( $attrs ) ); 72 94 } 73 95 … … 76 98 * Generate Inline Style from array 77 99 * 78 * @param array $inline_styles_array Inline style as array.79 * 80 * @return string 81 * @since 1.0.0100 * @param array<string, mixed> $inline_styles_array Inline style as array. 101 * 102 * @return string 103 * @since 1.0.0 82 104 */ 83 105 public function get_inline_styles( array $inline_styles_array = array() ): string { 84 85 106 $styles = array(); 86 107 … … 89 110 continue; 90 111 } 91 $styles[] = sprintf( '%s: %s;', esc_attr( $property ), esc_attr( $value ) ); 92 } 93 94 return implode( ' ', $styles ); 112 if ( is_bool( $value ) ) { 113 continue; 114 } 115 116 if ( is_array( $value ) ) { 117 continue; 118 } 119 120 if ( is_string( $value ) && $this->is_empty_string( $value ) ) { 121 continue; 122 } 123 124 $styles[] = sprintf( 125 '%s: %s;', 126 esc_attr( $property ), 127 esc_attr( $value ) 128 ); 129 } 130 131 return implode( ' ', array_unique( $styles ) ); 95 132 } 96 133 … … 98 135 * Array to css class. 99 136 * 100 * @param array $classes_array css classes array. 101 * 102 * @return string 103 * @since 1.0.0 137 * @param array<int|string, ?mixed> $classes_array css classes array. 138 * 139 * @return string 140 * @since 1.0.0 141 * @example 142 * <code> 143 * ['class-a', 'class-b'] 144 * // or 145 * ['class-a'=>true, 'class-b'=>false, 'class-c'=>'', 'class-e'=>null, 'class-d'=>'hello'] 146 * </code> 104 147 */ 105 148 public function get_css_classes( array $classes_array = array() ): string { 106 107 149 $classes = array(); 108 109 150 foreach ( $classes_array as $class_name => $should_include ) { 110 111 151 // Is class assign by numeric array. Like: ['class-a', 'class-b']. 112 if ( is_numeric( $class_name ) && ! is_string( $class_name ) ) { 113 $classes[] = esc_attr( $should_include ); 152 if ( is_int( $class_name ) ) { 153 if ( ! is_string( $should_include ) ) { 154 continue; 155 } 156 157 if ( $this->is_empty_string( $should_include ) ) { 158 continue; 159 } 160 161 $classes[] = $should_include; 162 continue; 163 } 164 165 if ( false === $should_include ) { 166 continue; 167 } 168 169 if ( is_string( $should_include ) 170 && $this->is_empty_string( $should_include ) 171 ) { 172 continue; 173 } 174 175 if ( is_null( $should_include ) ) { 176 continue; 177 } 178 179 if ( is_array( $should_include ) 180 && $this->is_empty_array( $should_include ) 181 ) { 114 182 continue; 115 183 } 116 184 117 185 // Is class assign by associative array. 118 // Like: ['class-a'=>true, 'class-b'=>false, class-c'=>'', 'class-d'=>'hello']. 119 if ( ! empty( $should_include ) ) { 120 $classes[] = esc_attr( $class_name ); 121 } 186 // Like: ['class-a'=>true, 'class-b'=>false, class-c'=>'', 'class-d'=>'hello', 'class-x'=>null, 'class-y'=>array()]. 187 $classes[] = $class_name; 122 188 } 123 189 … … 130 196 * @param string|bool $value String to convert. If a bool is passed it will be returned as-is. 131 197 * 132 * @return bool ean198 * @return bool 133 199 * @since 1.0.0 134 200 */ … … 140 206 * Converts a bool to a 'yes' or 'no'. 141 207 * 142 * @param bool|string $value Bool to convert. If a string is passed it will first be converted to a bool.143 * @param string $true_string Truth string.208 * @param bool|string $value Bool to convert. If a string is passed it will first be converted to a bool. 209 * @param string $true_string Truth string. 144 210 * @param string $false_string Falsy string. 145 211 * … … 150 216 return $this->string_to_boolean( $value ) ? $true_string : $false_string; 151 217 } 218 219 /** 220 * Check is string is empty. 221 * 222 * @param string $check_value Check value. 223 * 224 * @return bool 225 */ 226 public function is_empty_string( string $check_value = '' ): bool { 227 return 0 === strlen( trim( $check_value ) ); 228 } 229 230 /** 231 * Check is array is all empty values. 232 * 233 * @param array<int|string, ?mixed> $items Check array. 234 * 235 * @return bool 236 */ 237 public function is_array_each_empty_value( array $items = array() ): bool { 238 $checked = array_map( 239 function ( $value ) { 240 if ( is_array( $value ) && ! $this->is_array_each_empty_value( $value ) ) { 241 return true; 242 } 243 244 if ( is_string( $value ) && ! $this->is_empty_string( $value ) ) { 245 return true; 246 } 247 248 if ( true === $value ) { 249 return true; 250 } 251 252 return false; 253 }, 254 $items 255 ); 256 257 return ! in_array( true, array_unique( $checked ), true ); 258 } 259 260 /** 261 * Check numeric array is empty. 262 * 263 * @param array<int|string, ?mixed> $items Check array. 264 * 265 * @return bool 266 */ 267 public function is_empty_array( array $items = array() ): bool { 268 return 0 === count( $items ); 269 } 152 270 } -
marquee-block/trunk/includes/Plugin.php
r3136609 r3214417 1 1 <?php 2 /** 3 * Main Plugin Class File. 4 * 5 * @package StorePress/MarqueeBlock 6 * @since 1.0.0 7 * @version 1.0.0 8 */ 9 10 namespace StorePress\MarqueeBlock; 11 12 defined( 'ABSPATH' ) || die( 'Keep Silent' ); 13 14 use Exception; 15 16 /** 17 * Main Plugin Class. 18 */ 2 /** 3 * Main Plugin Class File. 4 * 5 * @package StorePress/MarqueeBlock 6 * @since 1.0.0 7 * @version 1.0.0 8 */ 9 10 declare( strict_types=1 ); 11 12 namespace StorePress\MarqueeBlock; 13 14 defined( 'ABSPATH' ) || die( 'Keep Silent' ); 15 16 use Exception; 17 18 /** 19 * Main Plugin Class. 20 */ 19 21 class Plugin { 20 22 … … 52 54 * Action to signal that Plugin has finished loading. 53 55 * 56 * @param Plugin $instance Plugin Object. 57 * 54 58 * @since 1.0.0 55 *56 * @param Plugin $this Plugin Object.57 59 */ 58 60 do_action( 'storepress_marquee_block_plugin_loaded', $this ); … … 93 95 */ 94 96 public function includes(): bool { 95 96 97 if ( file_exists( $this->vendor_path() . '/autoload_packages.php' ) ) { 97 98 require_once $this->vendor_path() . '/autoload_packages.php'; … … 107 108 * Initialize Classes. 108 109 * 110 * @return void 109 111 * @since 1.0.0 110 112 */ -
marquee-block/trunk/includes/functions.php
r3136609 r3214417 1 1 <?php 2 /**3 * Utility Functions.4 *5 * @package StorePress/MarqueeBlock6 * @since 1.0.07 * @version 1.0.08 */2 /** 3 * Utility Functions. 4 * 5 * @package StorePress/MarqueeBlock 6 * @since 1.0.0 7 * @version 1.0.0 8 */ 9 9 10 namespace StorePress\MarqueeBlock;10 declare( strict_types=1 ); 11 11 12 defined( 'ABSPATH' ) || die( 'Keep Silent' ); 12 namespace StorePress\MarqueeBlock; 13 14 defined( 'ABSPATH' ) || die( 'Keep Silent' ); -
marquee-block/trunk/languages/marquee-block.pot
r3174808 r3214417 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: StorePress Marquee Block Plugin 1. 0.4\n"5 "Project-Id-Version: StorePress Marquee Block Plugin 1.1.0\n" 6 6 "Report-Msgid-Bugs-To: https://storepress.com/\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-1 0-24T08:41:29+00:00\n"12 "POT-Creation-Date: 2024-12-29T12:12:45+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 41 41 msgstr "" 42 42 43 #: includes/Blocks.php:7 443 #: includes/Blocks.php:78 44 44 msgid "StorePress" 45 45 msgstr "" 46 46 47 47 #: build/marquee/index.js:1 48 #: build/marquee/index.js: 16248 #: build/marquee/index.js:503 49 49 msgid "Settings" 50 50 msgstr "" 51 51 52 52 #: build/marquee/index.js:1 53 #: build/marquee/index.js: 16453 #: build/marquee/index.js:505 54 54 msgid "Orientation" 55 55 msgstr "" 56 56 57 57 #: build/marquee/index.js:1 58 #: build/marquee/index.js: 20658 #: build/marquee/index.js:543 59 59 msgid "Animation Direction" 60 60 msgstr "" 61 61 62 62 #: build/marquee/index.js:1 63 #: build/marquee/index.js:246 63 #: build/marquee/index.js:577 64 msgid "On Hover Animation" 65 msgstr "" 66 67 #: build/marquee/index.js:1 68 #: build/marquee/index.js:584 69 msgid "Pause" 70 msgstr "" 71 72 #: build/marquee/index.js:1 73 #: build/marquee/index.js:588 74 msgid "Continue" 75 msgstr "" 76 77 #: build/marquee/index.js:1 78 #: build/marquee/index.js:593 64 79 msgid "Animation Speed" 65 80 msgstr "" 66 81 67 82 #: build/marquee/index.js:1 68 #: build/marquee/index.js: 24769 msgid " Animation speed in seconds"83 #: build/marquee/index.js:599 84 msgid "Style" 70 85 msgstr "" 71 86 72 87 #: build/marquee/index.js:1 73 #: build/marquee/index.js:258 88 #: build/marquee/index.js:601 89 msgid "White Space" 90 msgstr "" 91 92 #: build/marquee/index.js:1 93 #: build/marquee/index.js:608 94 msgid "Wrap" 95 msgstr "" 96 97 #: build/marquee/index.js:1 98 #: build/marquee/index.js:612 99 msgid "No Wrap" 100 msgstr "" 101 102 #: build/marquee/index.js:1 103 #: build/marquee/index.js:617 74 104 msgid "Content Gap" 75 105 msgstr "" 76 106 77 107 #: build/marquee/index.js:1 78 #: build/marquee/index.js:259 79 msgid "Content gap in PX" 80 msgstr "" 81 82 #: build/marquee/index.js:1 83 #: build/marquee/index.js:267 84 msgid "Pause on hover" 85 msgstr "" 86 87 #: build/marquee/index.js:1 88 #: build/marquee/index.js:275 89 msgid "Styles" 90 msgstr "" 91 92 #: build/marquee/index.js:1 93 #: build/marquee/index.js:277 94 msgid "Enable Overlay" 95 msgstr "" 96 97 #: build/marquee/index.js:1 98 #: build/marquee/index.js:292 99 msgid "White Space - No Wrap" 108 #: build/marquee/index.js:630 109 msgid "Overlay color" 100 110 msgstr "" 101 111 -
marquee-block/trunk/marquee-block.php
r3174808 r3214417 9 9 * Plugin URI: https://wordpress.org/plugins/marquee-block 10 10 * Description: Marquee block adds a touch of movement and interactivity to your site and help to capture attention and engage your site visitors in a unique way. 11 * Version: 1. 0.411 * Version: 1.1.0 12 12 * Requires at least: 6.4 13 13 * Requires PHP: 7.4 … … 23 23 * Bootstrap the plugin. 24 24 */ 25 26 declare( strict_types=1 ); 25 27 26 28 defined( 'ABSPATH' ) || die( 'Keep Silent' ); -
marquee-block/trunk/vendor/autoload.php
r3174808 r3214417 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 5d5d739245437564411c3bd7e0b5c0eb::getLoader();25 return ComposerAutoloaderInit8931f25594b75bce8796848896a616e0::getLoader(); -
marquee-block/trunk/vendor/autoload_packages.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/automattic/jetpack-autoloader/CHANGELOG.md
r3174808 r3214417 5 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 8 ## [5.0.0] - 2024-11-25 9 ### Removed 10 - Drop support for Composer <2.2. [#40297] 11 - Remove support for WordPress 6.5 and earlier. [#40200] 12 13 ## [4.0.0] - 2024-11-14 14 ### Removed 15 - General: Update minimum PHP version to 7.2. [#40147] 16 17 ## [3.1.3] - 2024-11-04 18 ### Added 19 - Enable test coverage. [#39961] 7 20 8 21 ## [3.1.2] - 2024-10-15 … … 386 399 - Add Custom Autoloader 387 400 401 [5.0.0]: https://github.com/Automattic/jetpack-autoloader/compare/v4.0.0...v5.0.0 402 [4.0.0]: https://github.com/Automattic/jetpack-autoloader/compare/v3.1.3...v4.0.0 403 [3.1.3]: https://github.com/Automattic/jetpack-autoloader/compare/v3.1.2...v3.1.3 388 404 [3.1.2]: https://github.com/Automattic/jetpack-autoloader/compare/v3.1.1...v3.1.2 389 405 [3.1.1]: https://github.com/Automattic/jetpack-autoloader/compare/v3.1.0...v3.1.1 -
marquee-block/trunk/vendor/automattic/jetpack-autoloader/composer.json
r3152148 r3214417 13 13 ], 14 14 "require": { 15 "php": ">=7. 0",16 "composer-plugin-api": "^ 1.1 || ^2.0"15 "php": ">=7.2", 16 "composer-plugin-api": "^2.2" 17 17 }, 18 18 "require-dev": { 19 "composer/composer": "^ 1.1 || ^2.0",19 "composer/composer": "^2.2", 20 20 "yoast/phpunit-polyfills": "^1.1.1", 21 "automattic/jetpack-changelogger": "^ 4.2.6"21 "automattic/jetpack-changelogger": "^5.1.0" 22 22 }, 23 23 "autoload": { … … 32 32 "phpunit": [ 33 33 "./vendor/phpunit/phpunit/phpunit --colors=always" 34 ], 35 "test-coverage": [ 36 "php -dpcov.directory=. ./vendor/bin/phpunit --coverage-php \"./tests/php/tmp/coverage-report.php\"", 37 "php ./tests/php/bin/test-coverage.php \"$COVERAGE_DIR/php.cov\"" 34 38 ], 35 39 "test-php": [ … … 50 54 }, 51 55 "branch-alias": { 52 "dev-trunk": " 3.1.x-dev"56 "dev-trunk": "5.0.x-dev" 53 57 } 54 58 } -
marquee-block/trunk/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php
r3174808 r3214417 22 22 class AutoloadGenerator { 23 23 24 const VERSION = ' 3.1.2';24 const VERSION = '5.0.0'; 25 25 26 26 /** -
marquee-block/trunk/vendor/automattic/jetpack-autoloader/src/class-latest-autoloader-guard.php
r3152148 r3214417 132 132 if ( $jetpack_autoloader_loader->find_class_file( $classname ) ) { 133 133 $msg = "A Composer autoloader is registered with a higher priority than the Jetpack Autoloader and would also handle some of the classes we handle (e.g. $classname => $path). This may cause strange and confusing problems."; 134 // @todo Remove the is_callable check once we drop support for WP 6.5. 135 if ( is_callable( 'wp_trigger_error' ) ) { 136 wp_trigger_error( '', $msg ); 137 } else { 138 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error 139 trigger_error( $msg ); 140 } 134 wp_trigger_error( '', $msg ); 141 135 continue 2; 142 136 } … … 146 140 $path = array_pop( $paths ); 147 141 $msg = "A Composer autoloader is registered with a higher priority than the Jetpack Autoloader and would also handle some of the namespaces we handle (e.g. $prefix => $path). This may cause strange and confusing problems."; 148 // @todo Remove the is_callable check once we drop support for WP 6.5. 149 if ( is_callable( 'wp_trigger_error' ) ) { 150 wp_trigger_error( '', $msg ); 151 } else { 152 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error 153 trigger_error( $msg ); 154 } 142 wp_trigger_error( '', $msg ); 155 143 continue 2; 156 144 } … … 160 148 $path = array_pop( $paths ); 161 149 $msg = "A Composer autoloader is registered with a higher priority than the Jetpack Autoloader and would also handle some of the namespaces we handle (e.g. $prefix => $path). This may cause strange and confusing problems."; 162 // @todo Remove the is_callable check once we drop support for WP 6.5. 163 if ( is_callable( 'wp_trigger_error' ) ) { 164 wp_trigger_error( '', $msg ); 165 } else { 166 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error 167 trigger_error( $msg ); 168 } 150 wp_trigger_error( '', $msg ); 169 151 continue 2; 170 152 } -
marquee-block/trunk/vendor/automattic/jetpack-autoloader/src/class-php-autoloader.php
r3152148 r3214417 89 89 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_wp_debug_backtrace_summary -- This is a debug log message. 90 90 $msg = "Jetpack Autoloader: Autoloading `$class_name` before the plugins_loaded hook may cause strange and confusing problems. " . wp_debug_backtrace_summary( '', 1 ); 91 // @todo Remove the is_callable check once we drop support for WP 6.5. 92 if ( is_callable( 'wp_trigger_error' ) ) { 93 wp_trigger_error( '', $msg ); 94 } else { 95 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error 96 trigger_error( $msg ); 97 } 91 wp_trigger_error( '', $msg ); 98 92 } 99 93 -
marquee-block/trunk/vendor/composer/autoload_real.php
r3174808 r3214417 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 5d5d739245437564411c3bd7e0b5c0eb5 class ComposerAutoloaderInit8931f25594b75bce8796848896a616e0 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 5d5d739245437564411c3bd7e0b5c0eb', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit8931f25594b75bce8796848896a616e0', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 5d5d739245437564411c3bd7e0b5c0eb', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit8931f25594b75bce8796848896a616e0', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 5d5d739245437564411c3bd7e0b5c0eb::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit8931f25594b75bce8796848896a616e0::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
marquee-block/trunk/vendor/composer/autoload_static.php
r3174808 r3214417 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 5d5d739245437564411c3bd7e0b5c0eb7 class ComposerStaticInit8931f25594b75bce8796848896a616e0 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 44 44 { 45 45 return \Closure::bind(function () use ($loader) { 46 $loader->prefixLengthsPsr4 = ComposerStaticInit 5d5d739245437564411c3bd7e0b5c0eb::$prefixLengthsPsr4;47 $loader->prefixDirsPsr4 = ComposerStaticInit 5d5d739245437564411c3bd7e0b5c0eb::$prefixDirsPsr4;48 $loader->classMap = ComposerStaticInit 5d5d739245437564411c3bd7e0b5c0eb::$classMap;46 $loader->prefixLengthsPsr4 = ComposerStaticInit8931f25594b75bce8796848896a616e0::$prefixLengthsPsr4; 47 $loader->prefixDirsPsr4 = ComposerStaticInit8931f25594b75bce8796848896a616e0::$prefixDirsPsr4; 48 $loader->classMap = ComposerStaticInit8931f25594b75bce8796848896a616e0::$classMap; 49 49 50 50 }, null, ClassLoader::class); -
marquee-block/trunk/vendor/composer/installed.json
r3174808 r3214417 3 3 { 4 4 "name": "automattic/jetpack-autoloader", 5 "version": "v 3.1.2",6 "version_normalized": " 3.1.2.0",5 "version": "v5.0.0", 6 "version_normalized": "5.0.0.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/Automattic/jetpack-autoloader.git", 10 "reference": " c111020cac7c6a830af6f6827c175e3c76a60f75"10 "reference": "eb6331a5c50a03afd9896ce012e66858de9c49c5" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/ c111020cac7c6a830af6f6827c175e3c76a60f75",15 "reference": " c111020cac7c6a830af6f6827c175e3c76a60f75",14 "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/eb6331a5c50a03afd9896ce012e66858de9c49c5", 15 "reference": "eb6331a5c50a03afd9896ce012e66858de9c49c5", 16 16 "shasum": "" 17 17 }, 18 18 "require": { 19 "composer-plugin-api": "^ 1.1 || ^2.0",20 "php": ">=7. 0"19 "composer-plugin-api": "^2.2", 20 "php": ">=7.2" 21 21 }, 22 22 "require-dev": { 23 "automattic/jetpack-changelogger": "^ 4.2.6",24 "composer/composer": "^ 1.1 || ^2.0",23 "automattic/jetpack-changelogger": "^5.1.0", 24 "composer/composer": "^2.2", 25 25 "yoast/phpunit-polyfills": "^1.1.1" 26 26 }, 27 "time": "2024-1 0-15T22:10:35+00:00",27 "time": "2024-11-25T16:33:57+00:00", 28 28 "type": "composer-plugin", 29 29 "extra": { 30 "class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin", 30 31 "autotagger": true, 31 "class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin",32 32 "mirror-repo": "Automattic/jetpack-autoloader", 33 "branch-alias": { 34 "dev-trunk": "5.0.x-dev" 35 }, 33 36 "changelogger": { 34 37 "link-template": "https://github.com/Automattic/jetpack-autoloader/compare/v${old}...v${new}" … … 36 39 "version-constants": { 37 40 "::VERSION": "src/AutoloadGenerator.php" 38 },39 "branch-alias": {40 "dev-trunk": "3.1.x-dev"41 41 } 42 42 }, … … 64 64 ], 65 65 "support": { 66 "source": "https://github.com/Automattic/jetpack-autoloader/tree/v 3.1.2"66 "source": "https://github.com/Automattic/jetpack-autoloader/tree/v5.0.0" 67 67 }, 68 68 "install-path": "../automattic/jetpack-autoloader" -
marquee-block/trunk/vendor/composer/installed.php
r3174808 r3214417 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 9d4ce799eb271d1e25ee8dd36a5309adff2f6b77',6 'reference' => '40fb8cb941eb89131d99a08be59078f79527da68', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'automattic/jetpack-autoloader' => array( 14 'pretty_version' => 'v 3.1.2',15 'version' => ' 3.1.2.0',16 'reference' => ' c111020cac7c6a830af6f6827c175e3c76a60f75',14 'pretty_version' => 'v5.0.0', 15 'version' => '5.0.0.0', 16 'reference' => 'eb6331a5c50a03afd9896ce012e66858de9c49c5', 17 17 'type' => 'composer-plugin', 18 18 'install_path' => __DIR__ . '/../automattic/jetpack-autoloader', … … 23 23 'pretty_version' => 'dev-master', 24 24 'version' => 'dev-master', 25 'reference' => ' 9d4ce799eb271d1e25ee8dd36a5309adff2f6b77',25 'reference' => '40fb8cb941eb89131d99a08be59078f79527da68', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
marquee-block/trunk/vendor/composer/jetpack_autoload_classmap.php
r3174808 r3214417 8 8 return array( 9 9 'Autoloader' => array( 10 'version' => ' 3.1.2',10 'version' => '5.0.0', 11 11 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader.php' 12 12 ), 13 13 'Autoloader_Handler' => array( 14 'version' => ' 3.1.2',14 'version' => '5.0.0', 15 15 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-handler.php' 16 16 ), 17 17 'Autoloader_Locator' => array( 18 'version' => ' 3.1.2',18 'version' => '5.0.0', 19 19 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-locator.php' 20 20 ), 21 21 'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array( 22 'version' => ' 3.1.2',22 'version' => '5.0.0', 23 23 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadFileWriter.php' 24 24 ), 25 25 'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array( 26 'version' => ' 3.1.2',26 'version' => '5.0.0', 27 27 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php' 28 28 ), 29 29 'Automattic\\Jetpack\\Autoloader\\AutoloadProcessor' => array( 30 'version' => ' 3.1.2',30 'version' => '5.0.0', 31 31 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadProcessor.php' 32 32 ), 33 33 'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array( 34 'version' => ' 3.1.2',34 'version' => '5.0.0', 35 35 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php' 36 36 ), 37 37 'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => array( 38 'version' => ' 3.1.2',38 'version' => '5.0.0', 39 39 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php' 40 40 ), 41 41 'Container' => array( 42 'version' => ' 3.1.2',42 'version' => '5.0.0', 43 43 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-container.php' 44 44 ), 45 45 'Hook_Manager' => array( 46 'version' => ' 3.1.2',46 'version' => '5.0.0', 47 47 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-hook-manager.php' 48 48 ), 49 49 'Latest_Autoloader_Guard' => array( 50 'version' => ' 3.1.2',50 'version' => '5.0.0', 51 51 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-latest-autoloader-guard.php' 52 52 ), 53 53 'Manifest_Reader' => array( 54 'version' => ' 3.1.2',54 'version' => '5.0.0', 55 55 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-manifest-reader.php' 56 56 ), 57 57 'PHP_Autoloader' => array( 58 'version' => ' 3.1.2',58 'version' => '5.0.0', 59 59 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-php-autoloader.php' 60 60 ), 61 61 'Path_Processor' => array( 62 'version' => ' 3.1.2',62 'version' => '5.0.0', 63 63 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-path-processor.php' 64 64 ), 65 65 'Plugin_Locator' => array( 66 'version' => ' 3.1.2',66 'version' => '5.0.0', 67 67 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugin-locator.php' 68 68 ), 69 69 'Plugins_Handler' => array( 70 'version' => ' 3.1.2',70 'version' => '5.0.0', 71 71 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugins-handler.php' 72 72 ), 73 73 'Shutdown_Handler' => array( 74 'version' => ' 3.1.2',74 'version' => '5.0.0', 75 75 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-shutdown-handler.php' 76 76 ), … … 88 88 ), 89 89 'Version_Loader' => array( 90 'version' => ' 3.1.2',90 'version' => '5.0.0', 91 91 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-loader.php' 92 92 ), 93 93 'Version_Selector' => array( 94 'version' => ' 3.1.2',94 'version' => '5.0.0', 95 95 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-selector.php' 96 96 ), -
marquee-block/trunk/vendor/composer/platform_check.php
r3136609 r3214417 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70 000)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7. 0.0". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 70200)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
marquee-block/trunk/vendor/jetpack-autoloader/class-autoloader-handler.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/jetpack-autoloader/class-autoloader-locator.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/jetpack-autoloader/class-autoloader.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/jetpack-autoloader/class-container.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/jetpack-autoloader/class-hook-manager.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/jetpack-autoloader/class-latest-autoloader-guard.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore … … 140 140 if ( $jetpack_autoloader_loader->find_class_file( $classname ) ) { 141 141 $msg = "A Composer autoloader is registered with a higher priority than the Jetpack Autoloader and would also handle some of the classes we handle (e.g. $classname => $path). This may cause strange and confusing problems."; 142 // @todo Remove the is_callable check once we drop support for WP 6.5. 143 if ( is_callable( 'wp_trigger_error' ) ) { 144 wp_trigger_error( '', $msg ); 145 } else { 146 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error 147 trigger_error( $msg ); 148 } 142 wp_trigger_error( '', $msg ); 149 143 continue 2; 150 144 } … … 154 148 $path = array_pop( $paths ); 155 149 $msg = "A Composer autoloader is registered with a higher priority than the Jetpack Autoloader and would also handle some of the namespaces we handle (e.g. $prefix => $path). This may cause strange and confusing problems."; 156 // @todo Remove the is_callable check once we drop support for WP 6.5. 157 if ( is_callable( 'wp_trigger_error' ) ) { 158 wp_trigger_error( '', $msg ); 159 } else { 160 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error 161 trigger_error( $msg ); 162 } 150 wp_trigger_error( '', $msg ); 163 151 continue 2; 164 152 } … … 168 156 $path = array_pop( $paths ); 169 157 $msg = "A Composer autoloader is registered with a higher priority than the Jetpack Autoloader and would also handle some of the namespaces we handle (e.g. $prefix => $path). This may cause strange and confusing problems."; 170 // @todo Remove the is_callable check once we drop support for WP 6.5. 171 if ( is_callable( 'wp_trigger_error' ) ) { 172 wp_trigger_error( '', $msg ); 173 } else { 174 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error 175 trigger_error( $msg ); 176 } 158 wp_trigger_error( '', $msg ); 177 159 continue 2; 178 160 } -
marquee-block/trunk/vendor/jetpack-autoloader/class-manifest-reader.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/jetpack-autoloader/class-path-processor.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/jetpack-autoloader/class-php-autoloader.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore … … 97 97 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_wp_debug_backtrace_summary -- This is a debug log message. 98 98 $msg = "Jetpack Autoloader: Autoloading `$class_name` before the plugins_loaded hook may cause strange and confusing problems. " . wp_debug_backtrace_summary( '', 1 ); 99 // @todo Remove the is_callable check once we drop support for WP 6.5. 100 if ( is_callable( 'wp_trigger_error' ) ) { 101 wp_trigger_error( '', $msg ); 102 } else { 103 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error 104 trigger_error( $msg ); 105 } 99 wp_trigger_error( '', $msg ); 106 100 } 107 101 -
marquee-block/trunk/vendor/jetpack-autoloader/class-plugin-locator.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/jetpack-autoloader/class-plugins-handler.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/jetpack-autoloader/class-shutdown-handler.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/jetpack-autoloader/class-version-loader.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore -
marquee-block/trunk/vendor/jetpack-autoloader/class-version-selector.php
r3174808 r3214417 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp 5d5d739245437564411c3bd7e0b5c0eb\al3_1_2;8 namespace Automattic\Jetpack\Autoloader\jp8931f25594b75bce8796848896a616e0\al5_0_0; 9 9 10 10 // phpcs:ignore
Note: See TracChangeset
for help on using the changeset viewer.