Plugin Directory

Changeset 3227770


Ignore:
Timestamp:
01/24/2025 12:07:41 AM (6 weeks ago)
Author:
inc2734
Message:

Version up. v22.3.4

Location:
snow-monkey-blocks/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • snow-monkey-blocks/trunk/changelog.txt

    r3226624 r3227770  
    11*** Changelog ***
     2
     3= 22.3.4 =
     4* [Tabs] Fix deprecated proccess.
     5* [Contents Slider] Fix deprecated proccess.
    26
    37= 22.3.3 =
  • snow-monkey-blocks/trunk/dist/blocks/spider-contents-slider/index.asset.php

    r3226624 r3227770  
    1 <?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'd9eb7df786461f70971c');
     1<?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '073c6a3eeab6227c08c3');
  • snow-monkey-blocks/trunk/dist/blocks/spider-contents-slider/index.js

    r3226624 r3227770  
    1 (()=>{var e,s={8674:(e,s,t)=>{"use strict";const o=window.wp.blocks,a=window.wp.i18n,r=JSON.parse('{"UU":"snow-monkey-blocks/spider-contents-slider","uK":{"sizeSlug":{"type":"string","default":"full"},"dots":{"type":"boolean","default":false},"arrows":{"type":"boolean","default":false},"fade":{"type":"boolean","default":false},"shuffle":{"type":"boolean","default":false},"shifted":{"type":"boolean","default":false},"gutter":{"type":"string"},"interval":{"type":"number","default":0},"autoplayButton":{"type":"boolean","default":false},"duration":{"type":"number","default":0},"lgSlidesToShow":{"type":"number","default":1},"mdSlidesToShow":{"type":"number","default":1},"smSlidesToShow":{"type":"number","default":1},"canvasPadding":{"type":"object","default":{}},"sliderClientIds":{"type":"array","default":[]},"border":{"type":"object","default":{"color":"","style":"","width":1,"radius":0}},"boxShadow":{"type":"object","default":{"color":"","opacity":0.1,"blur":10,"position":""}},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"xY":{"align":["wide","full"],"spacing":{"margin":true}}}'),i=window.ReactJSXRuntime,l=(0,i.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,i.jsx)("path",{d:"M5,5.78V18.22a.78.78,0,0,0,.78.78H18.22a.78.78,0,0,0,.78-.78V5.78A.78.78,0,0,0,18.22,5H5.78A.78.78,0,0,0,5,5.78m12.44,12H6.56a.38.38,0,0,1-.39-.39V6.56a.38.38,0,0,1,.39-.39H17.44a.38.38,0,0,1,.39.39V17.44a.38.38,0,0,1-.39.39"}),(0,i.jsx)("path",{d:"M6.17,14.16l3.06-2.23a.22.22,0,0,1,.22,0l2.34,1.5a.21.21,0,0,0,.24,0l3-2.83a.19.19,0,0,1,.27,0l3.09,3v1.16l-3.09-3a.18.18,0,0,0-.27,0l-3,2.82a.19.19,0,0,1-.24,0L9.45,13.11a.18.18,0,0,0-.22,0L6.17,15.33Z"}),(0,i.jsx)("path",{d:"M2.22,5H0V6.17H1.44a.38.38,0,0,1,.39.39V17.44a.38.38,0,0,1-.39.39H0V19H2.22A.78.78,0,0,0,3,18.22V5.78A.78.78,0,0,0,2.22,5Z"}),(0,i.jsx)("path",{d:"M24,17.83H22.56a.38.38,0,0,1-.39-.39V6.56a.38.38,0,0,1,.39-.39H24V5H21.78a.78.78,0,0,0-.78.78V18.22a.78.78,0,0,0,.78.78H24Z"})]});var d=t(6942),n=t.n(d),c=t(3558),p=t.n(c);const u=window.wp.blockEditor,h=window.wp.components,m=window.wp.data,b=window.wp.element,v=(0,b.forwardRef)((function({icon:e,size:s=24,...t},o){return(0,b.cloneElement)(e,{width:s,height:s,...t,ref:o})})),f=window.wp.primitives,w=(0,i.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,i.jsx)(f.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"})});function x({settings:e,label:s}){const t={},o={},r=e.map(((e,s)=>{if(e.hasOwnProperty("colorValue")&&e.hasOwnProperty("onColorChange")){t.color=e.colorValue,o.color=e.onColorChange;const r=(0,u.__experimentalUseMultipleOriginColorsAndGradients)();return r.colors=r.colors.map((e=>{const s=e.colors.filter((e=>!e.color.match(/^var\(/)));return!(1>s.length)&&(e.colors=s,e)})).filter(Boolean),(0,i.jsx)("div",{className:"smb-color-gradient-settings-dropdown",children:(0,i.jsx)(u.__experimentalColorGradientSettingsDropdown,{settings:[{label:(0,a.__)("Color","snow-monkey-blocks"),colorValue:e.colorValue,onColorChange:e.onColorChange}],__experimentalIsRenderedInSidebar:!0,...r})},s)}return e.hasOwnProperty("opacityValue")&&e.hasOwnProperty("onOpacityChange")?(t.opacity=e.opacityValue,o.opacity=e.onOpacityChange,(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Opacity","snow-monkey-blocks"),value:Number(e.opacityValue.toFixed(1)),onChange:e.onOpacityChange,min:0,max:1,step:.1},s)):e.hasOwnProperty("horizontalValue")&&e.hasOwnProperty("onHorizontalChange")?(t.horizontal=e.horizontalValue,o.horizontal=e.onHorizontalChange,(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Horizontal","snow-monkey-blocks"),value:e.horizontalValue,onChange:e.onHorizontalChange,min:null!==(r=e?.min)&&void 0!==r?r:-100,max:null!==(l=e?.max)&&void 0!==l?l:100},s)):e.hasOwnProperty("verticalValue")&&e.hasOwnProperty("onVerticalChange")?(t.vertical=e.verticalValue,o.vertical=e.onVerticalChange,(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Vertical","snow-monkey-blocks"),value:e.verticalValue,onChange:e.onVerticalChange,min:null!==(d=e?.min)&&void 0!==d?d:-100,max:null!==(n=e?.max)&&void 0!==n?n:100},s)):e.hasOwnProperty("blurValue")&&e.hasOwnProperty("onBlurChange")?(t.blur=e.blurValue,o.blur=e.onBlurChange,(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Blur","snow-monkey-blocks"),value:e.blurValue,onChange:e.onBlurChange,min:null!==(c=e?.min)&&void 0!==c?c:0,max:null!==(p=e?.max)&&void 0!==p?p:100},s)):e.hasOwnProperty("spreadValue")&&e.hasOwnProperty("onSpreadChange")?(t.spread=e.spreadValue,o.spread=e.onSpreadChange,(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Spread","snow-monkey-blocks"),value:e.spreadValue,onChange:e.onSpreadChange,min:null!==(m=e?.min)&&void 0!==m?m:-100,max:null!==(v=e?.max)&&void 0!==v?v:100},s)):e.hasOwnProperty("positionValue")&&e.hasOwnProperty("onPositionChange")?(t.position=e.positionValue,o.position=e.onPositionChange,(0,i.jsx)(h.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Position","snow-monkey-blocks"),value:e.positionValue,onChange:e.onPositionChange,options:[{value:"",label:(0,a.__)("Outline","snow-monkey-blocks")},{value:"inset",label:(0,a.__)("Inset","snow-monkey-blocks")}]},s)):(0,i.jsx)(b.Fragment,{},s);var r,l,d,n,c,p,m,v}));return(0,i.jsx)(h.__experimentalToolsPanel,{label:s||(0,a.__)("Box Shadow","snow-monkey-blocks"),className:"smb-box-shadow-tools-panel",children:(0,i.jsx)(h.__experimentalToolsPanelItem,{label:s||(0,a.__)("Box Shadow","snow-monkey-blocks"),hasValue:()=>e.some((e=>{if(e.hasOwnProperty("defaultValue")){let s;return e.hasOwnProperty("opacityValue")?s=e.opacityValue:e.hasOwnProperty("horizontalValue")?s=e.horizontalValue:e.hasOwnProperty("verticalValue")?s=e.verticalValue:e.hasOwnProperty("blurValue")?s=e.blurValue:e.hasOwnProperty("spreadValue")?s=e.spreadValue:e.hasOwnProperty("positionValue")&&(s=e.positionValue),void 0!==s&&e.defaultValue!==s}return!1})),isShownByDefault:!0,onDeselect:()=>{e.forEach((e=>{if(e.hasOwnProperty("defaultValue")){let s;e.hasOwnProperty("onOpacityChange")?s=e.onOpacityChange:e.hasOwnProperty("onHorizontalChange")?s=e.onHorizontalChange:e.hasOwnProperty("onVerticalChange")?s=e.onVerticalChange:e.hasOwnProperty("onBlurChange")?s=e.onBlurChange:e.hasOwnProperty("onSpreadChange")?s=e.onSpreadChange:e.hasOwnProperty("onPositionChange")&&(s=e.onPositionChange),void 0!==s&&s(e.defaultValue)}}))},children:r})})}function g(e){const{desktop:s,tablet:t,mobile:o}=e,a=[];return s&&a.push({name:"desktop",title:(0,i.jsx)(h.Dashicon,{icon:"desktop"})}),t&&a.push({name:"tablet",title:(0,i.jsx)(h.Dashicon,{icon:"tablet"})}),o&&a.push({name:"mobile",title:(0,i.jsx)(h.Dashicon,{icon:"smartphone"})}),(0,i.jsx)(h.TabPanel,{className:"smb-inspector-tabs",tabs:a,children:e=>{if(e.name){if("desktop"===e.name)return s();if("tablet"===e.name)return t();if("mobile"===e.name)return o()}}})}window.lodash;const _=(e,s=0,t=null)=>(e=Number(e),(isNaN(e)||e<s)&&(e=s),null!==t&&e>t&&(e=t),e),y=["snow-monkey-blocks/spider-contents-slider-item"],j=r.uK,S=r.xY,k=[{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:r,shuffle:l,shifted:d,gutter:c,interval:h,autoplayButton:m,duration:b,lgSlidesToShow:v,mdSlidesToShow:f,smSlidesToShow:w,canvasPadding:x,border:g,boxShadow:_,sliderClientIds:y}=e,j=JSON.parse(y),S="wide"===e.align,k="full"===e.align,N=d&&!r&&(S||k),C=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":N,[`smb-spider-slider--gutter-${c}`]:!!c}),B=String(g.width).match(/^\d+$/)?`${g.width}px`:g.width,P=String(g.radius).match(/^\d+$/)?`${g.radius}px`:g.radius,I={"--smb-spider-contents-slider--canvas-offset-top":!!x?.top&&`${x?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!x?.right&&r&&`${x?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!x?.bottom&&`${x?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!x?.left&&r&&`${x?.left}px`||void 0,"--smb-spider-slider--gap":!c&&!r&&(!!x?.right||!!x?.left)&&(x?.right+x?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!g.color&&0<parseInt(B)&&B||void 0,"--smb-spider-contents-slider--slide-border-color":g.color||void 0,"--smb-spider-contents-slider--slide-border-type":g.style||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(P)&&P||void 0,"--smb-spider-contents-slider--slide-box-shadow":_.color?`0 0 ${_.blur}px ${p()(_.color,_.opacity)}`:void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:C,style:I}),"data-fade":r?"true":"false","data-shuffle":l?"true":"false","data-interval":0<h?1e3*h:void 0,"data-duration":0<b?1e3*b:void 0,"data-lg-slide-to-show":!r&&1<v?v:void 0,"data-md-slide-to-show":!r&&1<f?f:void 0,"data-sm-slide-to-show":!r&&1<w?w:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[N&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<h&&m||o)&&(0,i.jsxs)("div",{className:"spider__dots",children:[m&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{className:"spider__stop",children:(0,i.jsxs)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,a.__)("Pause autoplay","snow-monkey-blocks"),children:[(0,i.jsx)("rect",{width:"5",height:"16",fill:"currentColor"}),(0,i.jsx)("rect",{x:"7",width:"5",height:"16",fill:"currentColor"})]})}),(0,i.jsx)("button",{className:"spider__start",children:(0,i.jsx)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,a.__)("Start autoplay","snow-monkey-blocks"),children:(0,i.jsx)("path",{d:"M12 8L-2.29967e-06 16L-2.29967e-06 0L12 8Z",fill:"currentColor"})})})]}),o&&j.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:r,shuffle:l,shifted:d,gutter:c,interval:h,autoplayButton:m,duration:b,lgSlidesToShow:v,mdSlidesToShow:f,smSlidesToShow:w,canvasPadding:x,border:g,boxShadow:_,sliderClientIds:y}=e,j=JSON.parse(y),S="wide"===e.align,k="full"===e.align,N=d&&!r&&(S||k),C=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":N,[`smb-spider-slider--gutter-${c}`]:!!c}),B=String(g.width).match(/^\d+$/)?`${g.width}px`:g.width,P=String(g.radius).match(/^\d+$/)?`${g.radius}px`:g.radius,I={"--smb-spider-contents-slider--canvas-offset-top":!!x?.top&&`${x?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!x?.right&&r&&`${x?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!x?.bottom&&`${x?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!x?.left&&r&&`${x?.left}px`||void 0,"--smb-spider-slider--gap":!c&&!r&&(!!x?.right||!!x?.left)&&(x?.right+x?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!g.color&&0<parseInt(B)&&B||void 0,"--smb-spider-contents-slider--slide-border-color":g.color||void 0,"--smb-spider-contents-slider--slide-border-type":g.style||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(P)&&P||void 0,"--smb-spider-contents-slider--slide-box-shadow":_.color?`0 0 ${_.blur}px ${p()(_.color,_.opacity)}`:void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:C,style:I}),"data-fade":r?"true":"false","data-shuffle":l?"true":"false","data-interval":0<h?1e3*h:void 0,"data-duration":0<b?1e3*b:void 0,"data-lg-slide-to-show":!r&&1<v?v:void 0,"data-md-slide-to-show":!r&&1<f?f:void 0,"data-sm-slide-to-show":!r&&1<w?w:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[N&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<h&&m||o)&&(0,i.jsxs)("div",{className:"spider__dots",children:[m&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{className:"spider__stop",title:(0,a.__)("Pause autoplay","snow-monkey-blocks"),children:"⏸"}),(0,i.jsx)("button",{className:"spider__start",title:(0,a.__)("Start autoplay","snow-monkey-blocks"),children:"▶"})]}),o&&j.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:a,shifted:r,gutter:l,interval:d,duration:c,lgSlidesToShow:h,mdSlidesToShow:m,smSlidesToShow:b,canvasPadding:v,border:f,boxShadow:w,sliderClientIds:x}=e,g=JSON.parse(x),_="wide"===e.align,y="full"===e.align,j=r&&!a&&(_||y),S=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":j,[`smb-spider-slider--gutter-${l}`]:!!l}),k=String(f.width).match(/^\d+$/)?`${f.width}px`:f.width,N=String(f.radius).match(/^\d+$/)?`${f.radius}px`:f.radius,C={"--smb-spider-contents-slider--canvas-offset-top":!!v?.top&&`${v?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!v?.right&&a&&`${v?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!v?.bottom&&`${v?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!v?.left&&a&&`${v?.left}px`||void 0,"--smb-spider-slider--gap":!l&&!a&&(!!v?.right||!!v?.left)&&(v?.right+v?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!f.color&&0<parseInt(k)&&k||void 0,"--smb-spider-contents-slider--slide-border-color":f.color||void 0,"--smb-spider-contents-slider--slide-border-type":f.style||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(N)&&N||void 0,"--smb-spider-contents-slider--slide-box-shadow":w.color?`0 0 ${w.blur}px ${p()(w.color,w.opacity)}`:void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:S,style:C}),"data-fade":a?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!a&&1<h?h:void 0,"data-md-slide-to-show":!a&&1<m?m:void 0,"data-sm-slide-to-show":!a&&1<b?b:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[j&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:g.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:a,shifted:r,gutter:l,interval:d,duration:c,lgSlidesToShow:h,mdSlidesToShow:m,smSlidesToShow:b,canvasPadding:v,border:f,boxShadow:w,sliderClientIds:x}=e,g=JSON.parse(x),_="wide"===e.align,y="full"===e.align,j=r&&!a&&(_||y),S=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":j,[`smb-spider-slider--gutter-${l}`]:!!l}),k=String(f.width).match(/^\d+$/)?`${f.width}px`:f.width,N=String(f.radius).match(/^\d+$/)?`${f.radius}px`:f.radius,C={"--smb-spider-contents-slider--canvas-offset-top":!!v?.top&&`${v?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!v?.right&&a&&`${v?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!v?.bottom&&`${v?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!v?.left&&a&&`${v?.left}px`||void 0,"--smb-spider-slider--gap":!l&&!a&&(!!v?.right||!!v?.left)&&(v?.right+v?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!f.color&&0<parseInt(k)&&k||void 0,"--smb-spider-contents-slider--slide-border-color":f.color||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(N)&&N||void 0,"--smb-spider-contents-slider--slide-box-shadow":w.color?`0 0 ${w.blur}px ${p()(w.color,w.opacity)}`:void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:S,style:C}),"data-fade":a?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!a&&1<h?h:void 0,"data-md-slide-to-show":!a&&1<m?m:void 0,"data-sm-slide-to-show":!a&&1<b?b:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[j&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:g.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:a,shifted:r,gutter:l,interval:d,duration:c,lgSlidesToShow:p,mdSlidesToShow:h,smSlidesToShow:m,canvasPadding:b,sliderClientIds:v}=e,f=JSON.parse(v),w="wide"===e.align,x="full"===e.align,g=r&&!a&&(w||x),_=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":g,[`smb-spider-slider--gutter-${l}`]:!!l}),y={"--smb-spider-contents-slider--canvas-offset-top":`${b?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":a&&`${b?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":`${b?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":a&&`${b?.left}px`||void 0,"--smb-spider-slider--gap":!l&&!a&&(b?.right+b?.left)/2+"px"||void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:_,style:y}),"data-fade":a?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!a&&1<p?p:void 0,"data-md-slide-to-show":!a&&1<h?h:void 0,"data-sm-slide-to-show":!a&&1<m?m:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[g&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:f.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:a,shifted:r,gutter:l,interval:d,duration:c,lgSlidesToShow:p,mdSlidesToShow:h,smSlidesToShow:m,canvasPadding:b,sliderClientIds:v}=e,f=JSON.parse(v),w="wide"===e.align,x="full"===e.align,g=r&&!a&&(w||x),_=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":g,[`smb-spider-slider--gutter-${l}`]:!!l}),y={paddingTop:b?.top||void 0,paddingBottom:b?.bottom||void 0,paddingRight:b?.right||void 0,paddingLeft:b?.left||void 0},j={marginRight:b?.right||void 0,marginLeft:b?.left||void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:_}),"data-fade":a?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!a&&1<p?p:void 0,"data-md-slide-to-show":!a&&1<h?h:void 0,"data-sm-slide-to-show":!a&&1<m?m:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[g&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference",style:j})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas",style:y})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:f.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:a,shifted:r,gutter:l,interval:d,duration:c,lgSlidesToShow:p,mdSlidesToShow:h,smSlidesToShow:m,canvasPadding:b,sliderClientIds:v}=e,f=JSON.parse(v),w="wide"===e.align,x="full"===e.align,g=r&&!a&&(w||x),_=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":g,[`smb-spider-slider--gutter-${l}`]:!!l}),y={paddingTop:b?.top||void 0,paddingBottom:b?.bottom||void 0,paddingRight:b?.right||void 0,paddingLeft:b?.left||void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:_}),"data-fade":a?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!a&&1<p?p:void 0,"data-md-slide-to-show":!a&&1<h?h:void 0,"data-sm-slide-to-show":!a&&1<m?m:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[g&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas",style:y})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:f.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:a,shifted:r,gutter:l,interval:d,duration:c,lgSlidesToShow:p,mdSlidesToShow:h,smSlidesToShow:m,canvasPadding:b,sliderClientIds:v}=e,f=JSON.parse(v),w="wide"===e.align,x="full"===e.align,g=r&&!a&&(w||x),_=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":g,[`smb-spider-slider--gutter-${l}`]:!!l}),y={paddingTop:b?.top||void 0,paddingBottom:b?.bottom||void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:_}),"data-fade":a?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!a&&1<p?p:void 0,"data-md-slide-to-show":!a&&1<h?h:void 0,"data-sm-slide-to-show":!a&&1<m?m:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[g&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas",style:y})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:f.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}}];(0,o.registerBlockType)(r.UU,{icon:{foreground:"#cd162c",src:l},keywords:[(0,a.__)("Carousel","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:s,className:t,isSelected:o,clientId:l}){const{arrows:d,dots:c,fade:f,shuffle:j,shifted:S,gutter:k,interval:N,autoplayButton:C,duration:B,lgSlidesToShow:P,mdSlidesToShow:I,smSlidesToShow:$,canvasPadding:V,border:T,boxShadow:O,sliderClientIds:D,templateLock:H}=e,K="wide"===e.align,M="full"===e.align,R=!f,A=S&&R&&(K||M),L=(0,b.useRef)(),z=(0,b.useRef)(),F=(0,b.useRef)(),[J,E]=(0,b.useState)(void 0),{updateBlockAttributes:G,selectBlock:U}=(0,m.useDispatch)("core/block-editor"),{getBlockAttributes:Z,nowSliderClientIds:W,slides:q,hasChildSelected:Y}=(0,m.useSelect)((e=>{const s=e("core/block-editor").hasSelectedInnerBlock(l,!0);return{getBlockAttributes:e("core/block-editor").getBlockAttributes,nowSliderClientIds:e("core/block-editor").getBlockOrder(l),slides:e("core/block-editor").getBlock(l).innerBlocks,hasChildSelected:s}}),[l]);(0,b.useEffect)((()=>{let e;0<q.length&&(e=q.reduce(((e,s)=>(!!e?.attributes?.boxShadow?.color&&0<e?.attributes?.boxShadow?.blur||0)<(!!s?.attributes?.boxShadow?.color&&0<s?.attributes?.boxShadow?.blur||0)?s:e)));const t=O?.color&&0<O?.blur?O?.blur:0,o=e?.attributes?.boxShadow?.color&&0<e?.attributes?.boxShadow?.blur?e?.attributes?.boxShadow?.blur:0,a=t>o?t:o;a===V?.top&&a===V?.bottom&&a===V?.right&&a===V?.left||s({canvasPadding:{...V,top:a,bottom:a,right:a,left:a}})}),[q.join(),O.blur]);const X=(0,m.useSelect)((e=>{const s=q.filter((s=>s.clientId===e("core/block-editor").getSelectedBlockClientId()));if(0<s.length)return E(s[0]),s[0]}),[q.join()]);(0,b.useEffect)((()=>{0<W.length&&!J&&E(W[0]),D.length!==W.length&&s({sliderClientIds:W}),W.forEach(((e,s)=>{const t=Z(e);s!==parseInt(t?.sliderId)&&G(e,{sliderId:s})}))}),[W.join(),J]);const Q=!!L.current&&L.current.offsetWidth;(0,b.useEffect)((()=>{const e=!!L.current&&!!F.current&&A&&Math.floor(L.current.offsetWidth);e&&(L.current.style.setProperty("--spider--canvas-width",`${e}px`),F.current.style.width=`${e}px`);const s=!!z.current&&A&&Math.floor(z.current.offsetWidth);s&&L.current.style.setProperty("--spider--reference-width",`${s}px`)}),[Q,A]);const ee=n()("smb-spider-slider","smb-spider-contents-slider",t,{"smb-spider-slider--shifted":A,[`smb-spider-slider--gutter-${k}`]:!!k}),se=String(T.width).match(/^\d+$/)?`${T.width}px`:T.width,te=String(T.radius).match(/^\d+$/)?`${T.radius}px`:T.radius,oe={"--smb-spider-contents-slider--canvas-offset-top":!!V?.top&&`${V?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!V?.right&&f&&`${V?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!V?.bottom&&`${V?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!V?.left&&f&&`${V?.left}px`||void 0,"--smb-spider-slider--gap":!k&&!f&&(!!V?.right||!!V?.left)&&(V?.right+V?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!T.color&&0<parseInt(se)&&se||void 0,"--smb-spider-contents-slider--slide-border-color":T.color||void 0,"--smb-spider-contents-slider--slide-border-type":T.style||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(te)&&te||void 0,"--smb-spider-contents-slider--slide-box-shadow":O.color?`0 0 ${O.blur}px ${p()(O.color,O.opacity)}`:void 0},ae=[{value:"",label:(0,a.__)("None","snow-monkey-blocks")},{value:"s",label:(0,a.__)("S","snow-monkey-blocks")},{value:"m",label:(0,a.__)("M","snow-monkey-blocks")},{value:"l",label:(0,a.__)("L","snow-monkey-blocks")}],re=(0,u.useInnerBlocksProps)({className:"spider__canvas"},{templateLock:H,allowedBlocks:y,orientation:"horizontal",renderAppender:!1});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.InspectorControls,{group:"dimensions",children:(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>k!==r.uK.gutter.default,isShownByDefault:!0,label:(0,a.__)("Gap","snow-monkey-blocks"),onDeselect:()=>s({gutter:r.uK.gutter.default}),panelId:l,children:(0,i.jsx)(h.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Gap","snow-monkey-blocks"),value:k,onChange:e=>s({gutter:e}),options:ae})})}),(0,i.jsxs)(u.InspectorControls,{group:"border",children:[(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>T.color!==r.uK.border.default.color||T.style!==r.uK.border.default.style||T.width!==r.uK.border.default.width,isShownByDefault:!0,label:(0,a.__)("Border","snow-monkey-blocks"),onDeselect:()=>{s({border:{...T,color:r.uK.border.default.color,style:r.uK.border.default.style,width:r.uK.border.default.width}})},panelId:l,children:(0,i.jsx)(h.__experimentalBorderBoxControl,{...(0,u.__experimentalUseMultipleOriginColorsAndGradients)(),className:"smb-border-box-control",enableAlpha:!0,enableStyle:!0,onChange:e=>{s({border:{...T,color:e?.color,style:e?.style,width:e?.width}})},popoverOffset:40,popoverPlacement:"left-start",value:{color:T.color,style:T.style,width:T.width},__experimentalIsRenderedInSidebar:!0})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>T.radius!==r.uK.border.default.radius,isShownByDefault:!0,label:(0,a.__)("Border radius","snow-monkey-blocks"),onDeselect:()=>{s({border:{...T,radius:r.uK.border.default.radius}})},panelId:l,children:(0,i.jsx)("div",{className:"smb-border-radius-control",children:(0,i.jsx)(u.__experimentalBorderRadiusControl,{values:T.radius,onChange:e=>{s({border:{...T,radius:e}})}})})})]}),(0,i.jsx)(u.InspectorControls,{group:"styles",children:(0,i.jsx)(x,{settings:[{colorValue:O.color||"",onColorChange:e=>{s({boxShadow:{...O,color:e}})}},{opacityValue:O.opacity,onOpacityChange:e=>{s({boxShadow:{...O,opacity:e}})}},{blurValue:O.blur,onBlurChange:e=>{s({boxShadow:{...O,blur:e}})},max:10}],defaultValues:{...r.uK.boxShadow.default}})}),(0,i.jsx)(u.InspectorControls,{children:(0,i.jsxs)(h.__experimentalToolsPanel,{label:(0,a.__)("Block settings","snow-monkey-blocks"),children:[(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>d!==r.uK.arrows.default,isShownByDefault:!0,label:(0,a.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>s({arrows:r.uK.arrows.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Display arrows","snow-monkey-blocks"),checked:d,onChange:e=>s({arrows:e})})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>c!==r.uK.dots.default,isShownByDefault:!0,label:(0,a.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>s({dots:r.uK.dots.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Display dots","snow-monkey-blocks"),checked:c,onChange:e=>s({dots:e})})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>f!==r.uK.fade.default,isShownByDefault:!0,label:(0,a.__)("Fade","snow-monkey-blocks"),onDeselect:()=>s({fade:r.uK.fade.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Fade","snow-monkey-blocks"),checked:f,onChange:e=>s({fade:e})})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>j!==r.uK.shuffle.default,isShownByDefault:!0,label:(0,a.__)("Shuffle slides","snow-monkey-blocks"),onDeselect:()=>s({shuffle:r.uK.shuffle.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Shuffle slides","snow-monkey-blocks"),checked:j,onChange:e=>s({shuffle:e})})}),R&&(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>S!==r.uK.shifted.default,isShownByDefault:!0,label:(0,a.__)("Shifting the slider","snow-monkey-blocks"),onDeselect:()=>s({shifted:r.uK.shifted.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Shifting the slider","snow-monkey-blocks"),help:S&&(!M||!K)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{icon:w,style:{fill:"#d94f4f"}}),(0,a.__)("It must be full width (.alignfull) or wide width (.alignwide).","snow-monkey-blocks")]}),checked:S,onChange:e=>s({shifted:e})})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>N!==r.uK.interval.default,isShownByDefault:!0,label:(0,a.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>s({interval:r.uK.interval.default}),children:(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,a.__)('If "0", no scroll.',"snow-monkey-blocks"),value:N,onChange:e=>s({interval:_(e,0,10)}),min:"0",max:"10"})}),0<N&&(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>C!==r.uK.autoplayButton.default,isShownByDefault:!0,label:(0,a.__)("Display pause button for autoplay","snow-monkey-blocks"),onDeselect:()=>s({autoplayButton:r.uK.autoplayButton.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:C,onChange:e=>s({autoplayButton:e})})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>B!==r.uK.duration.default,isShownByDefault:!0,label:(0,a.__)("Animation speed in seconds","snow-monkey-blocks"),onDeselect:()=>s({duration:r.uK.duration.default}),children:(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Animation speed in seconds","snow-monkey-blocks"),help:(0,a.__)('If "0", default animation speed.',"snow-monkey-blocks"),value:B,onChange:e=>s({duration:_(e,0,10)}),min:"0",max:"5",step:"0.1"})}),!f&&(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>P!==r.uK.lgSlidesToShow.default||I!==r.uK.mdSlidesToShow.default||$!==r.uK.smSlidesToShow.default,isShownByDefault:!0,label:(0,a.__)("Slides settings","snow-monkey-blocks"),onDeselect:()=>s({lgSlidesToShow:r.uK.lgSlidesToShow.default,mdSlidesToShow:r.uK.mdSlidesToShow.default,smSlidesToShow:r.uK.smSlidesToShow.default}),children:(0,i.jsx)(g,{desktop:()=>(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("# of slides to show (Large window)","snow-monkey-blocks"),value:P,onChange:e=>s({lgSlidesToShow:_(e,1,6)}),min:"1",max:6<W.length?6:W.length}),tablet:()=>(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("# of slides to show (Medium window)","snow-monkey-blocks"),value:I,onChange:e=>s({mdSlidesToShow:_(e,1,6)}),min:"1",max:6<W.length?6:W.length}),mobile:()=>(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("# of slides to show (Small window)","snow-monkey-blocks"),value:$,onChange:e=>s({smSlidesToShow:_(e,1,6)}),min:"1",max:6<W.length?6:W.length})})})]})}),(0,i.jsxs)("div",{...(0,u.useBlockProps)({className:ee,style:oe,ref:L}),"data-fade":f?"true":"false","data-shuffle":j?"true":"false","data-interval":0<N?1e3*N:void 0,"data-lg-slide-to-show":!f&&1<P?P:void 0,"data-md-slide-to-show":!f&&1<I?I:void 0,"data-sm-slide-to-show":!f&&1<$?$:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[A&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference",ref:z})}),(0,i.jsx)("div",{...re,ref:F}),d&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<N&&C||c)&&(0,i.jsxs)("div",{className:"spider__dots",children:[C&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{className:"spider__stop",children:(0,i.jsxs)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,a.__)("Pause autoplay","snow-monkey-blocks"),children:[(0,i.jsx)("rect",{width:"5",height:"16",fill:"currentColor"}),(0,i.jsx)("rect",{x:"7",width:"5",height:"16",fill:"currentColor"})]})}),(0,i.jsx)("button",{className:"spider__start",children:(0,i.jsx)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,a.__)("Start autoplay","snow-monkey-blocks"),children:(0,i.jsx)("path",{d:"M12 8L-2.29967e-06 16L-2.29967e-06 0L12 8Z",fill:"currentColor"})})})]}),c&&W.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]}),(o||Y)&&(0,i.jsxs)("div",{className:"smb-slider-pagination",children:[W.map(((e,s)=>(0,i.jsx)(h.Button,{variant:J===e||X?.clientId===e?"primary":"secondary",onClick:()=>{E(e),U(e)},children:(0,i.jsx)("span",{children:s+1})},s))),(0,i.jsx)(u.InnerBlocks.ButtonBlockAppender,{})]})]})]})},save:function({attributes:e,className:s}){const{arrows:t,dots:o,fade:r,shuffle:l,shifted:d,gutter:c,interval:h,autoplayButton:m,duration:b,lgSlidesToShow:v,mdSlidesToShow:f,smSlidesToShow:w,canvasPadding:x,border:g,boxShadow:_,sliderClientIds:y}=e,j="wide"===e.align,S="full"===e.align,k=d&&!r&&(j||S),N=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":k,[`smb-spider-slider--gutter-${c}`]:!!c}),C=String(g.width).match(/^\d+$/)?`${g.width}px`:g.width,B=String(g.radius).match(/^\d+$/)?`${g.radius}px`:g.radius,P={"--smb-spider-contents-slider--canvas-offset-top":!!x?.top&&`${x?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!x?.right&&r&&`${x?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!x?.bottom&&`${x?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!x?.left&&r&&`${x?.left}px`||void 0,"--smb-spider-slider--gap":!c&&!r&&(!!x?.right||!!x?.left)&&(x?.right+x?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!g.color&&0<parseInt(C)&&C||void 0,"--smb-spider-contents-slider--slide-border-color":g.color||void 0,"--smb-spider-contents-slider--slide-border-type":g.style||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(B)&&B||void 0,"--smb-spider-contents-slider--slide-box-shadow":_.color?`0 0 ${_.blur}px ${p()(_.color,_.opacity)}`:void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:N,style:P}),"data-fade":r?"true":"false","data-shuffle":l?"true":"false","data-interval":0<h?1e3*h:void 0,"data-duration":0<b?1e3*b:void 0,"data-lg-slide-to-show":!r&&1<v?v:void 0,"data-md-slide-to-show":!r&&1<f?f:void 0,"data-sm-slide-to-show":!r&&1<w?w:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[k&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<h&&m||o)&&(0,i.jsxs)("div",{className:"spider__dots",children:[m&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{className:"spider__stop",children:(0,i.jsxs)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,a.__)("Pause autoplay","snow-monkey-blocks"),children:[(0,i.jsx)("rect",{width:"5",height:"16",fill:"currentColor"}),(0,i.jsx)("rect",{x:"7",width:"5",height:"16",fill:"currentColor"})]})}),(0,i.jsx)("button",{className:"spider__start",children:(0,i.jsx)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,a.__)("Start autoplay","snow-monkey-blocks"),children:(0,i.jsx)("path",{d:"M12 8L-2.29967e-06 16L-2.29967e-06 0L12 8Z",fill:"currentColor"})})})]}),o&&y.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]})]})},deprecated:k,example:{attributes:{arrows:!0,dots:!0},innerBlocks:[{name:"snow-monkey-blocks/spider-contents-slider-item",attributes:{contentPadding:"s"},innerBlocks:[{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}}]},{name:"snow-monkey-blocks/spider-contents-slider-item",attributes:{contentPadding:"s"},innerBlocks:[{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}}]}]}})},3558:e=>{"use strict";var s=function(e){return parseInt(e,16)};e.exports=function(e,t){var o,a,r=function(e){return"#"===e.charAt(0)?e.slice(1):e}(e),i=function(e){var t=e.g,o=e.b,a=e.a;return{r:s(e.r),g:s(t),b:s(o),a:+(s(a)/255).toFixed(2)}}({r:(a=3===(o=r).length||4===o.length)?"".concat(o.slice(0,1)).concat(o.slice(0,1)):o.slice(0,2),g:a?"".concat(o.slice(1,2)).concat(o.slice(1,2)):o.slice(2,4),b:a?"".concat(o.slice(2,3)).concat(o.slice(2,3)):o.slice(4,6),a:(a?"".concat(o.slice(3,4)).concat(o.slice(3,4)):o.slice(6,8))||"ff"});return function(e,s){var t,o=e.r,a=e.g,r=e.b,i=e.a,l=(t=s,!isNaN(parseFloat(t))&&isFinite(t)?s:i);return"rgba(".concat(o,", ").concat(a,", ").concat(r,", ").concat(l,")")}(i,t)}},6942:(e,s)=>{var t;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e="",s=0;s<arguments.length;s++){var t=arguments[s];t&&(e=i(e,r(t)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var s="";for(var t in e)o.call(e,t)&&e[t]&&(s=i(s,t));return s}function i(e,s){return s?e?e+" "+s:e+s:e}e.exports?(a.default=a,e.exports=a):void 0===(t=function(){return a}.apply(s,[]))||(e.exports=t)}()}},t={};function o(e){var a=t[e];if(void 0!==a)return a.exports;var r=t[e]={exports:{}};return s[e](r,r.exports,o),r.exports}o.m=s,e=[],o.O=(s,t,a,r)=>{if(!t){var i=1/0;for(c=0;c<e.length;c++){t=e[c][0],a=e[c][1],r=e[c][2];for(var l=!0,d=0;d<t.length;d++)(!1&r||i>=r)&&Object.keys(o.O).every((e=>o.O[e](t[d])))?t.splice(d--,1):(l=!1,r<i&&(i=r));if(l){e.splice(c--,1);var n=a();void 0!==n&&(s=n)}}return s}r=r||0;for(var c=e.length;c>0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[t,a,r]},o.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return o.d(s,{a:s}),s},o.d=(e,s)=>{for(var t in s)o.o(s,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:s[t]})},o.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{var e={9021:0,465:0};o.O.j=s=>0===e[s];var s=(s,t)=>{var a,r,i=t[0],l=t[1],d=t[2],n=0;if(i.some((s=>0!==e[s]))){for(a in l)o.o(l,a)&&(o.m[a]=l[a]);if(d)var c=d(o)}for(s&&s(t);n<i.length;n++)r=i[n],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(c)},t=self.webpackChunk=self.webpackChunk||[];t.forEach(s.bind(null,0)),t.push=s.bind(null,t.push.bind(t))})();var a=o.O(void 0,[465],(()=>o(8674)));a=o.O(a)})();
     1(()=>{var e,s={8674:(e,s,t)=>{"use strict";const o=window.wp.blocks,r=window.wp.i18n,a=JSON.parse('{"UU":"snow-monkey-blocks/spider-contents-slider","uK":{"sizeSlug":{"type":"string","default":"full"},"dots":{"type":"boolean","default":false},"arrows":{"type":"boolean","default":false},"fade":{"type":"boolean","default":false},"shuffle":{"type":"boolean","default":false},"shifted":{"type":"boolean","default":false},"gutter":{"type":"string"},"interval":{"type":"number","default":0},"autoplayButton":{"type":"boolean","default":false},"duration":{"type":"number","default":0},"lgSlidesToShow":{"type":"number","default":1},"mdSlidesToShow":{"type":"number","default":1},"smSlidesToShow":{"type":"number","default":1},"canvasPadding":{"type":"object","default":{}},"sliderClientIds":{"type":"array","default":[]},"border":{"type":"object","default":{"color":"","style":"","width":1,"radius":0}},"boxShadow":{"type":"object","default":{"color":"","opacity":0.1,"blur":10,"position":""}},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"xY":{"align":["wide","full"],"spacing":{"margin":true}}}'),i=window.ReactJSXRuntime,l=(0,i.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,i.jsx)("path",{d:"M5,5.78V18.22a.78.78,0,0,0,.78.78H18.22a.78.78,0,0,0,.78-.78V5.78A.78.78,0,0,0,18.22,5H5.78A.78.78,0,0,0,5,5.78m12.44,12H6.56a.38.38,0,0,1-.39-.39V6.56a.38.38,0,0,1,.39-.39H17.44a.38.38,0,0,1,.39.39V17.44a.38.38,0,0,1-.39.39"}),(0,i.jsx)("path",{d:"M6.17,14.16l3.06-2.23a.22.22,0,0,1,.22,0l2.34,1.5a.21.21,0,0,0,.24,0l3-2.83a.19.19,0,0,1,.27,0l3.09,3v1.16l-3.09-3a.18.18,0,0,0-.27,0l-3,2.82a.19.19,0,0,1-.24,0L9.45,13.11a.18.18,0,0,0-.22,0L6.17,15.33Z"}),(0,i.jsx)("path",{d:"M2.22,5H0V6.17H1.44a.38.38,0,0,1,.39.39V17.44a.38.38,0,0,1-.39.39H0V19H2.22A.78.78,0,0,0,3,18.22V5.78A.78.78,0,0,0,2.22,5Z"}),(0,i.jsx)("path",{d:"M24,17.83H22.56a.38.38,0,0,1-.39-.39V6.56a.38.38,0,0,1,.39-.39H24V5H21.78a.78.78,0,0,0-.78.78V18.22a.78.78,0,0,0,.78.78H24Z"})]});var d=t(6942),n=t.n(d),c=t(3558),p=t.n(c);const u=window.wp.blockEditor,h=window.wp.components,m=window.wp.data,b=window.wp.element,v=(0,b.forwardRef)((function({icon:e,size:s=24,...t},o){return(0,b.cloneElement)(e,{width:s,height:s,...t,ref:o})})),f=window.wp.primitives,w=(0,i.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,i.jsx)(f.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"})});function g({settings:e,label:s}){const t={},o={},a=e.map(((e,s)=>{if(e.hasOwnProperty("colorValue")&&e.hasOwnProperty("onColorChange")){t.color=e.colorValue,o.color=e.onColorChange;const a=(0,u.__experimentalUseMultipleOriginColorsAndGradients)();return a.colors=a.colors.map((e=>{const s=e.colors.filter((e=>!e.color.match(/^var\(/)));return!(1>s.length)&&(e.colors=s,e)})).filter(Boolean),(0,i.jsx)("div",{className:"smb-color-gradient-settings-dropdown",children:(0,i.jsx)(u.__experimentalColorGradientSettingsDropdown,{settings:[{label:(0,r.__)("Color","snow-monkey-blocks"),colorValue:e.colorValue,onColorChange:e.onColorChange}],__experimentalIsRenderedInSidebar:!0,...a})},s)}return e.hasOwnProperty("opacityValue")&&e.hasOwnProperty("onOpacityChange")?(t.opacity=e.opacityValue,o.opacity=e.onOpacityChange,(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Opacity","snow-monkey-blocks"),value:Number(e.opacityValue.toFixed(1)),onChange:e.onOpacityChange,min:0,max:1,step:.1},s)):e.hasOwnProperty("horizontalValue")&&e.hasOwnProperty("onHorizontalChange")?(t.horizontal=e.horizontalValue,o.horizontal=e.onHorizontalChange,(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Horizontal","snow-monkey-blocks"),value:e.horizontalValue,onChange:e.onHorizontalChange,min:null!==(a=e?.min)&&void 0!==a?a:-100,max:null!==(l=e?.max)&&void 0!==l?l:100},s)):e.hasOwnProperty("verticalValue")&&e.hasOwnProperty("onVerticalChange")?(t.vertical=e.verticalValue,o.vertical=e.onVerticalChange,(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Vertical","snow-monkey-blocks"),value:e.verticalValue,onChange:e.onVerticalChange,min:null!==(d=e?.min)&&void 0!==d?d:-100,max:null!==(n=e?.max)&&void 0!==n?n:100},s)):e.hasOwnProperty("blurValue")&&e.hasOwnProperty("onBlurChange")?(t.blur=e.blurValue,o.blur=e.onBlurChange,(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Blur","snow-monkey-blocks"),value:e.blurValue,onChange:e.onBlurChange,min:null!==(c=e?.min)&&void 0!==c?c:0,max:null!==(p=e?.max)&&void 0!==p?p:100},s)):e.hasOwnProperty("spreadValue")&&e.hasOwnProperty("onSpreadChange")?(t.spread=e.spreadValue,o.spread=e.onSpreadChange,(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Spread","snow-monkey-blocks"),value:e.spreadValue,onChange:e.onSpreadChange,min:null!==(m=e?.min)&&void 0!==m?m:-100,max:null!==(v=e?.max)&&void 0!==v?v:100},s)):e.hasOwnProperty("positionValue")&&e.hasOwnProperty("onPositionChange")?(t.position=e.positionValue,o.position=e.onPositionChange,(0,i.jsx)(h.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Position","snow-monkey-blocks"),value:e.positionValue,onChange:e.onPositionChange,options:[{value:"",label:(0,r.__)("Outline","snow-monkey-blocks")},{value:"inset",label:(0,r.__)("Inset","snow-monkey-blocks")}]},s)):(0,i.jsx)(b.Fragment,{},s);var a,l,d,n,c,p,m,v}));return(0,i.jsx)(h.__experimentalToolsPanel,{label:s||(0,r.__)("Box Shadow","snow-monkey-blocks"),className:"smb-box-shadow-tools-panel",children:(0,i.jsx)(h.__experimentalToolsPanelItem,{label:s||(0,r.__)("Box Shadow","snow-monkey-blocks"),hasValue:()=>e.some((e=>{if(e.hasOwnProperty("defaultValue")){let s;return e.hasOwnProperty("opacityValue")?s=e.opacityValue:e.hasOwnProperty("horizontalValue")?s=e.horizontalValue:e.hasOwnProperty("verticalValue")?s=e.verticalValue:e.hasOwnProperty("blurValue")?s=e.blurValue:e.hasOwnProperty("spreadValue")?s=e.spreadValue:e.hasOwnProperty("positionValue")&&(s=e.positionValue),void 0!==s&&e.defaultValue!==s}return!1})),isShownByDefault:!0,onDeselect:()=>{e.forEach((e=>{if(e.hasOwnProperty("defaultValue")){let s;e.hasOwnProperty("onOpacityChange")?s=e.onOpacityChange:e.hasOwnProperty("onHorizontalChange")?s=e.onHorizontalChange:e.hasOwnProperty("onVerticalChange")?s=e.onVerticalChange:e.hasOwnProperty("onBlurChange")?s=e.onBlurChange:e.hasOwnProperty("onSpreadChange")?s=e.onSpreadChange:e.hasOwnProperty("onPositionChange")&&(s=e.onPositionChange),void 0!==s&&s(e.defaultValue)}}))},children:a})})}function x(e){const{desktop:s,tablet:t,mobile:o}=e,r=[];return s&&r.push({name:"desktop",title:(0,i.jsx)(h.Dashicon,{icon:"desktop"})}),t&&r.push({name:"tablet",title:(0,i.jsx)(h.Dashicon,{icon:"tablet"})}),o&&r.push({name:"mobile",title:(0,i.jsx)(h.Dashicon,{icon:"smartphone"})}),(0,i.jsx)(h.TabPanel,{className:"smb-inspector-tabs",tabs:r,children:e=>{if(e.name){if("desktop"===e.name)return s();if("tablet"===e.name)return t();if("mobile"===e.name)return o()}}})}window.lodash;const _=(e,s=0,t=null)=>(e=Number(e),(isNaN(e)||e<s)&&(e=s),null!==t&&e>t&&(e=t),e),y=["snow-monkey-blocks/spider-contents-slider-item"],j=a.uK,S=a.xY,k=[{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},migrate(e){const{sliderClientIds:s}=e;return{...e,sliderClientIds:JSON.parse(s)}},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:a,shuffle:l,shifted:d,gutter:c,interval:h,autoplayButton:m,duration:b,lgSlidesToShow:v,mdSlidesToShow:f,smSlidesToShow:w,canvasPadding:g,border:x,boxShadow:_,sliderClientIds:y}=e,j=JSON.parse(y),S="wide"===e.align,k="full"===e.align,N=d&&!a&&(S||k),C=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":N,[`smb-spider-slider--gutter-${c}`]:!!c}),B=String(x.width).match(/^\d+$/)?`${x.width}px`:x.width,P=String(x.radius).match(/^\d+$/)?`${x.radius}px`:x.radius,I={"--smb-spider-contents-slider--canvas-offset-top":!!g?.top&&`${g?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!g?.right&&a&&`${g?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!g?.bottom&&`${g?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!g?.left&&a&&`${g?.left}px`||void 0,"--smb-spider-slider--gap":!c&&!a&&(!!g?.right||!!g?.left)&&(g?.right+g?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!x.color&&0<parseInt(B)&&B||void 0,"--smb-spider-contents-slider--slide-border-color":x.color||void 0,"--smb-spider-contents-slider--slide-border-type":x.style||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(P)&&P||void 0,"--smb-spider-contents-slider--slide-box-shadow":_.color?`0 0 ${_.blur}px ${p()(_.color,_.opacity)}`:void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:C,style:I}),"data-fade":a?"true":"false","data-shuffle":l?"true":"false","data-interval":0<h?1e3*h:void 0,"data-duration":0<b?1e3*b:void 0,"data-lg-slide-to-show":!a&&1<v?v:void 0,"data-md-slide-to-show":!a&&1<f?f:void 0,"data-sm-slide-to-show":!a&&1<w?w:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[N&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<h&&m||o)&&(0,i.jsxs)("div",{className:"spider__dots",children:[m&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{className:"spider__stop",children:(0,i.jsxs)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,r.__)("Pause autoplay","snow-monkey-blocks"),children:[(0,i.jsx)("rect",{width:"5",height:"16",fill:"currentColor"}),(0,i.jsx)("rect",{x:"7",width:"5",height:"16",fill:"currentColor"})]})}),(0,i.jsx)("button",{className:"spider__start",children:(0,i.jsx)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,r.__)("Start autoplay","snow-monkey-blocks"),children:(0,i.jsx)("path",{d:"M12 8L-2.29967e-06 16L-2.29967e-06 0L12 8Z",fill:"currentColor"})})})]}),o&&j.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},migrate(e){const{sliderClientIds:s}=e;return{...e,sliderClientIds:JSON.parse(s)}},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:a,shuffle:l,shifted:d,gutter:c,interval:h,autoplayButton:m,duration:b,lgSlidesToShow:v,mdSlidesToShow:f,smSlidesToShow:w,canvasPadding:g,border:x,boxShadow:_,sliderClientIds:y}=e,j=JSON.parse(y),S="wide"===e.align,k="full"===e.align,N=d&&!a&&(S||k),C=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":N,[`smb-spider-slider--gutter-${c}`]:!!c}),B=String(x.width).match(/^\d+$/)?`${x.width}px`:x.width,P=String(x.radius).match(/^\d+$/)?`${x.radius}px`:x.radius,I={"--smb-spider-contents-slider--canvas-offset-top":!!g?.top&&`${g?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!g?.right&&a&&`${g?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!g?.bottom&&`${g?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!g?.left&&a&&`${g?.left}px`||void 0,"--smb-spider-slider--gap":!c&&!a&&(!!g?.right||!!g?.left)&&(g?.right+g?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!x.color&&0<parseInt(B)&&B||void 0,"--smb-spider-contents-slider--slide-border-color":x.color||void 0,"--smb-spider-contents-slider--slide-border-type":x.style||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(P)&&P||void 0,"--smb-spider-contents-slider--slide-box-shadow":_.color?`0 0 ${_.blur}px ${p()(_.color,_.opacity)}`:void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:C,style:I}),"data-fade":a?"true":"false","data-shuffle":l?"true":"false","data-interval":0<h?1e3*h:void 0,"data-duration":0<b?1e3*b:void 0,"data-lg-slide-to-show":!a&&1<v?v:void 0,"data-md-slide-to-show":!a&&1<f?f:void 0,"data-sm-slide-to-show":!a&&1<w?w:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[N&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<h&&m||o)&&(0,i.jsxs)("div",{className:"spider__dots",children:[m&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{className:"spider__stop",title:(0,r.__)("Pause autoplay","snow-monkey-blocks"),children:"⏸"}),(0,i.jsx)("button",{className:"spider__start",title:(0,r.__)("Start autoplay","snow-monkey-blocks"),children:"▶"})]}),o&&j.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},migrate(e){const{sliderClientIds:s}=e;return{...e,sliderClientIds:JSON.parse(s)}},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:r,shifted:a,gutter:l,interval:d,duration:c,lgSlidesToShow:h,mdSlidesToShow:m,smSlidesToShow:b,canvasPadding:v,border:f,boxShadow:w,sliderClientIds:g}=e,x=JSON.parse(g),_="wide"===e.align,y="full"===e.align,j=a&&!r&&(_||y),S=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":j,[`smb-spider-slider--gutter-${l}`]:!!l}),k=String(f.width).match(/^\d+$/)?`${f.width}px`:f.width,N=String(f.radius).match(/^\d+$/)?`${f.radius}px`:f.radius,C={"--smb-spider-contents-slider--canvas-offset-top":!!v?.top&&`${v?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!v?.right&&r&&`${v?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!v?.bottom&&`${v?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!v?.left&&r&&`${v?.left}px`||void 0,"--smb-spider-slider--gap":!l&&!r&&(!!v?.right||!!v?.left)&&(v?.right+v?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!f.color&&0<parseInt(k)&&k||void 0,"--smb-spider-contents-slider--slide-border-color":f.color||void 0,"--smb-spider-contents-slider--slide-border-type":f.style||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(N)&&N||void 0,"--smb-spider-contents-slider--slide-box-shadow":w.color?`0 0 ${w.blur}px ${p()(w.color,w.opacity)}`:void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:S,style:C}),"data-fade":r?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!r&&1<h?h:void 0,"data-md-slide-to-show":!r&&1<m?m:void 0,"data-sm-slide-to-show":!r&&1<b?b:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[j&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:x.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},migrate(e){const{sliderClientIds:s}=e;return{...e,sliderClientIds:JSON.parse(s)}},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:r,shifted:a,gutter:l,interval:d,duration:c,lgSlidesToShow:h,mdSlidesToShow:m,smSlidesToShow:b,canvasPadding:v,border:f,boxShadow:w,sliderClientIds:g}=e,x=JSON.parse(g),_="wide"===e.align,y="full"===e.align,j=a&&!r&&(_||y),S=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":j,[`smb-spider-slider--gutter-${l}`]:!!l}),k=String(f.width).match(/^\d+$/)?`${f.width}px`:f.width,N=String(f.radius).match(/^\d+$/)?`${f.radius}px`:f.radius,C={"--smb-spider-contents-slider--canvas-offset-top":!!v?.top&&`${v?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!v?.right&&r&&`${v?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!v?.bottom&&`${v?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!v?.left&&r&&`${v?.left}px`||void 0,"--smb-spider-slider--gap":!l&&!r&&(!!v?.right||!!v?.left)&&(v?.right+v?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!f.color&&0<parseInt(k)&&k||void 0,"--smb-spider-contents-slider--slide-border-color":f.color||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(N)&&N||void 0,"--smb-spider-contents-slider--slide-box-shadow":w.color?`0 0 ${w.blur}px ${p()(w.color,w.opacity)}`:void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:S,style:C}),"data-fade":r?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!r&&1<h?h:void 0,"data-md-slide-to-show":!r&&1<m?m:void 0,"data-sm-slide-to-show":!r&&1<b?b:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[j&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:x.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},migrate(e){const{sliderClientIds:s}=e;return{...e,sliderClientIds:JSON.parse(s)}},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:r,shifted:a,gutter:l,interval:d,duration:c,lgSlidesToShow:p,mdSlidesToShow:h,smSlidesToShow:m,canvasPadding:b,sliderClientIds:v}=e,f=JSON.parse(v),w="wide"===e.align,g="full"===e.align,x=a&&!r&&(w||g),_=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":x,[`smb-spider-slider--gutter-${l}`]:!!l}),y={"--smb-spider-contents-slider--canvas-offset-top":`${b?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":r&&`${b?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":`${b?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":r&&`${b?.left}px`||void 0,"--smb-spider-slider--gap":!l&&!r&&(b?.right+b?.left)/2+"px"||void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:_,style:y}),"data-fade":r?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!r&&1<p?p:void 0,"data-md-slide-to-show":!r&&1<h?h:void 0,"data-sm-slide-to-show":!r&&1<m?m:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[x&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:f.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},migrate(e){const{sliderClientIds:s}=e;return{...e,sliderClientIds:JSON.parse(s)}},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:r,shifted:a,gutter:l,interval:d,duration:c,lgSlidesToShow:p,mdSlidesToShow:h,smSlidesToShow:m,canvasPadding:b,sliderClientIds:v}=e,f=JSON.parse(v),w="wide"===e.align,g="full"===e.align,x=a&&!r&&(w||g),_=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":x,[`smb-spider-slider--gutter-${l}`]:!!l}),y={paddingTop:b?.top||void 0,paddingBottom:b?.bottom||void 0,paddingRight:b?.right||void 0,paddingLeft:b?.left||void 0},j={marginRight:b?.right||void 0,marginLeft:b?.left||void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:_}),"data-fade":r?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!r&&1<p?p:void 0,"data-md-slide-to-show":!r&&1<h?h:void 0,"data-sm-slide-to-show":!r&&1<m?m:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[x&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference",style:j})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas",style:y})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:f.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},migrate(e){const{sliderClientIds:s}=e;return{...e,sliderClientIds:JSON.parse(s)}},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:r,shifted:a,gutter:l,interval:d,duration:c,lgSlidesToShow:p,mdSlidesToShow:h,smSlidesToShow:m,canvasPadding:b,sliderClientIds:v}=e,f=JSON.parse(v),w="wide"===e.align,g="full"===e.align,x=a&&!r&&(w||g),_=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":x,[`smb-spider-slider--gutter-${l}`]:!!l}),y={paddingTop:b?.top||void 0,paddingBottom:b?.bottom||void 0,paddingRight:b?.right||void 0,paddingLeft:b?.left||void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:_}),"data-fade":r?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!r&&1<p?p:void 0,"data-md-slide-to-show":!r&&1<h?h:void 0,"data-sm-slide-to-show":!r&&1<m?m:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[x&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas",style:y})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:f.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}},{attributes:{...j,sliderClientIds:{type:"string",default:"[]"}},supports:{...S},migrate(e){const{sliderClientIds:s}=e;return{...e,sliderClientIds:JSON.parse(s)}},save({attributes:e,className:s}){const{arrows:t,dots:o,fade:r,shifted:a,gutter:l,interval:d,duration:c,lgSlidesToShow:p,mdSlidesToShow:h,smSlidesToShow:m,canvasPadding:b,sliderClientIds:v}=e,f=JSON.parse(v),w="wide"===e.align,g="full"===e.align,x=a&&!r&&(w||g),_=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":x,[`smb-spider-slider--gutter-${l}`]:!!l}),y={paddingTop:b?.top||void 0,paddingBottom:b?.bottom||void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:_}),"data-fade":r?"true":"false","data-interval":0<d?1e3*d:void 0,"data-duration":0<c?1e3*c:void 0,"data-lg-slide-to-show":!r&&1<p?p:void 0,"data-md-slide-to-show":!r&&1<h?h:void 0,"data-sm-slide-to-show":!r&&1<m?m:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[x&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas",style:y})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),o&&(0,i.jsx)("div",{className:"spider__dots",children:f.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))})]})}}];(0,o.registerBlockType)(a.UU,{icon:{foreground:"#cd162c",src:l},keywords:[(0,r.__)("Carousel","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:s,className:t,isSelected:o,clientId:l}){const{arrows:d,dots:c,fade:f,shuffle:j,shifted:S,gutter:k,interval:N,autoplayButton:C,duration:B,lgSlidesToShow:P,mdSlidesToShow:I,smSlidesToShow:$,canvasPadding:V,border:O,boxShadow:T,sliderClientIds:D,templateLock:H}=e,K="wide"===e.align,M="full"===e.align,R=!f,A=S&&R&&(K||M),L=(0,b.useRef)(),z=(0,b.useRef)(),J=(0,b.useRef)(),[F,E]=(0,b.useState)(void 0),{updateBlockAttributes:G,selectBlock:U}=(0,m.useDispatch)("core/block-editor"),{getBlockAttributes:Z,nowSliderClientIds:W,slides:q,hasChildSelected:Y}=(0,m.useSelect)((e=>{const s=e("core/block-editor").hasSelectedInnerBlock(l,!0);return{getBlockAttributes:e("core/block-editor").getBlockAttributes,nowSliderClientIds:e("core/block-editor").getBlockOrder(l),slides:e("core/block-editor").getBlock(l).innerBlocks,hasChildSelected:s}}),[l]);(0,b.useEffect)((()=>{let e;0<q.length&&(e=q.reduce(((e,s)=>(!!e?.attributes?.boxShadow?.color&&0<e?.attributes?.boxShadow?.blur||0)<(!!s?.attributes?.boxShadow?.color&&0<s?.attributes?.boxShadow?.blur||0)?s:e)));const t=T?.color&&0<T?.blur?T?.blur:0,o=e?.attributes?.boxShadow?.color&&0<e?.attributes?.boxShadow?.blur?e?.attributes?.boxShadow?.blur:0,r=t>o?t:o;r===V?.top&&r===V?.bottom&&r===V?.right&&r===V?.left||s({canvasPadding:{...V,top:r,bottom:r,right:r,left:r}})}),[q.join(),T.blur]);const X=(0,m.useSelect)((e=>{const s=q.filter((s=>s.clientId===e("core/block-editor").getSelectedBlockClientId()));if(0<s.length)return E(s[0]),s[0]}),[q.join()]);(0,b.useEffect)((()=>{0<W.length&&!F&&E(W[0]),D.length!==W.length&&s({sliderClientIds:W}),W.forEach(((e,s)=>{const t=Z(e);s!==parseInt(t?.sliderId)&&G(e,{sliderId:s})}))}),[W.join(),F]);const Q=!!L.current&&L.current.offsetWidth;(0,b.useEffect)((()=>{const e=!!L.current&&!!J.current&&A&&Math.floor(L.current.offsetWidth);e&&(L.current.style.setProperty("--spider--canvas-width",`${e}px`),J.current.style.width=`${e}px`);const s=!!z.current&&A&&Math.floor(z.current.offsetWidth);s&&L.current.style.setProperty("--spider--reference-width",`${s}px`)}),[Q,A]);const ee=n()("smb-spider-slider","smb-spider-contents-slider",t,{"smb-spider-slider--shifted":A,[`smb-spider-slider--gutter-${k}`]:!!k}),se=String(O.width).match(/^\d+$/)?`${O.width}px`:O.width,te=String(O.radius).match(/^\d+$/)?`${O.radius}px`:O.radius,oe={"--smb-spider-contents-slider--canvas-offset-top":!!V?.top&&`${V?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!V?.right&&f&&`${V?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!V?.bottom&&`${V?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!V?.left&&f&&`${V?.left}px`||void 0,"--smb-spider-slider--gap":!k&&!f&&(!!V?.right||!!V?.left)&&(V?.right+V?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!O.color&&0<parseInt(se)&&se||void 0,"--smb-spider-contents-slider--slide-border-color":O.color||void 0,"--smb-spider-contents-slider--slide-border-type":O.style||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(te)&&te||void 0,"--smb-spider-contents-slider--slide-box-shadow":T.color?`0 0 ${T.blur}px ${p()(T.color,T.opacity)}`:void 0},re=[{value:"",label:(0,r.__)("None","snow-monkey-blocks")},{value:"s",label:(0,r.__)("S","snow-monkey-blocks")},{value:"m",label:(0,r.__)("M","snow-monkey-blocks")},{value:"l",label:(0,r.__)("L","snow-monkey-blocks")}],ae=(0,u.useInnerBlocksProps)({className:"spider__canvas"},{templateLock:H,allowedBlocks:y,orientation:"horizontal",renderAppender:!1});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.InspectorControls,{group:"dimensions",children:(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>k!==a.uK.gutter.default,isShownByDefault:!0,label:(0,r.__)("Gap","snow-monkey-blocks"),onDeselect:()=>s({gutter:a.uK.gutter.default}),panelId:l,children:(0,i.jsx)(h.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Gap","snow-monkey-blocks"),value:k,onChange:e=>s({gutter:e}),options:re})})}),(0,i.jsxs)(u.InspectorControls,{group:"border",children:[(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>O.color!==a.uK.border.default.color||O.style!==a.uK.border.default.style||O.width!==a.uK.border.default.width,isShownByDefault:!0,label:(0,r.__)("Border","snow-monkey-blocks"),onDeselect:()=>{s({border:{...O,color:a.uK.border.default.color,style:a.uK.border.default.style,width:a.uK.border.default.width}})},panelId:l,children:(0,i.jsx)(h.__experimentalBorderBoxControl,{...(0,u.__experimentalUseMultipleOriginColorsAndGradients)(),className:"smb-border-box-control",enableAlpha:!0,enableStyle:!0,onChange:e=>{s({border:{...O,color:e?.color,style:e?.style,width:e?.width}})},popoverOffset:40,popoverPlacement:"left-start",value:{color:O.color,style:O.style,width:O.width},__experimentalIsRenderedInSidebar:!0})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>O.radius!==a.uK.border.default.radius,isShownByDefault:!0,label:(0,r.__)("Border radius","snow-monkey-blocks"),onDeselect:()=>{s({border:{...O,radius:a.uK.border.default.radius}})},panelId:l,children:(0,i.jsx)("div",{className:"smb-border-radius-control",children:(0,i.jsx)(u.__experimentalBorderRadiusControl,{values:O.radius,onChange:e=>{s({border:{...O,radius:e}})}})})})]}),(0,i.jsx)(u.InspectorControls,{group:"styles",children:(0,i.jsx)(g,{settings:[{colorValue:T.color||"",onColorChange:e=>{s({boxShadow:{...T,color:e}})}},{opacityValue:T.opacity,onOpacityChange:e=>{s({boxShadow:{...T,opacity:e}})}},{blurValue:T.blur,onBlurChange:e=>{s({boxShadow:{...T,blur:e}})},max:10}],defaultValues:{...a.uK.boxShadow.default}})}),(0,i.jsx)(u.InspectorControls,{children:(0,i.jsxs)(h.__experimentalToolsPanel,{label:(0,r.__)("Block settings","snow-monkey-blocks"),children:[(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>d!==a.uK.arrows.default,isShownByDefault:!0,label:(0,r.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>s({arrows:a.uK.arrows.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Display arrows","snow-monkey-blocks"),checked:d,onChange:e=>s({arrows:e})})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>c!==a.uK.dots.default,isShownByDefault:!0,label:(0,r.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>s({dots:a.uK.dots.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Display dots","snow-monkey-blocks"),checked:c,onChange:e=>s({dots:e})})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>f!==a.uK.fade.default,isShownByDefault:!0,label:(0,r.__)("Fade","snow-monkey-blocks"),onDeselect:()=>s({fade:a.uK.fade.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Fade","snow-monkey-blocks"),checked:f,onChange:e=>s({fade:e})})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>j!==a.uK.shuffle.default,isShownByDefault:!0,label:(0,r.__)("Shuffle slides","snow-monkey-blocks"),onDeselect:()=>s({shuffle:a.uK.shuffle.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Shuffle slides","snow-monkey-blocks"),checked:j,onChange:e=>s({shuffle:e})})}),R&&(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>S!==a.uK.shifted.default,isShownByDefault:!0,label:(0,r.__)("Shifting the slider","snow-monkey-blocks"),onDeselect:()=>s({shifted:a.uK.shifted.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Shifting the slider","snow-monkey-blocks"),help:S&&(!M||!K)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{icon:w,style:{fill:"#d94f4f"}}),(0,r.__)("It must be full width (.alignfull) or wide width (.alignwide).","snow-monkey-blocks")]}),checked:S,onChange:e=>s({shifted:e})})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>N!==a.uK.interval.default,isShownByDefault:!0,label:(0,r.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>s({interval:a.uK.interval.default}),children:(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,r.__)('If "0", no scroll.',"snow-monkey-blocks"),value:N,onChange:e=>s({interval:_(e,0,10)}),min:"0",max:"10"})}),0<N&&(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>C!==a.uK.autoplayButton.default,isShownByDefault:!0,label:(0,r.__)("Display pause button for autoplay","snow-monkey-blocks"),onDeselect:()=>s({autoplayButton:a.uK.autoplayButton.default}),children:(0,i.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:C,onChange:e=>s({autoplayButton:e})})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>B!==a.uK.duration.default,isShownByDefault:!0,label:(0,r.__)("Animation speed in seconds","snow-monkey-blocks"),onDeselect:()=>s({duration:a.uK.duration.default}),children:(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Animation speed in seconds","snow-monkey-blocks"),help:(0,r.__)('If "0", default animation speed.',"snow-monkey-blocks"),value:B,onChange:e=>s({duration:_(e,0,10)}),min:"0",max:"5",step:"0.1"})}),!f&&(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>P!==a.uK.lgSlidesToShow.default||I!==a.uK.mdSlidesToShow.default||$!==a.uK.smSlidesToShow.default,isShownByDefault:!0,label:(0,r.__)("Slides settings","snow-monkey-blocks"),onDeselect:()=>s({lgSlidesToShow:a.uK.lgSlidesToShow.default,mdSlidesToShow:a.uK.mdSlidesToShow.default,smSlidesToShow:a.uK.smSlidesToShow.default}),children:(0,i.jsx)(x,{desktop:()=>(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("# of slides to show (Large window)","snow-monkey-blocks"),value:P,onChange:e=>s({lgSlidesToShow:_(e,1,6)}),min:"1",max:6<W.length?6:W.length}),tablet:()=>(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("# of slides to show (Medium window)","snow-monkey-blocks"),value:I,onChange:e=>s({mdSlidesToShow:_(e,1,6)}),min:"1",max:6<W.length?6:W.length}),mobile:()=>(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("# of slides to show (Small window)","snow-monkey-blocks"),value:$,onChange:e=>s({smSlidesToShow:_(e,1,6)}),min:"1",max:6<W.length?6:W.length})})})]})}),(0,i.jsxs)("div",{...(0,u.useBlockProps)({className:ee,style:oe,ref:L}),"data-fade":f?"true":"false","data-shuffle":j?"true":"false","data-interval":0<N?1e3*N:void 0,"data-lg-slide-to-show":!f&&1<P?P:void 0,"data-md-slide-to-show":!f&&1<I?I:void 0,"data-sm-slide-to-show":!f&&1<$?$:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[A&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference",ref:z})}),(0,i.jsx)("div",{...ae,ref:J}),d&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<N&&C||c)&&(0,i.jsxs)("div",{className:"spider__dots",children:[C&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{className:"spider__stop",children:(0,i.jsxs)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,r.__)("Pause autoplay","snow-monkey-blocks"),children:[(0,i.jsx)("rect",{width:"5",height:"16",fill:"currentColor"}),(0,i.jsx)("rect",{x:"7",width:"5",height:"16",fill:"currentColor"})]})}),(0,i.jsx)("button",{className:"spider__start",children:(0,i.jsx)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,r.__)("Start autoplay","snow-monkey-blocks"),children:(0,i.jsx)("path",{d:"M12 8L-2.29967e-06 16L-2.29967e-06 0L12 8Z",fill:"currentColor"})})})]}),c&&W.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]}),(o||Y)&&(0,i.jsxs)("div",{className:"smb-slider-pagination",children:[W.map(((e,s)=>(0,i.jsx)(h.Button,{variant:F===e||X?.clientId===e?"primary":"secondary",onClick:()=>{E(e),U(e)},children:(0,i.jsx)("span",{children:s+1})},s))),(0,i.jsx)(u.InnerBlocks.ButtonBlockAppender,{})]})]})]})},save:function({attributes:e,className:s}){const{arrows:t,dots:o,fade:a,shuffle:l,shifted:d,gutter:c,interval:h,autoplayButton:m,duration:b,lgSlidesToShow:v,mdSlidesToShow:f,smSlidesToShow:w,canvasPadding:g,border:x,boxShadow:_,sliderClientIds:y}=e,j="wide"===e.align,S="full"===e.align,k=d&&!a&&(j||S),N=n()("smb-spider-slider","smb-spider-contents-slider",s,{"smb-spider-slider--shifted":k,[`smb-spider-slider--gutter-${c}`]:!!c}),C=String(x.width).match(/^\d+$/)?`${x.width}px`:x.width,B=String(x.radius).match(/^\d+$/)?`${x.radius}px`:x.radius,P={"--smb-spider-contents-slider--canvas-offset-top":!!g?.top&&`${g?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!g?.right&&a&&`${g?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!g?.bottom&&`${g?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!g?.left&&a&&`${g?.left}px`||void 0,"--smb-spider-slider--gap":!c&&!a&&(!!g?.right||!!g?.left)&&(g?.right+g?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!x.color&&0<parseInt(C)&&C||void 0,"--smb-spider-contents-slider--slide-border-color":x.color||void 0,"--smb-spider-contents-slider--slide-border-type":x.style||void 0,"--smb-spider-contents-slider--slide-border-radius":0<parseInt(B)&&B||void 0,"--smb-spider-contents-slider--slide-box-shadow":_.color?`0 0 ${_.blur}px ${p()(_.color,_.opacity)}`:void 0};return(0,i.jsxs)("div",{...u.useBlockProps.save({className:N,style:P}),"data-fade":a?"true":"false","data-shuffle":l?"true":"false","data-interval":0<h?1e3*h:void 0,"data-duration":0<b?1e3*b:void 0,"data-lg-slide-to-show":!a&&1<v?v:void 0,"data-md-slide-to-show":!a&&1<f?f:void 0,"data-sm-slide-to-show":!a&&1<w?w:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[k&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference"})}),(0,i.jsx)("div",{...u.useInnerBlocksProps.save({className:"spider__canvas"})}),t&&(0,i.jsxs)("div",{className:"spider__arrows",children:[(0,i.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,i.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<h&&m||o)&&(0,i.jsxs)("div",{className:"spider__dots",children:[m&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{className:"spider__stop",children:(0,i.jsxs)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,r.__)("Pause autoplay","snow-monkey-blocks"),children:[(0,i.jsx)("rect",{width:"5",height:"16",fill:"currentColor"}),(0,i.jsx)("rect",{x:"7",width:"5",height:"16",fill:"currentColor"})]})}),(0,i.jsx)("button",{className:"spider__start",children:(0,i.jsx)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,r.__)("Start autoplay","snow-monkey-blocks"),children:(0,i.jsx)("path",{d:"M12 8L-2.29967e-06 16L-2.29967e-06 0L12 8Z",fill:"currentColor"})})})]}),o&&y.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]})]})},deprecated:k,example:{attributes:{arrows:!0,dots:!0},innerBlocks:[{name:"snow-monkey-blocks/spider-contents-slider-item",attributes:{contentPadding:"s"},innerBlocks:[{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}}]},{name:"snow-monkey-blocks/spider-contents-slider-item",attributes:{contentPadding:"s"},innerBlocks:[{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}}]}]}})},3558:e=>{"use strict";var s=function(e){return parseInt(e,16)};e.exports=function(e,t){var o,r,a=function(e){return"#"===e.charAt(0)?e.slice(1):e}(e),i=function(e){var t=e.g,o=e.b,r=e.a;return{r:s(e.r),g:s(t),b:s(o),a:+(s(r)/255).toFixed(2)}}({r:(r=3===(o=a).length||4===o.length)?"".concat(o.slice(0,1)).concat(o.slice(0,1)):o.slice(0,2),g:r?"".concat(o.slice(1,2)).concat(o.slice(1,2)):o.slice(2,4),b:r?"".concat(o.slice(2,3)).concat(o.slice(2,3)):o.slice(4,6),a:(r?"".concat(o.slice(3,4)).concat(o.slice(3,4)):o.slice(6,8))||"ff"});return function(e,s){var t,o=e.r,r=e.g,a=e.b,i=e.a,l=(t=s,!isNaN(parseFloat(t))&&isFinite(t)?s:i);return"rgba(".concat(o,", ").concat(r,", ").concat(a,", ").concat(l,")")}(i,t)}},6942:(e,s)=>{var t;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",s=0;s<arguments.length;s++){var t=arguments[s];t&&(e=i(e,a(t)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var s="";for(var t in e)o.call(e,t)&&e[t]&&(s=i(s,t));return s}function i(e,s){return s?e?e+" "+s:e+s:e}e.exports?(r.default=r,e.exports=r):void 0===(t=function(){return r}.apply(s,[]))||(e.exports=t)}()}},t={};function o(e){var r=t[e];if(void 0!==r)return r.exports;var a=t[e]={exports:{}};return s[e](a,a.exports,o),a.exports}o.m=s,e=[],o.O=(s,t,r,a)=>{if(!t){var i=1/0;for(c=0;c<e.length;c++){t=e[c][0],r=e[c][1],a=e[c][2];for(var l=!0,d=0;d<t.length;d++)(!1&a||i>=a)&&Object.keys(o.O).every((e=>o.O[e](t[d])))?t.splice(d--,1):(l=!1,a<i&&(i=a));if(l){e.splice(c--,1);var n=r();void 0!==n&&(s=n)}}return s}a=a||0;for(var c=e.length;c>0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[t,r,a]},o.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return o.d(s,{a:s}),s},o.d=(e,s)=>{for(var t in s)o.o(s,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:s[t]})},o.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{var e={9021:0,465:0};o.O.j=s=>0===e[s];var s=(s,t)=>{var r,a,i=t[0],l=t[1],d=t[2],n=0;if(i.some((s=>0!==e[s]))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(d)var c=d(o)}for(s&&s(t);n<i.length;n++)a=i[n],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(c)},t=self.webpackChunk=self.webpackChunk||[];t.forEach(s.bind(null,0)),t.push=s.bind(null,t.push.bind(t))})();var r=o.O(void 0,[465],(()=>o(8674)));r=o.O(r)})();
  • snow-monkey-blocks/trunk/dist/blocks/tabs/index.asset.php

    r3226624 r3227770  
    1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '547d3ebbde992afe4b08');
     1<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '29ac70edae87a3dd1b73');
  • snow-monkey-blocks/trunk/dist/blocks/tabs/index.js

    r3226624 r3227770  
    1 (()=>{var t,a={7931:(t,a,e)=>{"use strict";const s=window.wp.blocks,o=window.wp.i18n,n=window.ReactJSXRuntime,l=(0,n.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{cx:"6.5",cy:"8",r:"1"}),(0,n.jsx)("path",{d:"M20,8H13.75a.25.25,0,0,1-.25-.25V5.5a1,1,0,0,0-1-1H4a1,1,0,0,0-1,1v13a1,1,0,0,0,1,1H20a1,1,0,0,0,1-1V9A1,1,0,0,0,20,8Zm0,10a.54.54,0,0,1-.53.54H4.53A.54.54,0,0,1,4,18V6a.54.54,0,0,1,.53-.54H12A.54.54,0,0,1,12.5,6V8.25a.54.54,0,0,0,.53.54h6.44a.54.54,0,0,1,.53.54Z"})]}),i=JSON.parse('{"UU":"snow-monkey-blocks/tabs","uK":{"tabs":{"type":"array","default":[]},"matchHeight":{"type":"string","source":"attribute","selector":".smb-tabs","attribute":"data-match-height","default":"false"},"tabsJustification":{"type":"string","source":"attribute","selector":".smb-tabs","attribute":"data-tabs-justification","default":"flex-start"},"tabsId":{"type":"string","source":"attribute","selector":".smb-tabs","attribute":"data-tabs-id","default":""},"orientation":{"type":"string","source":"attribute","selector":".smb-tabs","attribute":"data-orientation","default":"horizontal"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"xY":{"html":false,"spacing":{"margin":true},"snowmonkeyeditor":{"blockPresets":{"ignore":["tabs","tabsId"]}}}}');var r=e(6942),c=e.n(r);const b=window.wp.blockEditor,d=window.wp.components,m=window.wp.element,h=(0,m.forwardRef)((function({icon:t,size:a=24,...e},s){return(0,m.cloneElement)(t,{width:a,height:a,...e,ref:s})})),u=window.wp.primitives,p=(0,n.jsx)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(u.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),_=(0,n.jsx)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(u.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),v=(0,n.jsx)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(u.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"})}),f=(0,n.jsx)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(u.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),x=(0,n.jsx)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(u.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),w=(0,n.jsx)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(u.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),k=window.wp.data,g=["snow-monkey-blocks/tab-panel"],y=i.uK,j=i.xY,N=[{attributes:{...y,tabs:{type:"string",default:"[]"}},supports:{...j},migrate(t){const{tabs:a}=t;return{...t,tabs:JSON.parse(a)}},save({attributes:t,className:a}){const{tabs:e,matchHeight:s,tabsJustification:o,tabsId:l,orientation:i}=t,r=JSON.parse(e),d="vertical"===i||"horizontal"===i&&"true"===s,m=c()("smb-tabs",a);return(0,n.jsxs)("div",{...b.useBlockProps.save({className:m}),"data-tabs-id":l,"data-orientation":i,"data-match-height":d?"true":s,"data-tabs-justification":"horizontal"===i?o:void 0,children:[0<r.length&&(0,n.jsx)("div",{className:"smb-tabs__tabs",role:"tablist",children:r.map(((t,a)=>{const e=(0,b.__experimentalGetColorClassesAndStyles)(t);return(0,n.jsx)("div",{className:"smb-tabs__tab-wrapper",id:`smb-tab-for-${t?.anchor}`,children:(0,n.jsx)(b.RichText.Content,{tagName:"button",value:t.title,className:c()("smb-tabs__tab",e?.className),style:e?.style,role:"tab","aria-controls":t?.anchor,"aria-selected":0===a?"true":"false"})},a)}))}),(0,n.jsx)("div",{...b.useInnerBlocksProps.save({className:"smb-tabs__body"})}),d&&(0,n.jsx)("style",{children:r.map(((t,a)=>`[data-tabs-id="${l}"] > .smb-tabs__body > .smb-tab-panel:nth-child(${a+1}) {left: ${-100*a}%}`))})]})}},{attributes:{...y,tabs:{type:"string",default:"[]"}},supports:{...j},save({attributes:t,className:a}){const{tabs:e,matchHeight:s,tabsJustification:o,tabsId:l,orientation:i}=t,r=JSON.parse(e),d="vertical"===i||"horizontal"===i&&"true"===s,m=c()("smb-tabs",a);return(0,n.jsxs)("div",{...b.useBlockProps.save({className:m}),"data-tabs-id":l,"data-orientation":i,"data-match-height":d?"true":s,"data-tabs-justification":"horizontal"===i?o:void 0,children:[0<r.length&&(0,n.jsx)("div",{className:"smb-tabs__tabs",role:"tablist",children:r.map(((t,a)=>{const e=(0,b.__experimentalGetColorClassesAndStyles)(t);return(0,n.jsx)("div",{className:"smb-tabs__tab-wrapper",children:(0,n.jsx)(b.RichText.Content,{tagName:"button",value:t.title,className:c()("smb-tabs__tab",e?.className),style:e?.style,role:"tab","aria-controls":t.tabPanelId,"aria-selected":0===a?"true":"false"})},a)}))}),(0,n.jsx)("div",{...b.useInnerBlocksProps.save({className:"smb-tabs__body"})}),d&&(0,n.jsx)("style",{children:r.map(((t,a)=>`[data-tabs-id="${l}"] > .smb-tabs__body > .smb-tab-panel:nth-child(${a+1}) {left: ${-100*a}%}`))})]})}},{attributes:{...y,tabs:{type:"string",default:"[]"}},supports:{...j},save({attributes:t,className:a}){const{tabs:e,matchHeight:s,tabsJustification:o,tabsId:l,orientation:i}=t,r=JSON.parse(e),d="vertical"===i||"horizontal"===i&&"true"===s,m=c()("smb-tabs",a);return(0,n.jsxs)("div",{...b.useBlockProps.save({className:m}),"data-tabs-id":l,"data-orientation":i,"data-match-height":d?"true":s,"data-tabs-justification":"horizontal"===i?o:void 0,children:[0<r.length&&(0,n.jsx)("div",{className:"smb-tabs__tabs",children:r.map(((t,a)=>(0,n.jsx)("div",{className:"smb-tabs__tab-wrapper",children:(0,n.jsx)(b.RichText.Content,{tagName:"button",value:t.title,className:"smb-tabs__tab",role:"tab","aria-controls":t.tabPanelId,"aria-selected":0===a?"true":"false"})},a)))}),(0,n.jsx)("div",{...b.useInnerBlocksProps.save({className:"smb-tabs__body"})}),d&&(0,n.jsx)("style",{children:r.map(((t,a)=>`[data-tabs-id="${l}"] > .smb-tabs__body > .smb-tab-panel:nth-child(${a+1}) {left: ${-100*a}%}`))})]})}}];(0,s.registerBlockType)(i.UU,{icon:{foreground:"#cd162c",src:l},edit:function({attributes:t,setAttributes:a,className:e,clientId:l}){const{tabs:r,matchHeight:u,tabsJustification:y,tabsId:j,orientation:N,templateLock:B}=t,{removeBlocks:P,insertBlocks:S,moveBlocksUp:I,moveBlocksDown:C,updateBlockAttributes:H,selectBlock:z}=(0,k.useDispatch)("core/block-editor"),{getBlockOrder:$,getBlock:O}=(0,k.useSelect)("core/block-editor"),[V,J]=(0,m.useState)(void 0),[L,T]=(0,m.useState)(void 0);(0,m.useEffect)((()=>{if(j!==l&&a({tabsId:l}),1>r.length)return;J(r[0]?.tabPanelId),T(r[0]?.anchor);const t=$(l);if(!L){const a=O(t[0]);J(a.attributes.tabPanelId),T(a.attributes.anchor)}t.forEach(((t,a)=>{const e=O(t);e.attributes.tabPanelId===V&&T(e.attributes.anchor),H(t,{ariaHidden:0===a?"false":"true"})}))}),[l,r]);const M="vertical"===N||"horizontal"===N&&"true"===u,A=c()("smb-tabs",e),D=(0,b.useBlockProps)({className:A}),G=(0,b.useInnerBlocksProps)({className:"smb-tabs__body"},{allowedBlocks:g,templateLock:B,renderAppender:!1});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.InspectorControls,{children:(0,n.jsxs)(d.__experimentalToolsPanel,{label:(0,o.__)("Block settings","snow-monkey-blocks"),children:[(0,n.jsx)(d.__experimentalToolsPanelItem,{hasValue:()=>N!==i.uK.orientation.default,isShownByDefault:!0,label:(0,o.__)("Tabs orientation","snow-monkey-blocks"),onDeselect:()=>a({orientation:i.uK.orientation.default}),children:(0,n.jsx)(d.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Tabs orientation","snow-monkey-blocks"),value:N,onChange:t=>a({orientation:t}),options:[{value:"horizontal",label:(0,o.__)("Horizontal","snow-monkey-blocks")},{value:"vertical",label:(0,o.__)("Vertical","snow-monkey-blocks")}]})}),"horizontal"===N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.__experimentalToolsPanelItem,{hasValue:()=>u!==i.uK.matchHeight.default,isShownByDefault:!0,label:(0,o.__)("Align the height of each tab panels","snow-monkey-blocks"),onDeselect:()=>a({matchHeight:i.uK.matchHeight.default}),children:(0,n.jsx)(d.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Align the height of each tab panels","snow-monkey-blocks"),checked:"true"===u,onChange:t=>a({matchHeight:t?"true":"false"})})}),(0,n.jsx)(d.__experimentalToolsPanelItem,{hasValue:()=>y!==i.uK.tabsJustification.default,isShownByDefault:!0,label:(0,o.__)("Tabs justification","snow-monkey-blocks"),onDeselect:()=>a({tabsJustification:i.uK.tabsJustification.default}),children:(0,n.jsx)(d.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Tabs justification","snow-monkey-blocks"),value:y,onChange:t=>a({tabsJustification:t}),options:[{label:(0,o.__)("Left","snow-monkey-blocks"),value:"flex-start"},{label:(0,o.__)("Center","snow-monkey-blocks"),value:"center"},{label:(0,o.__)("Right","snow-monkey-blocks"),value:"flex-end"},{label:(0,o.__)("Stretch","snow-monkey-blocks"),value:"stretch"}]})})]})]})}),(0,n.jsxs)("div",{...D,"data-tabs-id":j,"data-orientation":N,"data-match-height":M?"true":u,"data-tabs-justification":"horizontal"===N?y:void 0,children:[(0,n.jsxs)("div",{className:"smb-tabs__tabs","data-has-tabs":1<r.length?"true":"false",children:[r.map(((t,e)=>{const s=$(l)[e],i=(0,b.__experimentalGetColorClassesAndStyles)(t);return(0,n.jsxs)("div",{className:"smb-tabs__tab-wrapper","aria-selected":L===t?.anchor?"true":"false",children:[0<e&&(0,n.jsx)("button",{className:"smb-tabs__up-tab",onClick:()=>{I(s?[s]:[],l);const t=r[e];r.splice(e,1),r.splice(e-1,0,t),a({tabs:[...r]}),J(r[e-1]?.tabPanelId),T(r[e-1]?.anchor)},"aria-label":"horizontal"===N?(0,o.__)("Move to left","snow-monkey-blocks"):(0,o.__)("Move to up","snow-monkey-blocks"),children:(0,n.jsx)(h,{icon:"horizontal"===N?p:_})}),1<r.length&&(0,n.jsx)("button",{className:"smb-tabs__remove-tab",onClick:()=>{P(s?[s]:[],!1),r.splice(e,1),a({tabs:[...r]}),J(r[0]?.tabPanelId),T(r[0]?.anchor)},"aria-label":(0,o.__)("Remove this tab","snow-monkey-blocks"),children:(0,n.jsx)(h,{icon:v})}),r.length-1>e&&(0,n.jsx)("button",{className:"smb-tabs__down-tab",onClick:()=>{C(s?[s]:[],l);const t=r[e];r.splice(e,1),r.splice(e+1,0,t),a({tabs:[...r]}),J(r[e+1]?.tabPanelId),T(r[e+1]?.anchor)},"aria-label":"horizontal"===N?(0,o.__)("Move to right","snow-monkey-blocks"):(0,o.__)("Move to down","snow-monkey-blocks"),children:(0,n.jsx)(h,{icon:"horizontal"===N?f:x})}),(0,n.jsx)("button",{className:c()("smb-tabs__tab",i?.className),style:i?.style,role:"tab","aria-controls":t?.anchor,"aria-selected":L===t?.anchor?"true":"false",onClick:a=>{J(t?.tabPanelId),T(t?.anchor),a.target.classList.contains("smb-tabs__tab")&&0!==a.clientX&&0!==a.clientY&&0!==a.pageX&&0!==a.pageY&&z(s)},children:(0,n.jsx)(b.RichText,{value:t.title,onChange:t=>{r[e].title=t,a({tabs:[...r]})},placeholder:(0,o.__)("Tab","snow-monkey-blocks")})})]},`${l}-${e}`)})),(0,n.jsx)("div",{className:"smb-tabs__tab-wrapper",children:(0,n.jsx)("button",{className:"smb-tabs__tab smb-tabs__add-tab",onClick:()=>{const t=(0,s.createBlock)("snow-monkey-blocks/tab-panel"),e=`block-${t.clientId}`;t.attributes.tabPanelId=e,t.attributes.anchor=e,S(t,r.length,l,!1),r.push({tabPanelId:e,anchor:e}),a({tabs:r}),J(e),T(e)},children:(0,n.jsx)(h,{icon:w})})})]}),(0,n.jsx)("div",{...G}),!!L&&!M&&(0,n.jsx)("style",{children:`[data-tabs-id="${j}"] > .smb-tabs__body > .smb-tab-panel:not(#${L}) {display: none !important}`}),!!L&&M&&(0,n.jsxs)("style",{children:[r.map(((t,a)=>`[data-tabs-id="${j}"] > .smb-tabs__body > .smb-tab-panel:nth-child(${a+1}) {left: ${-100*a}%}`)),`[data-tabs-id="${j}"] > .smb-tabs__body > .smb-tab-panel:not(#${L}) {visibility: hidden !important}`]})]})]})},save:function({attributes:t,className:a}){const{tabs:e,matchHeight:s,tabsJustification:o,tabsId:l,orientation:i}=t,r="vertical"===i||"horizontal"===i&&"true"===s,d=c()("smb-tabs",a);return(0,n.jsxs)("div",{...b.useBlockProps.save({className:d}),"data-tabs-id":l,"data-orientation":i,"data-match-height":r?"true":s,"data-tabs-justification":"horizontal"===i?o:void 0,children:[0<e.length&&(0,n.jsx)("div",{className:"smb-tabs__tabs",role:"tablist",children:e.map(((t,a)=>{const e=(0,b.__experimentalGetColorClassesAndStyles)(t);return(0,n.jsx)("div",{className:"smb-tabs__tab-wrapper",id:`smb-tab-for-${t?.anchor}`,children:(0,n.jsx)(b.RichText.Content,{tagName:"button",value:t.title,className:c()("smb-tabs__tab",e?.className),style:e?.style,role:"tab","aria-controls":t?.anchor,"aria-selected":0===a?"true":"false"})},a)}))}),(0,n.jsx)("div",{...b.useInnerBlocksProps.save({className:"smb-tabs__body"})}),r&&(0,n.jsx)("style",{children:e.map(((t,a)=>`[data-tabs-id="${l}"] > .smb-tabs__body > .smb-tab-panel:nth-child(${a+1}) {left: ${-100*a}%}`))})]})},deprecated:N,styles:[{name:"default",label:(0,o.__)("Default","snow-monkey-blocks"),isDefault:!0},{name:"simple",label:(0,o.__)("Simple","snow-monkey-blocks")},{name:"line",label:(0,o.__)("Line","snow-monkey-blocks")}]})},6942:(t,a)=>{var e;!function(){"use strict";var s={}.hasOwnProperty;function o(){for(var t="",a=0;a<arguments.length;a++){var e=arguments[a];e&&(t=l(t,n(e)))}return t}function n(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var a="";for(var e in t)s.call(t,e)&&t[e]&&(a=l(a,e));return a}function l(t,a){return a?t?t+" "+a:t+a:t}t.exports?(o.default=o,t.exports=o):void 0===(e=function(){return o}.apply(a,[]))||(t.exports=e)}()}},e={};function s(t){var o=e[t];if(void 0!==o)return o.exports;var n=e[t]={exports:{}};return a[t](n,n.exports,s),n.exports}s.m=a,t=[],s.O=(a,e,o,n)=>{if(!e){var l=1/0;for(b=0;b<t.length;b++){e=t[b][0],o=t[b][1],n=t[b][2];for(var i=!0,r=0;r<e.length;r++)(!1&n||l>=n)&&Object.keys(s.O).every((t=>s.O[t](e[r])))?e.splice(r--,1):(i=!1,n<l&&(l=n));if(i){t.splice(b--,1);var c=o();void 0!==c&&(a=c)}}return a}n=n||0;for(var b=t.length;b>0&&t[b-1][2]>n;b--)t[b]=t[b-1];t[b]=[e,o,n]},s.n=t=>{var a=t&&t.__esModule?()=>t.default:()=>t;return s.d(a,{a}),a},s.d=(t,a)=>{for(var e in a)s.o(a,e)&&!s.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:a[e]})},s.o=(t,a)=>Object.prototype.hasOwnProperty.call(t,a),(()=>{var t={1881:0,3293:0};s.O.j=a=>0===t[a];var a=(a,e)=>{var o,n,l=e[0],i=e[1],r=e[2],c=0;if(l.some((a=>0!==t[a]))){for(o in i)s.o(i,o)&&(s.m[o]=i[o]);if(r)var b=r(s)}for(a&&a(e);c<l.length;c++)n=l[c],s.o(t,n)&&t[n]&&t[n][0](),t[n]=0;return s.O(b)},e=self.webpackChunk=self.webpackChunk||[];e.forEach(a.bind(null,0)),e.push=a.bind(null,e.push.bind(e))})();var o=s.O(void 0,[3293],(()=>s(7931)));o=s.O(o)})();
     1(()=>{var t,a={7931:(t,a,e)=>{"use strict";const s=window.wp.blocks,o=window.wp.i18n,n=window.ReactJSXRuntime,l=(0,n.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{cx:"6.5",cy:"8",r:"1"}),(0,n.jsx)("path",{d:"M20,8H13.75a.25.25,0,0,1-.25-.25V5.5a1,1,0,0,0-1-1H4a1,1,0,0,0-1,1v13a1,1,0,0,0,1,1H20a1,1,0,0,0,1-1V9A1,1,0,0,0,20,8Zm0,10a.54.54,0,0,1-.53.54H4.53A.54.54,0,0,1,4,18V6a.54.54,0,0,1,.53-.54H12A.54.54,0,0,1,12.5,6V8.25a.54.54,0,0,0,.53.54h6.44a.54.54,0,0,1,.53.54Z"})]}),i=JSON.parse('{"UU":"snow-monkey-blocks/tabs","uK":{"tabs":{"type":"array","default":[]},"matchHeight":{"type":"string","source":"attribute","selector":".smb-tabs","attribute":"data-match-height","default":"false"},"tabsJustification":{"type":"string","source":"attribute","selector":".smb-tabs","attribute":"data-tabs-justification","default":"flex-start"},"tabsId":{"type":"string","source":"attribute","selector":".smb-tabs","attribute":"data-tabs-id","default":""},"orientation":{"type":"string","source":"attribute","selector":".smb-tabs","attribute":"data-orientation","default":"horizontal"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"xY":{"html":false,"spacing":{"margin":true},"snowmonkeyeditor":{"blockPresets":{"ignore":["tabs","tabsId"]}}}}');var r=e(6942),c=e.n(r);const b=window.wp.blockEditor,d=window.wp.components,m=window.wp.element,h=(0,m.forwardRef)((function({icon:t,size:a=24,...e},s){return(0,m.cloneElement)(t,{width:a,height:a,...e,ref:s})})),u=window.wp.primitives,p=(0,n.jsx)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(u.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),_=(0,n.jsx)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(u.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),v=(0,n.jsx)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(u.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"})}),f=(0,n.jsx)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(u.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),x=(0,n.jsx)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(u.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),w=(0,n.jsx)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(u.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),g=window.wp.data,k=["snow-monkey-blocks/tab-panel"],y=i.uK,j=i.xY,N=[{attributes:{...y,tabs:{type:"string",default:"[]"}},supports:{...j},migrate(t){const{tabs:a}=t;return{...t,tabs:JSON.parse(a)}},save({attributes:t,className:a}){const{tabs:e,matchHeight:s,tabsJustification:o,tabsId:l,orientation:i}=t,r=JSON.parse(e),d="vertical"===i||"horizontal"===i&&"true"===s,m=c()("smb-tabs",a);return(0,n.jsxs)("div",{...b.useBlockProps.save({className:m}),"data-tabs-id":l,"data-orientation":i,"data-match-height":d?"true":s,"data-tabs-justification":"horizontal"===i?o:void 0,children:[0<r.length&&(0,n.jsx)("div",{className:"smb-tabs__tabs",role:"tablist",children:r.map(((t,a)=>{const e=(0,b.__experimentalGetColorClassesAndStyles)(t);return(0,n.jsx)("div",{className:"smb-tabs__tab-wrapper",id:`smb-tab-for-${t?.anchor}`,children:(0,n.jsx)(b.RichText.Content,{tagName:"button",value:t.title,className:c()("smb-tabs__tab",e?.className),style:e?.style,role:"tab","aria-controls":t?.anchor,"aria-selected":0===a?"true":"false"})},a)}))}),(0,n.jsx)("div",{...b.useInnerBlocksProps.save({className:"smb-tabs__body"})}),d&&(0,n.jsx)("style",{children:r.map(((t,a)=>`[data-tabs-id="${l}"] > .smb-tabs__body > .smb-tab-panel:nth-child(${a+1}) {left: ${-100*a}%}`))})]})}},{attributes:{...y,tabs:{type:"string",default:"[]"}},supports:{...j},migrate(t){const{tabs:a}=t;return{...t,tabs:JSON.parse(a)}},save({attributes:t,className:a}){const{tabs:e,matchHeight:s,tabsJustification:o,tabsId:l,orientation:i}=t,r=JSON.parse(e),d="vertical"===i||"horizontal"===i&&"true"===s,m=c()("smb-tabs",a);return(0,n.jsxs)("div",{...b.useBlockProps.save({className:m}),"data-tabs-id":l,"data-orientation":i,"data-match-height":d?"true":s,"data-tabs-justification":"horizontal"===i?o:void 0,children:[0<r.length&&(0,n.jsx)("div",{className:"smb-tabs__tabs",role:"tablist",children:r.map(((t,a)=>{const e=(0,b.__experimentalGetColorClassesAndStyles)(t);return(0,n.jsx)("div",{className:"smb-tabs__tab-wrapper",children:(0,n.jsx)(b.RichText.Content,{tagName:"button",value:t.title,className:c()("smb-tabs__tab",e?.className),style:e?.style,role:"tab","aria-controls":t.tabPanelId,"aria-selected":0===a?"true":"false"})},a)}))}),(0,n.jsx)("div",{...b.useInnerBlocksProps.save({className:"smb-tabs__body"})}),d&&(0,n.jsx)("style",{children:r.map(((t,a)=>`[data-tabs-id="${l}"] > .smb-tabs__body > .smb-tab-panel:nth-child(${a+1}) {left: ${-100*a}%}`))})]})}},{attributes:{...y,tabs:{type:"string",default:"[]"}},supports:{...j},migrate(t){const{tabs:a}=t;return{...t,tabs:JSON.parse(a)}},save({attributes:t,className:a}){const{tabs:e,matchHeight:s,tabsJustification:o,tabsId:l,orientation:i}=t,r=JSON.parse(e),d="vertical"===i||"horizontal"===i&&"true"===s,m=c()("smb-tabs",a);return(0,n.jsxs)("div",{...b.useBlockProps.save({className:m}),"data-tabs-id":l,"data-orientation":i,"data-match-height":d?"true":s,"data-tabs-justification":"horizontal"===i?o:void 0,children:[0<r.length&&(0,n.jsx)("div",{className:"smb-tabs__tabs",children:r.map(((t,a)=>(0,n.jsx)("div",{className:"smb-tabs__tab-wrapper",children:(0,n.jsx)(b.RichText.Content,{tagName:"button",value:t.title,className:"smb-tabs__tab",role:"tab","aria-controls":t.tabPanelId,"aria-selected":0===a?"true":"false"})},a)))}),(0,n.jsx)("div",{...b.useInnerBlocksProps.save({className:"smb-tabs__body"})}),d&&(0,n.jsx)("style",{children:r.map(((t,a)=>`[data-tabs-id="${l}"] > .smb-tabs__body > .smb-tab-panel:nth-child(${a+1}) {left: ${-100*a}%}`))})]})}}];(0,s.registerBlockType)(i.UU,{icon:{foreground:"#cd162c",src:l},edit:function({attributes:t,setAttributes:a,className:e,clientId:l}){const{tabs:r,matchHeight:u,tabsJustification:y,tabsId:j,orientation:N,templateLock:B}=t,{removeBlocks:P,insertBlocks:S,moveBlocksUp:I,moveBlocksDown:C,updateBlockAttributes:H,selectBlock:z}=(0,g.useDispatch)("core/block-editor"),{getBlockOrder:$,getBlock:O}=(0,g.useSelect)("core/block-editor"),[V,J]=(0,m.useState)(void 0),[L,T]=(0,m.useState)(void 0);(0,m.useEffect)((()=>{if(j!==l&&a({tabsId:l}),1>r.length)return;J(r[0]?.tabPanelId),T(r[0]?.anchor);const t=$(l);if(!L){const a=O(t[0]);J(a.attributes.tabPanelId),T(a.attributes.anchor)}t.forEach(((t,a)=>{const e=O(t);e.attributes.tabPanelId===V&&T(e.attributes.anchor),H(t,{ariaHidden:0===a?"false":"true"})}))}),[l,r]);const M="vertical"===N||"horizontal"===N&&"true"===u,A=c()("smb-tabs",e),D=(0,b.useBlockProps)({className:A}),G=(0,b.useInnerBlocksProps)({className:"smb-tabs__body"},{allowedBlocks:k,templateLock:B,renderAppender:!1});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.InspectorControls,{children:(0,n.jsxs)(d.__experimentalToolsPanel,{label:(0,o.__)("Block settings","snow-monkey-blocks"),children:[(0,n.jsx)(d.__experimentalToolsPanelItem,{hasValue:()=>N!==i.uK.orientation.default,isShownByDefault:!0,label:(0,o.__)("Tabs orientation","snow-monkey-blocks"),onDeselect:()=>a({orientation:i.uK.orientation.default}),children:(0,n.jsx)(d.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Tabs orientation","snow-monkey-blocks"),value:N,onChange:t=>a({orientation:t}),options:[{value:"horizontal",label:(0,o.__)("Horizontal","snow-monkey-blocks")},{value:"vertical",label:(0,o.__)("Vertical","snow-monkey-blocks")}]})}),"horizontal"===N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.__experimentalToolsPanelItem,{hasValue:()=>u!==i.uK.matchHeight.default,isShownByDefault:!0,label:(0,o.__)("Align the height of each tab panels","snow-monkey-blocks"),onDeselect:()=>a({matchHeight:i.uK.matchHeight.default}),children:(0,n.jsx)(d.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Align the height of each tab panels","snow-monkey-blocks"),checked:"true"===u,onChange:t=>a({matchHeight:t?"true":"false"})})}),(0,n.jsx)(d.__experimentalToolsPanelItem,{hasValue:()=>y!==i.uK.tabsJustification.default,isShownByDefault:!0,label:(0,o.__)("Tabs justification","snow-monkey-blocks"),onDeselect:()=>a({tabsJustification:i.uK.tabsJustification.default}),children:(0,n.jsx)(d.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Tabs justification","snow-monkey-blocks"),value:y,onChange:t=>a({tabsJustification:t}),options:[{label:(0,o.__)("Left","snow-monkey-blocks"),value:"flex-start"},{label:(0,o.__)("Center","snow-monkey-blocks"),value:"center"},{label:(0,o.__)("Right","snow-monkey-blocks"),value:"flex-end"},{label:(0,o.__)("Stretch","snow-monkey-blocks"),value:"stretch"}]})})]})]})}),(0,n.jsxs)("div",{...D,"data-tabs-id":j,"data-orientation":N,"data-match-height":M?"true":u,"data-tabs-justification":"horizontal"===N?y:void 0,children:[(0,n.jsxs)("div",{className:"smb-tabs__tabs","data-has-tabs":1<r.length?"true":"false",children:[r.map(((t,e)=>{const s=$(l)[e],i=(0,b.__experimentalGetColorClassesAndStyles)(t);return(0,n.jsxs)("div",{className:"smb-tabs__tab-wrapper","aria-selected":L===t?.anchor?"true":"false",children:[0<e&&(0,n.jsx)("button",{className:"smb-tabs__up-tab",onClick:()=>{I(s?[s]:[],l);const t=r[e];r.splice(e,1),r.splice(e-1,0,t),a({tabs:[...r]}),J(r[e-1]?.tabPanelId),T(r[e-1]?.anchor)},"aria-label":"horizontal"===N?(0,o.__)("Move to left","snow-monkey-blocks"):(0,o.__)("Move to up","snow-monkey-blocks"),children:(0,n.jsx)(h,{icon:"horizontal"===N?p:_})}),1<r.length&&(0,n.jsx)("button",{className:"smb-tabs__remove-tab",onClick:()=>{P(s?[s]:[],!1),r.splice(e,1),a({tabs:[...r]}),J(r[0]?.tabPanelId),T(r[0]?.anchor)},"aria-label":(0,o.__)("Remove this tab","snow-monkey-blocks"),children:(0,n.jsx)(h,{icon:v})}),r.length-1>e&&(0,n.jsx)("button",{className:"smb-tabs__down-tab",onClick:()=>{C(s?[s]:[],l);const t=r[e];r.splice(e,1),r.splice(e+1,0,t),a({tabs:[...r]}),J(r[e+1]?.tabPanelId),T(r[e+1]?.anchor)},"aria-label":"horizontal"===N?(0,o.__)("Move to right","snow-monkey-blocks"):(0,o.__)("Move to down","snow-monkey-blocks"),children:(0,n.jsx)(h,{icon:"horizontal"===N?f:x})}),(0,n.jsx)("button",{className:c()("smb-tabs__tab",i?.className),style:i?.style,role:"tab","aria-controls":t?.anchor,"aria-selected":L===t?.anchor?"true":"false",onClick:a=>{J(t?.tabPanelId),T(t?.anchor),a.target.classList.contains("smb-tabs__tab")&&0!==a.clientX&&0!==a.clientY&&0!==a.pageX&&0!==a.pageY&&z(s)},children:(0,n.jsx)(b.RichText,{value:t.title,onChange:t=>{r[e].title=t,a({tabs:[...r]})},placeholder:(0,o.__)("Tab","snow-monkey-blocks")})})]},`${l}-${e}`)})),(0,n.jsx)("div",{className:"smb-tabs__tab-wrapper",children:(0,n.jsx)("button",{className:"smb-tabs__tab smb-tabs__add-tab",onClick:()=>{const t=(0,s.createBlock)("snow-monkey-blocks/tab-panel"),e=`block-${t.clientId}`;t.attributes.tabPanelId=e,t.attributes.anchor=e,S(t,r.length,l,!1),r.push({tabPanelId:e,anchor:e}),a({tabs:r}),J(e),T(e)},children:(0,n.jsx)(h,{icon:w})})})]}),(0,n.jsx)("div",{...G}),!!L&&!M&&(0,n.jsx)("style",{children:`[data-tabs-id="${j}"] > .smb-tabs__body > .smb-tab-panel:not(#${L}) {display: none !important}`}),!!L&&M&&(0,n.jsxs)("style",{children:[r.map(((t,a)=>`[data-tabs-id="${j}"] > .smb-tabs__body > .smb-tab-panel:nth-child(${a+1}) {left: ${-100*a}%}`)),`[data-tabs-id="${j}"] > .smb-tabs__body > .smb-tab-panel:not(#${L}) {visibility: hidden !important}`]})]})]})},save:function({attributes:t,className:a}){const{tabs:e,matchHeight:s,tabsJustification:o,tabsId:l,orientation:i}=t,r="vertical"===i||"horizontal"===i&&"true"===s,d=c()("smb-tabs",a);return(0,n.jsxs)("div",{...b.useBlockProps.save({className:d}),"data-tabs-id":l,"data-orientation":i,"data-match-height":r?"true":s,"data-tabs-justification":"horizontal"===i?o:void 0,children:[0<e.length&&(0,n.jsx)("div",{className:"smb-tabs__tabs",role:"tablist",children:e.map(((t,a)=>{const e=(0,b.__experimentalGetColorClassesAndStyles)(t);return(0,n.jsx)("div",{className:"smb-tabs__tab-wrapper",id:`smb-tab-for-${t?.anchor}`,children:(0,n.jsx)(b.RichText.Content,{tagName:"button",value:t.title,className:c()("smb-tabs__tab",e?.className),style:e?.style,role:"tab","aria-controls":t?.anchor,"aria-selected":0===a?"true":"false"})},a)}))}),(0,n.jsx)("div",{...b.useInnerBlocksProps.save({className:"smb-tabs__body"})}),r&&(0,n.jsx)("style",{children:e.map(((t,a)=>`[data-tabs-id="${l}"] > .smb-tabs__body > .smb-tab-panel:nth-child(${a+1}) {left: ${-100*a}%}`))})]})},deprecated:N,styles:[{name:"default",label:(0,o.__)("Default","snow-monkey-blocks"),isDefault:!0},{name:"simple",label:(0,o.__)("Simple","snow-monkey-blocks")},{name:"line",label:(0,o.__)("Line","snow-monkey-blocks")}]})},6942:(t,a)=>{var e;!function(){"use strict";var s={}.hasOwnProperty;function o(){for(var t="",a=0;a<arguments.length;a++){var e=arguments[a];e&&(t=l(t,n(e)))}return t}function n(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var a="";for(var e in t)s.call(t,e)&&t[e]&&(a=l(a,e));return a}function l(t,a){return a?t?t+" "+a:t+a:t}t.exports?(o.default=o,t.exports=o):void 0===(e=function(){return o}.apply(a,[]))||(t.exports=e)}()}},e={};function s(t){var o=e[t];if(void 0!==o)return o.exports;var n=e[t]={exports:{}};return a[t](n,n.exports,s),n.exports}s.m=a,t=[],s.O=(a,e,o,n)=>{if(!e){var l=1/0;for(b=0;b<t.length;b++){e=t[b][0],o=t[b][1],n=t[b][2];for(var i=!0,r=0;r<e.length;r++)(!1&n||l>=n)&&Object.keys(s.O).every((t=>s.O[t](e[r])))?e.splice(r--,1):(i=!1,n<l&&(l=n));if(i){t.splice(b--,1);var c=o();void 0!==c&&(a=c)}}return a}n=n||0;for(var b=t.length;b>0&&t[b-1][2]>n;b--)t[b]=t[b-1];t[b]=[e,o,n]},s.n=t=>{var a=t&&t.__esModule?()=>t.default:()=>t;return s.d(a,{a}),a},s.d=(t,a)=>{for(var e in a)s.o(a,e)&&!s.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:a[e]})},s.o=(t,a)=>Object.prototype.hasOwnProperty.call(t,a),(()=>{var t={1881:0,3293:0};s.O.j=a=>0===t[a];var a=(a,e)=>{var o,n,l=e[0],i=e[1],r=e[2],c=0;if(l.some((a=>0!==t[a]))){for(o in i)s.o(i,o)&&(s.m[o]=i[o]);if(r)var b=r(s)}for(a&&a(e);c<l.length;c++)n=l[c],s.o(t,n)&&t[n]&&t[n][0](),t[n]=0;return s.O(b)},e=self.webpackChunk=self.webpackChunk||[];e.forEach(a.bind(null,0)),e.push=a.bind(null,e.push.bind(e))})();var o=s.O(void 0,[3293],(()=>s(7931)));o=s.O(o)})();
  • snow-monkey-blocks/trunk/readme.txt

    r3226624 r3227770  
    33Donate link: https://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
    44Tags: gutenberg, block, blocks, editor, gutenberg blocks
    5 Stable tag: 22.3.3
     5Stable tag: 22.3.4
    66Requires at least: 6.7
    77Tested up to: 6.7
  • snow-monkey-blocks/trunk/snow-monkey-blocks.php

    r3226624 r3227770  
    22/**
    33 * Plugin name: Snow Monkey Blocks
    4  * Version: 22.3.3
     4 * Version: 22.3.4
    55 * Description: Gutenberg blocks collection made by MonkeyWrench.
    66 * Author: inc2734
  • snow-monkey-blocks/trunk/src/blocks/spider-contents-slider/deprecated.js

    r3226624 r3227770  
    2222        supports: {
    2323            ...blockSupports,
     24        },
     25
     26        migrate( attributes ) {
     27            const { sliderClientIds } = attributes;
     28
     29            return {
     30                ...attributes,
     31                sliderClientIds: JSON.parse( sliderClientIds ),
     32            };
    2433        },
    2534
     
    255264        },
    256265
     266        migrate( attributes ) {
     267            const { sliderClientIds } = attributes;
     268
     269            return {
     270                ...attributes,
     271                sliderClientIds: JSON.parse( sliderClientIds ),
     272            };
     273        },
     274
    257275        save( { attributes, className } ) {
    258276            const {
     
    462480        },
    463481
     482        migrate( attributes ) {
     483            const { sliderClientIds } = attributes;
     484
     485            return {
     486                ...attributes,
     487                sliderClientIds: JSON.parse( sliderClientIds ),
     488            };
     489        },
     490
    464491        save( { attributes, className } ) {
    465492            const {
     
    641668        },
    642669
     670        migrate( attributes ) {
     671            const { sliderClientIds } = attributes;
     672
     673            return {
     674                ...attributes,
     675                sliderClientIds: JSON.parse( sliderClientIds ),
     676            };
     677        },
     678
    643679        save( { attributes, className } ) {
    644680            const {
     
    818854        },
    819855
     856        migrate( attributes ) {
     857            const { sliderClientIds } = attributes;
     858
     859            return {
     860                ...attributes,
     861                sliderClientIds: JSON.parse( sliderClientIds ),
     862            };
     863        },
     864
    820865        save( { attributes, className } ) {
    821866            const {
     
    9581003        },
    9591004
     1005        migrate( attributes ) {
     1006            const { sliderClientIds } = attributes;
     1007
     1008            return {
     1009                ...attributes,
     1010                sliderClientIds: JSON.parse( sliderClientIds ),
     1011            };
     1012        },
     1013
    9601014        save( { attributes, className } ) {
    9611015            const {
     
    10931147        },
    10941148
     1149        migrate( attributes ) {
     1150            const { sliderClientIds } = attributes;
     1151
     1152            return {
     1153                ...attributes,
     1154                sliderClientIds: JSON.parse( sliderClientIds ),
     1155            };
     1156        },
     1157
    10951158        save( { attributes, className } ) {
    10961159            const {
     
    12201283        },
    12211284
     1285        migrate( attributes ) {
     1286            const { sliderClientIds } = attributes;
     1287
     1288            return {
     1289                ...attributes,
     1290                sliderClientIds: JSON.parse( sliderClientIds ),
     1291            };
     1292        },
     1293
    12221294        save( { attributes, className } ) {
    12231295            const {
  • snow-monkey-blocks/trunk/src/blocks/tabs/deprecated.js

    r3226624 r3227770  
    130130        },
    131131
     132        migrate( attributes ) {
     133            const { tabs } = attributes;
     134
     135            return {
     136                ...attributes,
     137                tabs: JSON.parse( tabs ),
     138            };
     139        },
     140
    132141        save( { attributes, className } ) {
    133142            const {
     
    224233        },
    225234
     235        migrate( attributes ) {
     236            const { tabs } = attributes;
     237
     238            return {
     239                ...attributes,
     240                tabs: JSON.parse( tabs ),
     241            };
     242        },
     243
    226244        save( { attributes, className } ) {
    227245            const {
Note: See TracChangeset for help on using the changeset viewer.