CVE-2026-2892

Otter Blocks <= 3.1.4 - Improper Authorization to Unauthenticated Purchase Verification Bypass via Forged Cookie

highImproper Authorization
7.5
CVSS Score
7.5
CVSS Score
high
Severity
3.1.5
Patched in
2d
Time to patch

Description

The Otter Blocks plugin for WordPress is vulnerable to Purchase Verification Bypass in all versions up to, and including, 3.1.4. This is due to the 'get_customer_data' method relying on an unsigned 'o_stripe_data' cookie to determine Stripe product ownership for unauthenticated users. The 'check_purchase' method trusts this cookie data without performing server-side verification against the Stripe API for one-time 'payment' mode purchases. This makes it possible for unauthenticated attackers to bypass Stripe purchase-gated content visibility conditions by forging the 'o_stripe_data' cookie with a target product ID, which is publicly exposed in the checkout block's HTML source.

CVSS Vector Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
High
Confidentiality
None
Integrity
None
Availability

Technical Details

Affected versions<=3.1.4
PublishedApril 29, 2026
Last updatedApril 30, 2026
Affected pluginotter-blocks

What Changed in the Fix

Changes introduced in v3.1.5

Loading patch diff...

Source Code

WordPress.org SVN
Research Plan
Unverified

# Research Plan: CVE-2026-2892 - Otter Blocks Purchase Verification Bypass ## 1. Vulnerability Summary The **Otter Blocks** plugin (versions <= 3.1.4) contains an Improper Authorization vulnerability in its Stripe purchase verification logic. The plugin allows site administrators to gate content (b…

Show full research plan

Research Plan: CVE-2026-2892 - Otter Blocks Purchase Verification Bypass

1. Vulnerability Summary

The Otter Blocks plugin (versions <= 3.1.4) contains an Improper Authorization vulnerability in its Stripe purchase verification logic. The plugin allows site administrators to gate content (blocks) based on whether a user has purchased a specific product via the Stripe integration.

The vulnerability exists because the server-side verification method check_purchase() relies on the get_customer_data() method, which retrieves purchase information from an unsigned and user-controlled cookie named o_stripe_data. For one-time payments (payment mode), the plugin trusts the contents of this cookie without verifying the purchase status against the Stripe API. An unauthenticated attacker can forge this cookie to include any Stripe Product ID, thereby bypassing visibility restrictions and accessing "pro" or gated content.

2. Attack Vector Analysis

  • Endpoint: Any public post or page containing a block with "Visibility Conditions" set to "Stripe Product Purchase."
  • Vulnerable Parameter: The o_stripe_data HTTP Cookie.
  • Authentication: Unauthenticated (No WordPress login required).
  • Preconditions:
    1. The site must have a block configured with a "Visibility Condition" based on a Stripe Product.
    2. The attacker needs the Stripe Product ID (or Price ID), which is exposed in the HTML source of the page containing the Stripe Checkout block.

3. Code Flow (Inferred from Patch and Description)

  1. Frontend Request: A user requests a page containing gated Otter Blocks.
  2. Server-side Rendering: WordPress triggers the block rendering process. Otter Blocks hooks into the block rendering (likely via render_block filter or a specific block condition handler).
  3. Visibility Check: The plugin evaluates the block's visible attribute. If a Stripe condition is present, it calls check_purchase($product_id).
  4. Data Retrieval: check_purchase() calls get_customer_data().
  5. Cookie Access: get_customer_data() checks for the presence of $_COOKIE['o_stripe_data'].
  6. Trust Issue: get_customer_data() parses the cookie (likely JSON-encoded) and returns the data. check_purchase() compares the required $product_id against the list in the cookie.
  7. Bypass: Since the cookie is not signed/HMACed, the attacker provides a forged list of IDs, causing check_purchase() to return true.

4. Nonce Acquisition Strategy

This vulnerability resides in the rendering logic of blocks on the frontend. Block visibility is determined during the standard HTTP GET request for a post or page.

  • No WordPress Nonce is required to submit the payload (the cookie).
  • No AJAX action is required to trigger the exploit; it is a passive bypass during page load.

5. Test Data Setup

To simulate the vulnerable environment:

  1. Install Otter Blocks 3.1.4.
  2. Mock Stripe Config (Optional): The plugin needs to believe Stripe is configured to show the blocks.
  3. Create a Gated Page:
    • Create a Post/Page.
    • Add an Otter "Section" block or "Advanced Heading" block.
    • In the block settings, under Visibility Conditions, add a condition:
      • Condition Type: Stripe Product.
      • Product ID: prod_TEST12345678 (any string).
    • Inside this gated block, place "secret" text: FLAG_SUCCESSFUL_BYPASS.
  4. Expose the ID: Add an Otter "Stripe Checkout" block to the same (or another) page configured with the same Product ID (prod_TEST12345678).
  5. Publish the page.

6. Exploitation Strategy

Step 1: Discover the Product ID

Navigate to the page and inspect the HTML source to find the product ID associated with the Stripe Checkout block.

  • Look for attributes like data-product-id, data-price-id, or JSON blobs in the build/blocks/form.js related output.
  • In build/blocks/form.js, the code identifies Stripe fields: .wp-block-themeisle-blocks-form-stripe-field.

Step 2: Forge the Cookie

Based on the vulnerability description, the cookie name is o_stripe_data. We need to determine the JSON structure.

  • Likely structure A: ["prod_TEST12345678"]
  • Likely structure B: {"purchases":["prod_TEST12345678"]}
  • Likely structure C: {"prod_TEST12345678": true}

Testing Note: Since the plugin stores this when a purchase is successful, we can check the build/blocks/form.js for where it handles successful Stripe redirects to see how it sets the cookie, or simply try the array format.

Step 3: Execute the Request

Send an unauthenticated GET request to the page containing the gated content with the forged cookie.

Request Template:

GET /gated-page/ HTTP/1.1
Host: localhost
Cookie: o_stripe_data=["prod_TEST12345678"]

(Alternative formats like o_stripe_data=%7B%22purchases%22%3A%5B%22prod_TEST12345678%22%5D%7D should be attempted if the simple array fails.)

7. Expected Results

  • Without Cookie: The "secret" block (FLAG_SUCCESSFUL_BYPASS) is not present in the HTML response.
  • With Forged Cookie: The "secret" block is rendered in the HTML, and the string FLAG_SUCCESSFUL_BYPASS is visible in the response body.

8. Verification Steps

  1. Check Visibility: Verify that the gated content appears in the HTTP response using http_request.
  2. Confirm Logic: Clear cookies and request the same page again; verify the content disappears.
  3. Trace Method (Optional): Use wp eval to check the value of the visibility conditions for that specific post to confirm we are targeting the correct ID.
    wp post get <post_id> --field=post_content
    
    Look for stripe_product_ids or similar keys in the block's serialized JSON comments.

9. Alternative Approaches

If the simple JSON array in the cookie fails:

  1. Base64 Encoding: The cookie might be Base64 encoded JSON. Try: Cookie: o_stripe_data=WyJwcm9kX1RFU1QxMjM0NTY3OCJd.
  2. URL Encoding: Ensure the JSON special characters are properly URL-encoded.
  3. Check LocalStorage: While the vulnerability mentions a cookie, some modern implementations mirror this in localStorage. Check if the plugin attempts to read from there if the cookie is missing, though the description explicitly names get_customer_data and the o_stripe_data cookie.
  4. Examine build/blocks/form.js: Trace the string o_stripe_data in the provided JS files to see how the frontend handles it, which often reflects the PHP structure.
    • Search Result: The string o-stripe-checkout-description appears in form.js, indicating how the block identifies itself. The cookie handling is likely in the PHP side of the Stripe extension.
Research Findings
Static analysis — not yet PoC-verified

Summary

Otter Blocks up to version 3.1.4 is vulnerable to a purchase verification bypass for content gated by Stripe products. The plugin's server-side logic trusts an unsigned, user-controlled cookie named 'o_stripe_data' to determine if an unauthenticated user has purchased a product, allowing attackers to forge the cookie and access restricted content without making a payment.

Security Fix

diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/animation/frontend.asset.php /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/animation/frontend.asset.php
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/animation/frontend.asset.php	2025-06-23 12:11:42.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/animation/frontend.asset.php	2026-02-27 20:02:42.000000000 +0000
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => '85c87361b4be0dc88708');
+<?php return array('dependencies' => array(), 'version' => 'c44084e33dc17a73066a');
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/animation/frontend.js /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/animation/frontend.js
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/animation/frontend.js	2025-06-23 12:11:42.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/animation/frontend.js	2026-02-27 20:02:42.000000000 +0000
@@ -1 +1 @@
-!function(){const t=["none","bounce","flash","pulse","rubberBand","shakeX","shakeY","headShake","swing","tada","wobble","jello","heartBeat","hinge","jackInTheBox","backInDown","backInLeft","backInRight","backInUp","backOutDown","backOutLeft","backOutRight","backOutUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInTopLeft","fadeInTopRight","fadeInBottomLeft","fadeInBottomRight","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedInRight","lightSpeedInLeft","lightSpeedOutRight","lightSpeedOutLeft","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollIn","rollOut"],e=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],n=["none","delay-100ms","delay-200ms","delay-500ms","delay-1s","delay-2s","delay-3s","delay-4s","delay-5s"],a=["none","slow","slower","fast","faster"],o=t=>{const e=window.scrollY||window.pageYOffset,n=s(i(t)),a=t.getBoundingClientRect().top+e+n,o=e,d=e+window.innerHeight,u=a,f=a+t.clientHeight;return f>=o&&u<=d||u<=d&&f>=d||f>=o&&u<=o},i=t=>{let e=0;for(const n of t.classList.entries())if(n[1].includes("o-anim-offset-")){const t=n[1].replace("o-anim-offset-","");if(isNaN(t.charAt(0)))continue;e=t.endsWith("px")?parseFloat(t):t;break}return e},s=t=>{var e;return"string"==typeof t?(t=null!==(e=parseFloat(t))&&void 0!==e?e:0,t=Math.min(Math.max(t,0),100),t=window.innerHeight*(t/100)):"number"!=typeof t&&(t=0),t};window.addEventListener("load",(()=>{const d=document.querySelectorAll(".animated");(t=>{let e=[],n=[];for(const a of t){const t=a.classList;if(t.contains("o-anim-custom-delay")){let n;for(const e of t)if(e.includes("o-anim-value-delay-")){n=e;break}n&&e.push(n)}if(t.contains("o-anim-custom-speed")){let e;for(const n of t)if(n.includes("o-anim-value-speed-")){e=n;break}e&&n.push(e)}}if(e=[...new Set(e)],n=[...new Set(n)],0<e.length||0<n.length){const t=document.createElement("style");t.id="o-anim-custom-values";const a=t=>t.replace(/([!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~])/g,"\\$1");t.innerHTML=e.reduce(((t,e)=>{const n=e.replace("o-anim-value-delay-","");return t+`.animated.${a(e)} { animation-delay: ${n}; -webkit-animation-delay: ${n}; }`}),"")+"\n"+n.reduce(((t,e)=>{const n=e.replace("o-anim-value-speed-","");return t+`.animated.${a(e)} { animation-duration: ${n}; -webkit-animation-duration: ${n}; }`}),""),document.body.appendChild(t)}})(d);for(const i of d){if(classes=i.classList,i.animationClasses=[],!o(i)){const e=t.find((t=>Array.from(classes).find((e=>e===t)))),o=n.find((t=>Array.from(classes).find((e=>e===t)))),s=a.find((t=>Array.from(classes).find((e=>e===t))));e&&(i.animationClasses.push(e),i.classList.remove(e)),o&&(i.animationClasses.push(o),i.classList.remove(o)),s&&(i.animationClasses.push(s),i.classList.remove(s)),i.classList.add("hidden-animated")}if(classes.add("o-anim-ready"),e.forEach((t=>{i.className.includes(t)&&i.addEventListener("animationend",(()=>{i.classList.remove(t)}))})),classes.contains("o-anim-hover")){i.classList.remove("hidden-animated"),i.classList.remove("animated");const{animationName:t}=i.style;i.style.animationName="none",i.addEventListener("mouseenter",(()=>{i.classList.add("animated"),i.style.animationName=t}))}i.addEventListener("animationend",(()=>{i.classList.remove("animated")}))}const u=[];for(const t of d)t.animationClasses&&0<t.animationClasses.length&&u.push({element:t,triggerOffset:i(t)});window.addEventListener("scroll",(()=>{requestAnimationFrame((()=>{const t=[];for(const e of u){const{element:n,triggerOffset:a}=e,{top:o}=n.getBoundingClientRect();o+s(a)<=.95*window.innerHeight&&0<o&&(n.animationClasses.forEach((t=>n.classList.add(t))),n.classList.remove("hidden-animated"),delete n.animationClasses,t.push(e))}t.forEach((t=>{const e=u.indexOf(t);u.splice(e,1)}))}))}))}))}();
\ No newline at end of file
+!function(){const t=["none","bounce","flash","pulse","rubberBand","shakeX","shakeY","headShake","swing","tada","wobble","jello","heartBeat","hinge","jackInTheBox","backInDown","backInLeft","backInRight","backInUp","backOutDown","backOutLeft","backOutRight","backOutUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInTopLeft","fadeInTopRight","fadeInBottomLeft","fadeInBottomRight","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedInRight","lightSpeedInLeft","lightSpeedOutRight","lightSpeedOutLeft","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollIn","rollOut"],e=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],n=["none","delay-100ms","delay-200ms","delay-500ms","delay-1s","delay-2s","delay-3s","delay-4s","delay-5s"],o=["none","slow","slower","fast","faster"],a=[];let i=!1;const s=i=>{if(i.classList.contains("o-anim-ready"))return;const s=i.classList;if(i.animationClasses=[],!d(i)){const e=t.find((t=>Array.from(s).find((e=>e===t)))),a=n.find((t=>Array.from(s).find((e=>e===t)))),d=o.find((t=>Array.from(s).find((e=>e===t))));e&&(i.animationClasses.push(e),i.classList.remove(e)),a&&(i.animationClasses.push(a),i.classList.remove(a)),d&&(i.animationClasses.push(d),i.classList.remove(d)),i.classList.add("hidden-animated")}if(s.add("o-anim-ready"),e.forEach((t=>{i.className.includes(t)&&i.addEventListener("animationend",(()=>{i.classList.remove(t)}),{once:!0})})),s.contains("o-anim-hover")){i.classList.remove("hidden-animated"),i.classList.remove("animated");const{animationName:t}=i.style;i.style.animationName="none",i.addEventListener("mouseenter",(()=>{i.classList.add("animated"),i.style.animationName=t}))}i.addEventListener("animationend",(()=>{i.classList.remove("animated")})),i.animationClasses&&0<i.animationClasses.length&&a.push({element:i,triggerOffset:f(i)})},d=t=>{const e=window.scrollY||window.pageYOffset,n=l(f(t)),o=t.getBoundingClientRect().top+e+n,a=e,i=e+window.innerHeight,s=o,d=o+t.clientHeight;return d>=a&&s<=i||s<=i&&d>=i||d>=a&&s<=a},u=t=>{let e=[],n=[];for(const o of t){const t=o.classList;if(t.contains("o-anim-custom-delay")){let n;for(const e of t)if(e.includes("o-anim-value-delay-")){n=e;break}n&&e.push(n)}if(t.contains("o-anim-custom-speed")){let e;for(const n of t)if(n.includes("o-anim-value-speed-")){e=n;break}e&&n.push(e)}}if(e=[...new Set(e)],n=[...new Set(n)],0<e.length||0<n.length){const t=document.createElement("style");t.id="o-anim-custom-values";const o=t=>t.replace(/([!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~])/g,"\\$1");t.innerHTML=e.reduce(((t,e)=>{const n=e.replace("o-anim-value-delay-","");return t+`.animated.${o(e)} { animation-delay: ${n}; -webkit-animation-delay: ${n}; }`}),"")+"\n"+n.reduce(((t,e)=>{const n=e.replace("o-anim-value-speed-","");return t+`.animated.${o(e)} { animation-duration: ${n}; -webkit-animation-duration: ${n}; }`}),""),document.body.appendChild(t)}},f=t=>{let e=0;for(const n of t.classList.entries())if(n[1].includes("o-anim-offset-")){const t=n[1].replace("o-anim-offset-","");if(isNaN(t.charAt(0)))continue;e=t.endsWith("px")?parseFloat(t):t;break}return e},l=t=>{var e;return"string"==typeof t?(t=null!==(e=parseFloat(t))&&void 0!==e?e:0,t=Math.min(Math.max(t,0),100),t=window.innerHeight*(t/100)):"number"!=typeof t&&(t=0),t};document.querySelectorAll(".wp-lightbox-container").forEach((t=>{t.addEventListener("click",(()=>{(()=>{const t=document.querySelectorAll(".animated:not(.o-anim-ready)");if(0!==t.length){u(t);for(const e of t)s(e)}})()}))})),window.addEventListener("load",(()=>{const t=document.querySelectorAll(".animated");u(t);for(const e of t)s(e);i||(window.addEventListener("scroll",(()=>{requestAnimationFrame((()=>{const t=[];for(const e of a){const{element:n,triggerOffset:o}=e,{top:a}=n.getBoundingClientRect();a+l(o)<=.95*window.innerHeight&&0<a&&(n.animationClasses.forEach((t=>n.classList.add(t))),n.classList.remove("hidden-animated"),delete n.animationClasses,t.push(e))}t.forEach((t=>{const e=a.indexOf(t);a.splice(e,1)}))}))})),i=!0)}))}();
\ No newline at end of file
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/blocks.asset.php /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/blocks.asset.php
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/blocks.asset.php	2025-06-23 12:11:42.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/blocks.asset.php	2026-02-27 20:02:42.000000000 +0000
@@ -1 +1 @@
-<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url'), 'version' => '1f3cd78557ad425c7930');
+<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url'), 'version' => '20ce5cad211d8091741a');
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/blocks.js /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/blocks.js
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/blocks.js	2025-06-23 12:11:42.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/blocks.js	2026-02-27 20:02:42.000000000 +0000
@@ -14,7 +14,7 @@
 // translators: %s: HTTP status code
 (0,l.__)("An error has occurred: %s","otter-blocks"),o.status))}(e);if(t?.features.length){const e=t.features[0];if(e?.geometry?.coordinates.length)return{longitude:e.geometry.coordinates[0],latitude:e.geometry.coordinates[1]}}return null}var al=({marker:e,isOpen:t,openMarker:o,dispatch:s})=>{const[a,i]=(0,b.useState)(e.location),[r,c]=(0,b.useState)(e.longitude),[d,u]=(0,b.useState)(e.latitude),[g,m]=(0,b.useState)(e.title),[y,x]=(0,b.useState)(e.description),[f,v]=(0,b.useState)({target:"",reason:""});return(0,k.jsxs)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker",children:[(0,k.jsxs)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-title-area",children:[(0,k.jsx)(p.Button,{className:"wp-block-themeisle-blocks-leaflet-map-marker-title",onClick:()=>o(),children:e.title||(0,l.__)("Custom Marker","otter-blocks")}),(0,k.jsx)(p.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-remove",onClick:()=>s({type:cl.REMOVE,ids:[e.id]})})]}),t&&(0,k.jsxs)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-control-area",children:[(0,k.jsx)(p.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:n()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===f.target}),value:a,onChange:e=>{i(e)},help:(0,l.__)("Press Enter to search the location","otter-blocks"),onKeyDown:t=>((t,o)=>{t.key===o&&(async()=>{const t=await sl(a);t?(s({type:cl.UPDATE,ids:[e.id],updatedProps:{location:a,latitude:t.latitude,longitude:t.longitude}}),u(t.latitude),c(t.longitude),"LOCATION"===f.target&&v({})):v({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(t,"Enter")}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:d,onChange:t=>{u(t),s({type:cl.UPDATE,ids:[e.id],updatedProps:{latitude:t}})}}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:r,onChange:t=>{c(t),s({type:cl.UPDATE,ids:[e.id],updatedProps:{longitude:t}})}}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:g,onChange:t=>{m(t),s({type:cl.UPDATE,ids:[e.id],updatedProps:{title:t}})}}),(0,k.jsx)(h.dS,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:e.description,onChange:t=>{x(y),s({type:cl.UPDATE,ids:[e.id],updatedProps:{description:t}})}})]})]})},il=({markers:e,dispatch:t,markersInteraction:o})=>{const{openMarker:s,setOpenMarker:a}=o;return(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-group",children:e.map((e=>(0,k.jsx)(al,{marker:e,isOpen:s===e.id,openMarker:()=>a(o.openMarker!==e.id?e.id:null),dispatch:t},e.id)))}),(0,k.jsx)(p.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-add",onClick:()=>{t({type:cl.ADD,marker:{id:(0,Ro.A)()},dispatch:t})},children:(0,l.__)("Add Marker","otter-blocks")})]})},rl=({attributes:e,setAttributes:t,dispatch:o,markersInteraction:s})=>{const[a,i]=(0,b.useState)(e.location),[r,c]=(0,b.useState)({target:"",reason:""}),{responsiveSetAttributes:u,responsiveGetAttributes:y}=(0,m.d)(t);return(0,k.jsxs)(d.InspectorControls,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Location","otter-blocks"),children:[(0,k.jsx)(p.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:n()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===r.target}),placeholder:(0,l.__)("Enter location. E.g: La Sagrada Familia, Barcelona, Spain","otter-blocks"),help:(0,l.__)("Press Enter to search the location","otter-blocks"),value:a,onChange:i,onKeyDown:e=>((e,o)=>{e.key===o&&(async()=>{t({location:a});const e=await sl(a);e?(t({latitude:e.latitude.toString(),longitude:e.longitude.toString()}),"LOCATION"===r.target&&c({})):c({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:e.latitude,onChange:e=>t({latitude:e.toString()})}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:e.longitude,onChange:e=>t({longitude:e.toString()})})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:e.zoom,onChange:e=>t({zoom:e}),min:0,max:20}),(0,k.jsxs)(h.k3,{label:(0,l.__)("Height","otter-blocks"),children:[(0,k.jsx)(p.__experimentalUnitControl,{value:y([(0,g.ws)(e.height),e.heightTablet,e.heightMobile]),onChange:e=>u(e,["height","heightTablet","heightMobile"])}),(0,k.jsx)(h.k2,{values:["height","heightTablet","heightMobile"],setAttributes:t})]})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.BaseControl,{children:(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:e.draggable,onChange:()=>t({draggable:!e.draggable})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:e.zoomControl,onChange:()=>t({zoomControl:!e.zoomControl})})]}),(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1,children:(0,k.jsx)(il,{markers:e.markers,dispatch:o,markersInteraction:s})})]})};const{attributes:nl}=ll,cl={ADD:"ADD",ADD_MANUAL:"ADD_MANUAL",REMOVE:"REMOVE",UPDATE:"UPDATE",INIT:"INIT"};const dl={to:[{type:"block",blocks:["themeisle-blocks/google-map"],transform:e=>{const t=e;return(0,s.createBlock)("themeisle-blocks/google-map",{...t})}}]};var bl=dl;const{name:ul}=ll;(0,s.registerBlockType)(ul,{...ll,title:(0,l.__)("Maps","otter-blocks"),description:(0,l.__)("Display Open Street Maps on your website with Maps block. Powered by Otter.","otter-blocks"),icon:i.mapIcon,keywords:["map","opeenstreetmap","location"],transforms:bl,edit:({clientId:e,attributes:t,setAttributes:o})=>{var s;(0,b.useEffect)((()=>{const o=(0,y.blockInit)(e,nl);return()=>o(t.id)}),[t.id]);const{responsiveGetAttributes:a}=(0,m.d)(),i=(0,b.useRef)(null),[r,n]=(0,b.useState)(null),[c,u]=(0,b.useState)(!1),[p,h]=(0,b.useState)(null),x=(e,t)=>{if(window.L&&r&&t&&e){var o,s,a,i,n;null!==(o=e.id)&&void 0!==o||(e.id=(0,Ro.A)()),null!==(s=e.latitude)&&void 0!==s||(e.latitude=r.getCenter().lat),null!==(a=e.longitude)&&void 0!==a||(e.longitude=r.getCenter().lng),null!==(i=e.title)&&void 0!==i||(e.title=(0,l.__)("Add a title","otter-blocks")),null!==(n=e.description)&&void 0!==n||(e.description="");const c=window.L.marker([e.latitude,e.longitude]||0,{draggable:!0});return c.on("movestart",(()=>{c.closeTooltip(),c.closePopup()})),c.on("moveend",(()=>{const o=c.getLatLng();t({type:cl.UPDATE,ids:[e.id],updatedProps:{latitude:o.lat,longitude:o.lng}})})),c.on("click",(()=>{h(e.id)})),c.markerProps=e,c}return null},[f,v]=(0,b.useReducer)(((e,t)=>{switch(t.type){case cl.ADD:const o=x(t.marker,t.dispatch);return[...e,o];case cl.ADD_MANUAL:if(c){const o=x(t.marker,t.dispatch);return[...e,o]}return e;case cl.REMOVE:return e.filter((({markerProps:e})=>t.ids.includes(e.id))).forEach((e=>{r.hasLayer(e)&&r.removeLayer(e)})),e.filter((({markerProps:e})=>!t.ids.includes(e.id)));case cl.INIT:const s=t.markers.map((e=>x(e,t.dispatch)));return[...e,...s];case cl.UPDATE:return e.map((e=>{const o=e.markerProps;return t.ids.includes(o.id)&&(e.markerProps=(0,H.merge)(e.markerProps,t.updatedProps)),e}));default:
 // translators: %s is the action type that is not defined in the marker's reducer
-console.warn((0,l.sprintf)((0,l.__)("The action for the leaflet block do not have a defined action in marker's reducer: %s","otter-blocks"),t.type))}return e}),[],(()=>[])),_=()=>{if(!i.current&&!window.L)return;let{L:e}=window;const s=(0,y.getEditorIframe)();if(Boolean(s)&&(e=s.contentWindow?.L),!e)return;i.current.innerHTML="";const a=e.map(i.current,{gestureHandling:!0,gestureHandlingOptions:{text:{touch:(0,l.__)("Use two fingers to move the map","otter-blocks"),scroll:(0,l.__)("Use ctrl + scroll to zoom the map","otter-blocks"),scrollMac:(0,l.__)("Use ⌘ + scroll to zoom the map","otter-blocks")}}});e.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(a),a.on("zoom",(()=>{o({zoom:a.getZoom()})})),a.on("moveend",(()=>{const e=a.getCenter();o({latitude:e.lat.toString(),longitude:e.lng.toString()})})),a.on("click",(e=>{v({type:cl.ADD_MANUAL,marker:{latitude:e.latlng.lat,longitude:e.latlng.lng},dispatch:v}),u(!1)})),e.Control.AddMarker=e.Control.extend({onAdd:()=>{const t=e.DomUtil.create("button","wp-block-themeisle-blocks-leaflet-map-marker-button"),o=e.DomUtil.create("span","dashicons dashicons-sticky",t);return e.DomEvent.on(t,"click",(t=>{e.DomEvent.stopPropagation(t),u(!c)})),t.title=(0,l.__)("Add marker on the map with a click","otter-blocks"),t.appendChild(o),t},onRemove:()=>{}}),e.control.addmarker=t=>new e.Control.AddMarker(t),e.control.addmarker({position:"bottomleft"}).addTo(a),n(a),v({type:cl.INIT,markers:t.markers,dispatch:v})};(0,b.useEffect)((()=>{(0,y.getEditorIframe)()?((0,y.copyScriptAssetToIframe)("#leaflet-js",(()=>{_()})),(0,y.copyScriptAssetToIframe)("#leaflet-gesture-handling-js",(()=>{}))):_()}),[]),(0,b.useEffect)((()=>{t.height&&r&&r.invalidateSize(!0)}),[t.height,r]),(0,b.useEffect)((()=>{var e;t.latitude&&t.longitude&&r&&r.setView([t.latitude,t.longitude],null!==(e=t.zoom)&&void 0!==e?e:15)}),[t.latitude,t.longitude,t.zoom,r]),(0,b.useEffect)((()=>{i.current?.classList.toggle("is-selecting-location",c)}),[c]),(0,b.useEffect)((()=>{t.latitude&&t.longitude&&r&&o({bbox:r.getBounds().toBBoxString()})}),[t.latitude,t.longitude,r]),(0,b.useEffect)((()=>{f&&(f.forEach((e=>{r.hasLayer(e)||r.addLayer(e);const{markerProps:t}=e;e.setLatLng([t.latitude,t.longitude]),e.closeTooltip(),e.unbindTooltip(),e.bindTooltip(t.title,{direction:"auto"}),e.closePopup(),e.unbindPopup(),e.bindPopup(((e,t)=>{const o=document.createElement("div"),s=document.createElement("h6"),a=document.createElement("div"),i=document.createElement("p"),r=document.createElement("button");return s.innerHTML=e.title,i.innerHTML=e.description,r.onclick=()=>t({type:cl.REMOVE,ids:[e.id]}),r.innerHTML=(0,l.__)("Delete Marker","otter-blocks"),o.classList.add("wp-block-themeisle-blocks-map-overview"),a.classList.add("wp-block-themeisle-blocks-map-overview-content"),s.classList.add("wp-block-themeisle-blocks-map-overview-title"),r.classList.add("wp-block-themeisle-blocks-map-overview-delete"),o.appendChild(s),o.appendChild(a),o.appendChild(r),a.appendChild(i),o})(t,v))})),t.markers.length!==f.length&&r&&o({markers:f.map((({markerProps:e})=>e))}))}),[f,r,t.markers]);const w=(0,d.useBlockProps)();return(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(rl,{attributes:t,setAttributes:o,dispatch:v,markersInteraction:{openMarker:p,setOpenMarker:h}}),(0,k.jsx)("div",{...w,children:(0,k.jsx)("div",{id:t.id,ref:i,style:{width:"100%",height:a([(0,g.ws)(null!==(s=t.height)&&void 0!==s?s:400),t.heightTablet,t.heightMobile])}})})]})},save:()=>null,example:{attributes:{}}});var pl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/lottie","title":"Lottie Animation","category":"themeisle-blocks","description":"Add Lottie animations to your WordPress. Powered by Otter.","keywords":["media","lottie","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"file":{"type":"object"},"trigger":{"type":"string","default":"none"},"loop":{"type":"boolean","default":false},"count":{"type":"number","default":0},"speed":{"type":"number","default":1},"direction":{"type":"boolean","default":false},"width":{"type":["string","number"]},"ariaLabel":{"type":"string","default":""},"backgroundColor":{"type":"string"},"backgroundGradient":{"type":"string"}},"supports":{"align":["left","center","right"]},"editorStyle":"otter-lottie-editor","script":"otter-lottie"}'),hl=({className:e,file:t,onChange:o,attributes:s})=>{const[a,r]=(0,b.useState)(s.file?.url||null);return Boolean(window.themeisleGutenberg.isWPVIP)?(0,k.jsx)(p.Placeholder,{label:(0,l.__)("Lottie","otter-blocks"),instructions:(0,l.__)("Add Lottie animations and files to your website. You need to use a .json file.","otter-blocks"),icon:i.lottieIcon,className:e,children:(0,k.jsxs)("form",{onSubmit:e=>(e&&e.preventDefault(),o(a)),children:[(0,k.jsx)("input",{type:"url",value:a||"",className:"components-placeholder__input","aria-label":(0,l.__)("Lottie","otter-blocks"),placeholder:(0,l.__)("Enter URL to embed here…","otter-blocks"),onChange:e=>r(e.target.value)}),(0,k.jsx)(p.Button,{isPrimary:!0,disabled:!a,type:"submit",children:(0,l.__)("Embed","otter-blocks")})]})}):(0,k.jsx)(d.MediaPlaceholder,{labels:{title:(0,l.__)("Lottie","otter-blocks"),instructions:(0,l.__)("Add Lottie animations and files to your website.","otter-blocks")},icon:i.lottieIcon,accept:["application/json",".lottie"],allowedTypes:["application/json"],value:{...t},onSelectURL:o,onSelect:o})},gl=({attributes:e,setAttributes:t,playerRef:o})=>(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(d.InspectorControls,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),initialOpen:!0,children:[(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Trigger","otter-blocks"),help:(0,l.__)("Animation trigger. This will only work on the front-end.","otter-blocks"),value:e.trigger,options:[{label:(0,l.__)("Autoplay","otter-blocks"),value:"none"},{label:(0,l.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,l.__)("Hover","otter-blocks"),value:"hover"},{label:(0,l.__)("Click","otter-blocks"),value:"click"}],onChange:e=>{t({trigger:e})}}),"scroll"!==e.trigger&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Loop","otter-blocks"),help:(0,l.__)("Whether to loop animation.","otter-blocks"),checked:e.loop,onChange:l=>{t({loop:l}),o.current.setLooping(l),e.direction&&o.current.seek("100%"),o.current.play()}}),e.loop&&(0,k.jsx)(p.TextControl,{label:(0,l.__)("Numbers of loops","otter-blocks"),help:(0,l.__)("Number of times to loop animation.","otter-blocks"),type:"number",value:e.count,onChange:l=>{t({count:Number(l)}),o.current.load(e.file.url)}}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Speed","otter-blocks"),help:(0,l.__)("Animation speed.","otter-blocks"),value:e.speed,onChange:e=>{t({speed:Number(e)}),o.current.setSpeed(e)},step:.1,min:.1,max:5}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Reverse","otter-blocks"),help:(0,l.__)("Direction of animation.","otter-blocks"),checked:e.direction,onChange:e=>{t({direction:e}),o.current.setDirection(e?-1:1),o.current.seek(e?"100%":0)}})]}),(0,k.jsx)(d.__experimentalUnitControl,{onChange:e=>{const o=parseInt(e.slice(0,-1)),l=e.slice(-1);100<o&&"%"===l&&(e="100%"),t({width:e})},label:(0,l.__)("Width","otter-blocks"),isUnitSelectTabbable:!0,isResetValueOnUnitChange:!0,__unstableInputWidth:"50%",value:(0,g.ws)(e.width),units:[{value:"%",label:"%",default:100},{value:"px",label:"px",default:300}]})]}),(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Background","otter-blocks"),initialOpen:!1,children:(0,k.jsx)(d.__experimentalColorGradientControl,{colorValue:e.backgroundColor,gradientValue:e.backgroundGradient,onColorChange:e=>t({backgroundColor:e}),onGradientChange:e=>t({backgroundGradient:e}),showTitle:!1,className:"otter-lottie-background-control"})})]}),(0,k.jsx)(d.InspectorAdvancedControls,{children:(0,k.jsx)(p.TextControl,{label:(0,l.__)("Aria Label","otter-blocks"),help:(0,l.__)("Describe the purpose of this animation on the page.","otter-blocks"),value:e.ariaLabel,onChange:e=>t({ariaLabel:e})})})]}),ml=({isEditing:e,setEditing:t})=>(0,k.jsx)(d.BlockControls,{children:(0,k.jsx)(p.ToolbarGroup,{children:(0,k.jsx)(p.Tooltip,{text:e?(0,l.__)("Save","otter-blocks"):(0,l.__)("Edit","otter-blocks"),children:(0,k.jsx)(p.Button,{onClick:()=>t(!e),children:(0,k.jsx)(p.Dashicon,{icon:e?"yes":"edit"})})})})}),yl=({attributes:e,playerRef:t})=>{(0,b.useEffect)((()=>{const l=(0,y.getEditorIframe)();Boolean(l)?((0,y.copyScriptAssetToIframe)("#lottie-player-js",(()=>{!(0,H.isEmpty)(e.file)&&e.loop&&null!==t.current&&t.current.addEventListener("complete",o)})),(0,y.copyScriptAssetToIframe)("#dotlottie-player-js",(()=>{!(0,H.isEmpty)(e.file)&&e.loop&&null!==t.current&&t.current.addEventListener("complete",o)}))):!(0,H.isEmpty)(e.file)&&e.loop&&null!==t.current&&t.current.addEventListener("complete",o)}),[]);const o=()=>{t.current&&(t.current.setLooping(e.loop),t.current.play(),t.current.removeEventListener("complete",o))};let l=(0,b.createElement)("lottie-player");return e.file.url.endsWith(".lottie")&&(l=(0,b.createElement)("dotlottie-player")),(0,b.cloneElement)(l,{id:e.id,ref:t,src:e.file.url,autoplay:!e.trigger||"none"===e.trigger,loop:e.loop,count:e.direction?-1*e.count:e.count,speed:e.speed,background:e.backgroundColor||e.backgroundGradient,direction:e.direction?-1:1,trigger:e.trigger,"data-loop":e.loop,mode:"normal",style:{width:!(!e.width||"%"===e.width.toString().slice(-1))&&`${e.width}px`,maxWidth:!(!e.width||"%"!==e.width.toString().slice(-1))&&`${e.width}`,height:"auto"},..."hover"===e.trigger&&{hover:"hover"},...e.ariaLabel&&{"aria-label":e.ariaLabel}})};const{attributes:kl}=pl;const{name:xl}=pl;(0,s.registerBlockType)(xl,{...pl,title:(0,l.__)("Lottie Animation","otter-blocks"),description:(0,l.__)("Add Lottie animations to your WordPress. Powered by Otter.","otter-blocks"),icon:i.lottieIcon,keywords:["media","lottie","animation"],edit:({attributes:e,setAttributes:t,isSelected:o,clientId:l})=>{const s=(0,b.useRef)(null),[a,i]=(0,b.useState)(!Boolean(e.file));(0,b.useEffect)((()=>{const t=(0,y.blockInit)(l,kl);return()=>t(e.id)}),[e.id]),(0,b.useEffect)((()=>{o?(s.current?.play?.(),e.direction&&s.current?.seek?.("100%")):s.current?.stop?.()}),[o]);const r=(0,d.useBlockProps)();return(0,k.jsxs)(b.Fragment,{children:[(!(0,H.isEmpty)(e.file)&&a||!a)&&(0,k.jsx)(ml,{isEditing:a,setEditing:i}),!((0,H.isEmpty)(e.file)||a)&&(0,k.jsx)(gl,{attributes:e,setAttributes:t,playerRef:s}),(0,k.jsxs)("div",{...r,children:[((0,H.isEmpty)(e.file)||a)&&(0,k.jsx)(hl,{value:e.file,onChange:e=>{if(""===e||null===e)return;const o=(0,H.pick)(e,["id","url"]);(0,H.isEmpty)(o)&&(o.url=e),t({file:{...o}}),i(!1)},attributes:e}),!((0,H.isEmpty)(e.file)||a)&&(0,k.jsx)(yl,{attributes:e,isSelected:o,playerRef:s})]})]})},save:({attributes:e})=>{const t=d.useBlockProps.save({id:e.id,...e.file?.url.endsWith(".lottie")?{"data-src":e.file?e.file.url:""}:{src:e.file?e.file?.url:""},width:e.width});let o=(0,b.createElement)("lottie-player");return e.file?.url.endsWith(".lottie")&&(o=(0,b.createElement)("dotlottie-player")),o=(0,b.cloneElement)(o,{trigger:e.trigger,background:e.backgroundColor||e.backgroundGradient,...e.ariaLabel&&{"aria-label":e.ariaLabel},...t}),"scroll"===e.trigger?o:(0,b.cloneElement)(o,{autoplay:!0,loop:!0,count:e.direction?-1*e.count:e.count,speed:e.speed,direction:e.direction?-1:1,trigger:e.trigger,"data-loop":e.loop,mode:"normal",..."hover"===e.trigger&&{hover:"hover"}})},example:{viewportWidth:1200,attributes:{id:"wp-block-themeisle-blocks-lottie-2",file:{url:"https://assets8.lottiefiles.com/packages/lf20_kd5rzej5.json"}}}});var fl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/popup","title":"Popup","category":"themeisle-blocks","description":"Display your content in beautiful popup with many customization options. Powered by Otter.","keywords":["popup","modal","lightbox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"minWidth":{"type":["number","string"]},"maxWidth":{"type":["number","string"]},"trigger":{"type":"string"},"wait":{"type":"number"},"anchor":{"type":"string"},"scroll":{"type":"number"},"showClose":{"type":"boolean","default":true},"outsideClose":{"type":"boolean","default":true},"anchorClose":{"type":"boolean","default":false},"closeAnchor":{"type":"string"},"recurringClose":{"type":"boolean","default":false},"recurringTime":{"type":"number"},"backgroundColor":{"type":"string"},"closeColor":{"type":"string"},"overlayColor":{"type":"string"},"overlayOpacity":{"type":"number"},"lockScrolling":{"type":"boolean"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"borderWidth":{"type":"object"},"borderRadius":{"type":"object"},"borderColor":{"type":"string"},"borderStyle":{"type":"string"},"width":{"type":"string"},"widthTablet":{"type":"string"},"widthMobile":{"type":"string"},"heightMode":{"type":"string"},"height":{"type":"string"},"heightTablet":{"type":"string"},"heightMobile":{"type":"string"},"verticalPosition":{"type":"string"},"horizontalPosition":{"type":"string"},"verticalPositionTablet":{"type":"string"},"horizontalPositionTablet":{"type":"string"},"verticalPositionMobile":{"type":"string"},"horizontalPositionMobile":{"type":"string"},"closeButtonType":{"type":"string"},"boxShadow":{"type":"object","default":{"active":false,"colorOpacity":50,"blur":5,"spread":1,"horizontal":0,"vertical":0}},"disableOn":{"type":"string"}},"editorStyle":"otter-popup-editor","style":"otter-popup-style","script":"otter-popup"}'),vl=o(7108),_l=o(8053);const wl=()=>(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.Disabled,{children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Close On Anchor Click","otter-blocks"),checked:!1,onChange:()=>{},className:"o-disabled"}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Dismiss for Recurring Visitors","otter-blocks"),checked:!1,onChange:()=>{},className:"o-disabled"})]}),(0,k.jsx)(h.$T,{notice:(0,k.jsx)(p.ExternalLink,{href:(0,g.lY)(window.themeisleGutenberg.upgradeLink,"popupblock"),children:(0,l.__)("Get more options with Otter Pro.","otter-blocks")}),variant:"upsell"})]});var Cl=({attributes:e,setAttributes:t})=>{var o,s,a,i,r,n,c,u,x,f,v,_;const[w,C]=(0,y.useTabSwitch)(e.id,"settings"),{responsiveSetAttributes:j,responsiveGetAttributes:S}=(0,m.d)(t);let T=[{label:(0,l.__)("On Load","otter-blocks"),value:"onLoad"},{label:(0,l.__)("On Anchor Click (Pro)","otter-blocks"),value:"onClick",disabled:!0},{label:(0,l.__)("On Scroll (Pro)","otter-blocks"),value:"onScroll",disabled:!0},{label:(0,l.__)("On Exit (Pro)","otter-blocks"),value:"onExit",disabled:!0},{label:(0,l.__)("Disable","otter-blocks"),value:"none"}];T=(0,Ae.applyFilters)("otter.popupBlock.triggers",T);const B=()=>(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Show Close Button","otter-blocks"),checked:e.showClose,onChange:()=>t({showClose:!e.showClose})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Close on Click Outside","otter-blocks"),checked:e.outsideClose,onChange:()=>t({outsideClose:!e.outsideClose})}),!Boolean(window.themeisleGutenberg.hasPro)&&(0,k.jsx)(wl,{})]});return(0,k.jsxs)(d.InspectorControls,{children:[(0,Ae.applyFilters)("otter.feedback","","popup-block",(0,l.__)("Help us improve this block","otter-blocks")),(0,k.jsx)(h.R7,{value:w,options:[{label:(0,l.__)("Settings","otter-blocks"),value:"settings"},{label:(0,l.__)("Style","otter-blocks"),value:"style"}],onChange:C}),(0,k.jsxs)("div",{children:["settings"===w&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Popup settings","otter-blocks"),children:[(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Open Trigger","otter-blocks"),help:!Boolean(window.themeisleGutenberg.hasPro)&&(0,l.__)("You need to have Otter Pro to activate Pro features.","otter-blocks"),options:T,value:e.trigger,onChange:e=>t({trigger:e})}),(void 0===e.trigger||"onLoad"===e.trigger)&&(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Trigger Delay","otter-blocks"),help:(0,l.__)("How much time in seconds to wait before showing the popup.","otter-blocks"),min:0,max:100,value:null!==(o=e.wait)&&void 0!==o?o:0,onChange:e=>t({wait:Number(e)}),allowReset:!0}),"none"===e.trigger&&(0,k.jsx)(h.$T,{notice:(0,l.__)("This popup will not be triggered. You can use this option to temporarily disable the popup without removing it.","otter-blocks"),variant:"info"}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Disable Page Scrolling","otter-blocks"),checked:e.lockScrolling,onChange:()=>t({lockScrolling:!e.lockScrolling})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Show on mobile","otter-blocks"),checked:!Boolean(e.disableOn),onChange:e=>t({disableOn:e?void 0:"mobile"})})]}),(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Popup Position","otter-blocks"),initialOpen:!1,children:(0,k.jsx)(h.k3,{label:(0,l.__)("Screen Type","otter-blocks"),children:(0,k.jsx)("div",{className:"o-position-picker",children:(0,k.jsx)(p.__experimentalAlignmentMatrixControl,{value:S([`${null!==(s=e.verticalPosition)&&void 0!==s?s:"center"} ${null!==(a=e.horizontalPosition)&&void 0!==a?a:"center"}`,`${null!==(i=e.verticalPositionTablet)&&void 0!==i?i:"center"} ${null!==(r=e.horizontalPositionTablet)&&void 0!==r?r:"center"}`,`${null!==(n=e.verticalPositionMobile)&&void 0!==n?n:"center"} ${null!==(c=e.horizontalPositionMobile)&&void 0!==c?c:"center"}`]),onChange:e=>{const[t,o]=e.split(" ");j(Boolean(t)&&"center"!==t?t:void 0,["verticalPosition","verticalPositionTablet","verticalPositionMobile"]),j(Boolean(o)&&"center"!==o?o:void 0,["horizontalPosition","horizontalPositionTablet","horizontalPositionMobile"])}})})})}),(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Frequency & Close Settings","otter-blocks"),initialOpen:!1,children:(0,Ae.applyFilters)("otter.popupBlock.controls",(0,k.jsx)(B,{}),e,t)}),(0,k.jsx)(h.Cu,{})]}),"style"===w&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Dimensions","otter-blocks"),children:[(0,k.jsx)(h.k3,{label:(0,l.__)("Width","otter-blocks"),children:(0,k.jsx)(p.__experimentalUnitControl,{value:null!==(u=S([e.width,e.widthTablet,e.widthMobile]))&&void 0!==u?u:"500px",onChange:e=>{j(e,["width","widthTablet","widthMobile"])}})}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Height","otter-blocks"),options:[{label:(0,l.__)("Fit Content","otter-blocks"),value:"none"},{label:(0,l.__)("Custom","otter-blocks"),value:"custom"}],value:e.heightMode,onChange:e=>t({heightMode:"none"!==e?e:void 0})}),"custom"===e.heightMode&&(0,k.jsx)(h.k3,{label:(0,l.__)("Custom Height","otter-blocks"),children:(0,k.jsx)(p.__experimentalUnitControl,{value:null!==(x=S([e.height,e.heightTablet,e.heightMobile]))&&void 0!==x?x:"400px",onChange:e=>{j(e,["height","heightTablet","heightMobile"])}})}),(0,k.jsx)(h.k3,{children:(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:null!==(f=S([e.padding,e.paddingTablet,e.paddingMobile]))&&void 0!==f?f:{top:"20px",bottom:"20px",left:"20px",right:"20px"},onChange:e=>{j((0,g.JE)(e,{top:"20px",bottom:"20px",left:"20px",right:"20px"}),["padding","paddingTablet","paddingMobile"])}})})]}),(0,k.jsx)(d.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:e.backgroundColor,onChange:e=>t({backgroundColor:e}),label:(0,l.__)("Background","otter-blocks"),isShownByDefault:!1},{value:e.closeColor,onChange:e=>t({closeColor:e}),label:(0,l.__)("Close Button","otter-blocks"),isShownByDefault:!1},{value:e.overlayColor,onChange:e=>t({overlayColor:e}),label:(0,l.__)("Overlay","otter-blocks"),isShownByDefault:!1},{value:e.borderColor,onChange:e=>t({borderColor:e}),label:(0,l.__)("Border","otter-blocks"),isShownByDefault:!1}]}),(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Overlay","otter-blocks"),initialOpen:!1,children:(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Overlay Opacity","otter-blocks"),value:e.overlayOpacity,initialPosition:100,onChange:e=>t({overlayOpacity:void 0!==e?Number(e):void 0}),allowReset:!0})}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Close Button","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Show Close Button","otter-blocks"),checked:e.showClose,onChange:()=>t({showClose:!e.showClose})}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Position","otter-blocks"),options:[{label:(0,l.__)("Inside","otter-blocks"),value:"none"},{label:(0,l.__)("Outside","otter-blocks"),value:"outside"}],value:e.closeButtonType,onChange:e=>t({closeButtonType:"none"!==e?e:void 0})})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Border","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Width","otter-blocks"),values:null!==(v=e.borderWidth)&&void 0!==v?v:{top:"0px",bottom:"0px",left:"0px",right:"0px"},onChange:e=>{t({borderWidth:(0,g.JE)(e,{top:"0px",bottom:"0px",left:"0px",right:"0px"})})}}),(0,k.jsx)(p.__experimentalBoxControl,{id:"o-border-raduis-box",label:(0,l.__)("Radius","otter-blocks"),values:null!==(_=e.borderRadius)&&void 0!==_?_:{top:"0px",bottom:"0px",left:"0px",right:"0px"},onChange:e=>{t({borderRadius:(0,g.JE)(e,{top:"0px",bottom:"0px",left:"0px",right:"0px"})})}}),(0,k.jsx)(h.fS,{boxShadow:e.boxShadow,onChange:o=>{const l={...e.boxShadow};Object.entries(o).forEach((([e,t]=o)=>{l[e]=t})),t({boxShadow:l})}})]})]})]})]})};const{attributes:jl}=fl;const{name:Sl}=fl;(0,s.registerBlockType)(Sl,{...fl,title:(0,l.__)("Popup","otter-blocks"),description:(0,l.__)("Display your content in beautiful popup with many customization options. Powered by Otter.","otter-blocks"),icon:i.popupIcon,keywords:["popup","modal","lightbox"],edit:({attributes:e,setAttributes:t,clientId:o,className:a,name:i})=>{var r,c,h;(0,b.useEffect)((()=>{const t=(0,y.blockInit)(o,jl);return()=>t(e.id)}),[]);const[x,f]=(0,b.useState)(!1),{replaceInnerBlocks:v,selectBlock:_}=(0,u.useDispatch)("core/block-editor"),w=(0,u.useSelect)((e=>0<e("core/block-editor").getBlocks(o).length),[o]),{blockType:C,defaultVariation:j,variations:S}=(0,u.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:l}=e("core/blocks");return{blockType:o(i),defaultVariation:l(i,"block"),variations:t(i,"block")}}),[i]),T="custom"===e.heightMode?{"--height":e.height,"--height-tablet":e.heightMobile,"--height-mobile":e.heightMobile}:{"--height":"fit-content"},B={"--min-width":e.minWidth?e.minWidth+"px":"400px","--max-width":e.maxWidth?e.maxWidth+"px":void 0,"--background-color":e.backgroundColor,"--close-color":e.closeColor,"--overlay-color":e.overlayColor,"--overlay-opacity":void 0!==e.overlayOpacity?e.overlayOpacity/100:1,"--brd-width":(0,g.a0)(e.borderWidth),"--brd-radius":(0,g.a0)(e.borderRadius),"--brd-color":e.borderColor,"--brd-style":e.borderStyle,"--width":!Boolean(e.width)&&e.maxWidth?e.maxWidth+"px":e.width,"--width-tablet":e.widthTablet,"--width-mobile":e.widthMobile,"--padding":e.padding?(0,g.a0)((0,H.merge)((0,g.kq)("20px"),e.padding)):void 0,"--padding-tablet":e.paddingTablet?(0,g.a0)((0,H.merge)((0,g.kq)("20px"),null!==(r=e.padding)&&void 0!==r?r:{},e.paddingTablet)):void 0,"--padding-mobile":e.paddingMobile?(0,g.a0)((0,H.merge)((0,g.kq)("20px"),null!==(c=e.padding)&&void 0!==c?c:{},null!==(h=e.paddingTablet)&&void 0!==h?h:{},e.paddingMobile)):void 0,"--box-shadow":e.boxShadow.active&&`${e.boxShadow.horizontal}px ${e.boxShadow.vertical}px ${e.boxShadow.blur}px ${e.boxShadow.spread}px ${hexToRgba(e.boxShadow.color||"#FFFFFF",e.boxShadow.colorOpacity)}`,...T},[M,P]=(0,y.useCSSNode)();(0,b.useEffect)((()=>{P([" .otter-popup__modal_content "+(0,g.SJ)([["top","30px","top"===e.verticalPosition],["bottom","30px","bottom"===e.verticalPosition],["left","30px","left"===e.horizontalPosition],["right","30px","right"===e.horizontalPosition]])," .otter-popup__modal_content "+(0,g.SJ)([["top","15px","top"===e.verticalPositionTablet],["bottom","15px","bottom"===e.verticalPositionTablet],["left","15px","left"===e.horizontalPositionTablet],["right","15px","right"===e.horizontalPositionTablet]])," .otter-popup__modal_content "+(0,g.SJ)([["top","10px","top"===e.verticalPositionMobile],["bottom","10px","bottom"===e.verticalPositionMobile],["left","10px","left"===e.horizontalPositionMobile],["right","10px","right"===e.horizontalPositionMobile]])],["@media ( min-width: 960px )","@media ( min-width: 600px ) and ( max-width: 960px )","@media ( max-width: 600px )"])}),[e.horizontalPosition,e.verticalPosition,e.horizontalPositionTablet,e.verticalPositionTablet,e.horizontalPositionMobile,e.verticalPositionMobile]),(0,m.g)(e.backgroundColor,e,t);const z=(0,d.useBlockProps)({id:e.id,style:B,className:n()(a,M,{"with-outside-button":"outside"===e.closeButtonType})});return(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(Cl,{attributes:e,setAttributes:t}),(0,k.jsx)("div",{...z,children:w?(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Button,{variant:"primary",isPrimary:!0,icon:vl.A,onClick:()=>f(!0),children:(0,l.__)("Edit Popup","otter-blocks")}),x&&(0,k.jsxs)("div",{className:"otter-popup__modal_wrap",children:[(0,k.jsx)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay",onClick:()=>f(!1)}),(0,k.jsxs)("div",{className:"otter-popup__modal_content",children:[e.showClose&&(0,k.jsx)("div",{className:"otter-popup__modal_header",children:(0,k.jsx)(p.Button,{icon:_l.A,onClick:()=>f(!1)})}),(0,k.jsx)("div",{className:"otter-popup__modal_body",children:(0,k.jsx)(d.InnerBlocks,{})})]})]})]}):(0,k.jsx)(d.__experimentalBlockVariationPicker,{icon:(0,H.get)(C,["icon","src"]),label:(0,H.get)(C,["title"]),variations:S,onSelect:(e=j)=>{e&&(t(e.attributes),v(o,(0,s.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)),_(o)},allowSkip:!0})})]})},save:({attributes:e,className:t})=>{const o=d.useBlockProps.save({id:e.id,className:n()(t,"is-front",{"with-outside-button":"outside"===e.closeButtonType}),"data-open":e.trigger,"data-dismiss":e.recurringClose?e.recurringTime:"","data-time":void 0===e.trigger||"onLoad"===e.trigger?e.wait||0:"","data-anchor":"onClick"===e.trigger?e.anchor:"","data-offset":"onScroll"===e.trigger?e.scroll:"","data-outside":e.outsideClose?e.outsideClose:"","data-anchorclose":e.anchorClose?e.closeAnchor:"","data-lock-scrolling":e.lockScrolling?"1":void 0,"data-disable-on":e.disableOn?e.disableOn:void 0});return(0,k.jsx)("div",{...o,children:(0,k.jsxs)("div",{className:"otter-popup__modal_wrap",children:[(0,k.jsx)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay"}),(0,k.jsxs)("div",{className:"otter-popup__modal_content",children:[e.showClose&&(0,k.jsx)("div",{className:"otter-popup__modal_header",children:(0,k.jsx)("button",{type:"button",className:"components-button has-icon",children:(0,k.jsx)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",children:(0,k.jsx)("path",{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})})}),(0,k.jsx)("div",{className:"otter-popup__modal_body",children:(0,k.jsx)(d.InnerBlocks.Content,{})})]})]})})},example:{attributes:{}},variations:[{name:"themeisle-blocks/popup-scratch",title:(0,l.__)("Start from scratch","otter-blocks"),description:(0,l.__)("Simple Popup with default settings.","otter-blocks"),icon:i.popupScratch,scope:["block"],attributes:{},innerBlocks:[{name:"core/paragraph",attributes:{content:"Add your content.",dropCap:!1,style:{typography:{fontSize:"16px"}}}}]},{name:"themeisle-blocks/popup-with-text-and-image",title:(0,l.__)("Text and Image","otter-blocks"),description:(0,l.__)("Popup with Text and Image.","otter-blocks"),icon:i.popupWithImageAndText,scope:["block"],attributes:{minWidth:900,trigger:"onLoad",wait:1,scroll:75,showClose:!1,outsideClose:!0,anchorClose:!1,recurringClose:!1,backgroundColor:"#ffffff",closeColor:"var(--nv-text-color)",overlayColor:"#000000",overlayOpacity:95,paddingMobile:{top:"8px",bottom:"8px",left:"8px",right:"8px"},width:"860px",height:"500px",heightTablet:"400px",heightMobile:"320px",boxShadow:{active:!1,colorOpacity:50,blur:5,spread:1,horizontal:0,vertical:0}},innerBlocks:[{name:"themeisle-blocks/advanced-columns",attributes:{columns:2,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows",padding:{top:"0px",right:"0px",bottom:"0px",left:"0px"},paddingTablet:{top:"40px",right:"20px",bottom:"40px",left:"20px"},paddingMobile:{top:"20px",right:"20px",bottom:"20px",left:"20px"},columnsWidth:"100%",horizontalAlign:"center",columnsHeight:"auto",verticalAlign:"center",backgroundType:"color",backgroundAttachment:"scroll",backgroundRepeat:"repeat",backgroundSize:"auto",backgroundGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayOpacity:50,backgroundOverlayType:"color",backgroundOverlayAttachment:"scroll",backgroundOverlayRepeat:"repeat",backgroundOverlaySize:"auto",backgroundOverlayGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayFilterBlur:0,backgroundOverlayFilterBrightness:10,backgroundOverlayFilterContrast:10,backgroundOverlayFilterGrayscale:0,backgroundOverlayFilterHue:0,backgroundOverlayFilterSaturate:10,backgroundOverlayBlend:"normal",boxShadow:!1,boxShadowColor:"#000000",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:0,boxShadowHorizontal:0,boxShadowVertical:0,dividerTopType:"none",dividerTopColor:"#000000",dividerTopInvert:!1,dividerBottomType:"none",dividerBottomColor:"#000000",dividerBottomInvert:!1,hide:!1,hideTablet:!1,hideMobile:!1,reverseColumnsTablet:!1,reverseColumnsMobile:!0,columnsHTMLTag:"div"},innerBlocks:[{name:"themeisle-blocks/advanced-column",attributes:{padding:{top:"20px",right:"20px",bottom:"20px",left:"20px"},paddingTablet:{top:"20px",right:"20px",bottom:"20px",left:"20px"},paddingMobile:{top:"20px",right:"20px",bottom:"20px",left:"20px"},backgroundType:"color",backgroundAttachment:"scroll",backgroundRepeat:"repeat",backgroundSize:"auto",backgroundGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayOpacity:50,backgroundOverlayType:"color",backgroundOverlayAttachment:"scroll",backgroundOverlayRepeat:"repeat",backgroundOverlaySize:"auto",backgroundOverlayGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayFilterBlur:0,backgroundOverlayFilterBrightness:10,backgroundOverlayFilterContrast:10,backgroundOverlayFilterGrayscale:0,backgroundOverlayFilterHue:0,backgroundOverlayFilterSaturate:10,backgroundOverlayBlend:"normal",boxShadow:!1,boxShadowColor:"#000000",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:0,boxShadowHorizontal:0,boxShadowVertical:0,columnsHTMLTag:"div",columnWidth:"50",verticalAlign:"center"},innerBlocks:[{name:"themeisle-blocks/advanced-heading",attributes:{content:"<strong>Explore COURSES</strong>",tag:"p",alignTablet:"left",alignMobile:"left",fontSize:"12px",fontSizeTablet:16,fontSizeMobile:16,textTransform:"uppercase",lineHeight:1.4,textShadow:!1,textShadowColor:"#000000",textShadowColorOpacity:50,textShadowBlur:5,textShadowHorizontal:0,textShadowVertical:0,paddingTop:0}},{name:"themeisle-blocks/advanced-heading",attributes:{content:"Illustration Skills",tag:"h2",textShadow:!1,textShadowColor:"#000000",textShadowColorOpacity:50,textShadowBlur:5,textShadowHorizontal:0,textShadowVertical:0,paddingTop:0,margin:{top:"0px",bottom:"8px"}}},{name:"core/paragraph",attributes:{content:"Through the years I have created downloadable resources that you can download and improve your skills.",dropCap:!1}},{name:"core/buttons",attributes:{layout:{type:"flex",justifyContent:"left"}},innerBlocks:[{name:"core/button",isValid:!0,attributes:{text:"Learn More",className:"is-style-primary"}}]}]},{name:"themeisle-blocks/advanced-column",attributes:{padding:{top:"20px",right:"20px",bottom:"20px",left:"20px"},paddingTablet:{top:"20px",right:"20px",bottom:"20px",left:"20px"},paddingMobile:{top:"20px",right:"20px",bottom:"20px",left:"20px"},backgroundType:"color",backgroundAttachment:"scroll",backgroundRepeat:"repeat",backgroundSize:"auto",backgroundGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayOpacity:50,backgroundOverlayType:"color",backgroundOverlayAttachment:"scroll",backgroundOverlayRepeat:"repeat",backgroundOverlaySize:"auto",backgroundOverlayGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayFilterBlur:0,backgroundOverlayFilterBrightness:10,backgroundOverlayFilterContrast:10,backgroundOverlayFilterGrayscale:0,backgroundOverlayFilterHue:0,backgroundOverlayFilterSaturate:10,backgroundOverlayBlend:"normal",boxShadow:!1,boxShadowColor:"#000000",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:0,boxShadowHorizontal:0,boxShadowVertical:0,columnsHTMLTag:"div",columnWidth:"50"},innerBlocks:[{name:"core/image",attributes:{url:"https://demosites.io/otter/wp-content/uploads/sites/664/2022/11/otter-demo-8.png",alt:"",caption:"",sizeSlug:"full",linkDestination:"none",boxShadow:!1,boxShadowColor:"#000000",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowHorizontal:0,boxShadowVertical:0}}]}]}]},{name:"themeisle-blocks/popup-with-form",title:(0,l.__)("Popup with Form","otter-blocks"),description:(0,l.__)("Popup with Form that appears on page load.","otter-blocks"),icon:i.popupWithForm,scope:["block"],attributes:{trigger:"onLoad",wait:1,showClose:!0,outsideClose:!0,anchorClose:!1,recurringClose:!1,backgroundColor:"#ffffff",closeColor:"var(--nv-text-color)",lockScrolling:!1,padding:{top:"32px",bottom:"32px",left:"32px",right:"32px"},borderWidth:{top:"8px"},borderRadius:{top:"5px",bottom:"5px",left:"5px",right:"5px"},borderColor:"#ed6f57",width:"540px",closeButtonType:"outside",boxShadow:{active:!1,colorOpacity:50,blur:5,spread:1,horizontal:0,vertical:0},disableOn:"mobile"},innerBlocks:[{name:"themeisle-blocks/advanced-heading",attributes:{content:"Find the perfect course",tag:"h2",textShadow:!1,textShadowColor:"#000000",textShadowColorOpacity:50,textShadowBlur:5,textShadowHorizontal:0,textShadowVertical:0,paddingTop:0,margin:{top:"0px",bottom:"16px"}}},{name:"core/paragraph",attributes:{content:"All of our courses are designed to help you learn the fundamentals of writing and other related topics.",dropCap:!1,style:{typography:{fontSize:"16px"}},textColor:"neve-text-color"}},{name:"themeisle-blocks/form",attributes:{provider:"",action:"subscribe",submitLabel:"Send me the survey",submitMessageColor:"var(--nv-c-1)",submitMessageErrorColor:"var(--nv-c-2)",submitStyle:"full"},innerBlocks:[{name:"themeisle-blocks/form-input",attributes:{type:"text",label:"Name",isRequired:!0,labelColor:"var(--nv-text-color)"}},{name:"themeisle-blocks/form-input",attributes:{type:"email",label:"Email",isRequired:!0,labelColor:"var(--nv-text-color)"}},{name:"core/paragraph",attributes:{align:"left",content:"You agree to privacy and terms.",dropCap:!1,textColor:"neve-text-color",fontSize:"small"}}]}]}]});var Tl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/posts-grid","title":"Posts","category":"themeisle-blocks","description":"Display a list of your most recent posts in a beautiful layout. Powered by Otter.","keywords":["posts","grid","news"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"style":{"type":"string","default":"grid"},"postTypes":{"type":"array","default":[]},"columns":{"type":"number","default":3},"template":{"type":"array","default":["category","title","meta","description"]},"categories":{"type":"array","items":{"type":"object"}},"postsToShow":{"type":"number","default":6},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"offset":{"type":"number","default":0},"imageSize":{"type":"string","default":"full"},"displayFeaturedImage":{"type":"boolean","default":true},"displayCategory":{"type":"boolean","default":true},"displayTitle":{"type":"boolean","default":true},"titleTag":{"type":"string","default":"h4"},"displayMeta":{"type":"boolean","default":true},"displayDescription":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":100},"displayDate":{"type":"boolean","default":true},"displayUpdatedDate":{"type":"boolean","default":false},"displayAuthor":{"type":"boolean","default":true},"displayComments":{"type":"boolean","default":true},"displayPostCategory":{"type":"boolean","default":false},"displayReadMoreLink":{"type":"boolean","default":false},"imageRatio":{"type":"string"},"customTitleFontSize":{"type":["string","number"]},"customTitleFontSizeTablet":{"type":["string","number"]},"customTitleFontSizeMobile":{"type":["string","number"]},"customDescriptionFontSize":{"type":["string","number"]},"customDescriptionFontSizeTablet":{"type":["string","number"]},"customDescriptionFontSizeMobile":{"type":["string","number"]},"customMetaFontSize":{"type":"string"},"customMetaFontSizeTablet":{"type":"string"},"customMetaFontSizeMobile":{"type":"string"},"textColor":{"type":"string"},"backgroundColor":{"type":"string"},"backgroundOverlay":{"type":"string"},"borderColor":{"type":"string"},"borderRadius":{"type":["number","object"]},"borderWidth":{"type":"string"},"cardBorderRadius":{"type":"object"},"boxShadow":{"type":"object","default":{"active":false,"colorOpacity":50,"blur":5,"spread":1,"horizontal":0,"vertical":0}},"imageBoxShadow":{"type":"object","default":{"active":false,"colorOpacity":50,"blur":5,"spread":1,"horizontal":0,"vertical":0}},"textAlign":{"type":"string"},"verticalAlign":{"type":"string"},"enableFeaturedPost":{"type":"boolean"},"imageWidth":{"type":["string","number"]},"imageWidthTablet":{"type":"string"},"imageWidthMobile":{"type":"string"},"columnGap":{"type":"string"},"columnGapTablet":{"type":"string"},"columnGapMobile":{"type":"string"},"rowGap":{"type":"string"},"rowGapTablet":{"type":"string"},"rowGapMobile":{"type":"string"},"padding":{"type":"string"},"paddingTablet":{"type":"string"},"paddingMobile":{"type":"string"},"contentGap":{"type":"string"},"featuredPostOrder":{"type":"string"},"hasPagination":{"type":"boolean","default":false},"pagColor":{"type":"string"},"pagBgColor":{"type":"string"},"pagColorHover":{"type":"string"},"pagBgColorHover":{"type":"string"},"pagColorActive":{"type":"string"},"pagBgColorActive":{"type":"string"},"pagBorderColor":{"type":"string"},"pagBorderColorHover":{"type":"string"},"pagBorderColorActive":{"type":"string"},"pagGap":{"type":"string"},"pagBorderRadius":{"type":"object","properties":{"top":{"type":"string"},"left":{"type":"string"},"right":{"type":"string"},"bottom":{"type":"string"}}},"pagBorderWidth":{"type":"object","properties":{"top":{"type":"string"},"left":{"type":"string"},"right":{"type":"string"},"bottom":{"type":"string"}}},"pagPadding":{"type":"object","properties":{"top":{"type":"string"},"left":{"type":"string"},"right":{"type":"string"},"bottom":{"type":"string"}}},"pagContMargin":{"type":"object","properties":{"top":{"type":"string"},"left":{"type":"string"},"right":{"type":"string"},"bottom":{"type":"string"}}},"pagSize":{"type":"string"}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-posts-grid-editor","style":"otter-posts-grid-style"}');const{attributes:Bl}=Tl;var Ml=[{attributes:{...Bl,categories:{type:"string"}},supports:{align:["wide","full"],html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}],Pl=({attributes:e,setAttributes:t})=>{const o=d.BlockVerticalAlignmentToolbar;return(0,k.jsx)(d.BlockControls,{children:(0,k.jsx)(o,{label:(0,l.__)("Change Vertical Alignment","otter-blocks"),value:e.verticalAlign,onChange:e=>t({verticalAlign:e})})})};const zl=(0,Tt.D)((()=>(0,k.jsx)("div",{className:"o-sortable-handle",tabIndex:"0",children:(0,k.jsx)("span",{})}))),Al={image:"displayFeaturedImage",category:"displayCategory",title:"displayTitle",meta:"displayMeta",description:"displayDescription"},Fl=({attributes:e,setAttributes:t,template:o,disabled:s})=>{const[a,i]=(0,b.useState)(!1),r=o?.startsWith("custom_"),c=e?.customMetas?.filter((({id:e})=>e===o))?.pop(),d={image:e.displayFeaturedImage,category:e.displayCategory,title:e.displayTitle,meta:e.displayMeta,description:e.displayDescription},u=o=>{const l={...c,...o};t({customMetas:e.customMetas.map((e=>e.id===c.id?l:e))})},h=r?(0,Ae.applyFilters)("otter.postsBlock.panelLabel","",c):(0,H.startCase)((0,H.toLower)(o)),g=d[o]||c?.display,m=g?"visibility":"hidden";let y=(0,l.sprintf)(/* translators: %s Label */ /* translators: %s Label */
+console.warn((0,l.sprintf)((0,l.__)("The action for the leaflet block do not have a defined action in marker's reducer: %s","otter-blocks"),t.type))}return e}),[],(()=>[])),_=()=>{if(!i.current&&!window.L)return;let{L:e}=window;const s=(0,y.getEditorIframe)();if(Boolean(s)&&(e=s.contentWindow?.L),!e)return;i.current.innerHTML="";const a=e.map(i.current,{gestureHandling:!0,gestureHandlingOptions:{text:{touch:(0,l.__)("Use two fingers to move the map","otter-blocks"),scroll:(0,l.__)("Use ctrl + scroll to zoom the map","otter-blocks"),scrollMac:(0,l.__)("Use ⌘ + scroll to zoom the map","otter-blocks")}}});e.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(a),a.on("zoom",(()=>{o({zoom:a.getZoom()})})),a.on("moveend",(()=>{const e=a.getCenter();o({latitude:e.lat.toString(),longitude:e.lng.toString()})})),a.on("click",(e=>{v({type:cl.ADD_MANUAL,marker:{latitude:e.latlng.lat,longitude:e.latlng.lng},dispatch:v}),u(!1)})),e.Control.AddMarker=e.Control.extend({onAdd:()=>{const t=e.DomUtil.create("button","wp-block-themeisle-blocks-leaflet-map-marker-button"),o=e.DomUtil.create("span","dashicons dashicons-sticky",t);return e.DomEvent.on(t,"click",(t=>{e.DomEvent.stopPropagation(t),u(!c)})),t.title=(0,l.__)("Add marker on the map with a click","otter-blocks"),t.appendChild(o),t},onRemove:()=>{}}),e.control.addmarker=t=>new e.Control.AddMarker(t),e.control.addmarker({position:"bottomleft"}).addTo(a),n(a),v({type:cl.INIT,markers:t.markers,dispatch:v})};(0,b.useEffect)((()=>{(0,y.getEditorIframe)()?((0,y.copyScriptAssetToIframe)("#leaflet-js",(()=>{_()})),(0,y.copyScriptAssetToIframe)("#leaflet-gesture-handling-js",(()=>{}))):_()}),[]),(0,b.useEffect)((()=>{t.height&&r&&r.invalidateSize(!0)}),[t.height,r]),(0,b.useEffect)((()=>{var e;t.latitude&&t.longitude&&r&&r.setView([t.latitude,t.longitude],null!==(e=t.zoom)&&void 0!==e?e:15)}),[t.latitude,t.longitude,t.zoom,r]),(0,b.useEffect)((()=>{i.current?.classList.toggle("is-selecting-location",c)}),[c]),(0,b.useEffect)((()=>{t.latitude&&t.longitude&&r&&o({bbox:r.getBounds().toBBoxString()})}),[t.latitude,t.longitude,r]),(0,b.useEffect)((()=>{f&&(f.forEach((e=>{r.hasLayer(e)||r.addLayer(e);const{markerProps:t}=e;e.setLatLng([t.latitude,t.longitude]),e.closeTooltip(),e.unbindTooltip(),e.bindTooltip(t.title,{direction:"auto"}),e.closePopup(),e.unbindPopup(),e.bindPopup(((e,t)=>{const o=document.createElement("div"),s=document.createElement("h6"),a=document.createElement("div"),i=document.createElement("p"),r=document.createElement("button");return s.innerHTML=e.title,i.innerHTML=e.description,r.onclick=()=>t({type:cl.REMOVE,ids:[e.id]}),r.innerHTML=(0,l.__)("Delete Marker","otter-blocks"),o.classList.add("wp-block-themeisle-blocks-map-overview"),a.classList.add("wp-block-themeisle-blocks-map-overview-content"),s.classList.add("wp-block-themeisle-blocks-map-overview-title"),r.classList.add("wp-block-themeisle-blocks-map-overview-delete"),o.appendChild(s),o.appendChild(a),o.appendChild(r),a.appendChild(i),o})(t,v))})),t.markers.length!==f.length&&r&&o({markers:f.map((({markerProps:e})=>e))}))}),[f,r,t.markers]);const w=(0,d.useBlockProps)();return(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(rl,{attributes:t,setAttributes:o,dispatch:v,markersInteraction:{openMarker:p,setOpenMarker:h}}),(0,k.jsx)("div",{...w,children:(0,k.jsx)("div",{id:t.id,ref:i,style:{width:"100%",height:a([(0,g.ws)(null!==(s=t.height)&&void 0!==s?s:400),t.heightTablet,t.heightMobile])}})})]})},save:()=>null,example:{attributes:{}}});var pl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/lottie","title":"Lottie Animation","category":"themeisle-blocks","description":"Add Lottie animations to your WordPress. Powered by Otter.","keywords":["media","lottie","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"file":{"type":"object"},"trigger":{"type":"string","default":"none"},"loop":{"type":"boolean","default":false},"count":{"type":"number","default":0},"speed":{"type":"number","default":1},"direction":{"type":"boolean","default":false},"width":{"type":["string","number"]},"ariaLabel":{"type":"string","default":""},"backgroundColor":{"type":"string"},"backgroundGradient":{"type":"string"}},"supports":{"align":["left","center","right"]},"editorStyle":"otter-lottie-editor","script":"otter-lottie"}'),hl=({className:e,file:t,onChange:o,attributes:s})=>{const[a,r]=(0,b.useState)(s.file?.url||null);return Boolean(window.themeisleGutenberg.isWPVIP)?(0,k.jsx)(p.Placeholder,{label:(0,l.__)("Lottie","otter-blocks"),instructions:(0,l.__)("Add Lottie animations and files to your website. You need to use a .json file.","otter-blocks"),icon:i.lottieIcon,className:e,children:(0,k.jsxs)("form",{onSubmit:e=>(e&&e.preventDefault(),o(a)),children:[(0,k.jsx)("input",{type:"url",value:a||"",className:"components-placeholder__input","aria-label":(0,l.__)("Lottie","otter-blocks"),placeholder:(0,l.__)("Enter URL to embed here…","otter-blocks"),onChange:e=>r(e.target.value)}),(0,k.jsx)(p.Button,{isPrimary:!0,disabled:!a,type:"submit",children:(0,l.__)("Embed","otter-blocks")})]})}):(0,k.jsx)(d.MediaPlaceholder,{labels:{title:(0,l.__)("Lottie","otter-blocks"),instructions:(0,l.__)("Add Lottie animations and files to your website.","otter-blocks")},icon:i.lottieIcon,accept:["application/json",".lottie"],allowedTypes:["application/json"],value:{...t},onSelectURL:o,onSelect:o})},gl=({attributes:e,setAttributes:t,playerRef:o})=>(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(d.InspectorControls,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),initialOpen:!0,children:[(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Trigger","otter-blocks"),help:(0,l.__)("Animation trigger. This will only work on the front-end.","otter-blocks"),value:e.trigger,options:[{label:(0,l.__)("Autoplay","otter-blocks"),value:"none"},{label:(0,l.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,l.__)("Hover","otter-blocks"),value:"hover"},{label:(0,l.__)("Click","otter-blocks"),value:"click"}],onChange:e=>{t({trigger:e})}}),"scroll"!==e.trigger&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Loop","otter-blocks"),help:(0,l.__)("Whether to loop animation.","otter-blocks"),checked:e.loop,onChange:l=>{t({loop:l}),o.current.setLooping(l),e.direction&&o.current.seek("100%"),o.current.play()}}),e.loop&&(0,k.jsx)(p.TextControl,{label:(0,l.__)("Numbers of loops","otter-blocks"),help:(0,l.__)("Number of times to loop animation.","otter-blocks"),type:"number",value:e.count,onChange:l=>{t({count:Number(l)}),o.current.load(e.file.url)}}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Speed","otter-blocks"),help:(0,l.__)("Animation speed.","otter-blocks"),value:e.speed,onChange:e=>{t({speed:Number(e)}),o.current.setSpeed(e)},step:.1,min:.1,max:5}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Reverse","otter-blocks"),help:(0,l.__)("Direction of animation.","otter-blocks"),checked:e.direction,onChange:e=>{t({direction:e}),o.current.setDirection(e?-1:1),o.current.seek(e?"100%":0)}})]}),(0,k.jsx)(d.__experimentalUnitControl,{onChange:e=>{const o=parseInt(e.slice(0,-1)),l=e.slice(-1);100<o&&"%"===l&&(e="100%"),t({width:e})},label:(0,l.__)("Width","otter-blocks"),isUnitSelectTabbable:!0,isResetValueOnUnitChange:!0,__unstableInputWidth:"50%",value:(0,g.ws)(e.width),units:[{value:"%",label:"%",default:100},{value:"px",label:"px",default:300}]})]}),(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Background","otter-blocks"),initialOpen:!1,children:(0,k.jsx)(d.__experimentalColorGradientControl,{colorValue:e.backgroundColor,gradientValue:e.backgroundGradient,onColorChange:e=>t({backgroundColor:e}),onGradientChange:e=>t({backgroundGradient:e}),showTitle:!1,className:"otter-lottie-background-control"})})]}),(0,k.jsx)(d.InspectorAdvancedControls,{children:(0,k.jsx)(p.TextControl,{label:(0,l.__)("Aria Label","otter-blocks"),help:(0,l.__)("Describe the purpose of this animation on the page.","otter-blocks"),value:e.ariaLabel,onChange:e=>t({ariaLabel:e})})})]}),ml=({isEditing:e,setEditing:t})=>(0,k.jsx)(d.BlockControls,{children:(0,k.jsx)(p.ToolbarGroup,{children:(0,k.jsx)(p.Tooltip,{text:e?(0,l.__)("Save","otter-blocks"):(0,l.__)("Edit","otter-blocks"),children:(0,k.jsx)(p.Button,{onClick:()=>t(!e),children:(0,k.jsx)(p.Dashicon,{icon:e?"yes":"edit"})})})})}),yl=({attributes:e,playerRef:t})=>{(0,b.useEffect)((()=>{const l=(0,y.getEditorIframe)();Boolean(l)?((0,y.copyScriptAssetToIframe)("#lottie-player-js",(()=>{!(0,H.isEmpty)(e.file)&&e.loop&&null!==t.current&&t.current.addEventListener("complete",o)})),(0,y.copyScriptAssetToIframe)("#dotlottie-player-js",(()=>{!(0,H.isEmpty)(e.file)&&e.loop&&null!==t.current&&t.current.addEventListener("complete",o)}))):!(0,H.isEmpty)(e.file)&&e.loop&&null!==t.current&&t.current.addEventListener("complete",o)}),[]);const o=()=>{t.current&&(t.current.setLooping(e.loop),t.current.play(),t.current.removeEventListener("complete",o))};let l=(0,b.createElement)("lottie-player");return e.file.url.endsWith(".lottie")&&(l=(0,b.createElement)("dotlottie-player")),(0,b.cloneElement)(l,{id:e.id,ref:t,src:e.file.url,autoplay:!e.trigger||"none"===e.trigger,loop:e.loop,count:e.direction?-1*e.count:e.count,speed:e.speed,background:e.backgroundColor||e.backgroundGradient,direction:e.direction?-1:1,trigger:e.trigger,"data-loop":e.loop,mode:"normal",style:{width:!(!e.width||"%"===e.width.toString().slice(-1))&&`${e.width}px`,maxWidth:!(!e.width||"%"!==e.width.toString().slice(-1))&&`${e.width}`,height:"auto"},..."hover"===e.trigger&&{hover:"hover"},...e.ariaLabel&&{"aria-label":e.ariaLabel}})};const{attributes:kl}=pl;const{name:xl}=pl;(0,s.registerBlockType)(xl,{...pl,title:(0,l.__)("Lottie Animation","otter-blocks"),description:(0,l.__)("Add Lottie animations to your WordPress. Powered by Otter.","otter-blocks"),icon:i.lottieIcon,keywords:["media","lottie","animation"],edit:({attributes:e,setAttributes:t,isSelected:o,clientId:l})=>{const s=(0,b.useRef)(null),[a,i]=(0,b.useState)(!Boolean(e.file));(0,b.useEffect)((()=>{const t=(0,y.blockInit)(l,kl);return()=>t(e.id)}),[e.id]),(0,b.useEffect)((()=>{o?(s.current?.play?.(),e.direction&&s.current?.seek?.("100%")):s.current?.stop?.()}),[o]);const r=(0,d.useBlockProps)();return(0,k.jsxs)(b.Fragment,{children:[(!(0,H.isEmpty)(e.file)&&a||!a)&&(0,k.jsx)(ml,{isEditing:a,setEditing:i}),!((0,H.isEmpty)(e.file)||a)&&(0,k.jsx)(gl,{attributes:e,setAttributes:t,playerRef:s}),(0,k.jsxs)("div",{...r,children:[((0,H.isEmpty)(e.file)||a)&&(0,k.jsx)(hl,{value:e.file,onChange:e=>{if(""===e||null===e)return;const o=(0,H.pick)(e,["id","url"]);(0,H.isEmpty)(o)&&(o.url=e),t({file:{...o}}),i(!1)},attributes:e}),!((0,H.isEmpty)(e.file)||a)&&(0,k.jsx)(yl,{attributes:e,isSelected:o,playerRef:s})]})]})},save:({attributes:e})=>{const t=d.useBlockProps.save({id:e.id,...e.file?.url.endsWith(".lottie")?{"data-src":e.file?e.file.url:""}:{src:e.file?e.file?.url:""},width:e.width});let o=(0,b.createElement)("lottie-player");return e.file?.url.endsWith(".lottie")&&(o=(0,b.createElement)("dotlottie-player")),o=(0,b.cloneElement)(o,{trigger:e.trigger,background:e.backgroundColor||e.backgroundGradient,...e.ariaLabel&&{"aria-label":e.ariaLabel},...t}),"scroll"===e.trigger?o:(0,b.cloneElement)(o,{autoplay:!0,loop:!0,count:e.direction?-1*e.count:e.count,speed:e.speed,direction:e.direction?-1:1,trigger:e.trigger,"data-loop":e.loop,mode:"normal",..."hover"===e.trigger&&{hover:"hover"}})},example:{viewportWidth:1200,attributes:{id:"wp-block-themeisle-blocks-lottie-2",file:{url:"https://assets8.lottiefiles.com/packages/lf20_kd5rzej5.json"}}}});var fl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/popup","title":"Popup","category":"themeisle-blocks","description":"Display your content in beautiful popup with many customization options. Powered by Otter.","keywords":["popup","modal","lightbox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"minWidth":{"type":["number","string"]},"maxWidth":{"type":["number","string"]},"trigger":{"type":"string"},"wait":{"type":"number"},"anchor":{"type":"string"},"scroll":{"type":"number"},"showClose":{"type":"boolean","default":true},"outsideClose":{"type":"boolean","default":true},"anchorClose":{"type":"boolean","default":false},"closeAnchor":{"type":"string"},"recurringClose":{"type":"boolean","default":false},"recurringTime":{"type":"number"},"backgroundColor":{"type":"string"},"closeColor":{"type":"string"},"overlayColor":{"type":"string"},"overlayOpacity":{"type":"number"},"lockScrolling":{"type":"boolean"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"borderWidth":{"type":"object"},"borderRadius":{"type":"object"},"borderColor":{"type":"string"},"borderStyle":{"type":"string"},"width":{"type":"string"},"widthTablet":{"type":"string"},"widthMobile":{"type":"string"},"heightMode":{"type":"string"},"height":{"type":"string"},"heightTablet":{"type":"string"},"heightMobile":{"type":"string"},"verticalPosition":{"type":"string"},"horizontalPosition":{"type":"string"},"verticalPositionTablet":{"type":"string"},"horizontalPositionTablet":{"type":"string"},"verticalPositionMobile":{"type":"string"},"horizontalPositionMobile":{"type":"string"},"closeButtonType":{"type":"string"},"boxShadow":{"type":"object","default":{"active":false,"colorOpacity":50,"blur":5,"spread":1,"horizontal":0,"vertical":0}},"disableOn":{"type":"string"}},"editorStyle":"otter-popup-editor","style":"otter-popup-style","script":"otter-popup"}'),vl=o(7108),_l=o(8053);const wl=()=>(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.Disabled,{children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Close On Anchor Click","otter-blocks"),checked:!1,onChange:()=>{},className:"o-disabled"}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Dismiss for Recurring Visitors","otter-blocks"),checked:!1,onChange:()=>{},className:"o-disabled"})]}),(0,k.jsx)(h.$T,{notice:(0,k.jsx)(p.ExternalLink,{href:(0,g.lY)(window.themeisleGutenberg.upgradeLink,"popupblock"),children:(0,l.__)("Get more options with Otter Pro.","otter-blocks")}),variant:"upsell"})]});var Cl=({attributes:e,setAttributes:t})=>{var o,s,a,i,r,n,c,u,x,f,v,_;const[w,C]=(0,y.useTabSwitch)(e.id,"settings"),{responsiveSetAttributes:j,responsiveGetAttributes:S}=(0,m.d)(t);let T=[{label:(0,l.__)("On Load","otter-blocks"),value:"onLoad"},{label:(0,l.__)("On Anchor Click (Pro)","otter-blocks"),value:"onClick",disabled:!0},{label:(0,l.__)("On Scroll (Pro)","otter-blocks"),value:"onScroll",disabled:!0},{label:(0,l.__)("On Exit (Pro)","otter-blocks"),value:"onExit",disabled:!0},{label:(0,l.__)("Disable","otter-blocks"),value:"none"}];T=(0,Ae.applyFilters)("otter.popupBlock.triggers",T);const B=()=>(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Show Close Button","otter-blocks"),checked:e.showClose,onChange:()=>t({showClose:!e.showClose})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Close on Click Outside","otter-blocks"),checked:e.outsideClose,onChange:()=>t({outsideClose:!e.outsideClose})}),!Boolean(window.themeisleGutenberg.hasPro)&&(0,k.jsx)(wl,{})]});return(0,k.jsxs)(d.InspectorControls,{children:[(0,Ae.applyFilters)("otter.feedback","","popup-block",(0,l.__)("Help us improve this block","otter-blocks")),(0,k.jsx)(h.R7,{value:w,options:[{label:(0,l.__)("Settings","otter-blocks"),value:"settings"},{label:(0,l.__)("Style","otter-blocks"),value:"style"}],onChange:C}),(0,k.jsxs)("div",{children:["settings"===w&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Popup settings","otter-blocks"),children:[(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Open Trigger","otter-blocks"),help:!Boolean(window.themeisleGutenberg.hasPro)&&(0,l.__)("You need to have Otter Pro to activate Pro features.","otter-blocks"),options:T,value:e.trigger,onChange:e=>t({trigger:e})}),(void 0===e.trigger||"onLoad"===e.trigger)&&(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Trigger Delay","otter-blocks"),help:(0,l.__)("How much time in seconds to wait before showing the popup.","otter-blocks"),min:0,max:100,value:null!==(o=e.wait)&&void 0!==o?o:0,onChange:e=>t({wait:Number(e)}),allowReset:!0}),"none"===e.trigger&&(0,k.jsx)(h.$T,{notice:(0,l.__)("This popup will not be triggered. You can use this option to temporarily disable the popup without removing it.","otter-blocks"),variant:"info"}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Disable Page Scrolling","otter-blocks"),checked:e.lockScrolling,onChange:()=>t({lockScrolling:!e.lockScrolling})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Show on mobile","otter-blocks"),checked:!Boolean(e.disableOn),onChange:e=>t({disableOn:e?void 0:"mobile"})})]}),(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Popup Position","otter-blocks"),initialOpen:!1,children:(0,k.jsx)(h.k3,{label:(0,l.__)("Screen Type","otter-blocks"),children:(0,k.jsx)("div",{className:"o-position-picker",children:(0,k.jsx)(p.__experimentalAlignmentMatrixControl,{value:S([`${null!==(s=e.verticalPosition)&&void 0!==s?s:"center"} ${null!==(a=e.horizontalPosition)&&void 0!==a?a:"center"}`,`${null!==(i=e.verticalPositionTablet)&&void 0!==i?i:"center"} ${null!==(r=e.horizontalPositionTablet)&&void 0!==r?r:"center"}`,`${null!==(n=e.verticalPositionMobile)&&void 0!==n?n:"center"} ${null!==(c=e.horizontalPositionMobile)&&void 0!==c?c:"center"}`]),onChange:e=>{const[t,o]=e.split(" ");j(Boolean(t)&&"center"!==t?t:void 0,["verticalPosition","verticalPositionTablet","verticalPositionMobile"]),j(Boolean(o)&&"center"!==o?o:void 0,["horizontalPosition","horizontalPositionTablet","horizontalPositionMobile"])}})})})}),(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Frequency & Close Settings","otter-blocks"),initialOpen:!1,children:(0,Ae.applyFilters)("otter.popupBlock.controls",(0,k.jsx)(B,{}),e,t)}),(0,k.jsx)(h.Cu,{})]}),"style"===w&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Dimensions","otter-blocks"),children:[(0,k.jsx)(h.k3,{label:(0,l.__)("Width","otter-blocks"),children:(0,k.jsx)(p.__experimentalUnitControl,{value:null!==(u=S([e.width,e.widthTablet,e.widthMobile]))&&void 0!==u?u:"500px",onChange:e=>{j(e,["width","widthTablet","widthMobile"])}})}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Height","otter-blocks"),options:[{label:(0,l.__)("Fit Content","otter-blocks"),value:"none"},{label:(0,l.__)("Custom","otter-blocks"),value:"custom"}],value:e.heightMode,onChange:e=>t({heightMode:"none"!==e?e:void 0})}),"custom"===e.heightMode&&(0,k.jsx)(h.k3,{label:(0,l.__)("Custom Height","otter-blocks"),children:(0,k.jsx)(p.__experimentalUnitControl,{value:null!==(x=S([e.height,e.heightTablet,e.heightMobile]))&&void 0!==x?x:"400px",onChange:e=>{j(e,["height","heightTablet","heightMobile"])}})}),(0,k.jsx)(h.k3,{children:(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:null!==(f=S([e.padding,e.paddingTablet,e.paddingMobile]))&&void 0!==f?f:{top:"20px",bottom:"20px",left:"20px",right:"20px"},onChange:e=>{j((0,g.JE)(e,{top:"20px",bottom:"20px",left:"20px",right:"20px"}),["padding","paddingTablet","paddingMobile"])}})})]}),(0,k.jsx)(d.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:e.backgroundColor,onChange:e=>t({backgroundColor:e}),label:(0,l.__)("Background","otter-blocks"),isShownByDefault:!1},{value:e.closeColor,onChange:e=>t({closeColor:e}),label:(0,l.__)("Close Button","otter-blocks"),isShownByDefault:!1},{value:e.overlayColor,onChange:e=>t({overlayColor:e}),label:(0,l.__)("Overlay","otter-blocks"),isShownByDefault:!1},{value:e.borderColor,onChange:e=>t({borderColor:e}),label:(0,l.__)("Border","otter-blocks"),isShownByDefault:!1}]}),(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Overlay","otter-blocks"),initialOpen:!1,children:(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Overlay Opacity","otter-blocks"),value:e.overlayOpacity,initialPosition:100,onChange:e=>t({overlayOpacity:void 0!==e?Number(e):void 0}),allowReset:!0})}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Close Button","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Show Close Button","otter-blocks"),checked:e.showClose,onChange:()=>t({showClose:!e.showClose})}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Position","otter-blocks"),options:[{label:(0,l.__)("Inside","otter-blocks"),value:"none"},{label:(0,l.__)("Outside","otter-blocks"),value:"outside"}],value:e.closeButtonType,onChange:e=>t({closeButtonType:"none"!==e?e:void 0})})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Border","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Width","otter-blocks"),values:null!==(v=e.borderWidth)&&void 0!==v?v:{top:"0px",bottom:"0px",left:"0px",right:"0px"},onChange:e=>{t({borderWidth:(0,g.JE)(e,{top:"0px",bottom:"0px",left:"0px",right:"0px"})})}}),(0,k.jsx)(p.__experimentalBoxControl,{id:"o-border-raduis-box",label:(0,l.__)("Radius","otter-blocks"),values:null!==(_=e.borderRadius)&&void 0!==_?_:{top:"0px",bottom:"0px",left:"0px",right:"0px"},onChange:e=>{t({borderRadius:(0,g.JE)(e,{top:"0px",bottom:"0px",left:"0px",right:"0px"})})}}),(0,k.jsx)(h.fS,{boxShadow:e.boxShadow,onChange:o=>{const l={...e.boxShadow};Object.entries(o).forEach((([e,t]=o)=>{l[e]=t})),t({boxShadow:l})}})]})]})]})]})};const{attributes:jl}=fl;const{name:Sl}=fl;(0,s.registerBlockType)(Sl,{...fl,title:(0,l.__)("Popup","otter-blocks"),description:(0,l.__)("Display your content in beautiful popup with many customization options. Powered by Otter.","otter-blocks"),icon:i.popupIcon,keywords:["popup","modal","lightbox"],edit:({attributes:e,setAttributes:t,clientId:o,className:a,name:i})=>{var r,c,h;(0,b.useEffect)((()=>{const t=(0,y.blockInit)(o,jl);return()=>t(e.id)}),[]);const[x,f]=(0,b.useState)(!1),{replaceInnerBlocks:v,selectBlock:_}=(0,u.useDispatch)("core/block-editor"),w=(0,u.useSelect)((e=>0<e("core/block-editor").getBlocks(o).length),[o]),{blockType:C,defaultVariation:j,variations:S}=(0,u.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:l}=e("core/blocks");return{blockType:o(i),defaultVariation:l(i,"block"),variations:t(i,"block")}}),[i]),T="custom"===e.heightMode?{"--height":e.height,"--height-tablet":e.heightMobile,"--height-mobile":e.heightMobile}:{"--height":"fit-content"},B={"--min-width":e.minWidth?e.minWidth+"px":"400px","--max-width":e.maxWidth?e.maxWidth+"px":void 0,"--background-color":e.backgroundColor,"--close-color":e.closeColor,"--overlay-color":e.overlayColor,"--overlay-opacity":void 0!==e.overlayOpacity?e.overlayOpacity/100:1,"--brd-width":(0,g.a0)(e.borderWidth),"--brd-radius":(0,g.a0)(e.borderRadius),"--brd-color":e.borderColor,"--brd-style":e.borderStyle,"--width":!Boolean(e.width)&&e.maxWidth?e.maxWidth+"px":e.width,"--width-tablet":e.widthTablet,"--width-mobile":e.widthMobile,"--padding":e.padding?(0,g.a0)((0,H.merge)((0,g.kq)("20px"),e.padding)):void 0,"--padding-tablet":e.paddingTablet?(0,g.a0)((0,H.merge)((0,g.kq)("20px"),null!==(r=e.padding)&&void 0!==r?r:{},e.paddingTablet)):void 0,"--padding-mobile":e.paddingMobile?(0,g.a0)((0,H.merge)((0,g.kq)("20px"),null!==(c=e.padding)&&void 0!==c?c:{},null!==(h=e.paddingTablet)&&void 0!==h?h:{},e.paddingMobile)):void 0,"--box-shadow":e.boxShadow.active&&`${e.boxShadow.horizontal}px ${e.boxShadow.vertical}px ${e.boxShadow.blur}px ${e.boxShadow.spread}px ${hexToRgba(e.boxShadow.color||"#FFFFFF",e.boxShadow.colorOpacity)}`,...T},[M,P]=(0,y.useCSSNode)();(0,b.useEffect)((()=>{P([" .otter-popup__modal_content "+(0,g.SJ)([["top","30px","top"===e.verticalPosition],["bottom","30px","bottom"===e.verticalPosition],["left","30px","left"===e.horizontalPosition],["right","30px","right"===e.horizontalPosition]])," .otter-popup__modal_content "+(0,g.SJ)([["top","15px","top"===e.verticalPositionTablet],["bottom","15px","bottom"===e.verticalPositionTablet],["left","15px","left"===e.horizontalPositionTablet],["right","15px","right"===e.horizontalPositionTablet]])," .otter-popup__modal_content "+(0,g.SJ)([["top","10px","top"===e.verticalPositionMobile],["bottom","10px","bottom"===e.verticalPositionMobile],["left","10px","left"===e.horizontalPositionMobile],["right","10px","right"===e.horizontalPositionMobile]])],["@media ( min-width: 960px )","@media ( min-width: 600px ) and ( max-width: 960px )","@media ( max-width: 600px )"])}),[e.horizontalPosition,e.verticalPosition,e.horizontalPositionTablet,e.verticalPositionTablet,e.horizontalPositionMobile,e.verticalPositionMobile]),(0,m.g)(e.backgroundColor,e,t);const z=(0,d.useBlockProps)({id:e.id,style:B,className:n()(a,M,{"with-outside-button":"outside"===e.closeButtonType})});return(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(Cl,{attributes:e,setAttributes:t}),(0,k.jsx)("div",{...z,children:w?(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Button,{variant:"primary",isPrimary:!0,icon:vl.A,onClick:()=>f(!0),children:(0,l.__)("Edit Popup","otter-blocks")}),x&&(0,k.jsxs)("div",{className:"otter-popup__modal_wrap",children:[(0,k.jsx)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay",onClick:()=>f(!1)}),(0,k.jsxs)("div",{className:"otter-popup__modal_content",children:[e.showClose&&(0,k.jsx)("div",{className:"otter-popup__modal_header",children:(0,k.jsx)(p.Button,{icon:_l.A,onClick:()=>f(!1)})}),(0,k.jsx)("div",{className:"otter-popup__modal_body",children:(0,k.jsx)(d.InnerBlocks,{})})]})]})]}):(0,k.jsx)(d.__experimentalBlockVariationPicker,{icon:(0,H.get)(C,["icon","src"]),label:(0,H.get)(C,["title"]),variations:S,onSelect:(e=j)=>{e&&(t(e.attributes),v(o,(0,s.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)),_(o)},allowSkip:!0})})]})},save:({attributes:e,className:t})=>{const o=d.useBlockProps.save({id:e.id,className:n()(t,"is-front",{"with-outside-button":"outside"===e.closeButtonType}),"data-open":e.trigger,"data-dismiss":e.recurringClose?e.recurringTime:"","data-time":void 0===e.trigger||"onLoad"===e.trigger?e.wait||0:"","data-anchor":"onClick"===e.trigger?e.anchor:"","data-offset":"onScroll"===e.trigger?e.scroll:"","data-outside":e.outsideClose?e.outsideClose:"","data-anchorclose":e.anchorClose?e.closeAnchor:"","data-lock-scrolling":e.lockScrolling?"1":void 0,"data-disable-on":e.disableOn?e.disableOn:void 0});return(0,k.jsx)("div",{...o,children:(0,k.jsxs)("div",{className:"otter-popup__modal_wrap",children:[(0,k.jsx)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay"}),(0,k.jsxs)("div",{className:"otter-popup__modal_content",children:[e.showClose&&(0,k.jsx)("div",{className:"otter-popup__modal_header",children:(0,k.jsx)("button",{title:(0,l.__)("Close Button","otter-blocks"),type:"button",className:"components-button has-icon",children:(0,k.jsx)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",children:(0,k.jsx)("path",{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})})}),(0,k.jsx)("div",{className:"otter-popup__modal_body",children:(0,k.jsx)(d.InnerBlocks.Content,{})})]})]})})},example:{attributes:{}},variations:[{name:"themeisle-blocks/popup-scratch",title:(0,l.__)("Start from scratch","otter-blocks"),description:(0,l.__)("Simple Popup with default settings.","otter-blocks"),icon:i.popupScratch,scope:["block"],attributes:{},innerBlocks:[{name:"core/paragraph",attributes:{content:"Add your content.",dropCap:!1,style:{typography:{fontSize:"16px"}}}}]},{name:"themeisle-blocks/popup-with-text-and-image",title:(0,l.__)("Text and Image","otter-blocks"),description:(0,l.__)("Popup with Text and Image.","otter-blocks"),icon:i.popupWithImageAndText,scope:["block"],attributes:{minWidth:900,trigger:"onLoad",wait:1,scroll:75,showClose:!1,outsideClose:!0,anchorClose:!1,recurringClose:!1,backgroundColor:"#ffffff",closeColor:"var(--nv-text-color)",overlayColor:"#000000",overlayOpacity:95,paddingMobile:{top:"8px",bottom:"8px",left:"8px",right:"8px"},width:"860px",height:"500px",heightTablet:"400px",heightMobile:"320px",boxShadow:{active:!1,colorOpacity:50,blur:5,spread:1,horizontal:0,vertical:0}},innerBlocks:[{name:"themeisle-blocks/advanced-columns",attributes:{columns:2,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows",padding:{top:"0px",right:"0px",bottom:"0px",left:"0px"},paddingTablet:{top:"40px",right:"20px",bottom:"40px",left:"20px"},paddingMobile:{top:"20px",right:"20px",bottom:"20px",left:"20px"},columnsWidth:"100%",horizontalAlign:"center",columnsHeight:"auto",verticalAlign:"center",backgroundType:"color",backgroundAttachment:"scroll",backgroundRepeat:"repeat",backgroundSize:"auto",backgroundGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayOpacity:50,backgroundOverlayType:"color",backgroundOverlayAttachment:"scroll",backgroundOverlayRepeat:"repeat",backgroundOverlaySize:"auto",backgroundOverlayGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayFilterBlur:0,backgroundOverlayFilterBrightness:10,backgroundOverlayFilterContrast:10,backgroundOverlayFilterGrayscale:0,backgroundOverlayFilterHue:0,backgroundOverlayFilterSaturate:10,backgroundOverlayBlend:"normal",boxShadow:!1,boxShadowColor:"#000000",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:0,boxShadowHorizontal:0,boxShadowVertical:0,dividerTopType:"none",dividerTopColor:"#000000",dividerTopInvert:!1,dividerBottomType:"none",dividerBottomColor:"#000000",dividerBottomInvert:!1,hide:!1,hideTablet:!1,hideMobile:!1,reverseColumnsTablet:!1,reverseColumnsMobile:!0,columnsHTMLTag:"div"},innerBlocks:[{name:"themeisle-blocks/advanced-column",attributes:{padding:{top:"20px",right:"20px",bottom:"20px",left:"20px"},paddingTablet:{top:"20px",right:"20px",bottom:"20px",left:"20px"},paddingMobile:{top:"20px",right:"20px",bottom:"20px",left:"20px"},backgroundType:"color",backgroundAttachment:"scroll",backgroundRepeat:"repeat",backgroundSize:"auto",backgroundGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayOpacity:50,backgroundOverlayType:"color",backgroundOverlayAttachment:"scroll",backgroundOverlayRepeat:"repeat",backgroundOverlaySize:"auto",backgroundOverlayGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayFilterBlur:0,backgroundOverlayFilterBrightness:10,backgroundOverlayFilterContrast:10,backgroundOverlayFilterGrayscale:0,backgroundOverlayFilterHue:0,backgroundOverlayFilterSaturate:10,backgroundOverlayBlend:"normal",boxShadow:!1,boxShadowColor:"#000000",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:0,boxShadowHorizontal:0,boxShadowVertical:0,columnsHTMLTag:"div",columnWidth:"50",verticalAlign:"center"},innerBlocks:[{name:"themeisle-blocks/advanced-heading",attributes:{content:"<strong>Explore COURSES</strong>",tag:"p",alignTablet:"left",alignMobile:"left",fontSize:"12px",fontSizeTablet:16,fontSizeMobile:16,textTransform:"uppercase",lineHeight:1.4,textShadow:!1,textShadowColor:"#000000",textShadowColorOpacity:50,textShadowBlur:5,textShadowHorizontal:0,textShadowVertical:0,paddingTop:0}},{name:"themeisle-blocks/advanced-heading",attributes:{content:"Illustration Skills",tag:"h2",textShadow:!1,textShadowColor:"#000000",textShadowColorOpacity:50,textShadowBlur:5,textShadowHorizontal:0,textShadowVertical:0,paddingTop:0,margin:{top:"0px",bottom:"8px"}}},{name:"core/paragraph",attributes:{content:"Through the years I have created downloadable resources that you can download and improve your skills.",dropCap:!1}},{name:"core/buttons",attributes:{layout:{type:"flex",justifyContent:"left"}},innerBlocks:[{name:"core/button",isValid:!0,attributes:{text:"Learn More",className:"is-style-primary"}}]}]},{name:"themeisle-blocks/advanced-column",attributes:{padding:{top:"20px",right:"20px",bottom:"20px",left:"20px"},paddingTablet:{top:"20px",right:"20px",bottom:"20px",left:"20px"},paddingMobile:{top:"20px",right:"20px",bottom:"20px",left:"20px"},backgroundType:"color",backgroundAttachment:"scroll",backgroundRepeat:"repeat",backgroundSize:"auto",backgroundGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayOpacity:50,backgroundOverlayType:"color",backgroundOverlayAttachment:"scroll",backgroundOverlayRepeat:"repeat",backgroundOverlaySize:"auto",backgroundOverlayGradient:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)",backgroundOverlayFilterBlur:0,backgroundOverlayFilterBrightness:10,backgroundOverlayFilterContrast:10,backgroundOverlayFilterGrayscale:0,backgroundOverlayFilterHue:0,backgroundOverlayFilterSaturate:10,backgroundOverlayBlend:"normal",boxShadow:!1,boxShadowColor:"#000000",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:0,boxShadowHorizontal:0,boxShadowVertical:0,columnsHTMLTag:"div",columnWidth:"50"},innerBlocks:[{name:"core/image",attributes:{url:"https://demosites.io/otter/wp-content/uploads/sites/664/2022/11/otter-demo-8.png",alt:"",caption:"",sizeSlug:"full",linkDestination:"none",boxShadow:!1,boxShadowColor:"#000000",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowHorizontal:0,boxShadowVertical:0}}]}]}]},{name:"themeisle-blocks/popup-with-form",title:(0,l.__)("Popup with Form","otter-blocks"),description:(0,l.__)("Popup with Form that appears on page load.","otter-blocks"),icon:i.popupWithForm,scope:["block"],attributes:{trigger:"onLoad",wait:1,showClose:!0,outsideClose:!0,anchorClose:!1,recurringClose:!1,backgroundColor:"#ffffff",closeColor:"var(--nv-text-color)",lockScrolling:!1,padding:{top:"32px",bottom:"32px",left:"32px",right:"32px"},borderWidth:{top:"8px"},borderRadius:{top:"5px",bottom:"5px",left:"5px",right:"5px"},borderColor:"#ed6f57",width:"540px",closeButtonType:"outside",boxShadow:{active:!1,colorOpacity:50,blur:5,spread:1,horizontal:0,vertical:0},disableOn:"mobile"},innerBlocks:[{name:"themeisle-blocks/advanced-heading",attributes:{content:"Find the perfect course",tag:"h2",textShadow:!1,textShadowColor:"#000000",textShadowColorOpacity:50,textShadowBlur:5,textShadowHorizontal:0,textShadowVertical:0,paddingTop:0,margin:{top:"0px",bottom:"16px"}}},{name:"core/paragraph",attributes:{content:"All of our courses are designed to help you learn the fundamentals of writing and other related topics.",dropCap:!1,style:{typography:{fontSize:"16px"}},textColor:"neve-text-color"}},{name:"themeisle-blocks/form",attributes:{provider:"",action:"subscribe",submitLabel:"Send me the survey",submitMessageColor:"var(--nv-c-1)",submitMessageErrorColor:"var(--nv-c-2)",submitStyle:"full"},innerBlocks:[{name:"themeisle-blocks/form-input",attributes:{type:"text",label:"Name",isRequired:!0,labelColor:"var(--nv-text-color)"}},{name:"themeisle-blocks/form-input",attributes:{type:"email",label:"Email",isRequired:!0,labelColor:"var(--nv-text-color)"}},{name:"core/paragraph",attributes:{align:"left",content:"You agree to privacy and terms.",dropCap:!1,textColor:"neve-text-color",fontSize:"small"}}]}]}]});var Tl=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/posts-grid","title":"Posts","category":"themeisle-blocks","description":"Display a list of your most recent posts in a beautiful layout. Powered by Otter.","keywords":["posts","grid","news"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"style":{"type":"string","default":"grid"},"postTypes":{"type":"array","default":[]},"columns":{"type":"number","default":3},"template":{"type":"array","default":["category","title","meta","description"]},"categories":{"type":"array","items":{"type":"object"}},"postsToShow":{"type":"number","default":6},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"offset":{"type":"number","default":0},"imageSize":{"type":"string","default":"full"},"displayFeaturedImage":{"type":"boolean","default":true},"displayCategory":{"type":"boolean","default":true},"displayTitle":{"type":"boolean","default":true},"titleTag":{"type":"string","default":"h4"},"displayMeta":{"type":"boolean","default":true},"displayDescription":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":100},"displayDate":{"type":"boolean","default":true},"displayUpdatedDate":{"type":"boolean","default":false},"displayAuthor":{"type":"boolean","default":true},"displayComments":{"type":"boolean","default":true},"displayPostCategory":{"type":"boolean","default":false},"displayReadMoreLink":{"type":"boolean","default":false},"imageRatio":{"type":"string"},"customTitleFontSize":{"type":["string","number"]},"customTitleFontSizeTablet":{"type":["string","number"]},"customTitleFontSizeMobile":{"type":["string","number"]},"customDescriptionFontSize":{"type":["string","number"]},"customDescriptionFontSizeTablet":{"type":["string","number"]},"customDescriptionFontSizeMobile":{"type":["string","number"]},"customMetaFontSize":{"type":"string"},"customMetaFontSizeTablet":{"type":"string"},"customMetaFontSizeMobile":{"type":"string"},"textColor":{"type":"string"},"backgroundColor":{"type":"string"},"backgroundOverlay":{"type":"string"},"borderColor":{"type":"string"},"borderRadius":{"type":["number","object"]},"borderWidth":{"type":"string"},"cardBorderRadius":{"type":"object"},"boxShadow":{"type":"object","default":{"active":false,"colorOpacity":50,"blur":5,"spread":1,"horizontal":0,"vertical":0}},"imageBoxShadow":{"type":"object","default":{"active":false,"colorOpacity":50,"blur":5,"spread":1,"horizontal":0,"vertical":0}},"textAlign":{"type":"string"},"verticalAlign":{"type":"string"},"enableFeaturedPost":{"type":"boolean"},"imageWidth":{"type":["string","number"]},"imageWidthTablet":{"type":"string"},"imageWidthMobile":{"type":"string"},"columnGap":{"type":"string"},"columnGapTablet":{"type":"string"},"columnGapMobile":{"type":"string"},"rowGap":{"type":"string"},"rowGapTablet":{"type":"string"},"rowGapMobile":{"type":"string"},"padding":{"type":"string"},"paddingTablet":{"type":"string"},"paddingMobile":{"type":"string"},"contentGap":{"type":"string"},"featuredPostOrder":{"type":"string"},"hasPagination":{"type":"boolean","default":false},"pagColor":{"type":"string"},"pagBgColor":{"type":"string"},"pagColorHover":{"type":"string"},"pagBgColorHover":{"type":"string"},"pagColorActive":{"type":"string"},"pagBgColorActive":{"type":"string"},"pagBorderColor":{"type":"string"},"pagBorderColorHover":{"type":"string"},"pagBorderColorActive":{"type":"string"},"pagGap":{"type":"string"},"pagBorderRadius":{"type":"object","properties":{"top":{"type":"string"},"left":{"type":"string"},"right":{"type":"string"},"bottom":{"type":"string"}}},"pagBorderWidth":{"type":"object","properties":{"top":{"type":"string"},"left":{"type":"string"},"right":{"type":"string"},"bottom":{"type":"string"}}},"pagPadding":{"type":"object","properties":{"top":{"type":"string"},"left":{"type":"string"},"right":{"type":"string"},"bottom":{"type":"string"}}},"pagContMargin":{"type":"object","properties":{"top":{"type":"string"},"left":{"type":"string"},"right":{"type":"string"},"bottom":{"type":"string"}}},"pagSize":{"type":"string"}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-posts-grid-editor","style":"otter-posts-grid-style"}');const{attributes:Bl}=Tl;var Ml=[{attributes:{...Bl,categories:{type:"string"}},supports:{align:["wide","full"],html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}],Pl=({attributes:e,setAttributes:t})=>{const o=d.BlockVerticalAlignmentToolbar;return(0,k.jsx)(d.BlockControls,{children:(0,k.jsx)(o,{label:(0,l.__)("Change Vertical Alignment","otter-blocks"),value:e.verticalAlign,onChange:e=>t({verticalAlign:e})})})};const zl=(0,Tt.D)((()=>(0,k.jsx)("div",{className:"o-sortable-handle",tabIndex:"0",children:(0,k.jsx)("span",{})}))),Al={image:"displayFeaturedImage",category:"displayCategory",title:"displayTitle",meta:"displayMeta",description:"displayDescription"},Fl=({attributes:e,setAttributes:t,template:o,disabled:s})=>{const[a,i]=(0,b.useState)(!1),r=o?.startsWith("custom_"),c=e?.customMetas?.filter((({id:e})=>e===o))?.pop(),d={image:e.displayFeaturedImage,category:e.displayCategory,title:e.displayTitle,meta:e.displayMeta,description:e.displayDescription},u=o=>{const l={...c,...o};t({customMetas:e.customMetas.map((e=>e.id===c.id?l:e))})},h=r?(0,Ae.applyFilters)("otter.postsBlock.panelLabel","",c):(0,H.startCase)((0,H.toLower)(o)),g=d[o]||c?.display,m=g?"visibility":"hidden";let y=(0,l.sprintf)(/* translators: %s Label */ /* translators: %s Label */
 (0,l.__)("Display %s","otter-blocks"),h);return g&&(
 /* translators: %s Label */
 y=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),h)),(0,k.jsxs)("div",{className:n()("o-sortable-item-area",`o-sortable-item-area-${o}`),children:[(0,k.jsxs)("div",{className:n()("o-sortable-item",{disabled:s,hidden:!g,editable:g}),children:[!s&&(0,k.jsx)(zl,{}),(0,k.jsx)("div",{className:"o-sortable-label",children:h}),g&&!["category","title"].includes(o)&&(0,k.jsx)(p.Button,{icon:a?"arrow-up-alt2":"arrow-down-alt2",label:a?(0,l.__)("Close Settings","otter-blocks"):(0,l.__)("Open Settings","otter-blocks"),showTooltip:!0,className:"o-sortable-button",onClick:()=>i(!a)}),(0,k.jsx)(p.Button,{icon:m,label:y,showTooltip:!0,className:"o-sortable-button",onClick:()=>{r?u({display:!c.display}):(o=>{const l=Al[o]||o;t({[l]:!e[l]})})(o),i(!1)}})]}),g&&!["category","title"].includes(o)&&(0,k.jsxs)("div",{className:n()("o-sortable-control-area",{opened:a&&g}),children:["image"===o&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Image Size","otter-blocks"),value:e.imageSize,options:window.themeisleGutenberg.imageSizes.map((e=>({label:(0,H.startCase)((0,H.toLower)(e)),value:e}))),onChange:e=>t({imageSize:e})}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Image Ratio","otter-blocks"),value:e.imageRatio,options:[{label:(0,l.__)("Inherit","otter-blocks"),value:"inherit"},{label:"1:1",value:"1/1"},{label:"3:2",value:"3/2"},{label:"16:9",value:"16/9"},{label:"2:1",value:"2/1"}],onChange:e=>{if("inherit"===e)return t({imageRatio:void 0});t({imageRatio:e})}})]}),"meta"===o&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Display Post Date","otter-blocks"),checked:e.displayDate,onChange:e=>t({displayDate:e})}),e.displayDate&&(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Display Last Updated Date","otter-blocks"),checked:e.displayUpdatedDate,onChange:e=>t({displayUpdatedDate:e})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Display Author","otter-blocks"),checked:e.displayAuthor,onChange:e=>t({displayAuthor:e})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Display Comments","otter-blocks"),checked:e.displayComments,onChange:e=>t({displayComments:e})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Display Category","otter-blocks"),checked:e.displayPostCategory,onChange:e=>t({displayPostCategory:e})})]}),"description"===o&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.TextControl,{label:(0,l.__)("Excerpt Limit","otter-blocks"),type:"number",value:e.excerptLength,onChange:e=>t({excerptLength:Number(e)})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Display Read More Link","otter-blocks"),checked:e.displayReadMoreLink,onChange:e=>t({displayReadMoreLink:e})})]}),(0,Ae.applyFilters)("otter.postsBlock.controls","",e,t,r,c,u)]})]})},Ll=(0,Tt.Zj)((({attributes:e,setAttributes:t,template:o,disabled:l})=>(0,k.jsx)(Fl,{attributes:e,setAttributes:t,template:o,disabled:l}))),Rl=(0,Tt.q6)((({attributes:e,setAttributes:t})=>(0,k.jsx)("div",{children:e?.template?.filter((e=>!(e?.startsWith("custom_")&&(void 0===window?.acf||!window.themeisleGutenberg?.hasPro)))).map(((o,l)=>(0,k.jsx)(Ll,{index:l,attributes:e,setAttributes:t,template:o},`item-${o}`)))})));var Nl=o(1749);const Il=()=>(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)("p",{children:(0,l.__)("Add custom fields for the posts, using the ACF plugin & Otter Pro.","otter-blocks")}),(0,k.jsx)(p.Button,{variant:"secondary",isSecondary:!0,className:"o-conditions__add",disabled:!0,onClick:()=>{},children:(0,l.__)("Add Custom Field","otter-blocks")}),(0,k.jsx)("br",{}),(0,k.jsx)(Nl.A,{notice:(0,k.jsx)(p.ExternalLink,{href:(0,g.lY)(window.themeisleGutenberg.upgradeLink,"customfield"),children:(0,l.__)("Get more options with Otter Pro.","otter-blocks")}),variant:"upsell"})]});var Ol=({attributes:e,setAttributes:t})=>(0,k.jsx)(b.Fragment,{children:(0,k.jsxs)("div",{className:n()("o-sortable",e.style),children:[(0,k.jsx)(Fl,{attributes:e,setAttributes:t,template:"image",disabled:!0}),(0,k.jsx)(Rl,{attributes:e,setAttributes:t,onSortEnd:({oldIndex:o,newIndex:l})=>{const s=go()(e.template,o,l);t({template:s})},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,Ae.applyFilters)("otter.postsBlock.sortableContainer",(0,k.jsx)(Il,{}),e,t)]})});const Hl=[{label:(0,l.__)("Default","otter-blocks"),value:"default",isDefault:!0},{label:(0,l.__)("Boxed","otter-blocks"),value:"boxed"},{label:(0,l.__)("Tiled","otter-blocks"),value:"tiled"}],Vl=[{name:(0,l.__)("XS","otter-blocks"),size:"14px",slug:"xs"},{name:(0,l.__)("Small","otter-blocks"),size:"16px",slug:"small"},{name:(0,l.__)("Medium","otter-blocks"),size:"18px",slug:"medium"},{name:(0,l.__)("Large","otter-blocks"),size:"24px",slug:"large"},{name:(0,l.__)("XL","otter-blocks"),size:"28px",slug:"xl"}];var Dl=({attributes:e,setAttributes:t,categoriesList:o,isLoading:s})=>{var a,i,r,n,c,x,f,v;const[_,w]=(0,y.useTabSwitch)(e.id,"settings"),C=(0,g.qL)(Hl,e?.className),{slugs:j}=(0,u.useSelect)((e=>({slugs:e("otter-store").getPostsSlugs()})),[e.postTypes]),{responsiveSetAttributes:S,responsiveGetAttributes:T}=(0,m.d)(t),B=o.reduce(((e,t)=>({...e,[t.name]:t})),{}),M=e.categories?e.categories.map((e=>{var t,a,i,r;const n=o.find((t=>t.id===Number(e.id))),c=!s&&o?.length&&!n;return{id:e.id,name:(null!==(t=null!==(a=e?.name)&&void 0!==a?a:n?.name)&&void 0!==t?t:n?.slug)+(c?" ("+(0,l.__)("Invalid","otter-blocks")+")":""),slug:null!==(i=null!==(r=e?.slug)&&void 0!==r?r:n?.slug)&&void 0!==i?i:""}})):[],P="object"==typeof e.categories?1<=e.categories.length?e.categories[0].id:void 0:e.categories,z=(o,l)=>{const s={...e[o]};Object.entries(l).forEach((([e,t]=l)=>{s[e]=t})),t({[o]:s})};return(0,k.jsxs)(d.InspectorControls,{children:[(0,k.jsx)(h.R7,{value:_,options:[{label:(0,l.__)("Settings","otter-blocks"),value:"settings"},{label:(0,l.__)("Style","otter-blocks"),value:"style"}],onChange:w}),"settings"===_&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Layout","otter-blocks"),children:[(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Post Type","otter-blocks"),help:(0,l.__)('WordPress contains different types of content and they are divided into collections called "Post types". By default there are a few different ones such as blog posts and pages, but plugins could add more.',"otter-blocks"),value:e.postTypes[0]||null,onChange:e=>{e&&t({postTypes:[e]})},options:j.map((e=>({label:(0,g.FQ)(e),value:e})))}),(0,k.jsx)(h.Aw,{label:(0,l.__)("Layout","otter-blocks"),options:[{label:(0,l.__)("Grid","otter-blocks"),value:"grid"},{label:(0,l.__)("List","otter-blocks"),value:"list"}],value:e.style,onChange:e=>t({style:e})}),"grid"===e.style&&(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:e.columns,onChange:e=>t({columns:e}),min:1,max:5}),(0,k.jsx)(p.BaseControl,{label:(0,l.__)("Content Alignment","otter-blocks"),children:(0,k.jsx)(h.l,{value:e.textAlign,options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"left"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"right"}],onChange:e=>t({textAlign:e}),hasIcon:!0})})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.QueryControls,{order:e.order,orderBy:e.orderBy,orderByOptions:[{label:(0,l.__)("Newest to oldest","otter-blocks"),value:"date/desc"},{label:(0,l.__)("Oldest to newest","otter-blocks"),value:"date/asc"},{label:(0,l.__)("A → Z","otter-blocks"),value:"title/asc"},{label:(0,l.__)("Z → A","otter-blocks"),value:"title/desc"},{label:(0,l.__)("Random","otter-blocks"),value:"rand/desc"}],onOrderChange:e=>t({order:e}),onOrderByChange:e=>t({orderBy:e}),numberOfItems:e.postsToShow,onNumberOfItemsChange:e=>t({postsToShow:e}),categorySuggestions:B,selectedCategoryId:P,selectedCategories:M,onCategoryChange:e=>{let l;if("object"==typeof e)0<e.length&&(l=e.map((e=>{const t=o.find((t=>t.name===e||t.name===e?.value));var l,s;if(t)return{id:t.id,name:null!==(l=e?.value)&&void 0!==l?l:e,slug:null!==(s=t?.slug)&&void 0!==s?s:""}})).filter((e=>void 0!==e)));else if(""!==e){var s;l=[{id:e,name:o.find((t=>t.id===Number(e))).name,slug:null!==(s=o.find((t=>t.id===Number(e)))?.slug)&&void 0!==s?s:""}]}t({categories:l})}}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Offset","otter-blocks"),help:(0,l.__)("Number of post to displace or pass over.","otter-blocks"),type:"number",value:e.offset,min:0,onChange:e=>t({offset:Number(e)})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Enable Featured Post","otter-blocks"),checked:e.enableFeaturedPost,onChange:()=>t({enableFeaturedPost:!Boolean(e.enableFeaturedPost),hasPagination:void 0})}),e.enableFeaturedPost&&(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Featured Post","otter-blocks"),value:e.featuredPostOrder,options:[{label:(0,l.__)("Latest Post","otter-blocks"),value:"none"},{label:(0,l.__)("Sticky Post","otter-blocks"),value:"sticky-first"}],onChange:e=>t({featuredPostOrder:"none"!==e?e:void 0})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Enable Pagination","otter-blocks"),checked:e.hasPagination,onChange:()=>t({hasPagination:!Boolean(e.hasPagination),enableFeaturedPost:void 0,featuredPostOrder:void 0})})]}),(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Elements","otter-blocks"),initialOpen:!1,children:(0,k.jsx)(Ol,{attributes:e,setAttributes:t})}),(0,k.jsx)(h.Cu,{})]}),"style"===_&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Style","otter-blocks"),children:(0,k.jsx)(h.Aw,{options:Hl,value:(0,g.qL)(Hl,e?.className),onChange:o=>{const l=(0,g.c5)(e?.className,Hl,o);t({className:l})}})}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Typography","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Title Tag","otter-blocks"),value:e.titleTag||"h4",options:[{label:(0,l.__)("H1","otter-blocks"),value:"h1"},{label:(0,l.__)("H2","otter-blocks"),value:"h2"},{label:(0,l.__)("H3","otter-blocks"),value:"h3"},{label:(0,l.__)("H4","otter-blocks"),value:"h4"},{label:(0,l.__)("H5","otter-blocks"),value:"h5"},{label:(0,l.__)("H6","otter-blocks"),value:"h6"}],onChange:e=>t({titleTag:e})}),(0,k.jsx)(h.k3,{label:(0,l.__)("Title Size","otter-blocks"),children:(0,k.jsx)(p.FontSizePicker,{fontSizes:Vl,withReset:!0,value:T([e.customTitleFontSize,e.customTitleFontSizeTablet,e.customTitleFontSizeMobile]),onChange:e=>S(e,["customTitleFontSize","customTitleFontSizeTablet","customTitleFontSizeMobile"])})}),(0,k.jsx)(h.k3,{label:(0,l.__)("Description Size","otter-blocks"),children:(0,k.jsx)(p.FontSizePicker,{fontSizes:Vl,withReset:!0,value:T([e.customDescriptionFontSize,e.customDescriptionFontSizeTablet,e.customDescriptionFontSizeMobile]),onChange:e=>S(e,["customDescriptionFontSize","customDescriptionFontSizeTablet","customDescriptionFontSizeMobile"])})}),(0,k.jsx)(h.k3,{label:(0,l.__)("Meta Size","otter-blocks"),children:(0,k.jsx)(p.FontSizePicker,{fontSizes:Vl,withReset:!0,value:T([e.customMetaFontSize,e.customMetaFontSizeTablet,e.customMetaFontSizeMobile]),onChange:e=>S(e,["customMetaFontSize","customMetaFontSizeTablet","customMetaFontSizeMobile"])})}),e.hasPagination&&(0,k.jsx)(p.BaseControl,{id:"o-posts-grid-pagination-font-size",label:(0,l.__)("Pagination","otter-blocks"),children:(0,k.jsx)(p.FontSizePicker,{fontSizes:Vl,withReset:!0,value:null!==(a=e.pagSize)&&void 0!==a?a:"16px",onChange:e=>t({pagSize:e})})})]}),(0,k.jsx)(d.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:e.textColor,onChange:e=>t({textColor:e}),label:(0,l.__)("Text","otter-blocks"),isShownByDefault:!1},{value:e.backgroundColor,onChange:e=>t({backgroundColor:e}),label:(0,l.__)("Background","otter-blocks"),isShownByDefault:!1},{value:e.borderColor,onChange:e=>t({borderColor:e}),label:(0,l.__)("Border","otter-blocks"),isShownByDefault:!1},..."tiled"===C?[{value:e.backgroundOverlay,onChange:e=>t({backgroundOverlay:e}),label:(0,l.__)("Background Overlay","otter-blocks"),enableAlpha:!0,isShownByDefault:!1}]:[],...e.hasPagination?[{value:e.pagColor,onChange:e=>t({pagColor:e}),label:(0,l.__)("Pagination Link","otter-blocks"),isShownByDefault:!1},{value:e.pagBgColor,onChange:e=>t({pagBgColor:e}),label:(0,l.__)("Pagination Background","otter-blocks"),isShownByDefault:!1},{value:e.pagBorderColor,onChange:e=>t({pagBorderColor:e}),label:(0,l.__)("Pagination Border","otter-blocks"),isShownByDefault:!1},{value:e.pagColorActive,onChange:e=>t({pagColorActive:e}),label:(0,l.__)("Pagination Active Link","otter-blocks"),isShownByDefault:!1},{value:e.pagBgColorActive,onChange:e=>t({pagBgColorActive:e}),label:(0,l.__)("Pagination Active Background","otter-blocks"),isShownByDefault:!1},{value:e.pagColorHover,onChange:e=>t({pagColorHover:e}),label:(0,l.__)("Pagination Hover Link","otter-blocks"),isShownByDefault:!1},{value:e.pagBgColorHover,onChange:e=>t({pagBgColorHover:e}),label:(0,l.__)("Pagination Hover Background","otter-blocks"),isShownByDefault:!1},{value:e.pagBorderColorHover,onChange:e=>t({pagBorderColorHover:e}),label:(0,l.__)("Pagination Hover Border","otter-blocks"),isShownByDefault:!1},{value:e.pagBorderColorActive,onChange:e=>t({pagBorderColorActive:e}),label:(0,l.__)("Pagination Active Border","otter-blocks"),isShownByDefault:!1}]:[]]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Image","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:(0,g.sO)(e.borderRadius),onChange:e=>t({borderRadius:e}),id:"o-border-raduis-box"}),"list"===e.style&&(0,k.jsx)(b.Fragment,{children:(0,k.jsxs)(h.k3,{label:(0,l.__)("Image Width","otter-blocks"),children:[(0,k.jsx)(p.__experimentalUnitControl,{value:T([e.imageWidth,e.imageWidthTablet,e.imageWidthMobile]),onChange:e=>S(e,["imageWidth","imageWidthTablet","imageWidthMobile"])}),(0,k.jsx)(h.k2,{values:["imageWidth","imageWidthTablet","imageWidthMobile"],setAttributes:t})]})}),(0,k.jsx)(h.fS,{boxShadow:e.imageBoxShadow,onChange:e=>z("imageBoxShadow",e)})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1,children:["list"!==e.style&&(0,k.jsxs)(h.k3,{label:(0,l.__)("Column Gap","otter-blocks"),children:[(0,k.jsx)(p.__experimentalUnitControl,{value:null!==(i=T([e.columnGap,e.columnGapTablet,e.columnGapMobile]))&&void 0!==i?i:"30px",onChange:e=>S(e,["columnGap","columnGapTablet","columnGapMobile"])}),(0,k.jsx)(h.k2,{values:["columnGap","columnGapTablet","columnGapMobile"],setAttributes:t})]}),(0,k.jsxs)(h.k3,{label:(0,l.__)("Row Gap","otter-blocks"),children:[(0,k.jsx)(p.__experimentalUnitControl,{value:null!==(r=T([e.rowGap,e.rowGapTablet,e.rowGapMobile]))&&void 0!==r?r:"30px",onChange:e=>S(e,["rowGap","rowGapTablet","rowGapMobile"])}),(0,k.jsx)(h.k2,{values:["rowGap","rowGapTablet","rowGapMobile"],setAttributes:t})]}),(0,k.jsxs)(h.k3,{label:(0,l.__)("Content Padding","otter-blocks"),children:[(0,k.jsx)(p.__experimentalUnitControl,{value:T([e.padding,e.paddingTablet,e.paddingMobile]),onChange:e=>S(e,["padding","paddingTablet","paddingMobile"])}),(0,k.jsx)(h.k2,{values:["padding","paddingTablet","paddingMobile"],setAttributes:t})]}),(0,k.jsx)(p.BaseControl,{label:(0,l.__)("Space Between","otter-blocks"),children:(0,k.jsx)(p.FontSizePicker,{fontSizes:Vl,withReset:!0,value:e.contentGap,onChange:e=>t({contentGap:e})})}),e.hasPagination&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Pagination Gap","otter-blocks"),value:e.pagGap?parseInt(e.pagGap):5,onChange:e=>t({pagGap:e+"px"}),min:0,max:50}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Pagination Padding","otter-blocks"),values:null!==(n=e.pagPadding)&&void 0!==n?n:{top:"5px",right:"15px",bottom:"5px",left:"15px"},onChange:e=>t({pagPadding:e}),allowReset:!0}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Pagination Container Margin","otter-blocks"),values:null!==(c=e.pagContMargin)&&void 0!==c?c:{top:"10px",bottom:"30px"},onChange:e=>t({pagContMargin:e}),sides:["top","bottom"],allowReset:!0})]})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Border","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.__experimentalUnitControl,{label:(0,l.__)("Width","otter-blocks"),value:e.borderWidth,onChange:e=>t({borderWidth:e})}),(0,k.jsx)(h.k2,{values:["borderWidth"],setAttributes:t}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Radius","otter-blocks"),values:null!==(x=e.cardBorderRadius)&&void 0!==x?x:(0,$.eA)("0px"),onChange:e=>t({cardBorderRadius:e}),id:"o-border-raduis-box",allowReset:!1}),e.hasPagination&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Pagination Border Radius","otter-blocks"),values:null!==(f=e.pagBorderRadius)&&void 0!==f?f:(0,$.eA)("0px"),onChange:e=>t({pagBorderRadius:e}),id:"o-border-raduis-box",allowReset:!0}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Pagination Border Width","otter-blocks"),values:null!==(v=e.pagBorderWidth)&&void 0!==v?v:(0,$.eA)("0px"),onChange:e=>t({pagBorderWidth:e}),allowReset:!0})]}),(0,k.jsx)(h.fS,{boxShadow:e.boxShadow,onChange:e=>z("boxShadow",e)})]})]})]})};const Gl=(e,t,o)=>{const{featuredImage:l,altText:s}=(0,u.useSelect)((l=>{if(!e)return{featuredImage:null,altText:null};const s=l("core").getMedia(e,{context:"view"});return{featuredImage:s?"string"!=typeof s&&!(0,H.isEmpty)(s.media_details)&&0<Object.keys(s.media_details.sizes).length&&s.media_details.sizes[t]?s.media_details.sizes[t].source_url:s.source_url:null,altText:s&&s.alt_text?s.alt_text:o}}),[t,e]);return{featuredImage:l,altText:s}},El=({id:e,link:t,alt:o,size:l,imgStyle:s})=>{const{featuredImage:a,altText:i}=Gl(e,l,o);return null===a?(0,k.jsx)(b.Fragment,{}):(0,k.jsx)("div",{className:"o-posts-grid-post-image",children:(0,k.jsx)("a",{href:t,children:a?(0,k.jsx)("img",{src:a,size:l,alt:i,"data-id":e,style:s}):(0,k.jsx)(p.Placeholder,{children:(0,k.jsx)(p.Spinner,{})})})})},$l=({post:e,attributes:t,categoriesList:o,authors:l,isTiled:s})=>{const{featuredImage:a}=Gl(e?.featured_media,e.title?.rendered,t?.imageSize),i=o&&0<e?.categories?.length?o.find((t=>t.id===e.categories[0])):void 0,r=o&&0<e?.categories?.length?o.filter((t=>e.categories.includes(t.id))):[],c=l&&e.author?l.find((t=>t.id===e.author)):void 0,d=0!==e.featured_media&&t.displayFeaturedImage,b={backgroundPosition:"center center",backgroundSize:"cover"};return d&&s&&(b.backgroundImage=`url(${a})`),(0,k.jsx)("div",{className:"o-posts-grid-post-blog o-posts-grid-post-plain",style:b,children:(0,k.jsxs)("div",{className:n()("o-posts-grid-post"),children:[d&&!s&&(0,k.jsx)(El,{id:e.featured_media,link:e.link,alt:e.title?.rendered,size:t.imageSize,imgStyle:{borderRadius:void 0!==t.borderRadius?t.borderRadius+"px":void 0}}),(0,k.jsx)("div",{className:n()("o-posts-grid-post-body",{"is-full":!t.displayFeaturedImage}),children:t.template.map((l=>{switch(l){case"category":return(0,k.jsx)(Wl,{attributes:t,element:l,category:i,categoriesList:o},l);case"title":return(0,k.jsx)(Ul,{attributes:t,element:l,post:e},l);case"meta":return(0,k.jsx)(ql,{attributes:t,element:l,post:e,author:c,categories:r},l);case"description":return(0,k.jsx)(Zl,{attributes:t,element:l,post:e},l);default:return(0,Ae.applyFilters)("otter.postsBlock.templateLoop","",l,t)}}))})]})},e.link)},Wl=({attributes:e,element:t,category:o,categoriesList:l})=>void 0!==o&&e.displayCategory&&l?(0,k.jsx)("span",{className:"o-posts-grid-post-category",children:(0,g.kn)(o.name)},t):"",Ul=({attributes:e,element:t,post:o})=>{if(!e.displayTitle)return"";const l=["h1","h2","h3","h4","h5","h6"].includes(e.titleTag)?e.titleTag:"h4";return(0,k.jsx)(l,{className:"o-posts-grid-post-title",children:(0,k.jsx)("a",{href:o.link,children:(0,g.kn)(o.title?.rendered)})},t)},ql=({attributes:e,element:t,post:o,author:s,categories:a})=>{if(e.displayMeta&&(e.displayDate||e.displayAuthor||e.displayComments||e.displayPostCategory)){const i=[];let r="";return e.displayDate&&(e.displayUpdatedDate?
@@ -25,7 +25,7 @@
 /* translators: %1$s is the date, %2$s is the author of the post */
 r=(0,l.sprintf)((0,l.__)("%1$s by %2$s","otter-blocks"),r,s.name).trim()),i.push(r),e.displayComments&&i.push((0,l.sprintf)("%1$s %2$s","0",(0,l.__)("comments","otter-blocks"))),e.displayPostCategory&&Boolean(a.length)&&i.push(a.map((({name:e})=>e)).join(", ")),(0,k.jsx)("p",{className:"o-posts-grid-post-meta",children:i.join(" / ")},t)}return""},Zl=({attributes:e,element:t,post:o})=>0<e.excerptLength&&e.displayDescription?(0,k.jsxs)("div",{className:"o-posts-grid-post-description",children:[(0,k.jsx)("p",{children:o.excerpt?.rendered&&(0,g.kn)(o.excerpt.rendered).substring(0,e.excerptLength)+"…"}),e.displayReadMoreLink&&(0,k.jsx)("a",{href:o.link,className:"o-posts-read-more",children:(0,l.__)("Read more","otter-blocks")})]},t):"",Jl=()=>(0,k.jsxs)("div",{className:"o-posts-grid-pag",children:[(0,k.jsx)("a",{className:"page-numbers",children:(0,l.__)("Prev","otter-blocks")}),(0,k.jsx)("a",{className:"page-numbers","aria-current":"page",children:(0,l.__)("1","otter-blocks")}),(0,k.jsx)("span",{className:"page-numbers",children:(0,l.__)("2","otter-blocks")}),(0,k.jsx)("a",{className:"page-numbers",children:(0,l.__)("3","otter-blocks")}),(0,k.jsx)("span",{className:"page-numbers dots",children:"..."}),(0,k.jsx)("a",{className:"page-numbers",children:(0,l.__)("8","otter-blocks")}),(0,k.jsx)("a",{className:"page-numbers",children:(0,l.__)("Next","otter-blocks")})]});var Kl=({attributes:e,posts:t,categoriesList:o,authors:l})=>{const s="tiled"===(0,g.qL)(Hl,e?.className),a=t.filter((e=>e));return(0,k.jsx)("div",{className:"grid"===e.style?n()("is-grid",`o-posts-grid-columns-${e.columns}`):"is-list",children:a.slice(e.enableFeaturedPost?1:0).map((t=>(0,k.jsx)($l,{post:t,attributes:e,categoriesList:o,authors:l,isTiled:s},t.id)))})};const Yl={posts:{slugs:[],usedSlugs:[]}};(0,u.registerGenericStore)("otter-store",(()=>{let e=()=>{};const t=Yl,o={getPostsSlugs(){return t.posts.slugs},getPostsUsedSlugs(){return t.posts.usedSlugs}},l={setPostsSlugs(o){t.posts.slugs=o,e()},setPostsUsedSlugs(o){t.posts.usedSlugs.push(...o),e()},setOnlyOneSlug(o){t.posts.usedSlugs=[o],e()},removePostsUsedSlugs(o){t.posts.usedSlugs=t.posts.usedSlugs.filter((e=>!o.includes(e))),e()}};return{getSelectors(){return o},getActions(){return l},subscribe(t){e=t}}})());var Ql=({post:e,attributes:t,author:o,categoriesList:l})=>{const s="tiled"===(0,g.qL)(Hl,t?.className),{featuredImage:a}=Gl(e?.featured_media,e.title?.rendered,t?.imageSize);if(!e)return"";const i=l&&0<e?.categories?.length?l.find((t=>t.id===e.categories[0])):void 0,r={backgroundPosition:"center center",backgroundSize:"cover"};return 0!==e.featured_media&&t.displayFeaturedImage&&s&&(r.backgroundImage=`url(${a})`),(0,k.jsx)("div",{className:"o-featured-container",children:(0,k.jsxs)("div",{className:"o-featured-post",style:r,children:[t.displayFeaturedImage&&!s&&(0,k.jsx)(El,{id:e.featured_media,link:e.link,alt:e.title?.rendered,imgStyle:{borderRadius:void 0!==t.borderRadius?t.borderRadius+"px":void 0}}),(0,k.jsx)("div",{className:"o-posts-grid-post-body",children:t.template.map((s=>{const a=l&&0<e?.categories?.length?l.filter((t=>e.categories.includes(t.id))):[];switch(s){case"category":return(0,k.jsx)(Wl,{attributes:t,element:s,category:i,categoriesList:l});case"title":return(0,k.jsx)(Ul,{attributes:t,element:s,post:e});case"meta":return(0,k.jsx)(ql,{attributes:t,element:s,post:e,author:o,categories:a});case"description":return(0,k.jsx)(Zl,{attributes:t,element:s,post:e});default:return(0,Ae.applyFilters)("otter.postsBlock.templateLoop","",s,t)}}))})]})})};const{attributes:Xl}=Tl;var es;es=()=>{let e=10;const t=setInterval((()=>{window?.rankMathEditor?(clearInterval(t),window.wp.hooks.addFilter("rank_math_content","rank-math",(e=>{var t;const o=document.querySelectorAll(".o-posts-grid-post-body");return(null!=e?e:"")+(null!==(t=Array.from(o)?.map((e=>e.innerHTML))?.join(""))&&void 0!==t?t:"")})),window?.rankMathEditor?.refresh("content")):(e--,0===e&&clearInterval(t))}),1e3)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",es):es());const{name:ts}=Tl;(0,s.registerBlockType)(ts,{...Tl,title:(0,l.__)("Posts","otter-blocks"),description:(0,l.__)("Display a list of your most recent posts in a beautiful layout. Powered by Otter.","otter-blocks"),icon:i.postsIcon,keywords:["posts","grid","news"],deprecated:Ml,edit:({attributes:e,setAttributes:t,clientId:o})=>{(0,b.useEffect)((()=>{const t=(0,y.blockInit)(o,Xl);return()=>t(e.id)}),[e.id]);const[s,a]=(0,b.useState)([]),{posts:i,categoriesList:r,authors:n,isLoading:c}=(0,u.useSelect)((t=>{var o,l;const s=e.categories&&0<e.categories.length?e.categories.map((e=>e.id)):[],a=(0,H.pickBy)({categories:s,order:e.order||"desc",orderby:e.orderBy,per_page:e.postsToShow,offset:e.offset,context:"view"},(e=>!(0,H.isUndefined)(e)));let i=[],r=!1;const n=e.postTypes;if(0<n.length){const{posts:e,isLoading:o,error:l}=n.reduce(((e,o)=>{const{posts:l,isLoading:i}=(e=>{if("product"===e){var o,l;const{COLLECTIONS_STORE_KEY:i}=window?.wc?.wcBlocksData;if(!i)return{posts:[],isLoading:!1};if(a.category=s.join(","),t(i).getCollectionError("/wc/store","products",a))return{posts:[],isLoading:!1};const r=null!==(o=t(i).getCollection("/wc/store","products",a))&&void 0!==o?o:[];if(t(i).isResolving("/wc/store","products",a))return{posts:[],isLoading:!0};const n=r.map((({id:e})=>e));return{posts:null!==(l=t("core").getEntityRecords("postType",e,{include:n}))&&void 0!==l?l:[],isLoading:t("core").isResolving("getEntityRecords",["postType",e,{include:n}])}}return{posts:t("core").getEntityRecords("postType",e,a),isLoading:t("core").isResolving("getEntityRecords",["postType",e,a])}})(o);return{posts:[...e.posts,...null!=l?l:[]],isLoading:e.isLoading||i}}),{posts:[],isLoading:!1});i=e,r=o}else i=t("core").getEntityRecords("postType","post",a),r=t("core").isResolving("getEntityRecords",["postType","post",a]);var c,d;e.featuredPostOrder&&0<i?.length&&(i=[...null!==(c=i?.filter((({sticky:e})=>Boolean(e))))&&void 0!==c?c:[],...null!==(d=i?.filter((({sticky:e})=>!Boolean(e))))&&void 0!==d?d:[]]),i=null!==(o=i?.filter(Boolean))&&void 0!==o?o:[];const b=null!==(l=t("core")?.getTaxonomies()?.map((({slug:e})=>e))?.filter((e=>n.some((t=>e===`${t}_cat`)))))&&void 0!==l?l:[];0===b.length&&b.push("category");const u=b.map((e=>{var o;return null!==(o=t("core").getEntityRecords("taxonomy",e,{per_page:-1}))&&void 0!==o?o:[]})).flat();return window?.rankMathEditor&&(0,H.debounce)((()=>{window?.rankMathEditor.refresh("content")}),500),{posts:i,categoriesList:u,authors:t("core").getUsers({who:"authors",context:"view"}),isLoading:r}}),[e.categories,e.order,e.orderBy,e.postsToShow,e.offset,e.postTypes,e.featuredPostOrder]),{responsiveGetAttributes:h}=(0,m.d)();(0,b.useEffect)((()=>{let o=!1;void 0===e.id&&(o=!0),(async()=>{if(a(await(0,g.uL)()),o){const o=(0,g.c5)(e?.className,Hl,"boxed");t({className:o})}})()}),[]),(0,b.useEffect)((()=>{(0,u.dispatch)("otter-store").setPostsSlugs(s)}),[s]),(0,m.g)(e.backgroundColor,e,t);const x=t=>(0,y.getDefaultValueByField)({name:name,field:t,defaultAttributes:Xl,attributes:e}),f=x("imageBoxShadow"),v=x("boxShadow"),_={"--img-border-radius":(0,H.isObject)(e.borderRadius)?(0,g.a0)(e.borderRadius):(0,g.ws)(e.borderRadius),"--img-box-shadow":f.active&&`${f.horizontal}px ${f.vertical}px ${f.blur}px ${f.spread}px ${(0,g.qh)(f.color,f.colorOpacity)}`,"--image-ratio":e.imageRatio,"--border-width":(0,g.ws)(e.borderWidth),"--border-radius":(0,g.a0)(e.cardBorderRadius),"--border-radius-start-start":(0,g.ws)(e.cardBorderRadius?.top),"--border-radius-start-end":(0,g.ws)(e.cardBorderRadius?.right),"--border-radius-end-start":(0,g.ws)(e.cardBorderRadius?.bottom),"--border-radius-end-end":(0,g.ws)(e.cardBorderRadius?.left),"--box-shadow":v.active&&`${v.horizontal}px ${v.vertical}px ${v.blur}px ${v.spread}px ${(0,g.qh)(v.color,v.colorOpacity)}`,"--vert-align":(0,g.Pw)(e.verticalAlign),"--text-align":e.textAlign,"--text-color":e.textColor,"--background-color":e.backgroundColor,"--background-overlay":e.backgroundOverlay||"#0000005e","--border-color":e.borderColor,"--content-gap":e.contentGap,"--img-width":h([(0,g.ws)(e.imageWidth),e.imageWidthTablet,e.imageWidthMobile]),"--img-width-tablet":e.imageWidthTablet,"--img-width-mobile":e.imageWidthMobile,"--title-text-size":h([(0,g.ws)(e.customTitleFontSize),(0,g.ws)(e.customTitleFontSizeTablet),(0,g.ws)(e.customTitleFontSizeTablet)]),"--title-text-size-tablet":(0,g.ws)(e.customTitleFontSizeTablet),"--title-text-size-mobile":(0,g.ws)(e.customTitleFontSizeMobile),"--description-text-size":h([(0,g.ws)(e.customDescriptionFontSize),(0,g.ws)(e.customDescriptionFontSizeTablet),(0,g.ws)(e.customDescriptionFontSizeMobile)]),"--description-text-size-tablet":(0,g.ws)(e.customDescriptionFontSizeTablet),"--description-text-size-mobile":(0,g.ws)(e.customDescriptionFontSizeMobile),"--meta-text-size":h([e.customMetaFontSize,e.customMetaFontSizeTablet,e.customMetaFontSizeMobile]),"--meta-text-size-tablet":e.customMetaFontSizeTablet,"--meta-text-size-mobile":e.customMetaFontSizeMobile,"--column-gap":h([e.columnGap,e.columnGapTablet,e.columnGapMobile]),"--column-gap-tablet":e.columnGapTablet,"--column-gap-mobile":e.columnGapMobile,"--row-gap":h([e.rowGap,e.rowGapTablet,e.rowGapMobile]),"--row-gap-tablet":e.rowGapTablet,"--row-gap-mobile":e.rowGapMobile,"--content-padding":h([e.padding,e.paddingTablet,e.paddingMobile]),"--content-padding-tablet":e.paddingTablet,"--content-padding-mobile":e.paddingMobile,"--pag-color":e.pagColor,"--pag-bg-color":e.pagBgColor,"--pag-color-hover":e.pagColorHover,"--pag-bg-color-hover":e.pagBgColorHover,"--pag-color-active":e.pagColorActive,"--pag-bg-color-active":e.pagBgColorActive,"--pag-border-color":e.pagBorderColor,"--pag-border-color-hover":e.pagBorderColorHover,"--pag-border-color-active":e.pagBorderColorActive,"--pag-border-radius":(0,g.a0)(e.pagBorderRadius),"--pag-border-width":(0,g.a0)(e.pagBorderWidth),"--pag-padding":(0,g.a0)(e.pagPadding,{top:"5px",right:"15px",bottom:"5px",left:"15px"}),"--pag-gap":e.pagGap,"--pag-size":e.pagSize,"--pag-cont-margin":(0,g.a0)(e.pagContMargin,{top:"10px",bottom:"30px"})},w=(0,d.useBlockProps)(),C=({posts:e,categoriesList:t,authors:o,blockProps:s,inlineStyles:a,attributes:i})=>e&&t&&o&&!c?0===e.length?(0,k.jsx)("div",{...s,children:(0,k.jsx)(p.Placeholder,{children:(0,l.__)("No Posts","otter-blocks")})}):(0,k.jsxs)("div",{...s,style:a,children:[(0,k.jsxs)(p.Disabled,{children:[i.enableFeaturedPost&&(0,k.jsx)(Ql,{attributes:i,post:e?.[0],categoriesList:t,author:o[0]}),(0,k.jsx)(Kl,{attributes:i,posts:e,categoriesList:t,authors:o})]}),i.hasPagination&&(0,k.jsx)(Jl,{})]}):(0,k.jsx)("div",{...s,children:(0,k.jsxs)(p.Placeholder,{children:[(0,k.jsx)(p.Spinner,{}),(0,l.__)("Loading Posts","otter-blocks")]})});return(0,k.jsxs)(b.Fragment,{children:[r&&(0,k.jsx)(Dl,{attributes:e,setAttributes:t,categoriesList:r,isLoading:c}),(0,k.jsx)(Pl,{attributes:e,setAttributes:t}),(0,k.jsx)(C,{posts:i,categoriesList:r,authors:n,blockProps:w,inlineStyles:_,attributes:e})]})},save:()=>null,example:{attributes:{}}});var os=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/progress-bar","title":"Progress Bar","category":"themeisle-blocks","description":"Show your progress with a beautiful Progress Bar block. Powered by Otter.","keywords":["progress","bar","skills"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string","default":"Skill"},"percentage":{"type":"number","default":50},"duration":{"type":"number","default":2},"titleStyle":{"type":"string","default":"default"},"percentagePosition":{"type":"string","default":"default"},"height":{"type":"number","default":30},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"barBackgroundColor":{"type":"string"},"titleColor":{"type":"string"},"percentageColor":{"type":"string"},"titleFontSize":{"type":"string"}},"editorStyle":"otter-progress-bar-editor","style":"otter-progress-bar-style","script":"otter-progress-bar"}');const ls=[{name:(0,l.__)("Small","otter-blocks"),size:"0.875em",slug:"small"},{name:(0,l.__)("Medium","otter-blocks"),size:"1em",slug:"medium"},{name:(0,l.__)("Large","otter-blocks"),size:"1.125em",slug:"large"},{name:(0,l.__)("XL","otter-blocks"),size:"1.25em",slug:"xl"}];var ss=({attributes:e,setAttributes:t,onHeightChange:o,heightMode:s,setHeightMode:a})=>{const[i,r]=(0,y.useTabSwitch)(e.id,"settings");return(0,k.jsxs)(d.InspectorControls,{children:[(0,k.jsx)(h.R7,{value:i,options:[{label:(0,l.__)("Settings","otter-blocks"),value:"settings"},{label:(0,l.__)("Style","otter-blocks"),value:"style"}],onChange:r}),(0,k.jsxs)("div",{children:["settings"===i&&(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Options","otter-blocks"),initialOpen:!0,children:[(0,k.jsx)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),value:e.title,onChange:e=>t({title:e})}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Percentage","otter-blocks"),help:(0,l.__)("The value of the progress bar.","otter-blocks"),value:e.percentage,onChange:e=>{void 0!==e&&(e=(0,H.clamp)(e,0,100),t({percentage:e}))},min:0,max:100})]}),"style"===i&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Title and Percentage","otter-blocks"),initialOpen:!1,children:[30<=e.height&&(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Title Style","otter-blocks"),value:e.titleStyle,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Highlight","otter-blocks"),value:"highlight"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"}],onChange:e=>t({titleStyle:e})}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Percentage Style","otter-blocks"),value:e.percentagePosition,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Append","otter-blocks"),value:"append"},{label:(0,l.__)("Tooltip","otter-blocks"),value:"tooltip"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"},{label:(0,l.__)("Hide","otter-blocks"),value:"hide"}],onChange:e=>{s.isAutomatic&&(s.percentagePosition=e,a({...s})),t({percentagePosition:e})}}),("outer"===e.titleStyle||"tooltip"===e.percentagePosition&&"outer"===e.percentagePosition)&&(0,k.jsx)(p.BaseControl,{label:(0,l.__)("Outer Text Font Size","otter-blocks"),children:(0,k.jsx)(p.FontSizePicker,{fontSizes:ls,withReset:!0,value:e.titleFontSize,onChange:e=>t({titleFontSize:e})})})]}),(0,k.jsx)(d.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),colorSettings:[{value:e.titleColor,onChange:e=>t({titleColor:e}),label:(0,l.__)("Title","otter-blocks")},{value:e.barBackgroundColor,onChange:e=>t({barBackgroundColor:e}),label:(0,l.__)("Progress","otter-blocks")},{value:e.percentageColor,onChange:e=>t({percentageColor:e}),label:(0,l.__)("Percentage","otter-blocks")},{value:e.backgroundColor,onChange:e=>t({backgroundColor:e}),label:(0,l.__)("Background","otter-blocks")}]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Dimensions and Motion","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Duration","otter-blocks"),help:(0,l.__)("The duration of the animation.","otter-blocks"),value:e.duration,onChange:e=>{void 0!==e&&(e=(0,H.clamp)(e,0,3),t({duration:e}))},min:0,max:3,step:.1}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("The height of the progress bar.","otter-blocks"),value:e.height,onChange:o,step:.1,min:5,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),help:(0,l.__)("Round the corners of the progress bar.","otter-blocks"),value:e.borderRadius,onChange:e=>t({borderRadius:e}),step:.1,initialPosition:5,min:0,max:35})]})]})]})]})};const{attributes:as}=os;const is={to:[{type:"block",blocks:["themeisle-blocks/circle-counter"],transform:e=>{const t=(0,H.omit)(e,["titleStyle","percentagePosition","height","borderRadius","barBackgroundColor","percentageColor"]);return(0,s.createBlock)("themeisle-blocks/circle-counter",{...t,progressColor:e.barBackgroundColor,height:(0,H.clamp)(4*e.height,0,240),titleStyle:"default"})}}]};var rs=is;const{name:ns}=os;(0,s.registerBlockType)(ns,{...os,title:(0,l.__)("Progress Bar","otter-blocks"),description:(0,l.__)("Show your progress with a beautiful Progress Bar block. Powered by Otter.","otter-blocks"),icon:i.progressIcon,keywords:["progress","bar","skills"],transforms:rs,edit:({attributes:e,setAttributes:t,isSelected:o,clientId:l,toggleSelection:s})=>{(0,b.useEffect)((()=>{const t=(0,y.blockInit)(l,as);return()=>t(e.id)}),[e.id]);const a=(0,b.useRef)(null),[i,r]=(0,b.useState)(!1),[c,u]=(0,b.useState)({isAutomatic:!1,titleStyle:e.titleStyle,percentagePosition:e.percentagePosition}),h=(0,b.useRef)(null);(0,b.useEffect)((()=>{let t=null;if(h.current)return r(!1),t=setTimeout((()=>r(!0)),1e3*e.duration),h.current.animate({width:`${e.percentage}%`},{duration:1e3*e.duration,easing:"linear",fill:"forwards"}),()=>{clearTimeout(t)}}),[e.percentage,e.duration]);const g={"--title-color":e.titleColor,"--percentage-color":e.percentageColor,"--percentage-color-outer":e.percentageColor,"--percentage-color-tooltip":e.percentageColor,"--percentage-color-append":e.percentageColor,"--background-color":e.backgroundColor,"--border-radius":void 0!==e.borderRadius&&e.borderRadius+"px","--height":void 0!==e.height&&e.height+"px","--bar-background":e.barBackgroundColor,"--title-font-size":e.titleFontSize},m=o=>{30>o?(c.isAutomatic||u({isAutomatic:!0,titleStyle:e.titleStyle,percentagePosition:e.percentagePosition}),t({height:o,titleStyle:"outer",percentagePosition:"append"===e.percentagePosition||"default"===e.percentagePosition?"outer":e.percentagePosition})):(c.isAutomatic&&u({isAutomatic:!1}),t({titleStyle:c.isAutomatic?c.titleStyle:e.titleStyle,percentagePosition:c.isAutomatic?c.percentagePosition:e.percentagePosition,height:o}))},x=(0,d.useBlockProps)({id:e.id,className:n()({"has-tooltip":"tooltip"===e.percentagePosition}),style:g});return(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(ss,{attributes:e,setAttributes:t,onHeightChange:m,heightMode:c,setHeightMode:u}),(0,k.jsxs)("div",{...x,children:[("outer"===e.titleStyle||"outer"===e.percentagePosition)&&(0,k.jsxs)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer",children:["outer"===e.titleStyle&&(0,k.jsx)(d.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-progress-bar__outer__title",value:e.title,onChange:e=>t({title:e})}),"outer"===e.percentagePosition&&i&&(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer__value wp-block-themeisle-blocks-progress-bar__number",children:`${e.percentage}%`})]}),(0,k.jsx)(p.ResizableBox,{size:{height:e.height},minHeight:5,maxHeight:100,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:o,onResizeStop:(t,o,l,a)=>{m(parseInt(e.height+a.height,10)),s(!0)},onResizeStart:()=>{s(!1)},children:(0,k.jsxs)("div",{ref:a,className:"wp-block-themeisle-blocks-progress-bar__area",children:[("default"===e.titleStyle||"highlight"===e.titleStyle)&&(0,k.jsx)("div",{className:n()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===e.titleStyle}),children:(0,k.jsx)(d.RichText,{tagName:"span",allowedFormats:[],value:e.title,onChange:e=>t({title:e})})}),(0,k.jsxs)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar show",ref:h,children:["tooltip"===e.percentagePosition&&i&&(0,k.jsxs)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip show",children:[`${e.percentage}%`,(0,k.jsx)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})]}),"append"===e.percentagePosition&&i&&(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append show",children:`${e.percentage}%`})]}),"default"===e.percentagePosition&&i&&(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress",children:`${e.percentage}%`})]})})]})]})},save:({attributes:e})=>{const t=d.useBlockProps.save({id:e.id,className:n()({"has-tooltip":"tooltip"===e.percentagePosition}),"data-percent":e.percentage,"data-duration":e.duration});return(0,k.jsxs)("div",{...t,children:[("outer"===e.titleStyle||"outer"===e.percentagePosition)&&(0,k.jsxs)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer",children:["outer"===e.titleStyle&&(0,k.jsx)("span",{className:"wp-block-themeisle-blocks-progress-bar__outer__title",children:e.title}),"outer"===e.percentagePosition&&(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer__value wp-block-themeisle-blocks-progress-bar__number",children:e.percentage})]}),(0,k.jsxs)("div",{className:"wp-block-themeisle-blocks-progress-bar__area",children:[("default"===e.titleStyle||"highlight"===e.titleStyle)&&(0,k.jsx)("div",{className:n()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===e.titleStyle}),children:(0,k.jsx)("span",{children:e.title})}),(0,k.jsxs)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar",children:["tooltip"===e.percentagePosition&&(0,k.jsxs)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip",children:[(0,k.jsx)("span",{className:"wp-block-themeisle-blocks-progress-bar__number",children:e.percentage}),(0,k.jsx)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})]}),"append"===e.percentagePosition&&(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append wp-block-themeisle-blocks-progress-bar__number",children:e.percentage})]}),"default"===e.percentagePosition&&(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__number",children:`${e.percentage}%`})]})]})},example:{}});var cs=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/review","title":"Product Review","category":"themeisle-blocks","description":"Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.","keywords":["product","review","stars"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string"},"currency":{"type":"string","default":"USD"},"price":{"type":"number"},"discounted":{"type":"number"},"image":{"type":"object"},"description":{"type":"string"},"features":{"type":"array","default":[{"title":"Stability","rating":9},{"title":"Ease of Use","rating":4},{"title":"Look & Feel","rating":9},{"title":"Price","rating":7}]},"pros":{"type":"array","default":["Easy to use","Good price","Sturdy build and ergonomics"]},"cons":{"type":"array","default":["Incompatible with old versions","Hard to assemble","Bad color combination"]},"links":{"type":"array","default":[{"label":"Buy on Amazon","href":"","isSponsored":false,"target":"_blank"},{"label":"Buy on eBay","href":"","isSponsored":false,"target":"_blank"}]},"prosLabel":{"type":"string","default":"Pros"},"consLabel":{"type":"string","default":"Cons"},"buttonsLabel":{"type":"string","default":"Buy this Product"},"imageWidth":{"type":"number"},"imageSize":{"type":"string"},"mainHeading":{"type":"string"},"subHeading":{"type":"string"},"contentFontSize":{"type":"string"},"primaryColor":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"buttonTextColor":{"type":"string"},"borderColor":{"type":"string"},"starsColor":{"type":"string"},"prosColor":{"type":"string"},"consColor":{"type":"string"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"borderWidth":{"type":"number"},"borderRadius":{"type":"number"},"boxShadow":{"type":"object","default":{"active":false,"colorOpacity":50,"blur":5,"spread":1,"horizontal":0,"vertical":0}},"isSynced":{"type":"array"}},"supports":{"align":["full","wide"],"html":false},"editorStyle":"otter-review-editor","style":"otter-review-style"}'),ds=o(2583),bs=o.n(ds);const us=[{label:(0,l.__)("Default","otter-blocks"),value:"default",isDefault:!0},{label:(0,l.__)("Boxed","otter-blocks"),value:"boxed"}],ps=[{label:(0,l.__)("Inline","otter-blocks"),value:"inline-features"}],hs=[{label:(0,l.__)("H2","otter-blocks"),value:"h2"},{label:(0,l.__)("H3","otter-blocks"),value:"h3"},{label:(0,l.__)("H4","otter-blocks"),value:"h4"},{label:(0,l.__)("H5","otter-blocks"),value:"h5"},{label:(0,l.__)("H6","otter-blocks"),value:"h6"}],gs=[{name:(0,l.__)("XS","otter-blocks"),size:"14px",slug:"xs"},{name:(0,l.__)("Small","otter-blocks"),size:"16px",slug:"small"},{name:(0,l.__)("Medium","otter-blocks"),size:"18px",slug:"medium"},{name:(0,l.__)("Large","otter-blocks"),size:"24px",slug:"large"},{name:(0,l.__)("XL","otter-blocks"),size:"28px",slug:"xl"}],ms=({title:e,remove:t,children:o})=>{const[s,a]=(0,b.useState)(!1);return(0,k.jsxs)("div",{className:"o-review__inspector_panel_item",children:[(0,k.jsxs)("div",{className:"o-review__inspector_panel_item__header",children:[(0,k.jsx)(p.Button,{className:"o-review__inspector_panel_item__title",onClick:()=>a(!s),children:e}),(0,k.jsx)(p.Button,{icon:"no-alt",label:(0,l.__)("Remove","otter-blocks"),showTooltip:!0,className:"o-review__inspector_panel_item__arrow",onClick:t})]}),s&&(0,k.jsx)("div",{className:"o-review__inspector_panel_item__content",children:o})]})};var ys=({attributes:e,setAttributes:t,getValue:o,productAttributes:s})=>{const[a,i]=(0,y.useTabSwitch)(e.id,"settings"),{responsiveSetAttributes:r,responsiveGetAttributes:n}=(0,m.d)(t),c=o=>{const s=[...e.features];switch(o.action){case"add":s.push({title:(0,l.__)("Feature","otter-blocks"),rating:9});break;case"remove":s.splice(o.index,1);break;case"update":s[o.index]={...s[o.index],...o.value}}t({features:s})},u=o=>{const l=[...e[o.type]];switch(o.action){case"add":l.push("");break;case"remove":l.splice(o.index,1);break;case"update":l[o.index]=o.value}t({[o.type]:l})},x=o=>{const s=[...e.links];switch(o.action){case"add":s.push({label:(0,l.__)("Buy Now","otter-blocks"),href:""});break;case"remove":s.splice(o.index,1);break;case"update":s[o.index]={...s[o.index],...o.value}}t({links:s})};return(0,k.jsxs)(d.InspectorControls,{children:[(0,k.jsx)(h.R7,{value:a,options:[{label:(0,l.__)("Settings","otter-blocks"),value:"settings"},{label:(0,l.__)("Style","otter-blocks"),value:"style"}],onChange:i}),"settings"===a&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),children:[(0,k.jsx)(h.Aw,{label:(0,l.__)("Column Structure","otter-blocks"),options:[{label:(0,l.__)("One Column","otter-blocks"),value:"is-style-single-column"},{label:(0,l.__)("Two Columns","otter-blocks"),value:"default"}],value:e?.className?.includes("is-style-single-column")?"is-style-single-column":"default",onChange:o=>{const l=e?.className?.split(" ")||[];"default"===o&&l.includes("is-style-single-column")?l.splice(l.indexOf("is-style-single-column"),1):"is-style-single-column"!==o||l.includes("is-style-single-column")||l.push("is-style-single-column"),t({className:l.join(" ")})}}),(e.image||s?.image)&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(h.Aw,{label:(0,l.__)("Image Area Width","otter-blocks"),options:[{label:(0,l.__)("25%","otter-blocks"),value:25},{label:(0,l.__)("33%","otter-blocks"),value:33},{label:(0,l.__)("50%","otter-blocks"),value:50},{label:(0,l.__)("100%","otter-blocks"),value:100}],value:e.imageWidth||33,onChange:e=>t({imageWidth:Number(e)})}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Image Size","otter-blocks"),value:e.imageSize,options:window.themeisleGutenberg.imageSizes.map((e=>({label:(0,H.startCase)((0,H.toLower)(e)),value:e}))),onChange:e=>t({imageSize:e})})]})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Product Details","otter-blocks"),initialOpen:!1,children:[e.product&&(0,k.jsx)(p.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice",children:(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Product Name","otter-blocks"),type:"text",placeholder:(0,l.__)("Name of your product…","otter-blocks"),value:s?.title||e.title,disabled:e.product,onChange:e=>t({title:e})}),(0,k.jsxs)(p.BaseControl,{children:[(0,k.jsx)(p.TextControl,{label:(0,l.__)("Currency","otter-blocks"),type:"text",placeholder:(0,l.__)("Currency code, like USD or EUR.","otter-blocks"),value:s?.currency||e.currency,disabled:e.product,onChange:e=>t({currency:e})}),(0,l.__)("Currency code in three digit ISO 4217 code.","otter-blocks")+" ",(0,k.jsx)(p.ExternalLink,{href:"https://en.wikipedia.org/wiki/ISO_4217#Active_codes",children:(0,l.__)("List of ISO 4217 codes.","otter-blocks")})]}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Price","otter-blocks"),type:"number",value:s?.price||e.price,disabled:e.product,onChange:e=>t({price:""!==e?Number(e):void 0})}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Discounted Price","otter-blocks"),type:"number",value:s?.discounted||e.discounted,disabled:e.product,onChange:e=>t({discounted:""!==e?Number(e):void 0})}),e.image||s?.image?(0,k.jsxs)(p.BaseControl,{className:"o-review__inspector_image",children:[(0,k.jsx)("img",{src:s?.image?.url||e.image.url,alt:s?.image?.url||e.image.alt}),(0,k.jsx)(p.Button,{isSecondary:!0,onClick:()=>t({image:void 0}),disabled:e.product,children:(0,l.__)("Remove image","otter-blocks")})]}):(0,k.jsx)(d.MediaPlaceholder,{labels:{title:(0,l.__)("Product Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:e.image,onSelect:e=>t({image:(0,H.pick)(e,["id","alt","url"])})})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Product Features","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Inline rating features","otter-blocks"),checked:"inline-features"===(0,g.qL)(ps,e?.className),onChange:o=>{t({className:(0,g.c5)(e?.className,ps,o?"inline-features":void 0)})}}),0<e.features.length&&e.features.map(((e,t)=>(0,k.jsxs)(ms,{title:e.title||(0,l.__)("Feature","otter-blocks"),remove:()=>c({action:"remove",index:t}),children:[(0,k.jsx)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,onChange:e=>c({action:"update",index:t,value:{title:e}})}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Rating","otter-blocks"),value:e.rating,onChange:e=>c({action:"update",index:t,value:{rating:Number(e)}}),step:.1,min:1,max:10}),(0,k.jsx)(p.TextareaControl,{label:(0,l.__)("Description","otter-blocks"),placeholder:(0,l.__)("Feature Description","otter-blocks"),value:e.description,onChange:e=>c({action:"update",index:t,value:{description:e}})})]},t))),(0,k.jsx)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>c({action:"add"}),children:(0,l.__)("Add Feature","otter-blocks")})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Pros","otter-blocks"),initialOpen:!1,children:[0<e.pros.length&&e.pros.map(((e,t)=>(0,k.jsx)(ms,{title:e||(0,l.__)("Pro","otter-blocks"),remove:()=>u({type:"pros",action:"remove",index:t}),children:(0,k.jsx)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>u({type:"pros",action:"update",index:t,value:e})})},t))),(0,k.jsx)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>u({type:"pros",action:"add"}),children:(0,l.__)("Add Item","otter-blocks")})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Cons","otter-blocks"),initialOpen:!1,children:[0<e.cons.length&&e.cons.map(((e,t)=>(0,k.jsx)(ms,{title:e||(0,l.__)("Con","otter-blocks"),remove:()=>u({type:"cons",action:"remove",index:t}),children:(0,k.jsx)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>u({type:"cons",action:"update",index:t,value:e})})},t))),(0,k.jsx)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>u({type:"cons",action:"add"}),children:(0,l.__)("Add Item","otter-blocks")})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Buttons","otter-blocks"),initialOpen:!1,children:[e.product&&(0,k.jsx)(p.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice",children:(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")}),0<s?.links?.length&&s?.links?.map(((t,o)=>(0,k.jsxs)(ms,{title:t.label||(0,l.__)("Link","otter-blocks"),remove:()=>x({action:"remove",index:o}),children:[(0,k.jsx)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),disabled:e.product,value:t.label}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:t.href,disabled:e.product}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:t.isSponsored,disabled:e.product}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Open in New Tab","otter-blocks"),checked:"_blank"===t.target,disabled:e.product})]},o))),!(0<s?.links?.length)&&(0,k.jsxs)(b.Fragment,{children:[0<e.links.length&&e.links.map(((e,t)=>(0,k.jsxs)(ms,{title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>x({action:"remove",index:t}),children:[(0,k.jsx)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,onChange:e=>x({action:"update",index:t,value:{label:e}})}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,onChange:e=>x({action:"update",index:t,value:{href:e}})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,onChange:()=>x({action:"update",index:t,value:{isSponsored:!e.isSponsored}})}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Open in New Tab","otter-blocks"),checked:void 0===e.target||"_blank"===e.target,onChange:()=>x({action:"update",index:t,value:{target:"_blank"===e.target||void 0===e.target?"_self":"_blank"}})})]},t))),(0,k.jsx)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>x({action:"add"}),children:(0,l.__)("Add Links","otter-blocks")})]})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Labels","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.TextControl,{label:(0,l.__)("Pros","otter-blocks"),value:e.prosLabel,onChange:e=>t({prosLabel:e})}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Cons","otter-blocks"),value:e.consLabel,onChange:e=>t({consLabel:e})}),(0,k.jsx)(p.TextControl,{label:(0,l.__)("Buttons","otter-blocks"),value:e.buttonsLabel,onChange:e=>t({buttonsLabel:e})})]}),(0,k.jsx)(h.Cu,{})]}),"style"===a&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Style","otter-blocks"),children:(0,k.jsx)(h.Aw,{options:us,value:(0,g.qL)(us,e?.className),onChange:o=>{const l=(0,g.c5)(e?.className,us,o);t({className:l})}})}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Typography","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Main Heading","otter-blocks"),help:(0,l.__)("Product Title HTML Tag","otter-blocks"),options:hs,value:e.mainHeading||"h2",onChange:e=>t({mainHeading:e})}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Sub Heading","otter-blocks"),help:(0,l.__)("Pros and Cons titles HTML Tag","otter-blocks"),options:hs,value:e.subHeading||"h3",onChange:e=>t({subHeading:e})}),(0,k.jsx)(p.BaseControl,{label:(0,l.__)("Content","otter-blocks"),children:(0,k.jsx)(p.FontSizePicker,{fontSizes:gs,withReset:!0,value:e.contentFontSize,onChange:e=>t({contentFontSize:e})})})]}),(0,k.jsxs)(h.T$,{label:(0,l.__)("Color","otter-blocks"),isSynced:e.isSynced,options:[{label:(0,l.__)("Background","otter-blocks"),slug:"backgroundColor",value:o("backgroundColor")},{label:(0,l.__)("Text","otter-blocks"),slug:"textColor",value:o("textColor")},{label:(0,l.__)("Button","otter-blocks"),slug:"primaryColor",value:o("primaryColor")},{label:(0,l.__)("Button Text","otter-blocks"),slug:"buttonTextColor",value:o("buttonTextColor")},{label:(0,l.__)("Border","otter-blocks"),slug:"borderColor",value:o("borderColor")},{label:(0,l.__)("Stars","otter-blocks"),slug:"starsColor",value:o("starsColor")},{label:(0,l.__)("Pros","otter-blocks"),slug:"prosColor",value:o("prosColor")},{label:(0,l.__)("Cons","otter-blocks"),slug:"consColor",value:o("consColor")}],setAttributes:t,children:[(0,k.jsx)(d.ContrastChecker,{textColor:o("textColor"),backgroundColor:o("backgroundColor")}),(0,k.jsx)(d.ContrastChecker,{textColor:o("buttonTextColor"),backgroundColor:o("primaryColor")})]}),(0,k.jsx)(p.PanelBody,{title:(0,l.__)("Dimensions","otter-blocks"),initialOpen:!1,children:(0,k.jsx)(h.k3,{label:(0,l.__)("Screen Type","otter-blocks"),children:(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:n([e.padding,e.paddingTablet,e.paddingMobile]),onChange:e=>r(e,["padding","paddingTablet","paddingMobile"]),allowReset:!0})})}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Border","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Width","otter-blocks"),value:e.borderWidth,onChange:e=>t({borderWidth:e}),min:0,max:50,allowReset:!0}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Radius","otter-blocks"),value:e.borderRadius,onChange:e=>t({borderRadius:e}),min:0,max:100,allowReset:!0}),(0,k.jsx)(h.fS,{boxShadow:e.boxShadow,onChange:o=>{const l={...e.boxShadow};Object.entries(o).forEach((([e,t]=o)=>{l[e]=t})),t({boxShadow:l})}})]})]}),!Boolean(window.themeisleGutenberg.hasPro)&&(0,k.jsx)(p.PanelBody,{title:(0,l.__)("More Features","otter-blocks"),initialOpen:!1,children:(0,k.jsx)(h.$T,{notice:(0,k.jsx)(p.ExternalLink,{href:(0,g.lY)(window.themeisleGutenberg.upgradeLink,"reviewblock"),children:(0,l.__)("Get more options with Otter Pro.","otter-blocks")}),variant:"upsell"})})]})};const{attributes:ks}=cs,xs=({rating:e})=>{const t=[],o=Boolean(window.themeisleGutenberg.ratingScale)?2:1;for(let l=0;10/o>l;l++)t.push((0,k.jsx)(i.StarFilled,{className:n()({filled:l<Math.round(e/o)})},l));return t};const{name:fs,attributes:vs}=cs;window.themeisleGutenberg.defaultReviewAttributes=vs,(0,s.registerBlockType)(fs,{...cs,title:(0,l.__)("Product Review","otter-blocks"),description:(0,l.__)("Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.","otter-blocks"),icon:i.reviewIcon,keywords:["product","review","stars"],edit:({name:e,attributes:t,setAttributes:o,clientId:s,isSelected:a,status:r="isInactive",productAttributes:c={}})=>{var h,x;(0,b.useEffect)((()=>{const e=(0,y.blockInit)(s,ks);return()=>e(t.id)}),[t.id]);const{image:f}=(0,u.useSelect)((e=>{let o;const l=t.imageSize||"medium";return(t.image?.id||c.image?.id)&&(o=e("core").getMedia(t.image?.id||c.image?.id,{context:"view"})),o=o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[l]?o.media_details.sizes[l].source_url:o.source_url:null,{image:o}}),[t.image,t.imageSize,c]),v=o=>(0,y.getDefaultValueByField)({name:e,field:o,defaultAttributes:ks,attributes:t});(0,m.g)(v("backgroundColor"),t,o);const _=(t.features.reduce(((e,t)=>e+t.rating),0)/t.features.length).toFixed(1),w=(e,l)=>{const s=[...t.features];s[e]={...s[e],...l},o({features:s})},C=v("boxShadow"),j={"--background-color":v("backgroundColor"),"--primary-color":v("primaryColor"),"--text-color":v("textColor"),"--button-text-color":v("buttonTextColor"),"--border-color":v("borderColor"),"--stars-color":v("starsColor"),"--pros-color":v("prosColor"),"--cons-color":v("consColor"),"--content-font-size":v("contentFontSize"),...t?.padding?.top&&{"--padding-desktop-top":t.padding.top},...t?.padding?.bottom&&{"--padding-desktop-bottom":t.padding.bottom},...t?.padding?.right&&{"--padding-desktop-right":t.padding.right},...t?.padding?.left&&{"--padding-desktop-left":t.padding.left},...t?.paddingTablet?.top&&{"--padding-tablet-top":t.paddingTablet.top},...t?.paddingTablet?.bottom&&{"--padding-tablet-bottom":t.paddingTablet.bottom},...t?.paddingTablet?.right&&{"--padding-tablet-right":t.paddingTablet.right},...t?.paddingTablet?.left&&{"--padding-tablet-left":t.paddingTablet.left},...t?.paddingMobile?.top&&{"--padding-mobile-top":t.paddingMobile.top},...t?.paddingMobile?.bottom&&{"--padding-mobile-bottom":t.paddingMobile.bottom},...t?.paddingMobile?.right&&{"--padding-mobile-right":t.paddingMobile.right},...t?.paddingMobile?.left&&{"--padding-mobile-left":t.paddingMobile.left},"--border-width":(0,g.ws)(v("borderWidth")),"--border-radius":(0,g.ws)(v("borderRadius")),"--box-shadow":C.active&&`${C.horizontal}px ${C.vertical}px ${C.blur}px ${C.spread}px ${R()(C.color||"#FFFFFF",C.colorOpacity)}`},S="object"==typeof r&&null!==r&&r.isError||"isLoading"===r,T=(t?.className?.includes("is-style-single-column"),t?.className?.includes("is-style-inline-features"),Boolean(window.themeisleGutenberg.ratingScale)?2:1),B=(0,d.useBlockProps)({id:t.id,className:S?"is-placeholder":n()({"no-pros-cons":!(0<t.pros.length||0<t.cons.length),"no-footer":!(0<c?.links?.length||0<t.links.length)}),style:j}),M=t.mainHeading||"h2",P=t.subHeading||"h3";return"isLoading"===r?(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(ys,{attributes:t,setAttributes:o,getValue:v,productAttributes:c}),(0,k.jsx)("div",{...B,children:(0,k.jsx)(p.Placeholder,{children:(0,k.jsx)(p.Spinner,{})})})]}):"object"==typeof r&&null!==r&&r.isError?(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(ys,{attributes:t,setAttributes:o,getValue:v,productAttributes:c}),(0,k.jsx)("div",{...B,children:(0,k.jsx)(p.Placeholder,{instructions:r.message})})]}):(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(ys,{attributes:t,setAttributes:o,getValue:v,productAttributes:c}),(0,k.jsxs)("div",{...B,children:[(0,k.jsxs)("div",{className:"o-review__header",children:[c?.title?(0,k.jsx)(d.RichText.Content,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:c?.title,tagName:M}):(0,k.jsx)(d.RichText,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:t.title,onChange:e=>o({title:e}),tagName:M}),(0,k.jsxs)("div",{className:"o-review__header_meta",children:[(0,k.jsxs)("div",{className:"o-review__header_ratings",children:[(0,k.jsx)("div",{className:"o-review__header_ratings__stars",children:(0,k.jsx)(xs,{rating:Math.max(_,1)})}),(0,k.jsx)("span",{children:(0,l.sprintf)(/** translators: %1$f: Rating score, %2$f: Maximum possible score. */ /** translators: %1$f: Rating score, %2$f: Maximum possible score. */
 (0,l.__)("%1$f out of %2$f","otter-blocks"),Math.max(Math.abs(_/T).toFixed(1)||0,1),10/T)})]}),(0,k.jsxs)("span",{className:"o-review__header_price",children:[(c?.price&&c?.discounted||t.price&&t.discounted)&&(0,k.jsx)("del",{children:(null!==(h=bs()(c?.currency||t.currency))&&void 0!==h?h:"$")+""+(c?.price||t.price)||0}),(t.price||t.discounted||c?.price||c?.discounted)&&(null!==(x=bs()(c?.currency||t.currency))&&void 0!==x?x:"$")+""+(c?.discounted||t.discounted?c?.discounted||t.discounted:c?.price||t.price)]})]}),(0,k.jsxs)("div",{className:n()("o-review__header_details",{"is-single":!f||!a&&!t.description,[{25:"is-quarter",50:"is-half",100:"is-full"}[t.imageWidth]]:t.imageWidth&&33!==t.imageWidth}),children:[c?.image?(0,k.jsx)("img",{src:f,alt:c?.image?.alt}):t.image&&(0,k.jsx)("img",{src:f,alt:t.image.alt}),!a&&!t.description||c?.description?(0,k.jsx)(d.RichText.Content,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:c?.description,tagName:"p"}):(0,k.jsx)(d.RichText,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:t.description,onChange:e=>o({description:e}),tagName:"p"})]})]}),(0,k.jsx)("div",{className:"o-review__left",children:(0,k.jsx)("div",{className:"o-review__left_features",children:0<t.features.length&&t.features.map(((e,t)=>(0,k.jsxs)("div",{className:"o-review__left_feature",children:[(0,k.jsx)(d.RichText,{placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,className:"o-review__left_feature_title",onChange:e=>w(t,{title:e}),tagName:"span"}),(0,k.jsxs)("div",{className:"o-review__left_feature_ratings",children:[(0,k.jsx)("div",{className:"o-review__left_feature_ratings__stars",children:(0,k.jsx)(xs,{rating:Math.max(e.rating,1)})}),(0,k.jsx)("span",{className:"o-review__left_feature_num",children:(0,l.sprintf)(/** translators: %1$f: Rating score, %2$f: Maximum possible score. */ /** translators: %1$f: Rating score, %2$f: Maximum possible score. */
-(0,l.__)("%1$f out of %2$f","otter-blocks"),Math.max(Math.abs(e.rating/T).toFixed(1)||0,1),10/T)})]}),(a||e.description)&&(0,k.jsx)(d.RichText,{placeholder:(0,l.__)("Feature Description…","otter-blocks"),value:e.description,className:"o-review__left_feature_description",onChange:e=>w(t,{description:e}),tagName:"span"})]},t)))})}),(0<t.pros.length||0<t.cons.length)&&(0,k.jsxs)("div",{className:"o-review__right",children:[0<t.pros.length&&(0,k.jsxs)("div",{className:"o-review__right_pros",children:[(0,k.jsx)(P,{children:t.prosLabel}),t.pros.map(((e,s)=>(0,k.jsxs)("div",{className:"o-review__right_pros_item",children:[i.check,(0,k.jsx)(d.RichText,{placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,l)=>{const s=[...t.pros];s[e]=l,o({pros:s})})(s,e),tagName:"p"})]},s)))]}),0<t.cons.length&&(0,k.jsxs)("div",{className:"o-review__right_cons",children:[(0,k.jsx)(P,{children:t.consLabel}),t.cons.map(((e,s)=>(0,k.jsxs)("div",{className:"o-review__right_cons_item",children:[i.close,(0,k.jsx)(d.RichText,{placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,l)=>{const s=[...t.cons];s[e]=l,o({cons:s})})(s,e),tagName:"p"})]},s)))]})]}),(0<c?.links?.length||0<t.links.length)&&(0,k.jsxs)("div",{className:"o-review__footer",children:[(0,k.jsx)(P,{className:"o-review__footer_label",children:t.buttonsLabel}),(0,k.jsx)("div",{className:"o-review__footer_buttons",children:(c?.links||t.links).map(((e,s)=>(0,k.jsx)(d.RichText,{placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,disabled:0<c?.links,onChange:e=>((e,l)=>{const s=[...t.links];s[e]={...s[e],...l},o({links:s})})(s,{label:e}),tagName:"span"},s)))})]})]})]})},save:()=>null,example:{attributes:{}}});var _s=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-columns","title":"Section","category":"themeisle-blocks","description":"Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.","keywords":["advanced columns","layout","section"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"columns":{"type":"number"},"layout":{"type":"string"},"layoutTablet":{"type":"string","default":"equal"},"layoutMobile":{"type":"string","default":"equal"},"padding":{"type":"object","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"columnsWidth":{"type":["number","string"]},"columnsWidthTablet":{"type":"string"},"columnsWidthMobile":{"type":"string"},"horizontalAlign":{"type":"string","default":"unset"},"columnsHeight":{"type":"string","default":"auto"},"columnsHeightCustom":{"type":["number","string"]},"columnsHeightCustomTablet":{"type":["number","string"]},"columnsHeightCustomMobile":{"type":["number","string"]},"verticalAlign":{"type":"string","default":"unset"},"color":{"type":"string"},"colorHover":{"type":"string"},"linkColor":{"type":"string"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayOpacity":{"type":"number","default":50},"backgroundOverlayType":{"type":"string","default":"color"},"backgroundOverlayColor":{"type":"string"},"backgroundOverlayImage":{"type":"object"},"backgroundOverlayAttachment":{"type":"string","default":"scroll"},"backgroundOverlayPosition":{"type":"object"},"backgroundOverlayRepeat":{"type":"string","default":"repeat"},"backgroundOverlaySize":{"type":"string","default":"auto"},"backgroundOverlayGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayFilterBlur":{"type":"number","default":0},"backgroundOverlayFilterBrightness":{"type":"number","default":10},"backgroundOverlayFilterContrast":{"type":"number","default":10},"backgroundOverlayFilterGrayscale":{"type":"number","default":0},"backgroundOverlayFilterHue":{"type":"number","default":0},"backgroundOverlayFilterSaturate":{"type":"number","default":10},"backgroundOverlayBlend":{"type":"string","default":"normal"},"border":{"type":"object"},"borderColor":{"type":"string"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"dividerTopType":{"type":"string","default":"none"},"dividerTopColor":{"type":"string","default":"#000000"},"dividerTopWidth":{"type":"number"},"dividerTopWidthTablet":{"type":"number"},"dividerTopWidthMobile":{"type":"number"},"dividerTopHeight":{"type":"number"},"dividerTopHeightTablet":{"type":"number"},"dividerTopHeightMobile":{"type":"number"},"dividerTopInvert":{"type":"boolean","default":false},"dividerBottomType":{"type":"string","default":"none"},"dividerBottomColor":{"type":"string","default":"#000000"},"dividerBottomWidth":{"type":"number"},"dividerBottomWidthTablet":{"type":"number"},"dividerBottomWidthMobile":{"type":"number"},"dividerBottomHeight":{"type":"number"},"dividerBottomHeightTablet":{"type":"number"},"dividerBottomHeightMobile":{"type":"number"},"dividerBottomInvert":{"type":"boolean","default":false},"hide":{"type":"boolean","default":false},"hideTablet":{"type":"boolean","default":false},"hideMobile":{"type":"boolean","default":false},"reverseColumnsTablet":{"type":"boolean","default":false},"reverseColumnsMobile":{"type":"boolean","default":false},"columnsHTMLTag":{"type":"string","default":"div"},"isSynced":{"type":"array"}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}');const ws={align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},Cs=({type:e,front:t,style:o,fill:l,invert:s,width:a,height:i})=>"none"!==o&&(0,k.jsxs)("div",{className:n()("wp-block-themeisle-blocks-advanced-columns-separators",e),style:!t&&a?{transform:a?`scaleX( ${a/100} )`:""}:{},children:["bigTriangle"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===e?{transform:"bottom"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})}),"bigTriangle"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===e?{transform:"top"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})}),"rightCurve"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===e?{transform:"top"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})}),"rightCurve"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===e?{transform:"top"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})}),"curve"===o&&(0,k.jsx)(p.SVG,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===e?{transform:"top"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})}),"slant"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===e?{transform:"bottom"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})}),"slant"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===e?{transform:"bottom"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})}),"cloud"===o&&(0,k.jsx)(p.SVG,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===e?{transform:"top"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})})]}),js=({type:e,front:t,style:o,fill:l,invert:s,width:a,height:i})=>"none"!==o&&(0,k.jsxs)("div",{className:n()("wp-block-themeisle-blocks-advanced-columns-separators",e),style:!t&&a?{transform:a?`scaleX( ${a/100} )`:""}:{},children:["bigTriangle"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})}),"bigTriangle"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})}),"rightCurve"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})}),"rightCurve"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})}),"curve"===o&&(0,k.jsx)(p.SVG,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})}),"slant"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})}),"slant"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})}),"cloud"===o&&(0,k.jsx)(p.SVG,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)(p.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})})]}),Ss=[{attributes:ws,supports:{align:["wide","full"],html:!1},save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag;let l,s,a,i,r;if("color"===e.backgroundType&&(l={background:e.backgroundColor}),"image"===e.backgroundType&&(l={backgroundImage:`url( '${e.backgroundImageURL}' )`,backgroundAttachment:e.backgroundAttachment,backgroundPosition:e.backgroundPosition,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize}),"gradient"===e.backgroundType){let t;t="linear"===e.backgroundGradientType?`${e.backgroundGradientAngle}deg`:`at ${e.backgroundGradientPosition}`,l={background:`${e.backgroundGradientType}-gradient( ${t}, ${e.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${e.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}% )`}}"linked"===e.borderType&&(a={borderWidth:`${e.border}px`,borderStyle:"solid",borderColor:e.borderColor}),"unlinked"===e.borderType&&(a={borderTopWidth:`${e.borderTop}px`,borderRightWidth:`${e.borderRight}px`,borderBottomWidth:`${e.borderBottom}px`,borderLeftWidth:`${e.borderLeft}px`,borderStyle:"solid",borderColor:e.borderColor}),"linked"===e.borderRadiusType&&(i={borderRadius:`${e.borderRadius}px`}),"unlinked"===e.borderRadiusType&&(i={borderTopLeftRadius:`${e.borderRadiusTop}px`,borderTopRightRadius:`${e.borderRadiusRight}px`,borderBottomRightRadius:`${e.borderRadiusBottom}px`,borderBottomLeftRadius:`${e.borderRadiusLeft}px`}),!0===e.boxShadow&&(r={boxShadow:`${e.boxShadowHorizontal}px ${e.boxShadowVertical}px ${e.boxShadowBlur}px ${e.boxShadowSpread}px ${R()(e.boxShadowColor?e.boxShadowColor:"#000000",e.boxShadowColorOpacity)}`});const c={...l,...a,...i,...r,justifyContent:e.horizontalAlign};if("color"===e.backgroundOverlayType&&(s={background:e.backgroundOverlayColor,opacity:e.backgroundOverlayOpacity/100}),"image"===e.backgroundOverlayType&&(s={backgroundImage:`url( '${e.backgroundOverlayImageURL}' )`,backgroundAttachment:e.backgroundOverlayAttachment,backgroundPosition:e.backgroundOverlayPosition,backgroundRepeat:e.backgroundOverlayRepeat,backgroundSize:e.backgroundOverlaySize,opacity:e.backgroundOverlayOpacity/100}),"gradient"===e.backgroundOverlayType){let t;t="linear"===e.backgroundOverlayGradientType?`${e.backgroundOverlayGradientAngle}deg`:`at ${e.backgroundOverlayGradientPosition}`,s={background:`${e.backgroundOverlayGradientType}-gradient( ${t}, ${e.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${e.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}% )`,opacity:e.backgroundOverlayOpacity/100}}const b={...s,mixBlendMode:e.backgroundOverlayBlend,filter:`blur( ${e.backgroundOverlayFilterBlur/10}px ) brightness( ${e.backgroundOverlayFilterBrightness/10} ) contrast( ${e.backgroundOverlayFilterContrast/10} ) grayscale( ${e.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${e.backgroundOverlayFilterHue}deg ) saturate( ${e.backgroundOverlayFilterSaturate/10} )`};let u={};e.columnsWidth&&(u={maxWidth:e.columnsWidth+"px"});const p=e.hide?"":`has-desktop-${e.layout}-layout`,h=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,g=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,m=n()(t,`has-${e.columns}-columns`,p,h,g,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},`has-${e.lcolumnsGap}-gap`,`has-vertical-${e.verticalAlign}`);return(0,k.jsxs)(o,{className:m,id:e.id,style:c,children:[(0,k.jsx)("div",{className:"wp-themeisle-block-overlay",style:b}),(0,k.jsx)(Cs,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",style:u,children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(Cs,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})}},{attributes:ws,supports:{align:["wide","full"],html:!1},save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag;let l,s,a,i,r;if("color"===e.backgroundType&&(l={background:e.backgroundColor}),"image"===e.backgroundType&&(l={backgroundImage:`url( '${e.backgroundImageURL}' )`,backgroundAttachment:e.backgroundAttachment,backgroundPosition:e.backgroundPosition,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize}),"gradient"===e.backgroundType){let t;t="linear"===e.backgroundGradientType?`${e.backgroundGradientAngle}deg`:`at ${e.backgroundGradientPosition}`,l={background:`${e.backgroundGradientType}-gradient( ${t}, ${e.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${e.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}% )`}}"linked"===e.borderType&&(a={borderWidth:`${e.border}px`,borderStyle:"solid",borderColor:e.borderColor}),"unlinked"===e.borderType&&(a={borderTopWidth:`${e.borderTop}px`,borderRightWidth:`${e.borderRight}px`,borderBottomWidth:`${e.borderBottom}px`,borderLeftWidth:`${e.borderLeft}px`,borderStyle:"solid",borderColor:e.borderColor}),"linked"===e.borderRadiusType&&(i={borderRadius:`${e.borderRadius}px`}),"unlinked"===e.borderRadiusType&&(i={borderTopLeftRadius:`${e.borderRadiusTop}px`,borderTopRightRadius:`${e.borderRadiusRight}px`,borderBottomRightRadius:`${e.borderRadiusBottom}px`,borderBottomLeftRadius:`${e.borderRadiusLeft}px`}),!0===e.boxShadow&&(r={boxShadow:`${e.boxShadowHorizontal}px ${e.boxShadowVertical}px ${e.boxShadowBlur}px ${e.boxShadowSpread}px ${R()(e.boxShadowColor?e.boxShadowColor:"#000000",e.boxShadowColorOpacity)}`});const c={...l,...a,...i,...r,justifyContent:e.horizontalAlign};if("color"===e.backgroundOverlayType&&(s={background:e.backgroundOverlayColor,opacity:e.backgroundOverlayOpacity/100}),"image"===e.backgroundOverlayType&&(s={backgroundImage:`url( '${e.backgroundOverlayImageURL}' )`,backgroundAttachment:e.backgroundOverlayAttachment,backgroundPosition:e.backgroundOverlayPosition,backgroundRepeat:e.backgroundOverlayRepeat,backgroundSize:e.backgroundOverlaySize,opacity:e.backgroundOverlayOpacity/100}),"gradient"===e.backgroundOverlayType){let t;t="linear"===e.backgroundOverlayGradientType?`${e.backgroundOverlayGradientAngle}deg`:`at ${e.backgroundOverlayGradientPosition}`,s={background:`${e.backgroundOverlayGradientType}-gradient( ${t}, ${e.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${e.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}% )`,opacity:e.backgroundOverlayOpacity/100}}const b={...s,mixBlendMode:e.backgroundOverlayBlend};let u={};e.columnsWidth&&(u={maxWidth:e.columnsWidth+"px"});const p=e.hide?"":`has-desktop-${e.layout}-layout`,h=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,g=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,m=n()(t,`has-${e.columns}-columns`,p,h,g,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},`has-${e.columnsGap}-gap`,`has-vertical-${e.verticalAlign}`);return(0,k.jsxs)(o,{className:m,id:e.id,style:c,children:[(0,k.jsx)("div",{className:"wp-themeisle-block-overlay",style:b}),(0,k.jsx)(Cs,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",style:u,children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(Cs,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})}},{attributes:{...ws,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag,l=e.hide?"":`has-desktop-${e.layout}-layout`,s=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,a=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,i=n()(t,`has-${e.columns}-columns`,l,s,a,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},{"has-reverse-columns-tablet":e.reverseColumnsTablet&&!e.hideTablet&&"collapsedRows"===e.layoutTablet},{"has-reverse-columns-mobile":e.reverseColumnsMobile&&!e.hideMobile&&"collapsedRows"===e.layoutMobile},`has-${e.columnsGap}-gap`,`has-vertical-${e.verticalAlign}`);return(0,k.jsxs)(o,{className:i,id:e.id,children:[(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,k.jsx)(js,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(js,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})}},{attributes:{...ws,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{let t="",o="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${R()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${R()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}if("gradient"===e.backgroundOverlayType){let t="";"linear"===e.backgroundOverlayGradientType&&(t=`${e.backgroundOverlayGradientAngle}deg, `),o=`${e.backgroundOverlayGradientType}-gradient(${t}${R()(e.backgroundOverlayGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${R()(e.backgroundOverlayGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}%)`}return{...{...(0,H.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),backgroundGradient:t,backgroundOverlayGradient:o}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor||"gradient"===e.backgroundOverlayType&&void 0!==e.backgroundOverlayGradientFirstColor,save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag,l=e.hide?"":`has-desktop-${e.layout}-layout`,s=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,a=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,i=n()(t,`has-${e.columns}-columns`,l,s,a,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},{"has-reverse-columns-tablet":e.reverseColumnsTablet&&!e.hideTablet&&"collapsedRows"===e.layoutTablet},{"has-reverse-columns-mobile":e.reverseColumnsMobile&&!e.hideMobile&&"collapsedRows"===e.layoutMobile},`has-${e.columnsGap}-gap`,`has-vertical-${e.verticalAlign}`);return(0,k.jsxs)(o,{className:i,id:e.id,children:[(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,k.jsx)(js,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(js,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})}},{attributes:{...(0,H.omit)(ws,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},backgroundOverlayGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{const t={},o={},l={},s={},a={},i={},r={},n={};let c={},d={},b={},u={};"unlinked"===e.paddingType?(t.top=(0,H.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,H.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,H.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,H.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,H.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,H.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,H.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,H.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,H.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,H.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,H.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(s.top=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",s.bottom=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px"):(s.top=(0,H.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",s.bottom=(0,H.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px"),"linked"===e.marginTypeTablet?(a.top=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",a.bottom=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(a.top=(0,H.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",a.bottom=(0,H.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px"),"linked"===e.marginTypeMobile?(i.top=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",i.bottom=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(i.top=(0,H.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",i.bottom=(0,H.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px"),"unlinked"===e.borderType?(r.top=(0,H.isUndefined)(e.borderTop)?null:e.borderTop+"px",r.bottom=(0,H.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",r.left=(0,H.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",r.right=(0,H.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(r.top=(0,H.isUndefined)(e.border)?null:e.border+"px",r.bottom=(0,H.isUndefined)(e.border)?null:e.border+"px",r.left=(0,H.isUndefined)(e.border)?null:e.border+"px",r.right=(0,H.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(n.top=(0,H.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",n.bottom=(0,H.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",n.left=(0,H.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",n.right=(0,H.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(n.top=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.bottom=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.left=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.right=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(c={id:e.backgroundImageID,url:e.backgroundImageURL}),void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID&&(d={id:e.backgroundOverlayImageID,url:e.backgroundOverlayImageURL});const p={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}};return void 0!==e.backgroundPosition&&(b=p[e.backgroundPosition]),void 0!==e.backgroundOverlayPosition&&(u=p[e.backgroundOverlayPosition]),{...{...(0,H.omit)(e,["columnsGap","paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,g.MZ)(t)&&{padding:t},...!(0,g.MZ)(o)&&{paddingTablet:o},...!(0,g.MZ)(l)&&{paddingMobile:l},...!(0,g.MZ)(s)&&{margin:s},...!(0,g.MZ)(a)&&{marginTablet:a},...!(0,g.MZ)(i)&&{marginMobile:i},...!(0,g.MZ)(r)&&{border:r},...!(0,g.MZ)(n)&&{borderRadius:n},...!(0,g.MZ)(c)&&{backgroundImage:c},...!(0,g.MZ)(b)&&{backgroundPosition:b},...!(0,g.MZ)(d)&&{backgroundOverlayImage:d},...!(0,g.MZ)(u)&&{backgroundOverlayPosition:u}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,H.isUndefined)(e[t])&&("number"==typeof e[t]||null===e[t])))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition||void 0!==e.backgroundOverlayPosition&&"object"!=typeof e.backgroundOverlayPosition||void 0!==e.columnsGap,save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag,l=e.hide?"":`has-desktop-${e.layout}-layout`,s=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,a=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,i=n()(t,`has-${e.columns}-columns`,l,s,a,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},{"has-reverse-columns-tablet":e.reverseColumnsTablet&&!e.hideTablet&&"collapsedRows"===e.layoutTablet},{"has-reverse-columns-mobile":e.reverseColumnsMobile&&!e.hideMobile&&"collapsedRows"===e.layoutMobile},`has-${e.columnsGap}-gap`,`has-vertical-${e.verticalAlign}`);return(0,k.jsxs)(o,{className:i,id:e.id,children:[(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,k.jsx)(js,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(js,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})}}];var Ts=Ss,Bs=o(9491),Ms={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"],collapsedRows:["100","100"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"],collapsedRows:["100","100","100"]},4:{equal:["25","25","25","25"],twoColumnGrid:["100","100","100","100"],collapsedRows:["100","100","100","100"]},5:{equal:["20","20","20","20","20"],collapsedRows:["100","100","100","100","100"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"],twoColumnGrid:["100","100","100","100","100","100"],threeColumnGrid:["100","100","100","100","100","100"],collapsedRows:["100","100","100","100","100","100"]}},Ps=({attributes:e,setAttributes:t})=>(0,k.jsx)(d.BlockControls,{children:(0,k.jsx)(d.BlockVerticalAlignmentToolbar,{onChange:o=>e.verticalAlign===o?t({verticalAlign:"unset"}):t({verticalAlign:o}),value:"flex-start"===e.verticalAlign?"top":"flex-end"===e.verticalAlign?"bottom":e.verticalAlign})}),zs=({label:e,onClick:t,layout:o,layoutTablet:s,layoutMobile:a,columns:r})=>{const c=(0,u.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]);let d;return"Desktop"===c?d=o:"Tablet"===c?d=s:"Mobile"===c&&(d=a),(0,k.jsx)(h.k3,{label:e,className:"wp-block-themeisle-blocks-advanced-columns-layout-control",children:1===r&&(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Single Row","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.colsFull)()})})||2===r&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Equal","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.cols2Equal)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("1:2","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===d}),onClick:()=>t("oneTwo"),children:(0,i.cols12)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("2:1","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===d}),onClick:()=>t("twoOne"),children:(0,i.cols21)()})}),("Mobile"===c||"Tablet"===c)&&(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===d}),onClick:()=>t("collapsedRows"),children:(0,i.rowsCollapsed)()})})]})||3===r&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Equal","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.cols3Equal)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("1:1:2","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===d}),onClick:()=>t("oneOneTwo"),children:(0,i.cols112)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("2:1:1","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===d}),onClick:()=>t("twoOneOne"),children:(0,i.cols211)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("1:2:1","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===d}),onClick:()=>t("oneTwoOne"),children:(0,i.cols121)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("1:3:1","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===d}),onClick:()=>t("oneThreeOne"),children:(0,i.cols131)()})}),("Mobile"===c||"Tablet"===c)&&(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===d}),onClick:()=>t("collapsedRows"),children:(0,i.rowsCollapsed)()})})]})||4===r&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Equal","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.cols4Equal)()})}),("Mobile"===c||"Tablet"===c)&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Two Column Grid","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===d}),onClick:()=>t("twoColumnGrid"),children:(0,i.colsCollapsed)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===d}),onClick:()=>t("collapsedRows"),children:(0,i.rowsCollapsed)()})})]})]})||5===r&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Equal","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.cols5Equal)()})}),("Mobile"===c||"Tablet"===c)&&(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===d}),onClick:()=>t("collapsedRows"),children:(0,i.rowsCollapsed)()})})]})||6===r&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Equal","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.cols6Equal)()})}),("Mobile"===c||"Tablet"===c)&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Two Column Grid","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===d}),onClick:()=>t("twoColumnGrid"),children:(0,i.cols2Grid)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Three Column Grid","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===d}),onClick:()=>t("threeColumnGrid"),children:(0,i.cols3Grid)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===d}),onClick:()=>t("collapsedRows"),children:(0,i.rowsCollapsed)()})})]})]})})},As=({attributes:e,setAttributes:t,getValue:o,updateColumnsWidth:s,dividerViewType:a,setDividerViewType:i,changeColumnsNumbers:r})=>{const n=(0,u.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),{responsiveSetAttributes:c}=(0,m.d)(t),[x,f]=(0,y.useTabSwitch)(e.id,"settings"),v=()=>{switch(n){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}},_=()=>{switch(n){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}},w=()=>{switch(n){case"Desktop":return"columnsWidth";case"Tablet":return"columnsWidthTablet";case"Mobile":return"columnsWidthMobile";default:return}};let C=()=>{var e,t,l;switch(n){case"Desktop":return o("columnsWidth");case"Tablet":return null!==(e=o("columnsWidthTablet"))&&void 0!==e?e:o("columnsWidth");case"Mobile":return null!==(t=null!==(l=o("columnsWidthMobile"))&&void 0!==l?l:o("columnsWidthTablet"))&&void 0!==t?t:o("columnsWidth");default:return}};C=C();let j=()=>{var t,o,l;switch(n){case"Desktop":return e.columnsHeightCustom;case"Tablet":return null!==(t=e.columnsHeightCustomTablet)&&void 0!==t?t:e.columnsHeightCustom;case"Mobile":return null!==(o=null!==(l=e.columnsHeightCustomMobile)&&void 0!==l?l:e.columnsHeightCustomTablet)&&void 0!==o?o:e.columnsHeightCustom;default:return}};j=j();const S="top"===a?e.dividerTopType:"bottom"===a?e.dividerBottomType:void 0,T=(e,o)=>{switch(o){case"Desktop":t({hide:e});break;case"Tablet":t({hideTablet:e});break;case"Mobile":t({hideMobile:e})}},B=(e,o)=>{"Tablet"===o?t({reverseColumnsTablet:e}):"Mobile"===o&&t({reverseColumnsMobile:e})},M=(e,t,o,l)=>"color"===e&&t?t:"image"===e&&o?`url( ${o} )`:"gradient"===e&&l?l:void 0;return(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(d.InspectorControls,{children:[(0,k.jsx)(h.R7,{value:x,options:[{label:(0,l.__)("Settings","otter-blocks"),value:"settings"},{label:(0,l.__)("Style","otter-blocks"),value:"style"}],onChange:f}),"settings"===x&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Columns & Layout","otter-blocks"),children:[(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:e.columns,onChange:e=>{6>=e&&t({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),6<e&&t({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),1>=e&&t({layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),r(e)},min:1,max:6}),(0,k.jsx)(zs,{label:(0,l.__)("Layout","otter-blocks"),columns:e.columns,layout:e.layout,layoutTablet:e.layoutTablet,layoutMobile:e.layoutMobile,onClick:o=>{switch(n){case"Desktop":t({layout:o}),s(e.columns,o);break;case"Tablet":t({layoutTablet:o});break;case"Mobile":t({layoutMobile:o})}}})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Section Structure","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(h.ax,{isSynced:e.isSynced,options:[{label:(0,l.__)("Maximum Content Width","otter-blocks"),value:w()},{label:(0,l.__)("Horizontal Align","otter-blocks"),value:"horizontalAlign",isHidden:void 0===o("columnsWidth")}],setAttributes:t}),(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes(w())||!1,className:"o-disabled",children:(0,k.jsxs)(h.k3,{label:(0,l.__)("Maximum Content Width","otter-blocks"),children:[(0,k.jsx)(p.__experimentalUnitControl,{value:C,onChange:e=>c(e,["columnsWidth","columnsWidthTablet","columnsWidthMobile"])}),(0,k.jsx)(h.k2,{values:["columnsWidth","columnsWidthTablet","columnsWidthMobile"],setAttributes:t})]})}),void 0!==o("columnsWidth")&&(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes("horizontalAlign")||!1,className:"o-disabled",children:(0,k.jsx)(p.BaseControl,{label:(0,l.__)("Horizontal Align","otter-blocks"),children:(0,k.jsx)(h.l,{value:o("horizontalAlign"),options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"flex-start"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"flex-end"}],onChange:o=>(o=>{if(e.horizontalAlign===o)return t({horizontalAlign:"unset"});t({horizontalAlign:o})})(o),hasIcon:!0})})}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Minimum Height","otter-blocks"),value:e.columnsHeight,options:[{label:(0,l.__)("Default","otter-blocks"),value:"auto"},{label:(0,l.__)("Fit to Screen","otter-blocks"),value:"100vh"},{label:(0,l.__)("Custom","otter-blocks"),value:"custom"}],onChange:e=>t({columnsHeight:e})}),"custom"===e.columnsHeight&&(0,k.jsxs)(h.k3,{label:(0,l.__)("Custom Height","otter-blocks"),children:[(0,k.jsx)(p.__experimentalUnitControl,{value:j,onChange:e=>{switch(n){case"Desktop":t({columnsHeightCustom:e});break;case"Tablet":t({columnsHeightCustomTablet:e});break;case"Mobile":t({columnsHeightCustomMobile:e})}}}),(0,k.jsx)(h.k2,{values:["columnsHeightCustom","columnsHeightCustomTablet","columnsHeightCustomMobile"],setAttributes:t})]}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:e.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>t({columnsHTMLTag:e})})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Responsive","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Hide this section on Desktop devices?","otter-blocks"),checked:e.hide,onChange:e=>T(e,"Desktop")}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Hide this section on Tablet devices?","otter-blocks"),checked:e.hideTablet,onChange:e=>T(e,"Tablet")}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Hide this section on Mobile devices?","otter-blocks"),checked:e.hideMobile,onChange:e=>T(e,"Mobile")}),(0,k.jsx)("hr",{}),!e.hideTablet&&"collapsedRows"===e.layoutTablet&&(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Reverse Columns in Tablet devices?","otter-blocks"),checked:e.reverseColumnsTablet,onChange:e=>B(e,"Tablet")}),!e.hideMobile&&"collapsedRows"===e.layoutMobile&&(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Reverse Columns in Mobile devices?","otter-blocks"),checked:e.reverseColumnsMobile,onChange:e=>B(e,"Mobile")})]}),(0,k.jsx)(h.Cu,{})]})||"style"===x&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Dimensions","otter-blocks"),children:[(0,k.jsx)(h.ax,{isSynced:e.isSynced,options:[{label:(0,l.__)("Padding","otter-blocks"),value:v()},{label:(0,l.__)("Margin","otter-blocks"),value:_()}],setAttributes:t}),(0,k.jsxs)(h.k3,{label:(0,l.__)("Screen Type","otter-blocks"),children:[(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes(v())||!1,className:"o-disabled",children:(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{const e={..._s.attributes.padding.default};switch(n){case"Desktop":return(0,H.merge)(e,o("padding"));case"Tablet":return(0,H.merge)(e,{...o("padding")},o("paddingTablet"));case"Mobile":return(0,H.merge)(e,{...o("padding")},o("paddingTablet"),o("paddingMobile"));default:return}})(),inputProps:{min:0,max:500},onChange:o=>{switch((0,g.jW)(o)&&(o=void 0),n){case"Desktop":return t({padding:o});case"Tablet":return t({paddingTablet:(0,g.JE)(o,e.padding)});case"Mobile":return t({paddingMobile:(0,g.JE)(o,{...e.padding,...e.paddingTablet})});default:return}}})}),(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes(_())||!1,className:"o-disabled",children:(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{const e={..._s.attributes.margin.default};switch(n){case"Desktop":return(0,H.merge)(e,o("margin"));case"Tablet":return(0,H.merge)(e,{...o("margin")},o("marginTablet"));case"Mobile":return(0,H.merge)(e,{...o("margin")},o("marginTablet"),o("marginMobile"));default:return}})(),inputProps:{min:-500,max:500},sides:["top","bottom"],onChange:o=>{switch((0,g.jW)(o)&&(o=void 0),"object"==typeof o&&(o=Object.fromEntries(Object.entries(o).filter((([e,t])=>null!==t)))),n){case"Desktop":return t({margin:o});case"Tablet":return t({marginTablet:(0,g.JE)(o,e.margin)});case"Mobile":return t({marginMobile:(0,g.JE)(o,{...e.margin,...e.marginTablet})});default:return}}})})]})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Background & Content","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(h._b,{label:(0,l.__)("Text","otter-blocks"),colorValue:e.color,onColorChange:e=>t({color:e}),className:"is-list is-first"}),(0,k.jsx)(h._b,{label:(0,l.__)("Link","otter-blocks"),colorValue:e.linkColor,onColorChange:e=>t({linkColor:e}),className:"is-list"}),(0,k.jsx)(h.JC,{label:(0,l.__)("Background","otter-blocks"),indicator:M(e.backgroundType,e.backgroundColor,e.backgroundImage?.url,e.backgroundGradient),children:(0,k.jsx)(h.zZ,{backgroundType:e.backgroundType,backgroundColor:e.backgroundColor,image:e.backgroundImage,gradient:e.backgroundGradient,focalPoint:e.backgroundPosition,backgroundAttachment:e.backgroundAttachment,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize,changeBackgroundType:e=>t({backgroundType:e}),changeImage:e=>{t({backgroundImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>t({backgroundImage:void 0}),changeColor:e=>t({backgroundColor:e}),changeGradient:e=>t({backgroundGradient:e}),changeBackgroundAttachment:e=>t({backgroundAttachment:e}),changeBackgroundRepeat:e=>t({backgroundRepeat:e}),changeFocalPoint:e=>t({backgroundPosition:e}),changeBackgroundSize:e=>t({backgroundSize:e})})}),(0,k.jsx)(h.JC,{label:(0,l.__)("Background Overlay","otter-blocks"),indicator:M(e.backgroundOverlayType,e.backgroundOverlayColor,e.backgroundOverlayImage?.url,e.backgroundOverlayGradient),children:(0,k.jsx)(h.cR,{backgroundType:e.backgroundOverlayType,backgroundColor:e.backgroundOverlayColor,image:e.backgroundOverlayImage,gradient:e.backgroundOverlayGradient,focalPoint:e.backgroundOverlayPosition,backgroundAttachment:e.backgroundOverlayAttachment,backgroundRepeat:e.backgroundOverlayRepeat,backgroundSize:e.backgroundOverlaySize,backgroundOpacity:e.backgroundOverlayOpacity,backgroundFilterBlur:e.backgroundOverlayFilterBlur,backgroundFilterBrightness:e.backgroundOverlayFilterBrightness,backgroundFilterContrast:e.backgroundOverlayFilterContrast,backgroundFilterGrayscale:e.backgroundOverlayFilterGrayscale,backgroundFilterHue:e.backgroundOverlayFilterHue,backgroundFilterSaturate:e.backgroundOverlayFilterSaturate,backgroundBlend:e.backgroundOverlayBlend,changeBackgroundType:e=>t({backgroundOverlayType:e}),changeImage:e=>{t({backgroundOverlayImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>t({backgroundOverlayImage:void 0}),changeColor:e=>t({backgroundOverlayColor:e}),changeGradient:e=>t({backgroundOverlayGradient:e}),changeBackgroundAttachment:e=>t({backgroundOverlayAttachment:e}),changeBackgroundRepeat:e=>t({backgroundOverlayRepeat:e}),changeFocalPoint:e=>t({backgroundOverlayPosition:e}),changeBackgroundSize:e=>t({backgroundOverlaySize:e}),changeOpacity:e=>t({backgroundOverlayOpacity:e}),changeFilterBlur:e=>t({backgroundOverlayFilterBlur:e}),changeFilterBrightness:e=>t({backgroundOverlayFilterBrightness:e}),changeFilterContrast:e=>t({backgroundOverlayFilterContrast:e}),changeFilterGrayscale:e=>t({backgroundOverlayFilterGrayscale:e}),changeFilterHue:e=>t({backgroundOverlayFilterHue:e}),changeFilterSaturate:e=>t({backgroundOverlayFilterSaturate:e}),changeBlend:e=>t({backgroundOverlayBlend:e})})}),(0,k.jsx)(h._b,{label:(0,l.__)("Text Hover","otter-blocks"),colorValue:e.colorHover,onColorChange:e=>t({colorHover:e}),className:"is-list"})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1,children:[(0,k.jsx)(h._b,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:e.borderColor,onColorChange:e=>t({borderColor:e})}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:e.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,g.jW)(e)&&(e=void 0),t({border:e})}}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:e.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],id:"o-border-raduis-box",onChange:e=>{(0,g.jW)(e)&&(e=void 0),t({borderRadius:e})}}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:e.boxShadow,onChange:()=>t({boxShadow:!e.boxShadow})}),e.boxShadow&&(0,k.jsxs)(h.HZ,{label:(0,l.__)("Border Shadow","otter-blocks"),children:[(0,k.jsx)(d.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:e.boxShadowColor,onColorChange:o=>t({boxShadowColor:100>e.boxShadowColorOpacity&&o?.includes("var(")?getComputedStyle(document.documentElement,null).getPropertyValue(o?.replace("var(","")?.replace(")","")):o})}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:e.boxShadowColorOpacity,onChange:o=>{const l={boxShadowColorOpacity:o};100>o&&e.boxShadowColor?.includes("var(")&&(l.boxShadowColor=getComputedStyle(document.documentElement,null).getPropertyValue(e.boxShadowColor.replace("var(","").replace(")",""))),t(l)},min:0,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:e.boxShadowBlur,onChange:e=>t({boxShadowBlur:e}),min:0,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:e.boxShadowSpread,onChange:e=>t({boxShadowSpread:e}),min:-100,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:e.boxShadowHorizontal,onChange:e=>t({boxShadowHorizontal:e}),min:-100,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:e.boxShadowVertical,onChange:e=>t({boxShadowVertical:e}),min:-100,max:100})]})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Shape Divider","otter-blocks"),initialOpen:!1,className:"wp-block-themeisle-shape-divider",children:[(0,k.jsx)(h.Aw,{label:(0,l.__)("Sides","otter-blocks"),options:[{label:(0,l.__)("Top","otter-blocks"),value:"top"},{label:(0,l.__)("Bottom","otter-blocks"),value:"bottom"}],value:a,onChange:i}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Type","otter-blocks"),value:S,options:[{label:(0,l.__)("None","otter-blocks"),value:"none"},{label:(0,l.__)("Triangle","otter-blocks"),value:"bigTriangle"},{label:(0,l.__)("Right Curve","otter-blocks"),value:"rightCurve"},{label:(0,l.__)("Curve","otter-blocks"),value:"curve"},{label:(0,l.__)("Slant","otter-blocks"),value:"slant"},{label:(0,l.__)("Cloud","otter-blocks"),value:"cloud"}],onChange:e=>{"top"===a?t({dividerTopType:e}):"bottom"===a&&t({dividerBottomType:e})}}),"none"!==S&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(h._b,{label:(0,l.__)("Color","otter-blocks"),colorValue:"top"===a?e.dividerTopColor:"bottom"===a?e.dividerBottomColor:void 0,onColorChange:e=>{"top"===a?t({dividerTopColor:e}):"bottom"===a&&t({dividerBottomColor:e})}}),(0,k.jsx)(h.k3,{label:(0,l.__)("Width","otter-blocks"),children:(0,k.jsx)(p.RangeControl,{value:(()=>{var t,o,l,s,i,r,c,d,b,u,p,h;if("top"===a)switch(n){case"Desktop":return null!==(t=e.dividerTopWidth)&&void 0!==t?t:100;case"Tablet":return null!==(o=null!==(l=e.dividerTopWidthTablet)&&void 0!==l?l:e.dividerTopWidth)&&void 0!==o?o:100;case"Mobile":return null!==(s=null!==(i=null!==(r=e.dividerTopWidthMobile)&&void 0!==r?r:e.dividerTopWidthTablet)&&void 0!==i?i:e.dividerTopWidth)&&void 0!==s?s:100}else if("bottom"===a)switch(n){case"Desktop":return null!==(c=e.dividerBottomWidth)&&void 0!==c?c:100;case"Tablet":return null!==(d=null!==(b=e.dividerBottomWidthTablet)&&void 0!==b?b:e.dividerBottomWidth)&&void 0!==d?d:100;case"Mobile":return null!==(u=null!==(p=null!==(h=e.dividerBottomWidthMobile)&&void 0!==h?h:e.dividerBottomWidthTablet)&&void 0!==p?p:e.dividerBottomWidth)&&void 0!==u?u:100}})(),onChange:e=>{if("top"===a)switch(n){case"Desktop":t({dividerTopWidth:e});break;case"Tablet":t({dividerTopWidthTablet:e});break;case"Mobile":t({dividerTopWidthMobile:e})}else if("bottom"===a)switch(n){case"Desktop":t({dividerBottomWidth:e});break;case"Tablet":t({dividerBottomWidthTablet:e});break;case"Mobile":t({dividerBottomWidthMobile:e})}},step:.1,min:0,max:500})}),(0,k.jsx)(h.k3,{label:(0,l.__)("Height","otter-blocks"),children:(0,k.jsx)(p.RangeControl,{value:(()=>{if("top"===a)switch(n){case"Desktop":return e.dividerTopHeight;case"Tablet":return e.dividerTopHeightTablet;case"Mobile":return e.dividerTopHeightMobile}else if("bottom"===a)switch(n){case"Desktop":return e.dividerBottomHeight;case"Tablet":return e.dividerBottomHeightTablet;case"Mobile":return e.dividerBottomHeightMobile}})(),onChange:e=>{if("top"===a)switch(n){case"Desktop":t({dividerTopHeight:e});break;case"Tablet":t({dividerTopHeightTablet:e});break;case"Mobile":t({dividerTopHeightMobile:e})}else if("bottom"===a)switch(n){case"Desktop":t({dividerBottomHeight:e});break;case"Tablet":t({dividerBottomHeightTablet:e});break;case"Mobile":t({dividerBottomHeightMobile:e})}},step:.1,min:0,max:500})}),"curve"!==S&&"cloud"!==S&&(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Invert Shape Divider","otter-blocks"),checked:(()=>{switch(a){case"top":return e.dividerTopInvert;case"bottom":return e.dividerBottomInvert;default:return}})(),onChange:()=>{switch(a){case"top":t({dividerTopInvert:!e.dividerTopInvert});break;case"bottom":t({dividerBottomInvert:!e.dividerBottomInvert})}}})]})]})]})]}),(0,k.jsx)(h.ux,{value:e.id,onChange:e=>t({id:e})})]})},Fs=({type:e,front:t,style:o,fill:l,invert:s,width:a,height:i})=>"none"!==o&&(0,k.jsxs)("div",{className:n()("wp-block-themeisle-blocks-advanced-columns-separators",e),style:!t&&a?{transform:a?`scaleX( ${a/100} )`:""}:{},children:["bigTriangle"===o&&!1===s&&(0,k.jsx)("svg",{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)("path",{d:"M0 0 L50 100 L100 0 Z"})}),"bigTriangle"===o&&!0===s&&(0,k.jsx)("svg",{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})}),"rightCurve"===o&&!1===s&&(0,k.jsx)("svg",{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})}),"rightCurve"===o&&!0===s&&(0,k.jsx)("svg",{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})}),"curve"===o&&(0,k.jsx)("svg",{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)("path",{d:"M0 100 C40 0 60 0 100 100 Z"})}),"slant"===o&&!1===s&&(0,k.jsx)("svg",{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)("path",{d:"M0 0 L100 100 L100 0 Z"})}),"slant"===o&&!0===s&&(0,k.jsx)("svg",{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)("path",{d:"M0 0 L0 100 L100 0 Z"})}),"cloud"===o&&(0,k.jsx)("svg",{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)("path",{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})})]});const{attributes:Ls}=_s;var Rs=[{name:"themeisle-blocks/section-columns-1",description:(0,l.__)("Single column","otter-blocks"),icon:i.colsFull,title:(0,l.__)("Full","otter-blocks"),attributes:{columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"100"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal",description:(0,l.__)("2 equal columns","otter-blocks"),icon:i.cols2Equal,title:(0,l.__)("1:1","otter-blocks"),attributes:{columns:2,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-2",description:(0,l.__)("1:2 columns","otter-blocks"),icon:i.cols12,title:(0,l.__)("1:2","otter-blocks"),attributes:{columns:2,layout:"oneTwo",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.34"}],["themeisle-blocks/advanced-column",{columnWidth:"66.66"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1",description:(0,l.__)("2:1 columns","otter-blocks"),icon:i.cols21,title:(0,l.__)("2:1","otter-blocks"),attributes:{columns:2,layout:"twoOne",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"66.66"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-3",description:(0,l.__)("3 equal columns","otter-blocks"),icon:i.cols3Equal,title:(0,l.__)("1:1:1","otter-blocks"),attributes:{columns:3,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-1-2",description:(0,l.__)("1:1:2 columns","otter-blocks"),icon:i.cols112,title:(0,l.__)("1:1:2","otter-blocks"),attributes:{columns:3,layout:"oneOneTwo",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1-1",description:(0,l.__)("2:1:1 columns","otter-blocks"),icon:i.cols211,title:(0,l.__)("2:1:1","otter-blocks"),attributes:{columns:3,layout:"twoOneOne",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-4",description:(0,l.__)("4 equal columns","otter-blocks"),icon:i.cols4Equal,title:(0,l.__)("1:1:1:1","otter-blocks"),attributes:{columns:4,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]}];const{name:Ns}=_s;(0,s.registerBlockType)(Ns,{..._s,title:(0,l.__)("Section","otter-blocks"),description:(0,l.__)("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.","otter-blocks"),icon:i.columnsIcon,keywords:["advanced columns","layout","section"],deprecated:Ts,variations:Rs,edit:({attributes:e,setAttributes:t,clientId:o,name:a})=>{(0,b.useEffect)((()=>{const t=(0,y.blockInit)(o,Ls);return()=>t(e.id)}),[e.id]);const{updateBlockAttributes:r,replaceInnerBlocks:c}=(0,u.useDispatch)("core/block-editor"),{sectionBlock:p,isViewportAvailable:h,isPreviewDesktop:x,isPreviewTablet:f,isPreviewMobile:v,children:_,variations:w,defaultVariation:C}=(0,u.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),{getBlockVariations:l,getBlockType:s,getDefaultBlockVariation:i}=e("core/blocks"),{__experimentalGetPreviewDeviceType:r}=!!e("core/edit-post")&&e("core/edit-post");return{sectionBlock:t(o),children:t(o)?.innerBlocks||[],isViewportAvailable:!!r,isPreviewDesktop:!!r&&"Desktop"===r(),isPreviewTablet:!!r&&"Tablet"===r(),isPreviewMobile:!!r&&"Mobile"===r(),blockType:s(a),defaultVariation:i(a,"block"),variations:l(a,"block").filter((({isDefault:e})=>!e))}}),[]),{insertBlock:j,removeBlock:S}=(0,u.useDispatch)("core/block-editor"),T=t=>{e.columns<t?(0,H.times)(t-e.columns,(()=>{const e=(0,s.createBlock)("themeisle-blocks/advanced-column");e&&j(e,_?.length||0,o,!1)})):e.columns>t&&_.slice(t).forEach((e=>S(e.clientId,!1)))},B=(e,t)=>{p.innerBlocks.forEach(((o,l)=>{r(o.clientId,{columnWidth:Ms[e][t][l]})}))};(0,b.useEffect)((()=>{e.columns!==_.length&&(6>=_.length?B(_.length,"equal"):6<_.length?B(6,"equal"):1>=_.length&&B(1,"equal"),t({columns:_.length}))}),[_]),(0,b.useEffect)((()=>{6<e.columns&&(t({columns:6}),T(6))}),[e.columns]),(0,m.g)("color"===e.backgroundType&&e.backgroundColor,e,t);const M=t=>(0,y.getDefaultValueByField)({name:a,field:t,defaultAttributes:Ls,attributes:e}),P=(0,Bs.useViewportMatch)("large",">="),z=(0,Bs.useViewportMatch)("large","<="),A=(0,Bs.useViewportMatch)("small",">="),F=(0,Bs.useViewportMatch)("small","<=");let L=P&&!z&&A&&!F,N=!P&&!z&&A&&!F,I=!(P||z||A||F);h&&!I&&(L=x,N=f,I=v);const[O,V]=(0,b.useState)("top"),D=({mobile:e,tablet:t,desktop:o})=>{var l,s;return null!==(l=null!==(s=I&&e||N&&t||o)&&void 0!==s?s:o)&&void 0!==l?l:100},G=D({mobile:e.dividerTopWidthMobile,tablet:e.dividerTopWidthTablet,desktop:e.dividerTopWidth}),E=D({mobile:e.dividerBottomWidthMobile,tablet:e.dividerBottomWidthTablet,desktop:e.dividerBottomWidth}),$=D({mobile:e.dividerTopHeightMobile,tablet:e.dividerTopHeightTablet,desktop:e.dividerTopHeight}),W=D({mobile:e.dividerBottomHeightMobile,tablet:e.dividerBottomHeightTablet,desktop:e.dividerBottomHeight}),U=e.columnsHTMLTag;let q,Z,J,K,Y,Q={paddingTop:M("padding")&&M("padding").top,paddingRight:M("padding")&&M("padding").right,paddingBottom:M("padding")&&M("padding").bottom,paddingLeft:M("padding")&&M("padding").left,marginTop:M("margin")&&M("margin").top,marginBottom:M("margin")&&M("margin").bottom,minHeight:"custom"===e.columnsHeight?(0,g.ws)(e.columnsHeightCustom):e.columnsHeight};if(N||I){const t=(0,H.pickBy)({paddingTop:M("paddingTablet")?.top,paddingRight:M("paddingTablet")?.right,paddingBottom:M("paddingTablet")?.bottom,paddingLeft:M("paddingTablet")?.left,marginTop:M("marginTablet")?.top,marginBottom:M("marginTablet")?.bottom,minHeight:"custom"===e.columnsHeight?(0,g.ws)(e.columnsHeightCustomTablet):e.columnsHeight},(e=>e));Q=(0,H.merge)(Q,t)}if(I){const t=(0,H.pickBy)({paddingTop:M("paddingMobile")?.top,paddingRight:M("paddingMobile")?.right,paddingBottom:M("paddingMobile")?.bottom,paddingLeft:M("paddingMobile")?.left,marginTop:M("marginMobile")?.top,marginBottom:M("marginMobile")?.bottom,minHeight:"custom"===e.columnsHeight?(0,g.ws)(e.columnsHeightCustomMobile):e.columnsHeight},(e=>e));Q=(0,H.merge)(Q,t)}"color"===e.backgroundType&&(q={backgroundColor:e.backgroundColor}),"image"===e.backgroundType&&(q={backgroundImage:`url( '${e.backgroundImage?.url}' )`,backgroundAttachment:e.backgroundAttachment,backgroundPosition:`${Math.round(100*e.backgroundPosition?.x)}% ${Math.round(100*e.backgroundPosition?.y)}%`,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize}),"gradient"===e.backgroundType&&(q={backgroundImage:e.backgroundGradient}),e.border&&!(0,H.isEmpty)(e.border)&&(J={borderTopWidth:e.border.top,borderRightWidth:e.border.right,borderBottomWidth:e.border.bottom,borderLeftWidth:e.border.left,borderStyle:"solid",borderColor:e.borderColor}),e.borderRadius&&!(0,H.isEmpty)(e.borderRadius)&&(K={borderTopLeftRadius:e.borderRadius.top,borderTopRightRadius:e.borderRadius.right,borderBottomRightRadius:e.borderRadius.bottom,borderBottomLeftRadius:e.borderRadius.left}),!0===e.boxShadow&&(Y={boxShadow:`${e.boxShadowHorizontal}px ${e.boxShadowVertical}px ${e.boxShadowBlur}px ${e.boxShadowSpread}px ${!e.boxShadowColor.includes("var(")||void 0!==e.boxShadowColorOpacity&&100!==e.boxShadowColorOpacity?R()(e.boxShadowColor?e.boxShadowColor:"#000000",e.boxShadowColorOpacity):e.boxShadowColor}`});const X={...Q,...q,...J,...K,...Y,"--link-color":e.linkColor};"color"===e.backgroundOverlayType&&(Z={background:e.backgroundOverlayColor,opacity:e.backgroundOverlayOpacity/100}),"image"===e.backgroundOverlayType&&(Z={backgroundImage:`url( '${e.backgroundOverlayImage?.url}' )`,backgroundAttachment:e.backgroundOverlayAttachment,backgroundPosition:`${Math.round(100*e.backgroundOverlayPosition?.x)}% ${Math.round(100*e.backgroundOverlayPosition?.y)}%`,backgroundRepeat:e.backgroundOverlayRepeat,backgroundSize:e.backgroundOverlaySize,opacity:e.backgroundOverlayOpacity/100}),"gradient"===e.backgroundOverlayType&&(Z={background:e.backgroundOverlayGradient,opacity:e.backgroundOverlayOpacity/100});const ee={...Z,...K,mixBlendMode:e.backgroundOverlayBlend,filter:`blur( ${e.backgroundOverlayFilterBlur/10}px ) brightness( ${e.backgroundOverlayFilterBrightness/10} ) contrast( ${e.backgroundOverlayFilterContrast/10} ) grayscale( ${e.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${e.backgroundOverlayFilterHue}deg ) saturate( ${e.backgroundOverlayFilterSaturate/10} )`};let te={};e.columnsWidth&&(te={maxWidth:(0,g.ws)(M("columnsWidth"))}),(N||I)&&M("columnsWidthTablet")&&(te.maxWidth=(0,g.ws)(M("columnsWidthTablet"))),I&&M("columnsWidthMobile")&&(te.maxWidth=(0,g.ws)(M("columnsWidthMobile")));const oe=n()(`has-${e.columns}-columns`,`has-desktop-${e.layout}-layout`,`has-tablet-${e.layoutTablet}-layout`,`has-mobile-${e.layoutMobile}-layout`,`has-vertical-${e.verticalAlign}`,`has-horizontal-${e.horizontalAlign}`,{"has-reverse-columns-tablet":e.reverseColumnsTablet&&!e.hideTablet&&"collapsedRows"===e.layoutTablet},{"has-reverse-columns-mobile":e.reverseColumnsMobile&&!e.hideMobile&&"collapsedRows"===e.layoutMobile},{"has-viewport-desktop":L},{"has-viewport-tablet":N},{"has-viewport-mobile":I}),le=e.columns?(0,d.useBlockProps)({id:e.id,className:oe,style:X}):(0,d.useBlockProps)();return e.columns?(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)("style",{children:[`#block-${o} `+(0,g.SJ)([["--text-color",e.color]]),`#block-${o}:hover `+(0,g.SJ)([["--text-color",e.colorHover]])]}),(0,k.jsx)(Ps,{attributes:e,setAttributes:t}),(0,k.jsx)(As,{attributes:e,setAttributes:t,getValue:M,updateColumnsWidth:B,dividerViewType:O,setDividerViewType:V,changeColumnsNumbers:T}),(0,k.jsxs)(U,{...le,children:[(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:ee}),(0,k.jsx)(Fs,{type:"top",style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert,width:G,height:$}),(0,k.jsx)("div",{className:"innerblocks-wrap",style:te,children:(0,k.jsx)(d.InnerBlocks,{allowedBlocks:["themeisle-blocks/advanced-column"],orientation:"horizontal"})}),(0,k.jsx)(Fs,{type:"bottom",style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert,width:E,height:W})]})]}):(0,k.jsx)("div",{...le,children:(0,k.jsx)(d.__experimentalBlockVariationPicker,{label:(0,l.__)("Section","otter-blocks"),instructions:(0,l.__)("Select a layout to start with, or make one yourself.","otter-blocks"),icon:i.columnsIcon,variations:w,onSelect:(e=C)=>{e&&(c(o,(0,s.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0),t(e.attributes))},allowSkip:!0})})},save:({attributes:e})=>{const t=e.columnsHTMLTag,o=e.hide?"":`has-desktop-${e.layout}-layout`,l=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,s=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,a=n()(`has-${e.columns}-columns`,o,l,s,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},{"has-reverse-columns-tablet":e.reverseColumnsTablet&&!e.hideTablet&&"collapsedRows"===e.layoutTablet},{"has-reverse-columns-mobile":e.reverseColumnsMobile&&!e.hideMobile&&"collapsedRows"===e.layoutMobile},`has-vertical-${e.verticalAlign}`),i=d.useBlockProps.save({id:e.id,className:a});return(0,k.jsxs)(t,{...i,children:[(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,k.jsx)(Fs,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(Fs,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})},example:{viewportWidth:1e3,attributes:{},innerBlocks:[{name:"themeisle-blocks/advanced-column",attributes:{margin:{right:"10px"}},innerBlocks:[{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis."}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:"Suspendisse commodo neque lacus, a dictum orci interdum et."}}]},{name:"themeisle-blocks/advanced-column",attributes:{margin:{left:"10px"}},innerBlocks:[{name:"core/paragraph",attributes:{content:"Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit."}},{name:"core/paragraph",attributes:{content:"Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim."}}]}]}});var Is=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-column","title":"Section Column","category":"themeisle-blocks","description":"A single column within a Section block. Powered by Otter.","parent":["themeisle-blocks/advanced-columns"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"padding":{"type":"object","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"color":{"type":"string"},"colorHover":{"type":"string"},"linkColor":{"type":"string"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayOpacity":{"type":"number","default":50},"backgroundOverlayType":{"type":"string","default":"color"},"backgroundOverlayColor":{"type":"string"},"backgroundOverlayImage":{"type":"object"},"backgroundOverlayAttachment":{"type":"string","default":"scroll"},"backgroundOverlayPosition":{"type":"object"},"backgroundOverlayRepeat":{"type":"string","default":"repeat"},"backgroundOverlaySize":{"type":"string","default":"auto"},"backgroundOverlayGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayFilterBlur":{"type":"number","default":0},"backgroundOverlayFilterBrightness":{"type":"number","default":10},"backgroundOverlayFilterContrast":{"type":"number","default":10},"backgroundOverlayFilterGrayscale":{"type":"number","default":0},"backgroundOverlayFilterHue":{"type":"number","default":0},"backgroundOverlayFilterSaturate":{"type":"number","default":10},"backgroundOverlayBlend":{"type":"string","default":"normal"},"backgroundColorHover":{"type":"string"},"border":{"type":"object"},"borderColor":{"type":"string"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"columnsHTMLTag":{"type":"string","default":"div"},"columnWidth":{"type":"string"},"verticalAlign":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"inserter":false,"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}');const Os={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},Hs=[{attributes:Os,supports:{inserter:!1,reusable:!1,html:!1},save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag;let l,s,a,i;if("color"===e.backgroundType&&(l={background:e.backgroundColor}),"image"===e.backgroundType&&(l={backgroundImage:`url( '${e.backgroundImageURL}' )`,backgroundAttachment:e.backgroundAttachment,backgroundPosition:e.backgroundPosition,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize}),"gradient"===e.backgroundType){let t;t="linear"===e.backgroundGradientType?`${e.backgroundGradientAngle}deg`:`at ${e.backgroundGradientPosition}`,l={background:`${e.backgroundGradientType}-gradient( ${t}, ${e.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${e.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}% )`}}"linked"===e.borderType&&(s={borderWidth:`${e.border}px`,borderStyle:"solid",borderColor:e.borderColor}),"unlinked"===e.borderType&&(s={borderTopWidth:`${e.borderTop}px`,borderRightWidth:`${e.borderRight}px`,borderBottomWidth:`${e.borderBottom}px`,borderLeftWidth:`${e.borderLeft}px`,borderStyle:"solid",borderColor:e.borderColor}),"linked"===e.borderRadiusType&&(a={borderRadius:`${e.borderRadius}px`}),"unlinked"===e.borderRadiusType&&(a={borderTopLeftRadius:`${e.borderRadiusTop}px`,borderTopRightRadius:`${e.borderRadiusRight}px`,borderBottomRightRadius:`${e.borderRadiusBottom}px`,borderBottomLeftRadius:`${e.borderRadiusLeft}px`}),!0===e.boxShadow&&(i={boxShadow:`${e.boxShadowHorizontal}px ${e.boxShadowVertical}px ${e.boxShadowBlur}px ${e.boxShadowSpread}px ${R()(e.boxShadowColor?e.boxShadowColor:"#000000",e.boxShadowColorOpacity)}`});const r={...l,...s,...a,...i};return(0,k.jsx)(o,{className:t,id:e.id,style:r,children:(0,k.jsx)(d.InnerBlocks.Content,{})})}},{attributes:{...Os,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{let t="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${R()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${R()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}return{...{...(0,H.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),backgroundGradient:t}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor,save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag;return(0,k.jsx)(o,{className:t,id:e.id,children:(0,k.jsx)(d.InnerBlocks.Content,{})})}},{attributes:{...(0,H.omit)(Os,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{const t={},o={},l={},s={},a={},i={},r={},n={};let c={},d={};"unlinked"===e.paddingType?(t.top=(0,H.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,H.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,H.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,H.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,H.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,H.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,H.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,H.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,H.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,H.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,H.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(s.top=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",s.bottom=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",s.left=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",s.right=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px"):(s.top=(0,H.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",s.bottom=(0,H.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px",s.left=(0,H.isUndefined)(e.marginLeft)?"20px":e.marginLeft+"px",s.right=(0,H.isUndefined)(e.marginRight)?"20px":e.marginRight+"px"),"linked"===e.marginTypeTablet?(a.top=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",a.bottom=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",a.left=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",a.right=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(a.top=(0,H.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",a.bottom=(0,H.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px",a.left=(0,H.isUndefined)(e.marginLeftTablet)?null:e.marginLeftTablet+"px",a.right=(0,H.isUndefined)(e.marginRightTablet)?null:e.marginRightTablet+"px"),"linked"===e.marginTypeMobile?(i.top=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",i.bottom=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",i.left=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",i.right=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(i.top=(0,H.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",i.bottom=(0,H.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px",i.left=(0,H.isUndefined)(e.marginLeftMobile)?null:e.marginLeftMobile+"px",i.right=(0,H.isUndefined)(e.marginRightMobile)?null:e.marginRightMobile+"px"),"unlinked"===e.borderType?(r.top=(0,H.isUndefined)(e.borderTop)?null:e.borderTop+"px",r.bottom=(0,H.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",r.left=(0,H.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",r.right=(0,H.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(r.top=(0,H.isUndefined)(e.border)?null:e.border+"px",r.bottom=(0,H.isUndefined)(e.border)?null:e.border+"px",r.left=(0,H.isUndefined)(e.border)?null:e.border+"px",r.right=(0,H.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(n.top=(0,H.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",n.bottom=(0,H.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",n.left=(0,H.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",n.right=(0,H.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(n.top=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.bottom=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.left=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.right=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(c={id:e.backgroundImageID,url:e.backgroundImageURL});return void 0!==e.backgroundPosition&&(d={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}}[e.backgroundPosition]),{...{...(0,H.omit)(e,["paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,g.MZ)(t)&&{padding:t},...!(0,g.MZ)(o)&&{paddingTablet:o},...!(0,g.MZ)(l)&&{paddingMobile:l},...!(0,g.MZ)(s)&&{margin:s},...!(0,g.MZ)(a)&&{marginTablet:a},...!(0,g.MZ)(i)&&{marginMobile:i},...!(0,g.MZ)(r)&&{border:r},...!(0,g.MZ)(n)&&{borderRadius:n},...!(0,g.MZ)(c)&&{backgroundImage:c},...!(0,g.MZ)(d)&&{backgroundPosition:d}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,H.isUndefined)(e[t])&&"number"==typeof e[t]))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition,save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag;return(0,k.jsx)(o,{className:t,id:e.id,children:(0,k.jsx)(d.InnerBlocks.Content,{})})}}];var Vs=Hs,Ds=({attributes:e,setAttributes:t})=>(0,k.jsx)(d.BlockControls,{children:(0,k.jsx)(d.BlockVerticalAlignmentToolbar,{onChange:o=>e.verticalAlign===o?t({verticalAlign:void 0}):t({verticalAlign:o}),value:e.verticalAlign})}),Gs=({attributes:e,setAttributes:t,getValue:o,parentBlock:s,updateBlockAttributes:a,currentBlockWidth:i,nextBlock:r,nextBlockWidth:n})=>{const c=(0,u.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[m,x]=(0,y.useTabSwitch)(e.id,"layout"),f=()=>{switch(c){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}},v=()=>{switch(c){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}},_=(e,t,o,l)=>"color"===e&&t?t:"image"===e&&o?`url( ${o} )`:"gradient"===e&&l?l:void 0;return(0,k.jsxs)(d.InspectorControls,{children:[(0,k.jsx)(h.R7,{value:m,options:[{label:(0,l.__)("Layout","otter-blocks"),value:"layout"},{label:(0,l.__)("Style","otter-blocks"),value:"style"}],onChange:x}),"layout"===m&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Column Structure","otter-blocks"),children:[1<s.innerBlocks.length&&(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Column Width","otter-blocks"),value:Number(e.columnWidth),onChange:e=>{const o=e||10,l=Number(i.current)-o+Number(n.current);i.current=o,n.current=l,t({columnWidth:o.toFixed(2)}),a(r.current,{columnWidth:l.toFixed(2)})},step:.1,min:10,max:Number(e.columnWidth)+Number(n.current)-10}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:e.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>t({columnsHTMLTag:e})})]}),(0,k.jsx)(h.Cu,{})]})||"style"===m&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Dimensions","otter-blocks"),children:[(0,k.jsx)(h.ax,{isSynced:e.isSynced,options:[{label:(0,l.__)("Padding","otter-blocks"),value:f()},{label:(0,l.__)("Margin","otter-blocks"),value:v()}],setAttributes:t}),(0,k.jsxs)(h.k3,{label:(0,l.__)("Screen Type","otter-blocks"),children:[(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes(f())||!1,className:"o-disabled",children:(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{const e={...Is.attributes.padding.default};switch(c){case"Desktop":return(0,H.merge)(e,o("padding"));case"Tablet":return(0,H.merge)(e,{...o("padding")},o("paddingTablet"));case"Mobile":return(0,H.merge)(e,{...o("padding")},o("paddingTablet"),o("paddingMobile"));default:return}})(),inputProps:{min:0,max:500},onChange:o=>{switch((0,g.jW)(o)&&(o=void 0),c){case"Desktop":return t({padding:o});case"Tablet":return t({paddingTablet:(0,g.JE)(o,e.padding)});case"Mobile":return t({paddingMobile:(0,g.JE)(o,{...e.padding,...e.paddingTablet})});default:return}}})}),(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes(v())||!1,className:"o-disabled",children:(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{const e={...Is.attributes.margin.default};switch(c){case"Desktop":return(0,H.merge)(e,o("margin"));case"Tablet":return(0,H.merge)(e,{...o("margin")},o("marginTablet"));case"Mobile":return(0,H.merge)(e,{...o("margin")},o("marginTablet"),o("marginMobile"));default:return}})(),inputProps:{min:-500,max:500},onChange:o=>{switch((0,g.jW)(o)&&(o=void 0),c){case"Desktop":return t({margin:o});case"Tablet":return t({marginTablet:(0,g.JE)(o,e.margin)});case"Mobile":return t({marginMobile:(0,g.JE)(o,{...e.margin,...e.marginTablet})});default:return}}})})]})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Background & Content","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(h._b,{label:(0,l.__)("Text","otter-blocks"),colorValue:e.color,onColorChange:e=>t({color:e}),className:"is-list is-first"}),(0,k.jsx)(h._b,{label:(0,l.__)("Link","otter-blocks"),colorValue:e.linkColor,onColorChange:e=>t({linkColor:e}),className:"is-list"}),(0,k.jsx)(h.JC,{label:(0,l.__)("Background","otter-blocks"),indicator:_(e.backgroundType,e.backgroundColor,e.backgroundImage?.url,e.backgroundGradient),children:(0,k.jsx)(h.zZ,{backgroundType:e.backgroundType,backgroundColor:e.backgroundColor,image:e.backgroundImage,gradient:e.backgroundGradient,focalPoint:e.backgroundPosition,backgroundAttachment:e.backgroundAttachment,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize,changeBackgroundType:e=>t({backgroundType:e}),changeImage:e=>{t({backgroundImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>t({backgroundImage:void 0}),changeColor:e=>t({backgroundColor:e}),changeGradient:e=>t({backgroundGradient:e}),changeBackgroundAttachment:e=>t({backgroundAttachment:e}),changeBackgroundRepeat:e=>t({backgroundRepeat:e}),changeFocalPoint:e=>t({backgroundPosition:e}),changeBackgroundSize:e=>t({backgroundSize:e})})}),(0,k.jsx)(h.JC,{label:(0,l.__)("Background Overlay","otter-blocks"),indicator:_(e.backgroundOverlayType,e.backgroundOverlayColor,e.backgroundOverlayImage?.url,e.backgroundOverlayGradient),children:(0,k.jsx)(h.cR,{backgroundType:e.backgroundOverlayType,backgroundColor:e.backgroundOverlayColor,image:e.backgroundOverlayImage,gradient:e.backgroundOverlayGradient,focalPoint:e.backgroundOverlayPosition,backgroundAttachment:e.backgroundOverlayAttachment,backgroundRepeat:e.backgroundOverlayRepeat,backgroundSize:e.backgroundOverlaySize,backgroundOpacity:e.backgroundOverlayOpacity,backgroundFilterBlur:e.backgroundOverlayFilterBlur,backgroundFilterBrightness:e.backgroundOverlayFilterBrightness,backgroundFilterContrast:e.backgroundOverlayFilterContrast,backgroundFilterGrayscale:e.backgroundOverlayFilterGrayscale,backgroundFilterHue:e.backgroundOverlayFilterHue,backgroundFilterSaturate:e.backgroundOverlayFilterSaturate,backgroundBlend:e.backgroundOverlayBlend,changeBackgroundType:e=>t({backgroundOverlayType:e}),changeImage:e=>{t({backgroundOverlayImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>t({backgroundOverlayImage:void 0}),changeColor:e=>t({backgroundOverlayColor:e}),changeGradient:e=>t({backgroundOverlayGradient:e}),changeBackgroundAttachment:e=>t({backgroundOverlayAttachment:e}),changeBackgroundRepeat:e=>t({backgroundOverlayRepeat:e}),changeFocalPoint:e=>t({backgroundOverlayPosition:e}),changeBackgroundSize:e=>t({backgroundOverlaySize:e}),changeOpacity:e=>t({backgroundOverlayOpacity:e}),changeFilterBlur:e=>t({backgroundOverlayFilterBlur:e}),changeFilterBrightness:e=>t({backgroundOverlayFilterBrightness:e}),changeFilterContrast:e=>t({backgroundOverlayFilterContrast:e}),changeFilterGrayscale:e=>t({backgroundOverlayFilterGrayscale:e}),changeFilterHue:e=>t({backgroundOverlayFilterHue:e}),changeFilterSaturate:e=>t({backgroundOverlayFilterSaturate:e}),changeBlend:e=>t({backgroundOverlayBlend:e})})}),(0,k.jsx)(h._b,{label:(0,l.__)("Text Hover","otter-blocks"),colorValue:e.colorHover,onColorChange:e=>t({colorHover:e}),className:"is-list"}),(0,k.jsx)(h._b,{label:(0,l.__)("Background Hover","otter-blocks"),colorValue:e.backgroundColorHover,onColorChange:e=>t({backgroundColorHover:e}),className:"is-list"})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1,children:[(0,k.jsx)(h._b,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:e.borderColor,onColorChange:e=>t({borderColor:e})}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:e.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,g.jW)(e)&&(e=void 0),t({border:e})}}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:e.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],onChange:e=>{(0,g.jW)(e)&&(e=void 0),t({borderRadius:e})}}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:e.boxShadow,onChange:()=>t({boxShadow:!e.boxShadow})}),e.boxShadow&&(0,k.jsxs)(h.HZ,{label:(0,l.__)("Shadow Properties","otter-blocks"),children:[(0,k.jsx)(d.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:e.boxShadowColor,onColorChange:o=>t({boxShadowColor:100>e.boxShadowColorOpacity&&o?.includes("var(")?getComputedStyle(document.documentElement,null).getPropertyValue(o?.replace("var(","")?.replace(")","")):o})}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:e.boxShadowColorOpacity,onChange:o=>{const l={boxShadowColorOpacity:o};100>o&&e.boxShadowColor?.includes("var(")&&(l.boxShadowColor=getComputedStyle(document.documentElement,null).getPropertyValue(e.boxShadowColor.replace("var(","").replace(")",""))),t(l)},min:0,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:e.boxShadowBlur,onChange:e=>t({boxShadowBlur:e}),min:0,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:e.boxShadowSpread,onChange:e=>t({boxShadowSpread:e}),min:-100,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:e.boxShadowHorizontal,onChange:e=>t({boxShadowHorizontal:e}),min:-100,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:e.boxShadowVertical,onChange:e=>t({boxShadowVertical:e}),min:-100,max:100})]})]})]})]})};const{attributes:Es}=Is;const{name:$s}=Is;(0,s.registerBlockType)($s,{...Is,title:(0,l.__)("Section Column","otter-blocks"),description:(0,l.__)("A single column within a Section block. Powered by Otter.","otter-blocks"),icon:i.columnIcon,deprecated:Vs,edit:({name:e,attributes:t,setAttributes:o,isSelected:l,clientId:s})=>{const{updateBlockAttributes:a}=(0,u.useDispatch)("core/block-editor"),{adjacentBlockClientId:i,adjacentBlock:r,parentBlock:n,hasInnerBlocks:c,isViewportAvailable:p,isPreviewDesktop:h,isPreviewTablet:x,isPreviewMobile:f}=(0,u.useSelect)((e=>{const{getAdjacentBlockClientId:t,getBlock:o,getBlockRootClientId:l}=e("core/block-editor"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post"),i=o(s),r=t(s);return{adjacentBlockClientId:r,adjacentBlock:o(r),parentBlock:o(l(s)),hasInnerBlocks:!(!i||!i.innerBlocks.length),isViewportAvailable:!!a,isPreviewDesktop:!!a&&"Desktop"===a(),isPreviewTablet:!!a&&"Tablet"===a(),isPreviewMobile:!!a&&"Mobile"===a()}}),[]),v=(0,Bs.useViewportMatch)("large",">="),_=(0,Bs.useViewportMatch)("large","<="),w=(0,Bs.useViewportMatch)("small",">="),C=(0,Bs.useViewportMatch)("small","<=");(0,b.useEffect)((()=>{const e=(0,y.blockInit)(s,Es);return()=>e(t.id)}),[t.id]),(0,b.useEffect)((()=>{if(1<n.innerBlocks.length&&!i){const e=n.innerBlocks.findIndex((e=>e.clientId===s)),t=n.innerBlocks[e-1];S.current=t.clientId,T.current=t.attributes.columnWidth}}),[]),(0,b.useEffect)((()=>{if(1<n.innerBlocks.length)if(i)T.current=r.attributes.columnWidth,S.current=i,j.current=t.columnWidth;else{const e=n.innerBlocks.findIndex((e=>e.clientId===s)),o=n.innerBlocks[e-1];T.current=o.attributes.columnWidth,S.current=o.clientId,j.current=t.columnWidth}}),[l,t.columnWidth,n.innerBlocks.length]),(0,m.g)("color"===t.backgroundType&&t.backgroundColor,t,o);const j=(0,b.useRef)(t.columnWidth),S=(0,b.useRef)(i&&i),T=(0,b.useRef)(r&&r.attributes.columnWidth),B=o=>(0,y.getDefaultValueByField)({name:e,field:o,defaultAttributes:Es,attributes:t});let M=v&&!_&&w&&!C,P=!v&&!_&&w&&!C,z=!(v||_||w||C);p&&!z&&(M=h,P=x,z=f);const{layout:A,layoutTablet:F,layoutMobile:L}=n.attributes,N=n.innerBlocks.findIndex((e=>e.clientId===s));let{columns:I}=n.attributes;6<I&&(I=6),void 0===t.columnWidth&&a(s,{columnWidth:Ms[I][A][N]});const O=t.columnsHTMLTag;let V,D,G,E,$,W={paddingTop:B("padding")?.top,paddingRight:B("padding")?.right,paddingBottom:B("padding")?.bottom,paddingLeft:B("padding")?.left,marginTop:B("margin")?.top,marginRight:B("margin")?.right,marginBottom:B("margin")?.bottom,marginLeft:B("margin")?.left};if(M){const e=(0,H.pickBy)({flexBasis:`${t.columnWidth}%`},(e=>e));W=(0,H.merge)(W,e)}if(P||z){const e=Ms[I][F][N],t=(0,H.pickBy)({flexBasis:`${e}%`,paddingTop:B("paddingTablet")?.top,paddingRight:B("paddingTablet")?.right,paddingBottom:B("paddingTablet")?.bottom,paddingLeft:B("paddingTablet")?.left,marginTop:B("marginTablet")?.top,marginRight:B("marginTablet")?.right,marginBottom:B("marginTablet")?.bottom,marginLeft:B("marginTablet")?.left},(e=>e));W=(0,H.merge)(W,t)}if(z){const e=Ms[I][L][N],t=(0,H.pickBy)({flexBasis:`${e}%`,paddingTop:B("paddingMobile")?.top,paddingRight:B("paddingMobile")?.right,paddingBottom:B("paddingMobile")?.bottom,paddingLeft:B("paddingMobile")?.left,marginTop:B("marginMobile")?.top,marginRight:B("marginMobile")?.right,marginBottom:B("marginMobile")?.bottom,marginLeft:B("marginMobile")?.left},(e=>e));W=(0,H.merge)(W,t)}"color"===t.backgroundType&&(V={"--background":t.backgroundColor}),"image"===t.backgroundType&&(V={"--background":`url( '${t.backgroundImage?.url}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:`${Math.round(100*t.backgroundPosition?.x)}% ${Math.round(100*t.backgroundPosition?.y)}%`,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType&&(V={"--background":t.backgroundGradient}),t.border&&!(0,H.isEmpty)(t.border)&&(G={borderTopWidth:t.border.top,borderRightWidth:t.border.right,borderBottomWidth:t.border.bottom,borderLeftWidth:t.border.left,borderStyle:"solid",borderColor:t.borderColor}),t.borderRadius&&!(0,H.isEmpty)(t.borderRadius)&&(E={borderTopLeftRadius:t.borderRadius.top,borderTopRightRadius:t.borderRadius.right,borderBottomRightRadius:t.borderRadius.bottom,borderBottomLeftRadius:t.borderRadius.left}),!0===t.boxShadow&&($={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${!t.boxShadowColor.includes("var(")||void 0!==t.boxShadowColorOpacity&&100!==t.boxShadowColorOpacity?R()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity):t.boxShadowColor}`});const U={...W,...V,...G,...E,...$,"--link-color":t.linkColor,"--background-color-hover":t.backgroundColorHover};t.verticalAlign&&(U.alignItems={top:"flex-start",center:"center",bottom:"flex-end"}[t.verticalAlign]),"color"===t.backgroundOverlayType&&(D={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(D={backgroundImage:`url( '${t.backgroundOverlayImage?.url}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:`${Math.round(100*t.backgroundOverlayPosition?.x)}% ${Math.round(100*t.backgroundOverlayPosition?.y)}%`,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType&&(D={background:t.backgroundOverlayGradient,opacity:t.backgroundOverlayOpacity/100});const q="color"===t.backgroundOverlayType&&t.backgroundOverlayColor||"image"===t.backgroundOverlayType&&t.backgroundOverlayImage?.url||"gradient"===t.backgroundOverlayType&&t.backgroundOverlayGradient,Z={...D,...E,mixBlendMode:t.backgroundOverlayBlend,filter:`blur( ${t.backgroundOverlayFilterBlur/10}px ) brightness( ${t.backgroundOverlayFilterBrightness/10} ) contrast( ${t.backgroundOverlayFilterContrast/10} ) grayscale( ${t.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${t.backgroundOverlayFilterHue}deg ) saturate( ${t.backgroundOverlayFilterSaturate/10} )`},J=(0,d.useBlockProps)({id:t.id,style:U});return(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)("style",{children:[`#block-${s}`+(0,g.SJ)([["--text-color",t.color]]),`#block-${s}:hover`+(0,g.SJ)([["--text-color",t.colorHover]])]}),(0,k.jsx)(Ds,{attributes:t,setAttributes:o}),(0,k.jsx)(Gs,{attributes:t,setAttributes:o,getValue:B,parentBlock:n,updateBlockAttributes:a,currentBlockWidth:j,nextBlock:S,nextBlockWidth:T}),(0,k.jsxs)(O,{...J,children:[q&&(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-column-overlay",style:Z}),(0,k.jsx)(d.InnerBlocks,{templateLock:!1,renderAppender:!c&&d.InnerBlocks.ButtonBlockAppender})]})]})},save:({attributes:e})=>{const t=e.columnsHTMLTag,o="color"===e.backgroundOverlayType&&e.backgroundOverlayColor||"image"===e.backgroundOverlayType&&e.backgroundOverlayImage?.url||"gradient"===e.backgroundOverlayType&&e.backgroundOverlayGradient,l=d.useBlockProps.save({id:e.id});return(0,k.jsxs)(t,{...l,children:[o&&(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-column-overlay"}),(0,k.jsx)(d.InnerBlocks.Content,{})]})}});var Ws=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/sharing-icons","title":"Sharing Icons","category":"themeisle-blocks","description":"Share buttons for your website visitors to share content on any social sharing service. Powered by Otter.","keywords":["social media","sharing","icons"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"facebook":{"type":["object","boolean"],"default":{"active":true}},"twitter":{"type":["object","boolean"],"default":{"active":true}},"linkedin":{"type":["object","boolean"],"default":{"active":true}},"pinterest":{"type":["object","boolean"],"default":{"active":false}},"tumblr":{"type":["object","boolean"],"default":{"active":false}},"reddit":{"type":["object","boolean"],"default":{"active":false}},"whatsapp":{"type":["object","boolean"],"default":{"active":false}},"telegram":{"type":["object","boolean"],"default":{"active":false}},"email":{"type":["object","boolean"],"default":{"active":false}},"mastodon":{"type":["object","boolean"],"default":{"active":false}},"comments":{"type":["object","boolean"],"default":{"active":false}},"threads":{"type":["object","boolean"],"default":{"active":false}},"gap":{"type":"number"},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"context":{"type":"string"}},"styles":[{"name":"default","label":"Regular","isDefault":true},{"name":"icons","label":"Icons Only"}],"supports":{"align":["left","center","right"]},"editorStyle":"otter-sharing-icons-editor","style":"otter-sharing-icons-style"}'),Us=window.wp.serverSideRender,qs=o.n(Us),Zs=({icon:e})=>"facebook"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})}):"twitter"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"})}):"linkedin"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"})}):"pinterest"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"})}):"tumblr"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"})}):"reddit"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"})}):"whatsapp"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,k.jsx)(p.Path,{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"})}):"email"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{d:"M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"})}):"telegram"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{d:"M248,8C111.033,8,0,119.033,0,256S111.033,504,248,504,496,392.967,496,256,384.967,8,248,8ZM362.952,176.66c-3.732,39.215-19.881,134.378-28.1,178.3-3.476,18.584-10.322,24.816-16.948,25.425-14.4,1.326-25.338-9.517-39.287-18.661-21.827-14.308-34.158-23.215-55.346-37.177-24.485-16.135-8.612-25,5.342-39.5,3.652-3.793,67.107-61.51,68.335-66.746.153-.655.3-3.1-1.154-4.384s-3.59-.849-5.135-.5q-3.283.746-104.608,69.142-14.845,10.194-26.894,9.934c-8.855-.191-25.888-5.006-38.551-9.123-15.531-5.048-27.875-7.717-26.8-16.291q.84-6.7,18.45-13.7,108.446-47.248,144.628-62.3c68.872-28.647,83.183-33.623,92.511-33.789,2.052-.034,6.639.474,9.61,2.885a10.452,10.452,0,0,1,3.53,6.716A43.765,43.765,0,0,1,362.952,176.66Z"})}):"mastodon"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{d:"M433 179.11c0-97.2-63.71-125.7-63.71-125.7-62.52-28.7-228.56-28.4-290.48 0 0 0-63.72 28.5-63.72 125.7 0 115.7-6.6 259.4 105.63 289.1 40.51 10.7 75.32 13 103.33 11.4 50.81-2.8 79.32-18.1 79.32-18.1l-1.7-36.9s-36.31 11.4-77.12 10.1c-40.41-1.4-83-4.4-89.63-54a102.54 102.54 0 0 1-.9-13.9c85.63 20.9 158.65 9.1 178.75 6.7 56.12-6.7 105-41.3 111.23-72.9 9.8-49.8 9-121.5 9-121.5zm-75.12 125.2h-46.63v-114.2c0-49.7-64-51.6-64 6.9v62.5h-46.33V197c0-58.5-64-56.6-64-6.9v114.2H90.19c0-122.1-5.2-147.9 18.41-175 25.9-28.9 79.82-30.8 103.83 6.1l11.6 19.5 11.6-19.5c24.11-37.1 78.12-34.8 103.83-6.1 23.71 27.3 18.4 53 18.4 175z"})}):"comments"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2 0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.3-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9l0 0 0 0-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"})}):"threads"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,k.jsx)(p.Path,{d:"M331.5 235.7c2.2 .9 4.2 1.9 6.3 2.8c29.2 14.1 50.6 35.2 61.8 61.4c15.7 36.5 17.2 95.8-30.3 143.2c-36.2 36.2-80.3 52.5-142.6 53h-.3c-70.2-.5-124.1-24.1-160.4-70.2c-32.3-41-48.9-98.1-49.5-169.6V256v-.2C17 184.3 33.6 127.2 65.9 86.2C102.2 40.1 156.2 16.5 226.4 16h.3c70.3 .5 124.9 24 162.3 69.9c18.4 22.7 32 50 40.6 81.7l-40.4 10.8c-7.1-25.8-17.8-47.8-32.2-65.4c-29.2-35.8-73-54.2-130.5-54.6c-57 .5-100.1 18.8-128.2 54.4C72.1 146.1 58.5 194.3 58 256c.5 61.7 14.1 109.9 40.3 143.3c28 35.6 71.2 53.9 128.2 54.4c51.4-.4 85.4-12.6 113.7-40.9c32.3-32.2 31.7-71.8 21.4-95.9c-6.1-14.2-17.1-26-31.9-34.9c-3.7 26.9-11.8 48.3-24.7 64.8c-17.1 21.8-41.4 33.6-72.7 35.3c-23.6 1.3-46.3-4.4-63.9-16c-20.8-13.8-33-34.8-34.3-59.3c-2.5-48.3 35.7-83 95.2-86.4c21.1-1.2 40.9-.3 59.2 2.8c-2.4-14.8-7.3-26.6-14.6-35.2c-10-11.7-25.6-17.7-46.2-17.8H227c-16.6 0-39 4.6-53.3 26.3l-34.4-23.6c19.2-29.1 50.3-45.1 87.8-45.1h.8c62.6 .4 99.9 39.5 103.7 107.7l-.2 .2zm-156 68.8c1.3 25.1 28.4 36.8 54.6 35.3c25.6-1.4 54.6-11.4 59.5-73.2c-13.2-2.9-27.8-4.4-43.4-4.4c-4.8 0-9.6 .1-14.4 .4c-42.9 2.4-57.2 23.2-56.2 41.8l-.1 .1z"})}):(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"})}),Js=({attributes:e,setAttributes:t,socialList:o})=>(0,k.jsx)(d.BlockControls,{children:(0,k.jsx)(p.ToolbarGroup,{children:Object.keys(o).map((s=>{var a;const i=null!==(a=e[s]?.active)&&void 0!==a?a:e?.[s];return(0,k.jsx)(p.Tooltip,{text:(0,l.sprintf)(/* translators: %s Label */ /* translators: %s Label */
+(0,l.__)("%1$f out of %2$f","otter-blocks"),Math.max(Math.abs(e.rating/T).toFixed(1)||0,1),10/T)})]}),(a||e.description)&&(0,k.jsx)(d.RichText,{placeholder:(0,l.__)("Feature Description…","otter-blocks"),value:e.description,className:"o-review__left_feature_description",onChange:e=>w(t,{description:e}),tagName:"span"})]},t)))})}),(0<t.pros.length||0<t.cons.length)&&(0,k.jsxs)("div",{className:"o-review__right",children:[0<t.pros.length&&(0,k.jsxs)("div",{className:"o-review__right_pros",children:[(0,k.jsx)(P,{children:t.prosLabel}),t.pros.map(((e,s)=>(0,k.jsxs)("div",{className:"o-review__right_pros_item",children:[i.check,(0,k.jsx)(d.RichText,{placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,l)=>{const s=[...t.pros];s[e]=l,o({pros:s})})(s,e),tagName:"p"})]},s)))]}),0<t.cons.length&&(0,k.jsxs)("div",{className:"o-review__right_cons",children:[(0,k.jsx)(P,{children:t.consLabel}),t.cons.map(((e,s)=>(0,k.jsxs)("div",{className:"o-review__right_cons_item",children:[i.close,(0,k.jsx)(d.RichText,{placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,l)=>{const s=[...t.cons];s[e]=l,o({cons:s})})(s,e),tagName:"p"})]},s)))]})]}),(0<c?.links?.length||0<t.links.length)&&(0,k.jsxs)("div",{className:"o-review__footer",children:[(0,k.jsx)(P,{className:"o-review__footer_label",children:t.buttonsLabel}),(0,k.jsx)("div",{className:"o-review__footer_buttons",children:(c?.links||t.links).map(((e,s)=>(0,k.jsx)(d.RichText,{placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,disabled:0<c?.links,onChange:e=>((e,l)=>{const s=[...t.links];s[e]={...s[e],...l},o({links:s})})(s,{label:e}),tagName:"span"},s)))})]})]})]})},save:()=>null,example:{attributes:{}}});var _s=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-columns","title":"Section","category":"themeisle-blocks","description":"Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.","keywords":["advanced columns","layout","section"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"columns":{"type":"number"},"layout":{"type":"string"},"layoutTablet":{"type":"string","default":"equal"},"layoutMobile":{"type":"string","default":"equal"},"padding":{"type":"object","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"columnsWidth":{"type":["number","string"]},"columnsWidthTablet":{"type":"string"},"columnsWidthMobile":{"type":"string"},"horizontalAlign":{"type":"string","default":"unset"},"columnsHeight":{"type":"string","default":"auto"},"columnsHeightCustom":{"type":["number","string"]},"columnsHeightCustomTablet":{"type":["number","string"]},"columnsHeightCustomMobile":{"type":["number","string"]},"verticalAlign":{"type":"string","default":"unset"},"color":{"type":"string"},"colorHover":{"type":"string"},"linkColor":{"type":"string"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayOpacity":{"type":"number","default":50},"backgroundOverlayType":{"type":"string","default":"color"},"backgroundOverlayColor":{"type":"string"},"backgroundOverlayImage":{"type":"object"},"backgroundOverlayAttachment":{"type":"string","default":"scroll"},"backgroundOverlayPosition":{"type":"object"},"backgroundOverlayRepeat":{"type":"string","default":"repeat"},"backgroundOverlaySize":{"type":"string","default":"auto"},"backgroundOverlayGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayFilterBlur":{"type":"number","default":0},"backgroundOverlayFilterBrightness":{"type":"number","default":10},"backgroundOverlayFilterContrast":{"type":"number","default":10},"backgroundOverlayFilterGrayscale":{"type":"number","default":0},"backgroundOverlayFilterHue":{"type":"number","default":0},"backgroundOverlayFilterSaturate":{"type":"number","default":10},"backgroundOverlayBlend":{"type":"string","default":"normal"},"border":{"type":"object"},"borderColor":{"type":"string"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"dividerTopType":{"type":"string","default":"none"},"dividerTopColor":{"type":"string","default":"#000000"},"dividerTopWidth":{"type":"number"},"dividerTopWidthTablet":{"type":"number"},"dividerTopWidthMobile":{"type":"number"},"dividerTopHeight":{"type":"number"},"dividerTopHeightTablet":{"type":"number"},"dividerTopHeightMobile":{"type":"number"},"dividerTopInvert":{"type":"boolean","default":false},"dividerBottomType":{"type":"string","default":"none"},"dividerBottomColor":{"type":"string","default":"#000000"},"dividerBottomWidth":{"type":"number"},"dividerBottomWidthTablet":{"type":"number"},"dividerBottomWidthMobile":{"type":"number"},"dividerBottomHeight":{"type":"number"},"dividerBottomHeightTablet":{"type":"number"},"dividerBottomHeightMobile":{"type":"number"},"dividerBottomInvert":{"type":"boolean","default":false},"hide":{"type":"boolean","default":false},"hideTablet":{"type":"boolean","default":false},"hideMobile":{"type":"boolean","default":false},"reverseColumnsTablet":{"type":"boolean","default":false},"reverseColumnsMobile":{"type":"boolean","default":false},"columnsHTMLTag":{"type":"string","default":"div"},"isSynced":{"type":"array"}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}');const ws={align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},Cs=({type:e,front:t,style:o,fill:l,invert:s,width:a,height:i})=>"none"!==o&&(0,k.jsxs)("div",{className:n()("wp-block-themeisle-blocks-advanced-columns-separators",e),style:!t&&a?{transform:a?`scaleX( ${a/100} )`:""}:{},children:["bigTriangle"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===e?{transform:"bottom"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})}),"bigTriangle"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===e?{transform:"top"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})}),"rightCurve"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===e?{transform:"top"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})}),"rightCurve"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===e?{transform:"top"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})}),"curve"===o&&(0,k.jsx)(p.SVG,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===e?{transform:"top"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})}),"slant"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===e?{transform:"bottom"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})}),"slant"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===e?{transform:"bottom"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})}),"cloud"===o&&(0,k.jsx)(p.SVG,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===e?{transform:"top"===e?"rotate(180deg)":""}:{},children:(0,k.jsx)(p.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})})]}),js=({type:e,front:t,style:o,fill:l,invert:s,width:a,height:i})=>"none"!==o&&(0,k.jsxs)("div",{className:n()("wp-block-themeisle-blocks-advanced-columns-separators",e),style:!t&&a?{transform:a?`scaleX( ${a/100} )`:""}:{},children:["bigTriangle"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})}),"bigTriangle"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})}),"rightCurve"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})}),"rightCurve"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})}),"curve"===o&&(0,k.jsx)(p.SVG,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})}),"slant"===o&&!1===s&&(0,k.jsx)(p.SVG,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})}),"slant"===o&&!0===s&&(0,k.jsx)(p.SVG,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})}),"cloud"===o&&(0,k.jsx)(p.SVG,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)(p.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})})]}),Ss=[{attributes:ws,supports:{align:["wide","full"],html:!1},save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag;let l,s,a,i,r;if("color"===e.backgroundType&&(l={background:e.backgroundColor}),"image"===e.backgroundType&&(l={backgroundImage:`url( '${e.backgroundImageURL}' )`,backgroundAttachment:e.backgroundAttachment,backgroundPosition:e.backgroundPosition,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize}),"gradient"===e.backgroundType){let t;t="linear"===e.backgroundGradientType?`${e.backgroundGradientAngle}deg`:`at ${e.backgroundGradientPosition}`,l={background:`${e.backgroundGradientType}-gradient( ${t}, ${e.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${e.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}% )`}}"linked"===e.borderType&&(a={borderWidth:`${e.border}px`,borderStyle:"solid",borderColor:e.borderColor}),"unlinked"===e.borderType&&(a={borderTopWidth:`${e.borderTop}px`,borderRightWidth:`${e.borderRight}px`,borderBottomWidth:`${e.borderBottom}px`,borderLeftWidth:`${e.borderLeft}px`,borderStyle:"solid",borderColor:e.borderColor}),"linked"===e.borderRadiusType&&(i={borderRadius:`${e.borderRadius}px`}),"unlinked"===e.borderRadiusType&&(i={borderTopLeftRadius:`${e.borderRadiusTop}px`,borderTopRightRadius:`${e.borderRadiusRight}px`,borderBottomRightRadius:`${e.borderRadiusBottom}px`,borderBottomLeftRadius:`${e.borderRadiusLeft}px`}),!0===e.boxShadow&&(r={boxShadow:`${e.boxShadowHorizontal}px ${e.boxShadowVertical}px ${e.boxShadowBlur}px ${e.boxShadowSpread}px ${R()(e.boxShadowColor?e.boxShadowColor:"#000000",e.boxShadowColorOpacity)}`});const c={...l,...a,...i,...r,justifyContent:e.horizontalAlign};if("color"===e.backgroundOverlayType&&(s={background:e.backgroundOverlayColor,opacity:e.backgroundOverlayOpacity/100}),"image"===e.backgroundOverlayType&&(s={backgroundImage:`url( '${e.backgroundOverlayImageURL}' )`,backgroundAttachment:e.backgroundOverlayAttachment,backgroundPosition:e.backgroundOverlayPosition,backgroundRepeat:e.backgroundOverlayRepeat,backgroundSize:e.backgroundOverlaySize,opacity:e.backgroundOverlayOpacity/100}),"gradient"===e.backgroundOverlayType){let t;t="linear"===e.backgroundOverlayGradientType?`${e.backgroundOverlayGradientAngle}deg`:`at ${e.backgroundOverlayGradientPosition}`,s={background:`${e.backgroundOverlayGradientType}-gradient( ${t}, ${e.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${e.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}% )`,opacity:e.backgroundOverlayOpacity/100}}const b={...s,mixBlendMode:e.backgroundOverlayBlend,filter:`blur( ${e.backgroundOverlayFilterBlur/10}px ) brightness( ${e.backgroundOverlayFilterBrightness/10} ) contrast( ${e.backgroundOverlayFilterContrast/10} ) grayscale( ${e.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${e.backgroundOverlayFilterHue}deg ) saturate( ${e.backgroundOverlayFilterSaturate/10} )`};let u={};e.columnsWidth&&(u={maxWidth:e.columnsWidth+"px"});const p=e.hide?"":`has-desktop-${e.layout}-layout`,h=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,g=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,m=n()(t,`has-${e.columns}-columns`,p,h,g,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},`has-${e.lcolumnsGap}-gap`,`has-vertical-${e.verticalAlign}`);return(0,k.jsxs)(o,{className:m,id:e.id,style:c,children:[(0,k.jsx)("div",{className:"wp-themeisle-block-overlay",style:b}),(0,k.jsx)(Cs,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",style:u,children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(Cs,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})}},{attributes:ws,supports:{align:["wide","full"],html:!1},save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag;let l,s,a,i,r;if("color"===e.backgroundType&&(l={background:e.backgroundColor}),"image"===e.backgroundType&&(l={backgroundImage:`url( '${e.backgroundImageURL}' )`,backgroundAttachment:e.backgroundAttachment,backgroundPosition:e.backgroundPosition,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize}),"gradient"===e.backgroundType){let t;t="linear"===e.backgroundGradientType?`${e.backgroundGradientAngle}deg`:`at ${e.backgroundGradientPosition}`,l={background:`${e.backgroundGradientType}-gradient( ${t}, ${e.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${e.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}% )`}}"linked"===e.borderType&&(a={borderWidth:`${e.border}px`,borderStyle:"solid",borderColor:e.borderColor}),"unlinked"===e.borderType&&(a={borderTopWidth:`${e.borderTop}px`,borderRightWidth:`${e.borderRight}px`,borderBottomWidth:`${e.borderBottom}px`,borderLeftWidth:`${e.borderLeft}px`,borderStyle:"solid",borderColor:e.borderColor}),"linked"===e.borderRadiusType&&(i={borderRadius:`${e.borderRadius}px`}),"unlinked"===e.borderRadiusType&&(i={borderTopLeftRadius:`${e.borderRadiusTop}px`,borderTopRightRadius:`${e.borderRadiusRight}px`,borderBottomRightRadius:`${e.borderRadiusBottom}px`,borderBottomLeftRadius:`${e.borderRadiusLeft}px`}),!0===e.boxShadow&&(r={boxShadow:`${e.boxShadowHorizontal}px ${e.boxShadowVertical}px ${e.boxShadowBlur}px ${e.boxShadowSpread}px ${R()(e.boxShadowColor?e.boxShadowColor:"#000000",e.boxShadowColorOpacity)}`});const c={...l,...a,...i,...r,justifyContent:e.horizontalAlign};if("color"===e.backgroundOverlayType&&(s={background:e.backgroundOverlayColor,opacity:e.backgroundOverlayOpacity/100}),"image"===e.backgroundOverlayType&&(s={backgroundImage:`url( '${e.backgroundOverlayImageURL}' )`,backgroundAttachment:e.backgroundOverlayAttachment,backgroundPosition:e.backgroundOverlayPosition,backgroundRepeat:e.backgroundOverlayRepeat,backgroundSize:e.backgroundOverlaySize,opacity:e.backgroundOverlayOpacity/100}),"gradient"===e.backgroundOverlayType){let t;t="linear"===e.backgroundOverlayGradientType?`${e.backgroundOverlayGradientAngle}deg`:`at ${e.backgroundOverlayGradientPosition}`,s={background:`${e.backgroundOverlayGradientType}-gradient( ${t}, ${e.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${e.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}% )`,opacity:e.backgroundOverlayOpacity/100}}const b={...s,mixBlendMode:e.backgroundOverlayBlend};let u={};e.columnsWidth&&(u={maxWidth:e.columnsWidth+"px"});const p=e.hide?"":`has-desktop-${e.layout}-layout`,h=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,g=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,m=n()(t,`has-${e.columns}-columns`,p,h,g,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},`has-${e.columnsGap}-gap`,`has-vertical-${e.verticalAlign}`);return(0,k.jsxs)(o,{className:m,id:e.id,style:c,children:[(0,k.jsx)("div",{className:"wp-themeisle-block-overlay",style:b}),(0,k.jsx)(Cs,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",style:u,children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(Cs,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})}},{attributes:{...ws,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag,l=e.hide?"":`has-desktop-${e.layout}-layout`,s=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,a=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,i=n()(t,`has-${e.columns}-columns`,l,s,a,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},{"has-reverse-columns-tablet":e.reverseColumnsTablet&&!e.hideTablet&&"collapsedRows"===e.layoutTablet},{"has-reverse-columns-mobile":e.reverseColumnsMobile&&!e.hideMobile&&"collapsedRows"===e.layoutMobile},`has-${e.columnsGap}-gap`,`has-vertical-${e.verticalAlign}`);return(0,k.jsxs)(o,{className:i,id:e.id,children:[(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,k.jsx)(js,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(js,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})}},{attributes:{...ws,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{let t="",o="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${R()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${R()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}if("gradient"===e.backgroundOverlayType){let t="";"linear"===e.backgroundOverlayGradientType&&(t=`${e.backgroundOverlayGradientAngle}deg, `),o=`${e.backgroundOverlayGradientType}-gradient(${t}${R()(e.backgroundOverlayGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientFirstLocation}%, ${R()(e.backgroundOverlayGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundOverlayGradientSecondLocation}%)`}return{...{...(0,H.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),backgroundGradient:t,backgroundOverlayGradient:o}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor||"gradient"===e.backgroundOverlayType&&void 0!==e.backgroundOverlayGradientFirstColor,save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag,l=e.hide?"":`has-desktop-${e.layout}-layout`,s=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,a=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,i=n()(t,`has-${e.columns}-columns`,l,s,a,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},{"has-reverse-columns-tablet":e.reverseColumnsTablet&&!e.hideTablet&&"collapsedRows"===e.layoutTablet},{"has-reverse-columns-mobile":e.reverseColumnsMobile&&!e.hideMobile&&"collapsedRows"===e.layoutMobile},`has-${e.columnsGap}-gap`,`has-vertical-${e.verticalAlign}`);return(0,k.jsxs)(o,{className:i,id:e.id,children:[(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,k.jsx)(js,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(js,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})}},{attributes:{...(0,H.omit)(ws,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition","backgroundOverlayGradientFirstColor","backgroundOverlayGradientFirstLocation","backgroundOverlayGradientSecondColor","backgroundOverlayGradientSecondLocation","backgroundOverlayGradientType","backgroundOverlayGradientAngle","backgroundOverlayGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},backgroundOverlayGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1},migrate:e=>{const t={},o={},l={},s={},a={},i={},r={},n={};let c={},d={},b={},u={};"unlinked"===e.paddingType?(t.top=(0,H.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,H.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,H.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,H.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,H.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,H.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,H.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,H.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,H.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,H.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,H.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(s.top=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",s.bottom=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px"):(s.top=(0,H.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",s.bottom=(0,H.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px"),"linked"===e.marginTypeTablet?(a.top=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",a.bottom=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(a.top=(0,H.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",a.bottom=(0,H.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px"),"linked"===e.marginTypeMobile?(i.top=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",i.bottom=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(i.top=(0,H.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",i.bottom=(0,H.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px"),"unlinked"===e.borderType?(r.top=(0,H.isUndefined)(e.borderTop)?null:e.borderTop+"px",r.bottom=(0,H.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",r.left=(0,H.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",r.right=(0,H.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(r.top=(0,H.isUndefined)(e.border)?null:e.border+"px",r.bottom=(0,H.isUndefined)(e.border)?null:e.border+"px",r.left=(0,H.isUndefined)(e.border)?null:e.border+"px",r.right=(0,H.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(n.top=(0,H.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",n.bottom=(0,H.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",n.left=(0,H.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",n.right=(0,H.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(n.top=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.bottom=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.left=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.right=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(c={id:e.backgroundImageID,url:e.backgroundImageURL}),void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID&&(d={id:e.backgroundOverlayImageID,url:e.backgroundOverlayImageURL});const p={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}};return void 0!==e.backgroundPosition&&(b=p[e.backgroundPosition]),void 0!==e.backgroundOverlayPosition&&(u=p[e.backgroundOverlayPosition]),{...{...(0,H.omit)(e,["columnsGap","paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,g.MZ)(t)&&{padding:t},...!(0,g.MZ)(o)&&{paddingTablet:o},...!(0,g.MZ)(l)&&{paddingMobile:l},...!(0,g.MZ)(s)&&{margin:s},...!(0,g.MZ)(a)&&{marginTablet:a},...!(0,g.MZ)(i)&&{marginMobile:i},...!(0,g.MZ)(r)&&{border:r},...!(0,g.MZ)(n)&&{borderRadius:n},...!(0,g.MZ)(c)&&{backgroundImage:c},...!(0,g.MZ)(b)&&{backgroundPosition:b},...!(0,g.MZ)(d)&&{backgroundOverlayImage:d},...!(0,g.MZ)(u)&&{backgroundOverlayPosition:u}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginBottom","marginBottomTablet","marginBottomMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,H.isUndefined)(e[t])&&("number"==typeof e[t]||null===e[t])))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundOverlayImageURL&&void 0!==e.backgroundOverlayImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition||void 0!==e.backgroundOverlayPosition&&"object"!=typeof e.backgroundOverlayPosition||void 0!==e.columnsGap,save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag,l=e.hide?"":`has-desktop-${e.layout}-layout`,s=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,a=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,i=n()(t,`has-${e.columns}-columns`,l,s,a,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},{"has-reverse-columns-tablet":e.reverseColumnsTablet&&!e.hideTablet&&"collapsedRows"===e.layoutTablet},{"has-reverse-columns-mobile":e.reverseColumnsMobile&&!e.hideMobile&&"collapsedRows"===e.layoutMobile},`has-${e.columnsGap}-gap`,`has-vertical-${e.verticalAlign}`);return(0,k.jsxs)(o,{className:i,id:e.id,children:[(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,k.jsx)(js,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(js,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})}}];var Ts=Ss,Bs=o(9491),Ms={1:{equal:["100"],collapsedRows:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"],collapsedRows:["100","100"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"],collapsedRows:["100","100","100"]},4:{equal:["25","25","25","25"],twoColumnGrid:["100","100","100","100"],collapsedRows:["100","100","100","100"]},5:{equal:["20","20","20","20","20"],collapsedRows:["100","100","100","100","100"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"],twoColumnGrid:["100","100","100","100","100","100"],threeColumnGrid:["100","100","100","100","100","100"],collapsedRows:["100","100","100","100","100","100"]}},Ps=({attributes:e,setAttributes:t})=>(0,k.jsx)(d.BlockControls,{children:(0,k.jsx)(d.BlockVerticalAlignmentToolbar,{onChange:o=>e.verticalAlign===o?t({verticalAlign:"unset"}):t({verticalAlign:o}),value:"flex-start"===e.verticalAlign?"top":"flex-end"===e.verticalAlign?"bottom":e.verticalAlign})}),zs=({label:e,onClick:t,layout:o,layoutTablet:s,layoutMobile:a,columns:r})=>{const c=(0,u.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]);let d;return"Desktop"===c?d=o:"Tablet"===c?d=s:"Mobile"===c&&(d=a),(0,k.jsx)(h.k3,{label:e,className:"wp-block-themeisle-blocks-advanced-columns-layout-control",children:1===r&&(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Single Row","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.colsFull)()})})||2===r&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Equal","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.cols2Equal)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("1:2","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===d}),onClick:()=>t("oneTwo"),children:(0,i.cols12)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("2:1","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===d}),onClick:()=>t("twoOne"),children:(0,i.cols21)()})}),("Mobile"===c||"Tablet"===c)&&(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===d}),onClick:()=>t("collapsedRows"),children:(0,i.rowsCollapsed)()})})]})||3===r&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Equal","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.cols3Equal)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("1:1:2","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===d}),onClick:()=>t("oneOneTwo"),children:(0,i.cols112)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("2:1:1","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===d}),onClick:()=>t("twoOneOne"),children:(0,i.cols211)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("1:2:1","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===d}),onClick:()=>t("oneTwoOne"),children:(0,i.cols121)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("1:3:1","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===d}),onClick:()=>t("oneThreeOne"),children:(0,i.cols131)()})}),("Mobile"===c||"Tablet"===c)&&(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===d}),onClick:()=>t("collapsedRows"),children:(0,i.rowsCollapsed)()})})]})||4===r&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Equal","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.cols4Equal)()})}),("Mobile"===c||"Tablet"===c)&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Two Column Grid","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===d}),onClick:()=>t("twoColumnGrid"),children:(0,i.colsCollapsed)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===d}),onClick:()=>t("collapsedRows"),children:(0,i.rowsCollapsed)()})})]})]})||5===r&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Equal","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.cols5Equal)()})}),("Mobile"===c||"Tablet"===c)&&(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===d}),onClick:()=>t("collapsedRows"),children:(0,i.rowsCollapsed)()})})]})||6===r&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Equal","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===d}),onClick:()=>t("equal"),children:(0,i.cols6Equal)()})}),("Mobile"===c||"Tablet"===c)&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Two Column Grid","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===d}),onClick:()=>t("twoColumnGrid"),children:(0,i.cols2Grid)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Three Column Grid","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===d}),onClick:()=>t("threeColumnGrid"),children:(0,i.cols3Grid)()})}),(0,k.jsx)(p.Tooltip,{text:(0,l.__)("Collapsed Rows","otter-blocks"),children:(0,k.jsx)(p.Button,{className:n()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===d}),onClick:()=>t("collapsedRows"),children:(0,i.rowsCollapsed)()})})]})]})})},As=({attributes:e,setAttributes:t,getValue:o,updateColumnsWidth:s,dividerViewType:a,setDividerViewType:i,changeColumnsNumbers:r})=>{const n=(0,u.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),{responsiveSetAttributes:c}=(0,m.d)(t),[x,f]=(0,y.useTabSwitch)(e.id,"settings"),v=()=>{switch(n){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}},_=()=>{switch(n){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}},w=()=>{switch(n){case"Desktop":return"columnsWidth";case"Tablet":return"columnsWidthTablet";case"Mobile":return"columnsWidthMobile";default:return}};let C=()=>{var e,t,l;switch(n){case"Desktop":return o("columnsWidth");case"Tablet":return null!==(e=o("columnsWidthTablet"))&&void 0!==e?e:o("columnsWidth");case"Mobile":return null!==(t=null!==(l=o("columnsWidthMobile"))&&void 0!==l?l:o("columnsWidthTablet"))&&void 0!==t?t:o("columnsWidth");default:return}};C=C();let j=()=>{var t,o,l;switch(n){case"Desktop":return e.columnsHeightCustom;case"Tablet":return null!==(t=e.columnsHeightCustomTablet)&&void 0!==t?t:e.columnsHeightCustom;case"Mobile":return null!==(o=null!==(l=e.columnsHeightCustomMobile)&&void 0!==l?l:e.columnsHeightCustomTablet)&&void 0!==o?o:e.columnsHeightCustom;default:return}};j=j();const S="top"===a?e.dividerTopType:"bottom"===a?e.dividerBottomType:void 0,T=(e,o)=>{switch(o){case"Desktop":t({hide:e});break;case"Tablet":t({hideTablet:e});break;case"Mobile":t({hideMobile:e})}},B=(e,o)=>{"Tablet"===o?t({reverseColumnsTablet:e}):"Mobile"===o&&t({reverseColumnsMobile:e})},M=(e,t,o,l)=>"color"===e&&t?t:"image"===e&&o?`url( ${o} )`:"gradient"===e&&l?l:void 0;return(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(d.InspectorControls,{children:[(0,k.jsx)(h.R7,{value:x,options:[{label:(0,l.__)("Settings","otter-blocks"),value:"settings"},{label:(0,l.__)("Style","otter-blocks"),value:"style"}],onChange:f}),"settings"===x&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Columns & Layout","otter-blocks"),children:[(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:e.columns,onChange:e=>{6>=e&&t({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),6<e&&t({layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),1>=e&&t({layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),r(e)},min:1,max:6}),(0,k.jsx)(zs,{label:(0,l.__)("Layout","otter-blocks"),columns:e.columns,layout:e.layout,layoutTablet:e.layoutTablet,layoutMobile:e.layoutMobile,onClick:o=>{switch(n){case"Desktop":t({layout:o}),s(e.columns,o);break;case"Tablet":t({layoutTablet:o});break;case"Mobile":t({layoutMobile:o})}}})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Section Structure","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(h.ax,{isSynced:e.isSynced,options:[{label:(0,l.__)("Maximum Content Width","otter-blocks"),value:w()},{label:(0,l.__)("Horizontal Align","otter-blocks"),value:"horizontalAlign",isHidden:void 0===o("columnsWidth")}],setAttributes:t}),(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes(w())||!1,className:"o-disabled",children:(0,k.jsxs)(h.k3,{label:(0,l.__)("Maximum Content Width","otter-blocks"),children:[(0,k.jsx)(p.__experimentalUnitControl,{value:C,onChange:e=>c(e,["columnsWidth","columnsWidthTablet","columnsWidthMobile"])}),(0,k.jsx)(h.k2,{values:["columnsWidth","columnsWidthTablet","columnsWidthMobile"],setAttributes:t})]})}),void 0!==o("columnsWidth")&&(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes("horizontalAlign")||!1,className:"o-disabled",children:(0,k.jsx)(p.BaseControl,{label:(0,l.__)("Horizontal Align","otter-blocks"),children:(0,k.jsx)(h.l,{value:o("horizontalAlign"),options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"flex-start"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"flex-end"}],onChange:o=>(o=>{if(e.horizontalAlign===o)return t({horizontalAlign:"unset"});t({horizontalAlign:o})})(o),hasIcon:!0})})}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Minimum Height","otter-blocks"),value:e.columnsHeight,options:[{label:(0,l.__)("Default","otter-blocks"),value:"auto"},{label:(0,l.__)("Fit to Screen","otter-blocks"),value:"100vh"},{label:(0,l.__)("Custom","otter-blocks"),value:"custom"}],onChange:e=>t({columnsHeight:e})}),"custom"===e.columnsHeight&&(0,k.jsxs)(h.k3,{label:(0,l.__)("Custom Height","otter-blocks"),children:[(0,k.jsx)(p.__experimentalUnitControl,{value:j,onChange:e=>{switch(n){case"Desktop":t({columnsHeightCustom:e});break;case"Tablet":t({columnsHeightCustomTablet:e});break;case"Mobile":t({columnsHeightCustomMobile:e})}}}),(0,k.jsx)(h.k2,{values:["columnsHeightCustom","columnsHeightCustomTablet","columnsHeightCustomMobile"],setAttributes:t})]}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:e.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>t({columnsHTMLTag:e})})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Responsive","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Hide this section on Desktop devices?","otter-blocks"),checked:e.hide,onChange:e=>T(e,"Desktop")}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Hide this section on Tablet devices?","otter-blocks"),checked:e.hideTablet,onChange:e=>T(e,"Tablet")}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Hide this section on Mobile devices?","otter-blocks"),checked:e.hideMobile,onChange:e=>T(e,"Mobile")}),(0,k.jsx)("hr",{}),!e.hideTablet&&"collapsedRows"===e.layoutTablet&&(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Reverse Columns in Tablet devices?","otter-blocks"),checked:e.reverseColumnsTablet,onChange:e=>B(e,"Tablet")}),!e.hideMobile&&"collapsedRows"===e.layoutMobile&&(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Reverse Columns in Mobile devices?","otter-blocks"),checked:e.reverseColumnsMobile,onChange:e=>B(e,"Mobile")})]}),(0,k.jsx)(h.Cu,{})]})||"style"===x&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Dimensions","otter-blocks"),children:[(0,k.jsx)(h.ax,{isSynced:e.isSynced,options:[{label:(0,l.__)("Padding","otter-blocks"),value:v()},{label:(0,l.__)("Margin","otter-blocks"),value:_()}],setAttributes:t}),(0,k.jsxs)(h.k3,{label:(0,l.__)("Screen Type","otter-blocks"),children:[(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes(v())||!1,className:"o-disabled",children:(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{const e={..._s.attributes.padding.default};switch(n){case"Desktop":return(0,H.merge)(e,o("padding"));case"Tablet":return(0,H.merge)(e,{...o("padding")},o("paddingTablet"));case"Mobile":return(0,H.merge)(e,{...o("padding")},o("paddingTablet"),o("paddingMobile"));default:return}})(),inputProps:{min:0,max:500},onChange:o=>{switch((0,g.jW)(o)&&(o=void 0),n){case"Desktop":return t({padding:o});case"Tablet":return t({paddingTablet:(0,g.JE)(o,e.padding)});case"Mobile":return t({paddingMobile:(0,g.JE)(o,{...e.padding,...e.paddingTablet})});default:return}}})}),(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes(_())||!1,className:"o-disabled",children:(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{const e={..._s.attributes.margin.default};switch(n){case"Desktop":return(0,H.merge)(e,o("margin"));case"Tablet":return(0,H.merge)(e,{...o("margin")},o("marginTablet"));case"Mobile":return(0,H.merge)(e,{...o("margin")},o("marginTablet"),o("marginMobile"));default:return}})(),inputProps:{min:-500,max:500},sides:["top","bottom"],onChange:o=>{switch((0,g.jW)(o)&&(o=void 0),"object"==typeof o&&(o=Object.fromEntries(Object.entries(o).filter((([e,t])=>null!==t)))),n){case"Desktop":return t({margin:o});case"Tablet":return t({marginTablet:(0,g.JE)(o,e.margin)});case"Mobile":return t({marginMobile:(0,g.JE)(o,{...e.margin,...e.marginTablet})});default:return}}})})]})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Background & Content","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(h._b,{label:(0,l.__)("Text","otter-blocks"),colorValue:e.color,onColorChange:e=>t({color:e}),className:"is-list is-first"}),(0,k.jsx)(h._b,{label:(0,l.__)("Link","otter-blocks"),colorValue:e.linkColor,onColorChange:e=>t({linkColor:e}),className:"is-list"}),(0,k.jsx)(h.JC,{label:(0,l.__)("Background","otter-blocks"),indicator:M(e.backgroundType,e.backgroundColor,e.backgroundImage?.url,e.backgroundGradient),children:(0,k.jsx)(h.zZ,{backgroundType:e.backgroundType,backgroundColor:e.backgroundColor,image:e.backgroundImage,gradient:e.backgroundGradient,focalPoint:e.backgroundPosition,backgroundAttachment:e.backgroundAttachment,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize,changeBackgroundType:e=>t({backgroundType:e}),changeImage:e=>{t({backgroundImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>t({backgroundImage:void 0}),changeColor:e=>t({backgroundColor:e}),changeGradient:e=>t({backgroundGradient:e}),changeBackgroundAttachment:e=>t({backgroundAttachment:e}),changeBackgroundRepeat:e=>t({backgroundRepeat:e}),changeFocalPoint:e=>t({backgroundPosition:e}),changeBackgroundSize:e=>t({backgroundSize:e})})}),(0,k.jsx)(h.JC,{label:(0,l.__)("Background Overlay","otter-blocks"),indicator:M(e.backgroundOverlayType,e.backgroundOverlayColor,e.backgroundOverlayImage?.url,e.backgroundOverlayGradient),children:(0,k.jsx)(h.cR,{backgroundType:e.backgroundOverlayType,backgroundColor:e.backgroundOverlayColor,image:e.backgroundOverlayImage,gradient:e.backgroundOverlayGradient,focalPoint:e.backgroundOverlayPosition,backgroundAttachment:e.backgroundOverlayAttachment,backgroundRepeat:e.backgroundOverlayRepeat,backgroundSize:e.backgroundOverlaySize,backgroundOpacity:e.backgroundOverlayOpacity,backgroundFilterBlur:e.backgroundOverlayFilterBlur,backgroundFilterBrightness:e.backgroundOverlayFilterBrightness,backgroundFilterContrast:e.backgroundOverlayFilterContrast,backgroundFilterGrayscale:e.backgroundOverlayFilterGrayscale,backgroundFilterHue:e.backgroundOverlayFilterHue,backgroundFilterSaturate:e.backgroundOverlayFilterSaturate,backgroundBlend:e.backgroundOverlayBlend,changeBackgroundType:e=>t({backgroundOverlayType:e}),changeImage:e=>{t({backgroundOverlayImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>t({backgroundOverlayImage:void 0}),changeColor:e=>t({backgroundOverlayColor:e}),changeGradient:e=>t({backgroundOverlayGradient:e}),changeBackgroundAttachment:e=>t({backgroundOverlayAttachment:e}),changeBackgroundRepeat:e=>t({backgroundOverlayRepeat:e}),changeFocalPoint:e=>t({backgroundOverlayPosition:e}),changeBackgroundSize:e=>t({backgroundOverlaySize:e}),changeOpacity:e=>t({backgroundOverlayOpacity:e}),changeFilterBlur:e=>t({backgroundOverlayFilterBlur:e}),changeFilterBrightness:e=>t({backgroundOverlayFilterBrightness:e}),changeFilterContrast:e=>t({backgroundOverlayFilterContrast:e}),changeFilterGrayscale:e=>t({backgroundOverlayFilterGrayscale:e}),changeFilterHue:e=>t({backgroundOverlayFilterHue:e}),changeFilterSaturate:e=>t({backgroundOverlayFilterSaturate:e}),changeBlend:e=>t({backgroundOverlayBlend:e})})}),(0,k.jsx)(h._b,{label:(0,l.__)("Text Hover","otter-blocks"),colorValue:e.colorHover,onColorChange:e=>t({colorHover:e}),className:"is-list"})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1,children:[(0,k.jsx)(h._b,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:e.borderColor,onColorChange:e=>t({borderColor:e})}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:e.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,g.jW)(e)&&(e=void 0),t({border:e})}}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:e.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],id:"o-border-raduis-box",onChange:e=>{(0,g.jW)(e)&&(e=void 0),t({borderRadius:e})}}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:e.boxShadow,onChange:()=>t({boxShadow:!e.boxShadow})}),e.boxShadow&&(0,k.jsxs)(h.HZ,{label:(0,l.__)("Border Shadow","otter-blocks"),children:[(0,k.jsx)(d.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:e.boxShadowColor,onColorChange:o=>t({boxShadowColor:100>e.boxShadowColorOpacity&&o?.includes("var(")?getComputedStyle(document.documentElement,null).getPropertyValue(o?.replace("var(","")?.replace(")","")):o})}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:e.boxShadowColorOpacity,onChange:o=>{const l={boxShadowColorOpacity:o};100>o&&e.boxShadowColor?.includes("var(")&&(l.boxShadowColor=getComputedStyle(document.documentElement,null).getPropertyValue(e.boxShadowColor.replace("var(","").replace(")",""))),t(l)},min:0,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:e.boxShadowBlur,onChange:e=>t({boxShadowBlur:e}),min:0,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:e.boxShadowSpread,onChange:e=>t({boxShadowSpread:e}),min:-100,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:e.boxShadowHorizontal,onChange:e=>t({boxShadowHorizontal:e}),min:-100,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:e.boxShadowVertical,onChange:e=>t({boxShadowVertical:e}),min:-100,max:100})]})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Shape Divider","otter-blocks"),initialOpen:!1,className:"wp-block-themeisle-shape-divider",children:[(0,k.jsx)(h.Aw,{label:(0,l.__)("Sides","otter-blocks"),options:[{label:(0,l.__)("Top","otter-blocks"),value:"top"},{label:(0,l.__)("Bottom","otter-blocks"),value:"bottom"}],value:a,onChange:i}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("Type","otter-blocks"),value:S,options:[{label:(0,l.__)("None","otter-blocks"),value:"none"},{label:(0,l.__)("Triangle","otter-blocks"),value:"bigTriangle"},{label:(0,l.__)("Right Curve","otter-blocks"),value:"rightCurve"},{label:(0,l.__)("Curve","otter-blocks"),value:"curve"},{label:(0,l.__)("Slant","otter-blocks"),value:"slant"},{label:(0,l.__)("Cloud","otter-blocks"),value:"cloud"}],onChange:e=>{"top"===a?t({dividerTopType:e}):"bottom"===a&&t({dividerBottomType:e})}}),"none"!==S&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsx)(h._b,{label:(0,l.__)("Color","otter-blocks"),colorValue:"top"===a?e.dividerTopColor:"bottom"===a?e.dividerBottomColor:void 0,onColorChange:e=>{"top"===a?t({dividerTopColor:e}):"bottom"===a&&t({dividerBottomColor:e})}}),(0,k.jsx)(h.k3,{label:(0,l.__)("Width","otter-blocks"),children:(0,k.jsx)(p.RangeControl,{value:(()=>{var t,o,l,s,i,r,c,d,b,u,p,h;if("top"===a)switch(n){case"Desktop":return null!==(t=e.dividerTopWidth)&&void 0!==t?t:100;case"Tablet":return null!==(o=null!==(l=e.dividerTopWidthTablet)&&void 0!==l?l:e.dividerTopWidth)&&void 0!==o?o:100;case"Mobile":return null!==(s=null!==(i=null!==(r=e.dividerTopWidthMobile)&&void 0!==r?r:e.dividerTopWidthTablet)&&void 0!==i?i:e.dividerTopWidth)&&void 0!==s?s:100}else if("bottom"===a)switch(n){case"Desktop":return null!==(c=e.dividerBottomWidth)&&void 0!==c?c:100;case"Tablet":return null!==(d=null!==(b=e.dividerBottomWidthTablet)&&void 0!==b?b:e.dividerBottomWidth)&&void 0!==d?d:100;case"Mobile":return null!==(u=null!==(p=null!==(h=e.dividerBottomWidthMobile)&&void 0!==h?h:e.dividerBottomWidthTablet)&&void 0!==p?p:e.dividerBottomWidth)&&void 0!==u?u:100}})(),onChange:e=>{if("top"===a)switch(n){case"Desktop":t({dividerTopWidth:e});break;case"Tablet":t({dividerTopWidthTablet:e});break;case"Mobile":t({dividerTopWidthMobile:e})}else if("bottom"===a)switch(n){case"Desktop":t({dividerBottomWidth:e});break;case"Tablet":t({dividerBottomWidthTablet:e});break;case"Mobile":t({dividerBottomWidthMobile:e})}},step:.1,min:0,max:500})}),(0,k.jsx)(h.k3,{label:(0,l.__)("Height","otter-blocks"),children:(0,k.jsx)(p.RangeControl,{value:(()=>{if("top"===a)switch(n){case"Desktop":return e.dividerTopHeight;case"Tablet":return e.dividerTopHeightTablet;case"Mobile":return e.dividerTopHeightMobile}else if("bottom"===a)switch(n){case"Desktop":return e.dividerBottomHeight;case"Tablet":return e.dividerBottomHeightTablet;case"Mobile":return e.dividerBottomHeightMobile}})(),onChange:e=>{if("top"===a)switch(n){case"Desktop":t({dividerTopHeight:e});break;case"Tablet":t({dividerTopHeightTablet:e});break;case"Mobile":t({dividerTopHeightMobile:e})}else if("bottom"===a)switch(n){case"Desktop":t({dividerBottomHeight:e});break;case"Tablet":t({dividerBottomHeightTablet:e});break;case"Mobile":t({dividerBottomHeightMobile:e})}},step:.1,min:0,max:500})}),"curve"!==S&&"cloud"!==S&&(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Invert Shape Divider","otter-blocks"),checked:(()=>{switch(a){case"top":return e.dividerTopInvert;case"bottom":return e.dividerBottomInvert;default:return}})(),onChange:()=>{switch(a){case"top":t({dividerTopInvert:!e.dividerTopInvert});break;case"bottom":t({dividerBottomInvert:!e.dividerBottomInvert})}}})]})]})]})]}),(0,k.jsx)(h.ux,{value:e.id,onChange:e=>t({id:e})})]})},Fs=({type:e,front:t,style:o,fill:l,invert:s,width:a,height:i})=>"none"!==o&&(0,k.jsxs)("div",{className:n()("wp-block-themeisle-blocks-advanced-columns-separators",e),style:!t&&a?{transform:a?`scaleX( ${a/100} )`:""}:{},children:["bigTriangle"===o&&!1===s&&(0,k.jsx)("svg",{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)("path",{d:"M0 0 L50 100 L100 0 Z"})}),"bigTriangle"===o&&!0===s&&(0,k.jsx)("svg",{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})}),"rightCurve"===o&&!1===s&&(0,k.jsx)("svg",{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})}),"rightCurve"===o&&!0===s&&(0,k.jsx)("svg",{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})}),"curve"===o&&(0,k.jsx)("svg",{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)("path",{d:"M0 100 C40 0 60 0 100 100 Z"})}),"slant"===o&&!1===s&&(0,k.jsx)("svg",{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)("path",{d:"M0 0 L100 100 L100 0 Z"})}),"slant"===o&&!0===s&&(0,k.jsx)("svg",{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"bottom"===e}),children:(0,k.jsx)("path",{d:"M0 0 L0 100 L100 0 Z"})}),"cloud"===o&&(0,k.jsx)("svg",{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:n()({rotate:"top"===e}),children:(0,k.jsx)("path",{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})})]});const{attributes:Ls}=_s;var Rs=[{name:"themeisle-blocks/section-columns-1",description:(0,l.__)("Single column","otter-blocks"),icon:i.colsFull,title:(0,l.__)("Full","otter-blocks"),attributes:{columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"100"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal",description:(0,l.__)("2 equal columns","otter-blocks"),icon:i.cols2Equal,title:(0,l.__)("1:1","otter-blocks"),attributes:{columns:2,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-2",description:(0,l.__)("1:2 columns","otter-blocks"),icon:i.cols12,title:(0,l.__)("1:2","otter-blocks"),attributes:{columns:2,layout:"oneTwo",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.34"}],["themeisle-blocks/advanced-column",{columnWidth:"66.66"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1",description:(0,l.__)("2:1 columns","otter-blocks"),icon:i.cols21,title:(0,l.__)("2:1","otter-blocks"),attributes:{columns:2,layout:"twoOne",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"66.66"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-3",description:(0,l.__)("3 equal columns","otter-blocks"),icon:i.cols3Equal,title:(0,l.__)("1:1:1","otter-blocks"),attributes:{columns:3,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}],["themeisle-blocks/advanced-column",{columnWidth:"33.33"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-1-1-2",description:(0,l.__)("1:1:2 columns","otter-blocks"),icon:i.cols112,title:(0,l.__)("1:1:2","otter-blocks"),attributes:{columns:3,layout:"oneOneTwo",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"50"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-2-1-1",description:(0,l.__)("2:1:1 columns","otter-blocks"),icon:i.cols211,title:(0,l.__)("2:1:1","otter-blocks"),attributes:{columns:3,layout:"twoOneOne",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"50"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]},{name:"themeisle-blocks/section-columns-equal-4",description:(0,l.__)("4 equal columns","otter-blocks"),icon:i.cols4Equal,title:(0,l.__)("1:1:1:1","otter-blocks"),attributes:{columns:4,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"},innerBlocks:[["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}],["themeisle-blocks/advanced-column",{columnWidth:"25"}]],scope:["block"]}];const{name:Ns}=_s;(0,s.registerBlockType)(Ns,{..._s,title:(0,l.__)("Section","otter-blocks"),description:(0,l.__)("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.","otter-blocks"),icon:i.columnsIcon,keywords:["advanced columns","layout","section"],deprecated:Ts,variations:Rs,edit:({attributes:e,setAttributes:t,clientId:o,name:a})=>{(0,b.useEffect)((()=>{const t=(0,y.blockInit)(o,Ls);return()=>t(e.id)}),[e.id]);const{updateBlockAttributes:r,replaceInnerBlocks:c}=(0,u.useDispatch)("core/block-editor"),{sectionBlock:p,isViewportAvailable:h,isPreviewDesktop:x,isPreviewTablet:f,isPreviewMobile:v,children:_,variations:w,defaultVariation:C}=(0,u.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),{getBlockVariations:l,getBlockType:s,getDefaultBlockVariation:i}=e("core/blocks"),{__experimentalGetPreviewDeviceType:r}=!!e("core/edit-post")&&e("core/edit-post");return{sectionBlock:t(o),children:t(o)?.innerBlocks||[],isViewportAvailable:!!r,isPreviewDesktop:!!r&&"Desktop"===r(),isPreviewTablet:!!r&&"Tablet"===r(),isPreviewMobile:!!r&&"Mobile"===r(),blockType:s(a),defaultVariation:i(a,"block"),variations:l(a,"block").filter((({isDefault:e})=>!e))}}),[]),{insertBlock:j,removeBlock:S}=(0,u.useDispatch)("core/block-editor"),T=t=>{e.columns<t?(0,H.times)(t-e.columns,(()=>{const e=(0,s.createBlock)("themeisle-blocks/advanced-column");e&&j(e,_?.length||0,o,!1)})):e.columns>t&&_.slice(t).forEach((e=>S(e.clientId,!1)))},B=(e,t)=>{p.innerBlocks.forEach(((o,l)=>{r(o.clientId,{columnWidth:Ms[e][t][l]})}))};(0,b.useEffect)((()=>{e.columns!==_.length&&(6>=_.length?B(_.length,"equal"):6<_.length?B(6,"equal"):1>=_.length&&B(1,"equal"),t({columns:_.length}))}),[_]),(0,b.useEffect)((()=>{6<e.columns&&(t({columns:6}),T(6))}),[e.columns]),(0,m.g)("color"===e.backgroundType&&e.backgroundColor,e,t);const M=t=>(0,y.getDefaultValueByField)({name:a,field:t,defaultAttributes:Ls,attributes:e}),P=(0,Bs.useViewportMatch)("large",">="),z=(0,Bs.useViewportMatch)("large","<="),A=(0,Bs.useViewportMatch)("small",">="),F=(0,Bs.useViewportMatch)("small","<=");let L=P&&!z&&A&&!F,N=!P&&!z&&A&&!F,I=!(P||z||A||F);h&&!I&&(L=x,N=f,I=v);const[O,V]=(0,b.useState)("top"),D=({mobile:e,tablet:t,desktop:o})=>{var l,s;return null!==(l=null!==(s=I&&e||N&&t||o)&&void 0!==s?s:o)&&void 0!==l?l:100},G=D({mobile:e.dividerTopWidthMobile,tablet:e.dividerTopWidthTablet,desktop:e.dividerTopWidth}),E=D({mobile:e.dividerBottomWidthMobile,tablet:e.dividerBottomWidthTablet,desktop:e.dividerBottomWidth}),$=D({mobile:e.dividerTopHeightMobile,tablet:e.dividerTopHeightTablet,desktop:e.dividerTopHeight}),W=D({mobile:e.dividerBottomHeightMobile,tablet:e.dividerBottomHeightTablet,desktop:e.dividerBottomHeight}),U=e.columnsHTMLTag;let q,Z,J,K,Y,Q={paddingTop:M("padding")&&M("padding").top,paddingRight:M("padding")&&M("padding").right,paddingBottom:M("padding")&&M("padding").bottom,paddingLeft:M("padding")&&M("padding").left,marginTop:M("margin")&&M("margin").top,marginBottom:M("margin")&&M("margin").bottom,minHeight:"custom"===e.columnsHeight?(0,g.ws)(e.columnsHeightCustom):e.columnsHeight};if(N||I){const t=(0,H.pickBy)({paddingTop:M("paddingTablet")?.top,paddingRight:M("paddingTablet")?.right,paddingBottom:M("paddingTablet")?.bottom,paddingLeft:M("paddingTablet")?.left,marginTop:M("marginTablet")?.top,marginBottom:M("marginTablet")?.bottom,minHeight:"custom"===e.columnsHeight?(0,g.ws)(e.columnsHeightCustomTablet):e.columnsHeight},(e=>e));Q=(0,H.merge)(Q,t)}if(I){const t=(0,H.pickBy)({paddingTop:M("paddingMobile")?.top,paddingRight:M("paddingMobile")?.right,paddingBottom:M("paddingMobile")?.bottom,paddingLeft:M("paddingMobile")?.left,marginTop:M("marginMobile")?.top,marginBottom:M("marginMobile")?.bottom,minHeight:"custom"===e.columnsHeight?(0,g.ws)(e.columnsHeightCustomMobile):e.columnsHeight},(e=>e));Q=(0,H.merge)(Q,t)}"color"===e.backgroundType&&(q={backgroundColor:e.backgroundColor}),"image"===e.backgroundType&&(q={backgroundImage:`url( '${e.backgroundImage?.url}' )`,backgroundAttachment:e.backgroundAttachment,backgroundPosition:`${Math.round(100*e.backgroundPosition?.x)}% ${Math.round(100*e.backgroundPosition?.y)}%`,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize}),"gradient"===e.backgroundType&&(q={backgroundImage:e.backgroundGradient}),e.border&&!(0,H.isEmpty)(e.border)&&(J={borderTopWidth:e.border.top,borderRightWidth:e.border.right,borderBottomWidth:e.border.bottom,borderLeftWidth:e.border.left,borderStyle:"solid",borderColor:e.borderColor}),e.borderRadius&&!(0,H.isEmpty)(e.borderRadius)&&(K={borderTopLeftRadius:e.borderRadius.top,borderTopRightRadius:e.borderRadius.right,borderBottomRightRadius:e.borderRadius.bottom,borderBottomLeftRadius:e.borderRadius.left}),!0===e.boxShadow&&(Y={boxShadow:`${e.boxShadowHorizontal}px ${e.boxShadowVertical}px ${e.boxShadowBlur}px ${e.boxShadowSpread}px ${!e.boxShadowColor.includes("var(")||void 0!==e.boxShadowColorOpacity&&100!==e.boxShadowColorOpacity?R()(e.boxShadowColor?e.boxShadowColor:"#000000",e.boxShadowColorOpacity):e.boxShadowColor}`});const X={...Q,...q,...J,...K,...Y,"--link-color":e.linkColor};"color"===e.backgroundOverlayType&&(Z={background:e.backgroundOverlayColor,opacity:e.backgroundOverlayOpacity/100}),"image"===e.backgroundOverlayType&&(Z={backgroundImage:`url( '${e.backgroundOverlayImage?.url}' )`,backgroundAttachment:e.backgroundOverlayAttachment,backgroundPosition:`${Math.round(100*e.backgroundOverlayPosition?.x)}% ${Math.round(100*e.backgroundOverlayPosition?.y)}%`,backgroundRepeat:e.backgroundOverlayRepeat,backgroundSize:e.backgroundOverlaySize,opacity:e.backgroundOverlayOpacity/100}),"gradient"===e.backgroundOverlayType&&(Z={background:e.backgroundOverlayGradient,opacity:e.backgroundOverlayOpacity/100});const ee={...Z,...K,mixBlendMode:e.backgroundOverlayBlend,filter:`blur( ${e.backgroundOverlayFilterBlur/10}px ) brightness( ${e.backgroundOverlayFilterBrightness/10} ) contrast( ${e.backgroundOverlayFilterContrast/10} ) grayscale( ${e.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${e.backgroundOverlayFilterHue}deg ) saturate( ${e.backgroundOverlayFilterSaturate/10} )`};let te={};e.columnsWidth&&(te={maxWidth:(0,g.ws)(M("columnsWidth"))}),(N||I)&&M("columnsWidthTablet")&&(te.maxWidth=(0,g.ws)(M("columnsWidthTablet"))),I&&M("columnsWidthMobile")&&(te.maxWidth=(0,g.ws)(M("columnsWidthMobile")));const oe=n()(`has-${e.columns}-columns`,`has-desktop-${e.layout}-layout`,`has-tablet-${e.layoutTablet}-layout`,`has-mobile-${e.layoutMobile}-layout`,`has-vertical-${e.verticalAlign}`,`has-horizontal-${e.horizontalAlign}`,{"has-reverse-columns-tablet":e.reverseColumnsTablet&&!e.hideTablet&&"collapsedRows"===e.layoutTablet},{"has-reverse-columns-mobile":e.reverseColumnsMobile&&!e.hideMobile&&"collapsedRows"===e.layoutMobile},{"has-viewport-desktop":L},{"has-viewport-tablet":N},{"has-viewport-mobile":I}),le=e.columns?(0,d.useBlockProps)({id:e.id,className:oe,style:X}):(0,d.useBlockProps)();return e.columns?(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)("style",{children:[`#block-${o} `+(0,g.SJ)([["--text-color",e.color]]),`#block-${o}:hover `+(0,g.SJ)([["--text-color",e.colorHover]])]}),(0,k.jsx)(Ps,{attributes:e,setAttributes:t}),(0,k.jsx)(As,{attributes:e,setAttributes:t,getValue:M,updateColumnsWidth:B,dividerViewType:O,setDividerViewType:V,changeColumnsNumbers:T}),(0,k.jsxs)(U,{...le,children:[(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:ee}),(0,k.jsx)(Fs,{type:"top",style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert,width:G,height:$}),(0,k.jsx)("div",{className:"innerblocks-wrap",style:te,children:(0,k.jsx)(d.InnerBlocks,{allowedBlocks:["themeisle-blocks/advanced-column"],orientation:"horizontal"})}),(0,k.jsx)(Fs,{type:"bottom",style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert,width:E,height:W})]})]}):(0,k.jsx)("div",{...le,children:(0,k.jsx)(d.__experimentalBlockVariationPicker,{label:(0,l.__)("Section","otter-blocks"),instructions:(0,l.__)("Select a layout to start with, or make one yourself.","otter-blocks"),icon:i.columnsIcon,variations:w,onSelect:(e=C)=>{e&&(c(o,(0,s.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0),t(e.attributes))},allowSkip:!0})})},save:({attributes:e})=>{const t=e.columnsHTMLTag,o=e.hide?"":`has-desktop-${e.layout}-layout`,l=e.hideTablet?"":`has-tablet-${e.layoutTablet}-layout`,s=e.hideMobile?"":`has-mobile-${e.layoutMobile}-layout`,a=n()(`has-${e.columns}-columns`,o,l,s,{"hide-in-desktop":e.hide},{"hide-in-tablet":e.hideTablet},{"hide-in-mobile":e.hideMobile},{"has-reverse-columns-tablet":e.reverseColumnsTablet&&!e.hideTablet&&"collapsedRows"===e.layoutTablet},{"has-reverse-columns-mobile":e.reverseColumnsMobile&&!e.hideMobile&&"collapsedRows"===e.layoutMobile},`has-vertical-${e.verticalAlign}`),i=d.useBlockProps.save({id:e.id,className:a});return(0,k.jsxs)(t,{...i,children:[(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),(0,k.jsx)(Fs,{type:"top",front:!0,style:e.dividerTopType,fill:e.dividerTopColor,invert:e.dividerTopInvert}),(0,k.jsx)("div",{className:"innerblocks-wrap",children:(0,k.jsx)(d.InnerBlocks.Content,{})}),(0,k.jsx)(Fs,{type:"bottom",front:!0,style:e.dividerBottomType,fill:e.dividerBottomColor,invert:e.dividerBottomInvert})]})},example:{viewportWidth:1e3,attributes:{},innerBlocks:[{name:"themeisle-blocks/advanced-column",attributes:{margin:{right:"10px"}},innerBlocks:[{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis."}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:"Suspendisse commodo neque lacus, a dictum orci interdum et."}}]},{name:"themeisle-blocks/advanced-column",attributes:{margin:{left:"10px"}},innerBlocks:[{name:"core/paragraph",attributes:{content:"Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit."}},{name:"core/paragraph",attributes:{content:"Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim."}}]}]}});var Is=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-column","title":"Section Column","category":"themeisle-blocks","description":"A single column within a Section block. Powered by Otter.","parent":["themeisle-blocks/advanced-columns"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"padding":{"type":"object","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"color":{"type":"string"},"colorHover":{"type":"string"},"linkColor":{"type":"string"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayOpacity":{"type":"number","default":50},"backgroundOverlayType":{"type":"string","default":"color"},"backgroundOverlayColor":{"type":"string"},"backgroundOverlayImage":{"type":"object"},"backgroundOverlayAttachment":{"type":"string","default":"scroll"},"backgroundOverlayPosition":{"type":"object"},"backgroundOverlayRepeat":{"type":"string","default":"repeat"},"backgroundOverlaySize":{"type":"string","default":"auto"},"backgroundOverlayGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayFilterBlur":{"type":"number","default":0},"backgroundOverlayFilterBrightness":{"type":"number","default":10},"backgroundOverlayFilterContrast":{"type":"number","default":10},"backgroundOverlayFilterGrayscale":{"type":"number","default":0},"backgroundOverlayFilterHue":{"type":"number","default":0},"backgroundOverlayFilterSaturate":{"type":"number","default":10},"backgroundOverlayBlend":{"type":"string","default":"normal"},"backgroundColorHover":{"type":"string"},"border":{"type":"object"},"borderColor":{"type":"string"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"columnsHTMLTag":{"type":"string","default":"div"},"columnWidth":{"type":"string"},"verticalAlign":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"inserter":false,"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}');const Os={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},Hs=[{attributes:Os,supports:{inserter:!1,reusable:!1,html:!1},save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag;let l,s,a,i;if("color"===e.backgroundType&&(l={background:e.backgroundColor}),"image"===e.backgroundType&&(l={backgroundImage:`url( '${e.backgroundImageURL}' )`,backgroundAttachment:e.backgroundAttachment,backgroundPosition:e.backgroundPosition,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize}),"gradient"===e.backgroundType){let t;t="linear"===e.backgroundGradientType?`${e.backgroundGradientAngle}deg`:`at ${e.backgroundGradientPosition}`,l={background:`${e.backgroundGradientType}-gradient( ${t}, ${e.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${e.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}% )`}}"linked"===e.borderType&&(s={borderWidth:`${e.border}px`,borderStyle:"solid",borderColor:e.borderColor}),"unlinked"===e.borderType&&(s={borderTopWidth:`${e.borderTop}px`,borderRightWidth:`${e.borderRight}px`,borderBottomWidth:`${e.borderBottom}px`,borderLeftWidth:`${e.borderLeft}px`,borderStyle:"solid",borderColor:e.borderColor}),"linked"===e.borderRadiusType&&(a={borderRadius:`${e.borderRadius}px`}),"unlinked"===e.borderRadiusType&&(a={borderTopLeftRadius:`${e.borderRadiusTop}px`,borderTopRightRadius:`${e.borderRadiusRight}px`,borderBottomRightRadius:`${e.borderRadiusBottom}px`,borderBottomLeftRadius:`${e.borderRadiusLeft}px`}),!0===e.boxShadow&&(i={boxShadow:`${e.boxShadowHorizontal}px ${e.boxShadowVertical}px ${e.boxShadowBlur}px ${e.boxShadowSpread}px ${R()(e.boxShadowColor?e.boxShadowColor:"#000000",e.boxShadowColorOpacity)}`});const r={...l,...s,...a,...i};return(0,k.jsx)(o,{className:t,id:e.id,style:r,children:(0,k.jsx)(d.InnerBlocks.Content,{})})}},{attributes:{...Os,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{let t="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${R()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${R()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}return{...{...(0,H.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),backgroundGradient:t}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor,save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag;return(0,k.jsx)(o,{className:t,id:e.id,children:(0,k.jsx)(d.InnerBlocks.Content,{})})}},{attributes:{...(0,H.omit)(Os,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{const t={},o={},l={},s={},a={},i={},r={},n={};let c={},d={};"unlinked"===e.paddingType?(t.top=(0,H.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,H.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,H.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,H.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,H.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,H.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,H.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,H.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,H.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,H.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,H.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,H.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,H.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,H.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(s.top=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",s.bottom=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",s.left=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px",s.right=(0,H.isUndefined)(e.margin)?"20px":e.margin+"px"):(s.top=(0,H.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",s.bottom=(0,H.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px",s.left=(0,H.isUndefined)(e.marginLeft)?"20px":e.marginLeft+"px",s.right=(0,H.isUndefined)(e.marginRight)?"20px":e.marginRight+"px"),"linked"===e.marginTypeTablet?(a.top=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",a.bottom=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",a.left=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",a.right=(0,H.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(a.top=(0,H.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",a.bottom=(0,H.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px",a.left=(0,H.isUndefined)(e.marginLeftTablet)?null:e.marginLeftTablet+"px",a.right=(0,H.isUndefined)(e.marginRightTablet)?null:e.marginRightTablet+"px"),"linked"===e.marginTypeMobile?(i.top=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",i.bottom=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",i.left=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",i.right=(0,H.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(i.top=(0,H.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",i.bottom=(0,H.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px",i.left=(0,H.isUndefined)(e.marginLeftMobile)?null:e.marginLeftMobile+"px",i.right=(0,H.isUndefined)(e.marginRightMobile)?null:e.marginRightMobile+"px"),"unlinked"===e.borderType?(r.top=(0,H.isUndefined)(e.borderTop)?null:e.borderTop+"px",r.bottom=(0,H.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",r.left=(0,H.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",r.right=(0,H.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(r.top=(0,H.isUndefined)(e.border)?null:e.border+"px",r.bottom=(0,H.isUndefined)(e.border)?null:e.border+"px",r.left=(0,H.isUndefined)(e.border)?null:e.border+"px",r.right=(0,H.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(n.top=(0,H.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",n.bottom=(0,H.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",n.left=(0,H.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",n.right=(0,H.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(n.top=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.bottom=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.left=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",n.right=(0,H.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(c={id:e.backgroundImageID,url:e.backgroundImageURL});return void 0!==e.backgroundPosition&&(d={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}}[e.backgroundPosition]),{...{...(0,H.omit)(e,["paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,g.MZ)(t)&&{padding:t},...!(0,g.MZ)(o)&&{paddingTablet:o},...!(0,g.MZ)(l)&&{paddingMobile:l},...!(0,g.MZ)(s)&&{margin:s},...!(0,g.MZ)(a)&&{marginTablet:a},...!(0,g.MZ)(i)&&{marginMobile:i},...!(0,g.MZ)(r)&&{border:r},...!(0,g.MZ)(n)&&{borderRadius:n},...!(0,g.MZ)(c)&&{backgroundImage:c},...!(0,g.MZ)(d)&&{backgroundPosition:d}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,H.isUndefined)(e[t])&&"number"==typeof e[t]))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition,save:({attributes:e,className:t})=>{const o=e.columnsHTMLTag;return(0,k.jsx)(o,{className:t,id:e.id,children:(0,k.jsx)(d.InnerBlocks.Content,{})})}}];var Vs=Hs,Ds=({attributes:e,setAttributes:t})=>(0,k.jsx)(d.BlockControls,{children:(0,k.jsx)(d.BlockVerticalAlignmentToolbar,{onChange:o=>e.verticalAlign===o?t({verticalAlign:void 0}):t({verticalAlign:o}),value:e.verticalAlign})}),Gs=({attributes:e,setAttributes:t,getValue:o,parentBlock:s,updateBlockAttributes:a,currentBlockWidth:i,nextBlock:r,nextBlockWidth:n})=>{const c=(0,u.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[m,x]=(0,y.useTabSwitch)(e.id,"layout"),f=()=>{switch(c){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}},v=()=>{switch(c){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}},_=(e,t,o,l)=>"color"===e&&t?t:"image"===e&&o?`url( ${o} )`:"gradient"===e&&l?l:void 0;return(0,k.jsxs)(d.InspectorControls,{children:[(0,k.jsx)(h.R7,{value:m,options:[{label:(0,l.__)("Layout","otter-blocks"),value:"layout"},{label:(0,l.__)("Style","otter-blocks"),value:"style"}],onChange:x}),"layout"===m&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Column Structure","otter-blocks"),children:[1<s.innerBlocks.length&&(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Column Width","otter-blocks"),value:Number(e.columnWidth),onChange:e=>{const o=e||10,l=Number(i.current)-o+Number(n.current);i.current=o,n.current=l,t({columnWidth:o.toFixed(2)}),a(r.current,{columnWidth:l.toFixed(2)})},step:.1,min:10,max:Number(e.columnWidth)+Number(n.current)-10}),(0,k.jsx)(p.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:e.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>t({columnsHTMLTag:e})})]}),(0,k.jsx)(h.Cu,{})]})||"style"===m&&(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Dimensions","otter-blocks"),children:[(0,k.jsx)(h.ax,{isSynced:e.isSynced,options:[{label:(0,l.__)("Padding","otter-blocks"),value:f()},{label:(0,l.__)("Margin","otter-blocks"),value:v()}],setAttributes:t}),(0,k.jsxs)(h.k3,{label:(0,l.__)("Screen Type","otter-blocks"),children:[(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes(f())||!1,className:"o-disabled",children:(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{const e={...Is.attributes.padding.default};switch(c){case"Desktop":return(0,H.merge)(e,o("padding"));case"Tablet":return(0,H.merge)(e,{...o("padding")},o("paddingTablet"));case"Mobile":return(0,H.merge)(e,{...o("padding")},o("paddingTablet"),o("paddingMobile"));default:return}})(),inputProps:{min:0,max:500},onChange:o=>{switch((0,g.jW)(o)&&(o=void 0),c){case"Desktop":return t({padding:o});case"Tablet":return t({paddingTablet:(0,g.JE)(o,e.padding)});case"Mobile":return t({paddingMobile:(0,g.JE)(o,{...e.padding,...e.paddingTablet})});default:return}}})}),(0,k.jsx)(p.Disabled,{isDisabled:e.isSynced?.includes(v())||!1,className:"o-disabled",children:(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{const e={...Is.attributes.margin.default};switch(c){case"Desktop":return(0,H.merge)(e,o("margin"));case"Tablet":return(0,H.merge)(e,{...o("margin")},o("marginTablet"));case"Mobile":return(0,H.merge)(e,{...o("margin")},o("marginTablet"),o("marginMobile"));default:return}})(),inputProps:{min:-500,max:500},onChange:o=>{switch((0,g.jW)(o)&&(o=void 0),c){case"Desktop":return t({margin:o});case"Tablet":return t({marginTablet:(0,g.JE)(o,e.margin)});case"Mobile":return t({marginMobile:(0,g.JE)(o,{...e.margin,...e.marginTablet})});default:return}}})})]})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Background & Content","otter-blocks"),initialOpen:!1,children:[(0,k.jsx)(h._b,{label:(0,l.__)("Text","otter-blocks"),colorValue:e.color,onColorChange:e=>t({color:e}),className:"is-list is-first"}),(0,k.jsx)(h._b,{label:(0,l.__)("Link","otter-blocks"),colorValue:e.linkColor,onColorChange:e=>t({linkColor:e}),className:"is-list"}),(0,k.jsx)(h.JC,{label:(0,l.__)("Background","otter-blocks"),indicator:_(e.backgroundType,e.backgroundColor,e.backgroundImage?.url,e.backgroundGradient),children:(0,k.jsx)(h.zZ,{backgroundType:e.backgroundType,backgroundColor:e.backgroundColor,image:e.backgroundImage,gradient:e.backgroundGradient,focalPoint:e.backgroundPosition,backgroundAttachment:e.backgroundAttachment,backgroundRepeat:e.backgroundRepeat,backgroundSize:e.backgroundSize,changeBackgroundType:e=>t({backgroundType:e}),changeImage:e=>{t({backgroundImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>t({backgroundImage:void 0}),changeColor:e=>t({backgroundColor:e}),changeGradient:e=>t({backgroundGradient:e}),changeBackgroundAttachment:e=>t({backgroundAttachment:e}),changeBackgroundRepeat:e=>t({backgroundRepeat:e}),changeFocalPoint:e=>t({backgroundPosition:e}),changeBackgroundSize:e=>t({backgroundSize:e})})}),(0,k.jsx)(h.JC,{label:(0,l.__)("Background Overlay","otter-blocks"),indicator:_(e.backgroundOverlayType,e.backgroundOverlayColor,e.backgroundOverlayImage?.url,e.backgroundOverlayGradient),children:(0,k.jsx)(h.cR,{backgroundType:e.backgroundOverlayType,backgroundColor:e.backgroundOverlayColor,image:e.backgroundOverlayImage,gradient:e.backgroundOverlayGradient,focalPoint:e.backgroundOverlayPosition,backgroundAttachment:e.backgroundOverlayAttachment,backgroundRepeat:e.backgroundOverlayRepeat,backgroundSize:e.backgroundOverlaySize,backgroundOpacity:e.backgroundOverlayOpacity,backgroundFilterBlur:e.backgroundOverlayFilterBlur,backgroundFilterBrightness:e.backgroundOverlayFilterBrightness,backgroundFilterContrast:e.backgroundOverlayFilterContrast,backgroundFilterGrayscale:e.backgroundOverlayFilterGrayscale,backgroundFilterHue:e.backgroundOverlayFilterHue,backgroundFilterSaturate:e.backgroundOverlayFilterSaturate,backgroundBlend:e.backgroundOverlayBlend,changeBackgroundType:e=>t({backgroundOverlayType:e}),changeImage:e=>{t({backgroundOverlayImage:(0,H.pick)(e,["id","url"])})},removeImage:()=>t({backgroundOverlayImage:void 0}),changeColor:e=>t({backgroundOverlayColor:e}),changeGradient:e=>t({backgroundOverlayGradient:e}),changeBackgroundAttachment:e=>t({backgroundOverlayAttachment:e}),changeBackgroundRepeat:e=>t({backgroundOverlayRepeat:e}),changeFocalPoint:e=>t({backgroundOverlayPosition:e}),changeBackgroundSize:e=>t({backgroundOverlaySize:e}),changeOpacity:e=>t({backgroundOverlayOpacity:e}),changeFilterBlur:e=>t({backgroundOverlayFilterBlur:e}),changeFilterBrightness:e=>t({backgroundOverlayFilterBrightness:e}),changeFilterContrast:e=>t({backgroundOverlayFilterContrast:e}),changeFilterGrayscale:e=>t({backgroundOverlayFilterGrayscale:e}),changeFilterHue:e=>t({backgroundOverlayFilterHue:e}),changeFilterSaturate:e=>t({backgroundOverlayFilterSaturate:e}),changeBlend:e=>t({backgroundOverlayBlend:e})})}),(0,k.jsx)(h._b,{label:(0,l.__)("Text Hover","otter-blocks"),colorValue:e.colorHover,onColorChange:e=>t({colorHover:e}),className:"is-list"}),(0,k.jsx)(h._b,{label:(0,l.__)("Background Hover","otter-blocks"),colorValue:e.backgroundColorHover,onColorChange:e=>t({backgroundColorHover:e}),className:"is-list"})]}),(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1,children:[(0,k.jsx)(h._b,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:e.borderColor,onColorChange:e=>t({borderColor:e})}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:e.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,g.jW)(e)&&(e=void 0),t({border:e})}}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:e.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],onChange:e=>{(0,g.jW)(e)&&(e=void 0),t({borderRadius:e})}}),(0,k.jsx)(p.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:e.boxShadow,onChange:()=>t({boxShadow:!e.boxShadow})}),e.boxShadow&&(0,k.jsxs)(h.HZ,{label:(0,l.__)("Shadow Properties","otter-blocks"),children:[(0,k.jsx)(d.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:e.boxShadowColor,onColorChange:o=>t({boxShadowColor:100>e.boxShadowColorOpacity&&o?.includes("var(")?getComputedStyle(document.documentElement,null).getPropertyValue(o?.replace("var(","")?.replace(")","")):o})}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:e.boxShadowColorOpacity,onChange:o=>{const l={boxShadowColorOpacity:o};100>o&&e.boxShadowColor?.includes("var(")&&(l.boxShadowColor=getComputedStyle(document.documentElement,null).getPropertyValue(e.boxShadowColor.replace("var(","").replace(")",""))),t(l)},min:0,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:e.boxShadowBlur,onChange:e=>t({boxShadowBlur:e}),min:0,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:e.boxShadowSpread,onChange:e=>t({boxShadowSpread:e}),min:-100,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:e.boxShadowHorizontal,onChange:e=>t({boxShadowHorizontal:e}),min:-100,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:e.boxShadowVertical,onChange:e=>t({boxShadowVertical:e}),min:-100,max:100})]})]})]})]})};const{attributes:Es}=Is;const{name:$s}=Is;(0,s.registerBlockType)($s,{...Is,title:(0,l.__)("Section Column","otter-blocks"),description:(0,l.__)("A single column within a Section block. Powered by Otter.","otter-blocks"),icon:i.columnIcon,deprecated:Vs,edit:({name:e,attributes:t,setAttributes:o,isSelected:l,clientId:s})=>{const{updateBlockAttributes:a}=(0,u.useDispatch)("core/block-editor"),{adjacentBlockClientId:i,adjacentBlock:r,parentBlock:n,hasInnerBlocks:c,isViewportAvailable:p,isPreviewDesktop:h,isPreviewTablet:x,isPreviewMobile:f}=(0,u.useSelect)((e=>{const{getAdjacentBlockClientId:t,getBlock:o,getBlockRootClientId:l}=e("core/block-editor"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post"),i=o(s),r=t(s);return{adjacentBlockClientId:r,adjacentBlock:o(r),parentBlock:o(l(s)),hasInnerBlocks:!(!i||!i.innerBlocks.length),isViewportAvailable:!!a,isPreviewDesktop:!!a&&"Desktop"===a(),isPreviewTablet:!!a&&"Tablet"===a(),isPreviewMobile:!!a&&"Mobile"===a()}}),[]),v=(0,Bs.useViewportMatch)("large",">="),_=(0,Bs.useViewportMatch)("large","<="),w=(0,Bs.useViewportMatch)("small",">="),C=(0,Bs.useViewportMatch)("small","<=");(0,b.useEffect)((()=>{const e=(0,y.blockInit)(s,Es);return()=>e(t.id)}),[t.id]),(0,b.useEffect)((()=>{if(1<n.innerBlocks.length&&!i){const e=n.innerBlocks.findIndex((e=>e.clientId===s)),t=n.innerBlocks[e-1];S.current=t.clientId,T.current=t.attributes.columnWidth}}),[]),(0,b.useEffect)((()=>{if(1<n.innerBlocks.length)if(i)T.current=r.attributes.columnWidth,S.current=i,j.current=t.columnWidth;else{const e=n.innerBlocks.findIndex((e=>e.clientId===s)),o=n.innerBlocks[e-1];T.current=o.attributes.columnWidth,S.current=o.clientId,j.current=t.columnWidth}}),[l,t.columnWidth,n.innerBlocks.length]),(0,m.g)("color"===t.backgroundType&&t.backgroundColor,t,o);const j=(0,b.useRef)(t.columnWidth),S=(0,b.useRef)(i&&i),T=(0,b.useRef)(r&&r.attributes.columnWidth),B=o=>(0,y.getDefaultValueByField)({name:e,field:o,defaultAttributes:Es,attributes:t});let M=v&&!_&&w&&!C,P=!v&&!_&&w&&!C,z=!(v||_||w||C);p&&!z&&(M=h,P=x,z=f);const{layout:A,layoutTablet:F,layoutMobile:L}=n.attributes,N=n.innerBlocks.findIndex((e=>e.clientId===s));let{columns:I}=n.attributes;6<I&&(I=6),void 0===t.columnWidth&&a(s,{columnWidth:Ms[I][A][N]});const O=t.columnsHTMLTag;let V,D,G,E,$,W={paddingTop:B("padding")?.top,paddingRight:B("padding")?.right,paddingBottom:B("padding")?.bottom,paddingLeft:B("padding")?.left,marginTop:B("margin")?.top,marginRight:B("margin")?.right,marginBottom:B("margin")?.bottom,marginLeft:B("margin")?.left};if(M){const e=(0,H.pickBy)({flexBasis:`${t.columnWidth}%`},(e=>e));W=(0,H.merge)(W,e)}if(P||z){const e=Ms[I][F][N],t=(0,H.pickBy)({flexBasis:`${e}%`,paddingTop:B("paddingTablet")?.top,paddingRight:B("paddingTablet")?.right,paddingBottom:B("paddingTablet")?.bottom,paddingLeft:B("paddingTablet")?.left,marginTop:B("marginTablet")?.top,marginRight:B("marginTablet")?.right,marginBottom:B("marginTablet")?.bottom,marginLeft:B("marginTablet")?.left},(e=>e));W=(0,H.merge)(W,t)}if(z){const e=Ms[I][L][N],t=(0,H.pickBy)({flexBasis:`${e}%`,paddingTop:B("paddingMobile")?.top,paddingRight:B("paddingMobile")?.right,paddingBottom:B("paddingMobile")?.bottom,paddingLeft:B("paddingMobile")?.left,marginTop:B("marginMobile")?.top,marginRight:B("marginMobile")?.right,marginBottom:B("marginMobile")?.bottom,marginLeft:B("marginMobile")?.left},(e=>e));W=(0,H.merge)(W,t)}"color"===t.backgroundType&&(V={"--background":t.backgroundColor}),"image"===t.backgroundType&&(V={"--background":`url( '${t.backgroundImage?.url}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:`${Math.round(100*t.backgroundPosition?.x)}% ${Math.round(100*t.backgroundPosition?.y)}%`,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType&&(V={"--background":t.backgroundGradient}),t.border&&!(0,H.isEmpty)(t.border)&&(G={borderTopWidth:t.border.top,borderRightWidth:t.border.right,borderBottomWidth:t.border.bottom,borderLeftWidth:t.border.left,borderStyle:"solid",borderColor:t.borderColor}),t.borderRadius&&!(0,H.isEmpty)(t.borderRadius)&&(E={borderTopLeftRadius:t.borderRadius.top,borderTopRightRadius:t.borderRadius.right,borderBottomRightRadius:t.borderRadius.bottom,borderBottomLeftRadius:t.borderRadius.left}),!0===t.boxShadow&&($={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${!t.boxShadowColor.includes("var(")||void 0!==t.boxShadowColorOpacity&&100!==t.boxShadowColorOpacity?R()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity):t.boxShadowColor}`});const U={...W,...V,...G,...E,...$,"--link-color":t.linkColor,"--background-color-hover":t.backgroundColorHover};t.verticalAlign&&(U.alignItems={top:"flex-start",center:"center",bottom:"flex-end"}[t.verticalAlign]),"color"===t.backgroundOverlayType&&(D={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(D={backgroundImage:`url( '${t.backgroundOverlayImage?.url}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:`${Math.round(100*t.backgroundOverlayPosition?.x)}% ${Math.round(100*t.backgroundOverlayPosition?.y)}%`,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType&&(D={background:t.backgroundOverlayGradient,opacity:t.backgroundOverlayOpacity/100});const q="color"===t.backgroundOverlayType&&t.backgroundOverlayColor||"image"===t.backgroundOverlayType&&t.backgroundOverlayImage?.url||"gradient"===t.backgroundOverlayType&&t.backgroundOverlayGradient,Z={...D,...E,mixBlendMode:t.backgroundOverlayBlend,filter:`blur( ${t.backgroundOverlayFilterBlur/10}px ) brightness( ${t.backgroundOverlayFilterBrightness/10} ) contrast( ${t.backgroundOverlayFilterContrast/10} ) grayscale( ${t.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${t.backgroundOverlayFilterHue}deg ) saturate( ${t.backgroundOverlayFilterSaturate/10} )`},J=(0,d.useBlockProps)({id:t.id,style:U});return(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)("style",{children:[`#block-${s}`+(0,g.SJ)([["--text-color",t.color]]),`#block-${s}:hover`+(0,g.SJ)([["--text-color",t.colorHover]])]}),(0,k.jsx)(Ds,{attributes:t,setAttributes:o}),(0,k.jsx)(Gs,{attributes:t,setAttributes:o,getValue:B,parentBlock:n,updateBlockAttributes:a,currentBlockWidth:j,nextBlock:S,nextBlockWidth:T}),(0,k.jsxs)(O,{...J,children:[q&&(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-column-overlay",style:Z}),(0,k.jsx)(d.InnerBlocks,{templateLock:!1,renderAppender:!c&&d.InnerBlocks.ButtonBlockAppender})]})]})},save:({attributes:e})=>{const t=e.columnsHTMLTag,o="color"===e.backgroundOverlayType&&e.backgroundOverlayColor||"image"===e.backgroundOverlayType&&e.backgroundOverlayImage?.url||"gradient"===e.backgroundOverlayType&&e.backgroundOverlayGradient,l=d.useBlockProps.save({id:e.id});return(0,k.jsxs)(t,{...l,children:[o&&(0,k.jsx)("div",{className:"wp-block-themeisle-blocks-advanced-column-overlay"}),(0,k.jsx)(d.InnerBlocks.Content,{})]})}});var Ws=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/sharing-icons","title":"Sharing Icons","category":"themeisle-blocks","description":"Share buttons for your website visitors to share content on any social sharing service. Powered by Otter.","keywords":["social media","sharing","icons"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"facebook":{"type":["object","boolean"],"default":{"active":true}},"twitter":{"type":["object","boolean"],"default":{"active":true}},"linkedin":{"type":["object","boolean"],"default":{"active":true}},"pinterest":{"type":["object","boolean"],"default":{"active":false}},"tumblr":{"type":["object","boolean"],"default":{"active":false}},"reddit":{"type":["object","boolean"],"default":{"active":false}},"whatsapp":{"type":["object","boolean"],"default":{"active":false}},"telegram":{"type":["object","boolean"],"default":{"active":false}},"email":{"type":["object","boolean"],"default":{"active":false}},"mastodon":{"type":["object","boolean"],"default":{"active":false}},"comments":{"type":["object","boolean"],"default":{"active":false}},"threads":{"type":["object","boolean"],"default":{"active":false}},"gap":{"type":"number"},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"context":{"type":"string"}},"styles":[{"name":"default","label":"Regular","isDefault":true},{"name":"icons","label":"Icons Only"}],"supports":{"align":["left","center","right"]},"editorStyle":"otter-sharing-icons-editor","style":"otter-sharing-icons-style"}'),Us=window.wp.serverSideRender,qs=o.n(Us),Zs=({icon:e})=>"facebook"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})}):"twitter"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"})}):"linkedin"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"})}):"pinterest"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"})}):"tumblr"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"})}):"reddit"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"})}):"whatsapp"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,k.jsx)(p.Path,{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"})}):"email"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{d:"M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"})}):"telegram"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{d:"M248,8C111.033,8,0,119.033,0,256S111.033,504,248,504,496,392.967,496,256,384.967,8,248,8ZM362.952,176.66c-3.732,39.215-19.881,134.378-28.1,178.3-3.476,18.584-10.322,24.816-16.948,25.425-14.4,1.326-25.338-9.517-39.287-18.661-21.827-14.308-34.158-23.215-55.346-37.177-24.485-16.135-8.612-25,5.342-39.5,3.652-3.793,67.107-61.51,68.335-66.746.153-.655.3-3.1-1.154-4.384s-3.59-.849-5.135-.5q-3.283.746-104.608,69.142-14.845,10.194-26.894,9.934c-8.855-.191-25.888-5.006-38.551-9.123-15.531-5.048-27.875-7.717-26.8-16.291q.84-6.7,18.45-13.7,108.446-47.248,144.628-62.3c68.872-28.647,83.183-33.623,92.511-33.789,2.052-.034,6.639.474,9.61,2.885a10.452,10.452,0,0,1,3.53,6.716A43.765,43.765,0,0,1,362.952,176.66Z"})}):"mastodon"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{d:"M433 179.11c0-97.2-63.71-125.7-63.71-125.7-62.52-28.7-228.56-28.4-290.48 0 0 0-63.72 28.5-63.72 125.7 0 115.7-6.6 259.4 105.63 289.1 40.51 10.7 75.32 13 103.33 11.4 50.81-2.8 79.32-18.1 79.32-18.1l-1.7-36.9s-36.31 11.4-77.12 10.1c-40.41-1.4-83-4.4-89.63-54a102.54 102.54 0 0 1-.9-13.9c85.63 20.9 158.65 9.1 178.75 6.7 56.12-6.7 105-41.3 111.23-72.9 9.8-49.8 9-121.5 9-121.5zm-75.12 125.2h-46.63v-114.2c0-49.7-64-51.6-64 6.9v62.5h-46.33V197c0-58.5-64-56.6-64-6.9v114.2H90.19c0-122.1-5.2-147.9 18.41-175 25.9-28.9 79.82-30.8 103.83 6.1l11.6 19.5 11.6-19.5c24.11-37.1 78.12-34.8 103.83-6.1 23.71 27.3 18.4 53 18.4 175z"})}):"comments"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2 0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.3-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9l0 0 0 0-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"})}):"threads"===e?(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,k.jsx)(p.Path,{d:"M331.5 235.7c2.2 .9 4.2 1.9 6.3 2.8c29.2 14.1 50.6 35.2 61.8 61.4c15.7 36.5 17.2 95.8-30.3 143.2c-36.2 36.2-80.3 52.5-142.6 53h-.3c-70.2-.5-124.1-24.1-160.4-70.2c-32.3-41-48.9-98.1-49.5-169.6V256v-.2C17 184.3 33.6 127.2 65.9 86.2C102.2 40.1 156.2 16.5 226.4 16h.3c70.3 .5 124.9 24 162.3 69.9c18.4 22.7 32 50 40.6 81.7l-40.4 10.8c-7.1-25.8-17.8-47.8-32.2-65.4c-29.2-35.8-73-54.2-130.5-54.6c-57 .5-100.1 18.8-128.2 54.4C72.1 146.1 58.5 194.3 58 256c.5 61.7 14.1 109.9 40.3 143.3c28 35.6 71.2 53.9 128.2 54.4c51.4-.4 85.4-12.6 113.7-40.9c32.3-32.2 31.7-71.8 21.4-95.9c-6.1-14.2-17.1-26-31.9-34.9c-3.7 26.9-11.8 48.3-24.7 64.8c-17.1 21.8-41.4 33.6-72.7 35.3c-23.6 1.3-46.3-4.4-63.9-16c-20.8-13.8-33-34.8-34.3-59.3c-2.5-48.3 35.7-83 95.2-86.4c21.1-1.2 40.9-.3 59.2 2.8c-2.4-14.8-7.3-26.6-14.6-35.2c-10-11.7-25.6-17.7-46.2-17.8H227c-16.6 0-39 4.6-53.3 26.3l-34.4-23.6c19.2-29.1 50.3-45.1 87.8-45.1h.8c62.6 .4 99.9 39.5 103.7 107.7l-.2 .2zm-156 68.8c1.3 25.1 28.4 36.8 54.6 35.3c25.6-1.4 54.6-11.4 59.5-73.2c-13.2-2.9-27.8-4.4-43.4-4.4c-4.8 0-9.6 .1-14.4 .4c-42.9 2.4-57.2 23.2-56.2 41.8l-.1 .1z"})}):(0,k.jsx)(p.SVG,{className:"o-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,k.jsx)(p.Path,{fill:"currentColor",d:"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"})}),Js=({attributes:e,setAttributes:t,socialList:o})=>(0,k.jsx)(d.BlockControls,{children:(0,k.jsx)(p.ToolbarGroup,{children:Object.keys(o).map((s=>{var a;const i=null!==(a=e[s]?.active)&&void 0!==a?a:e?.[s];return(0,k.jsx)(p.Tooltip,{text:(0,l.sprintf)(/* translators: %s Label */ /* translators: %s Label */
 (0,l.__)("Display %s","otter-blocks"),o[s].label),children:(0,k.jsx)(p.Button,{className:n()("components-button","wp-block-themeisle-toolbar",{"is-active":i}),onClick:()=>(o=>{const l={...e[o]};l.active=!l?.active,t({[o]:{...l}})})(s),children:(0,k.jsx)(Zs,{icon:s})})},s)}))})}),Ks=({attributes:e,setAttributes:t,socialList:o})=>{const s=(o,l,s)=>{const a={...e[l]};a[s]=o,t({[l]:{...a}})};return(0,k.jsxs)(d.InspectorControls,{children:[(0,k.jsxs)(p.PanelBody,{title:(0,l.__)("Settings","otter-blocks"),children:[(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Items Gap","otter-blocks"),value:e.gap,onChange:e=>t({gap:e}),allowReset:!0,step:.1,max:100}),(0,k.jsx)(p.RangeControl,{label:(0,l.__)("Icons Border Radius","otter-blocks"),value:e.borderRadius,onChange:e=>t({borderRadius:e}),allowReset:!0,step:.1,max:50})]}),(0,k.jsx)(d.PanelColorSettings,{title:(0,l.__)("Color Settings","otter-blocks"),className:"ott-color-controls",initialOpen:!1,colorSettings:Object.keys(o).reduce(((t,a)=>{var i;return(null!==(i=e?.[a]?.active)&&void 0!==i?i:e?.[a])?[...t,{value:e[a].backgroundColor,onChange:e=>s(e,a,"backgroundColor"),onGradientChange:e=>s(e,a,"backgroundColor"),isShownByDefault:!0,
 /* translators: %s Social Website */
 label:(0,l.sprintf)((0,l.__)("%s Background Color","otter-blocks"),o[a].label)},{value:e[a].textColor,onChange:e=>s(e,a,"textColor"),isShownByDefault:!0,
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/form.asset.php /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/form.asset.php
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/form.asset.php	2025-05-27 11:15:38.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/form.asset.php	2026-02-27 20:02:42.000000000 +0000
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => '9135d80b9976657ad67b');
+<?php return array('dependencies' => array(), 'version' => '27b26b0b78d87efb81b4');
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/form.js /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/form.js
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/form.js	2025-05-27 11:15:38.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/form.js	2026-02-27 20:02:42.000000000 +0000
@@ -1 +1 @@
-!function(){"use strict";var e=class{constructor(e){this.form=e,this.anchor=e.querySelector(".wp-block-button"),this.anchor?.classList.add("has-submit-msg"),this.msgElem=document.createElement("div"),this.msgElem.classList.add("o-form-server-response"),this.anchor.appendChild(this.msgElem),this.isVisible=!1,this.visibilityTimeout=void 0,this.visibilityDuration=12e3}toggle(e){this.isVisible=void 0!==e?e:!this.isVisible,this.msgElem.style.display=this.isVisible?"block":"none"}getMsgBySlug(e){return window?.themeisleGutenbergForm?.messages[e]||"Messages are missing!"}pullMsg(e,t){return this.setMsg(this.getMsgBySlug(e),t)}setMsg(e,t=""){switch(this.msgElem.innerHTML=e,this.clean(),t){case"error":this.msgElem.classList.toggle("o-error",!0);break;case"warning":this.msgElem.classList.toggle("o-warning",!0);break;default:this.msgElem.classList.toggle("o-success",!0)}return this}show(e){clearTimeout(this.visibilityTimeout),this.toggle(!0),this.visibilityTimeout=setTimeout((()=>{this.toggle(!1)}),e||this.visibilityDuration)}clean(){this.msgElem.classList.toggle("o-error",!1),this.msgElem.classList.toggle("o-warning",!1),this.msgElem.classList.toggle("o-success",!1)}};let t=null,o="permanent";const i=e=>{const t=[...e?.querySelectorAll(":scope > .otter-form__container .wp-block-themeisle-blocks-form")];return[...e?.querySelectorAll(":scope > .otter-form__container .wp-block-themeisle-blocks-form-input, :scope > .otter-form__container .wp-block-themeisle-blocks-form-textarea, :scope > .otter-form__container .wp-block-themeisle-blocks-form-multiple-choice, :scope > .otter-form__container .wp-block-themeisle-blocks-form-file, :scope > .otter-form__container .wp-block-themeisle-blocks-form-hidden-field, :scope > .otter-form__container .wp-block-themeisle-blocks-form-stripe-field")].filter((e=>!t?.some((t=>t?.contains(e)))))},s=(e,t,o,i,s)=>{e.then((e=>e.json())).then((e=>{const r=e;if("0"===r?.code||"1"===r?.code||r?.success)o?.(r,t);else{let e="";"110"===r.code?t.setMsg(r?.reasons?.join(""),"error").show():"12"===r.code||"13"===r.code?t.pullMsg("invalid-file","error").show():0<r?.displayError?.length?(e=r?.displayError,t.setMsg(e,"error").show()):t.setMsg(r?.reasons?.join(""),"error").show(),i?.(r,t),console.error(`(${r?.code}) ${r?.reasons?.join("")}`)}s?.()}))?.catch((e=>{console.error(e),t.pullMsg("try-again","error").show(),i?.(e,t)}))},r=e=>{const t=document.createElement("span");return t.classList.add("spinner"),{show:()=>{e.appendChild(t)},hide:()=>{e.contains(t)&&e.removeChild(t)}}},n=async(e,n,a)=>{const l=e?.id,c={},{formFieldsData:d}=await(async e=>{const t=[{label:window?.themeisleGutenbergForm?.messages["form-submission"]||"Form submission from",value:window.location.href,metadata:{position:0}}],s=i(e);return s?.forEach(((e,i)=>{const s=e.querySelector(".otter-form-input-label"),r=(null!=s?s:e).querySelector(".otter-form-input-label__label, .otter-form-textarea-label__label");let n,a,l,c=`${(null!=r?r:s)?.innerHTML?.replace(/<[^>]*>?/gm,"")}`,d={};const{id:m}=e,u=e.querySelector('.otter-form-input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), .otter-form-textarea-input');if(null!==u)n=u?.value,a=u?.type,l=u?.name;else{const s=e.querySelector("select");l=s?.name;const r=e.querySelector('input[type="file"]'),u=e.querySelector('input[type="hidden"]'),h=e.classList.contains("wp-block-themeisle-blocks-form-stripe-field");if(r){const e=r?.files,o=r?.name;for(let s=0;s<e.length;s++)t.push({label:c,value:`${e[s].name} (${(e[s].size/1048576).toFixed(4)} MB)`,type:r.type,id:m,metadata:{version:1,name:e[s].name,size:e[s].size,file:e[s],fieldOptionName:r?.dataset?.fieldOptionName,position:i+1,mappedName:o}})}else if(s)n=[...s.selectedOptions].map((e=>e?.label))?.filter((e=>Boolean(e))).join(", "),a="multiple-choice";else if(u){const e=u?.dataset?.paramName;if(l=u?.name,e){const t=new URLSearchParams(window.location.search);t.has(e)&&(u.value=t.get(e))}u?.value&&(n=u.value,a="hidden")}else if(h)c=`${e.querySelector(".o-stripe-checkout-description h3")?.innerHTML?.replace(/<[^>]*>?/gm,"")}`,n=e.querySelector(".o-stripe-checkout-description h5")?.innerHTML?.replace(/<[^>]*>?/gm,""),a="stripe-field",l=e.name,d={fieldOptionName:e?.dataset?.fieldOptionName},o="temporary";else{const t=e.querySelectorAll(".o-form-multiple-choice-field > label"),o=e.querySelectorAll(".o-form-multiple-choice-field > input");l=o[0]?.name,n=[...t].filter(((e,t)=>o[t]?.checked)).map((e=>e.innerHTML)).join(", "),a="multiple-choice"}}n&&t.push({label:c||"(No label)",value:n,type:a,id:m,metadata:{...d,version:1,position:i+1,mappedName:l}})})),{formFieldsData:t}})(e),m=2>d?.length,u=e?.classList?.contains("has-captcha"),h=l&&window.themeisleGutenberg?.tokens?.[l]?.token,p=r(n);if(m)return n.disabled=!1,void p.hide();const f=function(e){const t=`.protection #${e.id||""}_nonce_field`;return e.querySelector(t)?.value}(e),b=function(e){let t=!0;const o=i(e);for(const e of o)if(e.classList.contains("wp-block-themeisle-blocks-form-input")){const o=e.querySelector("input");if(!o?.checkValidity()){o?.reportValidity(),t=!1;break}}else if(e.classList.contains("wp-block-themeisle-blocks-form-textarea")){const o=e.querySelector("textarea");if(!o?.checkValidity()){o?.reportValidity(),t=!1;break}}else if(e.classList.contains("wp-block-themeisle-blocks-form-multiple-choice")){const o=e.querySelector("select");if(o?.hasAttribute("required")&&!o?.checkValidity()){o?.reportValidity(),t=!1;break}const i=e.querySelectorAll('.o-form-multiple-choice-field input[type="radio"]');if(i?.length&&i[0]?.hasAttribute("required")&&![...i].some((e=>e.checked))){i[0]?.reportValidity(),t=!1;break}const s=e.querySelectorAll('.o-form-multiple-choice-field input[type="checkbox"]');if(s?.length&&s[0]?.hasAttribute("required")&&![...s].some((e=>e.checked))){s[0]?.reportValidity(),t=!1;break}}else if(e.classList.contains("wp-block-themeisle-blocks-form-file")){const o=e.querySelector("input");if(!o?.checkValidity()){o?.reportValidity(),t=!1;break}}return t}(e);if(u&&!h){const e=window.hasOwnProperty("grecaptcha")?"check-captcha":"captcha-not-loaded";a.pullMsg(e,"error").show()}if(!b||u&&!h)n.disabled=!1,n.removeChild(p);else{var w;c.formInputsData=d,h&&(c.token=window.themeisleGutenberg?.tokens?.[l].token),""!==e?.dataset?.emailSubject&&(c.emailSubject=e?.dataset?.emailSubject),e?.dataset?.optionName&&(c.formOption=e?.dataset?.optionName),e?.id&&(c.formId=e?.id),f&&(c.nonceValue=f),c.antiSpamTime=Date.now()-(null!=t?t:Date.now()),c.antiSpamHoneyPot=Boolean(null!==(w=e.querySelector(":scope > .otter-form__container > .protection .o-anti-bot")?.checked)&&void 0!==w&&w),c.postUrl=window.location.href,c.postId=(()=>{const e=document.querySelector("body"),t=e?.classList?.value?.split(" "),o=t?.find((e=>e.includes("postid-")||e.includes("page-id-")));if(o){const e=o.split("-").pop();if(e)return parseInt(e)}return 0})(),e.classList.contains("can-submit-and-subscribe")&&(c.action="submit-subscribe",c.consent=e.querySelector(".otter-form-consent input")?.checked||!1);const i=(window?.themeisleGutenbergForm?.root||window.location.origin+"/wp-json/")+"otter/v1/form/frontend",r=(e=>{const t=new FormData;return e?.payload?.formInputsData?.forEach(((o,i)=>{if("file"===o.type){const s="file__"+o.metadata.position+"_"+i;t.append(s,o.metadata.file),e.payload.formInputsData[i].metadata.file=void 0,e.payload.formInputsData[i].metadata.data=s}})),t.append("form_data",JSON.stringify(e)),t})({handler:"submit",payload:c});try{const t=fetch(i,{method:"POST",headers:{"X-WP-Nonce":window?.themeisleGutenbergForm?.nonce,"O-Form-Save-Mode":o},credentials:"include",body:r});p.show(),s(t,a,((t,o)=>{if(0<t?.frontend_external_confirmation_url?.length)return void window.open(t.frontend_external_confirmation_url,"_blank");const i=t?.submitMessage?t.submitMessage:"Success";o.setMsg(i).show(),e?.querySelector("form")?.reset(),0<t?.redirectLink?.length&&(e.setAttribute("data-redirect",t.redirectLink),setTimeout((()=>{window.location.href=t.redirectLink}),1e3))}),((e,t)=>{}),(()=>{window.themeisleGutenberg?.tokens?.[l].reset&&window.themeisleGutenberg?.tokens?.[l].reset(),n.disabled=!1,p.hide()}))}catch(e){console.error(e),a.pullMsg("try-again","error").show(),n.disabled=!1,p.hide()}}};var a;a=()=>{const o=document.querySelectorAll(".wp-block-themeisle-blocks-form");(e=>{if(!window.hasOwnProperty("grecaptcha")&&window?.themeisleGutenbergForm?.reRecaptchaSitekey){const t=document.createElement("script");t.id="recaptcha",document.body.appendChild(t),t.addEventListener("load",(()=>{const t=setInterval((()=>{window.hasOwnProperty("grecaptcha")&&window.grecaptcha.hasOwnProperty("render")&&(e.forEach((e=>{e?.classList?.contains("has-captcha")&&(e=>{if(!window.hasOwnProperty("grecaptcha"))return;const{id:t}=e,o=document.createElement("div"),i=e.querySelector(".otter-form__container");i?.insertBefore(o,i.lastChild);const s=window.grecaptcha?.render(o,{sitekey:window?.themeisleGutenbergForm?.reRecaptchaSitekey,callback:e=>{window.themeisleGutenberg||(window.themeisleGutenberg={}),window.themeisleGutenberg?.tokens||(window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[t]={token:e,reset:()=>window.grecaptcha?.reset(s)}},"expired-callback":()=>{window.themeisleGutenberg?.tokens||(window.themeisleGutenberg={},window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[t]={token:null,reset:()=>null}}})})(e)})),clearInterval(t))}),200)})),t.src=window?.themeisleGutenbergForm?.reRecaptchaAPIURL}})(o),t=Date.now(),o.forEach((t=>{t.classList.contains("can-submit-and-subscribe")&&(e=>{const t=e.querySelector(".otter-form__container"),o=e.querySelector(".wp-block-button"),i=document.createElement("div");i.classList.add("otter-form-consent"),t.insertBefore(i,o);const s=document.createElement("input");s.type="checkbox",s.name="o-consent",s.id="o-consent";const r=document.createElement("label");r.innerHTML=window?.themeisleGutenbergForm?.messages?.privacy||"I have read and agree to the privacy statement.",r.htmlFor="o-consent",i.appendChild(s),i.appendChild(r)})(t);const o=t.querySelector("button"),i=new e(t);if(new URLSearchParams(window.location.search).has("stripe_checkout")){o.disabled=!0;const e=o.innerHTML;o.innerHTML=i.getMsgBySlug("confirmingSubmission");const n=r(o);n.show(),s((async()=>{const e=new URLSearchParams(window.location.search).get("stripe_checkout"),t=(window?.themeisleGutenbergForm?.root||window.location.origin+"/wp-json/")+"otter/v1/form/confirm";return await fetch(t+`?stripe_checkout=${e}`,{method:"GET",credentials:"include"})})(),i,((e,o)=>{const i=e?.submitMessage?e.submitMessage:"Success";o.setMsg(i).show(),0<e?.redirectLink?.length&&(t.setAttribute("data-redirect",e.redirectLink),setTimeout((()=>{window.location.href=e.redirectLink}),1e3))}),(()=>{}),(()=>{o.disabled=!1,n.hide(),o.innerHTML=e}))}t.querySelector(':scope > form > button[type="submit"]')?t?.addEventListener("submit",(e=>{e.preventDefault(),o.disabled||(o.disabled=!0,n(t,o,i))}),!1):o?.addEventListener("click",(e=>{e.preventDefault(),o.disabled||(o.disabled=!0,n(t,o,i))}),!1)})),o.forEach((e=>{i(e).forEach((e=>{const t=e.querySelector("input");if("file"===t?.type){const{maxFilesNumber:e,maxFileSize:o}=t.dataset;t.addEventListener("change",(i=>{let s=!0;const{files:r}=i.target;if(e&&r.length>e&&(t.setCustomValidity(window.themeisleGutenbergForm?.messages?.["too-many-files"]+e),s=!1),s&&o)for(const e of r)if(e.size>1024*o*1024){t.setCustomValidity(window.themeisleGutenbergForm?.messages?.["big-file"]+" "+o+"MB."),s=!1;break}s?t.setCustomValidity(""):(t.reportValidity(),t.value="")}))}}))}))},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",a):a())}();
\ No newline at end of file
+!function(){"use strict";var e=class{constructor(e){this.form=e,this.anchor=e.querySelector(".wp-block-button"),this.anchor?.classList.add("has-submit-msg"),this.msgElem=document.createElement("div"),this.msgElem.classList.add("o-form-server-response"),this.anchor.appendChild(this.msgElem),this.isVisible=!1,this.visibilityTimeout=void 0,this.visibilityDuration=12e3}toggle(e){this.isVisible=void 0!==e?e:!this.isVisible,this.msgElem.style.display=this.isVisible?"block":"none"}getMsgBySlug(e){return window?.themeisleGutenbergForm?.messages[e]||"Messages are missing!"}pullMsg(e,t){return this.setMsg(this.getMsgBySlug(e),t)}setMsg(e,t=""){switch(this.msgElem.innerHTML=e,this.clean(),t){case"error":this.msgElem.classList.toggle("o-error",!0);break;case"warning":this.msgElem.classList.toggle("o-warning",!0);break;default:this.msgElem.classList.toggle("o-success",!0)}return this}show(e){clearTimeout(this.visibilityTimeout),this.toggle(!0),this.visibilityTimeout=setTimeout((()=>{this.toggle(!1)}),e||this.visibilityDuration)}clean(){this.msgElem.classList.toggle("o-error",!1),this.msgElem.classList.toggle("o-warning",!1),this.msgElem.classList.toggle("o-success",!1)}};let t=null,o="permanent";const i=e=>{const t=[...e?.querySelectorAll(":scope > .otter-form__container .wp-block-themeisle-blocks-form")];return[...e?.querySelectorAll(":scope > .otter-form__container .wp-block-themeisle-blocks-form-input, :scope > .otter-form__container .wp-block-themeisle-blocks-form-textarea, :scope > .otter-form__container .wp-block-themeisle-blocks-form-multiple-choice, :scope > .otter-form__container .wp-block-themeisle-blocks-form-file, :scope > .otter-form__container .wp-block-themeisle-blocks-form-hidden-field, :scope > .otter-form__container .wp-block-themeisle-blocks-form-stripe-field")].filter((e=>!t?.some((t=>t?.contains(e)))))},s=(e,t,o,i,s)=>{e.then((e=>e.json())).then((e=>{const r=e;if("0"===r?.code||"1"===r?.code||r?.success)o?.(r,t);else{let e="";"110"===r.code?t.setMsg(r?.reasons?.join(""),"error").show():"12"===r.code||"13"===r.code?t.pullMsg("invalid-file","error").show():0<r?.displayError?.length?(e=r?.displayError,t.setMsg(e,"error").show()):t.setMsg(r?.reasons?.join(""),"error").show(),i?.(r,t),console.error(`(${r?.code}) ${r?.reasons?.join("")}`)}s?.()}))?.catch((e=>{console.error(e),t.pullMsg("try-again","error").show(),i?.(e,t)}))},r=e=>{const t=document.createElement("span");return t.classList.add("spinner"),{show:()=>{e.appendChild(t)},hide:()=>{e.contains(t)&&e.removeChild(t)}}},n=async(e,n,a)=>{const l=e?.id,c={},{formFieldsData:d}=await(async e=>{const t=[{label:window?.themeisleGutenbergForm?.messages["form-submission"]||"Form submission from",value:window.location.href,metadata:{position:0}}],s=i(e);return s?.forEach(((e,i)=>{const s=e.querySelector(".otter-form-input-label"),r=(null!=s?s:e).querySelector(".otter-form-input-label__label, .otter-form-textarea-label__label");let n,a,l,c=`${(null!=r?r:s)?.innerHTML?.replace(/<[^>]*>?/gm,"")}`,d={};const{id:m}=e,u=e.querySelector('.otter-form-input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), .otter-form-textarea-input');if(null!==u)n=u?.value,a=u?.type,l=u?.name;else{const s=e.querySelector("select");l=s?.name;const r=e.querySelector('input[type="file"]'),u=e.querySelector('input[type="hidden"]'),h=e.classList.contains("wp-block-themeisle-blocks-form-stripe-field");if(r){const e=r?.files,o=r?.name;for(let s=0;s<e.length;s++)t.push({label:c,value:`${e[s].name} (${(e[s].size/1048576).toFixed(4)} MB)`,type:r.type,id:m,metadata:{version:1,name:e[s].name,size:e[s].size,file:e[s],fieldOptionName:r?.dataset?.fieldOptionName,position:i+1,mappedName:o}})}else if(s)n=[...s.selectedOptions].map((e=>e?.label))?.filter((e=>Boolean(e))).join(", "),a="multiple-choice";else if(u){const e=u?.dataset?.paramName;if(l=u?.name,e){const t=new URLSearchParams(window.location.search);t.has(e)&&(u.value=t.get(e))}u?.value&&(n=u.value,a="hidden")}else if(h)c=`${e.querySelector(".o-stripe-checkout-description h3")?.innerHTML?.replace(/<[^>]*>?/gm,"")}`,n=e.querySelector(".o-stripe-checkout-description h5")?.innerHTML?.replace(/<[^>]*>?/gm,""),a="stripe-field",l=e.name,d={fieldOptionName:e?.dataset?.fieldOptionName},o="temporary";else{const t=e.querySelectorAll(".o-form-multiple-choice-field > label"),o=e.querySelectorAll(".o-form-multiple-choice-field > input");l=o[0]?.name,n=[...t].filter(((e,t)=>o[t]?.checked)).map((e=>e.innerHTML)).join(", "),a="multiple-choice"}}n&&t.push({label:c||"(No label)",value:n,type:a,id:m,metadata:{...d,version:1,position:i+1,mappedName:l}})})),{formFieldsData:t}})(e),m=2>d?.length,u=e?.classList?.contains("has-captcha"),h=l&&window.themeisleGutenberg?.tokens?.[l]?.token,p=r(n),f=function(e){let t=!0;const o=i(e);for(const e of o)if(e.classList.contains("wp-block-themeisle-blocks-form-input")){const o=e.querySelector("input");if(!o?.checkValidity()){o?.reportValidity(),t=!1;break}}else if(e.classList.contains("wp-block-themeisle-blocks-form-textarea")){const o=e.querySelector("textarea");if(!o?.checkValidity()){o?.reportValidity(),t=!1;break}}else if(e.classList.contains("wp-block-themeisle-blocks-form-multiple-choice")){const o=e.querySelector("select");if(o?.hasAttribute("required")&&!o?.checkValidity()){o?.reportValidity(),t=!1;break}const i=e.querySelectorAll('.o-form-multiple-choice-field input[type="radio"]');if(i?.length&&i[0]?.hasAttribute("required")&&![...i].some((e=>e.checked))){i[0]?.reportValidity(),t=!1;break}const s=e.querySelectorAll('.o-form-multiple-choice-field input[type="checkbox"]');if(s?.length&&s[0]?.hasAttribute("required")&&![...s].some((e=>e.checked))){s[0]?.reportValidity(),t=!1;break}}else if(e.classList.contains("wp-block-themeisle-blocks-form-file")){const o=e.querySelector("input");if(!o?.checkValidity()){o?.reportValidity(),t=!1;break}}return t}(e);if(m||!f)return n.disabled=!1,void p.hide();const b=function(e){const t=`.protection #${e.id||""}_nonce_field`;return e.querySelector(t)?.value}(e);if(u&&!h){const e=window.hasOwnProperty("grecaptcha")?"check-captcha":"captcha-not-loaded";a.pullMsg(e,"error").show()}if(!f||u&&!h)n.disabled=!1,p.hide();else{var w;c.formInputsData=d,h&&(c.token=window.themeisleGutenberg?.tokens?.[l].token),""!==e?.dataset?.emailSubject&&(c.emailSubject=e?.dataset?.emailSubject),e?.dataset?.optionName&&(c.formOption=e?.dataset?.optionName),e?.id&&(c.formId=e?.id),b&&(c.nonceValue=b),c.antiSpamTime=Date.now()-(null!=t?t:Date.now()),c.antiSpamHoneyPot=Boolean(null!==(w=e.querySelector(":scope > .otter-form__container > .protection .o-anti-bot")?.checked)&&void 0!==w&&w),c.postUrl=window.location.href,c.postId=(()=>{const e=document.querySelector("body"),t=e?.classList?.value?.split(" "),o=t?.find((e=>e.includes("postid-")||e.includes("page-id-")));if(o){const e=o.split("-").pop();if(e)return parseInt(e)}return 0})(),e.classList.contains("can-submit-and-subscribe")&&(c.action="submit-subscribe",c.consent=e.querySelector(".otter-form-consent input")?.checked||!1);const i=(window?.themeisleGutenbergForm?.root||window.location.origin+"/wp-json/")+"otter/v1/form/frontend",r=(e=>{const t=new FormData;return e?.payload?.formInputsData?.forEach(((o,i)=>{if("file"===o.type){const s="file__"+o.metadata.position+"_"+i;t.append(s,o.metadata.file),e.payload.formInputsData[i].metadata.file=void 0,e.payload.formInputsData[i].metadata.data=s}})),t.append("form_data",JSON.stringify(e)),t})({handler:"submit",payload:c});try{const t=fetch(i,{method:"POST",headers:{"X-WP-Nonce":window?.themeisleGutenbergForm?.nonce,"O-Form-Save-Mode":o},credentials:"include",body:r});p.show(),s(t,a,((t,o)=>{if(0<t?.frontend_external_confirmation_url?.length)return void window.open(t.frontend_external_confirmation_url,"_blank");const i=t?.submitMessage?t.submitMessage:"Success";o.setMsg(i).show(),e?.querySelector("form")?.reset(),0<t?.redirectLink?.length&&(e.setAttribute("data-redirect",t.redirectLink),setTimeout((()=>{window.location.href=t.redirectLink}),1e3))}),((e,t)=>{}),(()=>{window.themeisleGutenberg?.tokens?.[l].reset&&window.themeisleGutenberg?.tokens?.[l].reset(),n.disabled=!1,p.hide()}))}catch(e){console.error(e),a.pullMsg("try-again","error").show(),n.disabled=!1,p.hide()}}};var a;a=()=>{const o=document.querySelectorAll(".wp-block-themeisle-blocks-form");(e=>{if(!window.hasOwnProperty("grecaptcha")&&window?.themeisleGutenbergForm?.reRecaptchaSitekey){const t=document.createElement("script");t.id="recaptcha",document.body.appendChild(t),t.addEventListener("load",(()=>{const t=setInterval((()=>{window.hasOwnProperty("grecaptcha")&&window.grecaptcha.hasOwnProperty("render")&&(e.forEach((e=>{e?.classList?.contains("has-captcha")&&(e=>{if(!window.hasOwnProperty("grecaptcha"))return;const{id:t}=e,o=document.createElement("div"),i=e.querySelector(".otter-form__container");i?.insertBefore(o,i.lastChild);const s=window.grecaptcha?.render(o,{sitekey:window?.themeisleGutenbergForm?.reRecaptchaSitekey,callback:e=>{window.themeisleGutenberg||(window.themeisleGutenberg={}),window.themeisleGutenberg?.tokens||(window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[t]={token:e,reset:()=>window.grecaptcha?.reset(s)}},"expired-callback":()=>{window.themeisleGutenberg?.tokens||(window.themeisleGutenberg={},window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[t]={token:null,reset:()=>null}}})})(e)})),clearInterval(t))}),200)})),t.src=window?.themeisleGutenbergForm?.reRecaptchaAPIURL}})(o),t=Date.now(),o.forEach((t=>{t.classList.contains("can-submit-and-subscribe")&&(e=>{const t=e.querySelector(".otter-form__container"),o=e.querySelector(".wp-block-button"),i=document.createElement("div");i.classList.add("otter-form-consent"),t.insertBefore(i,o);const s=document.createElement("input");s.type="checkbox",s.name="o-consent",s.id="o-consent";const r=document.createElement("label");r.innerHTML=window?.themeisleGutenbergForm?.messages?.privacy||"I have read and agree to the privacy statement.",r.htmlFor="o-consent",i.appendChild(s),i.appendChild(r)})(t);const o=t.querySelector("button"),i=new e(t);if(new URLSearchParams(window.location.search).has("stripe_checkout")){o.disabled=!0;const e=o.innerHTML;o.innerHTML=i.getMsgBySlug("confirmingSubmission");const n=r(o);n.show(),s((async()=>{const e=new URLSearchParams(window.location.search).get("stripe_checkout"),t=(window?.themeisleGutenbergForm?.root||window.location.origin+"/wp-json/")+"otter/v1/form/confirm";return await fetch(t+`?stripe_checkout=${e}`,{method:"GET",credentials:"include"})})(),i,((e,o)=>{const i=e?.submitMessage?e.submitMessage:"Success";o.setMsg(i).show(),0<e?.redirectLink?.length&&(t.setAttribute("data-redirect",e.redirectLink),setTimeout((()=>{window.location.href=e.redirectLink}),1e3))}),(()=>{}),(()=>{o.disabled=!1,n.hide(),o.innerHTML=e}))}t.querySelector(':scope > form > button[type="submit"]')?t?.addEventListener("submit",(e=>{e.preventDefault(),o.disabled||(o.disabled=!0,n(t,o,i))}),!1):o?.addEventListener("click",(e=>{e.preventDefault(),o.disabled||(o.disabled=!0,n(t,o,i))}),!1)})),o.forEach((e=>{i(e).forEach((e=>{const t=e.querySelector("input");if("file"===t?.type){const{maxFilesNumber:e,maxFileSize:o}=t.dataset;t.addEventListener("change",(i=>{let s=!0;const{files:r}=i.target;if(e&&r.length>e&&(t.setCustomValidity(window.themeisleGutenbergForm?.messages?.["too-many-files"]+e),s=!1),s&&o)for(const e of r)if(e.size>1024*o*1024){t.setCustomValidity(window.themeisleGutenbergForm?.messages?.["big-file"]+" "+o+"MB."),s=!1;break}s?t.setCustomValidity(""):(t.reportValidity(),t.value="")}))}}))}))},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",a):a())}();
\ No newline at end of file
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/tabs.asset.php /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/tabs.asset.php
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/tabs.asset.php	2025-06-23 12:11:42.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/tabs.asset.php	2026-02-27 20:02:42.000000000 +0000
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => '4bc41bcd5550058f5a3d');
+<?php return array('dependencies' => array(), 'version' => '7f25dee0438b96b3a1f7');
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/tabs.js /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/tabs.js
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/build/blocks/tabs.js	2025-06-23 12:11:42.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/build/blocks/tabs.js	2026-02-27 20:02:42.000000000 +0000
@@ -1 +1 @@
-!function(){"use strict";const e=(e,t={})=>{if(!e)return;const s=e.getBoundingClientRect();0<=s.top&&0<=s.left&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&s.right<=(window.innerWidth||document.documentElement.clientWidth)||e.scrollIntoView(t)};var t;t=()=>{const t=document.querySelectorAll(".wp-block-themeisle-blocks-tabs"),s=window.location.hash.substring(1);t.forEach((t=>{const c=Array.from(t.querySelectorAll(":scope > .wp-block-themeisle-blocks-tabs__content > .wp-block-themeisle-blocks-tabs-item")),o=document.createElement("div");o.classList.add("wp-block-themeisle-blocks-tabs__header"),t.prepend(o);let a=!1;const i=[];c.forEach(((t,l)=>{const d=t.querySelector(":scope > .wp-block-themeisle-blocks-tabs-item__content");d.setAttribute("role","tabpanel");const n=t.querySelector(":scope > .wp-block-themeisle-blocks-tabs-item__header");n.setAttribute("role","tab");const r=document.createElement("div");r.classList.add("wp-block-themeisle-blocks-tabs__header_item"),r.tabIndex=0;const b=n.cloneNode(!0);b.classList.remove("wp-block-themeisle-blocks-tabs-item__header"),r.appendChild(b),t?.id&&r.setAttribute("for",t.id),"true"!==t.dataset.defaultOpen||a?i.push({headerItem:r,content:d,headerMobile:n}):(r.classList.add("active"),d.classList.add("active"),n.classList.add("active"),a=!0);const h=(t,s)=>{const c=t.querySelector(":scope > .wp-block-themeisle-blocks-tabs-item__content"),a=t.querySelector(":scope > .wp-block-themeisle-blocks-tabs-item__header");c.classList.toggle("active",s===l),c.classList.toggle("hidden",s!==l),a.classList.toggle("active",s===l),a.classList.toggle("hidden",s!==l),a.setAttribute("aria-selected",s===l),Array.from(o.childNodes).forEach(((e,t)=>{e.classList.toggle("active",t===l),e.classList.toggle("hidden",t!==l),e.setAttribute("aria-selected",t===l)})),s===l&&a&&e(a)};r.addEventListener("click",(()=>c.forEach(h))),r.addEventListener("keyup",(e=>{"Enter"===e.code&&(e.preventDefault(),c.forEach(h))})),n.addEventListener("click",(()=>c.forEach(h))),n.addEventListener("keyup",(e=>{"Enter"===e.code&&(e.preventDefault(),c.forEach(h))})),o.appendChild(r),s&&t.id===s&&(h(t,l),a=!0,e(r))})),a||(i?.[0]?.headerItem.classList.add("active"),i?.[0]?.content.classList.add("active"),i?.[0]?.headerMobile.classList.add("active"))}))},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",t):t())}();
\ No newline at end of file
+!function(){"use strict";const e=(e,t={})=>{if(!e)return;const c=e.getBoundingClientRect();0<=c.top&&0<=c.left&&c.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&c.right<=(window.innerWidth||document.documentElement.clientWidth)||e.scrollIntoView(t)};var t;t=()=>{const t=document.querySelectorAll(".wp-block-themeisle-blocks-tabs"),c=window.location.hash.substring(1);t.forEach((t=>{const s=Array.from(t.querySelectorAll(":scope > .wp-block-themeisle-blocks-tabs__content > .wp-block-themeisle-blocks-tabs-item")),o=document.createElement("div");o.classList.add("wp-block-themeisle-blocks-tabs__header"),t.prepend(o);let a=!1;const i=[];s.forEach(((t,l)=>{const d=t.querySelector(":scope > .wp-block-themeisle-blocks-tabs-item__content");d.setAttribute("role","tabpanel");const n=t.querySelector(":scope > .wp-block-themeisle-blocks-tabs-item__header");n.setAttribute("role","tab");const r=document.createElement("div");r.classList.add("wp-block-themeisle-blocks-tabs__header_item"),r.tabIndex=0;const b=n.cloneNode(!0);b.classList.remove("wp-block-themeisle-blocks-tabs-item__header"),r.appendChild(b),t?.id&&r.setAttribute("for",t.id),"true"!==t.dataset.defaultOpen||a?i.push({headerItem:r,content:d,headerMobile:n}):(r.classList.add("active"),d.classList.add("active"),n.classList.add("active"),a=!0);const h=(t,c)=>{const s=t.querySelector(":scope > .wp-block-themeisle-blocks-tabs-item__content"),a=t.querySelector(":scope > .wp-block-themeisle-blocks-tabs-item__header");s.classList.toggle("active",c===l),s.classList.toggle("hidden",c!==l),a.classList.toggle("active",c===l),a.setAttribute("aria-selected",c===l),Array.from(o.childNodes).forEach(((e,t)=>{e.classList.toggle("active",t===l),e.classList.toggle("hidden",t!==l),e.setAttribute("aria-selected",t===l)})),c===l&&a&&e(a)};r.addEventListener("click",(()=>s.forEach(h))),r.addEventListener("keyup",(e=>{"Enter"===e.code&&(e.preventDefault(),s.forEach(h))})),n.addEventListener("click",(()=>s.forEach(h))),n.addEventListener("keyup",(e=>{"Enter"===e.code&&(e.preventDefault(),s.forEach(h))})),o.appendChild(r),c&&t.id===c&&(h(t,l),a=!0,e(r))})),a||(i?.[0]?.headerItem.classList.add("active"),i?.[0]?.content.classList.add("active"),i?.[0]?.headerMobile.classList.add("active"))}))},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",t):t())}();
\ No newline at end of file
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/CHANGELOG.md /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/CHANGELOG.md
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/CHANGELOG.md	2025-12-12 08:19:48.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/CHANGELOG.md	2026-02-27 20:02:42.000000000 +0000
@@ -1,3 +1,14 @@
+##### [Version 3.1.5](https://github.com/Codeinwp/otter-blocks/compare/v3.1.4...v3.1.5) (2026-02-27)
+
+- Added title for Close button from the Popup block
+- Fixed issue when form validation was not appearing when you click on the Submit button
+- Fixed issue with Team Members Pattern having errors in the mobile preview
+- Fixed issue with assets not being enqueued for block template parts
+- Fixed issue where WP Enlarge on click option was not working when using Otters animations
+- Fixed Visibility conditions that were not applied to 767px and 768px screens
+- Fixed tabs broken on mobile view
+- Enhanced security
+
 ##### [Version 3.1.4](https://github.com/Codeinwp/otter-blocks/compare/v3.1.3...v3.1.4) (2025-12-12)
 
 - Updated dependencies
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/inc/class-main.php /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/inc/class-main.php
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/inc/class-main.php	2025-12-12 08:19:48.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/inc/class-main.php	2026-02-27 20:02:42.000000000 +0000
@@ -30,7 +30,7 @@
 	 */
 	public function init() {
 		if ( ! defined( 'THEMEISLE_BLOCKS_VERSION' ) ) {
-			define( 'THEMEISLE_BLOCKS_VERSION', '3.1.4' );
+			define( 'THEMEISLE_BLOCKS_VERSION', '3.1.5' );
 		}
 
 		add_action( 'init', array( $this, 'autoload_classes' ), 9 );
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/inc/class-registration.php /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/inc/class-registration.php
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/inc/class-registration.php	2025-09-04 10:09:46.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/inc/class-registration.php	2026-02-27 20:02:42.000000000 +0000
@@ -386,7 +386,7 @@
 
 		}
 
-		if ( function_exists( 'get_block_templates' ) && function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() && current_theme_supports( 'block-templates' ) ) {
+		if ( function_exists( 'get_block_templates' ) && ( current_theme_supports( 'block-templates' ) || current_theme_supports( 'block-template-parts' ) ) ) {
 			$this->enqueue_dependencies( 'block-templates' );
 		}
 	}
@@ -406,25 +406,42 @@
 		} elseif ( 'block-templates' === $post ) {
 			global $_wp_current_template_content;
 
-			$slugs           = array();
-			$template_blocks = parse_blocks( $_wp_current_template_content );
+			$content = '';
+			$slugs   = array();
 
-			foreach ( $template_blocks as $template_block ) {
-				if ( 'core/template-part' === $template_block['blockName'] ) {
-					$slugs[] = $template_block['attrs']['slug'];
+			// If we have template content (full block templates), extract template part slugs.
+			if ( ! empty( $_wp_current_template_content ) ) {
+				$template_blocks = parse_blocks( $_wp_current_template_content );
+				
+				foreach ( $template_blocks as $template_block ) {
+					if ( 'core/template-part' === $template_block['blockName'] && isset( $template_block['attrs']['slug'] ) ) {
+						$slugs[] = $template_block['attrs']['slug'];
+					}
 				}
-			}
-
-			$templates_parts = get_block_templates( array( 'slugs__in' => $slugs ), 'wp_template_part' );
-
-			foreach ( $templates_parts as $templates_part ) {
-				if ( ! empty( $templates_part->content ) && ! empty( $templates_part->slug ) && in_array( $templates_part->slug, $slugs ) ) {
-					$content .= $templates_part->content;
+				
+				// Get the specific template parts referenced in the template.
+				$templates_parts = get_block_templates( array( 'slug__in' => $slugs ), 'wp_template_part' );
+				
+				foreach ( $templates_parts as $templates_part ) {
+					if ( ! empty( $templates_part->content ) && ! empty( $templates_part->slug ) && in_array( $templates_part->slug, $slugs ) ) {
+						$content .= $templates_part->content;
+					}
+				}
+				
+				$content .= $_wp_current_template_content;
+			} else {
+				// Fallback for classic themes with block-template-parts only.
+				// Get all template parts since we can't determine which ones are used.
+				$templates_parts = get_block_templates( array(), 'wp_template_part' );
+				
+				foreach ( $templates_parts as $templates_part ) {
+					if ( ! empty( $templates_part->content ) ) {
+						$content .= $templates_part->content;
+					}
 				}
 			}
 
-			$content .= $_wp_current_template_content;
-			$post     = $content;
+			$post = $content;
 		} else {
 			$content = get_the_content( null, false, $post );
 		}
@@ -1065,7 +1082,7 @@
 	 * @access public
 	 */
 	public static function condition_hide_on_style() {
-		echo '<style id="o-condition-hide-inline-css">@media (max-width:768px){.o-hide-on-mobile{display:none!important}}@media (min-width:767px) and (max-width:1024px){.o-hide-on-tablet{display:none!important}}@media (min-width:1023px){.o-hide-on-desktop{display:none!important}}</style>';
+		echo '<style id="o-condition-hide-inline-css">@media (max-width:768px){.o-hide-on-mobile{display:none!important}}@media (min-width:769px) and (max-width:1024px){.o-hide-on-tablet{display:none!important}}@media (min-width:1025px){.o-hide-on-desktop{display:none!important}}</style>';
 	}
 
 	/**
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/inc/css/class-block-frontend.php /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/inc/css/class-block-frontend.php
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/inc/css/class-block-frontend.php	2025-02-05 17:54:32.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/inc/css/class-block-frontend.php	2026-02-27 20:02:42.000000000 +0000
@@ -577,32 +577,47 @@
 	 * @access  public
 	 */
 	public function enqueue_fse_css() {
-		if ( ! ( function_exists( 'get_block_templates' ) && function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() && current_theme_supports( 'block-templates' ) ) ) {
+		if ( ! ( function_exists( 'get_block_templates' ) && ( current_theme_supports( 'block-templates' ) || current_theme_supports( 'block-template-parts' ) ) ) ) {
 			return;
 		}
 
 		global $_wp_current_template_content;
 
-		$content         = '';
-		$slugs           = array();
-		$template_blocks = parse_blocks( $_wp_current_template_content );
+		$content = '';
+		$slugs   = array();
 
-		foreach ( $template_blocks as $template_block ) {
-			if ( 'core/template-part' === $template_block['blockName'] ) {
-				$slugs[] = $template_block['attrs']['slug'];
+		// If we have template content (full block templates), extract template part slugs.
+		if ( ! empty( $_wp_current_template_content ) ) {
+			$template_blocks = parse_blocks( $_wp_current_template_content );
+			
+			foreach ( $template_blocks as $template_block ) {
+				if ( 'core/template-part' === $template_block['blockName'] && isset( $template_block['attrs']['slug'] ) ) {
+					$slugs[] = $template_block['attrs']['slug'];
+				}
 			}
-		}
-
-		$templates_parts = get_block_templates( array( 'slugs__in' => $slugs ), 'wp_template_part' );
-
-		foreach ( $templates_parts as $templates_part ) {
-			if ( ! empty( $templates_part->content ) && ! empty( $templates_part->slug ) && in_array( $templates_part->slug, $slugs ) ) {
-				$content .= $templates_part->content;
+			
+			// Get the specific template parts referenced in the template.
+			$templates_parts = get_block_templates( array( 'slug__in' => $slugs ), 'wp_template_part' );
+			
+			foreach ( $templates_parts as $templates_part ) {
+				if ( ! empty( $templates_part->content ) && ! empty( $templates_part->slug ) && in_array( $templates_part->slug, $slugs ) ) {
+					$content .= $templates_part->content;
+				}
+			}
+			
+			$content .= $_wp_current_template_content;
+		} else {
+			// Fallback for classic themes with block-template-parts only.
+			// Get all template parts since we can't determine which ones are used.
+			$templates_parts = get_block_templates( array(), 'wp_template_part' );
+			
+			foreach ( $templates_parts as $templates_part ) {
+				if ( ! empty( $templates_part->content ) ) {
+					$content .= $templates_part->content;
+				}
 			}
 		}
 
-		$content .= $_wp_current_template_content;
-
 		$blocks = parse_blocks( $content );
 
 		if ( ! is_array( $blocks ) || empty( $blocks ) ) {
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/inc/plugins/class-stripe-api.php /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/inc/plugins/class-stripe-api.php
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/inc/plugins/class-stripe-api.php	2025-09-04 10:09:46.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/inc/plugins/class-stripe-api.php	2026-02-27 20:02:42.000000000 +0000
@@ -239,7 +239,11 @@
 		array_push( $data, $object );
 
 		if ( defined( 'COOKIEPATH' ) && defined( 'COOKIE_DOMAIN' ) && ! headers_sent() && ! $user_id ) {
-			setcookie( 'o_stripe_data', wp_json_encode( $data ), strtotime( '+1 week' ), COOKIEPATH, COOKIE_DOMAIN, false ); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.cookies_setcookie
+			$data      = wp_json_encode( $data );
+			$hmac_data = hash_hmac( 'sha256', $data, wp_salt() );
+			$secure    = function_exists( 'is_ssl' ) ? is_ssl() : ( ! empty( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) !== 'off' ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
+			setcookie( 'o_stripe_data', $data, strtotime( '+1 week' ), COOKIEPATH, COOKIE_DOMAIN, $secure, true ); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.cookies_setcookie
+			setcookie( 'o_stripe_hmac_data', $hmac_data, strtotime( '+1 week' ), COOKIEPATH, COOKIE_DOMAIN, $secure, true ); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.cookies_setcookie
 			return;
 		}
 
@@ -258,8 +262,13 @@
 		$user_id = get_current_user_id();
 
 		if ( ! $user_id ) {
-			if ( isset( $_COOKIE['o_stripe_data'] ) && ! empty( $_COOKIE['o_stripe_data'] ) ) { // phpcs:ignore WordPressVIPMinimum.Variables.RestrictedVariables.cache_constraints___COOKIE
-				$data = json_decode( stripcslashes( $_COOKIE['o_stripe_data'] ), true ); // phpcs:ignore WordPressVIPMinimum.Variables.RestrictedVariables.cache_constraints___COOKIE, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
+			if ( isset( $_COOKIE['o_stripe_data'] ) && ! empty( $_COOKIE['o_stripe_data'] ) && isset( $_COOKIE['o_stripe_hmac_data'] ) && ! empty( $_COOKIE['o_stripe_hmac_data'] ) ) { // phpcs:ignore WordPressVIPMinimum.Variables.RestrictedVariables.cache_constraints___COOKIE
+				$data_raw  = stripcslashes( $_COOKIE['o_stripe_data'] ); // phpcs:ignore WordPressVIPMinimum.Variables.RestrictedVariables.cache_constraints___COOKIE, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
+				$hmac_data = sanitize_text_field( $_COOKIE['o_stripe_hmac_data'] ); // phpcs:ignore WordPressVIPMinimum.Variables.RestrictedVariables.cache_constraints___COOKIE
+
+				if ( hash_equals( hash_hmac( 'sha256', $data_raw, wp_salt() ), $hmac_data ) ) {
+					$data = json_decode( $data_raw, true );
+				}
 			}
 
 			return $data;
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/otter-blocks.php /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/otter-blocks.php
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/otter-blocks.php	2025-12-12 08:19:48.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/otter-blocks.php	2026-02-27 20:02:42.000000000 +0000
@@ -7,7 +7,7 @@
  * Plugin Name:       Otter – Page Builder Blocks & Extensions for Gutenberg
  * Plugin URI:        https://themeisle.com/plugins/otter-blocks
  * Description:       Create beautiful and attracting posts, pages, and landing pages with Otter – Page Builder Blocks & Extensions for Gutenberg. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages.
- * Version:           3.1.4
+ * Version:           3.1.5
  * Author:            ThemeIsle
  * Author URI:        https://themeisle.com
  * License:           GPL-2.0+
@@ -26,7 +26,7 @@
 define( 'OTTER_BLOCKS_BASEFILE', __FILE__ );
 define( 'OTTER_BLOCKS_URL', plugins_url( '/', __FILE__ ) );
 define( 'OTTER_BLOCKS_PATH', __DIR__ );
-define( 'OTTER_BLOCKS_VERSION', '3.1.4' );
+define( 'OTTER_BLOCKS_VERSION', '3.1.5' );
 define( 'OTTER_BLOCKS_PRO_SUPPORT', true );
 define( 'OTTER_BLOCKS_SHOW_NOTICES', false );
 define( 'OTTER_PRODUCT_SLUG', basename( OTTER_BLOCKS_PATH ) );
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/readme.md /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/readme.md
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/readme.md	2025-12-12 08:19:48.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/readme.md	2026-02-27 20:02:42.000000000 +0000
@@ -4,7 +4,7 @@
 **Requires at least:** 6.2  
 **Tested up to:** 6.9  
 **Requires PHP:** 5.6  
-**Stable tag:** 3.1.4  
+**Stable tag:** 3.1.5  
 **License:** GPLv3  
 **License URI:** https://www.gnu.org/licenses/gpl-3.0.en.html  
 
@@ -16,10 +16,10 @@
 
 ## Quick Links 🔗
 
-- Do you want to see Otter blocks in action before installing? [SEE OTTER BLOCKS DEMO](https://demo.themeisle.com/otter-blocks/?utm_source=wpadmin&utm_medium=readme&utm_campaign=otter-blocks)
+- Do you want to see Otter blocks in action before installing? [SEE OTTER BLOCKS DEMO](https://demo.themeisle.com/otter-blocks/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=otter-blocks)
 - New to the Gutenberg Blocks ecosystem? Check out our article on [GUTENBERG EXPLAINED](https://themeisle.com/blog/gutenberg-blocks-explained/)
 - Need any help with setup? Checkout our [DOCUMENTATION](https://docs.themeisle.com/article/1478-otter-blocks-documentation)
-- Interested in Otter Pro? Here are more details about [OTTER PRO](https://themeisle.com/plugins/otter-blocks/upgrade/?utm_source=wpadmin&utm_medium=readme&utm_campaign=otter-blocks)
+- Interested in Otter Pro? Here are more details about [OTTER PRO](https://themeisle.com/plugins/otter-blocks/upgrade/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=otter-blocks)
 
 ## With Otter Blocks, You Get Access To
 
@@ -245,7 +245,7 @@
 
 Build custom Single Product Pages using WooCommerce Builder Blocks by Otter. All the new features are designed to maximize your conversion rate and bring more improvements. 
 
-With [Otter Pro](https://themeisle.com/plugins/otter-blocks/upgrade/?utm_source=wpadmin&utm_medium=readme&utm_campaign=otter-blocks), you get a lot more features, including:
+With [Otter Pro](https://themeisle.com/plugins/otter-blocks/upgrade/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=otter-blocks), you get a lot more features, including:
 
 - Add to Cart Block
 - Business Hours Block
@@ -258,7 +258,7 @@
 - More Patterns & Full-page templates
 - and more!
 
-You can try a live demo of Otter Blocks - no setup required. [Click here](https://themeisle.com/plugins/otter-blocks/try-otter/?utm_source=wpadmin&utm_medium=readme&utm_campaign=otter-blocks) to try it out.
+You can try a live demo of Otter Blocks - no setup required. [Click here](https://themeisle.com/plugins/otter-blocks/try-otter/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=otter-blocks) to try it out.
 
 ## Who is Otter For? 👀
 
@@ -307,7 +307,7 @@
 ### Useful Resources 📌
 
 - Read more about WordPress on our [blog](https://themeisle.com/blog/).
-- Interested in our other plugins? Take a look [here](https://themeisle.com/wordpress-plugins/?utm_source=wpadmin&utm_medium=readme&utm_campaign=otter-blocks).
+- Interested in our other plugins? Take a look [here](https://themeisle.com/wordpress-plugins/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=otter-blocks).
 - Get the most out of Otter Blocks with our helpful [YouTube Tutorials Playlist](https://youtube.com/playlist?list=PLmRasCVwuvpSep2MOsIoE0ncO9JE3FcKP).
 
 The plugin is relying on the service behind api.themeisle.com for accessing the patterns list, AI prompts and Onboarding. No account is required to access the service template collection and the privacy policy can be found [here](https://themeisle.com/privacy-policy/).
@@ -365,9 +365,16 @@
 
 ## Changelog ##
 
-##### [Version 3.1.4](https://github.com/Codeinwp/otter-blocks/compare/v3.1.3...v3.1.4) (2025-12-12)
+##### [Version 3.1.5](https://github.com/Codeinwp/otter-blocks/compare/v3.1.4...v3.1.5) (2026-02-27)
 
-- Updated dependencies
+- Added title for Close button from the Popup block
+- Fixed issue when form validation was not appearing when you click on the Submit button
+- Fixed issue with Team Members Pattern having errors in the mobile preview
+- Fixed issue with assets not being enqueued for block template parts
+- Fixed issue where WP Enlarge on click option was not working when using Otters animations
+- Fixed Visibility conditions that were not applied to 767px and 768px screens
+- Fixed tabs broken on mobile view
+- Enhanced security
 
 
 
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/readme.txt /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/readme.txt
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/readme.txt	2026-02-02 13:20:56.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/readme.txt	2026-03-16 08:26:00.000000000 +0000
@@ -4,7 +4,7 @@
 Requires at least: 6.2
 Tested up to: 6.9
 Requires PHP: 5.6
-Stable tag: 3.1.4
+Stable tag: 3.1.5
 License: GPLv3
 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
 
@@ -363,11 +363,26 @@
 
 The Patterns have been designed to make it easier for you to build your site using predefined blocks that can be then customized according to your needs. You can take a look at our [dedicated documentation](https://docs.themeisle.com/article/1785-block-patterns-otter-features-library) to find out all you need to know about the Patterns.
 
+= How to report a security issue? =
+ 
+Plugin security is a core priority for us. If you identify a potential vulnerability, we ask that you disclose it responsibly.
+
+Please follow the reporting protocols outlined on our [Security Page](https://themeisle.com/security/).
+
 == Changelog ==
 
-##### [Version 3.1.4](https://github.com/Codeinwp/otter-blocks/compare/v3.1.3...v3.1.4) (2025-12-12)
+##### [Version 3.1.5](https://github.com/Codeinwp/otter-blocks/compare/v3.1.4...v3.1.5) (2026-02-27)
+
+- Added title for Close button from the Popup block
+- Fixed issue when form validation was not appearing when you click on the Submit button
+- Fixed issue with Team Members Pattern having errors in the mobile preview
+- Fixed issue with assets not being enqueued for block template parts
+- Fixed issue where WP Enlarge on click option was not working when using Otters animations
+- Fixed Visibility conditions that were not applied to 767px and 768px screens
+- Fixed tabs broken on mobile view
+- Enhanced security
+
 
-- Updated dependencies
 
 
 [See changelog for all versions](https://github.com/Codeinwp/otter-blocks/blob/master/CHANGELOG.md).
diff -ru /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/vendor/composer/installed.php /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/vendor/composer/installed.php
--- /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.4/vendor/composer/installed.php	2025-12-12 08:19:48.000000000 +0000
+++ /home/deploy/wp-safety.org/data/plugin-versions/otter-blocks/3.1.5/vendor/composer/installed.php	2026-02-27 20:02:42.000000000 +0000
@@ -1,8 +1,8 @@
 <?php return array(
     'root' => array(
         'name' => 'codeinwp/otter-blocks',
-        'pretty_version' => '3.1.4',
-        'version' => '3.1.4.0',
+        'pretty_version' => '3.1.5',
+        'version' => '3.1.5.0',
         'reference' => null,
         'type' => 'wordpress-plugin',
         'install_path' => __DIR__ . '/../../',
@@ -11,8 +11,8 @@
     ),
     'versions' => array(
         'codeinwp/otter-blocks' => array(
-            'pretty_version' => '3.1.4',
-            'version' => '3.1.4.0',
+            'pretty_version' => '3.1.5',
+            'version' => '3.1.5.0',
             'reference' => null,
             'type' => 'wordpress-plugin',
             'install_path' => __DIR__ . '/../../',

Exploit Outline

The exploit involves forging a cookie to trick the server-side visibility check into believing a product has been purchased. 1. Locate a page containing a block restricted by a 'Stripe Product Purchase' visibility condition. 2. Identify the target Stripe Product ID or Price ID required to view the content. This ID is typically exposed in the HTML source code of the page, often within the 'Stripe Checkout' block's attributes or the block's JSON configuration. 3. Construct a forged 'o_stripe_data' cookie. This cookie is unsigned and expected to contain product purchase data (likely a JSON-encoded array or object including the target Product ID). 4. Send an unauthenticated GET request to the target page with the forged 'o_stripe_data' cookie attached to the request headers. 5. The server-side 'check_purchase' method will process the cookie, find the forged Product ID, and render the gated block content in the HTTP response, bypassing the intended authorization check.

Check if your site is affected.

Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.