Got questions?
Feel free to reach out.

=== WordPress Importer === Contributors: wordpressdotorg Donate link: https://wordpressfoundation.org/donate/ Tags: importer, wordpress Requires at least: 5.2 Tested up to: 6.8 Requires PHP: 7.2 Stable tag: 0.9.6 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Import posts, pages, comments, custom fields, categories, tags and more from a WordPress export file. == Description == The WordPress Importer will import the following content from a WordPress export file: * Posts, pages and other custom post types * Comments and comment meta * Custom fields and post meta * Categories, tags and terms from custom taxonomies and term meta * Authors For further information and instructions please see the [documention on Importing Content](https://wordpress.org/support/article/importing-content/#wordpress). == Installation == The quickest method for installing the importer is: 1. Visit Tools -> Import in the WordPress dashboard 1. Click on the WordPress link in the list of importers 1. Click "Install Now" 1. Finally click "Activate Plugin & Run Importer" If you would prefer to do things manually then follow these instructions: 1. Upload the `wordpress-importer` folder to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Go to the Tools -> Import screen, click on WordPress == Changelog == = 0.9.6 = * Skip the `_wp_font_face_file` meta key on import. Font attachments regenerate this meta locally, and the imported value pointed at a file path from the source site. * Prefix bundled vendor namespaces (`Rowbot\URL`, `Brick\Math`, `Psr\Log`, and others) with `VendorPrefix\` to avoid class redefinition errors when another plugin bundles the same libraries. * Add a Live Preview blueprint so the plugin can be tried in WordPress Playground from the plugin directory page. * Code refactoring: extract single-post processing into a separate process_post() method, continuing the streaming preparation work. = 0.9.5 = * Rewrite CSS URLs in block markup (e.g., cover blocks with background images). * Code refactoring: Extract import processing logic into separate methods to prepare for future streaming support. * Update Playwright and @playwright/test dependencies from 1.55.0 to 1.56.1. * Clean up vendor-patched dependencies by removing dotfiles and GitHub workflow files. = 0.9.4 = * Fix a bug that caused self-closing blocks to be incorrectly serialized during URL rewriting. = 0.9.3 = * Rewrite attachment URLs to the new URL structure = 0.9.2 = * Rewrite site URLs in block attributes. = 0.9.1 = * Add support for rewriting site URLs in post content and excerpts. = 0.9.0 = * Introduce a new XML parser class `WXR_Parser_XML_Processor` that replaces the deprecated `WXR_Parser_Regex` class. = 0.8.4 = * Fix a bug on deserialization of untrusted input. * Update compatibility tested-up-to to WordPress 6.7.2. = 0.8.3 = * Update compatibility tested-up-to to WordPress 6.7. * Update call to `post_exists` to include `post_type` in the query * PHP 8.4 compatibility fixes. = 0.8.2 = * Update compatibility tested-up-to to WordPress 6.4.2. * Update doc URL references. * Adjust workflow triggers. = 0.8.1 = * Update compatibility tested-up-to to WordPress 6.2. * Update paths to build status badges. = 0.8 = * Update minimum WordPress requirement to 5.2. * Update minimum PHP requirement to 5.6. * Update compatibility tested-up-to to WordPress 6.1. * PHP 8.0, 8.1, and 8.2 compatibility fixes. * Fix a bug causing blank lines in content to be ignored when using the Regex Parser. * Fix a bug resulting in a PHP fatal error when IMPORT_DEBUG is enabled and a category creation error occurs. * Improved Unit testing & automated testing. = 0.7 = * Update minimum WordPress requirement to 3.7 and ensure compatibility with PHP 7.4. * Fix bug that caused not importing term meta. * Fix bug that caused slashes to be stripped from imported meta data. * Fix bug that prevented import of serialized meta data. * Fix file size check after download of remote files with HTTP compression enabled. * Improve accessibility of form fields by adding missing labels. * Improve imports for remote file URLs without name and/or extension. * Add support for `wp:base_blog_url` field to allow importing multiple files with WP-CLI. * Add support for term meta parsing when using the regular expressions or XML parser. * Developers: All PHP classes have been moved into their own files. * Developers: Allow to change `IMPORT_DEBUG` via `wp-config.php` and change default value to the value of `WP_DEBUG`. = 0.6.4 = * Improve PHP7 compatibility. * Fix bug that caused slashes to be stripped from imported comments. * Fix for various deprecation notices including `wp_get_http()` and `screen_icon()`. * Fix for importing export files with multiline term meta data. = 0.6.3 = * Add support for import term metadata. * Fix bug that caused slashes to be stripped from imported content. * Fix bug that caused characters to be stripped inside of CDATA in some cases. * Fix PHP notices. = 0.6.2 = * Add `wp_import_existing_post` filter, see [Trac ticket #33721](https://core.trac.wordpress.org/ticket/33721). = 0.6 = * Support for WXR 1.2 and multiple CDATA sections * Post aren't duplicates if their post_type's are different = 0.5.2 = * Double check that the uploaded export file exists before processing it. This prevents incorrect error messages when an export file is uploaded to a server with bad permissions and WordPress 3.3 or 3.3.1 is being used. = 0.5 = * Import comment meta (requires export from WordPress 3.2) * Minor bugfixes and enhancements = 0.4 = * Map comment user_id where possible * Import attachments from `wp:attachment_url` * Upload attachments to correct directory * Remap resized image URLs correctly = 0.3 = * Use an XML Parser if possible * Proper import support for nav menus * ... and much more, see [Trac ticket #15197](https://core.trac.wordpress.org/ticket/15197) = 0.1 = * Initial release == Frequently Asked Questions == = Help! I'm getting out of memory errors or a blank screen. = If your exported file is very large, the import script may run into your host's configured memory limit for PHP. A message like "Fatal error: Allowed memory size of 8388608 bytes exhausted" indicates that the script can't successfully import your XML file under the current PHP memory limit. If you have access to the php.ini file, you can manually increase the limit; if you do not (your WordPress installation is hosted on a shared server, for instance), you might have to break your exported XML file into several smaller pieces and run the import script one at a time. For those with shared hosting, the best alternative may be to consult hosting support to determine the safest approach for running the import. A host may be willing to temporarily lift the memory limit and/or run the process directly from their end. -- [Support Article: Importing Content](https://wordpress.org/support/article/importing-content/#before-importing) == Filters == The importer has a couple of filters to allow you to completely enable/block certain features: * `import_allow_create_users`: return false if you only want to allow mapping to existing users * `import_allow_fetch_attachments`: return false if you do not wish to allow importing and downloading of attachments * `import_attachment_size_limit`: return an integer value for the maximum file size in bytes to save (default is 0, which is unlimited) There are also a few actions available to hook into: * `import_start`: occurs after the export file has been uploaded and author import settings have been chosen * `import_end`: called after the last output from the importer

Got any book recommendations?


(()=>{"use strict";var e={3865(){const e=window.wp.blocks,o=window.ReactJSXRuntime,t="#2563eb",r={container:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:t},grid:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"12",y1:"4",x2:"12",y2:"20",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:t},slides:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M3.5 9v6M20.5 9v6",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},slide:{src:(0,o.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("rect",{x:"4",y:"6",width:"16",height:"12",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"})}),foreground:t},button:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"7",width:"18",height:"10",rx:"5",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},heading:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M5 5v14M13 5v14M5 12h8",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M17 10h3v9",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:t},image:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"8.5",cy:"9",r:"1.6",fill:"currentColor"}),(0,o.jsx)("path",{d:"M4 17l4.5-4.5 3.5 3.5 3-3L20 16.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:t},"before-after":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M12 3v18",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"12",cy:"12",r:"2.4",fill:"currentColor"}),(0,o.jsx)("path",{d:"M8 12H6M18 12h-2",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]}),foreground:t},countdown:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"12",cy:"13",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M12 9v4l2.5 2.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("line",{x1:"9",y1:"2.5",x2:"15",y2:"2.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},faq:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"18",height:"4.5",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"3",y:"11.5",width:"18",height:"4.5",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M17.5 6.25h.01M17.5 13.75h.01",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),foreground:t},"social-icon":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"6",cy:"12",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"16.5",cy:"5.5",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"16.5",cy:"18.5",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M8.3 10.7l5.9-3.7M8.3 13.3l5.9 3.7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"social-share":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"18",cy:"5.5",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"6",cy:"12",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"18",cy:"18.5",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M8.3 10.7l7.4-4.2M8.3 13.3l7.4 4.2",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},text:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("line",{x1:"4",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"4",y1:"10",x2:"20",y2:"10",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"4",y1:"14",x2:"14",y2:"14",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"4",y1:"18",x2:"17",y2:"18",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},separator:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,o.jsx)("circle",{cx:"6",cy:"12",r:"0.6",fill:"currentColor"}),(0,o.jsx)("circle",{cx:"18",cy:"12",r:"0.6",fill:"currentColor"})]}),foreground:t},testimonial:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M4 4h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H9l-4 4v-4H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"m12 7 1.1 2.3 2.4.3-1.8 1.7.5 2.4-2.2-1.2-2.2 1.2.5-2.4L8.5 9.6l2.4-.3L12 7Z",fill:"currentColor"})]}),foreground:t},counter:{src:(0,o.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M4 20V10M12 20V4M20 20v-7",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})}),foreground:t},"info-box":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"8",cy:"9",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"12",y1:"8",x2:"18",y2:"8",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"6",y1:"14",x2:"18",y2:"14",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"6",y1:"17",x2:"15",y2:"17",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:t},"table-of-content":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("line",{x1:"4",y1:"6",x2:"6",y2:"6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"9",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"4",y1:"12",x2:"6",y2:"12",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"9",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"4",y1:"18",x2:"6",y2:"18",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"9",y1:"18",x2:"20",y2:"18",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),foreground:t},"comparison-table":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"9",y1:"9",x2:"9",y2:"20",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"15",y1:"9",x2:"15",y2:"20",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:t},breadcrumb:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M3 6h6M3 12h6M3 18h6",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M13 7l3 5-3 5M18 7l3 5-3 5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:t},"video-popup":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M10 9.2v5.6l5-2.8z",fill:"currentColor"})]}),foreground:t},tabs:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M3 9h18",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"4.5",y:"6.2",width:"4.5",height:"1.6",rx:"0.8",fill:"currentColor"})]}),foreground:t},steps:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"6",cy:"6",r:"2.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"6",cy:"18",r:"2.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"6",y1:"8.5",x2:"6",y2:"15.5",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"11",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"11",y1:"18",x2:"20",y2:"18",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"google-map":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M12 21s6-5.2 6-10a6 6 0 1 0-12 0c0 4.8 6 10 6 10Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"}),(0,o.jsx)("circle",{cx:"12",cy:"11",r:"2.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:t},"images-gallery":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"8",height:"8",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"13",y:"4",width:"8",height:"8",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"3",y:"14",width:"8",height:"6",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"13",y:"14",width:"8",height:"6",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:t},banner:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"7",y1:"10",x2:"17",y2:"10",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"9",y1:"13",x2:"15",y2:"13",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),(0,o.jsx)("rect",{x:"9.5",y:"15.2",width:"5",height:"2.2",rx:"1.1",fill:"currentColor"})]}),foreground:t},cta:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("line",{x1:"6",y1:"7",x2:"18",y2:"7",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"8",y1:"10.5",x2:"16",y2:"10.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),(0,o.jsx)("rect",{x:"7",y:"13.5",width:"10",height:"4.5",rx:"2.25",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"10",y1:"15.75",x2:"14",y2:"15.75",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"subscribe-form":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"7",y1:"9",x2:"17",y2:"9",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"7",y1:"12",x2:"14",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("rect",{x:"7",y:"15",width:"6",height:"2.6",rx:"1.3",fill:"currentColor"})]}),foreground:t},"subscribe-form-email":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M4 8l8 5 8-5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:t},"subscribe-form-name":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"8",width:"18",height:"8",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"6",y1:"12",x2:"7",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"subscribe-form-phone":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"7",y:"3",width:"10",height:"18",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"10.5",y1:"18",x2:"13.5",y2:"18",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"subscribe-form-textarea":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"6",y1:"9",x2:"18",y2:"9",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"6",y1:"12",x2:"18",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"6",y1:"15",x2:"13",y2:"15",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"subscribe-form-select":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"7",width:"18",height:"10",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M14 11l2 2 2-2",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:t},"subscribe-form-radio":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"7",cy:"8",r:"2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"7",cy:"8",r:"0.9",fill:"currentColor"}),(0,o.jsx)("circle",{cx:"7",cy:"16",r:"2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"12",y1:"8",x2:"19",y2:"8",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"12",y1:"16",x2:"19",y2:"16",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"subscribe-form-checkbox":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"4",y:"5.5",width:"6.5",height:"6.5",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M5.5 8.8l1.4 1.4 2.2-2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("line",{x1:"13",y1:"8.5",x2:"20",y2:"8.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"4",y1:"16.5",x2:"20",y2:"16.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"subscribe-form-date":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"8",y1:"3",x2:"8",y2:"6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"16",y1:"3",x2:"16",y2:"6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("rect",{x:"7",y:"12",width:"3",height:"3",rx:"0.6",fill:"currentColor"})]}),foreground:t},"subscribe-form-url":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M10 14a3.5 3.5 0 0 0 5 0l2.5-2.5a3.5 3.5 0 0 0-5-5L11 8",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M14 10a3.5 3.5 0 0 0-5 0l-2.5 2.5a3.5 3.5 0 0 0 5 5L13 16",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:t},"subscribe-form-toggle":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"2",y:"7",width:"20",height:"10",rx:"5",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"16",cy:"12",r:"3",fill:"currentColor"})]}),foreground:t},"subscribe-form-upload":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M12 15V5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M8.5 8.5L12 5l3.5 3.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M5 15v3a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:t},"subscribe-form-hidden":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M3 12s3.5-6 9-6 9 6 9 6-3.5 6-9 6-9-6-9-6Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"}),(0,o.jsx)("circle",{cx:"12",cy:"12",r:"2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"4",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"pricing-table":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"5.5",height:"16",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"9.25",y:"4",width:"5.5",height:"16",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"15.5",y:"4",width:"5.5",height:"16",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"10.5",y1:"8",x2:"13.5",y2:"8",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"team-member":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"12",cy:"8",r:"3.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M5.5 19a6.5 6.5 0 0 1 13 0",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"post-grid":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"8",height:"7",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"13",y:"4",width:"8",height:"7",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"3",y:"13",width:"8",height:"7",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"13",y:"13",width:"8",height:"7",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:t},"post-filter":{src:(0,o.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M3 5h18l-7 8v6l-4 2v-8L3 5Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"})}),foreground:t},"filter-search":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"11",cy:"11",r:"6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"15.5",y1:"15.5",x2:"20",y2:"20",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"filter-taxonomy":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"m8 10.5 2.5 2.5L16 8",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:t},"filter-reset":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M20 12a8 8 0 1 1-2.6-5.9",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M20 4v4h-4",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:t},"process-bar":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"9",width:"18",height:"6",rx:"3",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"5",y:"11",width:"9",height:"2",rx:"1",fill:"currentColor"})]}),foreground:t},timeline:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"21",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("circle",{cx:"12",cy:"7",r:"2.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"12",cy:"16",r:"2.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"14.5",y1:"7",x2:"20",y2:"7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"4",y1:"16",x2:"9.5",y2:"16",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},icon:{src:(0,o.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"m12 3 2.6 5.6 6.1.7-4.5 4.1 1.2 6-5.4-3-5.4 3 1.2-6L3.3 9.3l6.1-.7L12 3Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"})}),foreground:t},"icon-list":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"5",cy:"6",r:"1.8",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"5",cy:"12",r:"1.8",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"5",cy:"18",r:"1.8",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"10",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"10",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"10",y1:"18",x2:"16",y2:"18",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"star-rating":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"m6 8 .9 2 2.1.2-1.6 1.4.5 2.1L6 12.6 4.1 13.7l.5-2.1L3 10.2l2.1-.2L6 8Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"m12 8 .9 2 2.1.2-1.6 1.4.5 2.1-1.9-1.1-1.9 1.1.5-2.1L9 10.2l2.1-.2L12 8Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"m18 8 .9 2 2.1.2-1.6 1.4.5 2.1-1.9-1.1-1.9 1.1.5-2.1L15 10.2l2.1-.2L18 8Z",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round"})]}),foreground:t},modal:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.4",opacity:"0.4"}),(0,o.jsx)("rect",{x:"6",y:"7",width:"12",height:"10",rx:"1.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"8.5",y1:"10.5",x2:"15.5",y2:"10.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"8.5",y1:"13.5",x2:"13",y2:"13.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]}),foreground:t},lottie:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M10 8.5v7l6-3.5-6-3.5Z",fill:"currentColor"})]}),foreground:t},notice:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"8.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"facebook-feed":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"3",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M14 8h-1.5c-.8 0-1.5.7-1.5 1.5V11H9.5v2H11v5h2v-5h1.6l.4-2H13V9.8c0-.4.2-.8.7-.8H14V8Z",fill:"currentColor"})]}),foreground:t},"instagram-feed":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"4.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"12",cy:"12",r:"3.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("circle",{cx:"16.6",cy:"7.4",r:"1.1",fill:"currentColor"})]}),foreground:t},taxonomy:{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M4 5.5A1.5 1.5 0 0 1 5.5 4h6.7c.4 0 .8.16 1.06.44l6.3 6.3a1.5 1.5 0 0 1 0 2.12l-6.7 6.7a1.5 1.5 0 0 1-2.12 0l-6.3-6.3A1.5 1.5 0 0 1 4 12.2V5.5Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"}),(0,o.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.3",fill:"currentColor"})]}),foreground:t},"data-table":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"9",y1:"9",x2:"9",y2:"20",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"3",y1:"14.5",x2:"21",y2:"14.5",stroke:"currentColor",strokeWidth:"1.4"})]}),foreground:t},"product-name":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M4 7h16",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M4 12h11",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M4 17h7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:t},"product-price":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"8.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M14.5 9.2c-.6-.8-1.6-1.2-2.6-1.2-1.5 0-2.6.9-2.6 2.1 0 2.9 5.4 1.6 5.4 4.4 0 1.3-1.2 2.2-2.8 2.2-1.1 0-2.2-.5-2.8-1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M12 6.2v11.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),foreground:t},"product-rating":{src:(0,o.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M12 3.5l2.6 5.27 5.82.85-4.21 4.1.99 5.8L12 16.77 6.79 19.5l.99-5.8-4.21-4.1 5.82-.85L12 3.5z",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})}),foreground:t},"product-detail":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("rect",{x:"3",y:"4",width:"7",height:"5",rx:"2",fill:"currentColor",opacity:"0.18",stroke:"none"}),(0,o.jsx)("line",{x1:"6",y1:"13",x2:"18",y2:"13",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"6",y1:"16.5",x2:"14",y2:"16.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]}),foreground:t},"product-image":{src:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"3",y:"3.5",width:"18",height:"13",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.jsx)("path",{d:"M6 13.5l3.2-3.6 2.6 2.7 2.4-2.1 3.8 3.9",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("circle",{cx:"9",cy:"7.5",r:"1.3",fill:"currentColor"}),(0,o.jsx)("rect",{x:"4",y:"19",width:"4.5",height:"2.5",rx:"0.8",fill:"currentColor",opacity:"0.5",stroke:"none"}),(0,o.jsx)("rect",{x:"9.8",y:"19",width:"4.5",height:"2.5",rx:"0.8",fill:"currentColor",opacity:"0.25",stroke:"none"}),(0,o.jsx)("rect",{x:"15.6",y:"19",width:"4.5",height:"2.5",rx:"0.8",fill:"currentColor",opacity:"0.25",stroke:"none"})]}),foreground:t}},l=window.wp.i18n,n=window.wp.element,s=window.wp.blockEditor,i=window.wp.components,a=(e,t="0 0 24 24")=>(0,o.jsx)("svg",{width:"24",height:"24",viewBox:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:e}),c=a((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("rect",{x:"3",y:"4",width:"18",height:"12",rx:"1.5"}),(0,o.jsx)("line",{x1:"8",y1:"20",x2:"16",y2:"20"}),(0,o.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"20"})]})),x=a((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("rect",{x:"6",y:"3",width:"12",height:"18",rx:"1.5"}),(0,o.jsx)("line",{x1:"11",y1:"18",x2:"13",y2:"18"})]})),d=a((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("rect",{x:"8",y:"3",width:"8",height:"18",rx:"1.5"}),(0,o.jsx)("line",{x1:"11",y1:"18",x2:"13",y2:"18"})]})),u=(a((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("line",{x1:"4",y1:"12",x2:"19",y2:"12"}),(0,o.jsx)("path",{d:"M14.5 7.5 L19 12 L14.5 16.5"})]})),a((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("line",{x1:"12",y1:"4",x2:"12",y2:"19"}),(0,o.jsx)("path",{d:"M7.5 14.5 L12 19 L16.5 14.5"})]})),(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M18 5a1 1 0 100-2H2a1 1 0 000 2h16zm-8 4a1 1 0 100-2H2a1 1 0 100 2h8zm9 3a1 1 0 01-1 1H2a1 1 0 110-2h16a1 1 0 011 1zm-9 5a1 1 0 100-2H2a1 1 0 100 2h8z"})})),h=(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M18 5a1 1 0 100-2H2a1 1 0 000 2h16zm0 4a1 1 0 100-2h-8a1 1 0 100 2h8zm1 3a1 1 0 01-1 1H2a1 1 0 110-2h16a1 1 0 011 1zm-1 5a1 1 0 100-2h-8a1 1 0 100 2h8z"})}),g=a((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("path",{d:"M5 12a7 7 0 1 0 2-4.9"}),(0,o.jsx)("polyline",{points:"4 4 4 8 8 8"})]})),k=a((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("path",{d:"M10 13a3 3 0 0 0 4.2 0l2.3-2.3a3 3 0 0 0-4.2-4.2l-1 1"}),(0,o.jsx)("path",{d:"M14 11a3 3 0 0 0-4.2 0L7.5 13.3a3 3 0 0 0 4.2 4.2l1-1"})]})),f=a((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,o.jsx)("line",{x1:"12",y1:"2.5",x2:"12",y2:"5"}),(0,o.jsx)("line",{x1:"12",y1:"19",x2:"12",y2:"21.5"}),(0,o.jsx)("line",{x1:"2.5",y1:"12",x2:"5",y2:"12"}),(0,o.jsx)("line",{x1:"19",y1:"12",x2:"21.5",y2:"12"}),(0,o.jsx)("line",{x1:"5.3",y1:"5.3",x2:"7",y2:"7"}),(0,o.jsx)("line",{x1:"17",y1:"17",x2:"18.7",y2:"18.7"}),(0,o.jsx)("line",{x1:"5.3",y1:"18.7",x2:"7",y2:"17"}),(0,o.jsx)("line",{x1:"17",y1:"7",x2:"18.7",y2:"5.3"})]})),p=a((0,o.jsx)("path",{d:"M20 14.5A8 8 0 0 1 9.5 4a7 7 0 1 0 10.5 10.5z"})),b=["top","right","bottom","left"],j=["topLeft","topRight","bottomRight","bottomLeft"],w=(e={},o="desktop")=>{const t=e?.desktop||{},r=e?.tablet||{},l=e?.mobile||{};return"tablet"===o?{...t,...r}:"mobile"===o?{...t,...r,...l}:{...t}},_=(e={},o="desktop")=>e?.[o]||{},v=(e={},o="desktop",t={})=>({...e,[o]:{...e?.[o]||{},...t}}),y=(e,o="px")=>{const t=String(e??"");return""===t?"":"auto"===t||"none"===t||/[a-z%)]$/i.test(t)?t:`${t}${o}`},m=(e={})=>{const o=e.unit||"px";let t=!1;const r=b.map(r=>{const l=e[r]??"";return""!==String(l)&&(t=!0),""===l?"0":y(l,o)});return t?r.join(" "):void 0},C=(e={})=>{const o=e.unit||"px";let t=!1;const r=j.map(r=>{const l=e[r]??"";return""!==String(l)&&(t=!0),""===l?"0":y(l,o)});return t?r.join(" "):void 0},B=["div","section","article","aside","header","footer","main","nav"],W=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],L=W,M=[{value:"",label:"Default"},{value:"visible",label:"Visible"},{value:"hidden",label:"Hidden"},{value:"auto",label:"Auto"},{value:"scroll",label:"Scroll"}],S=[{value:"",label:"Default"},{value:"relative",label:"Relative"},{value:"absolute",label:"Absolute"},{value:"fixed",label:"Fixed"},{value:"sticky",label:"Sticky"},{value:"static",label:"Static"}],T=[{value:"",label:"None"},{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"},{value:"double",label:"Double"}],N=(T.filter(e=>""!==e.value),[{name:"Black",color:"#111827"},{name:"Gray 700",color:"#374151"},{name:"Gray 400",color:"#9ca3af"},{name:"Gray 100",color:"#f3f4f6"},{name:"White",color:"#ffffff"},{name:"Blue",color:"#2563eb"},{name:"Indigo",color:"#4f46e5"},{name:"Green",color:"#16a34a"},{name:"Amber",color:"#f59e0b"},{name:"Red",color:"#dc2626"}]),I=(...e)=>e.filter(Boolean).join(" "),q=(e,o={})=>{o.fontSize?.value&&(e.fontSize=y(o.fontSize.value,o.fontSize.unit||"px")),o.fontWeight&&(e.fontWeight=o.fontWeight),o.letterSpacing?.value&&(e.letterSpacing=y(o.letterSpacing.value,o.letterSpacing.unit||"px")),o.textTransform&&(e.textTransform=o.textTransform),o.lineHeight&&(e.lineHeight=o.lineHeight)},A=(e,o,t,r)=>{"gradient"===o?r?.light&&(e.backgroundImage=r.light,e.WebkitBackgroundClip="text",e.backgroundClip="text",e.WebkitTextFillColor="transparent",e.color="transparent"):t?.light&&(e.color=t.light)},D=(e,o,t,r)=>{"gradient"===o?r?.light&&(e.background=r.light):t?.light&&(e.background=t.light)},z=(e,o={})=>{o.style&&(e.borderStyle=o.style);const t=m(o.width);t&&(e.borderWidth=t),o.color?.light&&(e.borderColor=o.color.light);const r=C(o.radius);r&&(e.borderRadius=r)},H=(e={})=>{if(!e.enabled)return"";const o=e.color?.light||"rgba(0,0,0,0.1)";return`${e.inset?"inset ":""}${y(e.horizontal)} ${y(e.vertical)} ${y(e.blur)} ${y(e.spread)} ${o}`},R=window.wp.data,O=["core/edit-site","core/edit-post"],G=e=>e?"function"==typeof e.__experimentalGetPreviewDeviceType?e.__experimentalGetPreviewDeviceType():"function"==typeof e.getDeviceType?e.getDeviceType():null:null,P=e=>{const o=[...O,"core/editor"];for(const t of o)try{const o=(0,R.select)(t);if(!o)continue;const r=(0,R.dispatch)(t);if("function"==typeof o.__experimentalGetPreviewDeviceType&&r.__experimentalSetPreviewDeviceType)return void r.__experimentalSetPreviewDeviceType(e);if("function"==typeof o.getDeviceType&&r.setDeviceType)return void r.setDeviceType(e)}catch(e){}},F=e=>{switch(e){case"Tablet":return"tablet";case"Mobile":return"mobile";default:return"desktop"}},U=i.CustomGradientPicker||i.__experimentalCustomGradientPicker,Z=["top","right","bottom","left"],V=()=>{const e=(0,R.useSelect)(e=>{for(const o of O)try{const t=G(e(o));if(t)return t}catch(e){}try{const o=G(e("core/editor"));if(o)return o}catch(e){}return"Desktop"},[]);return[F(e),P]},E=({label:e,value:t,options:r,onChange:l,isBlock:n=!0,responsive:s=!1})=>(0,o.jsxs)("div",{className:"flexa-field",children:[s&&(0,o.jsx)(se,{label:e}),(0,o.jsx)(i.__experimentalToggleGroupControl,{label:e,hideLabelFromVision:s,value:t,onChange:l,isBlock:n,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,children:r.map(e=>e.icon?(0,o.jsx)(i.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:(0,o.jsx)(i.Icon,{icon:e.icon}),label:e.label},e.value):(0,o.jsx)(i.__experimentalToggleGroupControlOption,{value:e.value,label:e.label},e.value))})]}),$=({label:e,value:t={},onChange:r,units:s,responsive:a=!1})=>{const[c,x]=(0,n.useState)(!0),d=t.unit||s?.[0]?.value||"px";return(0,o.jsxs)("div",{className:"flexa-field flexa-box",children:[(0,o.jsxs)("div",{className:"flexa-box__head",children:[(0,o.jsxs)("span",{className:"flexa-field__label",children:[e,a&&(0,o.jsx)(ne,{})]}),(0,o.jsx)("div",{className:"flexa-box__tools",children:s&&s.length>1&&(0,o.jsx)("select",{className:"flexa-unit-chip",value:d,"aria-label":(0,l.__)("Unit","flexa-block"),onChange:e=>r({...t,unit:e.target.value}),children:s.map(e=>(0,o.jsx)("option",{value:e.value,children:e.label},e.value))})})]}),(0,o.jsxs)("div",{className:"flexa-box__inputs",children:[Z.map(e=>(0,o.jsx)("input",{type:"number",className:"flexa-box__input",value:t[e]??"",onChange:o=>((e,o)=>{r(c?{top:o,right:o,bottom:o,left:o,unit:d}:{...t,[e]:o,unit:d})})(e,o.target.value)},e)),(0,o.jsx)("button",{type:"button",className:"flexa-box__link"+(c?" is-linked":""),"aria-label":(0,l.__)("Link sides","flexa-block"),"aria-pressed":c,onClick:()=>x(!c),children:(0,o.jsx)(i.Icon,{icon:k})})]}),(0,o.jsx)("div",{className:"flexa-box__labels",children:Z.map(e=>(0,o.jsx)("span",{children:e},e))})]})},Q=({label:e,color:t,onChange:r,palette:l})=>(0,o.jsx)(i.Dropdown,{className:"flexa-swatch",contentClassName:"flexa-swatch__popover",renderToggle:({isOpen:r,onToggle:l})=>(0,o.jsx)(i.Tooltip,{text:e,children:(0,o.jsx)("button",{type:"button","aria-expanded":r,onClick:l,className:"flexa-swatch__btn",style:{background:t||"transparent"},children:!t&&(0,o.jsx)("span",{className:"flexa-swatch__empty"})})}),renderContent:()=>(0,o.jsx)("div",{className:"flexa-swatch__content",children:(0,o.jsx)(i.ColorPalette,{colors:l,value:t,onChange:e=>r(e||""),enableAlpha:!0})})}),X=()=>!1!==window.flexaBlockEditor?.darkModeEnabled,Y=[{key:"light",icon:f,label:(0,l.__)("Light","flexa-block")},{key:"dark",icon:p,label:(0,l.__)("Dark","flexa-block")}],J=({mode:e,onChange:t})=>{const r=Y.find(o=>o.key===e)||Y[0];return(0,o.jsx)(i.Dropdown,{className:"flexa-mode-tag-wrap",contentClassName:"flexa-device-menu__popover",popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:t,onToggle:n})=>(0,o.jsx)(i.Tooltip,{text:(0,l.__)("Light / Dark colour","flexa-block"),children:(0,o.jsx)("button",{type:"button",className:"flexa-device-tag"+("dark"===e?" is-active":""),"aria-expanded":t,"aria-label":(0,l.__)("Choose light or dark","flexa-block"),onClick:n,children:(0,o.jsx)(i.Icon,{icon:r.icon})})}),renderContent:({onClose:r})=>(0,o.jsx)("div",{className:"flexa-device-menu",children:Y.map(l=>(0,o.jsx)(i.Tooltip,{text:l.label,children:(0,o.jsx)("button",{type:"button","aria-label":l.label,className:"flexa-device-menu__item"+(e===l.key?" is-active":""),onClick:()=>{t(l.key),r()},children:(0,o.jsx)(i.Icon,{icon:l.icon})})},l.key))})})},K=({label:e,value:t={},onChange:r,palette:s=N})=>{const a=X(),[c,x]=(0,n.useState)("light"),d=a?c:"light";return(0,o.jsx)("div",{className:"flexa-field flexa-dualcolor",children:(0,o.jsxs)("div",{className:"flexa-dualcolor__head",children:[(0,o.jsxs)("span",{className:"flexa-field__label",children:[e,a&&(0,o.jsx)(J,{mode:d,onChange:x})]}),(0,o.jsxs)("div",{className:"flexa-dualcolor__tools",children:[(0,o.jsx)("button",{type:"button",className:"flexa-dualcolor__reset","aria-label":(0,l.__)("Reset","flexa-block"),onClick:()=>r({...t,[d]:""}),children:(0,o.jsx)(i.Icon,{icon:g})}),(0,o.jsx)(Q,{label:"dark"===d?(0,l.__)("Dark","flexa-block"):(0,l.__)("Color","flexa-block"),color:t[d],palette:s,onChange:e=>r({...t,[d]:e})})]})]})})},ee=({label:e,value:t={},onChange:r})=>{const s=X(),[a,c]=(0,n.useState)("light"),x=s?a:"light";return(0,o.jsxs)("div",{className:"flexa-field flexa-gradient",children:[(0,o.jsxs)("div",{className:"flexa-dualcolor__head",children:[(0,o.jsxs)("span",{className:"flexa-field__label",children:[e,s&&(0,o.jsx)(J,{mode:x,onChange:c})]}),(0,o.jsx)("div",{className:"flexa-dualcolor__tools",children:(0,o.jsx)("button",{type:"button",className:"flexa-dualcolor__reset","aria-label":(0,l.__)("Reset","flexa-block"),onClick:()=>r({...t,[x]:""}),children:(0,o.jsx)(i.Icon,{icon:g})})})]}),(0,o.jsx)(U,{__nextHasNoMargin:!0,value:t[x]||void 0,onChange:e=>r({...t,[x]:e})})]})},oe=({label:e,type:t="color",color:r={},gradient:n={},onTypeChange:s,onColorChange:i,onGradientChange:a})=>(0,o.jsxs)("div",{className:"flexa-field flexa-colorgradient",children:[(0,o.jsx)(E,{label:e,value:t,onChange:e=>s(e),options:[{value:"color",label:(0,l.__)("Color","flexa-block")},{value:"gradient",label:(0,l.__)("Gradient","flexa-block")}]}),"gradient"===t?(0,o.jsx)(ee,{label:(0,l.__)("Gradient","flexa-block"),value:n,onChange:a}):(0,o.jsx)(K,{label:(0,l.__)("Color","flexa-block"),value:r,onChange:i})]}),te={px:1600,"%":100,vw:100,vh:100,em:60,rem:60},re={desktop:c,tablet:x,mobile:d},le=[{key:"desktop",type:"Desktop",label:(0,l.__)("Desktop","flexa-block")},{key:"tablet",type:"Tablet",label:(0,l.__)("Tablet","flexa-block")},{key:"mobile",type:"Mobile",label:(0,l.__)("Mobile","flexa-block")}],ne=()=>{const[e,t]=V();return(0,o.jsx)(i.Dropdown,{className:"flexa-device-tag-wrap",contentClassName:"flexa-device-menu__popover",popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:t,onToggle:r})=>(0,o.jsx)(i.Tooltip,{text:(0,l.__)("Responsive — choose device","flexa-block"),children:(0,o.jsx)("button",{type:"button",className:"flexa-device-tag"+("desktop"!==e?" is-active":""),"aria-expanded":t,"aria-label":(0,l.__)("Choose device","flexa-block"),onClick:r,children:(0,o.jsx)(i.Icon,{icon:re[e]})})}),renderContent:({onClose:r})=>(0,o.jsx)("div",{className:"flexa-device-menu",children:le.map(l=>(0,o.jsx)(i.Tooltip,{text:l.label,children:(0,o.jsx)("button",{type:"button",title:l.label,"aria-label":l.label,className:"flexa-device-menu__item"+(e===l.key?" is-active":""),onClick:()=>{t(l.type),r()},children:(0,o.jsx)(i.Icon,{icon:re[l.key]})})},l.key))})})},se=({label:e})=>(0,o.jsx)("div",{className:"flexa-field__head",children:(0,o.jsxs)("span",{className:"flexa-field__label",children:[e,(0,o.jsx)(ne,{})]})}),ie=({label:e,value:t={},units:r,onChange:n,min:s=0,max:a,defaultUnit:c,showDevice:x=!0})=>{const d=t.unit??c??r[0]?.value??"px",u=t.value,h=""===u||null==u?void 0:parseFloat(String(u)),k=(a&&a[d])??te[d]??1e3;return(0,o.jsxs)(i.BaseControl,{__nextHasNoMarginBottom:!0,className:"flexa-slider-unit",children:[(0,o.jsxs)("div",{className:"flexa-slider-unit__head",children:[(0,o.jsxs)("span",{className:"flexa-slider-unit__label",children:[e,x&&(0,o.jsx)(ne,{})]}),(0,o.jsxs)("div",{className:"flexa-slider-unit__tools",children:[(0,o.jsx)("button",{type:"button",className:"flexa-slider-unit__reset","aria-label":(0,l.__)("Reset","flexa-block"),onClick:()=>n({value:"",unit:d}),children:(0,o.jsx)(i.Icon,{icon:g})}),(0,o.jsx)("select",{className:"flexa-unit-chip",value:d,onChange:e=>n({value:u??"",unit:e.target.value}),"aria-label":(0,l.__)("Unit","flexa-block"),children:r.map(e=>(0,o.jsx)("option",{value:e.value,children:e.label},e.value))})]})]}),(0,o.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:h,min:s,max:k,onChange:e=>n({value:null==e?"":String(e),unit:d})})]})},ae=["desktop","tablet","mobile"],ce={desktop:{style:"",width:{top:"",right:"",bottom:"",left:"",unit:"px"},color:{light:"",dark:""},radius:{topLeft:"",topRight:"",bottomRight:"",bottomLeft:"",unit:"px"}},tablet:{},mobile:{}},xe=[{value:"",label:(0,l.__)("Default","flexa-block")},{value:"300",label:(0,l.__)("Light (300)","flexa-block")},{value:"400",label:(0,l.__)("Normal (400)","flexa-block")},{value:"500",label:(0,l.__)("Medium (500)","flexa-block")},{value:"600",label:(0,l.__)("Semibold (600)","flexa-block")},{value:"700",label:(0,l.__)("Bold (700)","flexa-block")},{value:"800",label:(0,l.__)("Extra bold (800)","flexa-block")},{value:"900",label:(0,l.__)("Black (900)","flexa-block")}],de=[{value:"",label:(0,l.__)("Default","flexa-block")},{value:"none",label:(0,l.__)("None","flexa-block")},{value:"uppercase",label:(0,l.__)("Uppercase","flexa-block")},{value:"lowercase",label:(0,l.__)("Lowercase","flexa-block")},{value:"capitalize",label:(0,l.__)("Capitalize","flexa-block")}],ue=((0,l.__)("Normal","flexa-block"),(0,l.__)("Multiply","flexa-block"),(0,l.__)("Screen","flexa-block"),(0,l.__)("Overlay","flexa-block"),(0,l.__)("Darken","flexa-block"),(0,l.__)("Lighten","flexa-block"),(0,l.__)("Color Dodge","flexa-block"),(0,l.__)("Color Burn","flexa-block"),(0,l.__)("Hard Light","flexa-block"),(0,l.__)("Soft Light","flexa-block"),(0,l.__)("Difference","flexa-block"),(0,l.__)("Exclusion","flexa-block"),(0,l.__)("Left","flexa-block"),(0,l.__)("Center","flexa-block"),(0,l.__)("Right","flexa-block"),(0,l.__)("Justify","flexa-block"),(0,l.__)("Left","flexa-block"),(0,l.__)("Center","flexa-block"),(0,l.__)("Right","flexa-block"),(0,l.__)("Boxed","flexa-block"),(0,l.__)("Full Width","flexa-block"),(0,l.__)("Cover","flexa-block"),(0,l.__)("Contain","flexa-block"),(0,l.__)("Fill","flexa-block"),(0,l.__)("None","flexa-block"),(0,l.__)("Scale down","flexa-block"),(0,l.__)("Square 1:1","flexa-block"),(0,l.__)("Landscape 4:3","flexa-block"),(0,l.__)("Landscape 3:2","flexa-block"),(0,l.__)("Widescreen 16:9","flexa-block"),(0,l.__)("Cinema 21:9","flexa-block"),(0,l.__)("Portrait 3:4","flexa-block"),(0,l.__)("Portrait 2:3","flexa-block"),(0,l.__)("Portrait 9:16","flexa-block"),(0,l.__)("None","flexa-block"),(0,l.__)("Zoom in","flexa-block"),(0,l.__)("Zoom out","flexa-block"),(0,l.__)("Grayscale","flexa-block"),(0,l.__)("Blur","flexa-block"),(0,l.__)("Rotate","flexa-block"),(0,l.__)("Shine","flexa-block"),(0,l.__)("Slide","flexa-block"),({value:e,onChange:t})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ie,{label:(0,l.__)("Font Size","flexa-block"),value:e.fontSize||{},units:W,defaultUnit:"px",max:{px:200,rem:12,em:12,"%":300,vw:30,vh:30},onChange:e=>t({fontSize:e})}),(0,o.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Font Weight","flexa-block"),value:e.fontWeight||"",options:xe,onChange:e=>t({fontWeight:e})}),(0,o.jsx)(ie,{label:(0,l.__)("Letter Spacing","flexa-block"),value:e.letterSpacing||{},units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],defaultUnit:"px",min:-5,max:{px:20,em:2,rem:2},onChange:e=>t({letterSpacing:e})}),(0,o.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Text Transform","flexa-block"),value:e.textTransform||"",options:de,onChange:e=>t({textTransform:e})}),(0,o.jsx)(i.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Line Height","flexa-block"),type:"number",step:.1,value:e.lineHeight??"",onChange:e=>t({lineHeight:e})})]})),he=({attributes:e,setAttributes:t,initialOpen:r=!1})=>{const[n]=V(),s=_(e.spacing,n),a=o=>t({spacing:v(e.spacing,n,o)});return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Spacing","flexa-block"),initialOpen:r,children:[(0,o.jsx)($,{label:(0,l.__)("Margin","flexa-block"),responsive:!0,value:s.margin||{},units:L,onChange:e=>a({margin:e})}),(0,o.jsx)($,{label:(0,l.__)("Padding","flexa-block"),responsive:!0,value:s.padding||{},units:L,onChange:e=>a({padding:e})})]})},ge=({attributes:e,setAttributes:t,initialOpen:r=!1,allowImage:n=!0})=>{const a=e.background||{},c=e=>t({background:{...a,...e}}),x=[{value:"none",label:(0,l.__)("None","flexa-block")},{value:"classic",label:(0,l.__)("Color","flexa-block")},{value:"gradient",label:(0,l.__)("Gradient","flexa-block")},...n?[{value:"image",label:(0,l.__)("Image","flexa-block")}]:[]];return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Background","flexa-block"),initialOpen:r,children:[(0,o.jsx)(E,{label:(0,l.__)("Type","flexa-block"),value:a.type||"none",onChange:e=>c({type:e}),options:x}),"classic"===a.type&&(0,o.jsx)(K,{label:(0,l.__)("Color","flexa-block"),value:a.color||{},onChange:e=>c({color:e})}),"gradient"===a.type&&(0,o.jsx)(ee,{label:(0,l.__)("Gradient","flexa-block"),value:a.gradient||{},onChange:e=>c({gradient:e})}),"image"===a.type&&(0,o.jsx)(i.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Image","flexa-block"),children:(0,o.jsx)(s.MediaUploadCheck,{children:(0,o.jsx)(s.MediaUpload,{allowedTypes:["image"],value:a.image?.id,onSelect:e=>c({image:{...a.image,id:e.id,url:e.url}}),render:({open:e})=>(0,o.jsxs)(o.Fragment,{children:[a.image?.url&&(0,o.jsx)("button",{type:"button",className:"flexa-bg-preview",onClick:e,"aria-label":(0,l.__)("Replace image","flexa-block"),children:(0,o.jsx)("img",{src:a.image.url,alt:""})}),(0,o.jsxs)(i.Flex,{gap:2,justify:"flex-start",children:[(0,o.jsx)(i.Button,{variant:"secondary",onClick:e,children:a.image?.url?(0,l.__)("Replace","flexa-block"):(0,l.__)("Select Image","flexa-block")}),a.image?.url&&(0,o.jsx)(i.Button,{isDestructive:!0,variant:"tertiary",onClick:()=>c({image:{...a.image,id:null,url:""}}),children:(0,l.__)("Remove","flexa-block")})]})]})})})}),"image"===a.type&&a.image?.url&&(0,o.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Scroll behavior","flexa-block"),value:a.image?.attachment||"scroll",options:[{value:"scroll",label:(0,l.__)("Scroll with page","flexa-block")},{value:"fixed",label:(0,l.__)("Fixed — image stays, content scrolls","flexa-block")}],help:(0,l.__)("Fixed keeps the background image still while the content scrolls over it. Some mobile browsers ignore this and fall back to scrolling.","flexa-block"),onChange:e=>c({image:{...a.image,attachment:e}})}),"image"===a.type&&a.image?.url&&(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Lazy load image","flexa-block"),help:(0,l.__)("Only fetch the background image when it nears the viewport.","flexa-block"),checked:!!a.lazyLoad,onChange:e=>c({lazyLoad:e})})]})},ke=(e={})=>({top:e.topLeft??"",right:e.topRight??"",bottom:e.bottomRight??"",left:e.bottomLeft??"",unit:e.unit||"px"}),fe=(e={})=>({topLeft:e.top??"",topRight:e.right??"",bottomRight:e.bottom??"",bottomLeft:e.left??"",unit:e.unit||"px"}),pe=({attributes:e,setAttributes:t,initialOpen:r=!1})=>{const[n]=V(),s=_(e.border,n),a=o=>t({border:v(e.border,n,o)});return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Border","flexa-block"),initialOpen:r,children:[(0,o.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Style","flexa-block"),value:s.style||"",options:T,onChange:e=>a({style:e})}),(0,o.jsx)($,{label:(0,l.__)("Width","flexa-block"),responsive:!0,value:s.width||{},units:L,onChange:e=>a({width:e})}),(0,o.jsx)(K,{label:(0,l.__)("Color","flexa-block"),value:s.color||{},onChange:e=>a({color:e})}),(0,o.jsx)($,{label:(0,l.__)("Radius","flexa-block"),responsive:!0,value:ke(s.radius||{}),units:L,onChange:e=>a({radius:fe(e)})})]})},be=[{k:"horizontal",l:(0,l.__)("X offset","flexa-block")},{k:"vertical",l:(0,l.__)("Y offset","flexa-block")},{k:"blur",l:(0,l.__)("Blur","flexa-block")},{k:"spread",l:(0,l.__)("Spread","flexa-block")}],je=({attributes:e,setAttributes:t,initialOpen:r=!1})=>{const n=e.boxShadow||{},s=e=>t({boxShadow:{...n,...e}});return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Box Shadow","flexa-block"),initialOpen:r,children:[(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Enable","flexa-block"),checked:!!n.enabled,onChange:e=>s({enabled:e})}),n.enabled&&(0,o.jsxs)(o.Fragment,{children:[be.map(e=>(0,o.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:e.l,value:parseInt(String(n[e.k]??""),10)||0,min:-100,max:100,onChange:o=>s({[e.k]:String(o)})},e.k)),(0,o.jsx)(K,{label:(0,l.__)("Color","flexa-block"),value:n.color||{},onChange:e=>s({color:e})}),(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Inset","flexa-block"),checked:!!n.inset,onChange:e=>s({inset:e})})]})]})},we=({attributes:e,setAttributes:t,initialOpen:r=!1})=>{const[n]=V(),s=_(e.itemBorder,n),a=o=>t({itemBorder:v(e.itemBorder,n,o)});return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Item border","flexa-block"),initialOpen:r,children:[(0,o.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Style","flexa-block"),value:s.style||"",options:T,onChange:e=>a({style:e})}),(0,o.jsx)($,{label:(0,l.__)("Width","flexa-block"),responsive:!0,value:s.width||{},units:L,onChange:e=>a({width:e})}),(0,o.jsx)(K,{label:(0,l.__)("Color","flexa-block"),value:s.color||{},onChange:e=>a({color:e})}),(0,o.jsx)($,{label:(0,l.__)("Radius","flexa-block"),responsive:!0,value:ke(s.radius||{}),units:L,onChange:e=>a({radius:fe(e)})})]})},_e=({attributes:e,setAttributes:t,initialOpen:r=!1})=>{const n=e.itemBoxShadow||{},s=e=>t({itemBoxShadow:{...n,...e}});return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Item box shadow","flexa-block"),initialOpen:r,children:[(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Enable","flexa-block"),checked:!!n.enabled,onChange:e=>s({enabled:e})}),n.enabled&&(0,o.jsxs)(o.Fragment,{children:[be.map(e=>(0,o.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:e.l,value:parseInt(String(n[e.k]??""),10)||0,min:-100,max:100,onChange:o=>s({[e.k]:String(o)})},e.k)),(0,o.jsx)(K,{label:(0,l.__)("Color","flexa-block"),value:n.color||{},onChange:e=>s({color:e})}),(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Inset","flexa-block"),checked:!!n.inset,onChange:e=>s({inset:e})})]})]})},ve=({attributes:e,setAttributes:t,initialOpen:r=!0})=>{const[n]=V(),s=_(e.advancedLayout,n),a=o=>t({advancedLayout:v(e.advancedLayout,n,o)}),c=["relative","absolute","fixed","sticky"].includes(s.position||"");return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Position & Overflow","flexa-block"),initialOpen:r,children:[(0,o.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Position","flexa-block"),value:s.position||"",options:S,onChange:e=>a({position:e})}),c&&(0,o.jsx)($,{label:(0,l.__)("Offset (T/R/B/L)","flexa-block"),responsive:!0,value:s.inset||{},units:L,onChange:e=>a({inset:e})}),(0,o.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Overflow","flexa-block"),value:s.overflow||"",options:M,onChange:e=>a({overflow:e})}),(0,o.jsx)(i.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,l.__)("Z-Index","flexa-block"),value:s.zIndex??"",onChange:e=>a({zIndex:e})})]})},ye=({attributes:e,setAttributes:t,initialOpen:r=!1})=>{const n=e.responsiveVisibility||{},s=e=>t({responsiveVisibility:{...n,...e}});return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Visibility","flexa-block"),initialOpen:r,children:[(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Hide on Desktop","flexa-block"),checked:!!n.hideOnDesktop,onChange:e=>s({hideOnDesktop:e})}),(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Hide on Tablet","flexa-block"),checked:!!n.hideOnTablet,onChange:e=>s({hideOnTablet:e})}),(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Hide on Mobile","flexa-block"),checked:!!n.hideOnMobile,onChange:e=>s({hideOnMobile:e})})]})},me=[{value:"none",label:(0,l.__)("None","flexa-block")},{value:"fadeIn",label:(0,l.__)("Fade In","flexa-block")},{value:"fadeInUp",label:(0,l.__)("Fade In Up","flexa-block")},{value:"fadeInDown",label:(0,l.__)("Fade In Down","flexa-block")},{value:"fadeInLeft",label:(0,l.__)("Fade In Left","flexa-block")},{value:"fadeInRight",label:(0,l.__)("Fade In Right","flexa-block")},{value:"zoomIn",label:(0,l.__)("Zoom In","flexa-block")},{value:"scaleIn",label:(0,l.__)("Scale In","flexa-block")},{value:"blurIn",label:(0,l.__)("Blur In","flexa-block")},{value:"bounceIn",label:(0,l.__)("Bounce In","flexa-block")},{value:"bounceInUp",label:(0,l.__)("Bounce In Up","flexa-block")},{value:"bounceInDown",label:(0,l.__)("Bounce In Down","flexa-block")},{value:"bounceInLeft",label:(0,l.__)("Bounce In Left","flexa-block")},{value:"bounceInRight",label:(0,l.__)("Bounce In Right","flexa-block")},{value:"flipInX",label:(0,l.__)("Flip In X","flexa-block")},{value:"flipInY",label:(0,l.__)("Flip In Y","flexa-block")}],Ce=[{value:"slow",label:(0,l.__)("Slow","flexa-block")},{value:"normal",label:(0,l.__)("Normal","flexa-block")},{value:"fast",label:(0,l.__)("Fast","flexa-block")}],Be=({attributes:e,setAttributes:t,initialOpen:r=!1})=>{const n=e.animation||{},s=e=>t({animation:{...n,...e}}),a="none"!==(n.type||"none"),c=parseInt(n.delay||"0",10)||0;return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Animation","flexa-block"),initialOpen:r,children:[(0,o.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Effect","flexa-block"),value:n.type||"none",options:me,onChange:e=>s({type:e})}),a&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Speed","flexa-block"),value:n.duration||"normal",options:Ce,onChange:e=>s({duration:e})}),(0,o.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Delay (ms)","flexa-block"),value:c,min:0,max:1e4,step:100,onChange:e=>s({delay:e?String(e):""})})]})]})},We=({layout:e,style:t,advanced:r})=>{const n=[{name:"layout",title:(0,l.__)("Layout","flexa-block")},{name:"style",title:(0,l.__)("Style","flexa-block")},{name:"advanced",title:(0,l.__)("Advanced","flexa-block")}],s={layout:e,style:t,advanced:r};return(0,o.jsx)(i.TabPanel,{className:"flexa-tabs",tabs:n,initialTabName:"layout",children:e=>(0,o.jsx)("div",{className:"flexa-tab__content",children:s[e.name]})})},Le=(...e)=>e.filter(Boolean).join(" "),Me={display:"block",background:"#dfe3e8",borderRadius:5,position:"relative",overflow:"hidden"};function Se({w:e="100%",h:t=12,className:r="",style:l={}}){return(0,o.jsx)("span",{className:Le("flexa-skel",r),style:{...Me,width:e,height:t,...l}})}function Te({size:e=40,style:t={}}){return(0,o.jsx)("span",{className:"flexa-skel flexa-skel--circle",style:{...Me,borderRadius:"50%",width:e,height:e,...t}})}function Ne({w:e="100%",h:t=80,style:r={}}){return(0,o.jsx)("span",{className:"flexa-skel flexa-skel--box",style:{...Me,borderRadius:8,width:e,height:t,...r}})}const Ie={display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:"100%",minHeight:350,padding:"48px 32px",border:"1px solid #dfe3e8",borderRadius:10,background:"#fff"},qe={display:"flex",flexDirection:"column",gap:12,alignItems:"center",width:"100%"},Ae={display:"flex",alignItems:"center",justifyContent:"center",gap:16,width:"100%"};function De(){return(0,o.jsxs)("div",{style:qe,children:[(0,o.jsx)(Se,{w:"70%",h:16}),(0,o.jsx)(Se,{w:"90%",h:9}),(0,o.jsx)(Se,{w:"82%",h:9}),(0,o.jsx)(Se,{w:"55%",h:9})]})}function ze(){return(0,o.jsx)("div",{style:Ae,children:[0,1,2,3].map(e=>(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[(0,o.jsx)(Ne,{w:44,h:44}),(0,o.jsx)(Se,{w:30,h:8})]},e))})}function He(){return(0,o.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:20,width:"100%"},children:[0,1,2].map(e=>(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[(0,o.jsx)(Te,{size:34}),(0,o.jsx)(Se,{w:54,h:20}),(0,o.jsx)(Se,{w:40,h:8})]},e))})}function Re(){return(0,o.jsx)("div",{style:Ae,children:[0,1,2].map(e=>(0,o.jsx)(Te,{size:40},e))})}function Oe(){return(0,o.jsx)("div",{style:Ae,children:(0,o.jsx)(Ne,{w:128,h:42,style:{borderRadius:999}})})}function Ge(){return(0,o.jsxs)("div",{style:qe,children:[(0,o.jsx)(Ne,{w:"100%",h:130}),(0,o.jsx)(Se,{w:"50%",h:9})]})}function Pe(){return(0,o.jsx)("div",{style:{...qe,gap:10},children:[0,1,2].map(e=>(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,width:"90%"},children:[(0,o.jsx)(Se,{w:0===e?"62%":"48%",h:12}),(0,o.jsx)(Ne,{w:16,h:16,style:{borderRadius:4,flex:"0 0 auto"}})]},e))})}function Fe(){return(0,o.jsxs)("div",{style:{...qe,gap:14},children:[(0,o.jsx)("div",{style:{display:"flex",gap:4},children:[0,1,2,3,4].map(e=>(0,o.jsx)(Ne,{w:14,h:14,style:{borderRadius:3}},e))}),(0,o.jsx)(Se,{w:"66%",h:14}),(0,o.jsx)(Se,{w:"90%",h:9}),(0,o.jsx)(Se,{w:"80%",h:9}),(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginTop:6},children:[(0,o.jsx)(Te,{size:44}),(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,o.jsx)(Se,{w:90,h:9}),(0,o.jsx)(Se,{w:64,h:8})]})]})]})}function Ue(){return(0,o.jsxs)("div",{style:{...qe,gap:9,alignItems:"stretch"},children:[(0,o.jsx)(Se,{w:"100%",h:9}),(0,o.jsx)(Se,{w:"100%",h:9}),(0,o.jsx)(Se,{w:"94%",h:9}),(0,o.jsx)(Se,{w:"98%",h:9}),(0,o.jsx)(Se,{w:"60%",h:9})]})}function Ze(){return(0,o.jsx)("div",{style:{...Ae,justifyContent:"center"},children:(0,o.jsx)(Se,{w:"72%",h:4,style:{borderRadius:2}})})}function Ve(){return(0,o.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12,width:"100%"},children:[0,1,2,3].map(e=>(0,o.jsx)(Ne,{w:"100%",h:64},e))})}function Ee(){return(0,o.jsxs)("div",{style:{...qe,gap:12},children:[(0,o.jsx)(Te,{size:48}),(0,o.jsx)(Se,{w:"60%",h:14}),(0,o.jsx)(Se,{w:"90%",h:9}),(0,o.jsx)(Se,{w:"80%",h:9}),(0,o.jsx)(Ne,{w:116,h:38,style:{borderRadius:999,marginTop:6}})]})}function $e(){return(0,o.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,o.jsx)(Ne,{w:"100%",h:150}),(0,o.jsx)("span",{style:{position:"absolute",top:0,bottom:0,left:"52%",width:3,background:"#c4cad2"}}),(0,o.jsx)("span",{style:{position:"absolute",top:"50%",left:"52%",width:34,height:34,marginTop:-17,marginLeft:-17,borderRadius:"50%",background:"#c4cad2",border:"3px solid #fff"}})]})}function Qe(){return(0,o.jsxs)("div",{style:{...qe,gap:8,alignItems:"stretch"},children:[(0,o.jsx)(Se,{w:"34%",h:10}),(0,o.jsx)(Ne,{w:"100%",h:40,style:{borderRadius:8}})]})}function Xe(){return(0,o.jsxs)("div",{style:{...qe,gap:8,alignItems:"stretch"},children:[(0,o.jsx)(Se,{w:"42%",h:10}),(0,o.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,o.jsx)(Ne,{w:"100%",h:40,style:{borderRadius:8}}),(0,o.jsx)("span",{style:{position:"absolute",top:"50%",right:14,width:9,height:9,marginTop:-6,borderRight:"2px solid #c4cad2",borderBottom:"2px solid #c4cad2",transform:"rotate(45deg)"}})]})]})}function Ye(){return(0,o.jsx)("div",{style:Ae,children:(0,o.jsx)(Se,{w:84,h:14,style:{borderRadius:4}})})}function Je(){return(0,o.jsxs)("div",{style:{width:"100%",border:"2px dashed #dfe3e8",borderRadius:8,padding:18,display:"flex",flexDirection:"column",alignItems:"center",gap:10},children:[(0,o.jsx)(Se,{w:"40%",h:14}),(0,o.jsx)(Se,{w:"88%",h:9}),(0,o.jsx)(Se,{w:"76%",h:9})]})}function Ke(e){switch(e){case"countdown":return(0,o.jsx)(ze,{});case"counter":return(0,o.jsx)(He,{});case"social-icon":return(0,o.jsx)(Re,{});case"button":return(0,o.jsx)(Oe,{});case"image":return(0,o.jsx)(Ge,{});case"faq":return(0,o.jsx)(Pe,{});case"testimonial":return(0,o.jsx)(Fe,{});case"info-box":return(0,o.jsx)(Ee,{});case"container":return(0,o.jsx)(Je,{});case"grid":return(0,o.jsx)(Ve,{});case"separator":return(0,o.jsx)(Ze,{});case"before-after":return(0,o.jsx)($e,{});case"filter-search":return(0,o.jsx)(Qe,{});case"filter-taxonomy":return(0,o.jsx)(Xe,{});case"filter-reset":return(0,o.jsx)(Ye,{});case"text":return(0,o.jsx)(Ue,{});default:return(0,o.jsx)(De,{})}}function eo({kind:e}){return(0,o.jsx)("div",{style:Ie,children:Ke(e)})}const oo=[{value:"plus",label:(0,l.__)("Plus / Minus","flexa-block")},{value:"chevron",label:(0,l.__)("Chevron","flexa-block")},{value:"arrow",label:(0,l.__)("Arrow","flexa-block")}],to=[{value:"left",label:(0,l.__)("Left","flexa-block"),icon:u},{value:"right",label:(0,l.__)("Right","flexa-block"),icon:h}],ro=({attributes:e,setAttributes:t})=>{const[r]=V(),{rowGap:n,maxWidth:s}=e;return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Layout","flexa-block"),initialOpen:!0,children:[(0,o.jsx)(ie,{label:(0,l.__)("Row gap","flexa-block"),value:n?.[r]||{},units:L,defaultUnit:"px",max:{px:120,em:12,rem:12,"%":100,vw:50,vh:50},onChange:e=>t({rowGap:{...n,[r]:e}})}),(0,o.jsx)(ie,{label:(0,l.__)("Max width","flexa-block"),value:s?.[r]||{},units:W,defaultUnit:"px",max:{px:1600,"%":100,vw:100,rem:100},onChange:e=>t({maxWidth:{...s,[r]:e}})})]})},lo=({attributes:e,setAttributes:t})=>{const{expandFirst:r,closeOthers:n,allowToggle:s,enableSchema:a,htmlTag:c}=e;return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Behaviour","flexa-block"),initialOpen:!1,children:[(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Open first item","flexa-block"),checked:!!r,onChange:e=>t({expandFirst:e})}),(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Close others when one opens","flexa-block"),checked:!1!==n,onChange:e=>t({closeOthers:e})}),(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Allow closing an open item","flexa-block"),checked:!1!==s,onChange:e=>t({allowToggle:e})}),(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Output FAQ schema (SEO)","flexa-block"),help:(0,l.__)("Add FAQPage structured data for search engines.","flexa-block"),checked:!!a,onChange:e=>t({enableSchema:e})}),(0,o.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("HTML Tag","flexa-block"),value:c||"div",options:B.map(e=>({label:e,value:e})),onChange:e=>t({htmlTag:e})})]})},no=({attributes:e,setAttributes:t})=>{const[r]=V(),{showIcon:n,iconStyle:s,iconPosition:a,iconSize:c,iconGap:x,iconColor:d,iconActiveColor:u}=e;return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Icon","flexa-block"),initialOpen:!1,children:[(0,o.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Show icon","flexa-block"),checked:!1!==n,onChange:e=>t({showIcon:e})}),!1!==n&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,l.__)("Icon style","flexa-block"),value:s||"plus",options:oo,onChange:e=>t({iconStyle:e})}),(0,o.jsx)(E,{label:(0,l.__)("Icon side","flexa-block"),value:a||"right",onChange:e=>t({iconPosition:e}),options:to}),(0,o.jsx)(ie,{label:(0,l.__)("Icon size","flexa-block"),value:c?.[r]||{},units:W,defaultUnit:"px",max:{px:64,em:6,rem:6,"%":200},onChange:e=>t({iconSize:{...c,[r]:e}})}),(0,o.jsx)(ie,{label:(0,l.__)("Gap from question","flexa-block"),value:x?.[r]||{},units:L,defaultUnit:"px",max:{px:80,em:8,rem:8,"%":100},onChange:e=>t({iconGap:{...x,[r]:e}})}),(0,o.jsx)(K,{label:(0,l.__)("Icon colour","flexa-block"),value:d||{},onChange:e=>t({iconColor:e})}),(0,o.jsx)(K,{label:(0,l.__)("Icon colour (open)","flexa-block"),value:u||{},onChange:e=>t({iconActiveColor:e})})]})]})},so=({attributes:e,setAttributes:t})=>{const[r]=V(),n=_(e.questionTypography,r);return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Question","flexa-block"),initialOpen:!0,children:[(0,o.jsx)(ue,{value:n,onChange:o=>t({questionTypography:v(e.questionTypography,r,o)})}),(0,o.jsx)(oe,{label:(0,l.__)("Text colour","flexa-block"),type:e.questionColorType||"color",color:e.questionColor||{},gradient:e.questionColorGradient||{},onTypeChange:e=>t({questionColorType:e}),onColorChange:e=>t({questionColor:e}),onGradientChange:e=>t({questionColorGradient:e})}),(0,o.jsx)(oe,{label:(0,l.__)("Text colour (open)","flexa-block"),type:e.questionActiveColorType||"color",color:e.questionActiveColor||{},gradient:e.questionActiveColorGradient||{},onTypeChange:e=>t({questionActiveColorType:e}),onColorChange:e=>t({questionActiveColor:e}),onGradientChange:e=>t({questionActiveColorGradient:e})}),(0,o.jsx)(oe,{label:(0,l.__)("Background","flexa-block"),type:e.questionBackgroundType||"color",color:e.questionBackground||{},gradient:e.questionBackgroundGradient||{},onTypeChange:e=>t({questionBackgroundType:e}),onColorChange:e=>t({questionBackground:e}),onGradientChange:e=>t({questionBackgroundGradient:e})}),(0,o.jsx)(oe,{label:(0,l.__)("Background (open)","flexa-block"),type:e.questionActiveBackgroundType||"color",color:e.questionActiveBackground||{},gradient:e.questionActiveBackgroundGradient||{},onTypeChange:e=>t({questionActiveBackgroundType:e}),onColorChange:e=>t({questionActiveBackground:e}),onGradientChange:e=>t({questionActiveBackgroundGradient:e})}),(0,o.jsx)($,{label:(0,l.__)("Padding","flexa-block"),responsive:!0,value:_(e.questionPadding,r),units:L,onChange:o=>t({questionPadding:{...e.questionPadding,[r]:o}})})]})},io=({attributes:e,setAttributes:t})=>{const[r]=V(),n=_(e.answerTypography,r);return(0,o.jsxs)(i.PanelBody,{title:(0,l.__)("Answer","flexa-block"),initialOpen:!1,children:[(0,o.jsx)(ue,{value:n,onChange:o=>t({answerTypography:v(e.answerTypography,r,o)})}),(0,o.jsx)(oe,{label:(0,l.__)("Text colour","flexa-block"),type:e.answerColorType||"color",color:e.answerColor||{},gradient:e.answerColorGradient||{},onTypeChange:e=>t({answerColorType:e}),onColorChange:e=>t({answerColor:e}),onGradientChange:e=>t({answerColorGradient:e})}),(0,o.jsx)(oe,{label:(0,l.__)("Background","flexa-block"),type:e.answerBackgroundType||"color",color:e.answerBackground||{},gradient:e.answerBackgroundGradient||{},onTypeChange:e=>t({answerBackgroundType:e}),onColorChange:e=>t({answerBackground:e}),onGradientChange:e=>t({answerBackgroundGradient:e})}),(0,o.jsx)($,{label:(0,l.__)("Padding","flexa-block"),responsive:!0,value:_(e.answerPadding,r),units:L,onChange:o=>t({answerPadding:{...e.answerPadding,[r]:o}})})]})},ao=({attributes:e,setAttributes:t})=>{const{itemBackground:r}=e;return(0,o.jsx)(i.PanelBody,{title:(0,l.__)("Item Box","flexa-block"),initialOpen:!1,children:(0,o.jsx)(oe,{label:(0,l.__)("Background","flexa-block"),type:e.itemBackgroundType||"color",color:r||{},gradient:e.itemBackgroundGradient||{},onTypeChange:e=>t({itemBackgroundType:e}),onColorChange:e=>t({itemBackground:e}),onGradientChange:e=>t({itemBackgroundGradient:e})})})},co=(e,o,t)=>"gradient"===e?!!t?.light:!!o?.light,xo=(0,o.jsx)("svg",{viewBox:"0 0 24 24",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M6 6l12 12M18 6L6 18",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round"})}),uo=({style:e,iconStyle:t})=>"chevron"===t?(0,o.jsx)("span",{className:"flexa-faq__icon flexa-faq__icon--chevron",style:e,"aria-hidden":"true",children:(0,o.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M6 9l6 6 6-6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):"arrow"===t?(0,o.jsx)("span",{className:"flexa-faq__icon flexa-faq__icon--arrow",style:e,"aria-hidden":"true",children:(0,o.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M12 5v14M6 13l6 6 6-6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):(0,o.jsx)("span",{className:"flexa-faq__icon flexa-faq__icon--plus",style:e,"aria-hidden":"true"}),ho=r.faq;(0,e.registerBlockType)("flexa/faq",{icon:ho,edit:function({attributes:e,setAttributes:t,clientId:r}){const{items:a,className:c,responsiveVisibility:x,htmlTag:d,showIcon:u,iconPosition:h,iconStyle:g}=e,k=e.blockId,[f]=V();(0,n.useEffect)(()=>{const e=r.replace(/[^a-z0-9]/gi,"").slice(0,8);k&&k===e||t({blockId:e})},[k,r,t]),((e,o)=>{const{border:t,boxShadow:r,itemStyleMigrated:l}=e;(0,n.useEffect)(()=>{if(l)return;const e={itemStyleMigrated:!0};(e=>ae.some(o=>(e=>{if(!e)return!1;if(e.style)return!0;const o=e.width||{};if(o.top||o.right||o.bottom||o.left)return!0;const t=e.color||{};if(t.light||t.dark)return!0;const r=e.radius||{};return!!(r.topLeft||r.topRight||r.bottomRight||r.bottomLeft)})(e?.[o])))(t)&&(e.itemBorder=t,e.border=ce),r?.enabled&&(e.itemBoxShadow=r,e.boxShadow={...r,enabled:!1}),o(e)},[l])})(e,t);const p=Array.isArray(a)?a:[],b=(e,o)=>{const r=p.map((t,r)=>r===e?{...t,...o}:t);t({items:r})},j=((e,o)=>{const{maxWidth:t,spacing:r,background:l}=e,n=w(r,o),s={},i=w(t,o);i.value&&(s.maxWidth=y(i.value,i.unit||"px"));const a=m(n.padding);a&&(s.padding=a);const c=m(n.margin);if(c&&(s.margin=c),((e,o={})=>{"classic"===o.type&&o.color?.light?e.backgroundColor=o.color.light:"gradient"===o.type&&o.gradient?.light?e.backgroundImage=o.gradient.light:"image"===o.type&&o.image?.url&&(e.backgroundImage=`url(${o.image.url})`,e.backgroundSize=o.image.size||"cover",e.backgroundPosition=o.image.position||"center center",e.backgroundRepeat=o.image.repeat||"no-repeat",e.backgroundAttachment=o.image.attachment||"scroll")})(s,l),e.itemStyleMigrated){z(s,w(e.border,o));const t=H(e.boxShadow);t&&(s.boxShadow=t)}return s})(e,f),_=((e,o)=>{const t={},r=w(e.rowGap,o);return r.value&&(t.rowGap=y(r.value,r.unit||"px")),t})(e,f),v=((e,o)=>{const{itemBackgroundType:t,itemBackground:r,itemBackgroundGradient:l}=e,n={};D(n,t,r,l);const s=!!e.itemStyleMigrated,i=w(s?e.itemBorder:e.border,o);z(n,i),C(i.radius)&&(n.overflow="hidden");const a=H((s?e.itemBoxShadow:e.boxShadow)||{});return a&&(n.boxShadow=a),n})(e,f),B=((e,o)=>{const{questionBackgroundType:t,questionBackground:r,questionBackgroundGradient:l,questionActiveBackgroundType:n,questionActiveBackground:s,questionActiveBackgroundGradient:i,questionPadding:a,iconGap:c}=e,x={};q(x,w(e.questionTypography,o)),co(n,s,i)?D(x,n,s,i):D(x,t,r,l),((e,o,t)=>{const r=!!o.itemStyleMigrated,l=w(r?o.itemBorder:o.border,t);if(!l.style)return;e.borderBottomStyle=l.style;const n=l.width||{},s=n.bottom||n.top||n.left||n.right||"";s&&(e.borderBottomWidth=y(s,n.unit||"px")),l.color?.light&&(e.borderBottomColor=l.color.light)})(x,e,o);const d=m(w(a,o));d&&(x.padding=d);const u=w(c,o);return u.value&&(x.gap=y(u.value,u.unit||"px")),x})(e,f),W=(e=>{const o={};return co(e.questionActiveColorType,e.questionActiveColor,e.questionActiveColorGradient)?A(o,e.questionActiveColorType,e.questionActiveColor,e.questionActiveColorGradient):A(o,e.questionColorType,e.questionColor,e.questionColorGradient),o})(e),L=(e=>{const o={};return D(o,e.answerBackgroundType,e.answerBackground,e.answerBackgroundGradient),o})(e),M=((e,o)=>{const t={};q(t,w(e.answerTypography,o)),A(t,e.answerColorType,e.answerColor,e.answerColorGradient);const r=m(w(e.answerPadding,o));return r&&(t.padding=r),t})(e,f),S=((e,o)=>{const{iconSize:t,iconColor:r,iconActiveColor:l}=e,n={},s=w(t,o);if(s.value){const e=y(s.value,s.unit||"px");n.width=e,n.height=e}return l?.light?n.color=l.light:r?.light&&(n.color=r.light),n})(e,f),T="left"===h,N=d||"div",R=(0,s.useBlockProps)({className:I("flexa-faq","flexa-faq--accordion",T&&"flexa-faq--icon-left",k&&`flexa-faq-${k}`,c,x?.hideOnDesktop&&"flexa-hide-desktop",x?.hideOnTablet&&"flexa-hide-tablet",x?.hideOnMobile&&"flexa-hide-mobile"),style:j});return e.isExamplePreview?(0,o.jsx)("div",{...R,children:(0,o.jsx)(eo,{kind:"faq"})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.InspectorControls,{children:(0,o.jsx)("div",{className:"flexa-inspector flexa-faq-inspector",children:(0,o.jsx)(We,{layout:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ro,{attributes:e,setAttributes:t}),(0,o.jsx)(lo,{attributes:e,setAttributes:t}),(0,o.jsx)(no,{attributes:e,setAttributes:t}),(0,o.jsx)(he,{attributes:e,setAttributes:t})]}),style:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(so,{attributes:e,setAttributes:t}),(0,o.jsx)(io,{attributes:e,setAttributes:t}),(0,o.jsx)(ao,{attributes:e,setAttributes:t}),(0,o.jsx)(ge,{attributes:e,setAttributes:t}),(0,o.jsx)(pe,{attributes:e,setAttributes:t}),(0,o.jsx)(je,{attributes:e,setAttributes:t}),(0,o.jsx)(we,{attributes:e,setAttributes:t}),(0,o.jsx)(_e,{attributes:e,setAttributes:t})]}),advanced:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ve,{attributes:e,setAttributes:t}),(0,o.jsx)(ye,{attributes:e,setAttributes:t}),(0,o.jsx)(Be,{attributes:e,setAttributes:t})]})})})}),(0,o.jsxs)(N,{...R,children:[(0,o.jsx)("div",{className:"flexa-faq__list",style:_,children:p.map((e,r)=>(0,o.jsxs)("div",{className:"flexa-faq__item is-open",style:v,children:[(0,o.jsxs)("div",{className:"flexa-faq__question",style:B,children:[!1!==u&&T&&(0,o.jsx)(uo,{style:S,iconStyle:g||"plus"}),(0,o.jsx)(s.RichText,{tagName:"span",className:"flexa-faq__question-text",style:W,value:e.question||"",allowedFormats:["core/bold","core/italic"],placeholder:(0,l.__)("Question…","flexa-block"),onChange:e=>b(r,{question:e})}),!1!==u&&!T&&(0,o.jsx)(uo,{style:S,iconStyle:g||"plus"}),(0,o.jsx)(i.Button,{className:"flexa-faq__remove",icon:xo,label:(0,l.__)("Remove item","flexa-block"),showTooltip:!0,isDestructive:!0,onClick:()=>(e=>{t({items:p.filter((o,t)=>t!==e)})})(r)})]}),(0,o.jsx)("div",{className:"flexa-faq__answer",style:L,children:(0,o.jsx)("div",{className:"flexa-faq__answer-inner",children:(0,o.jsx)(s.RichText,{tagName:"div",className:"flexa-faq__answer-content",style:M,value:e.answer||"",allowedFormats:["core/bold","core/italic","core/link"],placeholder:(0,l.__)("Answer…","flexa-block"),onChange:e=>b(r,{answer:e})})})})]},r))}),(0,o.jsx)(i.Button,{className:"flexa-faq__add",variant:"secondary",onClick:()=>{t({items:[...p,{question:"",answer:""}]})},children:(0,l.__)("Add question","flexa-block")})]})]})},save:()=>null})}};const o={};function t(r){const l=o[r];if(void 0!==l)return l.exports;const n=o[r]={exports:{}};return e[r](n,n.exports,t),n.exports}t.m=e,(()=>{const e=[];t.O=(o,r,l,n)=>{if(r){n=n||0;for(var s=e.length;s>0&&e[s-1][2]>n;s--)e[s]=e[s-1];return void(e[s]=[r,l,n])}let i=1/0;for(s=0;s=n)&&Object.keys(t.O).every(e=>t.O[e](r[a]))?r.splice(a--,1):(c=!1,nObject.hasOwn(e,o),(()=>{const e={8813:0,3793:0};t.O.j=o=>0===e[o];const o=(o,r)=>{let[l,n,s]=r;var i,a,c=0;if(l.some(o=>0!==e[o])){for(i in n)t.o(n,i)&&(t.m[i]=n[i]);if(s)var x=s(t)}for(o&&o(r);ct(3865));r=t.O(r)})();