Changeset 3196970
- Timestamp:
- 11/26/2024 12:10:19 AM (3 months ago)
- Location:
- snow-monkey-blocks/trunk
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
snow-monkey-blocks/trunk/changelog.txt
r3194215 r3196970 1 1 *** Changelog *** 2 3 = 22.2.5 = 4 * [Slider] Fixed a bug that caused "Autoplay Speed in seconds" to be reset. 5 * [Contents slider] Fixed a bug that caused "Autoplay Speed in seconds" to be reset. 6 * [Pickup slider] Fixed a bug that caused "Autoplay Speed in seconds" to be reset. 7 * [Recent posts] Fixed a bug that caused "Autoplay Speed in seconds" to be reset. 8 * [Taxonomy posts] Fixed a bug that caused "Autoplay Speed in seconds" to be reset. 9 * [RSS] Fixed a bug that caused "Autoplay Speed in seconds" to be reset. 10 * [Child pages] Fixed a bug that caused "Autoplay Speed in seconds" to be reset. 2 11 3 12 = 22.2.4 = -
snow-monkey-blocks/trunk/dist/blocks/child-pages/index.asset.php
r3194215 r3196970 1 <?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-server-side-render'), 'version' => ' 7a422ee5c8ef99e7021c');1 <?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-server-side-render'), 'version' => 'ae4b2be687e5ed092682'); -
snow-monkey-blocks/trunk/dist/blocks/child-pages/index.js
r3194215 r3196970 1 (()=>{"use strict";var e={n:l=>{var o=l&&l.__esModule?()=>l.default:()=>l;return e.d(o,{a:o}),o},d:(l,o)=>{for(var n in o)e.o(o,n)&&!e.o(l,n)&&Object.defineProperty(l,n,{enumerable:!0,get:o[n]})},o:(e,l)=>Object.prototype.hasOwnProperty.call(e,l)};const l=window.wp.blocks,o=JSON.parse('{"UU":"snow-monkey-blocks/child-pages","uK":{"$t":{"A":{}},"DD":{"A":""},"Zp":{"A":"rich-media"},"rQ":{"A":""},"ez":{"A":0},"$w":{"A":"h3"},"cn":{"A":"full"},"d$":{"A":false},"r$":{"A":true},"YP":{"A":0},"EP":{"A":false}}}'),n=window.ReactJSXRuntime,a=(0,n.jsxs)("svg",{viewBox:"0 0 24 20",children:[(0,n.jsx)("path",{d:"M6.5,1V6a1,1,0,0,0,1,1h9a1,1,0,0,0,1-1V1a1,1,0,0,0-1-1h-9A1,1,0,0,0,6.5,1ZM16,6H8a.5.5,0,0,1-.5-.5v-4A.5.5,0,0,1,8,1h8a.5.5,0,0,1,.5.5v4A.5.5,0,0,1,16,6Z"}),(0,n.jsx)("rect",{x:"11.5",y:"6",width:"1",height:"4.26"}),(0,n.jsx)("path",{d:"M0,14v5a1,1,0,0,0,1,1h9a1,1,0,0,0,1-1V14a1,1,0,0,0-1-1H1A1,1,0,0,0,0,14Zm9.5,5h-8a.5.5,0,0,1-.5-.5v-4a.5.5,0,0,1,.5-.5h8a.5.5,0,0,1,.5.5v4A.5.5,0,0,1,9.5,19Z"}),(0,n.jsx)("path",{d:"M13,14v5a1,1,0,0,0,1,1h9a1,1,0,0,0,1-1V14a1,1,0,0,0-1-1H14A1,1,0,0,0,13,14Zm9.5,5h-8a.5.5,0,0,1-.5-.5v-4a.5.5,0,0,1,.5-.5h8a.5.5,0,0,1,.5.5v4A.5.5,0,0,1,22.5,19Z"}),(0,n.jsx)("path",{d:"M5.75,13V10.76a.5.5,0,0,1,.5-.5h11.5a.5.5,0,0,1,.5.5V13h1V10.26a1,1,0,0,0-1-1H5.75a1,1,0,0,0-1,1V13Z"})]}),s=window.lodash,t=window.wp.components,i=window.wp.blockEditor,r=window.wp.data,c=window.wp.i18n,m=window.wp.serverSideRender;var u=e.n(m);function _({label:e,...l}){return(0,n.jsx)(t.BaseControl,{__nextHasNoMarginBottom:!0,label:e,id:"snow-monkey-blocks/component/search-post-control",children:(0,n.jsx)("div",{className:"smb-search-post-control",children:(0,n.jsx)(i.__experimentalLinkControl,{...l,forceIsEditingLink:!l?.value?.id})})})}const h=(e,l=0,o=null)=>(e=Number(e),(isNaN(e)||e<l)&&(e=l),null!==o&&e>o&&(e=o),e);(0,l.registerBlockType)(o.UU,{icon:{foreground:"#cd162c",src:a},edit:function({attributes:e,setAttributes:l,clientId:a}){const{title:m,layout:b,gap:d,smCols:p,itemTitleTagName:k,itemThumbnailSizeSlug:w,arrows:y,dots:g,interval:x,autoplayButton:v,parent:j}=e,A=(0,r.useSelect)((e=>{const{getSettings:l}=e("core/block-editor"),{imageSizes:o}=l();return o.map((e=>({value:e.slug,label:e.name})))}),[]), C=["h2","h3","h4"],D=[{label:"S",value:1},{label:"M",value:2},{label:"L",value:3}];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.InspectorControls,{children:(0,n.jsxs)(t.__experimentalToolsPanel,{label:(0,c.__)("Block settings","snow-monkey-blocks"),children:[(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>m!==o.uK.DD.A,isShownByDefault:!0,label:(0,c.__)("Title","snow-monkey-blocks"),onDeselect:()=>l({title:o.uK.DD.A}),children:(0,n.jsx)(t.TextControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Title","snow-monkey-blocks"),value:m,placeholder:(0,c.__)("Child pages","snow-monkey-blocks"),onChange:e=>l({title:e})})}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>b!==o.uK.Zp.A,isShownByDefault:!0,label:(0,c.__)("Layout","snow-monkey-blocks"),onDeselect:()=>l({layout:o.uK.Zp.A}),children:(0,n.jsx)(t.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Layout","snow-monkey-blocks"),value:b,onChange:e=>l({layout:e}),options:[{value:"rich-media",label:(0,c.__)("Rich media","snow-monkey-blocks")},{value:"simple",label:(0,c.__)("Simple","snow-monkey-blocks")},{value:"text",label:(0,c.__)("Text","snow-monkey-blocks")},{value:"text2",label:(0,c.__)("Text 2","snow-monkey-blocks")},{value:"panel",label:(0,c.__)("Panels","snow-monkey-blocks")},{value:"carousel",label:(0,c.sprintf)(1 (()=>{"use strict";var e={n:l=>{var o=l&&l.__esModule?()=>l.default:()=>l;return e.d(o,{a:o}),o},d:(l,o)=>{for(var n in o)e.o(o,n)&&!e.o(l,n)&&Object.defineProperty(l,n,{enumerable:!0,get:o[n]})},o:(e,l)=>Object.prototype.hasOwnProperty.call(e,l)};const l=window.wp.blocks,o=JSON.parse('{"UU":"snow-monkey-blocks/child-pages","uK":{"$t":{"A":{}},"DD":{"A":""},"Zp":{"A":"rich-media"},"rQ":{"A":""},"ez":{"A":0},"$w":{"A":"h3"},"cn":{"A":"full"},"d$":{"A":false},"r$":{"A":true},"YP":{"A":0},"EP":{"A":false}}}'),n=window.ReactJSXRuntime,a=(0,n.jsxs)("svg",{viewBox:"0 0 24 20",children:[(0,n.jsx)("path",{d:"M6.5,1V6a1,1,0,0,0,1,1h9a1,1,0,0,0,1-1V1a1,1,0,0,0-1-1h-9A1,1,0,0,0,6.5,1ZM16,6H8a.5.5,0,0,1-.5-.5v-4A.5.5,0,0,1,8,1h8a.5.5,0,0,1,.5.5v4A.5.5,0,0,1,16,6Z"}),(0,n.jsx)("rect",{x:"11.5",y:"6",width:"1",height:"4.26"}),(0,n.jsx)("path",{d:"M0,14v5a1,1,0,0,0,1,1h9a1,1,0,0,0,1-1V14a1,1,0,0,0-1-1H1A1,1,0,0,0,0,14Zm9.5,5h-8a.5.5,0,0,1-.5-.5v-4a.5.5,0,0,1,.5-.5h8a.5.5,0,0,1,.5.5v4A.5.5,0,0,1,9.5,19Z"}),(0,n.jsx)("path",{d:"M13,14v5a1,1,0,0,0,1,1h9a1,1,0,0,0,1-1V14a1,1,0,0,0-1-1H14A1,1,0,0,0,13,14Zm9.5,5h-8a.5.5,0,0,1-.5-.5v-4a.5.5,0,0,1,.5-.5h8a.5.5,0,0,1,.5.5v4A.5.5,0,0,1,22.5,19Z"}),(0,n.jsx)("path",{d:"M5.75,13V10.76a.5.5,0,0,1,.5-.5h11.5a.5.5,0,0,1,.5.5V13h1V10.26a1,1,0,0,0-1-1H5.75a1,1,0,0,0-1,1V13Z"})]}),s=window.lodash,t=window.wp.components,i=window.wp.blockEditor,r=window.wp.data,c=window.wp.i18n,m=window.wp.serverSideRender;var u=e.n(m);function _({label:e,...l}){return(0,n.jsx)(t.BaseControl,{__nextHasNoMarginBottom:!0,label:e,id:"snow-monkey-blocks/component/search-post-control",children:(0,n.jsx)("div",{className:"smb-search-post-control",children:(0,n.jsx)(i.__experimentalLinkControl,{...l,forceIsEditingLink:!l?.value?.id})})})}const h=(e,l=0,o=null)=>(e=Number(e),(isNaN(e)||e<l)&&(e=l),null!==o&&e>o&&(e=o),e);(0,l.registerBlockType)(o.UU,{icon:{foreground:"#cd162c",src:a},edit:function({attributes:e,setAttributes:l,clientId:a}){const{title:m,layout:b,gap:d,smCols:p,itemTitleTagName:k,itemThumbnailSizeSlug:w,arrows:y,dots:g,interval:x,autoplayButton:v,parent:j}=e,A=(0,r.useSelect)((e=>{const{getSettings:l}=e("core/block-editor"),{imageSizes:o}=l();return o.map((e=>({value:e.slug,label:e.name})))}),[]),D=["h2","h3","h4"],C=[{label:"S",value:1},{label:"M",value:2},{label:"L",value:3}];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.InspectorControls,{children:(0,n.jsxs)(t.__experimentalToolsPanel,{label:(0,c.__)("Block settings","snow-monkey-blocks"),children:[(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>m!==o.uK.DD.A,isShownByDefault:!0,label:(0,c.__)("Title","snow-monkey-blocks"),onDeselect:()=>l({title:o.uK.DD.A}),children:(0,n.jsx)(t.TextControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Title","snow-monkey-blocks"),value:m,placeholder:(0,c.__)("Child pages","snow-monkey-blocks"),onChange:e=>l({title:e})})}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>b!==o.uK.Zp.A,isShownByDefault:!0,label:(0,c.__)("Layout","snow-monkey-blocks"),onDeselect:()=>l({layout:o.uK.Zp.A}),children:(0,n.jsx)(t.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Layout","snow-monkey-blocks"),value:b,onChange:e=>l({layout:e}),options:[{value:"rich-media",label:(0,c.__)("Rich media","snow-monkey-blocks")},{value:"simple",label:(0,c.__)("Simple","snow-monkey-blocks")},{value:"text",label:(0,c.__)("Text","snow-monkey-blocks")},{value:"text2",label:(0,c.__)("Text 2","snow-monkey-blocks")},{value:"panel",label:(0,c.__)("Panels","snow-monkey-blocks")},{value:"carousel",label:(0,c.sprintf)( 2 2 // translators: %1$s: Layout 3 3 // translators: %1$s: Layout 4 (0,c.__)("Carousel (%1$s)","snow-monkey-blocks"),(0,c.__)("Rich media","snow-monkey-blocks"))},{value:"large-image",label:(0,c.__)("Large image","snow-monkey-blocks")}]})}),"carousel"===b&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>y!==o.uK.d$.A,isShownByDefault:!0,label:(0,c.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>l({arrows:o.uK.d$.A}),children:(0,n.jsx)(t.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Display arrows","snow-monkey-blocks"),checked:y,onChange:e=>l({arrows:e})})}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>g!==o.uK.r$.A,isShownByDefault:!0,label:(0,c.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>l({dots:o.uK.r$.A}),children:(0,n.jsx)(t.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Display dots","snow-monkey-blocks"),checked:g,onChange:e=>l({dots:e})})}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>x!==o.uK.YP.A,isShownByDefault:!0,label:(0,c.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>l({interval:o.uK.YP.A}),children:(0,n.jsx)(t.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,c.__)('If "0", no scroll.',"snow-monkey-blocks"),value:x,onChange:e=>l({interval:h(e,0,10)}),min:"0",max:"10"})}),0<x&&(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>v!==o.uK.EP.A,isShownByDefault:!0,label:(0,c.__)(" Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>l({autoplayButton:o.uK.EP.A}),children:(0,n.jsx)(t.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:v,onChange:e=>l({autoplayButton:e})})})]}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>k!==o.uK.$w.A,isShownByDefault:!0,label:(0,c.__)("Title tag","snow-monkey-blocks"),onDeselect:()=>l({itemTitleTagName:o.uK.$w.A}),children:(0,n.jsx)(t.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Title tag","snow-monkey-blocks"),id:"snow-monkey-blocks/child-pages/item-title-tag-name",children:(0,n.jsx)("div",{className:"smb-list-icon-selector",children:(0,s.times)(C.length,(e=>(0,n.jsx)(t.Button,{variant:k===C[e]?"primary":"secondary",onClick:()=>l({itemTitleTagName:C[e]}),children:C[e]},e)))})})}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>w!==o.uK.cn.A,isShownByDefault:!0,label:(0,c.__)("Images size","snow-monkey-blocks"),onDeselect:()=>l({itemThumbnailSizeSlug:o.uK.cn.A}),children:(0,n.jsx)(t.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Images size","snow-monkey-blocks"),value:w,options:A,onChange:e=>l({itemThumbnailSizeSlug:e})})}),("rich-media"===b||"panel"===b)&&(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>p!==o.uK.ez.A,isShownByDefault:!0,label:(0,c.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),onDeselect:()=>l({smCols:o.uK.ez.A}),children:(0,n.jsx)(t.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),value:p,onChange:e=>l({smCols:h(e)}),options:[{value:0,label:(0,c.__)("Default","snow-monkey-blocks")},{value:1,label:(0,c.__)("1 column","snow-monkey-blocks")},{value:2,label:(0,c.__)("2 columns","snow-monkey-blocks")}]})}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>j!==o.uK.$t.A,isShownByDefault:!0,label:(0,c.__)("Specify the parent page","snow-monkey-blocks"),onDeselect:()=>l({parent:o.uK.$t.A}),children:(0,n.jsx)(_,{label:(0,c.__)("Specify the parent page","snow-monkey-blocks"),onRemove:()=>l({parent:{}}),settings:[],searchInputPlaceholder:(0,c.__)("Search","snow-monkey-blocks"),value:j,onChange:e=>{l({parent:{id:e.id,title:e.title,url:e.url}})},suggestionQuery:{type:"post",subtype:"page"}})})]})}),(0,n.jsx)(i.InspectorControls,{group:"dimensions",children:(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>d!==o.uK.rQ.A,isShownByDefault:!0,label:(0,c.__)("The gap between each item","snow-monkey-blocks"),onDeselect:()=>l({gap:o.uK.rQ.A}),panelId:a,children:(0,n.jsx)(t.BaseControl,{__nextHasNoMarginBottom:!0,id:"snow-monkey-blocks/child-pages/gap",label:(0,c.__)("The gap between each item","snow-monkey-blocks"),className:"spacing-sizes-control",children:(0,n.jsx)(t.RangeControl,{__nextHasNoMarginBottom:!0,className:"spacing-sizes-control__range-control",value:D.filter((e=>e.label?.toLowerCase()===d))?.[0]?.value,resetFallbackValue:void 0,onChange:e=>l({gap:D.filter((l=>l.value===e))?.[0]?.label?.toLowerCase()}),withInputField:!1,min:1,max:3,marks:!0,renderTooltipContent:e=>D.filter((l=>l.value===e))?.[0]?.label?.toUpperCase(),hideLabelFromVision:!0})})})}),(0,n.jsx)("div",{...(0,i.useBlockProps)(),children:(0,n.jsx)(t.Disabled,{children:(0,n.jsx)(u(),{block:"snow-monkey-blocks/child-pages",attributes:e})})})]})},save:function(){return null}})})();4 (0,c.__)("Carousel (%1$s)","snow-monkey-blocks"),(0,c.__)("Rich media","snow-monkey-blocks"))},{value:"large-image",label:(0,c.__)("Large image","snow-monkey-blocks")}]})}),"carousel"===b&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>y!==o.uK.d$.A,isShownByDefault:!0,label:(0,c.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>l({arrows:o.uK.d$.A}),children:(0,n.jsx)(t.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Display arrows","snow-monkey-blocks"),checked:y,onChange:e=>l({arrows:e})})}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>g!==o.uK.r$.A,isShownByDefault:!0,label:(0,c.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>l({dots:o.uK.r$.A}),children:(0,n.jsx)(t.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Display dots","snow-monkey-blocks"),checked:g,onChange:e=>l({dots:e})})}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>x!==o.uK.YP.A,isShownByDefault:!0,label:(0,c.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>l({interval:o.uK.YP.A}),children:(0,n.jsx)(t.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,c.__)('If "0", no scroll.',"snow-monkey-blocks"),value:x,onChange:e=>l({interval:h(e,0,10)}),min:"0",max:"10"})}),0<x&&(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>v!==o.uK.EP.A,isShownByDefault:!0,label:(0,c.__)("Display pause button for autoplay","snow-monkey-blocks"),onDeselect:()=>l({autoplayButton:o.uK.EP.A}),children:(0,n.jsx)(t.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:v,onChange:e=>l({autoplayButton:e})})})]}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>k!==o.uK.$w.A,isShownByDefault:!0,label:(0,c.__)("Title tag","snow-monkey-blocks"),onDeselect:()=>l({itemTitleTagName:o.uK.$w.A}),children:(0,n.jsx)(t.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Title tag","snow-monkey-blocks"),id:"snow-monkey-blocks/child-pages/item-title-tag-name",children:(0,n.jsx)("div",{className:"smb-list-icon-selector",children:(0,s.times)(D.length,(e=>(0,n.jsx)(t.Button,{variant:k===D[e]?"primary":"secondary",onClick:()=>l({itemTitleTagName:D[e]}),children:D[e]},e)))})})}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>w!==o.uK.cn.A,isShownByDefault:!0,label:(0,c.__)("Images size","snow-monkey-blocks"),onDeselect:()=>l({itemThumbnailSizeSlug:o.uK.cn.A}),children:(0,n.jsx)(t.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Images size","snow-monkey-blocks"),value:w,options:A,onChange:e=>l({itemThumbnailSizeSlug:e})})}),("rich-media"===b||"panel"===b)&&(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>p!==o.uK.ez.A,isShownByDefault:!0,label:(0,c.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),onDeselect:()=>l({smCols:o.uK.ez.A}),children:(0,n.jsx)(t.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),value:p,onChange:e=>l({smCols:h(e)}),options:[{value:0,label:(0,c.__)("Default","snow-monkey-blocks")},{value:1,label:(0,c.__)("1 column","snow-monkey-blocks")},{value:2,label:(0,c.__)("2 columns","snow-monkey-blocks")}]})}),(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>j!==o.uK.$t.A,isShownByDefault:!0,label:(0,c.__)("Specify the parent page","snow-monkey-blocks"),onDeselect:()=>l({parent:o.uK.$t.A}),children:(0,n.jsx)(_,{label:(0,c.__)("Specify the parent page","snow-monkey-blocks"),onRemove:()=>l({parent:{}}),settings:[],searchInputPlaceholder:(0,c.__)("Search","snow-monkey-blocks"),value:j,onChange:e=>{l({parent:{id:e.id,title:e.title,url:e.url}})},suggestionQuery:{type:"post",subtype:"page"}})})]})}),(0,n.jsx)(i.InspectorControls,{group:"dimensions",children:(0,n.jsx)(t.__experimentalToolsPanelItem,{hasValue:()=>d!==o.uK.rQ.A,isShownByDefault:!0,label:(0,c.__)("The gap between each item","snow-monkey-blocks"),onDeselect:()=>l({gap:o.uK.rQ.A}),panelId:a,children:(0,n.jsx)(t.BaseControl,{__nextHasNoMarginBottom:!0,id:"snow-monkey-blocks/child-pages/gap",label:(0,c.__)("The gap between each item","snow-monkey-blocks"),className:"spacing-sizes-control",children:(0,n.jsx)(t.RangeControl,{__nextHasNoMarginBottom:!0,className:"spacing-sizes-control__range-control",value:C.filter((e=>e.label?.toLowerCase()===d))?.[0]?.value,resetFallbackValue:void 0,onChange:e=>l({gap:C.filter((l=>l.value===e))?.[0]?.label?.toLowerCase()}),withInputField:!1,min:1,max:3,marks:!0,renderTooltipContent:e=>C.filter((l=>l.value===e))?.[0]?.label?.toUpperCase(),hideLabelFromVision:!0})})})}),(0,n.jsx)("div",{...(0,i.useBlockProps)(),children:(0,n.jsx)(t.Disabled,{children:(0,n.jsx)(u(),{block:"snow-monkey-blocks/child-pages",attributes:e})})})]})},save:function(){return null}})})(); -
snow-monkey-blocks/trunk/dist/blocks/recent-posts/index.asset.php
r3194215 r3196970 1 <?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '9 1c2535cbb97660f8645');1 <?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '9c4d6958559a317e35a7'); -
snow-monkey-blocks/trunk/dist/blocks/recent-posts/index.js
r3194215 r3196970 1 (()=>{"use strict";var e={n:o=>{var l=o&&o.__esModule?()=>o.default:()=>o;return e.d(l,{a:l}),l},d:(o,l)=>{for(var t in l)e.o(l,t)&&!e.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:l[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.wp.blocks,l=window.wp.i18n,t=JSON.parse('{"UU":"snow-monkey-blocks/recent-posts","uK":{"postType":{"type":"string","default":"post"},"taxonomy":{"type":"string","default":null},"termId":{"type":"number","default":0},"authors":{"type":"array","default":[]},"postsPerPage":{"type":"number","default":6},"layout":{"type":"string","default":"rich-media"},"gap":{"type":"string","default":""},"ignoreStickyPosts":{"type":"boolean","default":true},"smCols":{"type":"number","default":0},"noPostsText":{"type":"string","default":""},"itemTitleTagName":{"type":"string","default":"h3"},"forceDisplayItemMeta":{"type":"boolean","default":false},"forceDisplayItemTerms":{"type":"boolean","default":false},"displayItemAuthor":{"type":"boolean"},"displayItemPublished":{"type":"boolean","default":true},"displayItemModified":{"type":"boolean","default":false},"displayItemExcerpt":{"type":"boolean"},"itemThumbnailSizeSlug":{"type":"string","default":"full"},"arrows":{"type":"boolean","default":false},"dots":{"type":"boolean","default":true},"interval":{"type":"number","default":0},"autoplayButton":{"type":"boolean","default":false},"anchor":{"type":"string","default":""},"clientId":{"type":"string","default":""}}}'),s=window.ReactJSXRuntime,a=(0,s.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,s.jsx)("rect",{x:"3",y:"6.5",width:"4",height:"1"}),(0,s.jsx)("rect",{x:"9",y:"6.5",width:"13",height:"1"}),(0,s.jsx)("rect",{x:"3",y:"11.5",width:"4",height:"1"}),(0,s.jsx)("rect",{x:"9",y:"11.5",width:"13",height:"1"}),(0,s.jsx)("rect",{x:"3",y:"16.5",width:"4",height:"1"}),(0,s.jsx)("rect",{x:"9",y:"16.5",width:"13",height:"1"})]}),n=window.lodash,i=window.wp.components,r=window.wp.blockEditor,m=window.wp.data,c=window.wp.element,u=window.wp.serverSideRender;var d=e.n(u);const p=(e,o=0,l=null)=>(e=Number(e),(isNaN(e)||e<o)&&(e=o),null!==l&&e>l&&(e=l),e),y=e=>{const o=e.map((e=>({children:[],parent:null,...e}))),l=(0,n.groupBy)(o,"parent");if(l.null&&l.null.length)return o;const t=e=>e.map((e=>{const o=l[e.id];return{...e,children:o&&o.length?t(o):[]}}));return t(l[0]||[])},h=[{attributes:{...t.uK,myAnchor:{type:"string",default:""}},migrate:e=>(e.anchor=e.myAnchor,e),save:()=>null}];(0,o.registerBlockType)(t.UU,{icon:{foreground:"#cd162c",src:a},keywords:[(0,l.__)("Posts list","snow-monkey-blocks"),(0,l.__)("Latest posts","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:o,clientId:a}){const{postType:u,termId:h,authors:_,postsPerPage:b,layout:g,gap:x,ignoreStickyPosts:k,smCols:f,noPostsText:w,itemTitleTagName:T,itemThumbnailSizeSlug:I,forceDisplayItemMeta: j,displayItemAuthor:D,displayItemPublished:P,displayItemModified:B,forceDisplayItemTerms:S,displayItemExcerpt:v,arrows:C,dots:K,interval:N,autoplayButton:M}=e;(0,c.useEffect)((()=>{let e,l;e=null==D?!["text","text2"].includes(g):D,l=null==v?["rich-media","simple","caroucel"].includes(g):v,o({displayItemAuthor:e,displayItemExcerpt:l})}),[g]),(0,c.useEffect)((()=>{o({clientId:e.clientId||a})}),[]);const{allPostTypes:H,taxonomiesTerms:V,allAuthors:A}=(0,m.useSelect)((e=>{const{getPostTypes:o,getEntityRecords:l,getTaxonomy:t}=e("core");let s=o({per_page:-1})||[];s=s.filter((e=>e.viewable&&!e.hierarchical&&"media"!==e.rest_base));const a=[];s.forEach((e=>{e.taxonomies.forEach((e=>{const o=t(e);if(o?.visibility?.show_ui){const t=l("taxonomy",e,{per_page:-1})||[];0<t.length&&a.push({taxonomy:e,label:o.name,terms:t})}}))}));const n=e("core").getUsers({who:"authors",per_page:-1,_fields:"id,name",context:"view"});return{allPostTypes:s,taxonomiesTerms:a,allAuthors:n}}),[]),E=[],F=H.find((e=>u===e.slug))?.taxonomies||[];V.forEach((e=>{F.includes(e.taxonomy)&&E.push(e)}));const z=(0,m.useSelect)((e=>{const{getSettings:o}=e("core/block-editor"),{imageSizes:l}=o();return l.map((e=>({value:e.slug,label:e.name})))}),[]),L=["h2","h3","h4"],R=[{label:"S",value:1},{label:"M",value:2},{label:"L",value:3}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.InspectorControls,{children:(0,s.jsxs)(i.__experimentalToolsPanel,{label:(0,l.__)("Block settings","snow-monkey-blocks"),children:[(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>u!==t.uK.postType.default,isShownByDefault:!0,label:(0,l.__)("Post type","snow-monkey-blocks"),onDeselect:()=>o({postType:t.uK.postType.default}),children:(0,s.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Post type","snow-monkey-blocks"),value:u,onChange:e=>o({postType:e}),options:H.map((e=>({label:e.name,value:e.slug})))})}),E.length?(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>h!==t.uK.termId.default,isShownByDefault:!0,label:(0,l.__)("Taxonomy","snow-monkey-blocks"),onDeselect:()=>o({termId:t.uK.termId.default,taxonomy:t.uK.taxonomy.default}),children:(0,s.jsx)("div",{style:{display:"grid",gap:"16px"},children:E.map((e=>(0,s.jsx)(i.TreeSelect,{__nextHasNoMarginBottom:!0,label:(0,l.sprintf)(1 (()=>{"use strict";var e={n:o=>{var l=o&&o.__esModule?()=>o.default:()=>o;return e.d(l,{a:l}),l},d:(o,l)=>{for(var t in l)e.o(l,t)&&!e.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:l[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.wp.blocks,l=window.wp.i18n,t=JSON.parse('{"UU":"snow-monkey-blocks/recent-posts","uK":{"postType":{"type":"string","default":"post"},"taxonomy":{"type":"string","default":null},"termId":{"type":"number","default":0},"authors":{"type":"array","default":[]},"postsPerPage":{"type":"number","default":6},"layout":{"type":"string","default":"rich-media"},"gap":{"type":"string","default":""},"ignoreStickyPosts":{"type":"boolean","default":true},"smCols":{"type":"number","default":0},"noPostsText":{"type":"string","default":""},"itemTitleTagName":{"type":"string","default":"h3"},"forceDisplayItemMeta":{"type":"boolean","default":false},"forceDisplayItemTerms":{"type":"boolean","default":false},"displayItemAuthor":{"type":"boolean"},"displayItemPublished":{"type":"boolean","default":true},"displayItemModified":{"type":"boolean","default":false},"displayItemExcerpt":{"type":"boolean"},"itemThumbnailSizeSlug":{"type":"string","default":"full"},"arrows":{"type":"boolean","default":false},"dots":{"type":"boolean","default":true},"interval":{"type":"number","default":0},"autoplayButton":{"type":"boolean","default":false},"anchor":{"type":"string","default":""},"clientId":{"type":"string","default":""}}}'),s=window.ReactJSXRuntime,a=(0,s.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,s.jsx)("rect",{x:"3",y:"6.5",width:"4",height:"1"}),(0,s.jsx)("rect",{x:"9",y:"6.5",width:"13",height:"1"}),(0,s.jsx)("rect",{x:"3",y:"11.5",width:"4",height:"1"}),(0,s.jsx)("rect",{x:"9",y:"11.5",width:"13",height:"1"}),(0,s.jsx)("rect",{x:"3",y:"16.5",width:"4",height:"1"}),(0,s.jsx)("rect",{x:"9",y:"16.5",width:"13",height:"1"})]}),n=window.lodash,i=window.wp.components,r=window.wp.blockEditor,m=window.wp.data,c=window.wp.element,u=window.wp.serverSideRender;var d=e.n(u);const p=(e,o=0,l=null)=>(e=Number(e),(isNaN(e)||e<o)&&(e=o),null!==l&&e>l&&(e=l),e),y=e=>{const o=e.map((e=>({children:[],parent:null,...e}))),l=(0,n.groupBy)(o,"parent");if(l.null&&l.null.length)return o;const t=e=>e.map((e=>{const o=l[e.id];return{...e,children:o&&o.length?t(o):[]}}));return t(l[0]||[])},h=[{attributes:{...t.uK,myAnchor:{type:"string",default:""}},migrate:e=>(e.anchor=e.myAnchor,e),save:()=>null}];(0,o.registerBlockType)(t.UU,{icon:{foreground:"#cd162c",src:a},keywords:[(0,l.__)("Posts list","snow-monkey-blocks"),(0,l.__)("Latest posts","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:o,clientId:a}){const{postType:u,termId:h,authors:_,postsPerPage:b,layout:g,gap:x,ignoreStickyPosts:k,smCols:f,noPostsText:w,itemTitleTagName:T,itemThumbnailSizeSlug:I,forceDisplayItemMeta:D,displayItemAuthor:j,displayItemPublished:P,displayItemModified:B,forceDisplayItemTerms:v,displayItemExcerpt:S,arrows:C,dots:K,interval:N,autoplayButton:M}=e;(0,c.useEffect)((()=>{let e,l;e=null==j?!["text","text2"].includes(g):j,l=null==S?["rich-media","simple","caroucel"].includes(g):S,o({displayItemAuthor:e,displayItemExcerpt:l})}),[g]),(0,c.useEffect)((()=>{o({clientId:e.clientId||a})}),[]);const{allPostTypes:H,taxonomiesTerms:V,allAuthors:A}=(0,m.useSelect)((e=>{const{getPostTypes:o,getEntityRecords:l,getTaxonomy:t}=e("core");let s=o({per_page:-1})||[];s=s.filter((e=>e.viewable&&!e.hierarchical&&"media"!==e.rest_base));const a=[];s.forEach((e=>{e.taxonomies.forEach((e=>{const o=t(e);if(o?.visibility?.show_ui){const t=l("taxonomy",e,{per_page:-1})||[];0<t.length&&a.push({taxonomy:e,label:o.name,terms:t})}}))}));const n=e("core").getUsers({who:"authors",per_page:-1,_fields:"id,name",context:"view"});return{allPostTypes:s,taxonomiesTerms:a,allAuthors:n}}),[]),E=[],F=H.find((e=>u===e.slug))?.taxonomies||[];V.forEach((e=>{F.includes(e.taxonomy)&&E.push(e)}));const z=(0,m.useSelect)((e=>{const{getSettings:o}=e("core/block-editor"),{imageSizes:l}=o();return l.map((e=>({value:e.slug,label:e.name})))}),[]),L=["h2","h3","h4"],R=[{label:"S",value:1},{label:"M",value:2},{label:"L",value:3}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.InspectorControls,{children:(0,s.jsxs)(i.__experimentalToolsPanel,{label:(0,l.__)("Block settings","snow-monkey-blocks"),children:[(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>u!==t.uK.postType.default,isShownByDefault:!0,label:(0,l.__)("Post type","snow-monkey-blocks"),onDeselect:()=>o({postType:t.uK.postType.default}),children:(0,s.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Post type","snow-monkey-blocks"),value:u,onChange:e=>o({postType:e}),options:H.map((e=>({label:e.name,value:e.slug})))})}),E.length?(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>h!==t.uK.termId.default,isShownByDefault:!0,label:(0,l.__)("Taxonomy","snow-monkey-blocks"),onDeselect:()=>o({termId:t.uK.termId.default,taxonomy:t.uK.taxonomy.default}),children:(0,s.jsx)("div",{style:{display:"grid",gap:"16px"},children:E.map((e=>(0,s.jsx)(i.TreeSelect,{__nextHasNoMarginBottom:!0,label:(0,l.sprintf)( 2 2 // translators: %1$s: Term label 3 3 // translators: %1$s: Term label … … 5 5 // translators: %1$s: Layout 6 6 // translators: %1$s: Layout 7 (0,l.__)("Carousel (%1$s)","snow-monkey-blocks"),(0,l.__)("Rich media","snow-monkey-blocks"))},{value:"large-image",label:(0,l.__)("Large image","snow-monkey-blocks")}]})}),"carousel"===g&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>C!==t.uK.arrows.default,isShownByDefault:!0,label:(0,l.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>o({arrows:t.uK.arrows.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display arrows","snow-monkey-blocks"),checked:C,onChange:e=>o({arrows:e})})}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>K!==t.uK.dots.default,isShownByDefault:!0,label:(0,l.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>o({dots:t.uK.dots.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display dots","snow-monkey-blocks"),checked:K,onChange:e=>o({dots:e})})}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>N!==t.uK.interval.default,isShownByDefault:!0,label:(0,l.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>o({interval:t.uK.interval.default}),children:(0,s.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,l.__)('If "0", no scroll.',"snow-monkey-blocks"),value:N,onChange:e=>o({interval:p(e,0,10)}),min:"0",max:"10"})}),0<N&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>M!==t.uK.autoplayButton.default,isShownByDefault:!0,label:(0,l.__)(" Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>o({autoplayButton:t.uK.autoplayButton.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:M,onChange:e=>o({autoplayButton:e})})})]}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>T!==t.uK.itemTitleTagName.default,isShownByDefault:!0,label:(0,l.__)("Title tag of each items","snow-monkey-blocks"),onDeselect:()=>o({itemTitleTagName:t.uK.itemTitleTagName.default}),children:(0,s.jsx)(i.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Title tag of each items","snow-monkey-blocks"),id:"snow-monkey-blocks/recent-posts/item-title-tag-name",children:(0,s.jsx)("div",{className:"smb-list-icon-selector",children:(0,n.times)(L.length,(e=>(0,s.jsx)(i.Button,{variant:T===L[e]?"primary":"secondary",onClick:()=>o({itemTitleTagName:L[e]}),children:L[e]},e)))})})}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>I!==t.uK.itemThumbnailSizeSlug.default,isShownByDefault:!0,label:(0,l.__)("Images size of each items","snow-monkey-blocks"),onDeselect:()=>o({itemThumbnailSizeSlug:t.uK.itemThumbnailSizeSlug.default}),children:(0,s.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Images size of each items","snow-monkey-blocks"),value:I,options:z,onChange:e=>o({itemThumbnailSizeSlug:e})})}),"post"!==u&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>j!==t.uK.forceDisplayItemMeta.default,isShownByDefault:!0,label:(0,l.__)("Force display meta of each items","snow-monkey-blocks"),onDeselect:()=>o({forceDisplayItemMeta:t.uK.forceDisplayItemMeta.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Force display meta of each items","snow-monkey-blocks"),help:(0,l.__)("If it's already displayed, this setting will be ignored.","snow-monkey-blocks"),checked:j,onChange:e=>o({forceDisplayItemMeta:e})})}),("post"===u||j)&&"text"!==g&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>D!==!["text","text2"].includes(g),isShownByDefault:!0,label:(0,l.__)("Display author of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemAuthor:!["text","text2"].includes(g)}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display author of each items","snow-monkey-blocks"),checked:D,onChange:e=>o({displayItemAuthor:e})})}),("post"===u||j)&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>P!==t.uK.displayItemPublished.default,isShownByDefault:!0,label:(0,l.__)("Display published date of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemPublished:t.uK.displayItemPublished.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display published date of each items","snow-monkey-blocks"),checked:P,onChange:e=>o({displayItemPublished:e})})}),("post"===u||j)&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>B!==t.uK.displayItemModified.default,isShownByDefault:!0,label:(0,l.__)("Display modified date of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemModified:t.uK.displayItemModified.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display modified date of each items","snow-monkey-blocks"),checked:B,onChange:e=>o({displayItemModified:e})})}),"post"!==u&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>S!==t.uK.forceDisplayItemTerms.default,isShownByDefault:!0,label:(0,l.__)("Force display category label of each items","snow-monkey-blocks"),onDeselect:()=>o({forceDisplayItemTerms:t.uK.forceDisplayItemTerms.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Force display category label of each items","snow-monkey-blocks"),help:(0,l.__)("If it's already displayed, this setting will be ignored.","snow-monkey-blocks"),checked:S,onChange:e=>o({forceDisplayItemTerms:e})})}),["rich-media","simple","panel","carousel"].includes(g)&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>v===["rich-media","simple","panel","carousel"].includes(g),isShownByDefault:!0,label:(0,l.__)("Display excerpt of each items","snow-monkey-blocks"),onDeselect:()=>{o({displayItemExcerpt:["rich-media","simple","panel","carousel"].includes(g)})},children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display excerpt of each items","snow-monkey-blocks"),checked:v,onChange:e=>o({displayItemExcerpt:e})})}),("rich-media"===g||"panel"===g)&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>f!==t.uK.smCols.default,isShownByDefault:!0,label:(0,l.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),onDeselect:()=>o({smCols:t.uK.smCols.default}),children:(0,s.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),value:f,onChange:e=>o({smCols:p(e)}),options:[{value:0,label:(0,l.__)("Default","snow-monkey-blocks")},{value:1,label:(0,l.__)("1 column","snow-monkey-blocks")},{value:2,label:(0,l.__)("2 columns","snow-monkey-blocks")}]})}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>k!==t.uK.ignoreStickyPosts.default,isShownByDefault:!0,label:(0,l.__)("Ignore sticky posts","snow-monkey-blocks"),onDeselect:()=>o({ignoreStickyPosts:t.uK.ignoreStickyPosts.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Ignore sticky posts","snow-monkey-blocks"),checked:k,onChange:e=>o({ignoreStickyPosts:e})})}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>w!==t.uK.noPostsText.default,isShownByDefault:!0,label:(0,l.__)("Text if no posts matched","snow-monkey-blocks"),onDeselect:()=>o({noPostsText:t.uK.noPostsText.default}),children:(0,s.jsx)(i.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Text if no posts matched","snow-monkey-blocks"),help:(0,l.__)("Allow HTML","snow-monkey-blocks"),value:w||"",onChange:e=>o({noPostsText:e})})})]})}),(0,s.jsx)(r.InspectorControls,{group:"dimensions",children:(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>x!==t.uK.gap.default,isShownByDefault:!0,label:(0,l.__)("The gap between each item","snow-monkey-blocks"),onDeselect:()=>o({gap:t.uK.gap.default}),panelId:a,children:(0,s.jsx)(i.BaseControl,{__nextHasNoMarginBottom:!0,id:"snow-monkey-blocks/recent-posts/gap",label:(0,l.__)("The gap between each item","snow-monkey-blocks"),className:"spacing-sizes-control",children:(0,s.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,className:"spacing-sizes-control__range-control",value:R.filter((e=>e.label?.toLowerCase()===x))?.[0]?.value,resetFallbackValue:void 0,onChange:e=>o({gap:R.filter((o=>o.value===e))?.[0]?.label?.toLowerCase()}),withInputField:!1,min:1,max:3,marks:!0,renderTooltipContent:e=>R.filter((o=>o.value===e))?.[0]?.label?.toUpperCase(),hideLabelFromVision:!0})})})}),(0,s.jsx)("div",{...(0,r.useBlockProps)(),children:H?(0,s.jsx)(i.Disabled,{children:(0,s.jsx)(d(),{block:"snow-monkey-blocks/recent-posts",attributes:e})}):(0,s.jsx)(i.Placeholder,{icon:"editor-ul",label:(0,l.__)("Recent posts","snow-monkey-blocks"),children:(0,s.jsx)(i.Spinner,{})})})]})},save:function(){return(0,s.jsx)("div",{...r.useBlockProps.save(),"data-dynamic-block":"snow-monkey-blocks/recent-posts","data-version":"2"})},deprecated:h})})();7 (0,l.__)("Carousel (%1$s)","snow-monkey-blocks"),(0,l.__)("Rich media","snow-monkey-blocks"))},{value:"large-image",label:(0,l.__)("Large image","snow-monkey-blocks")}]})}),"carousel"===g&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>C!==t.uK.arrows.default,isShownByDefault:!0,label:(0,l.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>o({arrows:t.uK.arrows.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display arrows","snow-monkey-blocks"),checked:C,onChange:e=>o({arrows:e})})}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>K!==t.uK.dots.default,isShownByDefault:!0,label:(0,l.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>o({dots:t.uK.dots.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display dots","snow-monkey-blocks"),checked:K,onChange:e=>o({dots:e})})}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>N!==t.uK.interval.default,isShownByDefault:!0,label:(0,l.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>o({interval:t.uK.interval.default}),children:(0,s.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,l.__)('If "0", no scroll.',"snow-monkey-blocks"),value:N,onChange:e=>o({interval:p(e,0,10)}),min:"0",max:"10"})}),0<N&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>M!==t.uK.autoplayButton.default,isShownByDefault:!0,label:(0,l.__)("Display pause button for autoplay","snow-monkey-blocks"),onDeselect:()=>o({autoplayButton:t.uK.autoplayButton.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:M,onChange:e=>o({autoplayButton:e})})})]}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>T!==t.uK.itemTitleTagName.default,isShownByDefault:!0,label:(0,l.__)("Title tag of each items","snow-monkey-blocks"),onDeselect:()=>o({itemTitleTagName:t.uK.itemTitleTagName.default}),children:(0,s.jsx)(i.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Title tag of each items","snow-monkey-blocks"),id:"snow-monkey-blocks/recent-posts/item-title-tag-name",children:(0,s.jsx)("div",{className:"smb-list-icon-selector",children:(0,n.times)(L.length,(e=>(0,s.jsx)(i.Button,{variant:T===L[e]?"primary":"secondary",onClick:()=>o({itemTitleTagName:L[e]}),children:L[e]},e)))})})}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>I!==t.uK.itemThumbnailSizeSlug.default,isShownByDefault:!0,label:(0,l.__)("Images size of each items","snow-monkey-blocks"),onDeselect:()=>o({itemThumbnailSizeSlug:t.uK.itemThumbnailSizeSlug.default}),children:(0,s.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Images size of each items","snow-monkey-blocks"),value:I,options:z,onChange:e=>o({itemThumbnailSizeSlug:e})})}),"post"!==u&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>D!==t.uK.forceDisplayItemMeta.default,isShownByDefault:!0,label:(0,l.__)("Force display meta of each items","snow-monkey-blocks"),onDeselect:()=>o({forceDisplayItemMeta:t.uK.forceDisplayItemMeta.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Force display meta of each items","snow-monkey-blocks"),help:(0,l.__)("If it's already displayed, this setting will be ignored.","snow-monkey-blocks"),checked:D,onChange:e=>o({forceDisplayItemMeta:e})})}),("post"===u||D)&&"text"!==g&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>j!==!["text","text2"].includes(g),isShownByDefault:!0,label:(0,l.__)("Display author of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemAuthor:!["text","text2"].includes(g)}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display author of each items","snow-monkey-blocks"),checked:j,onChange:e=>o({displayItemAuthor:e})})}),("post"===u||D)&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>P!==t.uK.displayItemPublished.default,isShownByDefault:!0,label:(0,l.__)("Display published date of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemPublished:t.uK.displayItemPublished.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display published date of each items","snow-monkey-blocks"),checked:P,onChange:e=>o({displayItemPublished:e})})}),("post"===u||D)&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>B!==t.uK.displayItemModified.default,isShownByDefault:!0,label:(0,l.__)("Display modified date of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemModified:t.uK.displayItemModified.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display modified date of each items","snow-monkey-blocks"),checked:B,onChange:e=>o({displayItemModified:e})})}),"post"!==u&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>v!==t.uK.forceDisplayItemTerms.default,isShownByDefault:!0,label:(0,l.__)("Force display category label of each items","snow-monkey-blocks"),onDeselect:()=>o({forceDisplayItemTerms:t.uK.forceDisplayItemTerms.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Force display category label of each items","snow-monkey-blocks"),help:(0,l.__)("If it's already displayed, this setting will be ignored.","snow-monkey-blocks"),checked:v,onChange:e=>o({forceDisplayItemTerms:e})})}),["rich-media","simple","panel","carousel"].includes(g)&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>S===["rich-media","simple","panel","carousel"].includes(g),isShownByDefault:!0,label:(0,l.__)("Display excerpt of each items","snow-monkey-blocks"),onDeselect:()=>{o({displayItemExcerpt:["rich-media","simple","panel","carousel"].includes(g)})},children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display excerpt of each items","snow-monkey-blocks"),checked:S,onChange:e=>o({displayItemExcerpt:e})})}),("rich-media"===g||"panel"===g)&&(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>f!==t.uK.smCols.default,isShownByDefault:!0,label:(0,l.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),onDeselect:()=>o({smCols:t.uK.smCols.default}),children:(0,s.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),value:f,onChange:e=>o({smCols:p(e)}),options:[{value:0,label:(0,l.__)("Default","snow-monkey-blocks")},{value:1,label:(0,l.__)("1 column","snow-monkey-blocks")},{value:2,label:(0,l.__)("2 columns","snow-monkey-blocks")}]})}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>k!==t.uK.ignoreStickyPosts.default,isShownByDefault:!0,label:(0,l.__)("Ignore sticky posts","snow-monkey-blocks"),onDeselect:()=>o({ignoreStickyPosts:t.uK.ignoreStickyPosts.default}),children:(0,s.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Ignore sticky posts","snow-monkey-blocks"),checked:k,onChange:e=>o({ignoreStickyPosts:e})})}),(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>w!==t.uK.noPostsText.default,isShownByDefault:!0,label:(0,l.__)("Text if no posts matched","snow-monkey-blocks"),onDeselect:()=>o({noPostsText:t.uK.noPostsText.default}),children:(0,s.jsx)(i.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Text if no posts matched","snow-monkey-blocks"),help:(0,l.__)("Allow HTML","snow-monkey-blocks"),value:w||"",onChange:e=>o({noPostsText:e})})})]})}),(0,s.jsx)(r.InspectorControls,{group:"dimensions",children:(0,s.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>x!==t.uK.gap.default,isShownByDefault:!0,label:(0,l.__)("The gap between each item","snow-monkey-blocks"),onDeselect:()=>o({gap:t.uK.gap.default}),panelId:a,children:(0,s.jsx)(i.BaseControl,{__nextHasNoMarginBottom:!0,id:"snow-monkey-blocks/recent-posts/gap",label:(0,l.__)("The gap between each item","snow-monkey-blocks"),className:"spacing-sizes-control",children:(0,s.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,className:"spacing-sizes-control__range-control",value:R.filter((e=>e.label?.toLowerCase()===x))?.[0]?.value,resetFallbackValue:void 0,onChange:e=>o({gap:R.filter((o=>o.value===e))?.[0]?.label?.toLowerCase()}),withInputField:!1,min:1,max:3,marks:!0,renderTooltipContent:e=>R.filter((o=>o.value===e))?.[0]?.label?.toUpperCase(),hideLabelFromVision:!0})})})}),(0,s.jsx)("div",{...(0,r.useBlockProps)(),children:H?(0,s.jsx)(i.Disabled,{children:(0,s.jsx)(d(),{block:"snow-monkey-blocks/recent-posts",attributes:e})}):(0,s.jsx)(i.Placeholder,{icon:"editor-ul",label:(0,l.__)("Recent posts","snow-monkey-blocks"),children:(0,s.jsx)(i.Spinner,{})})})]})},save:function(){return(0,s.jsx)("div",{...r.useBlockProps.save(),"data-dynamic-block":"snow-monkey-blocks/recent-posts","data-version":"2"})},deprecated:h})})(); -
snow-monkey-blocks/trunk/dist/blocks/rss/index.asset.php
r3194215 r3196970 1 <?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => ' f5f61599ac50a995f7fe');1 <?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '3d08006e687bf8510405'); -
snow-monkey-blocks/trunk/dist/blocks/rss/index.js
r3194215 r3196970 1 (()=>{"use strict";var e={n:o=>{var l=o&&o.__esModule?()=>o.default:()=>o;return e.d(l,{a:l}),l},d:(o,l)=>{for(var a in l)e.o(l,a)&&!e.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:l[a]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.wp.blocks,l=JSON.parse('{"UU":"snow-monkey-blocks/rss","uK":{"feedURL":{"type":"string","default":""},"postsPerPage":{"type":"number","default":6},"layout":{"type":"string","default":"rich-media"},"gap":{"type":"string","default":""},"smCols":{"type":"number","default":0},"noPostsText":{"type":"string","default":""},"itemTitleTagName":{"type":"string","default":"h3"},"arrows":{"type":"boolean","default":false},"dots":{"type":"boolean","default":true},"interval":{"type":"number","default":0},"autoplayButton":{"type":"boolean","default":false},"anchor":{"type":"string","default":""},"clientId":{"type":"string","default":""}}}'),a=window.ReactJSXRuntime,s=(0,a.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{d:"M5.69,20a1.56,1.56,0,1,1,1.55-1.56A1.56,1.56,0,0,1,5.69,20Z"}),(0,a.jsx)("path",{d:"M12.37,19.75a8.71,8.71,0,0,0-8.12-8.16.13.13,0,0,1-.11-.13c0-.28,0-1,0-1.2a.05.05,0,0,1,.06,0,10.14,10.14,0,0,1,6.58,3,10,10,0,0,1,2.92,6.54.19.19,0,0,1-.19.21h-.93A.22.22,0,0,1,12.37,19.75Z"}),(0,a.jsx)("path",{d:"M18.79,20a.23.23,0,0,1-.23-.21,13.71,13.71,0,0,0-4.39-9.93A14.91,14.91,0,0,0,4.32,5.42a.19.19,0,0,1-.19-.2v-1a.18.18,0,0,1,.19-.19A16.19,16.19,0,0,1,15.14,8.84a16.19,16.19,0,0,1,4.73,10.88.21.21,0,0,1-.21.22Z"})]}),t=window.lodash,n=window.wp.blockEditor,r=window.wp.components,i=window.wp.element,u=window.wp.i18n,c=window.wp.serverSideRender;var m=e.n(c);const d=(e,o=0,l=null)=>(e=Number(e),(isNaN(e)||e<o)&&(e=o),null!==l&&e>l&&(e=l),e),_=[{attributes:{...l.uK,myAnchor:{type:"string",default:""}},migrate:e=>(e.anchor=e.myAnchor,e),save:()=>null}];(0,o.registerBlockType)(l.UU,{icon:{foreground:"#cd162c",src:s},edit:function({attributes:e,setAttributes:o,clientId:s}){const[c,_]=(0,i.useState)(!e.feedURL),{feedURL:p,postsPerPage:b,layout: k,gap:y,smCols:h,noPostsText:w,itemTitleTagName:x,arrows:g,dots:f,interval:v,autoplayButton:j}=e;(0,i.useEffect)((()=>{o({clientId:s})}),[s]);const T=["h2","h3","h4"],B=[{label:"S",value:1},{label:"M",value:2},{label:"L",value:3}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.BlockControls,{group:"block",children:(0,a.jsx)(r.ToolbarButton,{icon:"edit",title:(0,u.__)("Edit RSS URL","snow-monkey-blocks"),onClick:()=>_(!0)})}),(0,a.jsx)(n.InspectorControls,{children:(0,a.jsxs)(r.__experimentalToolsPanel,{label:(0,u.__)("Block settings","snow-monkey-blocks"),children:[(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>b!==l.uK.postsPerPage.default,isShownByDefault:!0,label:(0,u.__)("Number of posts","snow-monkey-blocks"),onDeselect:()=>o({postsPerPage:l.uK.postsPerPage.default}),children:(0,a.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Number of posts","snow-monkey-blocks"),value:b,onChange:e=>o({postsPerPage:d(e,1,50)}),min:"1",max:"50"})}),(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>k!==l.uK.layout.default,isShownByDefault:!0,label:(0,u.__)("Layout","snow-monkey-blocks"),onDeselect:()=>o({layout:l.uK.layout.default}),children:(0,a.jsx)(r.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Layout","snow-monkey-blocks"),value:k,onChange:e=>o({layout:e}),options:[{value:"rich-media",label:(0,u.__)("Rich media","snow-monkey-blocks")},{value:"simple",label:(0,u.__)("Simple","snow-monkey-blocks")},{value:"text",label:(0,u.__)("Text","snow-monkey-blocks")},{value:"text2",label:(0,u.__)("Text 2","snow-monkey-blocks")},{value:"panel",label:(0,u.__)("Panels","snow-monkey-blocks")},{value:"carousel",label:(0,u.sprintf)(1 (()=>{"use strict";var e={n:o=>{var l=o&&o.__esModule?()=>o.default:()=>o;return e.d(l,{a:l}),l},d:(o,l)=>{for(var a in l)e.o(l,a)&&!e.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:l[a]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.wp.blocks,l=JSON.parse('{"UU":"snow-monkey-blocks/rss","uK":{"feedURL":{"type":"string","default":""},"postsPerPage":{"type":"number","default":6},"layout":{"type":"string","default":"rich-media"},"gap":{"type":"string","default":""},"smCols":{"type":"number","default":0},"noPostsText":{"type":"string","default":""},"itemTitleTagName":{"type":"string","default":"h3"},"arrows":{"type":"boolean","default":false},"dots":{"type":"boolean","default":true},"interval":{"type":"number","default":0},"autoplayButton":{"type":"boolean","default":false},"anchor":{"type":"string","default":""},"clientId":{"type":"string","default":""}}}'),a=window.ReactJSXRuntime,s=(0,a.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{d:"M5.69,20a1.56,1.56,0,1,1,1.55-1.56A1.56,1.56,0,0,1,5.69,20Z"}),(0,a.jsx)("path",{d:"M12.37,19.75a8.71,8.71,0,0,0-8.12-8.16.13.13,0,0,1-.11-.13c0-.28,0-1,0-1.2a.05.05,0,0,1,.06,0,10.14,10.14,0,0,1,6.58,3,10,10,0,0,1,2.92,6.54.19.19,0,0,1-.19.21h-.93A.22.22,0,0,1,12.37,19.75Z"}),(0,a.jsx)("path",{d:"M18.79,20a.23.23,0,0,1-.23-.21,13.71,13.71,0,0,0-4.39-9.93A14.91,14.91,0,0,0,4.32,5.42a.19.19,0,0,1-.19-.2v-1a.18.18,0,0,1,.19-.19A16.19,16.19,0,0,1,15.14,8.84a16.19,16.19,0,0,1,4.73,10.88.21.21,0,0,1-.21.22Z"})]}),t=window.lodash,n=window.wp.blockEditor,r=window.wp.components,i=window.wp.element,u=window.wp.i18n,c=window.wp.serverSideRender;var m=e.n(c);const d=(e,o=0,l=null)=>(e=Number(e),(isNaN(e)||e<o)&&(e=o),null!==l&&e>l&&(e=l),e),_=[{attributes:{...l.uK,myAnchor:{type:"string",default:""}},migrate:e=>(e.anchor=e.myAnchor,e),save:()=>null}];(0,o.registerBlockType)(l.UU,{icon:{foreground:"#cd162c",src:s},edit:function({attributes:e,setAttributes:o,clientId:s}){const[c,_]=(0,i.useState)(!e.feedURL),{feedURL:p,postsPerPage:b,layout:y,gap:k,smCols:h,noPostsText:w,itemTitleTagName:x,arrows:g,dots:f,interval:v,autoplayButton:j}=e;(0,i.useEffect)((()=>{o({clientId:s})}),[s]);const T=["h2","h3","h4"],B=[{label:"S",value:1},{label:"M",value:2},{label:"L",value:3}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.BlockControls,{group:"block",children:(0,a.jsx)(r.ToolbarButton,{icon:"edit",title:(0,u.__)("Edit RSS URL","snow-monkey-blocks"),onClick:()=>_(!0)})}),(0,a.jsx)(n.InspectorControls,{children:(0,a.jsxs)(r.__experimentalToolsPanel,{label:(0,u.__)("Block settings","snow-monkey-blocks"),children:[(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>b!==l.uK.postsPerPage.default,isShownByDefault:!0,label:(0,u.__)("Number of posts","snow-monkey-blocks"),onDeselect:()=>o({postsPerPage:l.uK.postsPerPage.default}),children:(0,a.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Number of posts","snow-monkey-blocks"),value:b,onChange:e=>o({postsPerPage:d(e,1,50)}),min:"1",max:"50"})}),(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>y!==l.uK.layout.default,isShownByDefault:!0,label:(0,u.__)("Layout","snow-monkey-blocks"),onDeselect:()=>o({layout:l.uK.layout.default}),children:(0,a.jsx)(r.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Layout","snow-monkey-blocks"),value:y,onChange:e=>o({layout:e}),options:[{value:"rich-media",label:(0,u.__)("Rich media","snow-monkey-blocks")},{value:"simple",label:(0,u.__)("Simple","snow-monkey-blocks")},{value:"text",label:(0,u.__)("Text","snow-monkey-blocks")},{value:"text2",label:(0,u.__)("Text 2","snow-monkey-blocks")},{value:"panel",label:(0,u.__)("Panels","snow-monkey-blocks")},{value:"carousel",label:(0,u.sprintf)( 2 2 // translators: %1$s: Layout 3 3 // translators: %1$s: Layout 4 (0,u.__)("Carousel (%1$s)","snow-monkey-blocks"),(0,u.__)("Rich media","snow-monkey-blocks"))},{value:"large-image",label:(0,u.__)("Large image","snow-monkey-blocks")}]})}),"carousel"=== k&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>g!==l.uK.arrows.default,isShownByDefault:!0,label:(0,u.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>o({arrows:l.uK.arrows.default}),children:(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Display arrows","snow-monkey-blocks"),checked:g,onChange:e=>o({arrows:e})})}),(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>f!==l.uK.dots.default,isShownByDefault:!0,label:(0,u.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>o({dots:l.uK.dots.default}),children:(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Display dots","snow-monkey-blocks"),checked:f,onChange:e=>o({dots:e})})}),(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>v!==l.uK.interval.default,isShownByDefault:!0,label:(0,u.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>o({interval:l.uK.interval.default}),children:(0,a.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,u.__)('If "0", no scroll.',"snow-monkey-blocks"),value:v,onChange:e=>o({interval:d(e,0,10)}),min:"0",max:"10"})}),0<v&&(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>j!==l.uK.autoplayButton.default,isShownByDefault:!0,label:(0,u.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>o({autoplayButton:l.uK.autoplayButton.default}),children:(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:j,onChange:e=>o({autoplayButton:e})})})]}),(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>x!==l.uK.itemTitleTagName.default,isShownByDefault:!0,label:(0,u.__)("Title tag of each items","snow-monkey-blocks"),onDeselect:()=>o({itemTitleTagName:l.uK.itemTitleTagName.default}),children:(0,a.jsx)(r.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Title tag of each items","snow-monkey-blocks"),id:"snow-monkey-blocks/rss/item-title-tag-name",children:(0,a.jsx)("div",{className:"smb-list-icon-selector",children:(0,t.times)(T.length,(e=>(0,a.jsx)(r.Button,{variant:x===T[e]?"primary":"secondary",onClick:()=>o({itemTitleTagName:T[e]}),children:T[e]},e)))})})}),("rich-media"===k||"panel"===k)&&(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>h!==l.uK.smCols.default,isShownByDefault:!0,label:(0,u.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),onDeselect:()=>o({smCols:l.uK.smCols.default}),children:(0,a.jsx)(r.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),value:h,onChange:e=>o({smCols:d(e)}),options:[{value:0,label:(0,u.__)("Default","snow-monkey-blocks")},{value:1,label:(0,u.__)("1 column","snow-monkey-blocks")},{value:2,label:(0,u.__)("2 columns","snow-monkey-blocks")}]})}),(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>w!==l.uK.noPostsText.default,isShownByDefault:!0,label:(0,u.__)("Text if no posts matched","snow-monkey-blocks"),onDeselect:()=>o({noPostsText:l.uK.noPostsText.default}),children:(0,a.jsx)(r.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Text if no posts matched","snow-monkey-blocks"),help:(0,u.__)("Allow HTML","snow-monkey-blocks"),value:w||"",onChange:e=>o({noPostsText:e})})})]})}),(0,a.jsx)(n.InspectorControls,{group:"dimensions",children:(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>y!==l.uK.gap.default,isShownByDefault:!0,label:(0,u.__)("The gap between each item","snow-monkey-blocks"),onDeselect:()=>o({gap:l.uK.gap.default}),panelId:s,children:(0,a.jsx)(r.BaseControl,{__nextHasNoMarginBottom:!0,id:"snow-monkey-blocks/recent-posts/gap",label:(0,u.__)("The gap between each item","snow-monkey-blocks"),className:"spacing-sizes-control",children:(0,a.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,className:"spacing-sizes-control__range-control",value:B.filter((e=>e.label?.toLowerCase()===y))?.[0]?.value,resetFallbackValue:void 0,onChange:e=>o({gap:B.filter((o=>o.value===e))?.[0]?.label?.toLowerCase()}),withInputField:!1,min:1,max:3,marks:!0,renderTooltipContent:e=>B.filter((o=>o.value===e))?.[0]?.label?.toUpperCase(),hideLabelFromVision:!0})})})}),(0,a.jsx)("div",{...(0,n.useBlockProps)(),children:c?(0,a.jsx)(r.Placeholder,{icon:"rss",label:"RSS",children:(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault(),p&&_(!1)},className:"wp-block-rss__placeholder-form",children:(0,a.jsxs)(r.__experimentalHStack,{wrap:!0,children:[(0,a.jsx)(r.__experimentalInputControl,{__next36pxDefaultSize:!0,placeholder:(0,u.__)("Enter URL here…"),value:p,onChange:e=>o({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,a.jsx)(r.Button,{variant:"primary",type:"submit",children:(0,u.__)("Use URL")})]})})}):(0,a.jsx)(r.Disabled,{children:(0,a.jsx)(m(),{block:"snow-monkey-blocks/rss",attributes:e})})})]})},save:function(){return(0,a.jsx)("div",{...n.useBlockProps.save(),"data-dynamic-block":"snow-monkey-blocks/rss","data-version":"2"})},deprecated:_})})();4 (0,u.__)("Carousel (%1$s)","snow-monkey-blocks"),(0,u.__)("Rich media","snow-monkey-blocks"))},{value:"large-image",label:(0,u.__)("Large image","snow-monkey-blocks")}]})}),"carousel"===y&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>g!==l.uK.arrows.default,isShownByDefault:!0,label:(0,u.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>o({arrows:l.uK.arrows.default}),children:(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Display arrows","snow-monkey-blocks"),checked:g,onChange:e=>o({arrows:e})})}),(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>f!==l.uK.dots.default,isShownByDefault:!0,label:(0,u.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>o({dots:l.uK.dots.default}),children:(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Display dots","snow-monkey-blocks"),checked:f,onChange:e=>o({dots:e})})}),(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>v!==l.uK.interval.default,isShownByDefault:!0,label:(0,u.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>o({interval:l.uK.interval.default}),children:(0,a.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,u.__)('If "0", no scroll.',"snow-monkey-blocks"),value:v,onChange:e=>o({interval:d(e,0,10)}),min:"0",max:"10"})}),0<v&&(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>j!==l.uK.autoplayButton.default,isShownByDefault:!0,label:(0,u.__)("Display pause button for autoplay","snow-monkey-blocks"),onDeselect:()=>o({autoplayButton:l.uK.autoplayButton.default}),children:(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:j,onChange:e=>o({autoplayButton:e})})})]}),(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>x!==l.uK.itemTitleTagName.default,isShownByDefault:!0,label:(0,u.__)("Title tag of each items","snow-monkey-blocks"),onDeselect:()=>o({itemTitleTagName:l.uK.itemTitleTagName.default}),children:(0,a.jsx)(r.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Title tag of each items","snow-monkey-blocks"),id:"snow-monkey-blocks/rss/item-title-tag-name",children:(0,a.jsx)("div",{className:"smb-list-icon-selector",children:(0,t.times)(T.length,(e=>(0,a.jsx)(r.Button,{variant:x===T[e]?"primary":"secondary",onClick:()=>o({itemTitleTagName:T[e]}),children:T[e]},e)))})})}),("rich-media"===y||"panel"===y)&&(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>h!==l.uK.smCols.default,isShownByDefault:!0,label:(0,u.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),onDeselect:()=>o({smCols:l.uK.smCols.default}),children:(0,a.jsx)(r.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),value:h,onChange:e=>o({smCols:d(e)}),options:[{value:0,label:(0,u.__)("Default","snow-monkey-blocks")},{value:1,label:(0,u.__)("1 column","snow-monkey-blocks")},{value:2,label:(0,u.__)("2 columns","snow-monkey-blocks")}]})}),(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>w!==l.uK.noPostsText.default,isShownByDefault:!0,label:(0,u.__)("Text if no posts matched","snow-monkey-blocks"),onDeselect:()=>o({noPostsText:l.uK.noPostsText.default}),children:(0,a.jsx)(r.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Text if no posts matched","snow-monkey-blocks"),help:(0,u.__)("Allow HTML","snow-monkey-blocks"),value:w||"",onChange:e=>o({noPostsText:e})})})]})}),(0,a.jsx)(n.InspectorControls,{group:"dimensions",children:(0,a.jsx)(r.__experimentalToolsPanelItem,{hasValue:()=>k!==l.uK.gap.default,isShownByDefault:!0,label:(0,u.__)("The gap between each item","snow-monkey-blocks"),onDeselect:()=>o({gap:l.uK.gap.default}),panelId:s,children:(0,a.jsx)(r.BaseControl,{__nextHasNoMarginBottom:!0,id:"snow-monkey-blocks/recent-posts/gap",label:(0,u.__)("The gap between each item","snow-monkey-blocks"),className:"spacing-sizes-control",children:(0,a.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,className:"spacing-sizes-control__range-control",value:B.filter((e=>e.label?.toLowerCase()===k))?.[0]?.value,resetFallbackValue:void 0,onChange:e=>o({gap:B.filter((o=>o.value===e))?.[0]?.label?.toLowerCase()}),withInputField:!1,min:1,max:3,marks:!0,renderTooltipContent:e=>B.filter((o=>o.value===e))?.[0]?.label?.toUpperCase(),hideLabelFromVision:!0})})})}),(0,a.jsx)("div",{...(0,n.useBlockProps)(),children:c?(0,a.jsx)(r.Placeholder,{icon:"rss",label:"RSS",children:(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault(),p&&_(!1)},className:"wp-block-rss__placeholder-form",children:(0,a.jsxs)(r.__experimentalHStack,{wrap:!0,children:[(0,a.jsx)(r.__experimentalInputControl,{__next36pxDefaultSize:!0,placeholder:(0,u.__)("Enter URL here…"),value:p,onChange:e=>o({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,a.jsx)(r.Button,{variant:"primary",type:"submit",children:(0,u.__)("Use URL")})]})})}):(0,a.jsx)(r.Disabled,{children:(0,a.jsx)(m(),{block:"snow-monkey-blocks/rss",attributes:e})})})]})},save:function(){return(0,a.jsx)("div",{...n.useBlockProps.save(),"data-dynamic-block":"snow-monkey-blocks/rss","data-version":"2"})},deprecated:_})})(); -
snow-monkey-blocks/trunk/dist/blocks/spider-contents-slider/index.asset.php
r3194215 r3196970 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' => ' 33e95b59b7d79a8ef90d');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' => 'b4684b201d36345aeb05'); -
snow-monkey-blocks/trunk/dist/blocks/spider-contents-slider/index.js
r3194215 r3196970 1 (()=>{var e,s={8674:(e,s,o)=>{"use strict";const t=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":"string","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=o(6942),n=o.n(d),c=o(3558),p=o.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,...o},t){return(0,b.cloneElement)(e,{width:s,height:s,...o,ref:t})})),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 o={},t={},r=e.map(((e,s)=>{if(e.hasOwnProperty("colorValue")&&e.hasOwnProperty("onColorChange")){o.color=e.colorValue,t.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")?(o.opacity=e.opacityValue,t.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")?(o.horizontal=e.horizontalValue,t.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")?(o.vertical=e.verticalValue,t.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")?(o.blur=e.blurValue,t.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")?(o.spread=e.spreadValue,t.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")?(o.position=e.positionValue,t.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:o,mobile:t}=e,a=[];return s&&a.push({name:"desktop",title:(0,i.jsx)(h.Dashicon,{icon:"desktop"})}),o&&a.push({name:"tablet",title:(0,i.jsx)(h.Dashicon,{icon:"tablet"})}),t&&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 o();if("mobile"===e.name)return t()}}})}window.lodash;const _=(e,s=0,o=null)=>(e=Number(e),(isNaN(e)||e<s)&&(e=s),null!==o&&e>o&&(e=o),e),y=["snow-monkey-blocks/spider-contents-slider-item"],j=r.uK,S=r.xY,k=[{attributes:{...j},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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,V={"--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:V}),"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"})}),o&&(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||t)&&(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:"▶"})]}),t&&j.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]})]})}},{attributes:{...j},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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"})}),o&&(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"})]})]}),t&&(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},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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"})}),o&&(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"})]})]}),t&&(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},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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"})}),o&&(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"})]})]}),t&&(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},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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})}),o&&(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"})]})]}),t&&(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},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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})}),o&&(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"})]})]}),t&&(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},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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})}),o&&(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"})]})]}),t&&(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,t.registerBlockType)(r.UU,{icon:{foreground:"#cd162c",src:l},keywords:[(0,a.__)("Carousel","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:s,className:o,isSelected:t,clientId:l}){const{arrows:d,dots:c,fade:f,shuffle:j,shifted:S,gutter:k,interval:N,autoplayButton:C,duration:B,lgSlidesToShow:P,mdSlidesToShow:V,smSlidesToShow:I,canvasPadding:T,border:$,boxShadow:O,sliderClientIds: H,templateLock:D}=e,K=JSON.parse(H),M="wide"===e.align,A="full"===e.align,R=!f,z=S&&R&&(M||A),L=(0,b.useRef)(),F=(0,b.useRef)(),J=(0,b.useRef)(),[E,G]=(0,b.useState)(void 0),{updateBlockAttributes:U,selectBlock:Z}=(0,m.useDispatch)("core/block-editor"),{getBlockAttributes:W,nowSliderClientIds:q,slides:Y,hasChildSelected:X}=(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<Y.length&&(e=Y.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 o=O?.color&&0<O?.blur?O?.blur:0,t=e?.attributes?.boxShadow?.color&&0<e?.attributes?.boxShadow?.blur?e?.attributes?.boxShadow?.blur:0,a=o>t?o:t;a===T?.top&&a===T?.bottom&&a===T?.right&&a===T?.left||s({canvasPadding:{...T,top:a,bottom:a,right:a,left:a}})}),[Y.join(),O.blur]);const Q=(0,m.useSelect)((e=>{const s=Y.filter((s=>s.clientId===e("core/block-editor").getSelectedBlockClientId()));if(0<s.length)return G(s[0]),s[0]}),[Y.join()]);(0,b.useEffect)((()=>{0<q.length&&!E&&G(q[0]),K.length!==q.length&&s({sliderClientIds:JSON.stringify(q)}),q.forEach(((e,s)=>{const o=W(e);s!==parseInt(o?.sliderId)&&U(e,{sliderId:s})}))}),[q.join(),E]);const ee=!!L.current&&L.current.offsetWidth;(0,b.useEffect)((()=>{const e=!!L.current&&!!J.current&&z&&Math.floor(L.current.offsetWidth);e&&(L.current.style.setProperty("--spider--canvas-width",`${e}px`),J.current.style.width=`${e}px`);const s=!!F.current&&z&&Math.floor(F.current.offsetWidth);s&&L.current.style.setProperty("--spider--reference-width",`${s}px`)}),[ee,z]);const se=n()("smb-spider-slider","smb-spider-contents-slider",o,{"smb-spider-slider--shifted":z,[`smb-spider-slider--gutter-${k}`]:!!k}),oe=String($.width).match(/^\d+$/)?`${$.width}px`:$.width,te=String($.radius).match(/^\d+$/)?`${$.radius}px`:$.radius,ae={"--smb-spider-contents-slider--canvas-offset-top":!!T?.top&&`${T?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!T?.right&&f&&`${T?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!T?.bottom&&`${T?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!T?.left&&f&&`${T?.left}px`||void 0,"--smb-spider-slider--gap":!k&&!f&&(!!T?.right||!!T?.left)&&(T?.right+T?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!$.color&&0<parseInt(oe)&&oe||void 0,"--smb-spider-contents-slider--slide-border-color":$.color||void 0,"--smb-spider-contents-slider--slide-border-type":$.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},re=[{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")}],ie=(0,u.useInnerBlocksProps)({className:"spider__canvas"},{templateLock:D,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:re})})}),(0,i.jsxs)(u.InspectorControls,{group:"border",children:[(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>$.color!==r.uK.border.default.color||$.style!==r.uK.border.default.style||$.width!==r.uK.border.default.width,isShownByDefault:!0,label:(0,a.__)("Border","snow-monkey-blocks"),onDeselect:()=>{s({border:{...$,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:{...$,color:e?.color,style:e?.style,width:e?.width}})},popoverOffset:40,popoverPlacement:"left-start",value:{color:$.color,style:$.style,width:$.width},__experimentalIsRenderedInSidebar:!0})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>$.radius!==r.uK.border.default.radius,isShownByDefault:!0,label:(0,a.__)("Border radius","snow-monkey-blocks"),onDeselect:()=>{s({border:{...$,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:$.radius,onChange:e=>{s({border:{...$,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&&(!A||!M)&&(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.__)("Autoplay Speed in seconds","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||V!==r.uK.mdSlidesToShow.default||I!==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<q.length?6:q.length}),tablet:()=>(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("# of slides to show (Medium window)","snow-monkey-blocks"),value:V,onChange:e=>s({mdSlidesToShow:_(e,1,6)}),min:"1",max:6<q.length?6:q.length}),mobile:()=>(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("# of slides to show (Small window)","snow-monkey-blocks"),value:I,onChange:e=>s({smSlidesToShow:_(e,1,6)}),min:"1",max:6<q.length?6:q.length})})})]})}),(0,i.jsxs)("div",{...(0,u.useBlockProps)({className:se,style:ae,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<V?V:void 0,"data-sm-slide-to-show":!f&&1<I?I:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[z&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference",ref:F})}),(0,i.jsx)("div",{...ie,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,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&&q.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]}),(t||X)&&(0,i.jsxs)("div",{className:"smb-slider-pagination",children:[q.map(((e,s)=>(0,i.jsx)(h.Button,{variant:E===e||Q?.clientId===e?"primary":"secondary",onClick:()=>{G(e),Z(e)},children:(0,i.jsx)("span",{children:s+1})},s))),(0,i.jsx)(u.InnerBlocks.ButtonBlockAppender,{})]})]})]})},save:function({attributes:e,className:s}){const{arrows:o,dots:t,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,V={"--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:V}),"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"})}),o&&(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||t)&&(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"})})})]}),t&&j.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,o){var t,a,r=function(e){return"#"===e.charAt(0)?e.slice(1):e}(e),i=function(e){var o=e.g,t=e.b,a=e.a;return{r:s(e.r),g:s(o),b:s(t),a:+(s(a)/255).toFixed(2)}}({r:(a=3===(t=r).length||4===t.length)?"".concat(t.slice(0,1)).concat(t.slice(0,1)):t.slice(0,2),g:a?"".concat(t.slice(1,2)).concat(t.slice(1,2)):t.slice(2,4),b:a?"".concat(t.slice(2,3)).concat(t.slice(2,3)):t.slice(4,6),a:(a?"".concat(t.slice(3,4)).concat(t.slice(3,4)):t.slice(6,8))||"ff"});return function(e,s){var o,t=e.r,a=e.g,r=e.b,i=e.a,l=(o=s,!isNaN(parseFloat(o))&&isFinite(o)?s:i);return"rgba(".concat(t,", ").concat(a,", ").concat(r,", ").concat(l,")")}(i,o)}},6942:(e,s)=>{var o;!function(){"use strict";var t={}.hasOwnProperty;function a(){for(var e="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(e=i(e,r(o)))}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 o in e)t.call(e,o)&&e[o]&&(s=i(s,o));return s}function i(e,s){return s?e?e+" "+s:e+s:e}e.exports?(a.default=a,e.exports=a):void 0===(o=function(){return a}.apply(s,[]))||(e.exports=o)}()}},o={};function t(e){var a=o[e];if(void 0!==a)return a.exports;var r=o[e]={exports:{}};return s[e](r,r.exports,t),r.exports}t.m=s,e=[],t.O=(s,o,a,r)=>{if(!o){var i=1/0;for(c=0;c<e.length;c++){o=e[c][0],a=e[c][1],r=e[c][2];for(var l=!0,d=0;d<o.length;d++)(!1&r||i>=r)&&Object.keys(t.O).every((e=>t.O[e](o[d])))?o.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]=[o,a,r]},t.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},t.d=(e,s)=>{for(var o in s)t.o(s,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:s[o]})},t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{var e={9021:0,465:0};t.O.j=s=>0===e[s];var s=(s,o)=>{var a,r,i=o[0],l=o[1],d=o[2],n=0;if(i.some((s=>0!==e[s]))){for(a in l)t.o(l,a)&&(t.m[a]=l[a]);if(d)var c=d(t)}for(s&&s(o);n<i.length;n++)r=i[n],t.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return t.O(c)},o=self.webpackChunk=self.webpackChunk||[];o.forEach(s.bind(null,0)),o.push=s.bind(null,o.push.bind(o))})();var a=t.O(void 0,[465],(()=>t(8674)));a=t.O(a)})();1 (()=>{var e,s={8674:(e,s,o)=>{"use strict";const t=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":"string","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=o(6942),n=o.n(d),c=o(3558),p=o.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,...o},t){return(0,b.cloneElement)(e,{width:s,height:s,...o,ref:t})})),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 o={},t={},r=e.map(((e,s)=>{if(e.hasOwnProperty("colorValue")&&e.hasOwnProperty("onColorChange")){o.color=e.colorValue,t.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")?(o.opacity=e.opacityValue,t.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")?(o.horizontal=e.horizontalValue,t.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")?(o.vertical=e.verticalValue,t.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")?(o.blur=e.blurValue,t.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")?(o.spread=e.spreadValue,t.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")?(o.position=e.positionValue,t.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:o,mobile:t}=e,a=[];return s&&a.push({name:"desktop",title:(0,i.jsx)(h.Dashicon,{icon:"desktop"})}),o&&a.push({name:"tablet",title:(0,i.jsx)(h.Dashicon,{icon:"tablet"})}),t&&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 o();if("mobile"===e.name)return t()}}})}window.lodash;const _=(e,s=0,o=null)=>(e=Number(e),(isNaN(e)||e<s)&&(e=s),null!==o&&e>o&&(e=o),e),y=["snow-monkey-blocks/spider-contents-slider-item"],j=r.uK,S=r.xY,k=[{attributes:{...j},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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,V={"--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:V}),"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"})}),o&&(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||t)&&(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:"▶"})]}),t&&j.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]})]})}},{attributes:{...j},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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"})}),o&&(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"})]})]}),t&&(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},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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"})}),o&&(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"})]})]}),t&&(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},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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"})}),o&&(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"})]})]}),t&&(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},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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})}),o&&(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"})]})]}),t&&(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},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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})}),o&&(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"})]})]}),t&&(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},supports:{...S},save({attributes:e,className:s}){const{arrows:o,dots:t,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})}),o&&(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"})]})]}),t&&(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,t.registerBlockType)(r.UU,{icon:{foreground:"#cd162c",src:l},keywords:[(0,a.__)("Carousel","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:s,className:o,isSelected:t,clientId:l}){const{arrows:d,dots:c,fade:f,shuffle:j,shifted:S,gutter:k,interval:N,autoplayButton:C,duration:B,lgSlidesToShow:P,mdSlidesToShow:V,smSlidesToShow:I,canvasPadding:T,border:$,boxShadow:O,sliderClientIds:D,templateLock:H}=e,K=JSON.parse(D),M="wide"===e.align,R="full"===e.align,A=!f,z=S&&A&&(M||R),L=(0,b.useRef)(),F=(0,b.useRef)(),J=(0,b.useRef)(),[E,G]=(0,b.useState)(void 0),{updateBlockAttributes:U,selectBlock:Z}=(0,m.useDispatch)("core/block-editor"),{getBlockAttributes:W,nowSliderClientIds:q,slides:Y,hasChildSelected:X}=(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<Y.length&&(e=Y.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 o=O?.color&&0<O?.blur?O?.blur:0,t=e?.attributes?.boxShadow?.color&&0<e?.attributes?.boxShadow?.blur?e?.attributes?.boxShadow?.blur:0,a=o>t?o:t;a===T?.top&&a===T?.bottom&&a===T?.right&&a===T?.left||s({canvasPadding:{...T,top:a,bottom:a,right:a,left:a}})}),[Y.join(),O.blur]);const Q=(0,m.useSelect)((e=>{const s=Y.filter((s=>s.clientId===e("core/block-editor").getSelectedBlockClientId()));if(0<s.length)return G(s[0]),s[0]}),[Y.join()]);(0,b.useEffect)((()=>{0<q.length&&!E&&G(q[0]),K.length!==q.length&&s({sliderClientIds:JSON.stringify(q)}),q.forEach(((e,s)=>{const o=W(e);s!==parseInt(o?.sliderId)&&U(e,{sliderId:s})}))}),[q.join(),E]);const ee=!!L.current&&L.current.offsetWidth;(0,b.useEffect)((()=>{const e=!!L.current&&!!J.current&&z&&Math.floor(L.current.offsetWidth);e&&(L.current.style.setProperty("--spider--canvas-width",`${e}px`),J.current.style.width=`${e}px`);const s=!!F.current&&z&&Math.floor(F.current.offsetWidth);s&&L.current.style.setProperty("--spider--reference-width",`${s}px`)}),[ee,z]);const se=n()("smb-spider-slider","smb-spider-contents-slider",o,{"smb-spider-slider--shifted":z,[`smb-spider-slider--gutter-${k}`]:!!k}),oe=String($.width).match(/^\d+$/)?`${$.width}px`:$.width,te=String($.radius).match(/^\d+$/)?`${$.radius}px`:$.radius,ae={"--smb-spider-contents-slider--canvas-offset-top":!!T?.top&&`${T?.top}px`||void 0,"--smb-spider-contents-slider--canvas-offset-right":!!T?.right&&f&&`${T?.right}px`||void 0,"--smb-spider-contents-slider--canvas-offset-bottom":!!T?.bottom&&`${T?.bottom}px`||void 0,"--smb-spider-contents-slider--canvas-offset-left":!!T?.left&&f&&`${T?.left}px`||void 0,"--smb-spider-slider--gap":!k&&!f&&(!!T?.right||!!T?.left)&&(T?.right+T?.left)/2+"px"||void 0,"--smb-spider-contents-slider--slide-border-width":!!$.color&&0<parseInt(oe)&&oe||void 0,"--smb-spider-contents-slider--slide-border-color":$.color||void 0,"--smb-spider-contents-slider--slide-border-type":$.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},re=[{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")}],ie=(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:re})})}),(0,i.jsxs)(u.InspectorControls,{group:"border",children:[(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>$.color!==r.uK.border.default.color||$.style!==r.uK.border.default.style||$.width!==r.uK.border.default.width,isShownByDefault:!0,label:(0,a.__)("Border","snow-monkey-blocks"),onDeselect:()=>{s({border:{...$,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:{...$,color:e?.color,style:e?.style,width:e?.width}})},popoverOffset:40,popoverPlacement:"left-start",value:{color:$.color,style:$.style,width:$.width},__experimentalIsRenderedInSidebar:!0})}),(0,i.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>$.radius!==r.uK.border.default.radius,isShownByDefault:!0,label:(0,a.__)("Border radius","snow-monkey-blocks"),onDeselect:()=>{s({border:{...$,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:$.radius,onChange:e=>{s({border:{...$,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})})}),A&&(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&&(!R||!M)&&(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||V!==r.uK.mdSlidesToShow.default||I!==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<q.length?6:q.length}),tablet:()=>(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("# of slides to show (Medium window)","snow-monkey-blocks"),value:V,onChange:e=>s({mdSlidesToShow:_(e,1,6)}),min:"1",max:6<q.length?6:q.length}),mobile:()=>(0,i.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("# of slides to show (Small window)","snow-monkey-blocks"),value:I,onChange:e=>s({smSlidesToShow:_(e,1,6)}),min:"1",max:6<q.length?6:q.length})})})]})}),(0,i.jsxs)("div",{...(0,u.useBlockProps)({className:se,style:ae,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<V?V:void 0,"data-sm-slide-to-show":!f&&1<I?I:void 0,children:[(0,i.jsxs)("div",{className:"spider",children:[z&&(0,i.jsx)("div",{className:"c-container",children:(0,i.jsx)("div",{className:"spider__reference",ref:F})}),(0,i.jsx)("div",{...ie,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,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&&q.map(((e,s)=>(0,i.jsx)("button",{className:"spider__dot","data-id":s,children:s},s)))]}),(t||X)&&(0,i.jsxs)("div",{className:"smb-slider-pagination",children:[q.map(((e,s)=>(0,i.jsx)(h.Button,{variant:E===e||Q?.clientId===e?"primary":"secondary",onClick:()=>{G(e),Z(e)},children:(0,i.jsx)("span",{children:s+1})},s))),(0,i.jsx)(u.InnerBlocks.ButtonBlockAppender,{})]})]})]})},save:function({attributes:e,className:s}){const{arrows:o,dots:t,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,V={"--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:V}),"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"})}),o&&(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||t)&&(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"})})})]}),t&&j.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,o){var t,a,r=function(e){return"#"===e.charAt(0)?e.slice(1):e}(e),i=function(e){var o=e.g,t=e.b,a=e.a;return{r:s(e.r),g:s(o),b:s(t),a:+(s(a)/255).toFixed(2)}}({r:(a=3===(t=r).length||4===t.length)?"".concat(t.slice(0,1)).concat(t.slice(0,1)):t.slice(0,2),g:a?"".concat(t.slice(1,2)).concat(t.slice(1,2)):t.slice(2,4),b:a?"".concat(t.slice(2,3)).concat(t.slice(2,3)):t.slice(4,6),a:(a?"".concat(t.slice(3,4)).concat(t.slice(3,4)):t.slice(6,8))||"ff"});return function(e,s){var o,t=e.r,a=e.g,r=e.b,i=e.a,l=(o=s,!isNaN(parseFloat(o))&&isFinite(o)?s:i);return"rgba(".concat(t,", ").concat(a,", ").concat(r,", ").concat(l,")")}(i,o)}},6942:(e,s)=>{var o;!function(){"use strict";var t={}.hasOwnProperty;function a(){for(var e="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(e=i(e,r(o)))}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 o in e)t.call(e,o)&&e[o]&&(s=i(s,o));return s}function i(e,s){return s?e?e+" "+s:e+s:e}e.exports?(a.default=a,e.exports=a):void 0===(o=function(){return a}.apply(s,[]))||(e.exports=o)}()}},o={};function t(e){var a=o[e];if(void 0!==a)return a.exports;var r=o[e]={exports:{}};return s[e](r,r.exports,t),r.exports}t.m=s,e=[],t.O=(s,o,a,r)=>{if(!o){var i=1/0;for(c=0;c<e.length;c++){o=e[c][0],a=e[c][1],r=e[c][2];for(var l=!0,d=0;d<o.length;d++)(!1&r||i>=r)&&Object.keys(t.O).every((e=>t.O[e](o[d])))?o.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]=[o,a,r]},t.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},t.d=(e,s)=>{for(var o in s)t.o(s,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:s[o]})},t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{var e={9021:0,465:0};t.O.j=s=>0===e[s];var s=(s,o)=>{var a,r,i=o[0],l=o[1],d=o[2],n=0;if(i.some((s=>0!==e[s]))){for(a in l)t.o(l,a)&&(t.m[a]=l[a]);if(d)var c=d(t)}for(s&&s(o);n<i.length;n++)r=i[n],t.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return t.O(c)},o=self.webpackChunk=self.webpackChunk||[];o.forEach(s.bind(null,0)),o.push=s.bind(null,o.push.bind(o))})();var a=t.O(void 0,[465],(()=>t(8674)));a=t.O(a)})(); -
snow-monkey-blocks/trunk/dist/blocks/spider-pickup-slider/index.asset.php
r3194215 r3196970 1 <?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' b21da57dd4cc6da5dfa4');1 <?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'da856aa90c783e1747a8'); -
snow-monkey-blocks/trunk/dist/blocks/spider-pickup-slider/index.js
r3194215 r3196970 1 (()=>{"use strict";var e,o={2849:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=JSON.parse('{"UU":"snow-monkey-blocks/spider-pickup-slider","uK":{"yT":{"A":false},"cz":{"A":0},"r$":{"A":false},"kJ":{"A":false},"d$":{"A":true},"Rv":{"A":false},"YP":{"A":0},"EP":{"A":false}}}'),s=window.ReactJSXRuntime,n=(0,s.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,s.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,s.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,s.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,s.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"})]}),a=window.wp.components,t=window.wp.blockEditor,r=(window.lodash,(e,o=0,l=null)=>(e=Number(e),(isNaN(e)||e<o)&&(e=o),null!==l&&e>l&&(e=l),e));(0,e.registerBlockType)(l.UU,{icon:{foreground:"#cd162c",src:n},keywords:[(0,o.__)("Slider","snow-monkey-blocks"),(0,o.__)("Carousel","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:n}){const{random:i,postsPerPage:c,arrows:u,dots:d,dotsToThumbnail:_,fade:m,interval:h,autoplayButton:k}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.InspectorControls,{children:(0,s.jsxs)(a.__experimentalToolsPanel,{label:(0,o.__)("Block settings","snow-monkey-blocks"),children:[(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>i!==l.uK.yT.A,isShownByDefault:!0,label:(0,o.__)("Shuffle slides","snow-monkey-blocks"),onDeselect:()=>n({random:l.uK.yT.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Shuffle slides","snow-monkey-blocks"),checked:i,onChange:e=>n({random:e})})}),(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>c!==l.uK.cz.A,isShownByDefault:!0,label:(0,o.__)("Maximum number of displays","snow-monkey-blocks"),onDeselect:()=>n({postsPerPage:l.uK.cz.A}),children:(0,s.jsx)(a.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Maximum number of displays","snow-monkey-blocks"),help:(0,o.__)('If "0", all items are displayed.',"snow-monkey-blocks"),value:c,onChange:e=>n({postsPerPage:r(e,0,10)}),min:"0",max:"10"})}),(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>u!==l.uK.d$.A,isShownByDefault:!0,label:(0,o.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>n({arrows:l.uK.d$.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Display arrows","snow-monkey-blocks"),checked:u,onChange:e=>n({arrows:e})})}),(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>d!==l.uK.r$.A,isShownByDefault:!0,label:(0,o.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>n({dots:l.uK.r$.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Display dots","snow-monkey-blocks"),checked:d,onChange:e=>n({dots:e})})}),d&&(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>_!==l.uK.kJ.A,isShownByDefault:!0,label:(0,o.__)("Change dots to thumbnails","snow-monkey-blocks"),onDeselect:()=>n({dotsToThumbnail:l.uK.kJ.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Change dots to thumbnails","snow-monkey-blocks"),checked:_,onChange:e=>n({dotsToThumbnail:e})})}),(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>m!==l.uK.Rv.A,isShownByDefault:!0,label:(0,o.__)("Fade","snow-monkey-blocks"),onDeselect:()=>n({fade:l.uK.Rv.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Fade","snow-monkey-blocks"),checked:m,onChange:e=>n({fade:e})})}),(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>h!==l.uK.YP.A,isShownByDefault:!0,label:(0,o.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>n({interval:l.uK.YP.A}),children:(0,s.jsx)(a.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,o.__)('If "0", no scroll.',"snow-monkey-blocks"),value:h,onChange:e=>n({interval:r(e,0,10)}),min:"0",max:"10"})}),0<h&&(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>k!==l.uK.EP.A,isShownByDefault:!0,label:(0,o.__)(" Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>n({autoplayButton:l.uK.EP.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:k,onChange:e=>n({autoplayButton:e})})})]})}),(0,s.jsx)("div",{...(0,t.useBlockProps)(),children:(0,s.jsx)(a.Placeholder,{icon:"format-gallery",label:(0,o.__)("Pickup slider","snow-monkey-blocks"),children:(0,o.__)('Posts with "pickup" tag are displayed as sliders.',"snow-monkey-blocks")})})]})},save:function(){return null}})}},l={};function s(e){var n=l[e];if(void 0!==n)return n.exports;var a=l[e]={exports:{}};return o[e](a,a.exports,s),a.exports}s.m=o,e=[],s.O=(o,l,n,a)=>{if(!l){var t=1/0;for(u=0;u<e.length;u++){l=e[u][0],n=e[u][1],a=e[u][2];for(var r=!0,i=0;i<l.length;i++)(!1&a||t>=a)&&Object.keys(s.O).every((e=>s.O[e](l[i])))?l.splice(i--,1):(r=!1,a<t&&(t=a));if(r){e.splice(u--,1);var c=n();void 0!==c&&(o=c)}}return o}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[l,n,a]},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={6815:0,6471:0};s.O.j=o=>0===e[o];var o=(o,l)=>{var n,a,t=l[0],r=l[1],i=l[2],c=0;if(t.some((o=>0!==e[o]))){for(n in r)s.o(r,n)&&(s.m[n]=r[n]);if(i)var u=i(s)}for(o&&o(l);c<t.length;c++)a=t[c],s.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return s.O(u)},l=self.webpackChunk=self.webpackChunk||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var n=s.O(void 0,[6471],(()=>s(2849)));n=s.O(n)})();1 (()=>{"use strict";var e,o={2849:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=JSON.parse('{"UU":"snow-monkey-blocks/spider-pickup-slider","uK":{"yT":{"A":false},"cz":{"A":0},"r$":{"A":false},"kJ":{"A":false},"d$":{"A":true},"Rv":{"A":false},"YP":{"A":0},"EP":{"A":false}}}'),s=window.ReactJSXRuntime,n=(0,s.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,s.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,s.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,s.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,s.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"})]}),a=window.wp.components,t=window.wp.blockEditor,r=(window.lodash,(e,o=0,l=null)=>(e=Number(e),(isNaN(e)||e<o)&&(e=o),null!==l&&e>l&&(e=l),e));(0,e.registerBlockType)(l.UU,{icon:{foreground:"#cd162c",src:n},keywords:[(0,o.__)("Slider","snow-monkey-blocks"),(0,o.__)("Carousel","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:n}){const{random:i,postsPerPage:c,arrows:u,dots:d,dotsToThumbnail:_,fade:m,interval:h,autoplayButton:k}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.InspectorControls,{children:(0,s.jsxs)(a.__experimentalToolsPanel,{label:(0,o.__)("Block settings","snow-monkey-blocks"),children:[(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>i!==l.uK.yT.A,isShownByDefault:!0,label:(0,o.__)("Shuffle slides","snow-monkey-blocks"),onDeselect:()=>n({random:l.uK.yT.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Shuffle slides","snow-monkey-blocks"),checked:i,onChange:e=>n({random:e})})}),(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>c!==l.uK.cz.A,isShownByDefault:!0,label:(0,o.__)("Maximum number of displays","snow-monkey-blocks"),onDeselect:()=>n({postsPerPage:l.uK.cz.A}),children:(0,s.jsx)(a.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Maximum number of displays","snow-monkey-blocks"),help:(0,o.__)('If "0", all items are displayed.',"snow-monkey-blocks"),value:c,onChange:e=>n({postsPerPage:r(e,0,10)}),min:"0",max:"10"})}),(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>u!==l.uK.d$.A,isShownByDefault:!0,label:(0,o.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>n({arrows:l.uK.d$.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Display arrows","snow-monkey-blocks"),checked:u,onChange:e=>n({arrows:e})})}),(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>d!==l.uK.r$.A,isShownByDefault:!0,label:(0,o.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>n({dots:l.uK.r$.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Display dots","snow-monkey-blocks"),checked:d,onChange:e=>n({dots:e})})}),d&&(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>_!==l.uK.kJ.A,isShownByDefault:!0,label:(0,o.__)("Change dots to thumbnails","snow-monkey-blocks"),onDeselect:()=>n({dotsToThumbnail:l.uK.kJ.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Change dots to thumbnails","snow-monkey-blocks"),checked:_,onChange:e=>n({dotsToThumbnail:e})})}),(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>m!==l.uK.Rv.A,isShownByDefault:!0,label:(0,o.__)("Fade","snow-monkey-blocks"),onDeselect:()=>n({fade:l.uK.Rv.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Fade","snow-monkey-blocks"),checked:m,onChange:e=>n({fade:e})})}),(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>h!==l.uK.YP.A,isShownByDefault:!0,label:(0,o.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>n({interval:l.uK.YP.A}),children:(0,s.jsx)(a.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,o.__)('If "0", no scroll.',"snow-monkey-blocks"),value:h,onChange:e=>n({interval:r(e,0,10)}),min:"0",max:"10"})}),0<h&&(0,s.jsx)(a.__experimentalToolsPanelItem,{hasValue:()=>k!==l.uK.EP.A,isShownByDefault:!0,label:(0,o.__)("Display pause button for autoplay","snow-monkey-blocks"),onDeselect:()=>n({autoplayButton:l.uK.EP.A}),children:(0,s.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:k,onChange:e=>n({autoplayButton:e})})})]})}),(0,s.jsx)("div",{...(0,t.useBlockProps)(),children:(0,s.jsx)(a.Placeholder,{icon:"format-gallery",label:(0,o.__)("Pickup slider","snow-monkey-blocks"),children:(0,o.__)('Posts with "pickup" tag are displayed as sliders.',"snow-monkey-blocks")})})]})},save:function(){return null}})}},l={};function s(e){var n=l[e];if(void 0!==n)return n.exports;var a=l[e]={exports:{}};return o[e](a,a.exports,s),a.exports}s.m=o,e=[],s.O=(o,l,n,a)=>{if(!l){var t=1/0;for(u=0;u<e.length;u++){l=e[u][0],n=e[u][1],a=e[u][2];for(var r=!0,i=0;i<l.length;i++)(!1&a||t>=a)&&Object.keys(s.O).every((e=>s.O[e](l[i])))?l.splice(i--,1):(r=!1,a<t&&(t=a));if(r){e.splice(u--,1);var c=n();void 0!==c&&(o=c)}}return o}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[l,n,a]},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={6815:0,6471:0};s.O.j=o=>0===e[o];var o=(o,l)=>{var n,a,t=l[0],r=l[1],i=l[2],c=0;if(t.some((o=>0!==e[o]))){for(n in r)s.o(r,n)&&(s.m[n]=r[n]);if(i)var u=i(s)}for(o&&o(l);c<t.length;c++)a=t[c],s.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return s.O(u)},l=self.webpackChunk=self.webpackChunk||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var n=s.O(void 0,[6471],(()=>s(2849)));n=s.O(n)})(); -
snow-monkey-blocks/trunk/dist/blocks/spider-slider/index.asset.php
r3194215 r3196970 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' => ' ed27845c2f0215c9a603');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' => '9728203b4a23ade2446e'); -
snow-monkey-blocks/trunk/dist/blocks/spider-slider/index.js
r3194215 r3196970 1 (()=>{var e,s={6427:(e,s,i)=>{"use strict";const a=window.wp.blocks,t=window.wp.i18n,l=JSON.parse('{"UU":"snow-monkey-blocks/spider-slider","uK":{"images":{"type":"array","default":[],"source":"query","selector":".smb-spider-slider .spider__slide","query":{"url":{"type":"string","source":"attribute","selector":".spider__figure","attribute":"src"},"alt":{"type":"string","source":"attribute","selector":".spider__figure","attribute":"alt"},"id":{"type":"string","source":"attribute","selector":".spider__figure","attribute":"data-image-id"},"width":{"type":"number","source":"attribute","selector":".spider__figure","attribute":"width"},"height":{"type":"number","source":"attribute","selector":".spider__figure","attribute":"height"},"caption":{"type":"string","source":"html","selector":".smb-spider-slider__item__caption","default":""}}},"sizeSlug":{"type":"string","default":"full"},"dots":{"type":"boolean","default":false},"dotsToThumbnail":{"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","default":""},"aspectRatio":{"type":"string","default":""},"displayCaption":{"type":"boolean","default":false},"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}},"xY":{"align":["wide","full"],"spacing":{"margin":true}}}'),d=window.ReactJSXRuntime,r=(0,d.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,d.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,d.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,d.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,d.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 o=i(6942),n=i.n(o);const c=window.wp.blockEditor, h=window.wp.components,u=window.wp.data,m=window.wp.element,p=(0,m.forwardRef)((function({icon:e,size:s=24,...i},a){return(0,m.cloneElement)(e,{width:s,height:s,...i,ref:a})})),_=window.wp.primitives,g=(0,d.jsx)(_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,d.jsx)(_.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 f(e){const{desktop:s,tablet:i,mobile:a}=e,t=[];return s&&t.push({name:"desktop",title:(0,d.jsx)(h.Dashicon,{icon:"desktop"})}),i&&t.push({name:"tablet",title:(0,d.jsx)(h.Dashicon,{icon:"tablet"})}),a&&t.push({name:"mobile",title:(0,d.jsx)(h.Dashicon,{icon:"smartphone"})}),(0,d.jsx)(h.TabPanel,{className:"smb-inspector-tabs",tabs:t,children:e=>{if(e.name){if("desktop"===e.name)return s();if("tablet"===e.name)return i();if("mobile"===e.name)return a()}}})}window.lodash;const w=(e,s=0,i=null)=>(e=Number(e),(isNaN(e)||e<s)&&(e=s),null!==i&&e>i&&(e=i),e);const x=["image"],b="full",v=l.uK,j=l.xY,N=[{attributes:{...v},supports:{...j},save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:l,dots:r,dotsToThumbnail:o,fade:h,shuffle:u,shifted:m,gutter:p,displayCaption:_,interval:g,autoplayButton:f,duration:w,lgSlidesToShow:x,mdSlidesToShow:b,smSlidesToShow:v}=e;if(!i.length)return null;const j="wide"===e.align,N="full"===e.align,y=m&&!h&&(j||N),k=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":y,[`smb-spider-slider--gutter-${p}`]:!!p});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:k}),"data-fade":h?"true":"false","data-shuffle":u?"true":"false","data-interval":0<g?1e3*g:void 0,"data-duration":0<w?1e3*w:void 0,"data-lg-slide-to-show":!h&&1<x?x:void 0,"data-md-slide-to-show":!h&&1<b?b:void 0,"data-sm-slide-to-show":!h&&1<v?v:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[y&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height,"data-image-id":e.id})}),_&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),l&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<g&&f||r)&&(0,d.jsxs)("div",{className:"spider__dots","data-thumbnails":o?"true":"false",children:[f&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{className:"spider__stop",title:(0,t.__)("Pause autoplay","snow-monkey-blocks"),children:"⏸"}),(0,d.jsx)("button",{className:"spider__start",title:(0,t.__)("Start autoplay","snow-monkey-blocks"),children:"▶"})]}),r&&i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:o?(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))]})]})}},{attributes:{...v},supports:{...j},save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:t,dots:l,dotsToThumbnail:r,fade:o,shifted:h,gutter:u,displayCaption:m,interval:p,duration:_,lgSlidesToShow:g,mdSlidesToShow:f,smSlidesToShow:w}=e;if(!i.length)return null;const x="wide"===e.align,b="full"===e.align,v=h&&!o&&(x||b),j=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":v,[`smb-spider-slider--gutter-${u}`]:!!u});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:j}),"data-fade":o?"true":"false","data-interval":0<p?1e3*p:void 0,"data-duration":0<_?1e3*_:void 0,"data-lg-slide-to-show":!o&&1<g?g:void 0,"data-md-slide-to-show":!o&&1<f?f:void 0,"data-sm-slide-to-show":!o&&1<w?w:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[v&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height,"data-image-id":e.id})}),m&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),t&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),l&&(0,d.jsx)("div",{className:"spider__dots","data-thumbnails":r?"true":"false",children:i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:r?(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))})]})}},{attributes:{...v},supports:{...j},save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:t,dots:l,dotsToThumbnail:r,fade:o,shifted:h,gutter:u,displayCaption:m,interval:p,duration:_,lgSlidesToShow:g,mdSlidesToShow:f,smSlidesToShow:w}=e;if(!i.length)return null;const x="wide"===e.align,b="full"===e.align,v=h&&!o&&(x||b),j=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":v,[`smb-spider-slider--gutter-${u}`]:!!u});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:j}),"data-fade":o?"true":"false","data-interval":0<p?1e3*p:void 0,"data-duration":0<_?1e3*_:void 0,"data-lg-slide-to-show":!o&&1<g?g:void 0,"data-md-slide-to-show":!o&&1<f?f:void 0,"data-sm-slide-to-show":!o&&1<w?w:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[v&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height,"data-image-id":e.id})}),m&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),t&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),l&&(0,d.jsx)("div",{className:"spider__dots","data-thumbnails":r?"true":"false",children:i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:r?(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))})]})}},{attributes:{...v},supports:{...j},save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:t,dots:l,dotsToThumbnail:r,fade:o,shifted:h,gutter:u,displayCaption:m,interval:p,lgSlidesToShow:_,mdSlidesToShow:g,smSlidesToShow:f}=e;if(!i.length)return null;const w="wide"===e.align,x="full"===e.align,b=!!h&&!o,v=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":b,[`smb-spider-slider--gutter-${u}`]:!!u});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:v}),"data-fade":o?"true":"false","data-interval":0<p?1e3*p:void 0,"data-lg-slide-to-show":!o&&1<_?_:void 0,"data-md-slide-to-show":!o&&1<g?g:void 0,"data-sm-slide-to-show":!o&&1<f?f:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[(x||w)&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height,"data-image-id":e.id})}),m&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),t&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),l&&(0,d.jsx)("div",{className:"spider__dots","data-thumbnails":r?"true":"false",children:i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:r?(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))})]})}},{attributes:{...v},supports:{...j},save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:t,dots:l,dotsToThumbnail:r,fade:o,shifted:h,gutter:u,displayCaption:m,interval:p,lgSlidesToShow:_,mdSlidesToShow:g,smSlidesToShow:f}=e;if(!i.length)return null;const w=!o&&"full"===e.align,x=!!h&&w,b=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":x,[`smb-spider-slider--gutter-${u}`]:!!u});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:b}),"data-fade":o?"true":"false","data-interval":0<p?1e3*p:void 0,"data-lg-slide-to-show":!o&&1<_?_:void 0,"data-md-slide-to-show":!o&&1<g?g:void 0,"data-sm-slide-to-show":!o&&1<f?f:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[x&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height,"data-image-id":e.id})}),m&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),t&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),l&&(0,d.jsx)("div",{className:"spider__dots","data-thumbnails":r?"true":"false",children:i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:r?(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))})]})}},{attributes:{...v},supports:{align:["wide","full"]},migrate:e=>("16to9"===e.aspectRatio&&(e.aspectRatio="16x9"),"4to3"===e.aspectRatio&&(e.aspectRatio="4x3"),e),save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:t,dots:l,dotsToThumbnail:r,fade:o,displayCaption:h,interval:u,lgSlidesToShow:m,mdSlidesToShow:p,smSlidesToShow:_}=e;if(!i.length)return null;const g=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:g}),"data-fade":o?"true":"false","data-interval":0<u?1e3*u:void 0,"data-lg-slide-to-show":!o&&1<m?m:void 0,"data-md-slide-to-show":!o&&1<p?p:void 0,"data-sm-slide-to-show":!o&&1<_?_:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height,"data-image-id":e.id}),h&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),t&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),l&&(0,d.jsx)("div",{className:"spider__dots","data-thumbnails":r?"true":"false",children:i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:r?(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))})]})}}],y={attributes:{images:[{url:`${smb.pluginUrl}/dist/img/photos/beach-sand-coast2756.jpg`},{url:`${smb.pluginUrl}/dist/img/photos/man-guy-photographer1579.jpg`},{url:`${smb.pluginUrl}/dist/img/photos/building-architecture-sky2096.jpg`}],arrows:!0,dots:!0}};(0,a.registerBlockType)(l.UU,{icon:{foreground:"#cd162c",src:r},keywords:[(0,t.__)("Carousel","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:s,className:i,isSelected:a,clientId:r}){const{images:o,sizeSlug:_,aspectRatio:v,arrows:j,dots:N,dotsToThumbnail:y,fade:k,shuffle:S,shifted:T,gutter:C,displayCaption:B,interval:P,autoplayButton:z,duration:D,lgSlidesToShow:K,mdSlidesToShow:M,smSlidesToShow:H}=e,$=!!o.length,{getSettings:R}=(0,u.useSelect)((e=>({getSettings:e("core/block-editor").getSettings})),[]),{resizedImages:I}=(0,u.useSelect)((e=>({resizedImages:o.map((s=>s.id&&a?e("core").getMedia(s.id,{context:"view"}):null)).filter(Boolean)})),[a,o,r]),V="wide"===e.align,F="full"===e.align,A=!k,O=T&&A&&(V||F),L=(0,m.useRef)(),U=(0,m.useRef)(),Z=(0,m.useRef)(),E=!!L.current&&L.current.offsetWidth;(0,m.useEffect)((()=>{const e=!!L.current&&!!Z.current&&O&&Math.floor(L.current.offsetWidth);e&&(L.current.style.setProperty("--spider--canvas-width",`${e}px`),Z.current.style.width=`${e}px`);const s=!!U.current&&O&&Math.floor(U.current.offsetWidth);s&&L.current.style.setProperty("--spider--reference-width",`${s}px`)}),[E,O]);const G=n()("smb-spider-slider",i,{[`smb-spider-slider--${v}`]:!!v,"smb-spider-slider--shifted":O,[`smb-spider-slider--gutter-${C}`]:!!C}),W=function(e,s,i){return(0,m.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:a}=i();let t={};s&&(t=e.reduce(((e,s)=>{if(!s.id)return e;const i=a.reduce(((e,i)=>{const a=s.sizes?.[i.slug]?.url,t=s.media_details?.sizes?.[i.slug]?.source_url;return{...e,[i.slug]:a||t}}),{});return{...e,[parseInt(s.id,10)]:i}}),{}));const l=Object.values(t);return a.filter((({slug:e})=>l.some((s=>s[e])))).map((({name:e,slug:s})=>({value:s,label:e})))}()),[e,s])}(I,a,R),q=[{value:"",label:(0,t.__)("Default","snow-monkey-blocks")},{value:"16x9",label:(0,t.__)("16:9","snow-monkey-blocks")},{value:"4x3",label:(0,t.__)("4:3","snow-monkey-blocks")}],J=[{value:"",label:(0,t.__)("None","snow-monkey-blocks")},{value:"s",label:(0,t.__)("S","snow-monkey-blocks")},{value:"m",label:(0,t.__)("M","snow-monkey-blocks")},{value:"l",label:(0,t.__)("L","snow-monkey-blocks")}],Y=(0,d.jsx)(c.MediaPlaceholder,{addToGallery:$,isAppender:$,className:i,disableMediaButtons:$&&!a,icon:!$&&"format-gallery",labels:{title:!$&&(0,t.__)("Slider","snow-monkey-blocks"),instructions:!$&&(0,t.__)("Drag images, upload new ones or select files from your library.","snow-monkey-blocks")},onSelect:e=>{const i=e.map((e=>{if(!e.id)return e;const s=e?.sizes[_]?_:b,i=e?.sizes[s]?.url,a=e?.sizes[s]?.width,t=e?.sizes[s]?.height;return{url:i,alt:e.alt,id:e.id,width:a,height:t,caption:e.caption}}));s({images:i})},accept:"image/*",allowedTypes:x,multiple:!0,value:o});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c.InspectorControls,{group:"dimensions",children:(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>C!==l.uK.gutter.default,isShownByDefault:!0,label:(0,t.__)("Gap","snow-monkey-blocks"),onDeselect:()=>s({gutter:l.uK.gutter.default}),panelId:r,children:(0,d.jsx)(h.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Gap","snow-monkey-blocks"),value:C,onChange:e=>s({gutter:e}),options:J})})}),(0,d.jsx)(c.InspectorControls,{children:(0,d.jsxs)(h.__experimentalToolsPanel,{label:(0,t.__)("Block settings","snow-monkey-blocks"),children:[(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>_!==l.uK.sizeSlug.default,isShownByDefault:!0,label:(0,t.__)("Images size","snow-monkey-blocks"),onDeselect:()=>s({sizeSlug:l.uK.sizeSlug.default}),children:(0,d.jsx)(h.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Images size","snow-monkey-blocks"),value:_,options:W,onChange:e=>{const i=I.map((s=>{if(!s.id)return s;const i=s?.media_details?.sizes?.[e]?e:b,a=s?.media_details?.sizes?.[i]?.source_url,t=s?.media_details?.sizes?.[i]?.width,l=s?.media_details?.sizes?.[i]?.height;return{url:a,alt:s.alt,id:s.id,width:t,height:l,caption:s.caption.rendered}}));s({images:i,sizeSlug:e})},help:(0,t.__)("Select the size of the source image.")})}),(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>v!==l.uK.aspectRatio.default,isShownByDefault:!0,label:(0,t.__)("Aspect ratio","snow-monkey-blocks"),onDeselect:()=>s({aspectRatio:l.uK.aspectRatio.default}),children:(0,d.jsx)(h.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Aspect ratio","snow-monkey-blocks"),value:v,onChange:e=>s({aspectRatio:e}),options:q})}),(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>j!==l.uK.arrows.default,isShownByDefault:!0,label:(0,t.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>s({arrows:l.uK.arrows.default}),children:(0,d.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Display arrows","snow-monkey-blocks"),checked:j,onChange:e=>s({arrows:e})})}),(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>N!==l.uK.dots.default,isShownByDefault:!0,label:(0,t.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>s({dots:l.uK.dots.default}),children:(0,d.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Display dots","snow-monkey-blocks"),checked:N,onChange:e=>s({dots:e})})}),N&&(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>y!==l.uK.dotsToThumbnail.default,isShownByDefault:!0,label:(0,t.__)("Change dots to thumbnails","snow-monkey-blocks"),onDeselect:()=>s({dotsToThumbnail:l.uK.dotsToThumbnail.default}),children:(0,d.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Change dots to thumbnails","snow-monkey-blocks"),checked:y,onChange:e=>s({dotsToThumbnail:e})})}),(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>k!==l.uK.fade.default,isShownByDefault:!0,label:(0,t.__)("Fade","snow-monkey-blocks"),onDeselect:()=>s({fade:l.uK.fade.default}),children:(0,d.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Fade","snow-monkey-blocks"),checked:k,onChange:e=>s({fade:e})})}),(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>S!==l.uK.shuffle.default,isShownByDefault:!0,label:(0,t.__)("Shuffle slides","snow-monkey-blocks"),onDeselect:()=>s({shuffle:l.uK.shuffle.default}),children:(0,d.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Shuffle slides","snow-monkey-blocks"),checked:S,onChange:e=>s({shuffle:e})})}),A&&(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>T!==l.uK.shifted.default,isShownByDefault:!0,label:(0,t.__)("Shifting the slider","snow-monkey-blocks"),onDeselect:()=>s({shifted:l.uK.shifted.default}),children:(0,d.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Shifting the slider","snow-monkey-blocks"),help:T&&(!F||!V)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p,{icon:g,style:{fill:"#d94f4f"}}),(0,t.__)("It must be full width (.alignfull) or wide width (.alignwide).","snow-monkey-blocks")]}),checked:T,onChange:e=>s({shifted:e})})}),(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>B!==l.uK.displayCaption.default,isShownByDefault:!0,label:(0,t.__)("Display caption","snow-monkey-blocks"),onDeselect:()=>s({displayCaption:l.uK.displayCaption.default}),children:(0,d.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Display caption","snow-monkey-blocks"),checked:B,onChange:e=>s({displayCaption:e})})}),(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>P!==l.uK.interval.default,isShownByDefault:!0,label:(0,t.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>s({interval:l.uK.interval.default}),children:(0,d.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,t.__)('If "0", no scroll.',"snow-monkey-blocks"),value:P,onChange:e=>s({interval:w(e,0,10)}),min:"0",max:"10"})}),0<P&&(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>z!==l.uK.autoplayButton.default,isShownByDefault:!0,label:(0,t.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>s({autoplayButton:l.uK.autoplayButton.default}),children:(0,d.jsx)(h.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:z,onChange:e=>s({autoplayButton:e})})}),(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>D!==l.uK.duration.default,isShownByDefault:!0,label:(0,t.__)("Animation speed in seconds","snow-monkey-blocks"),onDeselect:()=>s({duration:l.uK.duration.default}),children:(0,d.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Animation speed in seconds","snow-monkey-blocks"),help:(0,t.__)('If "0", default animation speed.',"snow-monkey-blocks"),value:D,onChange:e=>s({duration:w(e,0,10)}),min:"0",max:"5",step:"0.1"})}),!k&&(0,d.jsx)(h.__experimentalToolsPanelItem,{hasValue:()=>K!==l.uK.lgSlidesToShow.default||M!==l.uK.mdSlidesToShow.default||H!==l.uK.smSlidesToShow.default,isShownByDefault:!0,label:(0,t.__)("Slides settings","snow-monkey-blocks"),onDeselect:()=>s({lgSlidesToShow:l.uK.lgSlidesToShow.default,mdSlidesToShow:l.uK.mdSlidesToShow.default,smSlidesToShow:l.uK.smSlidesToShow.default}),children:(0,d.jsx)(f,{desktop:()=>(0,d.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("# of slides to show (Large window)","snow-monkey-blocks"),value:K,onChange:e=>s({lgSlidesToShow:w(e,1,6)}),min:"1",max:6<o.length?6:o.length}),tablet:()=>(0,d.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("# of slides to show (Medium window)","snow-monkey-blocks"),value:M,onChange:e=>s({mdSlidesToShow:w(e,1,6)}),min:"1",max:6<o.length?6:o.length}),mobile:()=>(0,d.jsx)(h.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("# of slides to show (Small window)","snow-monkey-blocks"),value:H,onChange:e=>s({smSlidesToShow:w(e,1,6)}),min:"1",max:6<o.length?6:o.length})})})]})}),$?(0,d.jsxs)("div",{...(0,c.useBlockProps)({className:G,ref:L}),"data-fade":k?"true":"false","data-shuffle":S?"true":"false","data-lg-slide-to-show":!k&&1<K?K:void 0,"data-md-slide-to-show":!k&&1<M?M:void 0,"data-sm-slide-to-show":!k&&1<H?H:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[O&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference",ref:U})}),(0,d.jsx)("div",{className:"spider__canvas",ref:Z,children:o.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height,"data-image-id":e.id})}),B&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),j&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<P&&z||N)&&(0,d.jsxs)("div",{className:"spider__dots","data-thumbnails":y?"true":"false",children:[z&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{className:"spider__stop",children:(0,d.jsxs)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,t.__)("Pause autoplay","snow-monkey-blocks"),children:[(0,d.jsx)("rect",{width:"5",height:"16",fill:"currentColor"}),(0,d.jsx)("rect",{x:"7",width:"5",height:"16",fill:"currentColor"})]})}),(0,d.jsx)("button",{className:"spider__start",children:(0,d.jsx)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,t.__)("Start autoplay","snow-monkey-blocks"),children:(0,d.jsx)("path",{d:"M12 8L-2.29967e-06 16L-2.29967e-06 0L12 8Z",fill:"currentColor"})})})]}),N&&o.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:y?(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))]}),Y]}):(0,d.jsx)("div",{...(0,c.useBlockProps)({ref:L}),children:Y})]})},save:function({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:l,dots:r,dotsToThumbnail:o,fade:h,shuffle:u,shifted:m,gutter:p,displayCaption:_,interval:g,autoplayButton:f,duration:w,lgSlidesToShow:x,mdSlidesToShow:b,smSlidesToShow:v}=e;if(!i.length)return null;const j="wide"===e.align,N="full"===e.align,y=m&&!h&&(j||N),k=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":y,[`smb-spider-slider--gutter-${p}`]:!!p});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:k}),"data-fade":h?"true":"false","data-shuffle":u?"true":"false","data-interval":0<g?1e3*g:void 0,"data-duration":0<w?1e3*w:void 0,"data-lg-slide-to-show":!h&&1<x?x:void 0,"data-md-slide-to-show":!h&&1<b?b:void 0,"data-sm-slide-to-show":!h&&1<v?v:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[y&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height,"data-image-id":e.id})}),_&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),l&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<g&&f||r)&&(0,d.jsxs)("div",{className:"spider__dots","data-thumbnails":o?"true":"false",children:[f&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{className:"spider__stop",children:(0,d.jsxs)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,t.__)("Pause autoplay","snow-monkey-blocks"),children:[(0,d.jsx)("rect",{width:"5",height:"16",fill:"currentColor"}),(0,d.jsx)("rect",{x:"7",width:"5",height:"16",fill:"currentColor"})]})}),(0,d.jsx)("button",{className:"spider__start",children:(0,d.jsx)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,t.__)("Start autoplay","snow-monkey-blocks"),children:(0,d.jsx)("path",{d:"M12 8L-2.29967e-06 16L-2.29967e-06 0L12 8Z",fill:"currentColor"})})})]}),r&&i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:o?(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))]})]})},deprecated:N,example:y})},6942:(e,s)=>{var i;!function(){"use strict";var a={}.hasOwnProperty;function t(){for(var e="",s=0;s<arguments.length;s++){var i=arguments[s];i&&(e=d(e,l(i)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return t.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var s="";for(var i in e)a.call(e,i)&&e[i]&&(s=d(s,i));return s}function d(e,s){return s?e?e+" "+s:e+s:e}e.exports?(t.default=t,e.exports=t):void 0===(i=function(){return t}.apply(s,[]))||(e.exports=i)}()}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var l=i[e]={exports:{}};return s[e](l,l.exports,a),l.exports}a.m=s,e=[],a.O=(s,i,t,l)=>{if(!i){var d=1/0;for(c=0;c<e.length;c++){i=e[c][0],t=e[c][1],l=e[c][2];for(var r=!0,o=0;o<i.length;o++)(!1&l||d>=l)&&Object.keys(a.O).every((e=>a.O[e](i[o])))?i.splice(o--,1):(r=!1,l<d&&(d=l));if(r){e.splice(c--,1);var n=t();void 0!==n&&(s=n)}}return s}l=l||0;for(var c=e.length;c>0&&e[c-1][2]>l;c--)e[c]=e[c-1];e[c]=[i,t,l]},a.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return a.d(s,{a:s}),s},a.d=(e,s)=>{for(var i in s)a.o(s,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})},a.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{var e={9342:0,5186:0};a.O.j=s=>0===e[s];var s=(s,i)=>{var t,l,d=i[0],r=i[1],o=i[2],n=0;if(d.some((s=>0!==e[s]))){for(t in r)a.o(r,t)&&(a.m[t]=r[t]);if(o)var c=o(a)}for(s&&s(i);n<d.length;n++)l=d[n],a.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return a.O(c)},i=self.webpackChunk=self.webpackChunk||[];i.forEach(s.bind(null,0)),i.push=s.bind(null,i.push.bind(i))})();var t=a.O(void 0,[5186],(()=>a(6427)));t=a.O(t)})();1 (()=>{var e,s={6427:(e,s,i)=>{"use strict";const a=window.wp.blocks,t=window.wp.i18n,l=JSON.parse('{"UU":"snow-monkey-blocks/spider-slider","uK":{"images":{"type":"array","default":[],"source":"query","selector":".smb-spider-slider .spider__slide","query":{"url":{"type":"string","source":"attribute","selector":".spider__figure","attribute":"src"},"alt":{"type":"string","source":"attribute","selector":".spider__figure","attribute":"alt"},"id":{"type":"string","source":"attribute","selector":".spider__figure","attribute":"data-image-id"},"width":{"type":"number","source":"attribute","selector":".spider__figure","attribute":"width"},"height":{"type":"number","source":"attribute","selector":".spider__figure","attribute":"height"},"caption":{"type":"string","source":"html","selector":".smb-spider-slider__item__caption","default":""}}},"sizeSlug":{"type":"string","default":"full"},"dots":{"type":"boolean","default":false},"dotsToThumbnail":{"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","default":""},"aspectRatio":{"type":"string","default":""},"displayCaption":{"type":"boolean","default":false},"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}},"xY":{"align":["wide","full"],"spacing":{"margin":true}}}'),d=window.ReactJSXRuntime,r=(0,d.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,d.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,d.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,d.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,d.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 o=i(6942),n=i.n(o);const c=window.wp.blockEditor,u=window.wp.components,h=window.wp.data,m=window.wp.element,p=(0,m.forwardRef)((function({icon:e,size:s=24,...i},a){return(0,m.cloneElement)(e,{width:s,height:s,...i,ref:a})})),_=window.wp.primitives,g=(0,d.jsx)(_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,d.jsx)(_.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 f(e){const{desktop:s,tablet:i,mobile:a}=e,t=[];return s&&t.push({name:"desktop",title:(0,d.jsx)(u.Dashicon,{icon:"desktop"})}),i&&t.push({name:"tablet",title:(0,d.jsx)(u.Dashicon,{icon:"tablet"})}),a&&t.push({name:"mobile",title:(0,d.jsx)(u.Dashicon,{icon:"smartphone"})}),(0,d.jsx)(u.TabPanel,{className:"smb-inspector-tabs",tabs:t,children:e=>{if(e.name){if("desktop"===e.name)return s();if("tablet"===e.name)return i();if("mobile"===e.name)return a()}}})}window.lodash;const w=(e,s=0,i=null)=>(e=Number(e),(isNaN(e)||e<s)&&(e=s),null!==i&&e>i&&(e=i),e);const x=["image"],b="full",v=l.uK,j=l.xY,N=[{attributes:{...v},supports:{...j},save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:l,dots:r,dotsToThumbnail:o,fade:u,shuffle:h,shifted:m,gutter:p,displayCaption:_,interval:g,autoplayButton:f,duration:w,lgSlidesToShow:x,mdSlidesToShow:b,smSlidesToShow:v}=e;if(!i.length)return null;const j="wide"===e.align,N="full"===e.align,y=m&&!u&&(j||N),k=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":y,[`smb-spider-slider--gutter-${p}`]:!!p});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:k}),"data-fade":u?"true":"false","data-shuffle":h?"true":"false","data-interval":0<g?1e3*g:void 0,"data-duration":0<w?1e3*w:void 0,"data-lg-slide-to-show":!u&&1<x?x:void 0,"data-md-slide-to-show":!u&&1<b?b:void 0,"data-sm-slide-to-show":!u&&1<v?v:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[y&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height,"data-image-id":e.id})}),_&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),l&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<g&&f||r)&&(0,d.jsxs)("div",{className:"spider__dots","data-thumbnails":o?"true":"false",children:[f&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{className:"spider__stop",title:(0,t.__)("Pause autoplay","snow-monkey-blocks"),children:"⏸"}),(0,d.jsx)("button",{className:"spider__start",title:(0,t.__)("Start autoplay","snow-monkey-blocks"),children:"▶"})]}),r&&i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:o?(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))]})]})}},{attributes:{...v},supports:{...j},save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:t,dots:l,dotsToThumbnail:r,fade:o,shifted:u,gutter:h,displayCaption:m,interval:p,duration:_,lgSlidesToShow:g,mdSlidesToShow:f,smSlidesToShow:w}=e;if(!i.length)return null;const x="wide"===e.align,b="full"===e.align,v=u&&!o&&(x||b),j=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":v,[`smb-spider-slider--gutter-${h}`]:!!h});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:j}),"data-fade":o?"true":"false","data-interval":0<p?1e3*p:void 0,"data-duration":0<_?1e3*_:void 0,"data-lg-slide-to-show":!o&&1<g?g:void 0,"data-md-slide-to-show":!o&&1<f?f:void 0,"data-sm-slide-to-show":!o&&1<w?w:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[v&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height,"data-image-id":e.id})}),m&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),t&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),l&&(0,d.jsx)("div",{className:"spider__dots","data-thumbnails":r?"true":"false",children:i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:r?(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))})]})}},{attributes:{...v},supports:{...j},save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:t,dots:l,dotsToThumbnail:r,fade:o,shifted:u,gutter:h,displayCaption:m,interval:p,duration:_,lgSlidesToShow:g,mdSlidesToShow:f,smSlidesToShow:w}=e;if(!i.length)return null;const x="wide"===e.align,b="full"===e.align,v=u&&!o&&(x||b),j=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":v,[`smb-spider-slider--gutter-${h}`]:!!h});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:j}),"data-fade":o?"true":"false","data-interval":0<p?1e3*p:void 0,"data-duration":0<_?1e3*_:void 0,"data-lg-slide-to-show":!o&&1<g?g:void 0,"data-md-slide-to-show":!o&&1<f?f:void 0,"data-sm-slide-to-show":!o&&1<w?w:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[v&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height,"data-image-id":e.id})}),m&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),t&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),l&&(0,d.jsx)("div",{className:"spider__dots","data-thumbnails":r?"true":"false",children:i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:r?(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))})]})}},{attributes:{...v},supports:{...j},save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:t,dots:l,dotsToThumbnail:r,fade:o,shifted:u,gutter:h,displayCaption:m,interval:p,lgSlidesToShow:_,mdSlidesToShow:g,smSlidesToShow:f}=e;if(!i.length)return null;const w="wide"===e.align,x="full"===e.align,b=!!u&&!o,v=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":b,[`smb-spider-slider--gutter-${h}`]:!!h});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:v}),"data-fade":o?"true":"false","data-interval":0<p?1e3*p:void 0,"data-lg-slide-to-show":!o&&1<_?_:void 0,"data-md-slide-to-show":!o&&1<g?g:void 0,"data-sm-slide-to-show":!o&&1<f?f:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[(x||w)&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height,"data-image-id":e.id})}),m&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),t&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),l&&(0,d.jsx)("div",{className:"spider__dots","data-thumbnails":r?"true":"false",children:i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:r?(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))})]})}},{attributes:{...v},supports:{...j},save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:t,dots:l,dotsToThumbnail:r,fade:o,shifted:u,gutter:h,displayCaption:m,interval:p,lgSlidesToShow:_,mdSlidesToShow:g,smSlidesToShow:f}=e;if(!i.length)return null;const w=!o&&"full"===e.align,x=!!u&&w,b=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":x,[`smb-spider-slider--gutter-${h}`]:!!h});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:b}),"data-fade":o?"true":"false","data-interval":0<p?1e3*p:void 0,"data-lg-slide-to-show":!o&&1<_?_:void 0,"data-md-slide-to-show":!o&&1<g?g:void 0,"data-sm-slide-to-show":!o&&1<f?f:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[x&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height,"data-image-id":e.id})}),m&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),t&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),l&&(0,d.jsx)("div",{className:"spider__dots","data-thumbnails":r?"true":"false",children:i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:r?(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))})]})}},{attributes:{...v},supports:{align:["wide","full"]},migrate:e=>("16to9"===e.aspectRatio&&(e.aspectRatio="16x9"),"4to3"===e.aspectRatio&&(e.aspectRatio="4x3"),e),save({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:t,dots:l,dotsToThumbnail:r,fade:o,displayCaption:u,interval:h,lgSlidesToShow:m,mdSlidesToShow:p,smSlidesToShow:_}=e;if(!i.length)return null;const g=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:g}),"data-fade":o?"true":"false","data-interval":0<h?1e3*h:void 0,"data-lg-slide-to-show":!o&&1<m?m:void 0,"data-md-slide-to-show":!o&&1<p?p:void 0,"data-sm-slide-to-show":!o&&1<_?_:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height,"data-image-id":e.id}),u&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),t&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),l&&(0,d.jsx)("div",{className:"spider__dots","data-thumbnails":r?"true":"false",children:i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:r?(0,d.jsx)("img",{className:"spider__figure",src:e.url,alt:e.alt,width:e.width,height:e.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))})]})}}],y={attributes:{images:[{url:`${smb.pluginUrl}/dist/img/photos/beach-sand-coast2756.jpg`},{url:`${smb.pluginUrl}/dist/img/photos/man-guy-photographer1579.jpg`},{url:`${smb.pluginUrl}/dist/img/photos/building-architecture-sky2096.jpg`}],arrows:!0,dots:!0}};(0,a.registerBlockType)(l.UU,{icon:{foreground:"#cd162c",src:r},keywords:[(0,t.__)("Carousel","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:s,className:i,isSelected:a,clientId:r}){const{images:o,sizeSlug:_,aspectRatio:v,arrows:j,dots:N,dotsToThumbnail:y,fade:k,shuffle:S,shifted:T,gutter:C,displayCaption:B,interval:P,autoplayButton:z,duration:D,lgSlidesToShow:K,mdSlidesToShow:M,smSlidesToShow:H}=e,$=!!o.length,{getSettings:R}=(0,h.useSelect)((e=>({getSettings:e("core/block-editor").getSettings})),[]),{resizedImages:I}=(0,h.useSelect)((e=>({resizedImages:o.map((s=>s.id&&a?e("core").getMedia(s.id,{context:"view"}):null)).filter(Boolean)})),[a,o,r]),V="wide"===e.align,F="full"===e.align,O=!k,A=T&&O&&(V||F),L=(0,m.useRef)(),U=(0,m.useRef)(),Z=(0,m.useRef)(),E=!!L.current&&L.current.offsetWidth;(0,m.useEffect)((()=>{const e=!!L.current&&!!Z.current&&A&&Math.floor(L.current.offsetWidth);e&&(L.current.style.setProperty("--spider--canvas-width",`${e}px`),Z.current.style.width=`${e}px`);const s=!!U.current&&A&&Math.floor(U.current.offsetWidth);s&&L.current.style.setProperty("--spider--reference-width",`${s}px`)}),[E,A]);const G=n()("smb-spider-slider",i,{[`smb-spider-slider--${v}`]:!!v,"smb-spider-slider--shifted":A,[`smb-spider-slider--gutter-${C}`]:!!C}),W=function(e,s,i){return(0,m.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:a}=i();let t={};s&&(t=e.reduce(((e,s)=>{if(!s.id)return e;const i=a.reduce(((e,i)=>{const a=s.sizes?.[i.slug]?.url,t=s.media_details?.sizes?.[i.slug]?.source_url;return{...e,[i.slug]:a||t}}),{});return{...e,[parseInt(s.id,10)]:i}}),{}));const l=Object.values(t);return a.filter((({slug:e})=>l.some((s=>s[e])))).map((({name:e,slug:s})=>({value:s,label:e})))}()),[e,s])}(I,a,R),q=[{value:"",label:(0,t.__)("Default","snow-monkey-blocks")},{value:"16x9",label:(0,t.__)("16:9","snow-monkey-blocks")},{value:"4x3",label:(0,t.__)("4:3","snow-monkey-blocks")}],J=[{value:"",label:(0,t.__)("None","snow-monkey-blocks")},{value:"s",label:(0,t.__)("S","snow-monkey-blocks")},{value:"m",label:(0,t.__)("M","snow-monkey-blocks")},{value:"l",label:(0,t.__)("L","snow-monkey-blocks")}],Y=(0,d.jsx)(c.MediaPlaceholder,{addToGallery:$,isAppender:$,className:i,disableMediaButtons:$&&!a,icon:!$&&"format-gallery",labels:{title:!$&&(0,t.__)("Slider","snow-monkey-blocks"),instructions:!$&&(0,t.__)("Drag images, upload new ones or select files from your library.","snow-monkey-blocks")},onSelect:e=>{const i=e.map((e=>{if(!e.id)return e;const s=e?.sizes[_]?_:b,i=e?.sizes[s]?.url,a=e?.sizes[s]?.width,t=e?.sizes[s]?.height;return{url:i,alt:e.alt,id:e.id,width:a,height:t,caption:e.caption}}));s({images:i})},accept:"image/*",allowedTypes:x,multiple:!0,value:o});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c.InspectorControls,{group:"dimensions",children:(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>C!==l.uK.gutter.default,isShownByDefault:!0,label:(0,t.__)("Gap","snow-monkey-blocks"),onDeselect:()=>s({gutter:l.uK.gutter.default}),panelId:r,children:(0,d.jsx)(u.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Gap","snow-monkey-blocks"),value:C,onChange:e=>s({gutter:e}),options:J})})}),(0,d.jsx)(c.InspectorControls,{children:(0,d.jsxs)(u.__experimentalToolsPanel,{label:(0,t.__)("Block settings","snow-monkey-blocks"),children:[(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>_!==l.uK.sizeSlug.default,isShownByDefault:!0,label:(0,t.__)("Images size","snow-monkey-blocks"),onDeselect:()=>s({sizeSlug:l.uK.sizeSlug.default}),children:(0,d.jsx)(u.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Images size","snow-monkey-blocks"),value:_,options:W,onChange:e=>{const i=I.map((s=>{if(!s.id)return s;const i=s?.media_details?.sizes?.[e]?e:b,a=s?.media_details?.sizes?.[i]?.source_url,t=s?.media_details?.sizes?.[i]?.width,l=s?.media_details?.sizes?.[i]?.height;return{url:a,alt:s.alt,id:s.id,width:t,height:l,caption:s.caption.rendered}}));s({images:i,sizeSlug:e})},help:(0,t.__)("Select the size of the source image.")})}),(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>v!==l.uK.aspectRatio.default,isShownByDefault:!0,label:(0,t.__)("Aspect ratio","snow-monkey-blocks"),onDeselect:()=>s({aspectRatio:l.uK.aspectRatio.default}),children:(0,d.jsx)(u.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Aspect ratio","snow-monkey-blocks"),value:v,onChange:e=>s({aspectRatio:e}),options:q})}),(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>j!==l.uK.arrows.default,isShownByDefault:!0,label:(0,t.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>s({arrows:l.uK.arrows.default}),children:(0,d.jsx)(u.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Display arrows","snow-monkey-blocks"),checked:j,onChange:e=>s({arrows:e})})}),(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>N!==l.uK.dots.default,isShownByDefault:!0,label:(0,t.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>s({dots:l.uK.dots.default}),children:(0,d.jsx)(u.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Display dots","snow-monkey-blocks"),checked:N,onChange:e=>s({dots:e})})}),N&&(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>y!==l.uK.dotsToThumbnail.default,isShownByDefault:!0,label:(0,t.__)("Change dots to thumbnails","snow-monkey-blocks"),onDeselect:()=>s({dotsToThumbnail:l.uK.dotsToThumbnail.default}),children:(0,d.jsx)(u.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Change dots to thumbnails","snow-monkey-blocks"),checked:y,onChange:e=>s({dotsToThumbnail:e})})}),(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>k!==l.uK.fade.default,isShownByDefault:!0,label:(0,t.__)("Fade","snow-monkey-blocks"),onDeselect:()=>s({fade:l.uK.fade.default}),children:(0,d.jsx)(u.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Fade","snow-monkey-blocks"),checked:k,onChange:e=>s({fade:e})})}),(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>S!==l.uK.shuffle.default,isShownByDefault:!0,label:(0,t.__)("Shuffle slides","snow-monkey-blocks"),onDeselect:()=>s({shuffle:l.uK.shuffle.default}),children:(0,d.jsx)(u.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Shuffle slides","snow-monkey-blocks"),checked:S,onChange:e=>s({shuffle:e})})}),O&&(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>T!==l.uK.shifted.default,isShownByDefault:!0,label:(0,t.__)("Shifting the slider","snow-monkey-blocks"),onDeselect:()=>s({shifted:l.uK.shifted.default}),children:(0,d.jsx)(u.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Shifting the slider","snow-monkey-blocks"),help:T&&(!F||!V)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p,{icon:g,style:{fill:"#d94f4f"}}),(0,t.__)("It must be full width (.alignfull) or wide width (.alignwide).","snow-monkey-blocks")]}),checked:T,onChange:e=>s({shifted:e})})}),(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>B!==l.uK.displayCaption.default,isShownByDefault:!0,label:(0,t.__)("Display caption","snow-monkey-blocks"),onDeselect:()=>s({displayCaption:l.uK.displayCaption.default}),children:(0,d.jsx)(u.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Display caption","snow-monkey-blocks"),checked:B,onChange:e=>s({displayCaption:e})})}),(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>P!==l.uK.interval.default,isShownByDefault:!0,label:(0,t.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>s({interval:l.uK.interval.default}),children:(0,d.jsx)(u.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,t.__)('If "0", no scroll.',"snow-monkey-blocks"),value:P,onChange:e=>s({interval:w(e,0,10)}),min:"0",max:"10"})}),0<P&&(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>z!==l.uK.autoplayButton.default,isShownByDefault:!0,label:(0,t.__)("Display pause button for autoplay","snow-monkey-blocks"),onDeselect:()=>s({autoplayButton:l.uK.autoplayButton.default}),children:(0,d.jsx)(u.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:z,onChange:e=>s({autoplayButton:e})})}),(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>D!==l.uK.duration.default,isShownByDefault:!0,label:(0,t.__)("Animation speed in seconds","snow-monkey-blocks"),onDeselect:()=>s({duration:l.uK.duration.default}),children:(0,d.jsx)(u.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Animation speed in seconds","snow-monkey-blocks"),help:(0,t.__)('If "0", default animation speed.',"snow-monkey-blocks"),value:D,onChange:e=>s({duration:w(e,0,10)}),min:"0",max:"5",step:"0.1"})}),!k&&(0,d.jsx)(u.__experimentalToolsPanelItem,{hasValue:()=>K!==l.uK.lgSlidesToShow.default||M!==l.uK.mdSlidesToShow.default||H!==l.uK.smSlidesToShow.default,isShownByDefault:!0,label:(0,t.__)("Slides settings","snow-monkey-blocks"),onDeselect:()=>s({lgSlidesToShow:l.uK.lgSlidesToShow.default,mdSlidesToShow:l.uK.mdSlidesToShow.default,smSlidesToShow:l.uK.smSlidesToShow.default}),children:(0,d.jsx)(f,{desktop:()=>(0,d.jsx)(u.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("# of slides to show (Large window)","snow-monkey-blocks"),value:K,onChange:e=>s({lgSlidesToShow:w(e,1,6)}),min:"1",max:6<o.length?6:o.length}),tablet:()=>(0,d.jsx)(u.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("# of slides to show (Medium window)","snow-monkey-blocks"),value:M,onChange:e=>s({mdSlidesToShow:w(e,1,6)}),min:"1",max:6<o.length?6:o.length}),mobile:()=>(0,d.jsx)(u.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("# of slides to show (Small window)","snow-monkey-blocks"),value:H,onChange:e=>s({smSlidesToShow:w(e,1,6)}),min:"1",max:6<o.length?6:o.length})})})]})}),$?(0,d.jsxs)("div",{...(0,c.useBlockProps)({className:G,ref:L}),"data-fade":k?"true":"false","data-shuffle":S?"true":"false","data-lg-slide-to-show":!k&&1<K?K:void 0,"data-md-slide-to-show":!k&&1<M?M:void 0,"data-sm-slide-to-show":!k&&1<H?H:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[A&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference",ref:U})}),(0,d.jsx)("div",{className:"spider__canvas",ref:Z,children:o.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height,"data-image-id":e.id})}),B&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),j&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<P&&z||N)&&(0,d.jsxs)("div",{className:"spider__dots","data-thumbnails":y?"true":"false",children:[z&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{className:"spider__stop",children:(0,d.jsxs)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,t.__)("Pause autoplay","snow-monkey-blocks"),children:[(0,d.jsx)("rect",{width:"5",height:"16",fill:"currentColor"}),(0,d.jsx)("rect",{x:"7",width:"5",height:"16",fill:"currentColor"})]})}),(0,d.jsx)("button",{className:"spider__start",children:(0,d.jsx)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,t.__)("Start autoplay","snow-monkey-blocks"),children:(0,d.jsx)("path",{d:"M12 8L-2.29967e-06 16L-2.29967e-06 0L12 8Z",fill:"currentColor"})})})]}),N&&o.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:y?(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))]}),Y]}):(0,d.jsx)("div",{...(0,c.useBlockProps)({ref:L}),children:Y})]})},save:function({attributes:e,className:s}){const{images:i,aspectRatio:a,arrows:l,dots:r,dotsToThumbnail:o,fade:u,shuffle:h,shifted:m,gutter:p,displayCaption:_,interval:g,autoplayButton:f,duration:w,lgSlidesToShow:x,mdSlidesToShow:b,smSlidesToShow:v}=e;if(!i.length)return null;const j="wide"===e.align,N="full"===e.align,y=m&&!u&&(j||N),k=n()("smb-spider-slider",s,{[`smb-spider-slider--${a}`]:!!a,"smb-spider-slider--shifted":y,[`smb-spider-slider--gutter-${p}`]:!!p});return(0,d.jsxs)("div",{...c.useBlockProps.save({className:k}),"data-fade":u?"true":"false","data-shuffle":h?"true":"false","data-interval":0<g?1e3*g:void 0,"data-duration":0<w?1e3*w:void 0,"data-lg-slide-to-show":!u&&1<x?x:void 0,"data-md-slide-to-show":!u&&1<b?b:void 0,"data-sm-slide-to-show":!u&&1<v?v:void 0,children:[(0,d.jsxs)("div",{className:"spider",children:[y&&(0,d.jsx)("div",{className:"c-container",children:(0,d.jsx)("div",{className:"spider__reference"})}),(0,d.jsx)("div",{className:"spider__canvas",children:i.map(((e,s)=>(0,d.jsxs)("div",{className:"spider__slide","data-id":s,children:[(0,d.jsx)("div",{className:"smb-spider-slider__figure-wrapper",children:(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height,"data-image-id":e.id})}),_&&!!e.caption&&(0,d.jsx)("div",{className:"smb-spider-slider__item",children:(0,d.jsx)("div",{className:"smb-spider-slider__item__caption",children:e.caption})})]},s)))}),l&&(0,d.jsxs)("div",{className:"spider__arrows",children:[(0,d.jsx)("button",{className:"spider__arrow","data-direction":"prev",children:"Prev"}),(0,d.jsx)("button",{className:"spider__arrow","data-direction":"next",children:"Next"})]})]}),(0<g&&f||r)&&(0,d.jsxs)("div",{className:"spider__dots","data-thumbnails":o?"true":"false",children:[f&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{className:"spider__stop",children:(0,d.jsxs)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,t.__)("Pause autoplay","snow-monkey-blocks"),children:[(0,d.jsx)("rect",{width:"5",height:"16",fill:"currentColor"}),(0,d.jsx)("rect",{x:"7",width:"5",height:"16",fill:"currentColor"})]})}),(0,d.jsx)("button",{className:"spider__start",children:(0,d.jsx)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:(0,t.__)("Start autoplay","snow-monkey-blocks"),children:(0,d.jsx)("path",{d:"M12 8L-2.29967e-06 16L-2.29967e-06 0L12 8Z",fill:"currentColor"})})})]}),r&&i.map(((e,s)=>(0,d.jsx)("button",{className:"spider__dot","data-id":s,children:o?(0,d.jsx)("img",{className:`spider__figure wp-image-${e.id}`,src:e.url,alt:e.alt,width:e.width||e.sizes?.full?.width,height:e.height||e.sizes?.full?.height}):(0,d.jsx)(d.Fragment,{children:s})},s)))]})]})},deprecated:N,example:y})},6942:(e,s)=>{var i;!function(){"use strict";var a={}.hasOwnProperty;function t(){for(var e="",s=0;s<arguments.length;s++){var i=arguments[s];i&&(e=d(e,l(i)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return t.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var s="";for(var i in e)a.call(e,i)&&e[i]&&(s=d(s,i));return s}function d(e,s){return s?e?e+" "+s:e+s:e}e.exports?(t.default=t,e.exports=t):void 0===(i=function(){return t}.apply(s,[]))||(e.exports=i)}()}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var l=i[e]={exports:{}};return s[e](l,l.exports,a),l.exports}a.m=s,e=[],a.O=(s,i,t,l)=>{if(!i){var d=1/0;for(c=0;c<e.length;c++){i=e[c][0],t=e[c][1],l=e[c][2];for(var r=!0,o=0;o<i.length;o++)(!1&l||d>=l)&&Object.keys(a.O).every((e=>a.O[e](i[o])))?i.splice(o--,1):(r=!1,l<d&&(d=l));if(r){e.splice(c--,1);var n=t();void 0!==n&&(s=n)}}return s}l=l||0;for(var c=e.length;c>0&&e[c-1][2]>l;c--)e[c]=e[c-1];e[c]=[i,t,l]},a.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return a.d(s,{a:s}),s},a.d=(e,s)=>{for(var i in s)a.o(s,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})},a.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{var e={9342:0,5186:0};a.O.j=s=>0===e[s];var s=(s,i)=>{var t,l,d=i[0],r=i[1],o=i[2],n=0;if(d.some((s=>0!==e[s]))){for(t in r)a.o(r,t)&&(a.m[t]=r[t]);if(o)var c=o(a)}for(s&&s(i);n<d.length;n++)l=d[n],a.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return a.O(c)},i=self.webpackChunk=self.webpackChunk||[];i.forEach(s.bind(null,0)),i.push=s.bind(null,i.push.bind(i))})();var t=a.O(void 0,[5186],(()=>a(6427)));t=a.O(t)})(); -
snow-monkey-blocks/trunk/dist/blocks/taxonomy-posts/index.asset.php
r3194215 r3196970 1 <?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => ' eff8859156f1bb84c18f');1 <?php return array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'b7e5b1c9122977599d7f'); -
snow-monkey-blocks/trunk/dist/blocks/taxonomy-posts/index.js
r3194215 r3196970 1 (()=>{"use strict";var e={n:o=>{var l=o&&o.__esModule?()=>o.default:()=>o;return e.d(l,{a:l}),l},d:(o,l)=>{for(var t in l)e.o(l,t)&&!e.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:l[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.wp.blocks,l=window.wp.i18n,t=JSON.parse('{"UU":"snow-monkey-blocks/taxonomy-posts","uK":{"taxonomy":{"type":"string","default":null},"termId":{"type":"number","default":0},"postsPerPage":{"type":"number","default":6},"layout":{"type":"string","default":"rich-media"},"gap":{"type":"string","default":""},"ignoreStickyPosts":{"type":"boolean","default":true},"smCols":{"type":"number","default":0},"noPostsText":{"type":"string","default":""},"itemTitleTagName":{"type":"string","default":"h3"},"itemThumbnailSizeSlug":{"type":"string","default":"full"},"forceDisplayItemMeta":{"type":"boolean","default":false},"forceDisplayItemTerms":{"type":"boolean","default":false},"displayItemAuthor":{"type":"boolean"},"displayItemPublished":{"type":"boolean","default":true},"displayItemModified":{"type":"boolean","default":false},"displayItemExcerpt":{"type":"boolean"},"categoryLabelTaxonomy":{"type":"string","default":""},"arrows":{"type":"boolean","default":false},"dots":{"type":"boolean","default":true},"interval":{"type":"number","default":0},"autoplayButton":{"type":"boolean","default":false},"anchor":{"type":"string","default":""},"clientId":{"type":"string","default":""}}}'),a=window.ReactJSXRuntime,s=(0,a.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,a.jsx)("rect",{x:"3",y:"6.5",width:"4",height:"1"}),(0,a.jsx)("rect",{x:"9",y:"6.5",width:"13",height:"1"}),(0,a.jsx)("rect",{x:"3",y:"11.5",width:"4",height:"1"}),(0,a.jsx)("rect",{x:"9",y:"11.5",width:"13",height:"1"}),(0,a.jsx)("rect",{x:"3",y:"16.5",width:"4",height:"1"}),(0,a.jsx)("rect",{x:"9",y:"16.5",width:"13",height:"1"})]}),n=window.lodash,i=window.wp.components,r=window.wp.blockEditor,m=window.wp.data,c=window.wp.element,u=window.wp.serverSideRender;var d=e.n(u);const y=(e,o=0,l=null)=>(e=Number(e),(isNaN(e)||e<o)&&(e=o),null!==l&&e>l&&(e=l),e),p=e=>{const o=e.map((e=>({children:[],parent:null,...e}))),l=(0,n.groupBy)(o,"parent");if(l.null&&l.null.length)return o;const t=e=>e.map((e=>{const o=l[e.id];return{...e,children:o&&o.length?t(o):[]}}));return t(l[0]||[])},_=[{attributes:{...t.uK,myAnchor:{type:"string",default:""}},migrate:e=>(e.anchor=e.myAnchor,e),save:()=>null}];(0,o.registerBlockType)(t.UU,{icon:{foreground:"#cd162c",src:s},keywords:[(0,l.__)("Posts list","snow-monkey-blocks"),(0,l.__)("Recent posts","snow-monkey-blocks"),(0,l.__)("Latest posts","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:o,clientId:s}){const{taxonomy:u,termId:_,postsPerPage:h,layout:b,gap:g,ignoreStickyPosts:x,smCols:k,noPostsText:f,itemTitleTagName:w,itemThumbnailSizeSlug:T,forceDisplayItemMeta:I,displayItemAuthor: j,displayItemPublished:D,displayItemModified:B,forceDisplayItemTerms:P,displayItemExcerpt:S,categoryLabelTaxonomy:C,arrows:v,dots:K,interval:N,autoplayButton:M}=e;(0,c.useEffect)((()=>{let e,l;e=null==j?!["text","text2"].includes(b):j,l=null==S?["rich-media","simple","caroucel"].includes(b):S,o({displayItemAuthor:e,displayItemExcerpt:l})}),[b]),(0,c.useEffect)((()=>{o({clientId:e.clientId||s})}),[]);const{taxonomiesTerms:H,taxonomies:V}=(0,m.useSelect)((e=>{const{getTaxonomies:o,getEntityRecords:l}=e("core"),t=(o({per_page:-1})||[]).filter((e=>e.visibility.show_ui)),a=t.map((e=>{const o=l("taxonomy",e.slug,{per_page:-1})||[];return 0<o.length?{taxonomy:e.slug,terms:o}:{}})).filter((e=>e));return{taxonomiesTerms:a,taxonomies:t}}),[]),L=(0,m.useSelect)((e=>{const{getSettings:o}=e("core/block-editor"),{imageSizes:l}=o();return l.map((e=>({value:e.slug,label:e.name})))}),[]),A=(0,c.useMemo)((()=>{const e=V.map((e=>({value:e.slug,label:e.name})));return e.unshift({value:"",label:(0,l.__)("Default (Taxonomy selected in this block)","snow-monkey-blocks")}),e}),[V]),z=(0,n.find)(H,{taxonomy:u}),F=z?(0,n.find)(z.terms,["id",y(_)]):[],R=["h2","h3","h4"],E=[{label:"S",value:1},{label:"M",value:2},{label:"L",value:3}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.InspectorControls,{children:(0,a.jsxs)(i.__experimentalToolsPanel,{label:(0,l.__)("Block settings","snow-monkey-blocks"),children:[H.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>u!==t.uK.taxonomy.default||_!==t.uK.termId.default,isShownByDefault:!0,label:(0,l.__)("Taxonomy","snow-monkey-blocks"),onDeselect:()=>o({taxonomy:t.uK.taxonomy.default,termId:t.uK.termId.default}),children:(0,a.jsx)(i.Flex,{direction:"column",children:H.map((e=>{const l=(0,n.find)(V,["slug",e.taxonomy]);return!!l&&(0,a.jsx)(i.TreeSelect,{__nextHasNoMarginBottom:!0,label:l.name,noOptionLabel:"-",onChange:e=>{o({taxonomy:l.slug,termId:y(e)})},selectedId:_,tree:p(e.terms)},`${l.slug}-${_}`)}))})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>h!==t.uK.postsPerPage.default,isShownByDefault:!0,label:(0,l.__)("Number of posts","snow-monkey-blocks"),onDeselect:()=>o({postsPerPage:t.uK.postsPerPage.default}),children:(0,a.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Number of posts","snow-monkey-blocks"),value:h,onChange:e=>o({postsPerPage:y(e,1,50)}),min:"1",max:"50"})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>b!==t.uK.layout.default,isShownByDefault:!0,label:(0,l.__)("Layout","snow-monkey-blocks"),onDeselect:()=>o({layout:t.uK.layout.default}),children:(0,a.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Layout","snow-monkey-blocks"),value:b,onChange:e=>{o({layout:e})},options:[{value:"rich-media",label:(0,l.__)("Rich media","snow-monkey-blocks")},{value:"simple",label:(0,l.__)("Simple","snow-monkey-blocks")},{value:"text",label:(0,l.__)("Text","snow-monkey-blocks")},{value:"text2",label:(0,l.__)("Text 2","snow-monkey-blocks")},{value:"panel",label:(0,l.__)("Panels","snow-monkey-blocks")},{value:"carousel",label:(0,l.sprintf)(1 (()=>{"use strict";var e={n:o=>{var l=o&&o.__esModule?()=>o.default:()=>o;return e.d(l,{a:l}),l},d:(o,l)=>{for(var t in l)e.o(l,t)&&!e.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:l[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.wp.blocks,l=window.wp.i18n,t=JSON.parse('{"UU":"snow-monkey-blocks/taxonomy-posts","uK":{"taxonomy":{"type":"string","default":null},"termId":{"type":"number","default":0},"postsPerPage":{"type":"number","default":6},"layout":{"type":"string","default":"rich-media"},"gap":{"type":"string","default":""},"ignoreStickyPosts":{"type":"boolean","default":true},"smCols":{"type":"number","default":0},"noPostsText":{"type":"string","default":""},"itemTitleTagName":{"type":"string","default":"h3"},"itemThumbnailSizeSlug":{"type":"string","default":"full"},"forceDisplayItemMeta":{"type":"boolean","default":false},"forceDisplayItemTerms":{"type":"boolean","default":false},"displayItemAuthor":{"type":"boolean"},"displayItemPublished":{"type":"boolean","default":true},"displayItemModified":{"type":"boolean","default":false},"displayItemExcerpt":{"type":"boolean"},"categoryLabelTaxonomy":{"type":"string","default":""},"arrows":{"type":"boolean","default":false},"dots":{"type":"boolean","default":true},"interval":{"type":"number","default":0},"autoplayButton":{"type":"boolean","default":false},"anchor":{"type":"string","default":""},"clientId":{"type":"string","default":""}}}'),a=window.ReactJSXRuntime,s=(0,a.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,a.jsx)("rect",{x:"3",y:"6.5",width:"4",height:"1"}),(0,a.jsx)("rect",{x:"9",y:"6.5",width:"13",height:"1"}),(0,a.jsx)("rect",{x:"3",y:"11.5",width:"4",height:"1"}),(0,a.jsx)("rect",{x:"9",y:"11.5",width:"13",height:"1"}),(0,a.jsx)("rect",{x:"3",y:"16.5",width:"4",height:"1"}),(0,a.jsx)("rect",{x:"9",y:"16.5",width:"13",height:"1"})]}),n=window.lodash,i=window.wp.components,r=window.wp.blockEditor,m=window.wp.data,c=window.wp.element,u=window.wp.serverSideRender;var d=e.n(u);const y=(e,o=0,l=null)=>(e=Number(e),(isNaN(e)||e<o)&&(e=o),null!==l&&e>l&&(e=l),e),p=e=>{const o=e.map((e=>({children:[],parent:null,...e}))),l=(0,n.groupBy)(o,"parent");if(l.null&&l.null.length)return o;const t=e=>e.map((e=>{const o=l[e.id];return{...e,children:o&&o.length?t(o):[]}}));return t(l[0]||[])},_=[{attributes:{...t.uK,myAnchor:{type:"string",default:""}},migrate:e=>(e.anchor=e.myAnchor,e),save:()=>null}];(0,o.registerBlockType)(t.UU,{icon:{foreground:"#cd162c",src:s},keywords:[(0,l.__)("Posts list","snow-monkey-blocks"),(0,l.__)("Recent posts","snow-monkey-blocks"),(0,l.__)("Latest posts","snow-monkey-blocks")],edit:function({attributes:e,setAttributes:o,clientId:s}){const{taxonomy:u,termId:_,postsPerPage:h,layout:b,gap:g,ignoreStickyPosts:x,smCols:k,noPostsText:f,itemTitleTagName:w,itemThumbnailSizeSlug:T,forceDisplayItemMeta:I,displayItemAuthor:D,displayItemPublished:j,displayItemModified:B,forceDisplayItemTerms:P,displayItemExcerpt:S,categoryLabelTaxonomy:C,arrows:v,dots:K,interval:N,autoplayButton:M}=e;(0,c.useEffect)((()=>{let e,l;e=null==D?!["text","text2"].includes(b):D,l=null==S?["rich-media","simple","caroucel"].includes(b):S,o({displayItemAuthor:e,displayItemExcerpt:l})}),[b]),(0,c.useEffect)((()=>{o({clientId:e.clientId||s})}),[]);const{taxonomiesTerms:H,taxonomies:V}=(0,m.useSelect)((e=>{const{getTaxonomies:o,getEntityRecords:l}=e("core"),t=(o({per_page:-1})||[]).filter((e=>e.visibility.show_ui)),a=t.map((e=>{const o=l("taxonomy",e.slug,{per_page:-1})||[];return 0<o.length?{taxonomy:e.slug,terms:o}:{}})).filter((e=>e));return{taxonomiesTerms:a,taxonomies:t}}),[]),L=(0,m.useSelect)((e=>{const{getSettings:o}=e("core/block-editor"),{imageSizes:l}=o();return l.map((e=>({value:e.slug,label:e.name})))}),[]),z=(0,c.useMemo)((()=>{const e=V.map((e=>({value:e.slug,label:e.name})));return e.unshift({value:"",label:(0,l.__)("Default (Taxonomy selected in this block)","snow-monkey-blocks")}),e}),[V]),A=(0,n.find)(H,{taxonomy:u}),F=A?(0,n.find)(A.terms,["id",y(_)]):[],R=["h2","h3","h4"],E=[{label:"S",value:1},{label:"M",value:2},{label:"L",value:3}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.InspectorControls,{children:(0,a.jsxs)(i.__experimentalToolsPanel,{label:(0,l.__)("Block settings","snow-monkey-blocks"),children:[H.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>u!==t.uK.taxonomy.default||_!==t.uK.termId.default,isShownByDefault:!0,label:(0,l.__)("Taxonomy","snow-monkey-blocks"),onDeselect:()=>o({taxonomy:t.uK.taxonomy.default,termId:t.uK.termId.default}),children:(0,a.jsx)(i.Flex,{direction:"column",children:H.map((e=>{const l=(0,n.find)(V,["slug",e.taxonomy]);return!!l&&(0,a.jsx)(i.TreeSelect,{__nextHasNoMarginBottom:!0,label:l.name,noOptionLabel:"-",onChange:e=>{o({taxonomy:l.slug,termId:y(e)})},selectedId:_,tree:p(e.terms)},`${l.slug}-${_}`)}))})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>h!==t.uK.postsPerPage.default,isShownByDefault:!0,label:(0,l.__)("Number of posts","snow-monkey-blocks"),onDeselect:()=>o({postsPerPage:t.uK.postsPerPage.default}),children:(0,a.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Number of posts","snow-monkey-blocks"),value:h,onChange:e=>o({postsPerPage:y(e,1,50)}),min:"1",max:"50"})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>b!==t.uK.layout.default,isShownByDefault:!0,label:(0,l.__)("Layout","snow-monkey-blocks"),onDeselect:()=>o({layout:t.uK.layout.default}),children:(0,a.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Layout","snow-monkey-blocks"),value:b,onChange:e=>{o({layout:e})},options:[{value:"rich-media",label:(0,l.__)("Rich media","snow-monkey-blocks")},{value:"simple",label:(0,l.__)("Simple","snow-monkey-blocks")},{value:"text",label:(0,l.__)("Text","snow-monkey-blocks")},{value:"text2",label:(0,l.__)("Text 2","snow-monkey-blocks")},{value:"panel",label:(0,l.__)("Panels","snow-monkey-blocks")},{value:"carousel",label:(0,l.sprintf)( 2 2 // translators: %1$s: Layout 3 3 // translators: %1$s: Layout 4 (0,l.__)("Carousel (%1$s)","snow-monkey-blocks"),(0,l.__)("Rich media","snow-monkey-blocks"))},{value:"large-image",label:(0,l.__)("Large image","snow-monkey-blocks")}]})})]}):(0,a.jsx)("div",{style:{gridColumn:"1/-1"},children:(0,a.jsx)(i.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Loading taxonomies…","snow-monkey-blocks"),id:"snow-monkey-blocks/taxonomy-posts/taxonomies",children:(0,a.jsx)(i.Spinner,{})})}),"carousel"===b&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>v!==t.uK.arrows.default,isShownByDefault:!0,label:(0,l.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>o({arrows:t.uK.arrows.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display arrows","snow-monkey-blocks"),checked:v,onChange:e=>o({arrows:e})})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>K!==t.uK.dots.default,isShownByDefault:!0,label:(0,l.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>o({dots:t.uK.dots.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display dots","snow-monkey-blocks"),checked:K,onChange:e=>o({dots:e})})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>N!==t.uK.interval.default,isShownByDefault:!0,label:(0,l.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>o({interval:t.uK.interval.default}),children:(0,a.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,l.__)('If "0", no scroll.',"snow-monkey-blocks"),value:N,onChange:e=>o({interval:y(e,0,10)}),min:"0",max:"10"})}),0<N&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>M!==t.uK.autoplayButton.default,isShownByDefault:!0,label:(0,l.__)(" Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>o({autoplayButton:t.uK.autoplayButton.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:M,onChange:e=>o({autoplayButton:e})})})]}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>w!==t.uK.itemTitleTagName.default,isShownByDefault:!0,label:(0,l.__)("Title tag of each items","snow-monkey-blocks"),onDeselect:()=>o({itemTitleTagName:t.uK.itemTitleTagName.default}),children:(0,a.jsx)(i.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Title tag of each items","snow-monkey-blocks"),id:"snow-monkey-blocks/taxonomy-posts/item-title-tag-name",children:(0,a.jsx)("div",{className:"smb-list-icon-selector",children:(0,n.times)(R.length,(e=>(0,a.jsx)(i.Button,{variant:w===R[e]?"primary":"secondary",onClick:()=>o({itemTitleTagName:R[e]}),children:R[e]},e)))})})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>T!==t.uK.itemThumbnailSizeSlug.default,isShownByDefault:!0,label:(0,l.__)("Images size of each items","snow-monkey-blocks"),onDeselect:()=>o({itemThumbnailSizeSlug:t.uK.itemThumbnailSizeSlug.default}),children:(0,a.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Images size of each items","snow-monkey-blocks"),value:T,options:L,onChange:e=>o({itemThumbnailSizeSlug:e})})}),"category"!==u&&"post_tag"!==u&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>I!==t.uK.forceDisplayItemMeta.default,isShownByDefault:!0,label:(0,l.__)("Force display meta of each items","snow-monkey-blocks"),onDeselect:()=>o({forceDisplayItemMeta:t.uK.forceDisplayItemMeta.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Force display meta of each items","snow-monkey-blocks"),help:(0,l.__)("If it's already displayed, this setting will be ignored.","snow-monkey-blocks"),checked:I,onChange:e=>o({forceDisplayItemMeta:e})})}),("category"===u||"post_tag"===u||I)&&"text"!==b&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>j!==!["text","text2"].includes(b),isShownByDefault:!0,label:(0,l.__)("Display author of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemAuthor:!["text","text2"].includes(b)}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display author of each items","snow-monkey-blocks"),checked:j,onChange:e=>o({displayItemAuthor:e})})}),("category"===u||"post_tag"===u||I)&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>D!==t.uK.displayItemPublished.default,isShownByDefault:!0,label:(0,l.__)("Display published date of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemPublished:t.uK.displayItemPublished.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display published date of each items","snow-monkey-blocks"),checked:D,onChange:e=>o({displayItemPublished:e})})}),("category"===u||"post_tag"===u||I)&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>B!==t.uK.displayItemModified.default,isShownByDefault:!0,label:(0,l.__)("Display modified date of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemModified:t.uK.displayItemModified.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display modified date of each items","snow-monkey-blocks"),checked:B,onChange:e=>o({displayItemModified:e})})}),["rich-media","simple","panel","carousel"].includes(b)&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>S===["rich-media","simple","panel","carousel"].includes(b),isShownByDefault:!0,label:(0,l.__)("Display excerpt of each items","snow-monkey-blocks"),onDeselect:()=>{o({displayItemExcerpt:["rich-media","simple","panel","carousel"].includes(b)})},children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display excerpt of each items","snow-monkey-blocks"),checked:S,onChange:e=>o({displayItemExcerpt:e})})}),"category"!==u&&"post_tag"!==u&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>P!==t.uK.forceDisplayItemTerms.default,isShownByDefault:!0,label:(0,l.__)("Force display category label of each items","snow-monkey-blocks"),onDeselect:()=>o({forceDisplayItemTerms:t.uK.forceDisplayItemTerms.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Force display category label of each items","snow-monkey-blocks"),help:(0,l.__)("If it's already displayed, this setting will be ignored.","snow-monkey-blocks"),checked:P,onChange:e=>o({forceDisplayItemTerms:e})})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>C!==t.uK.categoryLabelTaxonomy.default,isShownByDefault:!0,label:(0,l.__)("Taxonomy to use for the category label","snow-monkey-blocks"),onDeselect:()=>o({categoryLabelTaxonomy:t.uK.categoryLabelTaxonomy.default}),children:(0,a.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Taxonomy to use for the category label","snow-monkey-blocks"),help:(0,l.__)("If no category labels are displayed, this setting will be ignored.","snow-monkey-blocks"),value:C,options:A,onChange:e=>o({categoryLabelTaxonomy:e})})}),("rich-media"===b||"panel"===b)&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>k!==t.uK.smCols.default,isShownByDefault:!0,label:(0,l.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),onDeselect:()=>o({smCols:t.uK.smCols.default}),children:(0,a.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),value:k,onChange:e=>o({smCols:y(e)}),options:[{value:0,label:(0,l.__)("Default","snow-monkey-blocks")},{value:1,label:(0,l.__)("1 column","snow-monkey-blocks")},{value:2,label:(0,l.__)("2 columns","snow-monkey-blocks")}]})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>x!==t.uK.ignoreStickyPosts.default,isShownByDefault:!0,label:(0,l.__)("Ignore sticky posts","snow-monkey-blocks"),onDeselect:()=>o({ignoreStickyPosts:t.uK.ignoreStickyPosts.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Ignore sticky posts","snow-monkey-blocks"),checked:x,onChange:e=>o({ignoreStickyPosts:e})})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>f!==t.uK.noPostsText.default,isShownByDefault:!0,label:(0,l.__)("Text if no posts matched","snow-monkey-blocks"),onDeselect:()=>o({noPostsText:t.uK.noPostsText.default}),children:(0,a.jsx)(i.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Text if no posts matched","snow-monkey-blocks"),help:(0,l.__)("Allow HTML","snow-monkey-blocks"),value:f||"",onChange:e=>o({noPostsText:e})})})]})}),(0,a.jsx)(r.InspectorControls,{group:"dimensions",children:(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>g!==t.uK.gap.default,isShownByDefault:!0,label:(0,l.__)("The gap between each item","snow-monkey-blocks"),onDeselect:()=>o({gap:t.uK.gap.default}),panelId:s,children:(0,a.jsx)(i.BaseControl,{__nextHasNoMarginBottom:!0,id:"snow-monkey-blocks/recent-posts/gap",label:(0,l.__)("The gap between each item","snow-monkey-blocks"),className:"spacing-sizes-control",children:(0,a.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,className:"spacing-sizes-control__range-control",value:E.filter((e=>e.label?.toLowerCase()===g))?.[0]?.value,resetFallbackValue:void 0,onChange:e=>o({gap:E.filter((o=>o.value===e))?.[0]?.label?.toLowerCase()}),withInputField:!1,min:1,max:3,marks:!0,renderTooltipContent:e=>E.filter((o=>o.value===e))?.[0]?.label?.toUpperCase(),hideLabelFromVision:!0})})})}),(0,a.jsx)("div",{...(0,r.useBlockProps)(),children:F&&z?(0,a.jsx)(i.Disabled,{children:(0,a.jsx)(d(),{block:"snow-monkey-blocks/taxonomy-posts",attributes:e})}):(0,a.jsx)(i.Placeholder,{icon:"editor-ul",label:(0,l.__)("Taxonomy posts","snow-monkey-blocks"),children:(0,a.jsx)(i.Spinner,{})})})]})},save:function(){return(0,a.jsx)("div",{...r.useBlockProps.save(),"data-dynamic-block":"snow-monkey-blocks/taxonomy-posts","data-version":"2"})},deprecated:_})})();4 (0,l.__)("Carousel (%1$s)","snow-monkey-blocks"),(0,l.__)("Rich media","snow-monkey-blocks"))},{value:"large-image",label:(0,l.__)("Large image","snow-monkey-blocks")}]})})]}):(0,a.jsx)("div",{style:{gridColumn:"1/-1"},children:(0,a.jsx)(i.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Loading taxonomies…","snow-monkey-blocks"),id:"snow-monkey-blocks/taxonomy-posts/taxonomies",children:(0,a.jsx)(i.Spinner,{})})}),"carousel"===b&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>v!==t.uK.arrows.default,isShownByDefault:!0,label:(0,l.__)("Display arrows","snow-monkey-blocks"),onDeselect:()=>o({arrows:t.uK.arrows.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display arrows","snow-monkey-blocks"),checked:v,onChange:e=>o({arrows:e})})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>K!==t.uK.dots.default,isShownByDefault:!0,label:(0,l.__)("Display dots","snow-monkey-blocks"),onDeselect:()=>o({dots:t.uK.dots.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display dots","snow-monkey-blocks"),checked:K,onChange:e=>o({dots:e})})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>N!==t.uK.interval.default,isShownByDefault:!0,label:(0,l.__)("Autoplay Speed in seconds","snow-monkey-blocks"),onDeselect:()=>o({interval:t.uK.interval.default}),children:(0,a.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Autoplay Speed in seconds","snow-monkey-blocks"),help:(0,l.__)('If "0", no scroll.',"snow-monkey-blocks"),value:N,onChange:e=>o({interval:y(e,0,10)}),min:"0",max:"10"})}),0<N&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>M!==t.uK.autoplayButton.default,isShownByDefault:!0,label:(0,l.__)("Display pause button for autoplay","snow-monkey-blocks"),onDeselect:()=>o({autoplayButton:t.uK.autoplayButton.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display pause button for autoplay","snow-monkey-blocks"),checked:M,onChange:e=>o({autoplayButton:e})})})]}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>w!==t.uK.itemTitleTagName.default,isShownByDefault:!0,label:(0,l.__)("Title tag of each items","snow-monkey-blocks"),onDeselect:()=>o({itemTitleTagName:t.uK.itemTitleTagName.default}),children:(0,a.jsx)(i.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Title tag of each items","snow-monkey-blocks"),id:"snow-monkey-blocks/taxonomy-posts/item-title-tag-name",children:(0,a.jsx)("div",{className:"smb-list-icon-selector",children:(0,n.times)(R.length,(e=>(0,a.jsx)(i.Button,{variant:w===R[e]?"primary":"secondary",onClick:()=>o({itemTitleTagName:R[e]}),children:R[e]},e)))})})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>T!==t.uK.itemThumbnailSizeSlug.default,isShownByDefault:!0,label:(0,l.__)("Images size of each items","snow-monkey-blocks"),onDeselect:()=>o({itemThumbnailSizeSlug:t.uK.itemThumbnailSizeSlug.default}),children:(0,a.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Images size of each items","snow-monkey-blocks"),value:T,options:L,onChange:e=>o({itemThumbnailSizeSlug:e})})}),"category"!==u&&"post_tag"!==u&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>I!==t.uK.forceDisplayItemMeta.default,isShownByDefault:!0,label:(0,l.__)("Force display meta of each items","snow-monkey-blocks"),onDeselect:()=>o({forceDisplayItemMeta:t.uK.forceDisplayItemMeta.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Force display meta of each items","snow-monkey-blocks"),help:(0,l.__)("If it's already displayed, this setting will be ignored.","snow-monkey-blocks"),checked:I,onChange:e=>o({forceDisplayItemMeta:e})})}),("category"===u||"post_tag"===u||I)&&"text"!==b&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>D!==!["text","text2"].includes(b),isShownByDefault:!0,label:(0,l.__)("Display author of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemAuthor:!["text","text2"].includes(b)}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display author of each items","snow-monkey-blocks"),checked:D,onChange:e=>o({displayItemAuthor:e})})}),("category"===u||"post_tag"===u||I)&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>j!==t.uK.displayItemPublished.default,isShownByDefault:!0,label:(0,l.__)("Display published date of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemPublished:t.uK.displayItemPublished.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display published date of each items","snow-monkey-blocks"),checked:j,onChange:e=>o({displayItemPublished:e})})}),("category"===u||"post_tag"===u||I)&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>B!==t.uK.displayItemModified.default,isShownByDefault:!0,label:(0,l.__)("Display modified date of each items","snow-monkey-blocks"),onDeselect:()=>o({displayItemModified:t.uK.displayItemModified.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display modified date of each items","snow-monkey-blocks"),checked:B,onChange:e=>o({displayItemModified:e})})}),["rich-media","simple","panel","carousel"].includes(b)&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>S===["rich-media","simple","panel","carousel"].includes(b),isShownByDefault:!0,label:(0,l.__)("Display excerpt of each items","snow-monkey-blocks"),onDeselect:()=>{o({displayItemExcerpt:["rich-media","simple","panel","carousel"].includes(b)})},children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Display excerpt of each items","snow-monkey-blocks"),checked:S,onChange:e=>o({displayItemExcerpt:e})})}),"category"!==u&&"post_tag"!==u&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>P!==t.uK.forceDisplayItemTerms.default,isShownByDefault:!0,label:(0,l.__)("Force display category label of each items","snow-monkey-blocks"),onDeselect:()=>o({forceDisplayItemTerms:t.uK.forceDisplayItemTerms.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Force display category label of each items","snow-monkey-blocks"),help:(0,l.__)("If it's already displayed, this setting will be ignored.","snow-monkey-blocks"),checked:P,onChange:e=>o({forceDisplayItemTerms:e})})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>C!==t.uK.categoryLabelTaxonomy.default,isShownByDefault:!0,label:(0,l.__)("Taxonomy to use for the category label","snow-monkey-blocks"),onDeselect:()=>o({categoryLabelTaxonomy:t.uK.categoryLabelTaxonomy.default}),children:(0,a.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Taxonomy to use for the category label","snow-monkey-blocks"),help:(0,l.__)("If no category labels are displayed, this setting will be ignored.","snow-monkey-blocks"),value:C,options:z,onChange:e=>o({categoryLabelTaxonomy:e})})}),("rich-media"===b||"panel"===b)&&(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>k!==t.uK.smCols.default,isShownByDefault:!0,label:(0,l.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),onDeselect:()=>o({smCols:t.uK.smCols.default}),children:(0,a.jsx)(i.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Number of columns displayed on mobile device","snow-monkey-blocks"),value:k,onChange:e=>o({smCols:y(e)}),options:[{value:0,label:(0,l.__)("Default","snow-monkey-blocks")},{value:1,label:(0,l.__)("1 column","snow-monkey-blocks")},{value:2,label:(0,l.__)("2 columns","snow-monkey-blocks")}]})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>x!==t.uK.ignoreStickyPosts.default,isShownByDefault:!0,label:(0,l.__)("Ignore sticky posts","snow-monkey-blocks"),onDeselect:()=>o({ignoreStickyPosts:t.uK.ignoreStickyPosts.default}),children:(0,a.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Ignore sticky posts","snow-monkey-blocks"),checked:x,onChange:e=>o({ignoreStickyPosts:e})})}),(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>f!==t.uK.noPostsText.default,isShownByDefault:!0,label:(0,l.__)("Text if no posts matched","snow-monkey-blocks"),onDeselect:()=>o({noPostsText:t.uK.noPostsText.default}),children:(0,a.jsx)(i.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Text if no posts matched","snow-monkey-blocks"),help:(0,l.__)("Allow HTML","snow-monkey-blocks"),value:f||"",onChange:e=>o({noPostsText:e})})})]})}),(0,a.jsx)(r.InspectorControls,{group:"dimensions",children:(0,a.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>g!==t.uK.gap.default,isShownByDefault:!0,label:(0,l.__)("The gap between each item","snow-monkey-blocks"),onDeselect:()=>o({gap:t.uK.gap.default}),panelId:s,children:(0,a.jsx)(i.BaseControl,{__nextHasNoMarginBottom:!0,id:"snow-monkey-blocks/recent-posts/gap",label:(0,l.__)("The gap between each item","snow-monkey-blocks"),className:"spacing-sizes-control",children:(0,a.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,className:"spacing-sizes-control__range-control",value:E.filter((e=>e.label?.toLowerCase()===g))?.[0]?.value,resetFallbackValue:void 0,onChange:e=>o({gap:E.filter((o=>o.value===e))?.[0]?.label?.toLowerCase()}),withInputField:!1,min:1,max:3,marks:!0,renderTooltipContent:e=>E.filter((o=>o.value===e))?.[0]?.label?.toUpperCase(),hideLabelFromVision:!0})})})}),(0,a.jsx)("div",{...(0,r.useBlockProps)(),children:F&&A?(0,a.jsx)(i.Disabled,{children:(0,a.jsx)(d(),{block:"snow-monkey-blocks/taxonomy-posts",attributes:e})}):(0,a.jsx)(i.Placeholder,{icon:"editor-ul",label:(0,l.__)("Taxonomy posts","snow-monkey-blocks"),children:(0,a.jsx)(i.Spinner,{})})})]})},save:function(){return(0,a.jsx)("div",{...r.useBlockProps.save(),"data-dynamic-block":"snow-monkey-blocks/taxonomy-posts","data-version":"2"})},deprecated:_})})(); -
snow-monkey-blocks/trunk/readme.txt
r3194215 r3196970 3 3 Donate link: https://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40 4 4 Tags: gutenberg, block, blocks, editor, gutenberg blocks 5 Stable tag: 22.2. 45 Stable tag: 22.2.5 6 6 Requires at least: 6.7 7 7 Tested up to: 6.7 -
snow-monkey-blocks/trunk/snow-monkey-blocks.php
r3194215 r3196970 2 2 /** 3 3 * Plugin name: Snow Monkey Blocks 4 * Version: 22.2. 44 * Version: 22.2.5 5 5 * Description: Gutenberg blocks collection made by MonkeyWrench. 6 6 * Author: inc2734 -
snow-monkey-blocks/trunk/src/blocks/child-pages/edit.js
r3194215 r3196970 280 280 isShownByDefault 281 281 label={ __( 282 ' Autoplay Speed in seconds',282 'Display pause button for autoplay', 283 283 'snow-monkey-blocks' 284 284 ) } -
snow-monkey-blocks/trunk/src/blocks/recent-posts/edit.js
r3194215 r3196970 538 538 isShownByDefault 539 539 label={ __( 540 ' Autoplay Speed in seconds',540 'Display pause button for autoplay', 541 541 'snow-monkey-blocks' 542 542 ) } -
snow-monkey-blocks/trunk/src/blocks/rss/edit.js
r3194215 r3196970 294 294 isShownByDefault 295 295 label={ __( 296 ' Autoplay Speed in seconds',296 'Display pause button for autoplay', 297 297 'snow-monkey-blocks' 298 298 ) } -
snow-monkey-blocks/trunk/src/blocks/spider-contents-slider/edit.js
r3194215 r3196970 657 657 isShownByDefault 658 658 label={ __( 659 ' Autoplay Speed in seconds',659 'Display pause button for autoplay', 660 660 'snow-monkey-blocks' 661 661 ) } -
snow-monkey-blocks/trunk/src/blocks/spider-pickup-slider/edit.js
r3194215 r3196970 251 251 isShownByDefault 252 252 label={ __( 253 ' Autoplay Speed in seconds',253 'Display pause button for autoplay', 254 254 'snow-monkey-blocks' 255 255 ) } -
snow-monkey-blocks/trunk/src/blocks/spider-slider/edit.js
r3194215 r3196970 599 599 isShownByDefault 600 600 label={ __( 601 ' Autoplay Speed in seconds',601 'Display pause button for autoplay', 602 602 'snow-monkey-blocks' 603 603 ) } -
snow-monkey-blocks/trunk/src/blocks/taxonomy-posts/edit.js
r3194215 r3196970 486 486 isShownByDefault 487 487 label={ __( 488 ' Autoplay Speed in seconds',488 'Display pause button for autoplay', 489 489 'snow-monkey-blocks' 490 490 ) }
Note: See TracChangeset
for help on using the changeset viewer.