Changeset 3750877
- Timestamp:
- 10/16/2026 05:44:30 PM (2 weeks ago)
- Location:
- section-blocks
- Files:
-
- 172 added
- 62 edited
- 1 copied
-
tags/1.3.0 (copied) (copied from section-blocks/trunk )
-
tags/1.3.0/build/advanced-container/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/advanced-container/index.js (modified) (1 diff)
-
tags/1.3.0/build/advanced-heading (added)
-
tags/1.3.0/build/advanced-heading/block.json (added)
-
tags/1.3.0/build/advanced-heading/index.asset.php (added)
-
tags/1.3.0/build/advanced-heading/index.js (added)
-
tags/1.3.0/build/advanced-heading/render.php (added)
-
tags/1.3.0/build/advanced-heading/style-index-rtl.css (added)
-
tags/1.3.0/build/advanced-heading/style-index.css (added)
-
tags/1.3.0/build/author-box (added)
-
tags/1.3.0/build/author-box/block.json (added)
-
tags/1.3.0/build/author-box/index.asset.php (added)
-
tags/1.3.0/build/author-box/index.js (added)
-
tags/1.3.0/build/author-box/render.php (added)
-
tags/1.3.0/build/author-box/style-index-rtl.css (added)
-
tags/1.3.0/build/author-box/style-index.css (added)
-
tags/1.3.0/build/blocks-manifest.php (modified) (4 diffs)
-
tags/1.3.0/build/button-group (added)
-
tags/1.3.0/build/button-group/block.json (added)
-
tags/1.3.0/build/button-group/index.asset.php (added)
-
tags/1.3.0/build/button-group/index.js (added)
-
tags/1.3.0/build/button-group/render.php (added)
-
tags/1.3.0/build/button-group/style-index-rtl.css (added)
-
tags/1.3.0/build/button-group/style-index.css (added)
-
tags/1.3.0/build/callout (added)
-
tags/1.3.0/build/callout/block.json (added)
-
tags/1.3.0/build/callout/index.asset.php (added)
-
tags/1.3.0/build/callout/index.js (added)
-
tags/1.3.0/build/callout/render.php (added)
-
tags/1.3.0/build/callout/style-index-rtl.css (added)
-
tags/1.3.0/build/callout/style-index.css (added)
-
tags/1.3.0/build/cta-section/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/cta-section/index.js (modified) (1 diff)
-
tags/1.3.0/build/faq-accordion/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/faq-accordion/index.js (modified) (1 diff)
-
tags/1.3.0/build/features-section/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/features-section/index.js (modified) (1 diff)
-
tags/1.3.0/build/gallery-portfolio/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/gallery-portfolio/index.js (modified) (1 diff)
-
tags/1.3.0/build/hero-section/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/hero-section/index.js (modified) (1 diff)
-
tags/1.3.0/build/icon-box (added)
-
tags/1.3.0/build/icon-box/block.json (added)
-
tags/1.3.0/build/icon-box/index.asset.php (added)
-
tags/1.3.0/build/icon-box/index.js (added)
-
tags/1.3.0/build/icon-box/render.php (added)
-
tags/1.3.0/build/icon-box/style-index-rtl.css (added)
-
tags/1.3.0/build/icon-box/style-index.css (added)
-
tags/1.3.0/build/icon-list (added)
-
tags/1.3.0/build/icon-list/block.json (added)
-
tags/1.3.0/build/icon-list/index.asset.php (added)
-
tags/1.3.0/build/icon-list/index.js (added)
-
tags/1.3.0/build/icon-list/render.php (added)
-
tags/1.3.0/build/icon-list/style-index-rtl.css (added)
-
tags/1.3.0/build/icon-list/style-index.css (added)
-
tags/1.3.0/build/image-box (added)
-
tags/1.3.0/build/image-box/block.json (added)
-
tags/1.3.0/build/image-box/index.asset.php (added)
-
tags/1.3.0/build/image-box/index.js (added)
-
tags/1.3.0/build/image-box/render.php (added)
-
tags/1.3.0/build/image-box/style-index-rtl.css (added)
-
tags/1.3.0/build/image-box/style-index.css (added)
-
tags/1.3.0/build/logo-cloud (added)
-
tags/1.3.0/build/logo-cloud/block.json (added)
-
tags/1.3.0/build/logo-cloud/index.asset.php (added)
-
tags/1.3.0/build/logo-cloud/index.js (added)
-
tags/1.3.0/build/logo-cloud/render.php (added)
-
tags/1.3.0/build/logo-cloud/style-index-rtl.css (added)
-
tags/1.3.0/build/logo-cloud/style-index.css (added)
-
tags/1.3.0/build/logo-cloud/view.asset.php (added)
-
tags/1.3.0/build/logo-cloud/view.js (added)
-
tags/1.3.0/build/newsletter-signup/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/newsletter-signup/index.js (modified) (1 diff)
-
tags/1.3.0/build/pricing-tables/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/pricing-tables/index.js (modified) (1 diff)
-
tags/1.3.0/build/promo-banner (added)
-
tags/1.3.0/build/promo-banner/block.json (added)
-
tags/1.3.0/build/promo-banner/index.asset.php (added)
-
tags/1.3.0/build/promo-banner/index.js (added)
-
tags/1.3.0/build/promo-banner/render.php (added)
-
tags/1.3.0/build/promo-banner/style-index-rtl.css (added)
-
tags/1.3.0/build/promo-banner/style-index.css (added)
-
tags/1.3.0/build/services-section/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/services-section/index.js (modified) (1 diff)
-
tags/1.3.0/build/shape-divider (added)
-
tags/1.3.0/build/shape-divider/block.json (added)
-
tags/1.3.0/build/shape-divider/index.asset.php (added)
-
tags/1.3.0/build/shape-divider/index.js (added)
-
tags/1.3.0/build/shape-divider/render.php (added)
-
tags/1.3.0/build/shape-divider/style-index-rtl.css (added)
-
tags/1.3.0/build/shape-divider/style-index.css (added)
-
tags/1.3.0/build/social-share (added)
-
tags/1.3.0/build/social-share/block.json (added)
-
tags/1.3.0/build/social-share/index.asset.php (added)
-
tags/1.3.0/build/social-share/index.js (added)
-
tags/1.3.0/build/social-share/render.php (added)
-
tags/1.3.0/build/social-share/style-index-rtl.css (added)
-
tags/1.3.0/build/social-share/style-index.css (added)
-
tags/1.3.0/build/star-rating (added)
-
tags/1.3.0/build/star-rating/block.json (added)
-
tags/1.3.0/build/star-rating/index.asset.php (added)
-
tags/1.3.0/build/star-rating/index.js (added)
-
tags/1.3.0/build/star-rating/render.php (added)
-
tags/1.3.0/build/star-rating/style-index-rtl.css (added)
-
tags/1.3.0/build/star-rating/style-index.css (added)
-
tags/1.3.0/build/steps-timeline/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/steps-timeline/index.js (modified) (1 diff)
-
tags/1.3.0/build/team-members/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/team-members/index.js (modified) (1 diff)
-
tags/1.3.0/build/testimonials-section/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/testimonials-section/index.js (modified) (1 diff)
-
tags/1.3.0/build/video-cta-section/index.asset.php (modified) (1 diff)
-
tags/1.3.0/build/video-cta-section/index.js (modified) (1 diff)
-
tags/1.3.0/includes/helpers.php (modified) (2 diffs)
-
tags/1.3.0/includes/registry.php (modified) (1 diff)
-
tags/1.3.0/readme.txt (modified) (6 diffs)
-
tags/1.3.0/section-blocks.php (modified) (2 diffs)
-
trunk/build/advanced-container/index.asset.php (modified) (1 diff)
-
trunk/build/advanced-container/index.js (modified) (1 diff)
-
trunk/build/advanced-heading (added)
-
trunk/build/advanced-heading/block.json (added)
-
trunk/build/advanced-heading/index.asset.php (added)
-
trunk/build/advanced-heading/index.js (added)
-
trunk/build/advanced-heading/render.php (added)
-
trunk/build/advanced-heading/style-index-rtl.css (added)
-
trunk/build/advanced-heading/style-index.css (added)
-
trunk/build/author-box (added)
-
trunk/build/author-box/block.json (added)
-
trunk/build/author-box/index.asset.php (added)
-
trunk/build/author-box/index.js (added)
-
trunk/build/author-box/render.php (added)
-
trunk/build/author-box/style-index-rtl.css (added)
-
trunk/build/author-box/style-index.css (added)
-
trunk/build/blocks-manifest.php (modified) (4 diffs)
-
trunk/build/button-group (added)
-
trunk/build/button-group/block.json (added)
-
trunk/build/button-group/index.asset.php (added)
-
trunk/build/button-group/index.js (added)
-
trunk/build/button-group/render.php (added)
-
trunk/build/button-group/style-index-rtl.css (added)
-
trunk/build/button-group/style-index.css (added)
-
trunk/build/callout (added)
-
trunk/build/callout/block.json (added)
-
trunk/build/callout/index.asset.php (added)
-
trunk/build/callout/index.js (added)
-
trunk/build/callout/render.php (added)
-
trunk/build/callout/style-index-rtl.css (added)
-
trunk/build/callout/style-index.css (added)
-
trunk/build/cta-section/index.asset.php (modified) (1 diff)
-
trunk/build/cta-section/index.js (modified) (1 diff)
-
trunk/build/faq-accordion/index.asset.php (modified) (1 diff)
-
trunk/build/faq-accordion/index.js (modified) (1 diff)
-
trunk/build/features-section/index.asset.php (modified) (1 diff)
-
trunk/build/features-section/index.js (modified) (1 diff)
-
trunk/build/gallery-portfolio/index.asset.php (modified) (1 diff)
-
trunk/build/gallery-portfolio/index.js (modified) (1 diff)
-
trunk/build/hero-section/index.asset.php (modified) (1 diff)
-
trunk/build/hero-section/index.js (modified) (1 diff)
-
trunk/build/icon-box (added)
-
trunk/build/icon-box/block.json (added)
-
trunk/build/icon-box/index.asset.php (added)
-
trunk/build/icon-box/index.js (added)
-
trunk/build/icon-box/render.php (added)
-
trunk/build/icon-box/style-index-rtl.css (added)
-
trunk/build/icon-box/style-index.css (added)
-
trunk/build/icon-list (added)
-
trunk/build/icon-list/block.json (added)
-
trunk/build/icon-list/index.asset.php (added)
-
trunk/build/icon-list/index.js (added)
-
trunk/build/icon-list/render.php (added)
-
trunk/build/icon-list/style-index-rtl.css (added)
-
trunk/build/icon-list/style-index.css (added)
-
trunk/build/image-box (added)
-
trunk/build/image-box/block.json (added)
-
trunk/build/image-box/index.asset.php (added)
-
trunk/build/image-box/index.js (added)
-
trunk/build/image-box/render.php (added)
-
trunk/build/image-box/style-index-rtl.css (added)
-
trunk/build/image-box/style-index.css (added)
-
trunk/build/logo-cloud (added)
-
trunk/build/logo-cloud/block.json (added)
-
trunk/build/logo-cloud/index.asset.php (added)
-
trunk/build/logo-cloud/index.js (added)
-
trunk/build/logo-cloud/render.php (added)
-
trunk/build/logo-cloud/style-index-rtl.css (added)
-
trunk/build/logo-cloud/style-index.css (added)
-
trunk/build/logo-cloud/view.asset.php (added)
-
trunk/build/logo-cloud/view.js (added)
-
trunk/build/newsletter-signup/index.asset.php (modified) (1 diff)
-
trunk/build/newsletter-signup/index.js (modified) (1 diff)
-
trunk/build/pricing-tables/index.asset.php (modified) (1 diff)
-
trunk/build/pricing-tables/index.js (modified) (1 diff)
-
trunk/build/promo-banner (added)
-
trunk/build/promo-banner/block.json (added)
-
trunk/build/promo-banner/index.asset.php (added)
-
trunk/build/promo-banner/index.js (added)
-
trunk/build/promo-banner/render.php (added)
-
trunk/build/promo-banner/style-index-rtl.css (added)
-
trunk/build/promo-banner/style-index.css (added)
-
trunk/build/services-section/index.asset.php (modified) (1 diff)
-
trunk/build/services-section/index.js (modified) (1 diff)
-
trunk/build/shape-divider (added)
-
trunk/build/shape-divider/block.json (added)
-
trunk/build/shape-divider/index.asset.php (added)
-
trunk/build/shape-divider/index.js (added)
-
trunk/build/shape-divider/render.php (added)
-
trunk/build/shape-divider/style-index-rtl.css (added)
-
trunk/build/shape-divider/style-index.css (added)
-
trunk/build/social-share (added)
-
trunk/build/social-share/block.json (added)
-
trunk/build/social-share/index.asset.php (added)
-
trunk/build/social-share/index.js (added)
-
trunk/build/social-share/render.php (added)
-
trunk/build/social-share/style-index-rtl.css (added)
-
trunk/build/social-share/style-index.css (added)
-
trunk/build/star-rating (added)
-
trunk/build/star-rating/block.json (added)
-
trunk/build/star-rating/index.asset.php (added)
-
trunk/build/star-rating/index.js (added)
-
trunk/build/star-rating/render.php (added)
-
trunk/build/star-rating/style-index-rtl.css (added)
-
trunk/build/star-rating/style-index.css (added)
-
trunk/build/steps-timeline/index.asset.php (modified) (1 diff)
-
trunk/build/steps-timeline/index.js (modified) (1 diff)
-
trunk/build/team-members/index.asset.php (modified) (1 diff)
-
trunk/build/team-members/index.js (modified) (1 diff)
-
trunk/build/testimonials-section/index.asset.php (modified) (1 diff)
-
trunk/build/testimonials-section/index.js (modified) (1 diff)
-
trunk/build/video-cta-section/index.asset.php (modified) (1 diff)
-
trunk/build/video-cta-section/index.js (modified) (1 diff)
-
trunk/includes/helpers.php (modified) (2 diffs)
-
trunk/includes/registry.php (modified) (1 diff)
-
trunk/readme.txt (modified) (6 diffs)
-
trunk/section-blocks.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
section-blocks/tags/1.3.0/build/advanced-container/index.asset.php
r3687222 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' c0ae276bd34e6b2bcdae');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '37056398bfcca2cb4121'); -
section-blocks/tags/1.3.0/build/advanced-container/index.js
r3687222 r3750877 1 (()=>{"use strict";var e,o={679:()=>{const e=window.wp.blocks,o=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.components,a=window.ReactJSXRuntime,t=JSON.parse('{"UU":"create-block/advanced-container"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{contentWidth:i,maxWidth:r,backgroundType:c,backgroundColor:s,backgroundImage:d,overlayOpacity:b}=e,u=(0,n.useBlockProps)({className:"advanced-container-block align"+("full"===i?"full":""),style:{backgroundColor:"color"===c?s:void 0,backgroundImage:"image"===c&&d?`url(${d})`:void 0,backgroundSize:"cover",backgroundPosition:"center",position:"relative",minHeight:"50px",border:"none"!==c&&s||d?void 0:"1px dashed #ccc"}}),g={className:`container-inner-content width-${i}`,style:{maxWidth:"boxed"===i?`${r}px`:"100%",margin:"0 auto",position:"relative",zIndex:1,padding:"20px"}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.InspectorControls,{children:[(0,a.jsxs)(l.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(l.SelectControl,{label:(0,o.__)("Content Width","section-blocks"),value:i,options:[{label:(0,o.__)("Boxed","section-blocks"),value:"boxed"},{label:(0,o.__)("Full Width","section-blocks"),value:"full"}],onChange:e=>t({contentWidth:e})}),"boxed"===i&&(0,a.jsx)(l.RangeControl,{label:(0,o.__)("Max Width (px)","section-blocks"),value:r,onChange:e=>t({maxWidth:e}),min:400,max:2e3})]}),(0,a.jsxs)(l.PanelBody,{title:(0,o.__)("Background","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(l.SelectControl,{label:(0,o.__)("Background Type","section-blocks"),value:c,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Solid Color","section-blocks"),value:"color"},{label:(0,o.__)("Image","section-blocks"),value:"image"}],onChange:e=>t({backgroundType:e})}),"color"===c&&(0,a.jsx)(l.ColorPalette,{value:s,onChange:e=>t({backgroundColor:e})}),"image"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,a.jsx)(n.MediaUploadCheck,{children:(0,a.jsx)(n.MediaUpload,{onSelect:e=>t({backgroundImage:e.url}),allowedTypes:["image"],value:d,render:({open:e})=>(0,a.jsx)(l.Button,{variant:"secondary",onClick:e,children:d?(0,o.__)("Change Image","section-blocks"):(0,o.__)("Select Image","section-blocks")})})}),d&&(0,a.jsx)(l.Button,{style:{marginTop:"10px"},variant:"link",isDestructive:!0,onClick:()=>t({backgroundImage:""}),children:(0,o.__)("Remove Image","section-blocks")})]}),(0,a.jsx)(l.RangeControl,{label:(0,o.__)("Overlay Opacity (%)","section-blocks"),value:b,onChange:e=>t({overlayOpacity:e}),min:0,max:100})]})]})]}),(0,a.jsxs)("div",{...u,children:["image"===c&&b>0&&(0,a.jsx)("div",{className:"container-overlay",style:{backgroundColor:`rgba(0,0,0,${b/100})`,position:"absolute",top:0,left:0,right:0,bottom:0}}),(0,a.jsx)("div",{...g,children:(0,a.jsx)(n.InnerBlocks,{})})]})]})},save:()=>null})}},n={};function l(e){var a=n[e];if(void 0!==a)return a.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,l),t.exports}l.m=o,e=[],l.O=(o,n,a,t)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){for(var[n,a,t]=e[d],r=!0,c=0;c<n.length;c++)(!1&t||i>=t)&&Object.keys(l.O).every((e=>l.O[e](n[c])))?n.splice(c--,1):(r=!1,t<i&&(i=t));if(r){e.splice(d--,1);var s=a();void 0!==s&&(o=s)}}return o}t=t||0;for(var d=e.length;d>0&&e[d-1][2]>t;d--)e[d]=e[d-1];e[d]=[n,a,t]},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={394:0, 142:0};l.O.j=o=>0===e[o];var o=(o,n)=>{var a,t,[i,r,c]=n,s=0;if(i.some((o=>0!==e[o]))){for(a in r)l.o(r,a)&&(l.m[a]=r[a]);if(c)var d=c(l)}for(o&&o(n);s<i.length;s++)t=i[s],l.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return l.O(d)},n=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];n.forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n))})();var a=l.O(void 0,[142],(()=>l(679)));a=l.O(a)})();1 (()=>{"use strict";var e,o={679:()=>{const e=window.wp.blocks,o=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.components,a=window.ReactJSXRuntime,t=JSON.parse('{"UU":"create-block/advanced-container"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{contentWidth:i,maxWidth:r,backgroundType:c,backgroundColor:s,backgroundImage:d,overlayOpacity:b}=e,u=(0,n.useBlockProps)({className:"advanced-container-block align"+("full"===i?"full":""),style:{backgroundColor:"color"===c?s:void 0,backgroundImage:"image"===c&&d?`url(${d})`:void 0,backgroundSize:"cover",backgroundPosition:"center",position:"relative",minHeight:"50px",border:"none"!==c&&s||d?void 0:"1px dashed #ccc"}}),g={className:`container-inner-content width-${i}`,style:{maxWidth:"boxed"===i?`${r}px`:"100%",margin:"0 auto",position:"relative",zIndex:1,padding:"20px"}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.InspectorControls,{children:[(0,a.jsxs)(l.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(l.SelectControl,{label:(0,o.__)("Content Width","section-blocks"),value:i,options:[{label:(0,o.__)("Boxed","section-blocks"),value:"boxed"},{label:(0,o.__)("Full Width","section-blocks"),value:"full"}],onChange:e=>t({contentWidth:e})}),"boxed"===i&&(0,a.jsx)(l.RangeControl,{label:(0,o.__)("Max Width (px)","section-blocks"),value:r,onChange:e=>t({maxWidth:e}),min:400,max:2e3})]}),(0,a.jsxs)(l.PanelBody,{title:(0,o.__)("Background","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(l.SelectControl,{label:(0,o.__)("Background Type","section-blocks"),value:c,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Solid Color","section-blocks"),value:"color"},{label:(0,o.__)("Image","section-blocks"),value:"image"}],onChange:e=>t({backgroundType:e})}),"color"===c&&(0,a.jsx)(l.ColorPalette,{value:s,onChange:e=>t({backgroundColor:e})}),"image"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,a.jsx)(n.MediaUploadCheck,{children:(0,a.jsx)(n.MediaUpload,{onSelect:e=>t({backgroundImage:e.url}),allowedTypes:["image"],value:d,render:({open:e})=>(0,a.jsx)(l.Button,{variant:"secondary",onClick:e,children:d?(0,o.__)("Change Image","section-blocks"):(0,o.__)("Select Image","section-blocks")})})}),d&&(0,a.jsx)(l.Button,{style:{marginTop:"10px"},variant:"link",isDestructive:!0,onClick:()=>t({backgroundImage:""}),children:(0,o.__)("Remove Image","section-blocks")})]}),(0,a.jsx)(l.RangeControl,{label:(0,o.__)("Overlay Opacity (%)","section-blocks"),value:b,onChange:e=>t({overlayOpacity:e}),min:0,max:100})]})]})]}),(0,a.jsxs)("div",{...u,children:["image"===c&&b>0&&(0,a.jsx)("div",{className:"container-overlay",style:{backgroundColor:`rgba(0,0,0,${b/100})`,position:"absolute",top:0,left:0,right:0,bottom:0}}),(0,a.jsx)("div",{...g,children:(0,a.jsx)(n.InnerBlocks,{})})]})]})},save:()=>null})}},n={};function l(e){var a=n[e];if(void 0!==a)return a.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,l),t.exports}l.m=o,e=[],l.O=(o,n,a,t)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){for(var[n,a,t]=e[d],r=!0,c=0;c<n.length;c++)(!1&t||i>=t)&&Object.keys(l.O).every((e=>l.O[e](n[c])))?n.splice(c--,1):(r=!1,t<i&&(i=t));if(r){e.splice(d--,1);var s=a();void 0!==s&&(o=s)}}return o}t=t||0;for(var d=e.length;d>0&&e[d-1][2]>t;d--)e[d]=e[d-1];e[d]=[n,a,t]},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={394:0,8142:0};l.O.j=o=>0===e[o];var o=(o,n)=>{var a,t,[i,r,c]=n,s=0;if(i.some((o=>0!==e[o]))){for(a in r)l.o(r,a)&&(l.m[a]=r[a]);if(c)var d=c(l)}for(o&&o(n);s<i.length;s++)t=i[s],l.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return l.O(d)},n=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];n.forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n))})();var a=l.O(void 0,[8142],(()=>l(679)));a=l.O(a)})(); -
section-blocks/tags/1.3.0/build/blocks-manifest.php
r3687222 r3750877 59 59 'editorScript' => 'file:./index.js', 60 60 'style' => 'file:./style-index.css', 61 'render' => 'file:./render.php' 62 ), 63 'advanced-heading' => array( 64 '$schema' => 'https://schemas.wp.org/trunk/block.json', 65 'apiVersion' => 3, 66 'name' => 'section-blocks/advanced-heading', 67 'version' => '1.0.0', 68 'title' => 'Advanced Heading', 69 'category' => 'section-blocks-elements', 70 'icon' => 'heading', 71 'description' => 'A heading with an optional eyebrow, subheading, decorative separator and gradient text.', 72 'keywords' => array( 73 'heading', 74 'title', 75 'eyebrow', 76 'subheading', 77 'gradient', 78 'separator' 79 ), 80 'textdomain' => 'section-blocks', 81 'attributes' => array( 82 'showEyebrow' => array( 83 'type' => 'boolean', 84 'default' => false 85 ), 86 'eyebrow' => array( 87 'type' => 'string', 88 'default' => '' 89 ), 90 'heading' => array( 91 'type' => 'string', 92 'default' => '' 93 ), 94 'level' => array( 95 'type' => 'number', 96 'default' => 2 97 ), 98 'showSubheading' => array( 99 'type' => 'boolean', 100 'default' => false 101 ), 102 'subheading' => array( 103 'type' => 'string', 104 'default' => '' 105 ), 106 'textAlign' => array( 107 'type' => 'string', 108 'default' => '' 109 ), 110 'separator' => array( 111 'type' => 'string', 112 'enum' => array( 113 'none', 114 'line', 115 'dots', 116 'gradient' 117 ), 118 'default' => 'line' 119 ), 120 'separatorWidth' => array( 121 'type' => 'number', 122 'default' => 64 123 ), 124 'gradientText' => array( 125 'type' => 'boolean', 126 'default' => false 127 ), 128 'gradientFrom' => array( 129 'type' => 'string', 130 'default' => '#6366F1' 131 ), 132 'gradientTo' => array( 133 'type' => 'string', 134 'default' => '#C026D3' 135 ) 136 ), 137 'supports' => array( 138 'html' => false, 139 'anchor' => true, 140 'align' => array( 141 'wide', 142 'full' 143 ), 144 'color' => array( 145 'background' => true, 146 'text' => true, 147 'link' => true 148 ), 149 'spacing' => array( 150 'padding' => true, 151 'margin' => true 152 ), 153 'typography' => array( 154 'fontSize' => true, 155 'lineHeight' => true, 156 '__experimentalFontFamily' => true, 157 '__experimentalFontWeight' => true, 158 '__experimentalLetterSpacing' => true, 159 '__experimentalSkipSerialization' => true, 160 '__experimentalDefaultControls' => array( 161 'fontSize' => true 162 ) 163 ) 164 ), 165 'example' => array( 166 'attributes' => array( 167 'showEyebrow' => true, 168 'eyebrow' => 'Why teams choose us', 169 'heading' => 'Build pages that convert', 170 'showSubheading' => true, 171 'subheading' => 'Every section you need, designed to work with your theme.', 172 'textAlign' => 'center', 173 'separator' => 'gradient', 174 'separatorWidth' => 80, 175 'gradientText' => true 176 ) 177 ), 178 'editorScript' => 'file:./index.js', 179 'style' => array( 180 'file:./style-index.css', 181 'section-blocks-shared' 182 ), 183 'render' => 'file:./render.php' 184 ), 185 'author-box' => array( 186 '$schema' => 'https://schemas.wp.org/trunk/block.json', 187 'apiVersion' => 3, 188 'name' => 'section-blocks/author-box', 189 'version' => '1.0.0', 190 'title' => 'Author Box', 191 'category' => 'section-blocks-elements', 192 'icon' => 'admin-users', 193 'description' => 'Show who wrote the post — avatar, name, bio and links — pulled live from the post author, or entered by hand for a guest author.', 194 'keywords' => array( 195 'author', 196 'bio', 197 'profile', 198 'byline', 199 'avatar', 200 'about' 201 ), 202 'textdomain' => 'section-blocks', 203 'usesContext' => array( 204 'postId', 205 'postType' 206 ), 207 'attributes' => array( 208 'source' => array( 209 'type' => 'string', 210 'enum' => array( 211 'author', 212 'custom' 213 ), 214 'default' => 'author' 215 ), 216 'avatar' => array( 217 'type' => 'object', 218 'default' => array( 219 220 ) 221 ), 222 'name' => array( 223 'type' => 'string', 224 'default' => '' 225 ), 226 'role' => array( 227 'type' => 'string', 228 'default' => '' 229 ), 230 'bio' => array( 231 'type' => 'string', 232 'default' => '' 233 ), 234 'website' => array( 235 'type' => 'string', 236 'default' => '' 237 ), 238 'layout' => array( 239 'type' => 'string', 240 'enum' => array( 241 'horizontal', 242 'vertical' 243 ), 244 'default' => 'horizontal' 245 ), 246 'avatarShape' => array( 247 'type' => 'string', 248 'enum' => array( 249 'circle', 250 'rounded' 251 ), 252 'default' => 'circle' 253 ), 254 'avatarSize' => array( 255 'type' => 'number', 256 'default' => 96 257 ), 258 'nameTag' => array( 259 'type' => 'string', 260 'enum' => array( 261 'p', 262 'h2', 263 'h3', 264 'h4' 265 ), 266 'default' => 'p' 267 ), 268 'showBio' => array( 269 'type' => 'boolean', 270 'default' => true 271 ), 272 'showLinks' => array( 273 'type' => 'boolean', 274 'default' => true 275 ), 276 'links' => array( 277 'type' => 'array', 278 'default' => array( 279 280 ) 281 ) 282 ), 283 'supports' => array( 284 'html' => false, 285 'anchor' => true, 286 'align' => array( 287 'wide' 288 ), 289 'color' => array( 290 'background' => true, 291 'text' => true, 292 'link' => true 293 ), 294 'spacing' => array( 295 'padding' => true, 296 'margin' => true 297 ), 298 'typography' => array( 299 'fontSize' => true, 300 'lineHeight' => true 301 ), 302 '__experimentalBorder' => array( 303 'color' => true, 304 'radius' => true, 305 'style' => true, 306 'width' => true 307 ), 308 'shadow' => true 309 ), 310 'example' => array( 311 'attributes' => array( 312 'source' => 'custom', 313 'name' => 'Jane Cooper', 314 'role' => 'Senior Editor', 315 'bio' => 'Jane writes about design systems, accessibility and the open web. She has been building with WordPress for over a decade.', 316 'website' => 'https://example.com', 317 'links' => array( 318 array( 319 'label' => 'Mastodon', 320 'url' => 'https://example.com/@jane' 321 ), 322 array( 323 'label' => 'GitHub', 324 'url' => 'https://example.com/jane' 325 ) 326 ) 327 ) 328 ), 329 'editorScript' => 'file:./index.js', 330 'style' => array( 331 'file:./style-index.css', 332 'section-blocks-shared' 333 ), 334 'render' => 'file:./render.php' 335 ), 336 'button-group' => array( 337 '$schema' => 'https://schemas.wp.org/trunk/block.json', 338 'apiVersion' => 3, 339 'name' => 'section-blocks/button-group', 340 'version' => '1.0.0', 341 'title' => 'Button Group', 342 'category' => 'section-blocks-elements', 343 'icon' => 'button', 344 'description' => 'A row of call-to-action buttons with shared styles, icons, sizes and spacing, that can stack full width on phones.', 345 'keywords' => array( 346 'button', 347 'buttons', 348 'cta', 349 'call to action', 350 'link', 351 'group' 352 ), 353 'textdomain' => 'section-blocks', 354 'attributes' => array( 355 'buttons' => array( 356 'type' => 'array', 357 'default' => array( 358 array( 359 'text' => 'Get started', 360 'url' => '', 361 'opensInNewTab' => false, 362 'style' => 'primary', 363 'icon' => '' 364 ), 365 array( 366 'text' => 'Learn more', 367 'url' => '', 368 'opensInNewTab' => false, 369 'style' => 'outline', 370 'icon' => '' 371 ) 372 ) 373 ), 374 'justification' => array( 375 'type' => 'string', 376 'enum' => array( 377 'left', 378 'center', 379 'right', 380 'space-between' 381 ), 382 'default' => 'left' 383 ), 384 'size' => array( 385 'type' => 'string', 386 'enum' => array( 387 'small', 388 'medium', 389 'large' 390 ), 391 'default' => 'medium' 392 ), 393 'gap' => array( 394 'type' => 'number', 395 'default' => 16 396 ), 397 'stackOnMobile' => array( 398 'type' => 'boolean', 399 'default' => false 400 ), 401 'ariaLabel' => array( 402 'type' => 'string', 403 'default' => '' 404 ) 405 ), 406 'supports' => array( 407 'html' => false, 408 'anchor' => true, 409 'align' => array( 410 'wide', 411 'full' 412 ), 413 'color' => array( 414 'background' => true, 415 'text' => true 416 ), 417 'spacing' => array( 418 'padding' => true, 419 'margin' => true 420 ), 421 'typography' => array( 422 'fontSize' => true 423 ) 424 ), 425 'example' => array( 426 'attributes' => array( 427 'justification' => 'center', 428 'buttons' => array( 429 array( 430 'text' => 'Get started', 431 'url' => '#', 432 'opensInNewTab' => false, 433 'style' => 'primary', 434 'icon' => 'arrow-right' 435 ), 436 array( 437 'text' => 'Learn more', 438 'url' => '#', 439 'opensInNewTab' => false, 440 'style' => 'outline', 441 'icon' => '' 442 ) 443 ) 444 ) 445 ), 446 'editorScript' => 'file:./index.js', 447 'style' => array( 448 'file:./style-index.css', 449 'section-blocks-shared' 450 ), 451 'render' => 'file:./render.php' 452 ), 453 'callout' => array( 454 '$schema' => 'https://schemas.wp.org/trunk/block.json', 455 'apiVersion' => 3, 456 'name' => 'section-blocks/callout', 457 'version' => '1.0.0', 458 'title' => 'Callout', 459 'category' => 'section-blocks-elements', 460 'icon' => 'info-outline', 461 'description' => 'Highlight a note, tip, success message, warning or danger notice with an icon, accessible colors and an optional title.', 462 'keywords' => array( 463 'notice', 464 'alert', 465 'admonition', 466 'note', 467 'tip', 468 'warning', 469 'info', 470 'message', 471 'box' 472 ), 473 'textdomain' => 'section-blocks', 474 'attributes' => array( 475 'type' => array( 476 'type' => 'string', 477 'enum' => array( 478 'info', 479 'success', 480 'warning', 481 'tip', 482 'danger' 483 ), 484 'default' => 'info' 485 ), 486 'title' => array( 487 'type' => 'string', 488 'default' => '' 489 ), 490 'content' => array( 491 'type' => 'string', 492 'default' => '' 493 ), 494 'showIcon' => array( 495 'type' => 'boolean', 496 'default' => true 497 ), 498 'icon' => array( 499 'type' => 'string', 500 'default' => '' 501 ) 502 ), 503 'styles' => array( 504 array( 505 'name' => 'soft', 506 'label' => 'Soft', 507 'isDefault' => true 508 ), 509 array( 510 'name' => 'outline', 511 'label' => 'Outline' 512 ), 513 array( 514 'name' => 'solid', 515 'label' => 'Solid' 516 ) 517 ), 518 'supports' => array( 519 'html' => false, 520 'anchor' => true, 521 'align' => array( 522 'wide', 523 'full' 524 ), 525 'color' => array( 526 'background' => true, 527 'text' => true, 528 'link' => true 529 ), 530 'spacing' => array( 531 'padding' => true, 532 'margin' => true 533 ), 534 'typography' => array( 535 'fontSize' => true, 536 'lineHeight' => true 537 ), 538 '__experimentalBorder' => array( 539 'radius' => true 540 ) 541 ), 542 'example' => array( 543 'attributes' => array( 544 'type' => 'tip', 545 'title' => 'Pro tip', 546 'content' => 'Press <strong>/</strong> in an empty paragraph to search for any block, including this one.' 547 ) 548 ), 549 'editorScript' => 'file:./index.js', 550 'style' => array( 551 'file:./style-index.css', 552 'section-blocks-shared' 553 ), 61 554 'render' => 'file:./render.php' 62 555 ), … … 862 1355 'editorStyle' => 'file:./index.css', 863 1356 'style' => 'file:./style-index.css', 1357 'render' => 'file:./render.php' 1358 ), 1359 'icon-box' => array( 1360 '$schema' => 'https://schemas.wp.org/trunk/block.json', 1361 'apiVersion' => 3, 1362 'name' => 'section-blocks/icon-box', 1363 'version' => '1.0.0', 1364 'title' => 'Icon Box', 1365 'category' => 'section-blocks-elements', 1366 'icon' => 'id-alt', 1367 'description' => 'An icon with a title and text. Optionally the whole box is one accessible link, with a lift or glow hover effect.', 1368 'keywords' => array( 1369 'icon', 1370 'feature', 1371 'box', 1372 'card', 1373 'service', 1374 'link' 1375 ), 1376 'textdomain' => 'section-blocks', 1377 'attributes' => array( 1378 'icon' => array( 1379 'type' => 'string', 1380 'default' => 'star-filled' 1381 ), 1382 'title' => array( 1383 'type' => 'string', 1384 'default' => '' 1385 ), 1386 'titleLevel' => array( 1387 'type' => 'number', 1388 'default' => 3 1389 ), 1390 'text' => array( 1391 'type' => 'string', 1392 'default' => '' 1393 ), 1394 'layout' => array( 1395 'type' => 'string', 1396 'enum' => array( 1397 'top', 1398 'left' 1399 ), 1400 'default' => 'top' 1401 ), 1402 'iconStyle' => array( 1403 'type' => 'string', 1404 'enum' => array( 1405 'plain', 1406 'circle', 1407 'square' 1408 ), 1409 'default' => 'circle' 1410 ), 1411 'url' => array( 1412 'type' => 'string', 1413 'default' => '' 1414 ), 1415 'opensInNewTab' => array( 1416 'type' => 'boolean', 1417 'default' => false 1418 ), 1419 'hoverEffect' => array( 1420 'type' => 'string', 1421 'enum' => array( 1422 'none', 1423 'lift', 1424 'glow' 1425 ), 1426 'default' => 'none' 1427 ), 1428 'textAlign' => array( 1429 'type' => 'string', 1430 'enum' => array( 1431 'left', 1432 'center' 1433 ), 1434 'default' => 'left' 1435 ) 1436 ), 1437 'supports' => array( 1438 'html' => false, 1439 'anchor' => true, 1440 'color' => array( 1441 'background' => true, 1442 'text' => true 1443 ), 1444 'spacing' => array( 1445 'padding' => true, 1446 'margin' => true 1447 ), 1448 'typography' => array( 1449 'fontSize' => true, 1450 'lineHeight' => true 1451 ), 1452 '__experimentalBorder' => array( 1453 'color' => true, 1454 'radius' => true, 1455 'style' => true, 1456 'width' => true 1457 ), 1458 'shadow' => true 1459 ), 1460 'example' => array( 1461 'attributes' => array( 1462 'icon' => 'shield', 1463 'title' => 'Secure by default', 1464 'text' => 'Every page is escaped, accessible and fast, out of the box.', 1465 'iconStyle' => 'circle', 1466 'textAlign' => 'center' 1467 ) 1468 ), 1469 'editorScript' => 'file:./index.js', 1470 'style' => array( 1471 'file:./style-index.css', 1472 'section-blocks-shared' 1473 ), 1474 'render' => 'file:./render.php' 1475 ), 1476 'icon-list' => array( 1477 '$schema' => 'https://schemas.wp.org/trunk/block.json', 1478 'apiVersion' => 3, 1479 'name' => 'section-blocks/icon-list', 1480 'version' => '1.0.0', 1481 'title' => 'Icon List', 1482 'category' => 'section-blocks-elements', 1483 'icon' => 'editor-ul', 1484 'description' => 'A bulleted list with an icon in front of every item — checkmarks for features, pins for locations. Pick one icon for the whole list, override it per item, and lay it out in up to three columns.', 1485 'keywords' => array( 1486 'list', 1487 'checklist', 1488 'icon', 1489 'bullets', 1490 'features', 1491 'benefits' 1492 ), 1493 'textdomain' => 'section-blocks', 1494 'attributes' => array( 1495 'items' => array( 1496 'type' => 'array', 1497 'default' => array( 1498 array( 1499 'icon' => '', 1500 'text' => 'First list item' 1501 ), 1502 array( 1503 'icon' => '', 1504 'text' => 'Second list item' 1505 ), 1506 array( 1507 'icon' => '', 1508 'text' => 'Third list item' 1509 ) 1510 ) 1511 ), 1512 'defaultIcon' => array( 1513 'type' => 'string', 1514 'default' => 'check' 1515 ), 1516 'iconColor' => array( 1517 'type' => 'string', 1518 'default' => '' 1519 ), 1520 'iconSize' => array( 1521 'type' => 'number', 1522 'default' => 20 1523 ), 1524 'columns' => array( 1525 'type' => 'number', 1526 'default' => 1 1527 ), 1528 'itemSpacing' => array( 1529 'type' => 'number', 1530 'default' => 12 1531 ), 1532 'showDividers' => array( 1533 'type' => 'boolean', 1534 'default' => false 1535 ) 1536 ), 1537 'supports' => array( 1538 'html' => false, 1539 'anchor' => true, 1540 'align' => array( 1541 'wide' 1542 ), 1543 'color' => array( 1544 'background' => true, 1545 'text' => true, 1546 'link' => true 1547 ), 1548 'spacing' => array( 1549 'padding' => true, 1550 'margin' => true 1551 ), 1552 'typography' => array( 1553 'fontSize' => true, 1554 'lineHeight' => true 1555 ) 1556 ), 1557 'example' => array( 1558 'attributes' => array( 1559 'items' => array( 1560 array( 1561 'icon' => '', 1562 'text' => 'Free shipping on every order' 1563 ), 1564 array( 1565 'icon' => '', 1566 'text' => '30-day money-back guarantee' 1567 ), 1568 array( 1569 'icon' => '', 1570 'text' => 'Support from real people, 7 days a week' 1571 ), 1572 array( 1573 'icon' => 'lock', 1574 'text' => 'Secure checkout' 1575 ) 1576 ), 1577 'iconSize' => 22 1578 ) 1579 ), 1580 'editorScript' => 'file:./index.js', 1581 'style' => array( 1582 'file:./style-index.css', 1583 'section-blocks-shared' 1584 ), 1585 'render' => 'file:./render.php' 1586 ), 1587 'image-box' => array( 1588 '$schema' => 'https://schemas.wp.org/trunk/block.json', 1589 'apiVersion' => 3, 1590 'name' => 'section-blocks/image-box', 1591 'version' => '1.0.0', 1592 'title' => 'Image Box', 1593 'category' => 'section-blocks-elements', 1594 'icon' => 'format-image', 1595 'description' => 'An image with a title and text, shown as a card, as text over the image, or side by side — with a fixed aspect ratio, focal point, hover zoom and an optional link on the whole box.', 1596 'keywords' => array( 1597 'image', 1598 'card', 1599 'box', 1600 'feature', 1601 'overlay', 1602 'teaser', 1603 'link' 1604 ), 1605 'textdomain' => 'section-blocks', 1606 'attributes' => array( 1607 'image' => array( 1608 'type' => 'object', 1609 'default' => array( 1610 1611 ) 1612 ), 1613 'title' => array( 1614 'type' => 'string', 1615 'default' => '' 1616 ), 1617 'titleLevel' => array( 1618 'type' => 'number', 1619 'default' => 3 1620 ), 1621 'text' => array( 1622 'type' => 'string', 1623 'default' => '' 1624 ), 1625 'url' => array( 1626 'type' => 'string', 1627 'default' => '' 1628 ), 1629 'opensInNewTab' => array( 1630 'type' => 'boolean', 1631 'default' => false 1632 ), 1633 'boxStyle' => array( 1634 'type' => 'string', 1635 'enum' => array( 1636 'card', 1637 'overlay', 1638 'side' 1639 ), 1640 'default' => 'card' 1641 ), 1642 'aspectRatio' => array( 1643 'type' => 'string', 1644 'enum' => array( 1645 '16/9', 1646 '4/3', 1647 '1/1', 1648 '3/4' 1649 ), 1650 'default' => '4/3' 1651 ), 1652 'hoverZoom' => array( 1653 'type' => 'boolean', 1654 'default' => true 1655 ) 1656 ), 1657 'supports' => array( 1658 'html' => false, 1659 'anchor' => true, 1660 'color' => array( 1661 'background' => true, 1662 'text' => true, 1663 'link' => true 1664 ), 1665 'spacing' => array( 1666 'margin' => true, 1667 'padding' => true, 1668 '__experimentalSkipSerialization' => array( 1669 'padding' 1670 ) 1671 ), 1672 'typography' => array( 1673 'fontSize' => true, 1674 'lineHeight' => true 1675 ), 1676 '__experimentalBorder' => array( 1677 'color' => true, 1678 'radius' => true, 1679 'style' => true, 1680 'width' => true 1681 ), 1682 'shadow' => true 1683 ), 1684 'example' => array( 1685 'attributes' => array( 1686 'image' => array( 1687 'url' => 'data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 800 600\'%3E%3Cdefs%3E%3ClinearGradient id=\'g\' x1=\'0\' y1=\'0\' x2=\'0\' y2=\'1\'%3E%3Cstop offset=\'0\' stop-color=\'%2393c5fd\'/%3E%3Cstop offset=\'1\' stop-color=\'%23fde68a\'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=\'800\' height=\'600\' fill=\'url(%23g)\'/%3E%3Ccircle cx=\'600\' cy=\'170\' r=\'70\' fill=\'%23fbbf24\'/%3E%3Cpath d=\'M0 600V430l220-170 180 140 160-100 240 160v140z\' fill=\'%23047857\'/%3E%3Cpath d=\'M0 600V500l300-90 260 70 240-40v160z\' fill=\'%23065f46\'/%3E%3C/svg%3E', 1688 'alt' => '' 1689 ), 1690 'title' => 'Guided mountain hikes', 1691 'text' => 'Small groups, local guides and routes for every level.', 1692 'url' => '#' 1693 ) 1694 ), 1695 'editorScript' => 'file:./index.js', 1696 'style' => array( 1697 'file:./style-index.css', 1698 'section-blocks-shared' 1699 ), 1700 'render' => 'file:./render.php' 1701 ), 1702 'logo-cloud' => array( 1703 '$schema' => 'https://schemas.wp.org/trunk/block.json', 1704 'apiVersion' => 3, 1705 'name' => 'section-blocks/logo-cloud', 1706 'version' => '1.0.0', 1707 'title' => 'Logo Cloud', 1708 'category' => 'section-blocks-elements', 1709 'icon' => 'screenoptions', 1710 'description' => 'Show client or partner logos as a responsive grid or an accessible, auto-scrolling marquee with optional grayscale.', 1711 'keywords' => array( 1712 'logos', 1713 'clients', 1714 'partners', 1715 'brands', 1716 'marquee', 1717 'trusted by', 1718 'sponsors' 1719 ), 1720 'textdomain' => 'section-blocks', 1721 'attributes' => array( 1722 'showHeading' => array( 1723 'type' => 'boolean', 1724 'default' => true 1725 ), 1726 'heading' => array( 1727 'type' => 'string', 1728 'default' => 'Trusted by teams at' 1729 ), 1730 'logos' => array( 1731 'type' => 'array', 1732 'default' => array( 1733 1734 ), 1735 'items' => array( 1736 'type' => 'object' 1737 ) 1738 ), 1739 'layout' => array( 1740 'type' => 'string', 1741 'enum' => array( 1742 'grid', 1743 'marquee' 1744 ), 1745 'default' => 'grid' 1746 ), 1747 'columns' => array( 1748 'type' => 'object', 1749 'default' => array( 1750 'desktop' => 6, 1751 'tablet' => 4, 1752 'mobile' => 3 1753 ) 1754 ), 1755 'speed' => array( 1756 'type' => 'string', 1757 'enum' => array( 1758 'slow', 1759 'normal', 1760 'fast' 1761 ), 1762 'default' => 'normal' 1763 ), 1764 'grayscale' => array( 1765 'type' => 'boolean', 1766 'default' => true 1767 ), 1768 'logoHeight' => array( 1769 'type' => 'number', 1770 'default' => 48 1771 ) 1772 ), 1773 'supports' => array( 1774 'html' => false, 1775 'anchor' => true, 1776 'align' => array( 1777 'wide', 1778 'full' 1779 ), 1780 'color' => array( 1781 'background' => true, 1782 'text' => true 1783 ), 1784 'spacing' => array( 1785 'padding' => true, 1786 'margin' => true 1787 ), 1788 'typography' => array( 1789 'fontSize' => true, 1790 'lineHeight' => true 1791 ), 1792 '__experimentalBorder' => array( 1793 'color' => true, 1794 'radius' => true, 1795 'style' => true, 1796 'width' => true 1797 ), 1798 'interactivity' => true 1799 ), 1800 'example' => array( 1801 'attributes' => array( 1802 'heading' => 'Trusted by teams at', 1803 'columns' => array( 1804 'desktop' => 4, 1805 'tablet' => 4, 1806 'mobile' => 2 1807 ), 1808 'logoHeight' => 40, 1809 'logos' => array( 1810 array( 1811 'image' => array( 1812 'url' => 'data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'160\' height=\'48\' viewBox=\'0 0 160 48\'%3E%3Ccircle cx=\'22\' cy=\'24\' r=\'14\' fill=\'%232563eb\'/%3E%3Ctext x=\'44\' y=\'32\' font-family=\'sans-serif\' font-size=\'22\' font-weight=\'700\' fill=\'%231e293b\'%3EAcme%3C/text%3E%3C/svg%3E', 1813 'alt' => 'Acme' 1814 ), 1815 'url' => '' 1816 ), 1817 array( 1818 'image' => array( 1819 'url' => 'data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'160\' height=\'48\' viewBox=\'0 0 160 48\'%3E%3Crect x=\'8\' y=\'10\' width=\'28\' height=\'28\' rx=\'6\' fill=\'%23059669\'/%3E%3Ctext x=\'44\' y=\'32\' font-family=\'sans-serif\' font-size=\'22\' font-weight=\'700\' fill=\'%231e293b\'%3ENimbus%3C/text%3E%3C/svg%3E', 1820 'alt' => 'Nimbus' 1821 ), 1822 'url' => '' 1823 ), 1824 array( 1825 'image' => array( 1826 'url' => 'data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'160\' height=\'48\' viewBox=\'0 0 160 48\'%3E%3Cpath d=\'M8 38 22 10l14 28z\' fill=\'%23d97706\'/%3E%3Ctext x=\'44\' y=\'32\' font-family=\'sans-serif\' font-size=\'22\' font-weight=\'700\' fill=\'%231e293b\'%3EVertex%3C/text%3E%3C/svg%3E', 1827 'alt' => 'Vertex' 1828 ), 1829 'url' => '' 1830 ), 1831 array( 1832 'image' => array( 1833 'url' => 'data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'160\' height=\'48\' viewBox=\'0 0 160 48\'%3E%3Ccircle cx=\'22\' cy=\'24\' r=\'14\' fill=\'none\' stroke=\'%237c3aed\' stroke-width=\'6\'/%3E%3Ctext x=\'44\' y=\'32\' font-family=\'sans-serif\' font-size=\'22\' font-weight=\'700\' fill=\'%231e293b\'%3EOrbit%3C/text%3E%3C/svg%3E', 1834 'alt' => 'Orbit' 1835 ), 1836 'url' => '' 1837 ) 1838 ) 1839 ) 1840 ), 1841 'editorScript' => 'file:./index.js', 1842 'style' => array( 1843 'file:./style-index.css', 1844 'section-blocks-shared' 1845 ), 1846 'viewScriptModule' => 'file:./view.js', 864 1847 'render' => 'file:./render.php' 865 1848 ), … … 1381 2364 'viewScript' => 'file:./view.js' 1382 2365 ), 2366 'promo-banner' => array( 2367 '$schema' => 'https://schemas.wp.org/trunk/block.json', 2368 'apiVersion' => 3, 2369 'name' => 'section-blocks/promo-banner', 2370 'version' => '1.0.0', 2371 'title' => 'Promo Banner', 2372 'category' => 'section-blocks-elements', 2373 'icon' => 'megaphone', 2374 'description' => 'A promotional banner with a background image, color overlay, badge, heading, text and button, with the content placed where you want it.', 2375 'keywords' => array( 2376 'promo', 2377 'banner', 2378 'sale', 2379 'offer', 2380 'announcement', 2381 'cta', 2382 'hero' 2383 ), 2384 'textdomain' => 'section-blocks', 2385 'attributes' => array( 2386 'image' => array( 2387 'type' => 'object', 2388 'default' => array( 2389 2390 ) 2391 ), 2392 'overlayColor' => array( 2393 'type' => 'string', 2394 'default' => '#1E1B4B' 2395 ), 2396 'overlayOpacity' => array( 2397 'type' => 'number', 2398 'default' => 55 2399 ), 2400 'badge' => array( 2401 'type' => 'string', 2402 'default' => '' 2403 ), 2404 'heading' => array( 2405 'type' => 'string', 2406 'default' => '' 2407 ), 2408 'headingLevel' => array( 2409 'type' => 'number', 2410 'default' => 2 2411 ), 2412 'text' => array( 2413 'type' => 'string', 2414 'default' => '' 2415 ), 2416 'button' => array( 2417 'type' => 'object', 2418 'default' => array( 2419 'text' => '', 2420 'url' => '', 2421 'opensInNewTab' => false, 2422 'style' => 'primary', 2423 'icon' => '' 2424 ) 2425 ), 2426 'contentPosition' => array( 2427 'type' => 'string', 2428 'enum' => array( 2429 'left', 2430 'center', 2431 'right' 2432 ), 2433 'default' => 'left' 2434 ), 2435 'verticalAlign' => array( 2436 'type' => 'string', 2437 'enum' => array( 2438 'top', 2439 'middle', 2440 'bottom' 2441 ), 2442 'default' => 'middle' 2443 ), 2444 'minHeight' => array( 2445 'type' => 'number', 2446 'default' => 320 2447 ) 2448 ), 2449 'supports' => array( 2450 'html' => false, 2451 'anchor' => true, 2452 'align' => array( 2453 'wide', 2454 'full' 2455 ), 2456 'color' => array( 2457 'background' => false, 2458 'text' => true, 2459 'link' => true 2460 ), 2461 'spacing' => array( 2462 'padding' => true, 2463 'margin' => true 2464 ), 2465 'typography' => array( 2466 'fontSize' => true, 2467 'lineHeight' => true 2468 ), 2469 '__experimentalBorder' => array( 2470 'color' => true, 2471 'radius' => true, 2472 'style' => true, 2473 'width' => true 2474 ), 2475 'shadow' => true 2476 ), 2477 'example' => array( 2478 'attributes' => array( 2479 'badge' => 'Limited time', 2480 'heading' => 'Save 30% on annual plans', 2481 'text' => 'Upgrade before Friday and get three months free.', 2482 'button' => array( 2483 'text' => 'Claim offer', 2484 'url' => '#', 2485 'opensInNewTab' => false, 2486 'style' => 'primary', 2487 'icon' => 'arrow-right' 2488 ), 2489 'minHeight' => 280 2490 ) 2491 ), 2492 'editorScript' => 'file:./index.js', 2493 'style' => array( 2494 'file:./style-index.css', 2495 'section-blocks-shared' 2496 ), 2497 'render' => 'file:./render.php' 2498 ), 1383 2499 'services-section' => array( 1384 2500 '$schema' => 'https://schemas.wp.org/trunk/block.json', … … 1562 2678 'editorStyle' => 'file:./index.css', 1563 2679 'style' => 'file:./style-index.css', 2680 'render' => 'file:./render.php' 2681 ), 2682 'shape-divider' => array( 2683 '$schema' => 'https://schemas.wp.org/trunk/block.json', 2684 'apiVersion' => 3, 2685 'name' => 'section-blocks/shape-divider', 2686 'version' => '1.0.0', 2687 'title' => 'Shape Divider', 2688 'category' => 'section-blocks-elements', 2689 'icon' => 'minus', 2690 'description' => 'A decorative wave, curve, zigzag or mountain edge that sits flush between two sections. Pick the shape, height, direction and colors.', 2691 'keywords' => array( 2692 'divider', 2693 'separator', 2694 'wave', 2695 'curve', 2696 'shape', 2697 'svg', 2698 'section' 2699 ), 2700 'textdomain' => 'section-blocks', 2701 'attributes' => array( 2702 'align' => array( 2703 'type' => 'string', 2704 'default' => 'full' 2705 ), 2706 'shape' => array( 2707 'type' => 'string', 2708 'enum' => array( 2709 'wave', 2710 'waves', 2711 'curve', 2712 'tilt', 2713 'triangle', 2714 'arrow', 2715 'zigzag', 2716 'clouds', 2717 'mountains' 2718 ), 2719 'default' => 'wave' 2720 ), 2721 'height' => array( 2722 'type' => 'number', 2723 'default' => 80 2724 ), 2725 'flipX' => array( 2726 'type' => 'boolean', 2727 'default' => false 2728 ), 2729 'flipY' => array( 2730 'type' => 'boolean', 2731 'default' => false 2732 ), 2733 'shapeColor' => array( 2734 'type' => 'string', 2735 'default' => '' 2736 ) 2737 ), 2738 'supports' => array( 2739 'html' => false, 2740 'anchor' => true, 2741 'align' => array( 2742 'wide', 2743 'full' 2744 ), 2745 'color' => array( 2746 'background' => true, 2747 'text' => false, 2748 'link' => false 2749 ), 2750 'spacing' => array( 2751 'margin' => array( 2752 'top', 2753 'bottom' 2754 ) 2755 ) 2756 ), 2757 'example' => array( 2758 'attributes' => array( 2759 'shape' => 'waves', 2760 'height' => 100, 2761 'shapeColor' => '#4f46e5' 2762 ) 2763 ), 2764 'editorScript' => 'file:./index.js', 2765 'style' => array( 2766 'file:./style-index.css', 2767 'section-blocks-shared' 2768 ), 2769 'render' => 'file:./render.php' 2770 ), 2771 'social-share' => array( 2772 '$schema' => 'https://schemas.wp.org/trunk/block.json', 2773 'apiVersion' => 3, 2774 'name' => 'section-blocks/social-share', 2775 'version' => '1.0.0', 2776 'title' => 'Social Share', 2777 'category' => 'section-blocks-elements', 2778 'icon' => 'share', 2779 'description' => 'Share buttons for the current page (X, Facebook, LinkedIn, WhatsApp, Reddit, email) — plain links, no tracking scripts or counters.', 2780 'keywords' => array( 2781 'share', 2782 'social', 2783 'sharing', 2784 'facebook', 2785 'linkedin', 2786 'whatsapp', 2787 'twitter' 2788 ), 2789 'textdomain' => 'section-blocks', 2790 'usesContext' => array( 2791 'postId', 2792 'postType' 2793 ), 2794 'attributes' => array( 2795 'networks' => array( 2796 'type' => 'array', 2797 'items' => array( 2798 'type' => 'string' 2799 ), 2800 'default' => array( 2801 'x', 2802 'facebook', 2803 'linkedin', 2804 'email' 2805 ) 2806 ), 2807 'showLabel' => array( 2808 'type' => 'boolean', 2809 'default' => true 2810 ), 2811 'label' => array( 2812 'type' => 'string', 2813 'default' => 'Share this:' 2814 ), 2815 'showNames' => array( 2816 'type' => 'boolean', 2817 'default' => false 2818 ), 2819 'shape' => array( 2820 'type' => 'string', 2821 'enum' => array( 2822 'circle', 2823 'rounded', 2824 'square' 2825 ), 2826 'default' => 'circle' 2827 ), 2828 'colorScheme' => array( 2829 'type' => 'string', 2830 'enum' => array( 2831 'brand', 2832 'accent', 2833 'mono' 2834 ), 2835 'default' => 'brand' 2836 ), 2837 'size' => array( 2838 'type' => 'string', 2839 'enum' => array( 2840 'small', 2841 'medium', 2842 'large' 2843 ), 2844 'default' => 'medium' 2845 ), 2846 'justify' => array( 2847 'type' => 'string', 2848 'enum' => array( 2849 'left', 2850 'center', 2851 'right', 2852 'space-between' 2853 ), 2854 'default' => 'left' 2855 ) 2856 ), 2857 'supports' => array( 2858 'html' => false, 2859 'anchor' => true, 2860 'color' => array( 2861 'background' => true, 2862 'text' => true 2863 ), 2864 'spacing' => array( 2865 'padding' => true, 2866 'margin' => true 2867 ), 2868 'typography' => array( 2869 'fontSize' => true, 2870 'lineHeight' => true 2871 ) 2872 ), 2873 'example' => array( 2874 'attributes' => array( 2875 'networks' => array( 2876 'x', 2877 'facebook', 2878 'linkedin', 2879 'whatsapp', 2880 'email' 2881 ), 2882 'showNames' => false, 2883 'size' => 'large' 2884 ) 2885 ), 2886 'editorScript' => 'file:./index.js', 2887 'style' => array( 2888 'file:./style-index.css', 2889 'section-blocks-shared' 2890 ), 2891 'render' => 'file:./render.php' 2892 ), 2893 'star-rating' => array( 2894 '$schema' => 'https://schemas.wp.org/trunk/block.json', 2895 'apiVersion' => 3, 2896 'name' => 'section-blocks/star-rating', 2897 'version' => '1.0.0', 2898 'title' => 'Star Rating', 2899 'category' => 'section-blocks-elements', 2900 'icon' => 'star-half', 2901 'description' => 'Show a rating from 0 to 5 stars in half-star steps, with crisp SVG stars, your own colors and an optional label such as “4.8 out of 5 from 1,200 reviews”.', 2902 'keywords' => array( 2903 'rating', 2904 'stars', 2905 'review', 2906 'score', 2907 'testimonial' 2908 ), 2909 'textdomain' => 'section-blocks', 2910 'attributes' => array( 2911 'rating' => array( 2912 'type' => 'number', 2913 'default' => 4.5 2914 ), 2915 'starSize' => array( 2916 'type' => 'number', 2917 'default' => 20 2918 ), 2919 'starColor' => array( 2920 'type' => 'string', 2921 'default' => '#F59E0B' 2922 ), 2923 'emptyColor' => array( 2924 'type' => 'string', 2925 'default' => '' 2926 ), 2927 'label' => array( 2928 'type' => 'string', 2929 'default' => '' 2930 ), 2931 'showNumber' => array( 2932 'type' => 'boolean', 2933 'default' => false 2934 ), 2935 'alignment' => array( 2936 'type' => 'string', 2937 'enum' => array( 2938 'left', 2939 'center', 2940 'right' 2941 ), 2942 'default' => 'left' 2943 ) 2944 ), 2945 'supports' => array( 2946 'html' => false, 2947 'anchor' => true, 2948 'color' => array( 2949 'background' => true, 2950 'text' => true 2951 ), 2952 'spacing' => array( 2953 'padding' => true, 2954 'margin' => true 2955 ), 2956 'typography' => array( 2957 'fontSize' => true, 2958 'lineHeight' => true 2959 ) 2960 ), 2961 'example' => array( 2962 'attributes' => array( 2963 'rating' => 4.5, 2964 'starSize' => 24, 2965 'showNumber' => true, 2966 'label' => 'from 1,200 reviews' 2967 ) 2968 ), 2969 'editorScript' => 'file:./index.js', 2970 'style' => array( 2971 'file:./style-index.css', 2972 'section-blocks-shared' 2973 ), 1564 2974 'render' => 'file:./render.php' 1565 2975 ), -
section-blocks/tags/1.3.0/build/cta-section/index.asset.php
r3663541 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' ddb4cc5e090dd15eb997');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'bdbb2e9834ce8bb449e5'); -
section-blocks/tags/1.3.0/build/cta-section/index.js
r3302097 r3750877 1 (()=>{"use strict";var o,e={957:()=>{const o=window.wp.blocks,e=window.wp.i18n,l=window.wp.blockEditor,t=window.wp.components,n=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/cta-section"}');(0,o.registerBlockType)(a.UU,{edit:function({attributes:o,setAttributes:a}){const{title:s,subtitle:c,description:r,primaryButtonText:i,primaryButtonUrl:d,secondaryButtonText:u,secondaryButtonUrl:b,showSecondaryButton:g,backgroundType:x,backgroundColor:h,gradientColors:k,backgroundImage:p,backgroundImageId:_,overlayOpacity:m,textColor:C,primaryButtonColor:v,primaryButtonTextColor:j,secondaryButtonColor:y,secondaryButtonTextColor:B,textAlignment:N,buttonLayout:S,spacing:T,borderRadius:w,animationEffect:f}=o,R=(0,l.useBlockProps)({className:`cta-section layout-${S} text-${N} spacing-${T} animation-${f}`,style:{...(()=>{let o={};switch(x){case"color":o.backgroundColor=h;break;case"gradient":o.background=`linear-gradient(135deg, ${k.start} 0%, ${k.end} 100%)`;break;case"image":p&&(o.backgroundImage=`url(${p.url})`,o.backgroundSize="cover",o.backgroundPosition="center",o.backgroundRepeat="no-repeat")}return o})(),color:C,borderRadius:`${w}px`}});return(0,n.jsxs)("div",{...R,children:[(0,n.jsxs)(l.InspectorControls,{children:[(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Text Alignment","section-blocks"),value:N,options:[{label:(0,e.__)("Left","section-blocks"),value:"left"},{label:(0,e.__)("Center","section-blocks"),value:"center"},{label:(0,e.__)("Right","section-blocks"),value:"right"}],onChange:o=>a({textAlignment:o})}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Button Layout","section-blocks"),value:S,options:[{label:(0,e.__)("Horizontal","section-blocks"),value:"horizontal"},{label:(0,e.__)("Vertical","section-blocks"),value:"vertical"},{label:(0,e.__)("Stacked","section-blocks"),value:"stacked"}],onChange:o=>a({buttonLayout:o})}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Spacing","section-blocks"),value:T,options:[{label:(0,e.__)("Compact","section-blocks"),value:"compact"},{label:(0,e.__)("Normal","section-blocks"),value:"normal"},{label:(0,e.__)("Spacious","section-blocks"),value:"spacious"}],onChange:o=>a({spacing:o})}),(0,n.jsx)(t.RangeControl,{label:(0,e.__)("Border Radius","section-blocks"),value:w,onChange:o=>a({borderRadius:o}),min:0,max:50})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Background Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Background Type","section-blocks"),value:x,options:[{label:(0,e.__)("Solid Color","section-blocks"),value:"color"},{label:(0,e.__)("Gradient","section-blocks"),value:"gradient"},{label:(0,e.__)("Image","section-blocks"),value:"image"}],onChange:o=>a({backgroundType:o})}),"color"===x&&(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Background Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:h,onChange:o=>a({backgroundColor:o})})]}),"gradient"===x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Gradient Start Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:k.start,onChange:o=>a({gradientColors:{...k,start:o}})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Gradient End Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:k.end,onChange:o=>a({gradientColors:{...k,end:o}})})]})]}),"image"===x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:o=>{a({backgroundImage:{url:o.url,alt:o.alt},backgroundImageId:o.id})},allowedTypes:["image"],value:_,render:({open:o})=>(0,n.jsx)(t.Button,{className:p?"image-button has-image":"image-button",onClick:o,children:p?(0,n.jsx)("img",{src:p.url,alt:p.alt||""}):(0,e.__)("Select Background Image","section-blocks")})})}),p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.Button,{onClick:()=>{a({backgroundImage:null,backgroundImageId:0})},isDestructive:!0,isSmall:!0,children:(0,e.__)("Remove Image","section-blocks")}),(0,n.jsx)(t.RangeControl,{label:(0,e.__)("Overlay Opacity","section-blocks"),value:m,onChange:o=>a({overlayOpacity:o}),min:0,max:1,step:.1})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Button Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.ToggleControl,{label:(0,e.__)("Show Secondary Button","section-blocks"),checked:g,onChange:o=>a({showSecondaryButton:o})}),(0,n.jsx)("h4",{children:(0,e.__)("Primary Button","section-blocks")}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:v,onChange:o=>a({primaryButtonColor:o})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:j,onChange:o=>a({primaryButtonTextColor:o})})]}),g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h4",{children:(0,e.__)("Secondary Button","section-blocks")}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:y,onChange:o=>a({secondaryButtonColor:o})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:B,onChange:o=>a({secondaryButtonTextColor:o})})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:C,onChange:o=>a({textColor:o})})]}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Animation Effect","section-blocks"),value:f,options:[{label:(0,e.__)("None","section-blocks"),value:"none"},{label:(0,e.__)("Fade In","section-blocks"),value:"fade-in"},{label:(0,e.__)("Slide Up","section-blocks"),value:"slide-up"},{label:(0,e.__)("Bounce","section-blocks"),value:"bounce"}],onChange:o=>a({animationEffect:o})})]})]}),(0,n.jsxs)("div",{className:"cta-content",children:["image"===x&&p&&(0,n.jsx)("div",{className:"cta-overlay",style:{backgroundColor:`rgba(0, 0, 0, ${m})`,position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:`${w}px`}}),(0,n.jsxs)("div",{className:"cta-text",style:{position:"relative",zIndex:1},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"cta-title",value:s,onChange:o=>a({title:o}),placeholder:(0,e.__)("Enter your call-to-action title...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"cta-subtitle",value:c,onChange:o=>a({subtitle:o}),placeholder:(0,e.__)("Enter your compelling subtitle...","section-blocks")}),r&&(0,n.jsx)(l.RichText,{tagName:"p",className:"cta-description",value:r,onChange:o=>a({description:o}),placeholder:(0,e.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"cta-buttons",style:{position:"relative",zIndex:1},children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsxs)("div",{className:"primary-button-wrapper",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:"cta-primary-button",value:i,onChange:o=>a({primaryButtonText:o}),placeholder:(0,e.__)("Primary button text...","section-blocks"),style:{backgroundColor:v,color:j,borderRadius:`${w}px`}}),(0,n.jsx)(t.TextControl,{label:(0,e.__)("Primary Button URL","section-blocks"),value:d,onChange:o=>a({primaryButtonUrl:o}),placeholder:"https://"})]}),g&&(0,n.jsxs)("div",{className:"secondary-button-wrapper",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:"cta-secondary-button",value:u,onChange:o=>a({secondaryButtonText:o}),placeholder:(0,e.__)("Secondary button text...","section-blocks"),style:{backgroundColor:y,color:B,borderRadius:`${w}px`,border:"transparent"===y?`2px solid ${B}`:"none"}}),(0,n.jsx)(t.TextControl,{label:(0,e.__)("Secondary Button URL","section-blocks"),value:b,onChange:o=>a({secondaryButtonUrl:o}),placeholder:"https://"})]})]})})]})]})}})}},l={};function t(o){var n=l[o];if(void 0!==n)return n.exports;var a=l[o]={exports:{}};return e[o](a,a.exports,t),a.exports}t.m=e,o=[],t.O=(e,l,n,a)=>{if(!l){var s=1/0;for(d=0;d<o.length;d++){for(var[l,n,a]=o[d],c=!0,r=0;r<l.length;r++)(!1&a||s>=a)&&Object.keys(t.O).every((o=>t.O[o](l[r])))?l.splice(r--,1):(c=!1,a<s&&(s=a));if(c){o.splice(d--,1);var i=n();void 0!==i&&(e=i)}}return e}a=a||0;for(var d=o.length;d>0&&o[d-1][2]>a;d--)o[d]=o[d-1];o[d]=[l,n,a]},t.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),(()=>{var o={ 608:0,488:0};t.O.j=e=>0===o[e];var e=(e,l)=>{var n,a,[s,c,r]=l,i=0;if(s.some((e=>0!==o[e]))){for(n in c)t.o(c,n)&&(t.m[n]=c[n]);if(r)var d=r(t)}for(e&&e(l);i<s.length;i++)a=s[i],t.o(o,a)&&o[a]&&o[a][0](),o[a]=0;return t.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(e.bind(null,0)),l.push=e.bind(null,l.push.bind(l))})();var n=t.O(void 0,[488],(()=>t(957)));n=t.O(n)})();1 (()=>{"use strict";var o,e={957:()=>{const o=window.wp.blocks,e=window.wp.i18n,l=window.wp.blockEditor,t=window.wp.components,n=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/cta-section"}');(0,o.registerBlockType)(a.UU,{edit:function({attributes:o,setAttributes:a}){const{title:s,subtitle:c,description:r,primaryButtonText:i,primaryButtonUrl:d,secondaryButtonText:u,secondaryButtonUrl:b,showSecondaryButton:g,backgroundType:x,backgroundColor:h,gradientColors:k,backgroundImage:p,backgroundImageId:_,overlayOpacity:m,textColor:C,primaryButtonColor:v,primaryButtonTextColor:j,secondaryButtonColor:y,secondaryButtonTextColor:B,textAlignment:N,buttonLayout:S,spacing:T,borderRadius:w,animationEffect:f}=o,R=(0,l.useBlockProps)({className:`cta-section layout-${S} text-${N} spacing-${T} animation-${f}`,style:{...(()=>{let o={};switch(x){case"color":o.backgroundColor=h;break;case"gradient":o.background=`linear-gradient(135deg, ${k.start} 0%, ${k.end} 100%)`;break;case"image":p&&(o.backgroundImage=`url(${p.url})`,o.backgroundSize="cover",o.backgroundPosition="center",o.backgroundRepeat="no-repeat")}return o})(),color:C,borderRadius:`${w}px`}});return(0,n.jsxs)("div",{...R,children:[(0,n.jsxs)(l.InspectorControls,{children:[(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Text Alignment","section-blocks"),value:N,options:[{label:(0,e.__)("Left","section-blocks"),value:"left"},{label:(0,e.__)("Center","section-blocks"),value:"center"},{label:(0,e.__)("Right","section-blocks"),value:"right"}],onChange:o=>a({textAlignment:o})}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Button Layout","section-blocks"),value:S,options:[{label:(0,e.__)("Horizontal","section-blocks"),value:"horizontal"},{label:(0,e.__)("Vertical","section-blocks"),value:"vertical"},{label:(0,e.__)("Stacked","section-blocks"),value:"stacked"}],onChange:o=>a({buttonLayout:o})}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Spacing","section-blocks"),value:T,options:[{label:(0,e.__)("Compact","section-blocks"),value:"compact"},{label:(0,e.__)("Normal","section-blocks"),value:"normal"},{label:(0,e.__)("Spacious","section-blocks"),value:"spacious"}],onChange:o=>a({spacing:o})}),(0,n.jsx)(t.RangeControl,{label:(0,e.__)("Border Radius","section-blocks"),value:w,onChange:o=>a({borderRadius:o}),min:0,max:50})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Background Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Background Type","section-blocks"),value:x,options:[{label:(0,e.__)("Solid Color","section-blocks"),value:"color"},{label:(0,e.__)("Gradient","section-blocks"),value:"gradient"},{label:(0,e.__)("Image","section-blocks"),value:"image"}],onChange:o=>a({backgroundType:o})}),"color"===x&&(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Background Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:h,onChange:o=>a({backgroundColor:o})})]}),"gradient"===x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Gradient Start Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:k.start,onChange:o=>a({gradientColors:{...k,start:o}})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Gradient End Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:k.end,onChange:o=>a({gradientColors:{...k,end:o}})})]})]}),"image"===x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:o=>{a({backgroundImage:{url:o.url,alt:o.alt},backgroundImageId:o.id})},allowedTypes:["image"],value:_,render:({open:o})=>(0,n.jsx)(t.Button,{className:p?"image-button has-image":"image-button",onClick:o,children:p?(0,n.jsx)("img",{src:p.url,alt:p.alt||""}):(0,e.__)("Select Background Image","section-blocks")})})}),p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.Button,{onClick:()=>{a({backgroundImage:null,backgroundImageId:0})},isDestructive:!0,isSmall:!0,children:(0,e.__)("Remove Image","section-blocks")}),(0,n.jsx)(t.RangeControl,{label:(0,e.__)("Overlay Opacity","section-blocks"),value:m,onChange:o=>a({overlayOpacity:o}),min:0,max:1,step:.1})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Button Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.ToggleControl,{label:(0,e.__)("Show Secondary Button","section-blocks"),checked:g,onChange:o=>a({showSecondaryButton:o})}),(0,n.jsx)("h4",{children:(0,e.__)("Primary Button","section-blocks")}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:v,onChange:o=>a({primaryButtonColor:o})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:j,onChange:o=>a({primaryButtonTextColor:o})})]}),g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h4",{children:(0,e.__)("Secondary Button","section-blocks")}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:y,onChange:o=>a({secondaryButtonColor:o})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:B,onChange:o=>a({secondaryButtonTextColor:o})})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:C,onChange:o=>a({textColor:o})})]}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Animation Effect","section-blocks"),value:f,options:[{label:(0,e.__)("None","section-blocks"),value:"none"},{label:(0,e.__)("Fade In","section-blocks"),value:"fade-in"},{label:(0,e.__)("Slide Up","section-blocks"),value:"slide-up"},{label:(0,e.__)("Bounce","section-blocks"),value:"bounce"}],onChange:o=>a({animationEffect:o})})]})]}),(0,n.jsxs)("div",{className:"cta-content",children:["image"===x&&p&&(0,n.jsx)("div",{className:"cta-overlay",style:{backgroundColor:`rgba(0, 0, 0, ${m})`,position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:`${w}px`}}),(0,n.jsxs)("div",{className:"cta-text",style:{position:"relative",zIndex:1},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"cta-title",value:s,onChange:o=>a({title:o}),placeholder:(0,e.__)("Enter your call-to-action title...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"cta-subtitle",value:c,onChange:o=>a({subtitle:o}),placeholder:(0,e.__)("Enter your compelling subtitle...","section-blocks")}),r&&(0,n.jsx)(l.RichText,{tagName:"p",className:"cta-description",value:r,onChange:o=>a({description:o}),placeholder:(0,e.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"cta-buttons",style:{position:"relative",zIndex:1},children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsxs)("div",{className:"primary-button-wrapper",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:"cta-primary-button",value:i,onChange:o=>a({primaryButtonText:o}),placeholder:(0,e.__)("Primary button text...","section-blocks"),style:{backgroundColor:v,color:j,borderRadius:`${w}px`}}),(0,n.jsx)(t.TextControl,{label:(0,e.__)("Primary Button URL","section-blocks"),value:d,onChange:o=>a({primaryButtonUrl:o}),placeholder:"https://"})]}),g&&(0,n.jsxs)("div",{className:"secondary-button-wrapper",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:"cta-secondary-button",value:u,onChange:o=>a({secondaryButtonText:o}),placeholder:(0,e.__)("Secondary button text...","section-blocks"),style:{backgroundColor:y,color:B,borderRadius:`${w}px`,border:"transparent"===y?`2px solid ${B}`:"none"}}),(0,n.jsx)(t.TextControl,{label:(0,e.__)("Secondary Button URL","section-blocks"),value:b,onChange:o=>a({secondaryButtonUrl:o}),placeholder:"https://"})]})]})})]})]})}})}},l={};function t(o){var n=l[o];if(void 0!==n)return n.exports;var a=l[o]={exports:{}};return e[o](a,a.exports,t),a.exports}t.m=e,o=[],t.O=(e,l,n,a)=>{if(!l){var s=1/0;for(d=0;d<o.length;d++){for(var[l,n,a]=o[d],c=!0,r=0;r<l.length;r++)(!1&a||s>=a)&&Object.keys(t.O).every((o=>t.O[o](l[r])))?l.splice(r--,1):(c=!1,a<s&&(s=a));if(c){o.splice(d--,1);var i=n();void 0!==i&&(e=i)}}return e}a=a||0;for(var d=o.length;d>0&&o[d-1][2]>a;d--)o[d]=o[d-1];o[d]=[l,n,a]},t.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),(()=>{var o={5608:0,3488:0};t.O.j=e=>0===o[e];var e=(e,l)=>{var n,a,[s,c,r]=l,i=0;if(s.some((e=>0!==o[e]))){for(n in c)t.o(c,n)&&(t.m[n]=c[n]);if(r)var d=r(t)}for(e&&e(l);i<s.length;i++)a=s[i],t.o(o,a)&&o[a]&&o[a][0](),o[a]=0;return t.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(e.bind(null,0)),l.push=e.bind(null,l.push.bind(l))})();var n=t.O(void 0,[3488],(()=>t(957)));n=t.O(n)})(); -
section-blocks/tags/1.3.0/build/faq-accordion/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => ' 8a04b1340a96061a0ae1');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '121a5430539e17cb243f'); -
section-blocks/tags/1.3.0/build/faq-accordion/index.js
r3302097 r3750877 1 (()=>{"use strict";var e,o={357:()=>{const e=window.wp.blocks,o=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.components,a=window.wp.element,s=window.ReactJSXRuntime,t=JSON.parse('{"UU":"create-block/faq-accordion"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{title:c,faqs:i,categories:r,activeCategory:d,layoutStyle:_,iconStyle:u,animationSpeed:h,animationEasing:b,allowMultipleOpen:g,showSearch:x,showCategories:p,showExpandCollapseAll:m,showVoting:k,showViewCount:v,enableSchema:C,schemaType:j,colors:w,typography:f,spacing:y,searchPlaceholder:S,noResultsMessage:T,expandAllText:q,collapseAllText:B,helpfulText:A,notHelpfulText:N}=e,[P,O]=(0,a.useState)(""),[F,E]=(0,a.useState)(new Set),Q=(0,n.useBlockProps)({className:`faq-accordion faq-accordion--${_}`}),R=(e,o,n)=>{const l=[...i];l[e]={...l[e],[o]:n},t({faqs:l})},I=i.filter((e=>{const o=!P||e.question.toLowerCase().includes(P.toLowerCase())||e.answer.toLowerCase().includes(P.toLowerCase()),n="All"===d||e.category===d;return o&&n})),D=e=>{switch(u){case"plus-minus":default:return e?"−":"+";case"chevron":return e?"⌄":"⌃";case"arrow":return e?"↓":"→";case"triangle":return e?"▼":"▶"}},M=[{name:"Primary",color:"#007cba"},{name:"Secondary",color:"#6c757d"},{name:"Success",color:"#28a745"},{name:"Info",color:"#17a2b8"},{name:"Warning",color:"#ffc107"},{name:"Danger",color:"#dc3545"},{name:"Light",color:"#f8f9fa"},{name:"Dark",color:"#343a40"}];return(0,s.jsxs)("div",{...Q,children:[(0,s.jsx)(n.InspectorControls,{children:(0,s.jsx)(l.TabPanel,{className:"faq-accordion-tabs",activeClass:"active-tab",tabs:[{name:"content",title:(0,o.__)("Content","section-blocks"),className:"tab-content"},{name:"design",title:(0,o.__)("Design","section-blocks"),className:"tab-design"},{name:"advanced",title:(0,o.__)("Advanced","section-blocks"),className:"tab-advanced"}],children:e=>(0,s.jsxs)("div",{className:`tab-panel tab-panel-${e.name}`,children:["content"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("FAQ Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Section Title","section-blocks"),value:c,onChange:e=>t({title:e})}),(0,s.jsx)(l.__experimentalDivider,{}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Search","section-blocks"),checked:x,onChange:e=>t({showSearch:e})}),x&&(0,s.jsx)(l.TextControl,{label:(0,o.__)("Search Placeholder","section-blocks"),value:S,onChange:e=>t({searchPlaceholder:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Categories","section-blocks"),checked:p,onChange:e=>t({showCategories:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Expand/Collapse All","section-blocks"),checked:m,onChange:e=>t({showExpandCollapseAll:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Allow Multiple Open","section-blocks"),checked:g,onChange:e=>t({allowMultipleOpen:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Categories","section-blocks"),initialOpen:!1,children:[r.map(((e,n)=>(0,s.jsxs)(l.Flex,{justify:"space-between",align:"center",children:[(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.__experimentalText,{children:e})}),(0,s.jsx)(l.FlexItem,{children:r.length>1&&(0,s.jsx)(l.Button,{isDestructive:!0,isSmall:!0,onClick:()=>(e=>{if(r.length>1){const o=r.filter((o=>o!==e));t({categories:o});const n=i.map((n=>n.category===e?{...n,category:o[0]}:n));t({faqs:n})}})(e),children:(0,o.__)("Remove","section-blocks")})})]},n))),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Add New Category","section-blocks"),placeholder:(0,o.__)("Category name...","section-blocks"),onKeyDown:e=>{var o;"Enter"===e.key&&e.target.value.trim()&&((o=e.target.value.trim())&&!r.includes(o)&&t({categories:[...r,o]}),e.target.value="")}})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Features","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Enable Voting","section-blocks"),checked:k,onChange:e=>t({showVoting:e}),help:(0,o.__)("Allow users to vote if answers are helpful","section-blocks")}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show View Count","section-blocks"),checked:v,onChange:e=>t({showViewCount:e}),help:(0,o.__)("Display how many times each FAQ was viewed","section-blocks")}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Enable Schema Markup","section-blocks"),checked:C,onChange:e=>t({enableSchema:e}),help:(0,o.__)("Add structured data for better SEO","section-blocks")}),C&&(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Schema Type","section-blocks"),value:j,options:[{label:(0,o.__)("FAQ Page","section-blocks"),value:"FAQPage"},{label:(0,o.__)("Question","section-blocks"),value:"Question"}],onChange:e=>t({schemaType:e})})]})]}),"design"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Layout & Style","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:_,options:[{label:(0,o.__)("Default","section-blocks"),value:"default"},{label:(0,o.__)("Bordered","section-blocks"),value:"bordered"},{label:(0,o.__)("Card","section-blocks"),value:"card"},{label:(0,o.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,o.__)("Modern","section-blocks"),value:"modern"}],onChange:e=>t({layoutStyle:e})}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Icon Style","section-blocks"),value:u,options:[{label:(0,o.__)("Plus/Minus","section-blocks"),value:"plus-minus"},{label:(0,o.__)("Chevron","section-blocks"),value:"chevron"},{label:(0,o.__)("Arrow","section-blocks"),value:"arrow"},{label:(0,o.__)("Triangle","section-blocks"),value:"triangle"}],onChange:e=>t({iconStyle:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Question Background","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.questionBackground,onChange:e=>t({colors:{...w,questionBackground:e||"#f8f9fa"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Question Text","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.questionText,onChange:e=>t({colors:{...w,questionText:e||"#333333"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Answer Background","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.answerBackground,onChange:e=>t({colors:{...w,answerBackground:e||"#ffffff"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Answer Text","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.answerText,onChange:e=>t({colors:{...w,answerText:e||"#666666"}})})]})]}),"advanced"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Animation","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.RangeControl,{label:(0,o.__)("Animation Speed (ms)","section-blocks"),value:h,onChange:e=>t({animationSpeed:e}),min:100,max:1e3,step:50}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Animation Easing","section-blocks"),value:b,options:[{label:(0,o.__)("Ease","section-blocks"),value:"ease"},{label:(0,o.__)("Ease In","section-blocks"),value:"ease-in"},{label:(0,o.__)("Ease Out","section-blocks"),value:"ease-out"},{label:(0,o.__)("Ease In Out","section-blocks"),value:"ease-in-out"},{label:(0,o.__)("Linear","section-blocks"),value:"linear"}],onChange:e=>t({animationEasing:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Typography","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Question Font Size","section-blocks"),value:f.questionFontSize,onChange:e=>t({typography:{...f,questionFontSize:e}})}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Question Font Weight","section-blocks"),value:f.questionFontWeight,options:[{label:(0,o.__)("Normal","section-blocks"),value:"400"},{label:(0,o.__)("Medium","section-blocks"),value:"500"},{label:(0,o.__)("Semi Bold","section-blocks"),value:"600"},{label:(0,o.__)("Bold","section-blocks"),value:"700"}],onChange:e=>t({typography:{...f,questionFontWeight:e}})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Spacing","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Question Padding","section-blocks"),value:y.questionPadding,onChange:e=>t({spacing:{...y,questionPadding:e}})}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Answer Padding","section-blocks"),value:y.answerPadding,onChange:e=>t({spacing:{...y,answerPadding:e}})}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Border Radius","section-blocks"),value:y.borderRadius,onChange:e=>t({spacing:{...y,borderRadius:e}})})]})]})]})})}),(0,s.jsxs)("div",{className:"faq-accordion-editor",children:[(0,s.jsx)(n.RichText,{tagName:"h2",className:"faq-accordion__title",value:c,onChange:e=>t({title:e}),placeholder:(0,o.__)("Enter FAQ section title...","section-blocks")}),x&&(0,s.jsx)("div",{className:"faq-accordion__search",children:(0,s.jsx)("input",{type:"text",placeholder:S,value:P,onChange:e=>O(e.target.value),className:"faq-accordion__search-input"})}),p&&r.length>1&&(0,s.jsx)("div",{className:"faq-accordion__categories",children:(0,s.jsxs)(l.ButtonGroup,{children:[(0,s.jsx)(l.Button,{variant:"All"===d?"primary":"secondary",onClick:()=>t({activeCategory:"All"}),children:(0,o.__)("All","section-blocks")}),r.map((e=>(0,s.jsx)(l.Button,{variant:d===e?"primary":"secondary",onClick:()=>t({activeCategory:e}),children:e},e)))]})}),m&&(0,s.jsx)("div",{className:"faq-accordion__controls",children:(0,s.jsx)(l.Button,{variant:"link",children:F.size>0?B:q})}),(0,s.jsx)("div",{className:"faq-accordion__items",children:I.map(((e,a)=>{const c=i.findIndex((o=>o.id===e.id)),d=F.has(c);return(0,s.jsxs)(l.Card,{className:"faq-accordion__item",children:[(0,s.jsx)(l.CardHeader,{children:(0,s.jsxs)(l.Flex,{justify:"space-between",align:"center",children:[(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.Button,{variant:"link",onClick:()=>(e=>{const o=new Set(F);o.has(e)?o.delete(e):(g||o.clear(),o.add(e)),E(o)})(c),className:"faq-accordion__toggle",children:(0,s.jsx)("span",{className:"faq-accordion__icon",children:D(d)})})}),(0,s.jsx)(l.FlexItem,{isBlock:!0,children:(0,s.jsx)(n.RichText,{tagName:"h3",className:"faq-accordion__question",value:e.question,onChange:e=>R(c,"question",e),placeholder:(0,o.__)("Enter your question...","section-blocks")})}),(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.Button,{isDestructive:!0,isSmall:!0,onClick:()=>(e=>{const o=i.filter(((o,n)=>n!==e));t({faqs:o})})(c),children:(0,o.__)("Remove","section-blocks")})})]})}),d&&(0,s.jsxs)(l.CardBody,{children:[(0,s.jsx)(n.RichText,{tagName:"div",className:"faq-accordion__answer",value:e.answer,onChange:e=>R(c,"answer",e),placeholder:(0,o.__)("Enter your answer...","section-blocks"),multiline:"p"}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Category","section-blocks"),value:e.category,options:r.map((e=>({label:e,value:e}))),onChange:e=>R(c,"category",e)})]})]},e.id)}))}),(0,s.jsx)("div",{className:"faq-accordion__add-item",children:(0,s.jsx)(l.Button,{variant:"primary",onClick:()=>{const e={id:`faq-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,question:(0,o.__)("New Question","section-blocks"),answer:(0,o.__)("Your answer goes here...","section-blocks"),category:r[0]||"General",isOpen:!1,votes:{helpful:0,notHelpful:0},views:0};t({faqs:[...i,e]})},children:(0,o.__)("Add New FAQ","section-blocks")})}),0===I.length&&P&&(0,s.jsx)("div",{className:"faq-accordion__no-results",children:(0,s.jsx)(l.__experimentalText,{children:T})})]})]})}})}},n={};function l(e){var a=n[e];if(void 0!==a)return a.exports;var s=n[e]={exports:{}};return o[e](s,s.exports,l),s.exports}l.m=o,e=[],l.O=(o,n,a,s)=>{if(!n){var t=1/0;for(d=0;d<e.length;d++){for(var[n,a,s]=e[d],c=!0,i=0;i<n.length;i++)(!1&s||t>=s)&&Object.keys(l.O).every((e=>l.O[e](n[i])))?n.splice(i--,1):(c=!1,s<t&&(t=s));if(c){e.splice(d--,1);var r=a();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[n,a,s]},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={ 9:0,157:0};l.O.j=o=>0===e[o];var o=(o,n)=>{var a,s,[t,c,i]=n,r=0;if(t.some((o=>0!==e[o]))){for(a in c)l.o(c,a)&&(l.m[a]=c[a]);if(i)var d=i(l)}for(o&&o(n);r<t.length;r++)s=t[r],l.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return l.O(d)},n=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];n.forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n))})();var a=l.O(void 0,[157],(()=>l(357)));a=l.O(a)})();1 (()=>{"use strict";var e,o={357:()=>{const e=window.wp.blocks,o=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.components,a=window.wp.element,s=window.ReactJSXRuntime,t=JSON.parse('{"UU":"create-block/faq-accordion"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{title:c,faqs:i,categories:r,activeCategory:d,layoutStyle:_,iconStyle:u,animationSpeed:h,animationEasing:b,allowMultipleOpen:g,showSearch:x,showCategories:p,showExpandCollapseAll:m,showVoting:k,showViewCount:v,enableSchema:C,schemaType:j,colors:w,typography:f,spacing:y,searchPlaceholder:S,noResultsMessage:T,expandAllText:q,collapseAllText:B,helpfulText:A,notHelpfulText:N}=e,[P,O]=(0,a.useState)(""),[F,E]=(0,a.useState)(new Set),Q=(0,n.useBlockProps)({className:`faq-accordion faq-accordion--${_}`}),R=(e,o,n)=>{const l=[...i];l[e]={...l[e],[o]:n},t({faqs:l})},I=i.filter((e=>{const o=!P||e.question.toLowerCase().includes(P.toLowerCase())||e.answer.toLowerCase().includes(P.toLowerCase()),n="All"===d||e.category===d;return o&&n})),D=e=>{switch(u){case"plus-minus":default:return e?"−":"+";case"chevron":return e?"⌄":"⌃";case"arrow":return e?"↓":"→";case"triangle":return e?"▼":"▶"}},M=[{name:"Primary",color:"#007cba"},{name:"Secondary",color:"#6c757d"},{name:"Success",color:"#28a745"},{name:"Info",color:"#17a2b8"},{name:"Warning",color:"#ffc107"},{name:"Danger",color:"#dc3545"},{name:"Light",color:"#f8f9fa"},{name:"Dark",color:"#343a40"}];return(0,s.jsxs)("div",{...Q,children:[(0,s.jsx)(n.InspectorControls,{children:(0,s.jsx)(l.TabPanel,{className:"faq-accordion-tabs",activeClass:"active-tab",tabs:[{name:"content",title:(0,o.__)("Content","section-blocks"),className:"tab-content"},{name:"design",title:(0,o.__)("Design","section-blocks"),className:"tab-design"},{name:"advanced",title:(0,o.__)("Advanced","section-blocks"),className:"tab-advanced"}],children:e=>(0,s.jsxs)("div",{className:`tab-panel tab-panel-${e.name}`,children:["content"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("FAQ Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Section Title","section-blocks"),value:c,onChange:e=>t({title:e})}),(0,s.jsx)(l.__experimentalDivider,{}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Search","section-blocks"),checked:x,onChange:e=>t({showSearch:e})}),x&&(0,s.jsx)(l.TextControl,{label:(0,o.__)("Search Placeholder","section-blocks"),value:S,onChange:e=>t({searchPlaceholder:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Categories","section-blocks"),checked:p,onChange:e=>t({showCategories:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Expand/Collapse All","section-blocks"),checked:m,onChange:e=>t({showExpandCollapseAll:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Allow Multiple Open","section-blocks"),checked:g,onChange:e=>t({allowMultipleOpen:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Categories","section-blocks"),initialOpen:!1,children:[r.map(((e,n)=>(0,s.jsxs)(l.Flex,{justify:"space-between",align:"center",children:[(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.__experimentalText,{children:e})}),(0,s.jsx)(l.FlexItem,{children:r.length>1&&(0,s.jsx)(l.Button,{isDestructive:!0,isSmall:!0,onClick:()=>(e=>{if(r.length>1){const o=r.filter((o=>o!==e));t({categories:o});const n=i.map((n=>n.category===e?{...n,category:o[0]}:n));t({faqs:n})}})(e),children:(0,o.__)("Remove","section-blocks")})})]},n))),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Add New Category","section-blocks"),placeholder:(0,o.__)("Category name...","section-blocks"),onKeyDown:e=>{var o;"Enter"===e.key&&e.target.value.trim()&&((o=e.target.value.trim())&&!r.includes(o)&&t({categories:[...r,o]}),e.target.value="")}})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Features","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Enable Voting","section-blocks"),checked:k,onChange:e=>t({showVoting:e}),help:(0,o.__)("Allow users to vote if answers are helpful","section-blocks")}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show View Count","section-blocks"),checked:v,onChange:e=>t({showViewCount:e}),help:(0,o.__)("Display how many times each FAQ was viewed","section-blocks")}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Enable Schema Markup","section-blocks"),checked:C,onChange:e=>t({enableSchema:e}),help:(0,o.__)("Add structured data for better SEO","section-blocks")}),C&&(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Schema Type","section-blocks"),value:j,options:[{label:(0,o.__)("FAQ Page","section-blocks"),value:"FAQPage"},{label:(0,o.__)("Question","section-blocks"),value:"Question"}],onChange:e=>t({schemaType:e})})]})]}),"design"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Layout & Style","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:_,options:[{label:(0,o.__)("Default","section-blocks"),value:"default"},{label:(0,o.__)("Bordered","section-blocks"),value:"bordered"},{label:(0,o.__)("Card","section-blocks"),value:"card"},{label:(0,o.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,o.__)("Modern","section-blocks"),value:"modern"}],onChange:e=>t({layoutStyle:e})}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Icon Style","section-blocks"),value:u,options:[{label:(0,o.__)("Plus/Minus","section-blocks"),value:"plus-minus"},{label:(0,o.__)("Chevron","section-blocks"),value:"chevron"},{label:(0,o.__)("Arrow","section-blocks"),value:"arrow"},{label:(0,o.__)("Triangle","section-blocks"),value:"triangle"}],onChange:e=>t({iconStyle:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Question Background","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.questionBackground,onChange:e=>t({colors:{...w,questionBackground:e||"#f8f9fa"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Question Text","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.questionText,onChange:e=>t({colors:{...w,questionText:e||"#333333"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Answer Background","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.answerBackground,onChange:e=>t({colors:{...w,answerBackground:e||"#ffffff"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Answer Text","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.answerText,onChange:e=>t({colors:{...w,answerText:e||"#666666"}})})]})]}),"advanced"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Animation","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.RangeControl,{label:(0,o.__)("Animation Speed (ms)","section-blocks"),value:h,onChange:e=>t({animationSpeed:e}),min:100,max:1e3,step:50}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Animation Easing","section-blocks"),value:b,options:[{label:(0,o.__)("Ease","section-blocks"),value:"ease"},{label:(0,o.__)("Ease In","section-blocks"),value:"ease-in"},{label:(0,o.__)("Ease Out","section-blocks"),value:"ease-out"},{label:(0,o.__)("Ease In Out","section-blocks"),value:"ease-in-out"},{label:(0,o.__)("Linear","section-blocks"),value:"linear"}],onChange:e=>t({animationEasing:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Typography","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Question Font Size","section-blocks"),value:f.questionFontSize,onChange:e=>t({typography:{...f,questionFontSize:e}})}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Question Font Weight","section-blocks"),value:f.questionFontWeight,options:[{label:(0,o.__)("Normal","section-blocks"),value:"400"},{label:(0,o.__)("Medium","section-blocks"),value:"500"},{label:(0,o.__)("Semi Bold","section-blocks"),value:"600"},{label:(0,o.__)("Bold","section-blocks"),value:"700"}],onChange:e=>t({typography:{...f,questionFontWeight:e}})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Spacing","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Question Padding","section-blocks"),value:y.questionPadding,onChange:e=>t({spacing:{...y,questionPadding:e}})}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Answer Padding","section-blocks"),value:y.answerPadding,onChange:e=>t({spacing:{...y,answerPadding:e}})}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Border Radius","section-blocks"),value:y.borderRadius,onChange:e=>t({spacing:{...y,borderRadius:e}})})]})]})]})})}),(0,s.jsxs)("div",{className:"faq-accordion-editor",children:[(0,s.jsx)(n.RichText,{tagName:"h2",className:"faq-accordion__title",value:c,onChange:e=>t({title:e}),placeholder:(0,o.__)("Enter FAQ section title...","section-blocks")}),x&&(0,s.jsx)("div",{className:"faq-accordion__search",children:(0,s.jsx)("input",{type:"text",placeholder:S,value:P,onChange:e=>O(e.target.value),className:"faq-accordion__search-input"})}),p&&r.length>1&&(0,s.jsx)("div",{className:"faq-accordion__categories",children:(0,s.jsxs)(l.ButtonGroup,{children:[(0,s.jsx)(l.Button,{variant:"All"===d?"primary":"secondary",onClick:()=>t({activeCategory:"All"}),children:(0,o.__)("All","section-blocks")}),r.map((e=>(0,s.jsx)(l.Button,{variant:d===e?"primary":"secondary",onClick:()=>t({activeCategory:e}),children:e},e)))]})}),m&&(0,s.jsx)("div",{className:"faq-accordion__controls",children:(0,s.jsx)(l.Button,{variant:"link",children:F.size>0?B:q})}),(0,s.jsx)("div",{className:"faq-accordion__items",children:I.map(((e,a)=>{const c=i.findIndex((o=>o.id===e.id)),d=F.has(c);return(0,s.jsxs)(l.Card,{className:"faq-accordion__item",children:[(0,s.jsx)(l.CardHeader,{children:(0,s.jsxs)(l.Flex,{justify:"space-between",align:"center",children:[(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.Button,{variant:"link",onClick:()=>(e=>{const o=new Set(F);o.has(e)?o.delete(e):(g||o.clear(),o.add(e)),E(o)})(c),className:"faq-accordion__toggle",children:(0,s.jsx)("span",{className:"faq-accordion__icon",children:D(d)})})}),(0,s.jsx)(l.FlexItem,{isBlock:!0,children:(0,s.jsx)(n.RichText,{tagName:"h3",className:"faq-accordion__question",value:e.question,onChange:e=>R(c,"question",e),placeholder:(0,o.__)("Enter your question...","section-blocks")})}),(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.Button,{isDestructive:!0,isSmall:!0,onClick:()=>(e=>{const o=i.filter(((o,n)=>n!==e));t({faqs:o})})(c),children:(0,o.__)("Remove","section-blocks")})})]})}),d&&(0,s.jsxs)(l.CardBody,{children:[(0,s.jsx)(n.RichText,{tagName:"div",className:"faq-accordion__answer",value:e.answer,onChange:e=>R(c,"answer",e),placeholder:(0,o.__)("Enter your answer...","section-blocks"),multiline:"p"}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Category","section-blocks"),value:e.category,options:r.map((e=>({label:e,value:e}))),onChange:e=>R(c,"category",e)})]})]},e.id)}))}),(0,s.jsx)("div",{className:"faq-accordion__add-item",children:(0,s.jsx)(l.Button,{variant:"primary",onClick:()=>{const e={id:`faq-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,question:(0,o.__)("New Question","section-blocks"),answer:(0,o.__)("Your answer goes here...","section-blocks"),category:r[0]||"General",isOpen:!1,votes:{helpful:0,notHelpful:0},views:0};t({faqs:[...i,e]})},children:(0,o.__)("Add New FAQ","section-blocks")})}),0===I.length&&P&&(0,s.jsx)("div",{className:"faq-accordion__no-results",children:(0,s.jsx)(l.__experimentalText,{children:T})})]})]})}})}},n={};function l(e){var a=n[e];if(void 0!==a)return a.exports;var s=n[e]={exports:{}};return o[e](s,s.exports,l),s.exports}l.m=o,e=[],l.O=(o,n,a,s)=>{if(!n){var t=1/0;for(d=0;d<e.length;d++){for(var[n,a,s]=e[d],c=!0,i=0;i<n.length;i++)(!1&s||t>=s)&&Object.keys(l.O).every((e=>l.O[e](n[i])))?n.splice(i--,1):(c=!1,s<t&&(t=s));if(c){e.splice(d--,1);var r=a();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[n,a,s]},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={2009:0,8157:0};l.O.j=o=>0===e[o];var o=(o,n)=>{var a,s,[t,c,i]=n,r=0;if(t.some((o=>0!==e[o]))){for(a in c)l.o(c,a)&&(l.m[a]=c[a]);if(i)var d=i(l)}for(o&&o(n);r<t.length;r++)s=t[r],l.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return l.O(d)},n=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];n.forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n))})();var a=l.O(void 0,[8157],(()=>l(357)));a=l.O(a)})(); -
section-blocks/tags/1.3.0/build/features-section/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' dfde3ff6c6211cccfd9d');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'cf67836024d12c0e09bf'); -
section-blocks/tags/1.3.0/build/features-section/index.js
r3302097 r3750877 1 (()=>{"use strict";var e,l={536:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,a=window.wp.components,s=window.ReactJSXRuntime,i=[{label:"Star",value:"star-filled"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Heart",value:"heart"},{label:"Lightbulb",value:"lightbulb"},{label:"Trophy",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Check",value:"yes"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email"},{label:"Cart",value:"cart"},{label:"Money",value:"money"},{label:"Chart",value:"chart-line"},{label:"Users",value:"groups"},{label:"Settings",value:"admin-settings"}],t=JSON.parse('{"UU":"create-block/features-section"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{features:n,columns:r,showSideImage:c,sideImage:d,sideImageId:u,sideImagePosition:h,backgroundColor:g,textColor:b,iconColor:m,hoverEffect:v,spacing:p}=e,f=(0,o.useBlockProps)({className:`features-section-block columns-${r} hover-${v} spacing-${p}`,style:{backgroundColor:g,color:b,padding:"compact"===p?"2rem":"loose"===p?"4rem":"3rem"}}),x=(e,l,o)=>{const a=[...n];a[e]={...a[e],[l]:o},t({features:a})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:r,onChange:e=>t({columns:e}),min:3,max:6,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:p,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>t({spacing:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:v,options:[{label:"Lift",value:"lift"},{label:"Scale",value:"scale"},{label:"Glow",value:"glow"},{label:"None",value:"none"}],onChange:e=>t({hoverEffect:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Side Image","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Show Side Image","section-blocks"),checked:c,onChange:e=>t({showSideImage:e})}),c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.MediaUploadCheck,{children:(0,s.jsx)(o.MediaUpload,{onSelect:e=>{t({sideImage:{id:e.id,url:e.url,alt:e.alt},sideImageId:e.id})},allowedTypes:["image"],value:u,render:({open:e})=>(0,s.jsx)(a.Button,{className:d?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:d?(0,s.jsx)("img",{src:d.url,alt:d.alt||""}):(0,l.__)("Choose Side Image","section-blocks")})})}),d&&(0,s.jsx)(a.Button,{onClick:()=>{t({sideImage:null,sideImageId:0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove Side Image","section-blocks")}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Image Position","section-blocks"),value:h,options:[{label:"Left",value:"left"},{label:"Right",value:"right"}],onChange:e=>t({sideImagePosition:e})})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Background Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:g,onChange:e=>t({backgroundColor:e||"#ffffff"})}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Text Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:b,onChange:e=>t({textColor:e||"#333333"})}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Icon Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:m,onChange:e=>t({iconColor:e||"#007cba"})})]})]}),(0,s.jsxs)("div",{...f,children:[(0,s.jsxs)("div",{className:"features-container",children:[c&&"left"===h&&d&&(0,s.jsx)("div",{className:"features-side-image",children:(0,s.jsx)("img",{src:d.url,alt:d.alt||""})}),(0,s.jsx)("div",{className:"features-grid",children:n.map(((e,r)=>(0,s.jsxs)("div",{className:"feature-item",children:[(0,s.jsxs)("div",{className:"feature-controls",children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Icon","section-blocks"),value:e.icon,options:i,onChange:e=>x(r,"icon",e)}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=n.filter(((l,o)=>o!==e));t({features:l})})(r),isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove","section-blocks")})]}),(0,s.jsx)("div",{className:"feature-icon",style:{color:m},children:(0,s.jsx)(a.Dashicon,{icon:e.icon,size:"48"})}),(0,s.jsx)(o.RichText,{tagName:"h3",className:"feature-heading",value:e.heading,onChange:e=>x(r,"heading",e),placeholder:(0,l.__)("Feature heading...","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"feature-description",value:e.description,onChange:e=>x(r,"description",e),placeholder:(0,l.__)("Feature description...","section-blocks")})]},r)))}),c&&"right"===h&&d&&(0,s.jsx)("div",{className:"features-side-image",children:(0,s.jsx)("img",{src:d.url,alt:d.alt||""})})]}),(0,s.jsx)("div",{className:"features-actions",children:(0,s.jsx)(a.Button,{onClick:()=>{const e=[...n,{icon:"star-filled",heading:"New Feature",description:"Describe your amazing feature here."}];t({features:e})},isPrimary:!0,children:(0,l.__)("Add Feature","section-blocks")})})]})]})}})}},o={};function a(e){var s=o[e];if(void 0!==s)return s.exports;var i=o[e]={exports:{}};return l[e](i,i.exports,a),i.exports}a.m=l,e=[],a.O=(l,o,s,i)=>{if(!o){var t=1/0;for(d=0;d<e.length;d++){for(var[o,s,i]=e[d],n=!0,r=0;r<o.length;r++)(!1&i||t>=i)&&Object.keys(a.O).every((e=>a.O[e](o[r])))?o.splice(r--,1):(n=!1,i<t&&(t=i));if(n){e.splice(d--,1);var c=s();void 0!==c&&(l=c)}}return l}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[o,s,i]},a.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={ 69:0,169:0};a.O.j=l=>0===e[l];var l=(l,o)=>{var s,i,[t,n,r]=o,c=0;if(t.some((l=>0!==e[l]))){for(s in n)a.o(n,s)&&(a.m[s]=n[s]);if(r)var d=r(a)}for(l&&l(o);c<t.length;c++)i=t[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=a.O(void 0,[169],(()=>a(536)));s=a.O(s)})();1 (()=>{"use strict";var e,l={536:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,a=window.wp.components,s=window.ReactJSXRuntime,i=[{label:"Star",value:"star-filled"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Heart",value:"heart"},{label:"Lightbulb",value:"lightbulb"},{label:"Trophy",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Check",value:"yes"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email"},{label:"Cart",value:"cart"},{label:"Money",value:"money"},{label:"Chart",value:"chart-line"},{label:"Users",value:"groups"},{label:"Settings",value:"admin-settings"}],t=JSON.parse('{"UU":"create-block/features-section"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{features:n,columns:r,showSideImage:c,sideImage:d,sideImageId:u,sideImagePosition:h,backgroundColor:g,textColor:b,iconColor:m,hoverEffect:v,spacing:p}=e,f=(0,o.useBlockProps)({className:`features-section-block columns-${r} hover-${v} spacing-${p}`,style:{backgroundColor:g,color:b,padding:"compact"===p?"2rem":"loose"===p?"4rem":"3rem"}}),x=(e,l,o)=>{const a=[...n];a[e]={...a[e],[l]:o},t({features:a})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:r,onChange:e=>t({columns:e}),min:3,max:6,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:p,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>t({spacing:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:v,options:[{label:"Lift",value:"lift"},{label:"Scale",value:"scale"},{label:"Glow",value:"glow"},{label:"None",value:"none"}],onChange:e=>t({hoverEffect:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Side Image","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Show Side Image","section-blocks"),checked:c,onChange:e=>t({showSideImage:e})}),c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.MediaUploadCheck,{children:(0,s.jsx)(o.MediaUpload,{onSelect:e=>{t({sideImage:{id:e.id,url:e.url,alt:e.alt},sideImageId:e.id})},allowedTypes:["image"],value:u,render:({open:e})=>(0,s.jsx)(a.Button,{className:d?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:d?(0,s.jsx)("img",{src:d.url,alt:d.alt||""}):(0,l.__)("Choose Side Image","section-blocks")})})}),d&&(0,s.jsx)(a.Button,{onClick:()=>{t({sideImage:null,sideImageId:0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove Side Image","section-blocks")}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Image Position","section-blocks"),value:h,options:[{label:"Left",value:"left"},{label:"Right",value:"right"}],onChange:e=>t({sideImagePosition:e})})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Background Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:g,onChange:e=>t({backgroundColor:e||"#ffffff"})}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Text Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:b,onChange:e=>t({textColor:e||"#333333"})}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Icon Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:m,onChange:e=>t({iconColor:e||"#007cba"})})]})]}),(0,s.jsxs)("div",{...f,children:[(0,s.jsxs)("div",{className:"features-container",children:[c&&"left"===h&&d&&(0,s.jsx)("div",{className:"features-side-image",children:(0,s.jsx)("img",{src:d.url,alt:d.alt||""})}),(0,s.jsx)("div",{className:"features-grid",children:n.map(((e,r)=>(0,s.jsxs)("div",{className:"feature-item",children:[(0,s.jsxs)("div",{className:"feature-controls",children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Icon","section-blocks"),value:e.icon,options:i,onChange:e=>x(r,"icon",e)}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=n.filter(((l,o)=>o!==e));t({features:l})})(r),isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove","section-blocks")})]}),(0,s.jsx)("div",{className:"feature-icon",style:{color:m},children:(0,s.jsx)(a.Dashicon,{icon:e.icon,size:"48"})}),(0,s.jsx)(o.RichText,{tagName:"h3",className:"feature-heading",value:e.heading,onChange:e=>x(r,"heading",e),placeholder:(0,l.__)("Feature heading...","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"feature-description",value:e.description,onChange:e=>x(r,"description",e),placeholder:(0,l.__)("Feature description...","section-blocks")})]},r)))}),c&&"right"===h&&d&&(0,s.jsx)("div",{className:"features-side-image",children:(0,s.jsx)("img",{src:d.url,alt:d.alt||""})})]}),(0,s.jsx)("div",{className:"features-actions",children:(0,s.jsx)(a.Button,{onClick:()=>{const e=[...n,{icon:"star-filled",heading:"New Feature",description:"Describe your amazing feature here."}];t({features:e})},isPrimary:!0,children:(0,l.__)("Add Feature","section-blocks")})})]})]})}})}},o={};function a(e){var s=o[e];if(void 0!==s)return s.exports;var i=o[e]={exports:{}};return l[e](i,i.exports,a),i.exports}a.m=l,e=[],a.O=(l,o,s,i)=>{if(!o){var t=1/0;for(d=0;d<e.length;d++){for(var[o,s,i]=e[d],n=!0,r=0;r<o.length;r++)(!1&i||t>=i)&&Object.keys(a.O).every((e=>a.O[e](o[r])))?o.splice(r--,1):(n=!1,i<t&&(t=i));if(n){e.splice(d--,1);var c=s();void 0!==c&&(l=c)}}return l}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[o,s,i]},a.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={7069:0,3169:0};a.O.j=l=>0===e[l];var l=(l,o)=>{var s,i,[t,n,r]=o,c=0;if(t.some((l=>0!==e[l]))){for(s in n)a.o(n,s)&&(a.m[s]=n[s]);if(r)var d=r(a)}for(l&&l(o);c<t.length;c++)i=t[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=a.O(void 0,[3169],(()=>a(536)));s=a.O(s)})(); -
section-blocks/tags/1.3.0/build/gallery-portfolio/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => ' 6f659553f15d7d30e96e');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '9e8eed115a7c5e944385'); -
section-blocks/tags/1.3.0/build/gallery-portfolio/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,l={657:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,a=window.wp.element,t=window.wp.primitives,n=window.ReactJSXRuntime,i=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),c=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})}),r=(0,n.jsx)(t.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(t.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),d=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})}),b=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),h=JSON.parse('{"UU":"create-block/gallery-portfolio"}');(0,e.registerBlockType)(h.UU,{edit:function({attributes:e,setAttributes:t}){const{title:h,subtitle:g,showTitle:_,showSubtitle:u,layout:m,columns:k,columnsMobile:v,columnsTablet:x,gap:p,aspectRatio:j,items:C,categories:y,showFilter:w,showSearch:f,showSort:S,enableLightbox:B,enableLazyLoad:N,hoverEffect:T,animationEffect:A,overlayColor:M,overlayOpacity:O,textColor:P,filterAlignment:R,loadMoreStyle:z,itemsPerPage:L}=e,[U,E]=(0,a.useState)(!1),[I,V]=(0,a.useState)(null),[H,G]=(0,a.useState)(""),[F,D]=(0,a.useState)(!1),[Z,q]=(0,a.useState)([]),[$,J]=(0,a.useState)("all"),W=(0,o.useBlockProps)({className:`section-blocks-gallery-portfolio layout-${m} columns-${k}`}),Y=e=>{const l=(Array.isArray(e)?e:[e]).map(((e,l)=>({id:Date.now()+l,imageId:e.id,imageUrl:e.url,imageAlt:e.alt||"",title:e.title||e.filename||"",description:e.caption||"",category:y.length>0?y[0].slug:"all",link:"",linkTarget:"_self"})));t({items:[...C,...l]})},X=(e,l)=>{const o=C.map((o=>o.id===e?{...o,...l}:o));t({items:o})},K=()=>{D(!F),q([])},Q=()=>{const e=C.map((e=>Z.includes(e.id)?{...e,category:$}:e));t({items:e}),q([]),D(!1)},ee=()=>{const e=C.filter((e=>!Z.includes(e.id)));t({items:e}),q([]),D(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.BlockControls,{children:[(0,n.jsxs)(s.ToolbarGroup,{children:[(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,render:({open:e})=>(0,n.jsx)(s.ToolbarButton,{icon:i,label:(0,l.__)("Add Images","section-blocks"),onClick:e})})}),C.length>0&&(0,n.jsx)(s.ToolbarButton,{icon:c,label:F?(0,l.__)("Exit Bulk Select","section-blocks"):(0,l.__)("Bulk Select","section-blocks"),onClick:K,isPressed:F})]}),F&&Z.length>0&&(0,n.jsxs)(s.ToolbarGroup,{children:[(0,n.jsx)(s.ToolbarButton,{icon:r,label:(0,l.__)("Change Category","section-blocks"),onClick:Q}),(0,n.jsx)(s.ToolbarButton,{icon:d,label:(0,l.__)("Delete Selected","section-blocks"),onClick:ee})]})]}),(0,n.jsxs)(o.InspectorControls,{children:[(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Gallery Management","section-blocks"),initialOpen:!0,children:(0,n.jsxs)("div",{className:"gallery-management",children:[(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,gallery:!0,render:({open:e})=>(0,n.jsx)(s.Button,{onClick:e,variant:"primary",icon:i,className:"add-images-button",children:(0,l.__)("Add Multiple Images","section-blocks")})})}),C.length>0&&(0,n.jsxs)("div",{className:"gallery-stats",children:[(0,n.jsx)("p",{children:(0,l.sprintf)((0,l.__)("Gallery contains %d image(s)","section-blocks"),C.length)}),(0,n.jsxs)("div",{className:"gallery-actions",children:[(0,n.jsx)(s.Button,{variant:"secondary",onClick:K,icon:c,children:F?(0,l.__)("Exit Bulk Select","section-blocks"):(0,l.__)("Bulk Select Mode","section-blocks")}),!F&&(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{confirm((0,l.__)("Are you sure you want to clear all images?","section-blocks"))&&t({items:[]})},isDestructive:!0,children:(0,l.__)("Clear All","section-blocks")})]})]})]})}),F&&(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Bulk Operations","section-blocks"),initialOpen:!0,children:(0,n.jsxs)("div",{className:"bulk-operations",children:[(0,n.jsx)("p",{children:Z.length>0?(0,l.sprintf)((0,l.__)("%d items selected","section-blocks"),Z.length):(0,l.__)("No items selected","section-blocks")}),(0,n.jsxs)("div",{className:"bulk-selection-controls",children:[(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{q(C.map((e=>e.id)))},disabled:Z.length===C.length,children:(0,l.__)("Select All","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{q([])},disabled:0===Z.length,children:(0,l.__)("Clear Selection","section-blocks")})]}),Z.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Assign Category","section-blocks"),value:$,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:J}),(0,n.jsxs)("div",{className:"bulk-action-buttons",children:[(0,n.jsx)(s.Button,{variant:"primary",onClick:Q,children:(0,l.__)("Apply Category","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:ee,isDestructive:!0,children:(0,l.__)("Delete Selected","section-blocks")})]})]})]})}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Gallery Settings","section-blocks"),initialOpen:!F,children:[(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Title","section-blocks"),checked:_,onChange:e=>t({showTitle:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Subtitle","section-blocks"),checked:u,onChange:e=>t({showSubtitle:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Layout","section-blocks"),value:m,options:[{label:(0,l.__)("Masonry","section-blocks"),value:"masonry"},{label:(0,l.__)("Grid","section-blocks"),value:"grid"},{label:(0,l.__)("Justified","section-blocks"),value:"justified"}],onChange:e=>t({layout:e})}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Desktop)","section-blocks"),value:k,onChange:e=>t({columns:e}),min:1,max:6}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Tablet)","section-blocks"),value:x,onChange:e=>t({columnsTablet:e}),min:1,max:4}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Mobile)","section-blocks"),value:v,onChange:e=>t({columnsMobile:e}),min:1,max:2}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Gap (px)","section-blocks"),value:p,onChange:e=>t({gap:e}),min:0,max:50}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Aspect Ratio","section-blocks"),value:j,options:[{label:(0,l.__)("Auto","section-blocks"),value:"auto"},{label:(0,l.__)("Square","section-blocks"),value:"square"},{label:(0,l.__)("Landscape (16:9)","section-blocks"),value:"landscape"},{label:(0,l.__)("Portrait (3:4)","section-blocks"),value:"portrait"}],onChange:e=>t({aspectRatio:e})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Filter & Search","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Category Filter","section-blocks"),checked:w,onChange:e=>t({showFilter:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Search","section-blocks"),checked:f,onChange:e=>t({showSearch:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Sort Options","section-blocks"),checked:S,onChange:e=>t({showSort:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Filter Alignment","section-blocks"),value:R,options:[{label:(0,l.__)("Left","section-blocks"),value:"left"},{label:(0,l.__)("Center","section-blocks"),value:"center"},{label:(0,l.__)("Right","section-blocks"),value:"right"}],onChange:e=>t({filterAlignment:e})})]}),(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Categories","section-blocks"),initialOpen:!1,children:(0,n.jsxs)("div",{className:"category-management",children:[(0,n.jsxs)("div",{className:"add-category",children:[(0,n.jsx)(s.TextControl,{label:(0,l.__)("Add New Category","section-blocks"),value:H,onChange:G,placeholder:(0,l.__)("Category name...","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{if(H.trim()&&!y.find((e=>e.slug===H.toLowerCase().replace(/\s+/g,"-")))){const e={name:H.trim(),slug:H.toLowerCase().replace(/\s+/g,"-")};t({categories:[...y,e]}),G("")}},disabled:!H.trim(),children:(0,l.__)("Add Category","section-blocks")})]}),y.length>0&&(0,n.jsxs)("div",{className:"existing-categories",children:[(0,n.jsx)("h4",{children:(0,l.__)("Existing Categories","section-blocks")}),y.map((e=>(0,n.jsxs)("div",{className:"category-item",children:[(0,n.jsx)("span",{children:e.name}),(0,n.jsx)(s.Button,{icon:d,onClick:()=>(e=>{const l=y.filter((l=>l.slug!==e));t({categories:l});const o=C.map((l=>l.category===e?{...l,category:"all"}:l));t({items:o})})(e.slug),variant:"link",isDestructive:!0,size:"small"})]},e.slug)))]})]})}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Effects & Animation","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:T,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Zoom","section-blocks"),value:"zoom"},{label:(0,l.__)("Fade","section-blocks"),value:"fade"},{label:(0,l.__)("Slide","section-blocks"),value:"slide"},{label:(0,l.__)("Overlay","section-blocks"),value:"overlay"}],onChange:e=>t({hoverEffect:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:A,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,l.__)("Fade In Up","section-blocks"),value:"fadeInUp"},{label:(0,l.__)("Slide In Up","section-blocks"),value:"slideInUp"},{label:(0,l.__)("Zoom In","section-blocks"),value:"zoomIn"}],onChange:e=>t({animationEffect:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Enable Lightbox","section-blocks"),checked:B,onChange:e=>t({enableLightbox:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Enable Lazy Loading","section-blocks"),checked:N,onChange:e=>t({enableLazyLoad:e})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,n.jsx)("p",{children:(0,l.__)("Overlay Color","section-blocks")}),(0,n.jsx)(o.ColorPalette,{value:M,onChange:e=>t({overlayColor:e||"#000000"})}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Overlay Opacity","section-blocks"),value:O,onChange:e=>t({overlayOpacity:e}),min:0,max:1,step:.1}),(0,n.jsx)("p",{children:(0,l.__)("Text Color","section-blocks")}),(0,n.jsx)(o.ColorPalette,{value:P,onChange:e=>t({textColor:e||"#ffffff"})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Load More","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Load More Style","section-blocks"),value:z,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Button","section-blocks"),value:"button"},{label:(0,l.__)("Infinite Scroll","section-blocks"),value:"infinite"}],onChange:e=>t({loadMoreStyle:e})}),"none"!==z&&(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Items Per Page","section-blocks"),value:L,onChange:e=>t({itemsPerPage:e}),min:3,max:50})]})]}),(0,n.jsxs)("div",{...W,children:[_&&(0,n.jsx)(o.RichText,{tagName:"h2",className:"section-blocks-gallery-title",value:h,onChange:e=>t({title:e}),placeholder:(0,l.__)("Enter gallery title...","section-blocks")}),u&&(0,n.jsx)(o.RichText,{tagName:"p",className:"section-blocks-gallery-subtitle",value:g,onChange:e=>t({subtitle:e}),placeholder:(0,l.__)("Enter gallery subtitle...","section-blocks")}),0===C.length?(0,n.jsx)("div",{className:"section-blocks-gallery-placeholder",children:(0,n.jsxs)("div",{className:"placeholder-content",children:[(0,n.jsx)("h3",{children:(0,l.__)("Create Your Gallery","section-blocks")}),(0,n.jsx)("p",{children:(0,l.__)("Upload multiple images to create a beautiful portfolio gallery with filtering and lightbox features.","section-blocks")}),(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,gallery:!0,render:({open:e})=>(0,n.jsx)(s.Button,{onClick:e,variant:"primary",icon:i,className:"upload-button-large",children:(0,l.__)("Upload Multiple Images","section-blocks")})})}),(0,n.jsxs)("div",{className:"placeholder-tips",children:[(0,n.jsx)("h4",{children:(0,l.__)("Tips:","section-blocks")}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,l.__)("Hold Ctrl/Cmd to select multiple images","section-blocks")}),(0,n.jsx)("li",{children:(0,l.__)("You can add categories after uploading","section-blocks")}),(0,n.jsx)("li",{children:(0,l.__)("Use bulk select mode to manage multiple items","section-blocks")})]})]})]})}):(0,n.jsx)("div",{className:"section-blocks-gallery-grid",style:(()=>{const e={display:"grid",gap:`${p}px`,gridTemplateColumns:`repeat(${k}, 1fr)`};if("auto"!==j){const l={square:"1 / 1",landscape:"16 / 9",portrait:"3 / 4"};e.aspectRatio=l[j]}return e})(),children:C.map((e=>(0,n.jsxs)("div",{className:`section-blocks-gallery-item ${F?"bulk-select-mode":""} ${Z.includes(e.id)?"selected":""}`,children:[F&&(0,n.jsx)("div",{className:"gallery-item-checkbox",children:(0,n.jsx)("input",{type:"checkbox",checked:Z.includes(e.id),onChange:()=>{return l=e.id,void q((e=>e.includes(l)?e.filter((e=>e!==l)):[...e,l]));var l}})}),(0,n.jsxs)("div",{className:"gallery-item-image",children:[(0,n.jsx)("img",{src:e.imageUrl,alt:e.imageAlt}),(0,n.jsx)("div",{className:"gallery-item-overlay",children:!F&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Button,{icon:b,onClick:()=>{V(e),E(!0)},variant:"secondary",size:"small",title:(0,l.__)("Edit Item","section-blocks")}),(0,n.jsx)(s.Button,{icon:d,onClick:()=>(e=>{const l=C.filter((l=>l.id!==e));t({items:l})})(e.id),variant:"secondary",size:"small",isDestructive:!0,title:(0,l.__)("Delete Item","section-blocks")})]})})]}),(0,n.jsxs)("div",{className:"gallery-item-meta",children:[e.title&&(0,n.jsx)("h4",{className:"gallery-item-title",children:e.title}),!F&&(0,n.jsx)("div",{className:"gallery-item-quick-controls",children:(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Category","section-blocks"),value:e.category,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:l=>X(e.id,{category:l}),className:"quick-category-select"})}),"all"!==e.category&&(0,n.jsx)("span",{className:"gallery-item-category-badge",children:y.find((l=>l.slug===e.category))?.name||e.category})]})]},e.id)))})]}),U&&I&&(0,n.jsx)(s.Modal,{title:(0,l.__)("Edit Gallery Item","section-blocks"),onRequestClose:()=>{E(!1),V(null)},className:"section-blocks-gallery-modal",children:(0,n.jsxs)("div",{className:"gallery-modal-content",children:[(0,n.jsx)(s.TextControl,{label:(0,l.__)("Title","section-blocks"),value:I.title,onChange:e=>V({...I,title:e})}),(0,n.jsx)(s.TextControl,{label:(0,l.__)("Description","section-blocks"),value:I.description,onChange:e=>V({...I,description:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Category","section-blocks"),value:I.category,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:e=>V({...I,category:e})}),(0,n.jsx)(s.TextControl,{label:(0,l.__)("Link URL","section-blocks"),value:I.link,onChange:e=>V({...I,link:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Link Target","section-blocks"),value:I.linkTarget,options:[{label:(0,l.__)("Same Window","section-blocks"),value:"_self"},{label:(0,l.__)("New Window","section-blocks"),value:"_blank"}],onChange:e=>V({...I,linkTarget:e})}),(0,n.jsxs)("div",{className:"modal-actions",children:[(0,n.jsx)(s.Button,{variant:"primary",onClick:()=>{X(I.id,I),E(!1),V(null)},children:(0,l.__)("Save Changes","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{E(!1),V(null)},children:(0,l.__)("Cancel","section-blocks")})]})]})})]})}})}},o={};function s(e){var a=o[e];if(void 0!==a)return a.exports;var t=o[e]={exports:{}};return l[e](t,t.exports,s),t.exports}s.m=l,e=[],s.O=(l,o,a,t)=>{if(!o){var n=1/0;for(d=0;d<e.length;d++){for(var[o,a,t]=e[d],i=!0,c=0;c<o.length;c++)(!1&t||n>=t)&&Object.keys(s.O).every((e=>s.O[e](o[c])))?o.splice(c--,1):(i=!1,t<n&&(n=t));if(i){e.splice(d--,1);var r=a();void 0!==r&&(l=r)}}return l}t=t||0;for(var d=e.length;d>0&&e[d-1][2]>t;d--)e[d]=e[d-1];e[d]=[o,a,t]},s.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={5 61:0,237:0};s.O.j=l=>0===e[l];var l=(l,o)=>{var a,t,[n,i,c]=o,r=0;if(n.some((l=>0!==e[l]))){for(a in i)s.o(i,a)&&(s.m[a]=i[a]);if(c)var d=c(s)}for(l&&l(o);r<n.length;r++)t=n[r],s.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return s.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var a=s.O(void 0,[237],(()=>s(657)));a=s.O(a)})();1 (()=>{"use strict";var e,l={657:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,a=window.wp.element,t=window.wp.primitives,n=window.ReactJSXRuntime,i=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),c=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})}),r=(0,n.jsx)(t.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(t.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),d=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})}),b=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),h=JSON.parse('{"UU":"create-block/gallery-portfolio"}');(0,e.registerBlockType)(h.UU,{edit:function({attributes:e,setAttributes:t}){const{title:h,subtitle:g,showTitle:_,showSubtitle:u,layout:m,columns:k,columnsMobile:v,columnsTablet:x,gap:p,aspectRatio:j,items:C,categories:y,showFilter:w,showSearch:f,showSort:S,enableLightbox:B,enableLazyLoad:N,hoverEffect:T,animationEffect:A,overlayColor:M,overlayOpacity:O,textColor:P,filterAlignment:R,loadMoreStyle:z,itemsPerPage:L}=e,[U,E]=(0,a.useState)(!1),[I,V]=(0,a.useState)(null),[H,G]=(0,a.useState)(""),[F,D]=(0,a.useState)(!1),[Z,q]=(0,a.useState)([]),[$,J]=(0,a.useState)("all"),W=(0,o.useBlockProps)({className:`section-blocks-gallery-portfolio layout-${m} columns-${k}`}),Y=e=>{const l=(Array.isArray(e)?e:[e]).map(((e,l)=>({id:Date.now()+l,imageId:e.id,imageUrl:e.url,imageAlt:e.alt||"",title:e.title||e.filename||"",description:e.caption||"",category:y.length>0?y[0].slug:"all",link:"",linkTarget:"_self"})));t({items:[...C,...l]})},X=(e,l)=>{const o=C.map((o=>o.id===e?{...o,...l}:o));t({items:o})},K=()=>{D(!F),q([])},Q=()=>{const e=C.map((e=>Z.includes(e.id)?{...e,category:$}:e));t({items:e}),q([]),D(!1)},ee=()=>{const e=C.filter((e=>!Z.includes(e.id)));t({items:e}),q([]),D(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.BlockControls,{children:[(0,n.jsxs)(s.ToolbarGroup,{children:[(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,render:({open:e})=>(0,n.jsx)(s.ToolbarButton,{icon:i,label:(0,l.__)("Add Images","section-blocks"),onClick:e})})}),C.length>0&&(0,n.jsx)(s.ToolbarButton,{icon:c,label:F?(0,l.__)("Exit Bulk Select","section-blocks"):(0,l.__)("Bulk Select","section-blocks"),onClick:K,isPressed:F})]}),F&&Z.length>0&&(0,n.jsxs)(s.ToolbarGroup,{children:[(0,n.jsx)(s.ToolbarButton,{icon:r,label:(0,l.__)("Change Category","section-blocks"),onClick:Q}),(0,n.jsx)(s.ToolbarButton,{icon:d,label:(0,l.__)("Delete Selected","section-blocks"),onClick:ee})]})]}),(0,n.jsxs)(o.InspectorControls,{children:[(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Gallery Management","section-blocks"),initialOpen:!0,children:(0,n.jsxs)("div",{className:"gallery-management",children:[(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,gallery:!0,render:({open:e})=>(0,n.jsx)(s.Button,{onClick:e,variant:"primary",icon:i,className:"add-images-button",children:(0,l.__)("Add Multiple Images","section-blocks")})})}),C.length>0&&(0,n.jsxs)("div",{className:"gallery-stats",children:[(0,n.jsx)("p",{children:(0,l.sprintf)((0,l.__)("Gallery contains %d image(s)","section-blocks"),C.length)}),(0,n.jsxs)("div",{className:"gallery-actions",children:[(0,n.jsx)(s.Button,{variant:"secondary",onClick:K,icon:c,children:F?(0,l.__)("Exit Bulk Select","section-blocks"):(0,l.__)("Bulk Select Mode","section-blocks")}),!F&&(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{confirm((0,l.__)("Are you sure you want to clear all images?","section-blocks"))&&t({items:[]})},isDestructive:!0,children:(0,l.__)("Clear All","section-blocks")})]})]})]})}),F&&(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Bulk Operations","section-blocks"),initialOpen:!0,children:(0,n.jsxs)("div",{className:"bulk-operations",children:[(0,n.jsx)("p",{children:Z.length>0?(0,l.sprintf)((0,l.__)("%d items selected","section-blocks"),Z.length):(0,l.__)("No items selected","section-blocks")}),(0,n.jsxs)("div",{className:"bulk-selection-controls",children:[(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{q(C.map((e=>e.id)))},disabled:Z.length===C.length,children:(0,l.__)("Select All","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{q([])},disabled:0===Z.length,children:(0,l.__)("Clear Selection","section-blocks")})]}),Z.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Assign Category","section-blocks"),value:$,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:J}),(0,n.jsxs)("div",{className:"bulk-action-buttons",children:[(0,n.jsx)(s.Button,{variant:"primary",onClick:Q,children:(0,l.__)("Apply Category","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:ee,isDestructive:!0,children:(0,l.__)("Delete Selected","section-blocks")})]})]})]})}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Gallery Settings","section-blocks"),initialOpen:!F,children:[(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Title","section-blocks"),checked:_,onChange:e=>t({showTitle:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Subtitle","section-blocks"),checked:u,onChange:e=>t({showSubtitle:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Layout","section-blocks"),value:m,options:[{label:(0,l.__)("Masonry","section-blocks"),value:"masonry"},{label:(0,l.__)("Grid","section-blocks"),value:"grid"},{label:(0,l.__)("Justified","section-blocks"),value:"justified"}],onChange:e=>t({layout:e})}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Desktop)","section-blocks"),value:k,onChange:e=>t({columns:e}),min:1,max:6}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Tablet)","section-blocks"),value:x,onChange:e=>t({columnsTablet:e}),min:1,max:4}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Mobile)","section-blocks"),value:v,onChange:e=>t({columnsMobile:e}),min:1,max:2}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Gap (px)","section-blocks"),value:p,onChange:e=>t({gap:e}),min:0,max:50}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Aspect Ratio","section-blocks"),value:j,options:[{label:(0,l.__)("Auto","section-blocks"),value:"auto"},{label:(0,l.__)("Square","section-blocks"),value:"square"},{label:(0,l.__)("Landscape (16:9)","section-blocks"),value:"landscape"},{label:(0,l.__)("Portrait (3:4)","section-blocks"),value:"portrait"}],onChange:e=>t({aspectRatio:e})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Filter & Search","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Category Filter","section-blocks"),checked:w,onChange:e=>t({showFilter:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Search","section-blocks"),checked:f,onChange:e=>t({showSearch:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Sort Options","section-blocks"),checked:S,onChange:e=>t({showSort:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Filter Alignment","section-blocks"),value:R,options:[{label:(0,l.__)("Left","section-blocks"),value:"left"},{label:(0,l.__)("Center","section-blocks"),value:"center"},{label:(0,l.__)("Right","section-blocks"),value:"right"}],onChange:e=>t({filterAlignment:e})})]}),(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Categories","section-blocks"),initialOpen:!1,children:(0,n.jsxs)("div",{className:"category-management",children:[(0,n.jsxs)("div",{className:"add-category",children:[(0,n.jsx)(s.TextControl,{label:(0,l.__)("Add New Category","section-blocks"),value:H,onChange:G,placeholder:(0,l.__)("Category name...","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{if(H.trim()&&!y.find((e=>e.slug===H.toLowerCase().replace(/\s+/g,"-")))){const e={name:H.trim(),slug:H.toLowerCase().replace(/\s+/g,"-")};t({categories:[...y,e]}),G("")}},disabled:!H.trim(),children:(0,l.__)("Add Category","section-blocks")})]}),y.length>0&&(0,n.jsxs)("div",{className:"existing-categories",children:[(0,n.jsx)("h4",{children:(0,l.__)("Existing Categories","section-blocks")}),y.map((e=>(0,n.jsxs)("div",{className:"category-item",children:[(0,n.jsx)("span",{children:e.name}),(0,n.jsx)(s.Button,{icon:d,onClick:()=>(e=>{const l=y.filter((l=>l.slug!==e));t({categories:l});const o=C.map((l=>l.category===e?{...l,category:"all"}:l));t({items:o})})(e.slug),variant:"link",isDestructive:!0,size:"small"})]},e.slug)))]})]})}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Effects & Animation","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:T,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Zoom","section-blocks"),value:"zoom"},{label:(0,l.__)("Fade","section-blocks"),value:"fade"},{label:(0,l.__)("Slide","section-blocks"),value:"slide"},{label:(0,l.__)("Overlay","section-blocks"),value:"overlay"}],onChange:e=>t({hoverEffect:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:A,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,l.__)("Fade In Up","section-blocks"),value:"fadeInUp"},{label:(0,l.__)("Slide In Up","section-blocks"),value:"slideInUp"},{label:(0,l.__)("Zoom In","section-blocks"),value:"zoomIn"}],onChange:e=>t({animationEffect:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Enable Lightbox","section-blocks"),checked:B,onChange:e=>t({enableLightbox:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Enable Lazy Loading","section-blocks"),checked:N,onChange:e=>t({enableLazyLoad:e})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,n.jsx)("p",{children:(0,l.__)("Overlay Color","section-blocks")}),(0,n.jsx)(o.ColorPalette,{value:M,onChange:e=>t({overlayColor:e||"#000000"})}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Overlay Opacity","section-blocks"),value:O,onChange:e=>t({overlayOpacity:e}),min:0,max:1,step:.1}),(0,n.jsx)("p",{children:(0,l.__)("Text Color","section-blocks")}),(0,n.jsx)(o.ColorPalette,{value:P,onChange:e=>t({textColor:e||"#ffffff"})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Load More","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Load More Style","section-blocks"),value:z,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Button","section-blocks"),value:"button"},{label:(0,l.__)("Infinite Scroll","section-blocks"),value:"infinite"}],onChange:e=>t({loadMoreStyle:e})}),"none"!==z&&(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Items Per Page","section-blocks"),value:L,onChange:e=>t({itemsPerPage:e}),min:3,max:50})]})]}),(0,n.jsxs)("div",{...W,children:[_&&(0,n.jsx)(o.RichText,{tagName:"h2",className:"section-blocks-gallery-title",value:h,onChange:e=>t({title:e}),placeholder:(0,l.__)("Enter gallery title...","section-blocks")}),u&&(0,n.jsx)(o.RichText,{tagName:"p",className:"section-blocks-gallery-subtitle",value:g,onChange:e=>t({subtitle:e}),placeholder:(0,l.__)("Enter gallery subtitle...","section-blocks")}),0===C.length?(0,n.jsx)("div",{className:"section-blocks-gallery-placeholder",children:(0,n.jsxs)("div",{className:"placeholder-content",children:[(0,n.jsx)("h3",{children:(0,l.__)("Create Your Gallery","section-blocks")}),(0,n.jsx)("p",{children:(0,l.__)("Upload multiple images to create a beautiful portfolio gallery with filtering and lightbox features.","section-blocks")}),(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,gallery:!0,render:({open:e})=>(0,n.jsx)(s.Button,{onClick:e,variant:"primary",icon:i,className:"upload-button-large",children:(0,l.__)("Upload Multiple Images","section-blocks")})})}),(0,n.jsxs)("div",{className:"placeholder-tips",children:[(0,n.jsx)("h4",{children:(0,l.__)("Tips:","section-blocks")}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,l.__)("Hold Ctrl/Cmd to select multiple images","section-blocks")}),(0,n.jsx)("li",{children:(0,l.__)("You can add categories after uploading","section-blocks")}),(0,n.jsx)("li",{children:(0,l.__)("Use bulk select mode to manage multiple items","section-blocks")})]})]})]})}):(0,n.jsx)("div",{className:"section-blocks-gallery-grid",style:(()=>{const e={display:"grid",gap:`${p}px`,gridTemplateColumns:`repeat(${k}, 1fr)`};if("auto"!==j){const l={square:"1 / 1",landscape:"16 / 9",portrait:"3 / 4"};e.aspectRatio=l[j]}return e})(),children:C.map((e=>(0,n.jsxs)("div",{className:`section-blocks-gallery-item ${F?"bulk-select-mode":""} ${Z.includes(e.id)?"selected":""}`,children:[F&&(0,n.jsx)("div",{className:"gallery-item-checkbox",children:(0,n.jsx)("input",{type:"checkbox",checked:Z.includes(e.id),onChange:()=>{return l=e.id,void q((e=>e.includes(l)?e.filter((e=>e!==l)):[...e,l]));var l}})}),(0,n.jsxs)("div",{className:"gallery-item-image",children:[(0,n.jsx)("img",{src:e.imageUrl,alt:e.imageAlt}),(0,n.jsx)("div",{className:"gallery-item-overlay",children:!F&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Button,{icon:b,onClick:()=>{V(e),E(!0)},variant:"secondary",size:"small",title:(0,l.__)("Edit Item","section-blocks")}),(0,n.jsx)(s.Button,{icon:d,onClick:()=>(e=>{const l=C.filter((l=>l.id!==e));t({items:l})})(e.id),variant:"secondary",size:"small",isDestructive:!0,title:(0,l.__)("Delete Item","section-blocks")})]})})]}),(0,n.jsxs)("div",{className:"gallery-item-meta",children:[e.title&&(0,n.jsx)("h4",{className:"gallery-item-title",children:e.title}),!F&&(0,n.jsx)("div",{className:"gallery-item-quick-controls",children:(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Category","section-blocks"),value:e.category,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:l=>X(e.id,{category:l}),className:"quick-category-select"})}),"all"!==e.category&&(0,n.jsx)("span",{className:"gallery-item-category-badge",children:y.find((l=>l.slug===e.category))?.name||e.category})]})]},e.id)))})]}),U&&I&&(0,n.jsx)(s.Modal,{title:(0,l.__)("Edit Gallery Item","section-blocks"),onRequestClose:()=>{E(!1),V(null)},className:"section-blocks-gallery-modal",children:(0,n.jsxs)("div",{className:"gallery-modal-content",children:[(0,n.jsx)(s.TextControl,{label:(0,l.__)("Title","section-blocks"),value:I.title,onChange:e=>V({...I,title:e})}),(0,n.jsx)(s.TextControl,{label:(0,l.__)("Description","section-blocks"),value:I.description,onChange:e=>V({...I,description:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Category","section-blocks"),value:I.category,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:e=>V({...I,category:e})}),(0,n.jsx)(s.TextControl,{label:(0,l.__)("Link URL","section-blocks"),value:I.link,onChange:e=>V({...I,link:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Link Target","section-blocks"),value:I.linkTarget,options:[{label:(0,l.__)("Same Window","section-blocks"),value:"_self"},{label:(0,l.__)("New Window","section-blocks"),value:"_blank"}],onChange:e=>V({...I,linkTarget:e})}),(0,n.jsxs)("div",{className:"modal-actions",children:[(0,n.jsx)(s.Button,{variant:"primary",onClick:()=>{X(I.id,I),E(!1),V(null)},children:(0,l.__)("Save Changes","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{E(!1),V(null)},children:(0,l.__)("Cancel","section-blocks")})]})]})})]})}})}},o={};function s(e){var a=o[e];if(void 0!==a)return a.exports;var t=o[e]={exports:{}};return l[e](t,t.exports,s),t.exports}s.m=l,e=[],s.O=(l,o,a,t)=>{if(!o){var n=1/0;for(d=0;d<e.length;d++){for(var[o,a,t]=e[d],i=!0,c=0;c<o.length;c++)(!1&t||n>=t)&&Object.keys(s.O).every((e=>s.O[e](o[c])))?o.splice(c--,1):(i=!1,t<n&&(n=t));if(i){e.splice(d--,1);var r=a();void 0!==r&&(l=r)}}return l}t=t||0;for(var d=e.length;d>0&&e[d-1][2]>t;d--)e[d]=e[d-1];e[d]=[o,a,t]},s.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={5561:0,4237:0};s.O.j=l=>0===e[l];var l=(l,o)=>{var a,t,[n,i,c]=o,r=0;if(n.some((l=>0!==e[l]))){for(a in i)s.o(i,a)&&(s.m[a]=i[a]);if(c)var d=c(s)}for(l&&l(o);r<n.length;r++)t=n[r],s.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return s.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var a=s.O(void 0,[4237],(()=>s(657)));a=s.O(a)})(); -
section-blocks/tags/1.3.0/build/hero-section/index.asset.php
r3750774 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' f1003c6bb24162e719fa');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '0c69d81fd32927b725d8'); -
section-blocks/tags/1.3.0/build/hero-section/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,o={205:()=>{const e=window.wp.blocks,o=window.wp.i18n,t=window.wp.blockEditor,n=window.wp.components,l=window.ReactJSXRuntime,i=JSON.parse('{"UU":"create-block/hero-section"}');(0,e.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:i}){const{title:r,subtitle:a,backgroundImage:s,backgroundImageId:c,buttonText:d,buttonUrl:g,textAlignment:u,overlayOpacity:b,overlayColor:p,textColor:h,minHeight:k}=e,x=(0,t.useBlockProps)({className:`hero-section-block align-${u}`,style:{minHeight:`${k}px`,backgroundImage:s?`url(${s.url})`:"none",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}}),m={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:p,opacity:b,zIndex:1},v={position:"relative",zIndex:2,color:h,textAlign:u,padding:"2rem",maxWidth:"800px",width:"100%"};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.BlockControls,{children:(0,l.jsx)(n.ToolbarGroup,{children:(0,l.jsx)(t.AlignmentToolbar,{value:u,onChange:e=>i({textAlignment:e})})})}),(0,l.jsxs)(t.InspectorControls,{children:[(0,l.jsxs)(n.PanelBody,{title:(0,o.__)("Hero Settings","section-blocks"),initialOpen:!0,children:[(0,l.jsx)(n.RangeControl,{label:(0,o.__)("Minimum Height (px)","section-blocks"),value:k,onChange:e=>i({minHeight:e}),min:200,max:1e3,step:10}),(0,l.jsx)(n.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:b,onChange:e=>i({overlayOpacity:e}),min:0,max:1,step:.1})]}),(0,l.jsx)(t.PanelColorSettings,{title:(0,o.__)("Color Settings","section-blocks"),colorSettings:[{value:p,onChange:e=>i({overlayColor:e}),label:(0,o.__)("Overlay Color","section-blocks")},{value:h,onChange:e=>i({textColor:e}),label:(0,o.__)("Text Color","section-blocks")}]}),(0,l.jsxs)(n.PanelBody,{title:(0,o.__)("Background Image","section-blocks"),initialOpen:!1,children:[(0,l.jsx)(t.MediaUploadCheck,{children:(0,l.jsx)(t.MediaUpload,{onSelect:e=>i({backgroundImage:{url:e.url,alt:e.alt||""},backgroundImageId:e.id}),allowedTypes:["image"],value:c,render:({open:e})=>(0,l.jsx)(n.Button,{onClick:e,variant:s?"secondary":"primary",children:s?(0,o.__)("Change Background Image","section-blocks"):(0,o.__)("Select Background Image","section-blocks")})})}),s&&(0,l.jsx)(n.Button,{onClick:()=>i({backgroundImage:null,backgroundImageId:0}),variant:"link",isDestructive:!0,children:(0,o.__)("Remove Background Image","section-blocks")})]}),(0,l.jsx)(n.PanelBody,{title:(0,o.__)("Button Settings","section-blocks"),initialOpen:!1,children:(0,l.jsx)(t.URLInput,{label:(0,o.__)("Button URL","section-blocks"),value:g,onChange:e=>i({buttonUrl:e})})})]}),(0,l.jsxs)("div",{...x,children:[(s||b>0)&&(0,l.jsx)("div",{style:m}),(0,l.jsxs)("div",{style:v,children:[(0,l.jsx)(t.RichText,{tagName:"h1",placeholder:(0,o.__)("Enter hero title...","section-blocks"),value:r,onChange:e=>i({title:e}),style:{fontSize:"3rem",fontWeight:"bold",marginBottom:"1rem",lineHeight:"1.2"}}),(0,l.jsx)(t.RichText,{tagName:"p",placeholder:(0,o.__)("Enter hero subtitle...","section-blocks"),value:a,onChange:e=>i({subtitle:e}),style:{fontSize:"1.25rem",marginBottom:"2rem",opacity:.9}}),(0,l.jsx)(t.RichText,{tagName:"span",placeholder:(0,o.__)("Button text...","section-blocks"),value:d,onChange:e=>i({buttonText:e}),style:{display:"inline-block",padding:"12px 24px",backgroundColor:"#007cba",color:"#ffffff",textDecoration:"none",borderRadius:"4px",fontWeight:"600",fontSize:"1rem",border:"none",cursor:"pointer",transition:"background-color 0.3s ease"}})]})]})]})}})}},t={};function n(e){var l=t[e];if(void 0!==l)return l.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,n),i.exports}n.m=o,e=[],n.O=(o,t,l,i)=>{if(!t){var r=1/0;for(d=0;d<e.length;d++){for(var[t,l,i]=e[d],a=!0,s=0;s<t.length;s++)(!1&i||r>=i)&&Object.keys(n.O).every((e=>n.O[e](t[s])))?t.splice(s--,1):(a=!1,i<r&&(r=i));if(a){e.splice(d--,1);var c=l();void 0!==c&&(o=c)}}return o}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[t,l,i]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={ 536:0,248:0};n.O.j=o=>0===e[o];var o=(o,t)=>{var l,i,[r,a,s]=t,c=0;if(r.some((o=>0!==e[o]))){for(l in a)n.o(a,l)&&(n.m[l]=a[l]);if(s)var d=s(n)}for(o&&o(t);c<r.length;c++)i=r[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(d)},t=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var l=n.O(void 0,[248],(()=>n(205)));l=n.O(l)})();1 (()=>{"use strict";var e,o={205:()=>{const e=window.wp.blocks,o=window.wp.i18n,t=window.wp.blockEditor,n=window.wp.components,l=window.ReactJSXRuntime,i=JSON.parse('{"UU":"create-block/hero-section"}');(0,e.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:i}){const{title:r,subtitle:a,backgroundImage:s,backgroundImageId:c,buttonText:d,buttonUrl:g,textAlignment:u,overlayOpacity:b,overlayColor:p,textColor:h,minHeight:k}=e,x=(0,t.useBlockProps)({className:`hero-section-block align-${u}`,style:{minHeight:`${k}px`,backgroundImage:s?`url(${s.url})`:"none",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}}),m={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:p,opacity:b,zIndex:1},v={position:"relative",zIndex:2,color:h,textAlign:u,padding:"2rem",maxWidth:"800px",width:"100%"};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.BlockControls,{children:(0,l.jsx)(n.ToolbarGroup,{children:(0,l.jsx)(t.AlignmentToolbar,{value:u,onChange:e=>i({textAlignment:e})})})}),(0,l.jsxs)(t.InspectorControls,{children:[(0,l.jsxs)(n.PanelBody,{title:(0,o.__)("Hero Settings","section-blocks"),initialOpen:!0,children:[(0,l.jsx)(n.RangeControl,{label:(0,o.__)("Minimum Height (px)","section-blocks"),value:k,onChange:e=>i({minHeight:e}),min:200,max:1e3,step:10}),(0,l.jsx)(n.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:b,onChange:e=>i({overlayOpacity:e}),min:0,max:1,step:.1})]}),(0,l.jsx)(t.PanelColorSettings,{title:(0,o.__)("Color Settings","section-blocks"),colorSettings:[{value:p,onChange:e=>i({overlayColor:e}),label:(0,o.__)("Overlay Color","section-blocks")},{value:h,onChange:e=>i({textColor:e}),label:(0,o.__)("Text Color","section-blocks")}]}),(0,l.jsxs)(n.PanelBody,{title:(0,o.__)("Background Image","section-blocks"),initialOpen:!1,children:[(0,l.jsx)(t.MediaUploadCheck,{children:(0,l.jsx)(t.MediaUpload,{onSelect:e=>i({backgroundImage:{url:e.url,alt:e.alt||""},backgroundImageId:e.id}),allowedTypes:["image"],value:c,render:({open:e})=>(0,l.jsx)(n.Button,{onClick:e,variant:s?"secondary":"primary",children:s?(0,o.__)("Change Background Image","section-blocks"):(0,o.__)("Select Background Image","section-blocks")})})}),s&&(0,l.jsx)(n.Button,{onClick:()=>i({backgroundImage:null,backgroundImageId:0}),variant:"link",isDestructive:!0,children:(0,o.__)("Remove Background Image","section-blocks")})]}),(0,l.jsx)(n.PanelBody,{title:(0,o.__)("Button Settings","section-blocks"),initialOpen:!1,children:(0,l.jsx)(t.URLInput,{label:(0,o.__)("Button URL","section-blocks"),value:g,onChange:e=>i({buttonUrl:e})})})]}),(0,l.jsxs)("div",{...x,children:[(s||b>0)&&(0,l.jsx)("div",{style:m}),(0,l.jsxs)("div",{style:v,children:[(0,l.jsx)(t.RichText,{tagName:"h1",placeholder:(0,o.__)("Enter hero title...","section-blocks"),value:r,onChange:e=>i({title:e}),style:{fontSize:"3rem",fontWeight:"bold",marginBottom:"1rem",lineHeight:"1.2"}}),(0,l.jsx)(t.RichText,{tagName:"p",placeholder:(0,o.__)("Enter hero subtitle...","section-blocks"),value:a,onChange:e=>i({subtitle:e}),style:{fontSize:"1.25rem",marginBottom:"2rem",opacity:.9}}),(0,l.jsx)(t.RichText,{tagName:"span",placeholder:(0,o.__)("Button text...","section-blocks"),value:d,onChange:e=>i({buttonText:e}),style:{display:"inline-block",padding:"12px 24px",backgroundColor:"#007cba",color:"#ffffff",textDecoration:"none",borderRadius:"4px",fontWeight:"600",fontSize:"1rem",border:"none",cursor:"pointer",transition:"background-color 0.3s ease"}})]})]})]})}})}},t={};function n(e){var l=t[e];if(void 0!==l)return l.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,n),i.exports}n.m=o,e=[],n.O=(o,t,l,i)=>{if(!t){var r=1/0;for(d=0;d<e.length;d++){for(var[t,l,i]=e[d],a=!0,s=0;s<t.length;s++)(!1&i||r>=i)&&Object.keys(n.O).every((e=>n.O[e](t[s])))?t.splice(s--,1):(a=!1,i<r&&(r=i));if(a){e.splice(d--,1);var c=l();void 0!==c&&(o=c)}}return o}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[t,l,i]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={6536:0,1248:0};n.O.j=o=>0===e[o];var o=(o,t)=>{var l,i,[r,a,s]=t,c=0;if(r.some((o=>0!==e[o]))){for(l in a)n.o(a,l)&&(n.m[l]=a[l]);if(s)var d=s(n)}for(o&&o(t);c<r.length;c++)i=r[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(d)},t=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var l=n.O(void 0,[1248],(()=>n(205)));l=n.O(l)})(); -
section-blocks/tags/1.3.0/build/newsletter-signup/index.asset.php
r3318999 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' 5e2722565f6ce7087b68');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'ebb2df9ecb4b2e87b1f9'); -
section-blocks/tags/1.3.0/build/newsletter-signup/index.js
r3302097 r3750877 1 (()=>{"use strict";var e,o={55:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,t=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/newsletter-signup"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{title:s,subtitle:i,buttonText:c,placeholderText:r,namePlaceholder:b,showNameField:d,requirePrivacyConsent:u,privacyText:g,privacyUrl:p,layoutStyle:h,backgroundType:_,backgroundColor:x,backgroundImage:k,backgroundImageId:C,overlayOpacity:m,overlayColor:v,textColor:j,buttonColor:y,buttonTextColor:T,inputBorderColor:S,inputBackgroundColor:P,textAlignment:w,integrationService:f,mailchimpListId:B,customApiEndpoint:I,showSocialProof:O,subscriberCount:M,socialProofText:N,showLeadMagnet:R,leadMagnetTitle:L,leadMagnetDescription:E,leadMagnetImage:U,enableHoneypot:A,enableRecaptcha:F,recaptchaSiteKey:$,padding:D,borderRadius:H,boxShadow:q,animationEffect:K}=e,z=(0,l.useBlockProps)({className:`section-blocks-newsletter-signup layout-${h} text-${w}`,style:{backgroundColor:"color"===_?x:"transparent",backgroundImage:"image"===_&&k?`url(${k.url})`:"none",backgroundSize:"cover",backgroundPosition:"center",color:j,padding:`${D?.top||"60px"} ${D?.right||"20px"} ${D?.bottom||"60px"} ${D?.left||"20px"}`,borderRadius:`${H}px`,boxShadow:q?"0 10px 30px rgba(0,0,0,0.1)":"none",position:"relative"}}),J="image"===_&&k?{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:v,opacity:m,borderRadius:`${H}px`}:{},G=[{label:(0,o.__)("Centered","section-blocks"),value:"centered"},{label:(0,o.__)("Split","section-blocks"),value:"split"},{label:(0,o.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,o.__)("Card","section-blocks"),value:"card"}],W=[{label:(0,o.__)("WordPress Database","section-blocks"),value:"wordpress"},{label:(0,o.__)("Mailchimp","section-blocks"),value:"mailchimp"},{label:(0,o.__)("Custom API","section-blocks"),value:"custom_api"}],X=[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,o.__)("Slide Up","section-blocks"),value:"slideUp"},{label:(0,o.__)("Scale","section-blocks"),value:"scale"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.InspectorControls,{children:[(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Content Settings","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Title","section-blocks"),value:s,onChange:e=>a({title:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Subtitle","section-blocks"),value:i,onChange:e=>a({subtitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Button Text","section-blocks"),value:c,onChange:e=>a({buttonText:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Email Placeholder","section-blocks"),value:r,onChange:e=>a({placeholderText:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Name Field","section-blocks"),checked:d,onChange:e=>a({showNameField:e})}),d&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("Name Placeholder","section-blocks"),value:b,onChange:e=>a({namePlaceholder:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Layout & Design","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:h,options:G,onChange:e=>a({layoutStyle:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Text Alignment","section-blocks"),value:w,options:[{label:(0,o.__)("Left","section-blocks"),value:"left"},{label:(0,o.__)("Center","section-blocks"),value:"center"},{label:(0,o.__)("Right","section-blocks"),value:"right"}],onChange:e=>a({textAlignment:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Animation Effect","section-blocks"),value:K,options:X,onChange:e=>a({animationEffect:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:H,onChange:e=>a({borderRadius:e}),min:0,max:50}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Box Shadow","section-blocks"),checked:q,onChange:e=>a({boxShadow:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Background","section-blocks"),initialOpen:!1,children:[(0,t.jsxs)(n.ButtonGroup,{children:[(0,t.jsx)(n.Button,{isPrimary:"color"===_,onClick:()=>a({backgroundType:"color"}),children:(0,o.__)("Color","section-blocks")}),(0,t.jsx)(n.Button,{isPrimary:"image"===_,onClick:()=>a({backgroundType:"image"}),children:(0,o.__)("Image","section-blocks")})]}),"color"===_&&(0,t.jsx)(l.ColorPalette,{value:x,onChange:e=>a({backgroundColor:e})}),"image"===_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.MediaUploadCheck,{children:(0,t.jsx)(l.MediaUpload,{onSelect:e=>a({backgroundImage:e,backgroundImageId:e.id}),allowedTypes:["image"],value:C,render:({open:e})=>(0,t.jsx)(n.Button,{onClick:e,variant:"secondary",children:k?(0,o.__)("Change Image","section-blocks"):(0,o.__)("Select Image","section-blocks")})})}),k&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:m,onChange:e=>a({overlayOpacity:e}),min:0,max:1,step:.1}),(0,t.jsx)(l.ColorPalette,{value:v,onChange:e=>a({overlayColor:e})})]})]})]}),(0,t.jsx)(l.PanelColorSettings,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,colorSettings:[{value:j,onChange:e=>a({textColor:e}),label:(0,o.__)("Text Color","section-blocks")},{value:y,onChange:e=>a({buttonColor:e}),label:(0,o.__)("Button Color","section-blocks")},{value:T,onChange:e=>a({buttonTextColor:e}),label:(0,o.__)("Button Text Color","section-blocks")},{value:S,onChange:e=>a({inputBorderColor:e}),label:(0,o.__)("Input Border Color","section-blocks")},{value:P,onChange:e=>a({inputBackgroundColor:e}),label:(0,o.__)("Input Background Color","section-blocks")}]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Integration Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Email Service","section-blocks"),value:f,options:W,onChange:e=>a({integrationService:e})}),"mailchimp"===f&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("Mailchimp List ID","section-blocks"),value:B,onChange:e=>a({mailchimpListId:e}),help:(0,o.__)("Enter your Mailchimp audience/list ID","section-blocks")}),"custom_api"===f&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("API Endpoint URL","section-blocks"),value:I,onChange:e=>a({customApiEndpoint:e}),help:(0,o.__)("Enter the URL for your custom API endpoint","section-blocks")})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Privacy & Security","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Require Privacy Consent","section-blocks"),checked:u,onChange:e=>a({requirePrivacyConsent:e})}),u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Privacy Text","section-blocks"),value:g,onChange:e=>a({privacyText:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Privacy Policy URL","section-blocks"),value:p,onChange:e=>a({privacyUrl:e})})]}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable Honeypot Protection","section-blocks"),checked:A,onChange:e=>a({enableHoneypot:e}),help:(0,o.__)("Helps prevent spam submissions","section-blocks")}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable reCAPTCHA","section-blocks"),checked:F,onChange:e=>a({enableRecaptcha:e})}),F&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("reCAPTCHA Site Key","section-blocks"),value:$,onChange:e=>a({recaptchaSiteKey:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Social Proof","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Social Proof","section-blocks"),checked:O,onChange:e=>a({showSocialProof:e})}),O&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Subscriber Count","section-blocks"),value:M,onChange:e=>a({subscriberCount:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Social Proof Text","section-blocks"),value:N,onChange:e=>a({socialProofText:e}),help:(0,o.__)("Use {count} as placeholder for subscriber count","section-blocks")})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Lead Magnet","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Lead Magnet","section-blocks"),checked:R,onChange:e=>a({showLeadMagnet:e})}),R&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Lead Magnet Title","section-blocks"),value:L,onChange:e=>a({leadMagnetTitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Lead Magnet Description","section-blocks"),value:E,onChange:e=>a({leadMagnetDescription:e})}),(0,t.jsx)(l.MediaUploadCheck,{children:(0,t.jsx)(l.MediaUpload,{onSelect:e=>a({leadMagnetImage:e}),allowedTypes:["image"],value:U?.id,render:({open:e})=>(0,t.jsx)(n.Button,{onClick:e,variant:"secondary",children:U?(0,o.__)("Change Lead Magnet Image","section-blocks"):(0,o.__)("Select Lead Magnet Image","section-blocks")})})})]})]}),(0,t.jsx)(n.PanelBody,{title:(0,o.__)("Spacing","section-blocks"),initialOpen:!1,children:(0,t.jsx)(n.__experimentalBoxControl,{label:(0,o.__)("Padding","section-blocks"),values:D,onChange:e=>a({padding:e})})})]}),(0,t.jsxs)("div",{...z,children:["image"===_&&k&&(0,t.jsx)("div",{style:J}),(0,t.jsx)("div",{style:{position:"relative",zIndex:1},children:(0,t.jsxs)("div",{className:"section-blocks-newsletter-content",children:[R&&(0,t.jsxs)("div",{className:"section-blocks-lead-magnet",children:[U&&(0,t.jsx)("img",{src:U.url,alt:L}),(0,t.jsx)("h4",{children:L}),(0,t.jsx)("p",{children:E})]}),(0,t.jsx)(l.RichText,{tagName:"h2",className:"section-blocks-newsletter-title",value:s,onChange:e=>a({title:e}),placeholder:(0,o.__)("Enter newsletter title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"section-blocks-newsletter-subtitle",value:i,onChange:e=>a({subtitle:e}),placeholder:(0,o.__)("Enter newsletter subtitle...","section-blocks")}),O&&(0,t.jsx)("div",{className:"section-blocks-social-proof",children:(0,t.jsx)("span",{children:N.replace("{count}",M)})}),(0,t.jsxs)("form",{className:"section-blocks-newsletter-form",children:[(0,t.jsxs)("div",{className:"section-blocks-form-fields",children:[d&&(0,t.jsx)("input",{type:"text",placeholder:b,className:"section-blocks-name-input",style:{borderColor:S,backgroundColor:P}}),(0,t.jsx)("input",{type:"email",placeholder:r,className:"section-blocks-email-input",style:{borderColor:S,backgroundColor:P}}),(0,t.jsx)("button",{type:"submit",className:"section-blocks-submit-button",style:{backgroundColor:y,color:T},children:c})]}),u&&(0,t.jsx)("div",{className:"section-blocks-privacy-consent",children:(0,t.jsxs)("label",{children:[(0,t.jsx)("input",{type:"checkbox"}),(0,t.jsx)("span",{children:p?(0,t.jsxs)(t.Fragment,{children:[g.split("privacy policy")[0],(0,t.jsx)("a",{href:p,target:"_blank",rel:"noopener noreferrer",children:"privacy policy"}),g.split("privacy policy")[1]]}):g})]})})]})]})})]})]})}})}},l={};function n(e){var t=l[e];if(void 0!==t)return t.exports;var a=l[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.m=o,e=[],n.O=(o,l,t,a)=>{if(!l){var s=1/0;for(b=0;b<e.length;b++){for(var[l,t,a]=e[b],i=!0,c=0;c<l.length;c++)(!1&a||s>=a)&&Object.keys(n.O).every((e=>n.O[e](l[c])))?l.splice(c--,1):(i=!1,a<s&&(s=a));if(i){e.splice(b--,1);var r=t();void 0!==r&&(o=r)}}return o}a=a||0;for(var b=e.length;b>0&&e[b-1][2]>a;b--)e[b]=e[b-1];e[b]=[l,t,a]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={ 666:0,750:0};n.O.j=o=>0===e[o];var o=(o,l)=>{var t,a,[s,i,c]=l,r=0;if(s.some((o=>0!==e[o]))){for(t in i)n.o(i,t)&&(n.m[t]=i[t]);if(c)var b=c(n)}for(o&&o(l);r<s.length;r++)a=s[r],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(b)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var t=n.O(void 0,[750],(()=>n(55)));t=n.O(t)})();1 (()=>{"use strict";var e,o={55:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,t=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/newsletter-signup"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{title:s,subtitle:i,buttonText:c,placeholderText:r,namePlaceholder:b,showNameField:d,requirePrivacyConsent:u,privacyText:g,privacyUrl:p,layoutStyle:h,backgroundType:_,backgroundColor:x,backgroundImage:k,backgroundImageId:C,overlayOpacity:m,overlayColor:v,textColor:j,buttonColor:y,buttonTextColor:T,inputBorderColor:S,inputBackgroundColor:P,textAlignment:w,integrationService:f,mailchimpListId:B,customApiEndpoint:I,showSocialProof:O,subscriberCount:M,socialProofText:N,showLeadMagnet:R,leadMagnetTitle:L,leadMagnetDescription:E,leadMagnetImage:U,enableHoneypot:A,enableRecaptcha:F,recaptchaSiteKey:$,padding:D,borderRadius:H,boxShadow:q,animationEffect:K}=e,z=(0,l.useBlockProps)({className:`section-blocks-newsletter-signup layout-${h} text-${w}`,style:{backgroundColor:"color"===_?x:"transparent",backgroundImage:"image"===_&&k?`url(${k.url})`:"none",backgroundSize:"cover",backgroundPosition:"center",color:j,padding:`${D?.top||"60px"} ${D?.right||"20px"} ${D?.bottom||"60px"} ${D?.left||"20px"}`,borderRadius:`${H}px`,boxShadow:q?"0 10px 30px rgba(0,0,0,0.1)":"none",position:"relative"}}),J="image"===_&&k?{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:v,opacity:m,borderRadius:`${H}px`}:{},G=[{label:(0,o.__)("Centered","section-blocks"),value:"centered"},{label:(0,o.__)("Split","section-blocks"),value:"split"},{label:(0,o.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,o.__)("Card","section-blocks"),value:"card"}],W=[{label:(0,o.__)("WordPress Database","section-blocks"),value:"wordpress"},{label:(0,o.__)("Mailchimp","section-blocks"),value:"mailchimp"},{label:(0,o.__)("Custom API","section-blocks"),value:"custom_api"}],X=[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,o.__)("Slide Up","section-blocks"),value:"slideUp"},{label:(0,o.__)("Scale","section-blocks"),value:"scale"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.InspectorControls,{children:[(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Content Settings","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Title","section-blocks"),value:s,onChange:e=>a({title:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Subtitle","section-blocks"),value:i,onChange:e=>a({subtitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Button Text","section-blocks"),value:c,onChange:e=>a({buttonText:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Email Placeholder","section-blocks"),value:r,onChange:e=>a({placeholderText:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Name Field","section-blocks"),checked:d,onChange:e=>a({showNameField:e})}),d&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("Name Placeholder","section-blocks"),value:b,onChange:e=>a({namePlaceholder:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Layout & Design","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:h,options:G,onChange:e=>a({layoutStyle:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Text Alignment","section-blocks"),value:w,options:[{label:(0,o.__)("Left","section-blocks"),value:"left"},{label:(0,o.__)("Center","section-blocks"),value:"center"},{label:(0,o.__)("Right","section-blocks"),value:"right"}],onChange:e=>a({textAlignment:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Animation Effect","section-blocks"),value:K,options:X,onChange:e=>a({animationEffect:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:H,onChange:e=>a({borderRadius:e}),min:0,max:50}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Box Shadow","section-blocks"),checked:q,onChange:e=>a({boxShadow:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Background","section-blocks"),initialOpen:!1,children:[(0,t.jsxs)(n.ButtonGroup,{children:[(0,t.jsx)(n.Button,{isPrimary:"color"===_,onClick:()=>a({backgroundType:"color"}),children:(0,o.__)("Color","section-blocks")}),(0,t.jsx)(n.Button,{isPrimary:"image"===_,onClick:()=>a({backgroundType:"image"}),children:(0,o.__)("Image","section-blocks")})]}),"color"===_&&(0,t.jsx)(l.ColorPalette,{value:x,onChange:e=>a({backgroundColor:e})}),"image"===_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.MediaUploadCheck,{children:(0,t.jsx)(l.MediaUpload,{onSelect:e=>a({backgroundImage:e,backgroundImageId:e.id}),allowedTypes:["image"],value:C,render:({open:e})=>(0,t.jsx)(n.Button,{onClick:e,variant:"secondary",children:k?(0,o.__)("Change Image","section-blocks"):(0,o.__)("Select Image","section-blocks")})})}),k&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:m,onChange:e=>a({overlayOpacity:e}),min:0,max:1,step:.1}),(0,t.jsx)(l.ColorPalette,{value:v,onChange:e=>a({overlayColor:e})})]})]})]}),(0,t.jsx)(l.PanelColorSettings,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,colorSettings:[{value:j,onChange:e=>a({textColor:e}),label:(0,o.__)("Text Color","section-blocks")},{value:y,onChange:e=>a({buttonColor:e}),label:(0,o.__)("Button Color","section-blocks")},{value:T,onChange:e=>a({buttonTextColor:e}),label:(0,o.__)("Button Text Color","section-blocks")},{value:S,onChange:e=>a({inputBorderColor:e}),label:(0,o.__)("Input Border Color","section-blocks")},{value:P,onChange:e=>a({inputBackgroundColor:e}),label:(0,o.__)("Input Background Color","section-blocks")}]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Integration Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Email Service","section-blocks"),value:f,options:W,onChange:e=>a({integrationService:e})}),"mailchimp"===f&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("Mailchimp List ID","section-blocks"),value:B,onChange:e=>a({mailchimpListId:e}),help:(0,o.__)("Enter your Mailchimp audience/list ID","section-blocks")}),"custom_api"===f&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("API Endpoint URL","section-blocks"),value:I,onChange:e=>a({customApiEndpoint:e}),help:(0,o.__)("Enter the URL for your custom API endpoint","section-blocks")})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Privacy & Security","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Require Privacy Consent","section-blocks"),checked:u,onChange:e=>a({requirePrivacyConsent:e})}),u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Privacy Text","section-blocks"),value:g,onChange:e=>a({privacyText:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Privacy Policy URL","section-blocks"),value:p,onChange:e=>a({privacyUrl:e})})]}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable Honeypot Protection","section-blocks"),checked:A,onChange:e=>a({enableHoneypot:e}),help:(0,o.__)("Helps prevent spam submissions","section-blocks")}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable reCAPTCHA","section-blocks"),checked:F,onChange:e=>a({enableRecaptcha:e})}),F&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("reCAPTCHA Site Key","section-blocks"),value:$,onChange:e=>a({recaptchaSiteKey:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Social Proof","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Social Proof","section-blocks"),checked:O,onChange:e=>a({showSocialProof:e})}),O&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Subscriber Count","section-blocks"),value:M,onChange:e=>a({subscriberCount:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Social Proof Text","section-blocks"),value:N,onChange:e=>a({socialProofText:e}),help:(0,o.__)("Use {count} as placeholder for subscriber count","section-blocks")})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Lead Magnet","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Lead Magnet","section-blocks"),checked:R,onChange:e=>a({showLeadMagnet:e})}),R&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Lead Magnet Title","section-blocks"),value:L,onChange:e=>a({leadMagnetTitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Lead Magnet Description","section-blocks"),value:E,onChange:e=>a({leadMagnetDescription:e})}),(0,t.jsx)(l.MediaUploadCheck,{children:(0,t.jsx)(l.MediaUpload,{onSelect:e=>a({leadMagnetImage:e}),allowedTypes:["image"],value:U?.id,render:({open:e})=>(0,t.jsx)(n.Button,{onClick:e,variant:"secondary",children:U?(0,o.__)("Change Lead Magnet Image","section-blocks"):(0,o.__)("Select Lead Magnet Image","section-blocks")})})})]})]}),(0,t.jsx)(n.PanelBody,{title:(0,o.__)("Spacing","section-blocks"),initialOpen:!1,children:(0,t.jsx)(n.__experimentalBoxControl,{label:(0,o.__)("Padding","section-blocks"),values:D,onChange:e=>a({padding:e})})})]}),(0,t.jsxs)("div",{...z,children:["image"===_&&k&&(0,t.jsx)("div",{style:J}),(0,t.jsx)("div",{style:{position:"relative",zIndex:1},children:(0,t.jsxs)("div",{className:"section-blocks-newsletter-content",children:[R&&(0,t.jsxs)("div",{className:"section-blocks-lead-magnet",children:[U&&(0,t.jsx)("img",{src:U.url,alt:L}),(0,t.jsx)("h4",{children:L}),(0,t.jsx)("p",{children:E})]}),(0,t.jsx)(l.RichText,{tagName:"h2",className:"section-blocks-newsletter-title",value:s,onChange:e=>a({title:e}),placeholder:(0,o.__)("Enter newsletter title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"section-blocks-newsletter-subtitle",value:i,onChange:e=>a({subtitle:e}),placeholder:(0,o.__)("Enter newsletter subtitle...","section-blocks")}),O&&(0,t.jsx)("div",{className:"section-blocks-social-proof",children:(0,t.jsx)("span",{children:N.replace("{count}",M)})}),(0,t.jsxs)("form",{className:"section-blocks-newsletter-form",children:[(0,t.jsxs)("div",{className:"section-blocks-form-fields",children:[d&&(0,t.jsx)("input",{type:"text",placeholder:b,className:"section-blocks-name-input",style:{borderColor:S,backgroundColor:P}}),(0,t.jsx)("input",{type:"email",placeholder:r,className:"section-blocks-email-input",style:{borderColor:S,backgroundColor:P}}),(0,t.jsx)("button",{type:"submit",className:"section-blocks-submit-button",style:{backgroundColor:y,color:T},children:c})]}),u&&(0,t.jsx)("div",{className:"section-blocks-privacy-consent",children:(0,t.jsxs)("label",{children:[(0,t.jsx)("input",{type:"checkbox"}),(0,t.jsx)("span",{children:p?(0,t.jsxs)(t.Fragment,{children:[g.split("privacy policy")[0],(0,t.jsx)("a",{href:p,target:"_blank",rel:"noopener noreferrer",children:"privacy policy"}),g.split("privacy policy")[1]]}):g})]})})]})]})})]})]})}})}},l={};function n(e){var t=l[e];if(void 0!==t)return t.exports;var a=l[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.m=o,e=[],n.O=(o,l,t,a)=>{if(!l){var s=1/0;for(b=0;b<e.length;b++){for(var[l,t,a]=e[b],i=!0,c=0;c<l.length;c++)(!1&a||s>=a)&&Object.keys(n.O).every((e=>n.O[e](l[c])))?l.splice(c--,1):(i=!1,a<s&&(s=a));if(i){e.splice(b--,1);var r=t();void 0!==r&&(o=r)}}return o}a=a||0;for(var b=e.length;b>0&&e[b-1][2]>a;b--)e[b]=e[b-1];e[b]=[l,t,a]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={3666:0,3750:0};n.O.j=o=>0===e[o];var o=(o,l)=>{var t,a,[s,i,c]=l,r=0;if(s.some((o=>0!==e[o]))){for(t in i)n.o(i,t)&&(n.m[t]=i[t]);if(c)var b=c(n)}for(o&&o(l);r<s.length;r++)a=s[r],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(b)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var t=n.O(void 0,[3750],(()=>n(55)));t=n.O(t)})(); -
section-blocks/tags/1.3.0/build/pricing-tables/index.asset.php
r3318999 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' 3c5a712350d4e5174d93');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '5c368edb66112145099a'); -
section-blocks/tags/1.3.0/build/pricing-tables/index.js
r3302097 r3750877 1 (()=>{"use strict";var e,l={3:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,n=window.wp.components,s=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/pricing-tables"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{plans:c,showBillingToggle:t,billingPeriod:i,yearlyDiscount:r,columns:d,colorScheme:b,primaryColor:u,backgroundColor:h,textColor:m,borderColor:_,hoverEffect:p,animationEffect:x,showFeatureIcons:g,buttonStyle:k,spacing:v}=e,y=(0,o.useBlockProps)({className:`pricing-tables-block columns-${d} scheme-${b} hover-${p} spacing-${v}`,style:{"--primary-color":u,"--background-color":h,"--text-color":m,"--border-color":_}}),j=[{label:(0,l.__)("Default","section-blocks"),value:"default"},{label:(0,l.__)("Blue","section-blocks"),value:"blue"},{label:(0,l.__)("Green","section-blocks"),value:"green"},{label:(0,l.__)("Purple","section-blocks"),value:"purple"},{label:(0,l.__)("Orange","section-blocks"),value:"orange"},{label:(0,l.__)("Dark","section-blocks"),value:"dark"}],C=[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Lift","section-blocks"),value:"lift"},{label:(0,l.__)("Scale","section-blocks"),value:"scale"},{label:(0,l.__)("Glow","section-blocks"),value:"glow"},{label:(0,l.__)("Tilt","section-blocks"),value:"tilt"}],f=[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Fade In Up","section-blocks"),value:"fadeInUp"},{label:(0,l.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,l.__)("Slide In Left","section-blocks"),value:"slideInLeft"},{label:(0,l.__)("Slide In Right","section-blocks"),value:"slideInRight"},{label:(0,l.__)("Zoom In","section-blocks"),value:"zoomIn"}],N=[{label:(0,l.__)("Solid","section-blocks"),value:"solid"},{label:(0,l.__)("Outline","section-blocks"),value:"outline"},{label:(0,l.__)("Ghost","section-blocks"),value:"ghost"},{label:(0,l.__)("Gradient","section-blocks"),value:"gradient"}],P=[{label:(0,l.__)("Compact","section-blocks"),value:"compact"},{label:(0,l.__)("Normal","section-blocks"),value:"normal"},{label:(0,l.__)("Relaxed","section-blocks"),value:"relaxed"},{label:(0,l.__)("Spacious","section-blocks"),value:"spacious"}],B=[{label:"$",value:"$"},{label:"€",value:"€"},{label:"£",value:"£"},{label:"¥",value:"¥"},{label:"₹",value:"₹"},{label:"Custom",value:"custom"}],S=(e,l,o)=>{const n=[...c];n[e]={...n[e],[l]:o},a({plans:n})},w=e=>"yearly"===i?e.yearlyPrice||((e,l)=>{const o=12*e;return Math.round(o-o*l/100)})(e.price,r):e.price;return(0,s.jsxs)("div",{...y,children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Pricing Settings","section-blocks"),children:[(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Show Billing Toggle","section-blocks"),checked:t,onChange:e=>a({showBillingToggle:e})}),t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.ButtonGroup,{children:[(0,s.jsx)(n.Button,{isPrimary:"monthly"===i,onClick:()=>a({billingPeriod:"monthly"}),children:(0,l.__)("Monthly","section-blocks")}),(0,s.jsx)(n.Button,{isPrimary:"yearly"===i,onClick:()=>a({billingPeriod:"yearly"}),children:(0,l.__)("Yearly","section-blocks")})]}),(0,s.jsx)(n.__experimentalNumberControl,{label:(0,l.__)("Yearly Discount (%)","section-blocks"),value:r,onChange:e=>a({yearlyDiscount:parseInt(e)||0}),min:0,max:50})]}),(0,s.jsx)(n.RangeControl,{label:(0,l.__)("Number of Columns","section-blocks"),value:d,onChange:e=>a({columns:e}),min:2,max:4})]}),(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Design Settings","section-blocks"),children:[(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Color Scheme","section-blocks"),value:b,options:j,onChange:e=>a({colorScheme:e})}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Primary Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:u,onChange:e=>a({primaryColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Background Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:h,onChange:e=>a({backgroundColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Text Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:m,onChange:e=>a({textColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Border Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:_,onChange:e=>a({borderColor:e})})]})]}),(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Effects & Animation","section-blocks"),children:[(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:p,options:C,onChange:e=>a({hoverEffect:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:x,options:f,onChange:e=>a({animationEffect:e})}),(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Show Feature Icons","section-blocks"),checked:g,onChange:e=>a({showFeatureIcons:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Button Style","section-blocks"),value:k,options:N,onChange:e=>a({buttonStyle:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:v,options:P,onChange:e=>a({spacing:e})})]}),(0,s.jsx)(n.PanelBody,{title:(0,l.__)("Plan Management","section-blocks"),initialOpen:!1,children:c.map(((e,o)=>(0,s.jsxs)(n.Card,{style:{marginBottom:"16px"},children:[(0,s.jsx)(n.CardHeader,{children:(0,s.jsxs)(n.Flex,{children:[(0,s.jsx)(n.FlexBlock,{children:(0,s.jsx)("strong",{children:e.name||`Plan ${o+1}`})}),(0,s.jsx)(n.FlexItem,{children:(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Recommended","section-blocks"),checked:e.isRecommended,onChange:e=>S(o,"isRecommended",e)})})]})}),(0,s.jsxs)(n.CardBody,{children:[(0,s.jsx)(n.TextControl,{label:(0,l.__)("Monthly Price","section-blocks"),value:e.price,onChange:e=>S(o,"price",e),type:"number"}),(0,s.jsx)(n.TextControl,{label:(0,l.__)("Yearly Price","section-blocks"),value:e.yearlyPrice,onChange:e=>S(o,"yearlyPrice",e),type:"number"}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Currency","section-blocks"),value:e.currency,options:B,onChange:e=>S(o,"currency",e)}),e.isRecommended&&(0,s.jsx)(n.TextControl,{label:(0,l.__)("Badge Text","section-blocks"),value:e.badge||"",onChange:e=>S(o,"badge",e),placeholder:(0,l.__)("Most Popular","section-blocks")}),(0,s.jsx)(n.TextControl,{label:(0,l.__)("Button URL","section-blocks"),value:e.buttonUrl,onChange:e=>S(o,"buttonUrl",e),type:"url"})]})]},o)))})]}),(0,s.jsxs)("div",{className:"pricing-tables-container",children:[t&&(0,s.jsxs)("div",{className:"billing-toggle",children:[(0,s.jsx)("span",{className:"monthly"===i?"active":"",children:(0,l.__)("Monthly","section-blocks")}),(0,s.jsx)("button",{className:"toggle-switch",onClick:()=>a({billingPeriod:"monthly"===i?"yearly":"monthly"}),children:(0,s.jsx)("span",{className:"toggle-slider"})}),(0,s.jsxs)("span",{className:"yearly"===i?"active":"",children:[(0,l.__)("Yearly","section-blocks"),r>0&&(0,s.jsxs)("span",{className:"discount-badge",children:[(0,l.__)("Save","section-blocks")," ",r,"%"]})]})]}),(0,s.jsxs)("div",{className:`pricing-plans columns-${d}`,children:[c.slice(0,d).map(((e,t)=>(0,s.jsxs)("div",{className:`pricing-plan ${e.isRecommended?"recommended":""} ${k}-button`,children:[e.isRecommended&&e.badge&&(0,s.jsx)("div",{className:"plan-badge",children:e.badge}),(0,s.jsxs)("div",{className:"plan-header",children:[(0,s.jsx)(o.RichText,{tagName:"h3",className:"plan-name",value:e.name,onChange:e=>S(t,"name",e),placeholder:(0,l.__)("Plan Name","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"plan-description",value:e.description,onChange:e=>S(t,"description",e),placeholder:(0,l.__)("Plan description","section-blocks")})]}),(0,s.jsxs)("div",{className:"plan-pricing",children:[(0,s.jsx)("span",{className:"currency",children:e.currency}),(0,s.jsx)("span",{className:"price",children:w(e)}),(0,s.jsxs)("span",{className:"period",children:["/ ","yearly"===i?"year":"month"]})]}),(0,s.jsxs)("div",{className:"plan-features",children:[e.features.map(((e,i)=>(0,s.jsxs)("div",{className:"feature-item",children:[g&&(0,s.jsx)(n.Dashicon,{icon:e.included?e.icon:"no-alt",className:"feature-icon "+(e.included?"included":"not-included")}),(0,s.jsx)(o.RichText,{tagName:"span",className:"feature-text",value:e.text,onChange:e=>((e,l,o,n)=>{const s=[...c];s[e].features[l]={...s[e].features[l],[o]:n},a({plans:s})})(t,i,"text",e),placeholder:(0,l.__)("Feature text","section-blocks")}),(0,s.jsx)(n.Button,{icon:"no-alt",className:"remove-feature",onClick:()=>((e,l)=>{const o=[...c];o[e].features=o[e].features.filter(((e,o)=>o!==l)),a({plans:o})})(t,i),isSmall:!0})]},i))),(0,s.jsx)(n.Button,{icon:"plus",className:"add-feature",onClick:()=>(e=>{const l=[...c];l[e].features.push({text:"New Feature",included:!0,icon:"yes"}),a({plans:l})})(t),isSmall:!0,children:(0,l.__)("Add Feature","section-blocks")})]}),(0,s.jsx)("div",{className:"plan-button",children:(0,s.jsx)(o.RichText,{tagName:"span",className:`cta-button ${k}`,value:e.buttonText,onChange:e=>S(t,"buttonText",e),placeholder:(0,l.__)("Button Text","section-blocks")})}),(0,s.jsx)(n.Button,{icon:"no-alt",className:"remove-plan",onClick:()=>(e=>{const l=c.filter(((l,o)=>o!==e));a({plans:l})})(t),isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove Plan","section-blocks")})]},t))),c.length<4&&(0,s.jsx)("div",{className:"add-plan-container",children:(0,s.jsx)(n.Button,{icon:"plus",className:"add-plan",onClick:()=>{const e={name:`Plan ${c.length+1}`,price:"19",yearlyPrice:"190",currency:"$",period:"month",description:"Perfect for your needs",features:[{text:"Feature 1",included:!0,icon:"yes"},{text:"Feature 2",included:!0,icon:"yes"},{text:"Feature 3",included:!1,icon:"no-alt"}],buttonText:"Get Started",buttonUrl:"#",isRecommended:!1};a({plans:[...c,e]})},isPrimary:!0,children:(0,l.__)("Add Plan","section-blocks")})})]})]})]})}})}},o={};function n(e){var s=o[e];if(void 0!==s)return s.exports;var a=o[e]={exports:{}};return l[e](a,a.exports,n),a.exports}n.m=l,e=[],n.O=(l,o,s,a)=>{if(!o){var c=1/0;for(d=0;d<e.length;d++){for(var[o,s,a]=e[d],t=!0,i=0;i<o.length;i++)(!1&a||c>=a)&&Object.keys(n.O).every((e=>n.O[e](o[i])))?o.splice(i--,1):(t=!1,a<c&&(c=a));if(t){e.splice(d--,1);var r=s();void 0!==r&&(l=r)}}return l}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[o,s,a]},n.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={ 174:0,18:0};n.O.j=l=>0===e[l];var l=(l,o)=>{var s,a,[c,t,i]=o,r=0;if(c.some((l=>0!==e[l]))){for(s in t)n.o(t,s)&&(n.m[s]=t[s]);if(i)var d=i(n)}for(l&&l(o);r<c.length;r++)a=c[r],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=n.O(void 0,[18],(()=>n(3)));s=n.O(s)})();1 (()=>{"use strict";var e,l={3:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,n=window.wp.components,s=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/pricing-tables"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{plans:c,showBillingToggle:t,billingPeriod:i,yearlyDiscount:r,columns:d,colorScheme:b,primaryColor:u,backgroundColor:h,textColor:m,borderColor:_,hoverEffect:p,animationEffect:x,showFeatureIcons:g,buttonStyle:k,spacing:v}=e,y=(0,o.useBlockProps)({className:`pricing-tables-block columns-${d} scheme-${b} hover-${p} spacing-${v}`,style:{"--primary-color":u,"--background-color":h,"--text-color":m,"--border-color":_}}),j=[{label:(0,l.__)("Default","section-blocks"),value:"default"},{label:(0,l.__)("Blue","section-blocks"),value:"blue"},{label:(0,l.__)("Green","section-blocks"),value:"green"},{label:(0,l.__)("Purple","section-blocks"),value:"purple"},{label:(0,l.__)("Orange","section-blocks"),value:"orange"},{label:(0,l.__)("Dark","section-blocks"),value:"dark"}],C=[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Lift","section-blocks"),value:"lift"},{label:(0,l.__)("Scale","section-blocks"),value:"scale"},{label:(0,l.__)("Glow","section-blocks"),value:"glow"},{label:(0,l.__)("Tilt","section-blocks"),value:"tilt"}],f=[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Fade In Up","section-blocks"),value:"fadeInUp"},{label:(0,l.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,l.__)("Slide In Left","section-blocks"),value:"slideInLeft"},{label:(0,l.__)("Slide In Right","section-blocks"),value:"slideInRight"},{label:(0,l.__)("Zoom In","section-blocks"),value:"zoomIn"}],N=[{label:(0,l.__)("Solid","section-blocks"),value:"solid"},{label:(0,l.__)("Outline","section-blocks"),value:"outline"},{label:(0,l.__)("Ghost","section-blocks"),value:"ghost"},{label:(0,l.__)("Gradient","section-blocks"),value:"gradient"}],P=[{label:(0,l.__)("Compact","section-blocks"),value:"compact"},{label:(0,l.__)("Normal","section-blocks"),value:"normal"},{label:(0,l.__)("Relaxed","section-blocks"),value:"relaxed"},{label:(0,l.__)("Spacious","section-blocks"),value:"spacious"}],B=[{label:"$",value:"$"},{label:"€",value:"€"},{label:"£",value:"£"},{label:"¥",value:"¥"},{label:"₹",value:"₹"},{label:"Custom",value:"custom"}],S=(e,l,o)=>{const n=[...c];n[e]={...n[e],[l]:o},a({plans:n})},w=e=>"yearly"===i?e.yearlyPrice||((e,l)=>{const o=12*e;return Math.round(o-o*l/100)})(e.price,r):e.price;return(0,s.jsxs)("div",{...y,children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Pricing Settings","section-blocks"),children:[(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Show Billing Toggle","section-blocks"),checked:t,onChange:e=>a({showBillingToggle:e})}),t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.ButtonGroup,{children:[(0,s.jsx)(n.Button,{isPrimary:"monthly"===i,onClick:()=>a({billingPeriod:"monthly"}),children:(0,l.__)("Monthly","section-blocks")}),(0,s.jsx)(n.Button,{isPrimary:"yearly"===i,onClick:()=>a({billingPeriod:"yearly"}),children:(0,l.__)("Yearly","section-blocks")})]}),(0,s.jsx)(n.__experimentalNumberControl,{label:(0,l.__)("Yearly Discount (%)","section-blocks"),value:r,onChange:e=>a({yearlyDiscount:parseInt(e)||0}),min:0,max:50})]}),(0,s.jsx)(n.RangeControl,{label:(0,l.__)("Number of Columns","section-blocks"),value:d,onChange:e=>a({columns:e}),min:2,max:4})]}),(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Design Settings","section-blocks"),children:[(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Color Scheme","section-blocks"),value:b,options:j,onChange:e=>a({colorScheme:e})}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Primary Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:u,onChange:e=>a({primaryColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Background Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:h,onChange:e=>a({backgroundColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Text Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:m,onChange:e=>a({textColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Border Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:_,onChange:e=>a({borderColor:e})})]})]}),(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Effects & Animation","section-blocks"),children:[(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:p,options:C,onChange:e=>a({hoverEffect:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:x,options:f,onChange:e=>a({animationEffect:e})}),(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Show Feature Icons","section-blocks"),checked:g,onChange:e=>a({showFeatureIcons:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Button Style","section-blocks"),value:k,options:N,onChange:e=>a({buttonStyle:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:v,options:P,onChange:e=>a({spacing:e})})]}),(0,s.jsx)(n.PanelBody,{title:(0,l.__)("Plan Management","section-blocks"),initialOpen:!1,children:c.map(((e,o)=>(0,s.jsxs)(n.Card,{style:{marginBottom:"16px"},children:[(0,s.jsx)(n.CardHeader,{children:(0,s.jsxs)(n.Flex,{children:[(0,s.jsx)(n.FlexBlock,{children:(0,s.jsx)("strong",{children:e.name||`Plan ${o+1}`})}),(0,s.jsx)(n.FlexItem,{children:(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Recommended","section-blocks"),checked:e.isRecommended,onChange:e=>S(o,"isRecommended",e)})})]})}),(0,s.jsxs)(n.CardBody,{children:[(0,s.jsx)(n.TextControl,{label:(0,l.__)("Monthly Price","section-blocks"),value:e.price,onChange:e=>S(o,"price",e),type:"number"}),(0,s.jsx)(n.TextControl,{label:(0,l.__)("Yearly Price","section-blocks"),value:e.yearlyPrice,onChange:e=>S(o,"yearlyPrice",e),type:"number"}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Currency","section-blocks"),value:e.currency,options:B,onChange:e=>S(o,"currency",e)}),e.isRecommended&&(0,s.jsx)(n.TextControl,{label:(0,l.__)("Badge Text","section-blocks"),value:e.badge||"",onChange:e=>S(o,"badge",e),placeholder:(0,l.__)("Most Popular","section-blocks")}),(0,s.jsx)(n.TextControl,{label:(0,l.__)("Button URL","section-blocks"),value:e.buttonUrl,onChange:e=>S(o,"buttonUrl",e),type:"url"})]})]},o)))})]}),(0,s.jsxs)("div",{className:"pricing-tables-container",children:[t&&(0,s.jsxs)("div",{className:"billing-toggle",children:[(0,s.jsx)("span",{className:"monthly"===i?"active":"",children:(0,l.__)("Monthly","section-blocks")}),(0,s.jsx)("button",{className:"toggle-switch",onClick:()=>a({billingPeriod:"monthly"===i?"yearly":"monthly"}),children:(0,s.jsx)("span",{className:"toggle-slider"})}),(0,s.jsxs)("span",{className:"yearly"===i?"active":"",children:[(0,l.__)("Yearly","section-blocks"),r>0&&(0,s.jsxs)("span",{className:"discount-badge",children:[(0,l.__)("Save","section-blocks")," ",r,"%"]})]})]}),(0,s.jsxs)("div",{className:`pricing-plans columns-${d}`,children:[c.slice(0,d).map(((e,t)=>(0,s.jsxs)("div",{className:`pricing-plan ${e.isRecommended?"recommended":""} ${k}-button`,children:[e.isRecommended&&e.badge&&(0,s.jsx)("div",{className:"plan-badge",children:e.badge}),(0,s.jsxs)("div",{className:"plan-header",children:[(0,s.jsx)(o.RichText,{tagName:"h3",className:"plan-name",value:e.name,onChange:e=>S(t,"name",e),placeholder:(0,l.__)("Plan Name","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"plan-description",value:e.description,onChange:e=>S(t,"description",e),placeholder:(0,l.__)("Plan description","section-blocks")})]}),(0,s.jsxs)("div",{className:"plan-pricing",children:[(0,s.jsx)("span",{className:"currency",children:e.currency}),(0,s.jsx)("span",{className:"price",children:w(e)}),(0,s.jsxs)("span",{className:"period",children:["/ ","yearly"===i?"year":"month"]})]}),(0,s.jsxs)("div",{className:"plan-features",children:[e.features.map(((e,i)=>(0,s.jsxs)("div",{className:"feature-item",children:[g&&(0,s.jsx)(n.Dashicon,{icon:e.included?e.icon:"no-alt",className:"feature-icon "+(e.included?"included":"not-included")}),(0,s.jsx)(o.RichText,{tagName:"span",className:"feature-text",value:e.text,onChange:e=>((e,l,o,n)=>{const s=[...c];s[e].features[l]={...s[e].features[l],[o]:n},a({plans:s})})(t,i,"text",e),placeholder:(0,l.__)("Feature text","section-blocks")}),(0,s.jsx)(n.Button,{icon:"no-alt",className:"remove-feature",onClick:()=>((e,l)=>{const o=[...c];o[e].features=o[e].features.filter(((e,o)=>o!==l)),a({plans:o})})(t,i),isSmall:!0})]},i))),(0,s.jsx)(n.Button,{icon:"plus",className:"add-feature",onClick:()=>(e=>{const l=[...c];l[e].features.push({text:"New Feature",included:!0,icon:"yes"}),a({plans:l})})(t),isSmall:!0,children:(0,l.__)("Add Feature","section-blocks")})]}),(0,s.jsx)("div",{className:"plan-button",children:(0,s.jsx)(o.RichText,{tagName:"span",className:`cta-button ${k}`,value:e.buttonText,onChange:e=>S(t,"buttonText",e),placeholder:(0,l.__)("Button Text","section-blocks")})}),(0,s.jsx)(n.Button,{icon:"no-alt",className:"remove-plan",onClick:()=>(e=>{const l=c.filter(((l,o)=>o!==e));a({plans:l})})(t),isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove Plan","section-blocks")})]},t))),c.length<4&&(0,s.jsx)("div",{className:"add-plan-container",children:(0,s.jsx)(n.Button,{icon:"plus",className:"add-plan",onClick:()=>{const e={name:`Plan ${c.length+1}`,price:"19",yearlyPrice:"190",currency:"$",period:"month",description:"Perfect for your needs",features:[{text:"Feature 1",included:!0,icon:"yes"},{text:"Feature 2",included:!0,icon:"yes"},{text:"Feature 3",included:!1,icon:"no-alt"}],buttonText:"Get Started",buttonUrl:"#",isRecommended:!1};a({plans:[...c,e]})},isPrimary:!0,children:(0,l.__)("Add Plan","section-blocks")})})]})]})]})}})}},o={};function n(e){var s=o[e];if(void 0!==s)return s.exports;var a=o[e]={exports:{}};return l[e](a,a.exports,n),a.exports}n.m=l,e=[],n.O=(l,o,s,a)=>{if(!o){var c=1/0;for(d=0;d<e.length;d++){for(var[o,s,a]=e[d],t=!0,i=0;i<o.length;i++)(!1&a||c>=a)&&Object.keys(n.O).every((e=>n.O[e](o[i])))?o.splice(i--,1):(t=!1,a<c&&(c=a));if(t){e.splice(d--,1);var r=s();void 0!==r&&(l=r)}}return l}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[o,s,a]},n.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={7174:0,9018:0};n.O.j=l=>0===e[l];var l=(l,o)=>{var s,a,[c,t,i]=o,r=0;if(c.some((l=>0!==e[l]))){for(s in t)n.o(t,s)&&(n.m[s]=t[s]);if(i)var d=i(n)}for(l&&l(o);r<c.length;r++)a=c[r],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=n.O(void 0,[9018],(()=>n(3)));s=n.O(s)})(); -
section-blocks/tags/1.3.0/build/services-section/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' 40569d2715fe40686a4a');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'eedb4218f04cb2915bc3'); -
section-blocks/tags/1.3.0/build/services-section/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,l={673:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,a=window.wp.components,s=window.ReactJSXRuntime,n=[{label:"Tools",value:"admin-tools"},{label:"Settings",value:"admin-settings"},{label:"Customizer",value:"admin-customizer"},{label:"Chart Line",value:"chart-line"},{label:"Chart Bar",value:"chart-bar"},{label:"Star Filled",value:"star-filled"},{label:"Heart",value:"heart"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Lightbulb",value:"lightbulb"},{label:"Users",value:"admin-users"},{label:"Checkmark",value:"yes-alt"},{label:"Awards",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email-alt"},{label:"Cart",value:"cart"},{label:"Money",value:"money-alt"},{label:"Groups",value:"groups"}],i=JSON.parse('{"UU":"create-block/services-section"}');(0,e.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:i}){const{services:c,columns:t,gap:r,equalHeight:d,animationEffect:u,hoverEffect:v,backgroundColor:b,textColor:h,cardBackgroundColor:g,cardHoverBackgroundColor:m,iconColor:C,iconSize:x,borderRadius:p,cardShadow:k,spacing:_,ctaButtonStyle:j,ctaButtonColor:f,ctaButtonTextColor:S}=e,B=(0,o.useBlockProps)({className:`services-section-block columns-${t} gap-${r} hover-${v} shadow-${k} spacing-${_} animation-${u}${d?" equal-height":""}`,style:{backgroundColor:b,color:h,padding:"compact"===_?"2rem":"loose"===_?"4rem":"3rem"}}),w=(e,l,o)=>{const a=[...c];a[e]={...a[e],[l]:o},i({services:a})},y=(e,l)=>{const o=[...c],a="up"===l?e-1:e+1;a>=0&&a<c.length&&([o[e],o[a]]=[o[a],o[e]],i({services:o}))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:t,onChange:e=>i({columns:e}),min:2,max:4,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Gap Between Cards","section-blocks"),value:r,options:[{label:"Small",value:"small"},{label:"Normal",value:"normal"},{label:"Large",value:"large"}],onChange:e=>i({gap:e})}),(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Equal Height Cards","section-blocks"),checked:d,onChange:e=>i({equalHeight:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:_,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>i({spacing:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Animation & Effects","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:u,options:[{label:"None",value:"none"},{label:"Fade In",value:"fade"},{label:"Slide Up",value:"slide"},{label:"Zoom In",value:"zoom"}],onChange:e=>i({animationEffect:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:v,options:[{label:"Lift",value:"lift"},{label:"Scale",value:"scale"},{label:"Glow",value:"glow"},{label:"Background Overlay",value:"overlay"}],onChange:e=>i({hoverEffect:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Card Design","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Border Radius","section-blocks"),value:p,onChange:e=>i({borderRadius:e}),min:0,max:50,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Card Shadow","section-blocks"),value:k,options:[{label:"None",value:"none"},{label:"Light",value:"light"},{label:"Medium",value:"medium"},{label:"Heavy",value:"heavy"}],onChange:e=>i({cardShadow:e})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Card Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:g,onChange:e=>i({cardBackgroundColor:e||"#ffffff"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Card Hover Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:m,onChange:e=>i({cardHoverBackgroundColor:e||"#f8f9fa"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Icon Settings","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Icon Size","section-blocks"),value:x,onChange:e=>i({iconSize:e}),min:24,max:96,step:4}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Icon Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:C,onChange:e=>i({iconColor:e||"#007cba"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)("p",{children:(0,l.__)("Section Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:b,onChange:e=>i({backgroundColor:e||"#ffffff"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Text Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:h,onChange:e=>i({textColor:e||"#333333"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("CTA Button Style","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Button Style","section-blocks"),value:j,options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Outline",value:"outline"},{label:"Text",value:"text"}],onChange:e=>i({ctaButtonStyle:e})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Button Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:f,onChange:e=>i({ctaButtonColor:e||"#007cba"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Button Text Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:S,onChange:e=>i({ctaButtonTextColor:e||"#ffffff"})})]})]}),(0,s.jsx)("div",{...B,children:(0,s.jsxs)("div",{className:"services-container",children:[(0,s.jsx)("div",{className:"services-grid",children:c.map(((e,t)=>(0,s.jsxs)("div",{className:"service-card",style:{backgroundColor:g,borderRadius:`${p}px`,"--hover-bg-color":m},children:[(0,s.jsx)("div",{className:"service-controls",children:(0,s.jsxs)("div",{className:"service-control-buttons",children:[(0,s.jsx)(a.Button,{onClick:()=>y(t,"up"),disabled:0===t,isSmall:!0,label:(0,l.__)("Move Up","section-blocks"),children:"↑"}),(0,s.jsx)(a.Button,{onClick:()=>y(t,"down"),disabled:t===c.length-1,isSmall:!0,label:(0,l.__)("Move Down","section-blocks"),children:"↓"}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=[...c],o={...c[e]};l.splice(e+1,0,o),i({services:l})})(t),isSmall:!0,label:(0,l.__)("Clone Service","section-blocks"),children:"📋"}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=c.filter(((l,o)=>o!==e));i({services:l})})(t),isDestructive:!0,isSmall:!0,label:(0,l.__)("Remove Service","section-blocks"),children:"🗑️"})]})}),(0,s.jsxs)("div",{className:"service-icon-image",children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Use Icon","section-blocks"),checked:e.useIcon,onChange:e=>w(t,"useIcon",e)}),e.useIcon?(0,s.jsxs)("div",{className:"service-icon-container",children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Icon","section-blocks"),value:e.icon,options:n,onChange:e=>w(t,"icon",e)}),(0,s.jsx)("div",{className:"service-icon",style:{color:C,fontSize:`${x}px`},children:(0,s.jsx)(a.Dashicon,{icon:e.icon,size:x})})]}):(0,s.jsxs)("div",{className:"service-image-container",children:[(0,s.jsx)(o.MediaUploadCheck,{children:(0,s.jsx)(o.MediaUpload,{onSelect:e=>{const l=c.map(((l,o)=>o===t?{...l,image:{url:e.url,alt:e.alt||"",id:e.id},imageId:e.id}:l));i({services:l})},allowedTypes:["image"],value:e.imageId,render:({open:o})=>(0,s.jsx)(a.Button,{onClick:o,className:e.image?"has-image":"no-image",children:e.image?(0,s.jsx)("img",{src:e.image.url,alt:e.image.alt||"",style:{maxWidth:"100px",height:"auto"}}):(0,l.__)("Select Image","section-blocks")})})}),e.image&&(0,s.jsx)(a.Button,{onClick:()=>{const e=c.map(((e,l)=>l===t?{...e,image:null,imageId:0}:e));i({services:e})},isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove Image","section-blocks")})]})]}),(0,s.jsx)(o.RichText,{tagName:"h3",className:"service-title",value:e.title,onChange:e=>w(t,"title",e),placeholder:(0,l.__)("Service title...","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"service-description",value:e.description,onChange:e=>w(t,"description",e),placeholder:(0,l.__)("Service description...","section-blocks")}),(0,s.jsxs)("div",{className:"service-cta-controls",children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Show CTA Button","section-blocks"),checked:e.showCTA,onChange:e=>w(t,"showCTA",e)}),e.showCTA&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Button Text","section-blocks"),value:e.ctaText,onChange:e=>w(t,"ctaText",e)}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Button URL","section-blocks"),value:e.ctaUrl,onChange:e=>w(t,"ctaUrl",e)}),(0,s.jsx)("div",{className:"service-cta-button",style:{backgroundColor:f,color:S,borderRadius:p/2+"px"},children:e.ctaText})]})]})]},t)))}),(0,s.jsx)("div",{className:"services-actions",children:(0,s.jsx)(a.Button,{onClick:()=>{const e=[...c,{useIcon:!0,icon:"admin-tools",image:null,imageId:0,title:"New Service",description:"Describe your amazing service here.",showCTA:!1,ctaText:"Learn More",ctaUrl:"#"}];i({services:e})},isPrimary:!0,children:(0,l.__)("Add Service","section-blocks")})})]})})]})}})}},o={};function a(e){var s=o[e];if(void 0!==s)return s.exports;var n=o[e]={exports:{}};return l[e](n,n.exports,a),n.exports}a.m=l,e=[],a.O=(l,o,s,n)=>{if(!o){var i=1/0;for(d=0;d<e.length;d++){for(var[o,s,n]=e[d],c=!0,t=0;t<o.length;t++)(!1&n||i>=n)&&Object.keys(a.O).every((e=>a.O[e](o[t])))?o.splice(t--,1):(c=!1,n<i&&(i=n));if(c){e.splice(d--,1);var r=s();void 0!==r&&(l=r)}}return l}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[o,s,n]},a.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={ 540:0,820:0};a.O.j=l=>0===e[l];var l=(l,o)=>{var s,n,[i,c,t]=o,r=0;if(i.some((l=>0!==e[l]))){for(s in c)a.o(c,s)&&(a.m[s]=c[s]);if(t)var d=t(a)}for(l&&l(o);r<i.length;r++)n=i[r],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=a.O(void 0,[820],(()=>a(673)));s=a.O(s)})();1 (()=>{"use strict";var e,l={673:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,a=window.wp.components,s=window.ReactJSXRuntime,n=[{label:"Tools",value:"admin-tools"},{label:"Settings",value:"admin-settings"},{label:"Customizer",value:"admin-customizer"},{label:"Chart Line",value:"chart-line"},{label:"Chart Bar",value:"chart-bar"},{label:"Star Filled",value:"star-filled"},{label:"Heart",value:"heart"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Lightbulb",value:"lightbulb"},{label:"Users",value:"admin-users"},{label:"Checkmark",value:"yes-alt"},{label:"Awards",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email-alt"},{label:"Cart",value:"cart"},{label:"Money",value:"money-alt"},{label:"Groups",value:"groups"}],i=JSON.parse('{"UU":"create-block/services-section"}');(0,e.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:i}){const{services:c,columns:t,gap:r,equalHeight:d,animationEffect:u,hoverEffect:v,backgroundColor:b,textColor:h,cardBackgroundColor:g,cardHoverBackgroundColor:m,iconColor:C,iconSize:x,borderRadius:p,cardShadow:k,spacing:_,ctaButtonStyle:j,ctaButtonColor:f,ctaButtonTextColor:S}=e,B=(0,o.useBlockProps)({className:`services-section-block columns-${t} gap-${r} hover-${v} shadow-${k} spacing-${_} animation-${u}${d?" equal-height":""}`,style:{backgroundColor:b,color:h,padding:"compact"===_?"2rem":"loose"===_?"4rem":"3rem"}}),w=(e,l,o)=>{const a=[...c];a[e]={...a[e],[l]:o},i({services:a})},y=(e,l)=>{const o=[...c],a="up"===l?e-1:e+1;a>=0&&a<c.length&&([o[e],o[a]]=[o[a],o[e]],i({services:o}))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:t,onChange:e=>i({columns:e}),min:2,max:4,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Gap Between Cards","section-blocks"),value:r,options:[{label:"Small",value:"small"},{label:"Normal",value:"normal"},{label:"Large",value:"large"}],onChange:e=>i({gap:e})}),(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Equal Height Cards","section-blocks"),checked:d,onChange:e=>i({equalHeight:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:_,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>i({spacing:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Animation & Effects","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:u,options:[{label:"None",value:"none"},{label:"Fade In",value:"fade"},{label:"Slide Up",value:"slide"},{label:"Zoom In",value:"zoom"}],onChange:e=>i({animationEffect:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:v,options:[{label:"Lift",value:"lift"},{label:"Scale",value:"scale"},{label:"Glow",value:"glow"},{label:"Background Overlay",value:"overlay"}],onChange:e=>i({hoverEffect:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Card Design","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Border Radius","section-blocks"),value:p,onChange:e=>i({borderRadius:e}),min:0,max:50,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Card Shadow","section-blocks"),value:k,options:[{label:"None",value:"none"},{label:"Light",value:"light"},{label:"Medium",value:"medium"},{label:"Heavy",value:"heavy"}],onChange:e=>i({cardShadow:e})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Card Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:g,onChange:e=>i({cardBackgroundColor:e||"#ffffff"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Card Hover Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:m,onChange:e=>i({cardHoverBackgroundColor:e||"#f8f9fa"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Icon Settings","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Icon Size","section-blocks"),value:x,onChange:e=>i({iconSize:e}),min:24,max:96,step:4}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Icon Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:C,onChange:e=>i({iconColor:e||"#007cba"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)("p",{children:(0,l.__)("Section Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:b,onChange:e=>i({backgroundColor:e||"#ffffff"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Text Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:h,onChange:e=>i({textColor:e||"#333333"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("CTA Button Style","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Button Style","section-blocks"),value:j,options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Outline",value:"outline"},{label:"Text",value:"text"}],onChange:e=>i({ctaButtonStyle:e})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Button Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:f,onChange:e=>i({ctaButtonColor:e||"#007cba"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Button Text Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:S,onChange:e=>i({ctaButtonTextColor:e||"#ffffff"})})]})]}),(0,s.jsx)("div",{...B,children:(0,s.jsxs)("div",{className:"services-container",children:[(0,s.jsx)("div",{className:"services-grid",children:c.map(((e,t)=>(0,s.jsxs)("div",{className:"service-card",style:{backgroundColor:g,borderRadius:`${p}px`,"--hover-bg-color":m},children:[(0,s.jsx)("div",{className:"service-controls",children:(0,s.jsxs)("div",{className:"service-control-buttons",children:[(0,s.jsx)(a.Button,{onClick:()=>y(t,"up"),disabled:0===t,isSmall:!0,label:(0,l.__)("Move Up","section-blocks"),children:"↑"}),(0,s.jsx)(a.Button,{onClick:()=>y(t,"down"),disabled:t===c.length-1,isSmall:!0,label:(0,l.__)("Move Down","section-blocks"),children:"↓"}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=[...c],o={...c[e]};l.splice(e+1,0,o),i({services:l})})(t),isSmall:!0,label:(0,l.__)("Clone Service","section-blocks"),children:"📋"}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=c.filter(((l,o)=>o!==e));i({services:l})})(t),isDestructive:!0,isSmall:!0,label:(0,l.__)("Remove Service","section-blocks"),children:"🗑️"})]})}),(0,s.jsxs)("div",{className:"service-icon-image",children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Use Icon","section-blocks"),checked:e.useIcon,onChange:e=>w(t,"useIcon",e)}),e.useIcon?(0,s.jsxs)("div",{className:"service-icon-container",children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Icon","section-blocks"),value:e.icon,options:n,onChange:e=>w(t,"icon",e)}),(0,s.jsx)("div",{className:"service-icon",style:{color:C,fontSize:`${x}px`},children:(0,s.jsx)(a.Dashicon,{icon:e.icon,size:x})})]}):(0,s.jsxs)("div",{className:"service-image-container",children:[(0,s.jsx)(o.MediaUploadCheck,{children:(0,s.jsx)(o.MediaUpload,{onSelect:e=>{const l=c.map(((l,o)=>o===t?{...l,image:{url:e.url,alt:e.alt||"",id:e.id},imageId:e.id}:l));i({services:l})},allowedTypes:["image"],value:e.imageId,render:({open:o})=>(0,s.jsx)(a.Button,{onClick:o,className:e.image?"has-image":"no-image",children:e.image?(0,s.jsx)("img",{src:e.image.url,alt:e.image.alt||"",style:{maxWidth:"100px",height:"auto"}}):(0,l.__)("Select Image","section-blocks")})})}),e.image&&(0,s.jsx)(a.Button,{onClick:()=>{const e=c.map(((e,l)=>l===t?{...e,image:null,imageId:0}:e));i({services:e})},isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove Image","section-blocks")})]})]}),(0,s.jsx)(o.RichText,{tagName:"h3",className:"service-title",value:e.title,onChange:e=>w(t,"title",e),placeholder:(0,l.__)("Service title...","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"service-description",value:e.description,onChange:e=>w(t,"description",e),placeholder:(0,l.__)("Service description...","section-blocks")}),(0,s.jsxs)("div",{className:"service-cta-controls",children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Show CTA Button","section-blocks"),checked:e.showCTA,onChange:e=>w(t,"showCTA",e)}),e.showCTA&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Button Text","section-blocks"),value:e.ctaText,onChange:e=>w(t,"ctaText",e)}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Button URL","section-blocks"),value:e.ctaUrl,onChange:e=>w(t,"ctaUrl",e)}),(0,s.jsx)("div",{className:"service-cta-button",style:{backgroundColor:f,color:S,borderRadius:p/2+"px"},children:e.ctaText})]})]})]},t)))}),(0,s.jsx)("div",{className:"services-actions",children:(0,s.jsx)(a.Button,{onClick:()=>{const e=[...c,{useIcon:!0,icon:"admin-tools",image:null,imageId:0,title:"New Service",description:"Describe your amazing service here.",showCTA:!1,ctaText:"Learn More",ctaUrl:"#"}];i({services:e})},isPrimary:!0,children:(0,l.__)("Add Service","section-blocks")})})]})})]})}})}},o={};function a(e){var s=o[e];if(void 0!==s)return s.exports;var n=o[e]={exports:{}};return l[e](n,n.exports,a),n.exports}a.m=l,e=[],a.O=(l,o,s,n)=>{if(!o){var i=1/0;for(d=0;d<e.length;d++){for(var[o,s,n]=e[d],c=!0,t=0;t<o.length;t++)(!1&n||i>=n)&&Object.keys(a.O).every((e=>a.O[e](o[t])))?o.splice(t--,1):(c=!1,n<i&&(i=n));if(c){e.splice(d--,1);var r=s();void 0!==r&&(l=r)}}return l}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[o,s,n]},a.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={1540:0,1820:0};a.O.j=l=>0===e[l];var l=(l,o)=>{var s,n,[i,c,t]=o,r=0;if(i.some((l=>0!==e[l]))){for(s in c)a.o(c,s)&&(a.m[s]=c[s]);if(t)var d=t(a)}for(l&&l(o);r<i.length;r++)n=i[r],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=a.O(void 0,[1820],(()=>a(673)));s=a.O(s)})(); -
section-blocks/tags/1.3.0/build/steps-timeline/index.asset.php
r3318999 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' f431ec7a909336a16976');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'b9d61f68c694c44d3875'); -
section-blocks/tags/1.3.0/build/steps-timeline/index.js
r3318999 r3750877 1 (()=>{"use strict";var e,o={ 844:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,t=window.ReactJSXRuntime,s=[{label:"User",value:"admin-users"},{label:"Settings",value:"admin-settings"},{label:"Check",value:"yes-alt"},{label:"Star",value:"star-filled"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Heart",value:"heart"},{label:"Lightbulb",value:"lightbulb"},{label:"Trophy",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email"},{label:"Cart",value:"cart"},{label:"Money",value:"money"},{label:"Chart",value:"chart-line"},{label:"Groups",value:"groups"},{label:"Download",value:"download"},{label:"Upload",value:"upload"},{label:"Search",value:"search"}],a=JSON.parse('{"UU":"create-block/steps-timeline"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{sectionTitle:i,sectionDescription:c,showSectionHeader:r,steps:d,layoutOrientation:b,layoutAlignment:h,stepsPerRow:u,connectorStyle:p,connectorColor:g,connectorThickness:C,showConnectors:m,animateConnectors:x,enableAnimations:v,animationType:k,scrollTrigger:j,scrollOffset:_,backgroundColor:S,sectionTextColor:f,stepBackgroundColor:y,stepTextColor:T,iconColor:w,numberColor:N,numberBackgroundColor:O,spacing:R,borderRadius:B,mobileLayout:P,hideConnectorsOnMobile:A}=e,z=(0,l.useBlockProps)({className:`steps-timeline-block layout-${b} align-${h} spacing-${R}`,style:{backgroundColor:S,color:f,padding:"compact"===R?"2rem":"loose"===R?"4rem":"3rem"}}),D=(e,o,l)=>{const n=[...d];n[e]={...n[e],[o]:l},a({steps:n})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.InspectorControls,{children:[(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Section Header","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Section Header","section-blocks"),checked:r,onChange:e=>a({showSectionHeader:e})}),r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Section Title","section-blocks"),value:i,onChange:e=>a({sectionTitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Section Description","section-blocks"),value:c,onChange:e=>a({sectionDescription:e})})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Orientation","section-blocks"),value:b,options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"},{label:"Zigzag",value:"zigzag"}],onChange:e=>a({layoutOrientation:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Alignment","section-blocks"),value:h,options:[{label:"Center",value:"center"},{label:"Left",value:"left"},{label:"Right",value:"right"}],onChange:e=>a({layoutAlignment:e})}),"horizontal"===b&&(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Steps per Row","section-blocks"),value:u,onChange:e=>a({stepsPerRow:e}),min:2,max:4,step:1}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:R,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>a({spacing:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:B,onChange:e=>a({borderRadius:e}),min:0,max:50,step:1})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Connector Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Connectors","section-blocks"),checked:m,onChange:e=>a({showConnectors:e})}),m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Connector Style","section-blocks"),value:p,options:[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"Animated Line",value:"animated"}],onChange:e=>a({connectorStyle:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Connector Thickness","section-blocks"),value:C,onChange:e=>a({connectorThickness:e}),min:1,max:10,step:1}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Connector Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:g,onChange:e=>a({connectorColor:e||"#007cba"})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Animate Connectors","section-blocks"),checked:x,onChange:e=>a({animateConnectors:e})})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Animation Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable Animations","section-blocks"),checked:v,onChange:e=>a({enableAnimations:e})}),v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Animation Type","section-blocks"),value:k,options:[{label:"Fade In",value:"fade"},{label:"Slide Up",value:"slideUp"},{label:"Slide Left",value:"slideLeft"},{label:"Slide Right",value:"slideRight"},{label:"Zoom In",value:"zoom"},{label:"Bounce In",value:"bounce"}],onChange:e=>a({animationType:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Scroll Trigger","section-blocks"),checked:j,onChange:e=>a({scrollTrigger:e})}),j&&(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Scroll Offset (px)","section-blocks"),value:_,onChange:e=>a({scrollOffset:e}),min:0,max:500,step:10})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Section Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:S,onChange:e=>a({backgroundColor:e||"#ffffff"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Section Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:f,onChange:e=>a({sectionTextColor:e||"#333333"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Step Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:y,onChange:e=>a({stepBackgroundColor:e||"#f8f9fa"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Step Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:T,onChange:e=>a({stepTextColor:e||"#333333"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Icon Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:w,onChange:e=>a({iconColor:e||"#007cba"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Number Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:O,onChange:e=>a({numberBackgroundColor:e||"#007cba"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Number Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:N,onChange:e=>a({numberColor:e||"#ffffff"})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Responsive Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Mobile Layout","section-blocks"),value:P,options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"}],onChange:e=>a({mobileLayout:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Hide Connectors on Mobile","section-blocks"),checked:A,onChange:e=>a({hideConnectorsOnMobile:e})})]})]}),(0,t.jsxs)("div",{...z,children:[r&&(0,t.jsxs)("div",{className:"steps-timeline-header",children:[(0,t.jsx)(l.RichText,{tagName:"h2",className:"section-title",value:i,onChange:e=>a({sectionTitle:e}),placeholder:(0,o.__)("Section title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"section-description",value:c,onChange:e=>a({sectionDescription:e}),placeholder:(0,o.__)("Section description...","section-blocks")})]}),(0,t.jsx)("div",{className:"steps-timeline-container "+("horizontal"===b?`steps-per-row-${u}`:""),children:d.map(((e,i)=>(0,t.jsxs)("div",{className:`step-item step-${i+1}`,children:[(0,t.jsxs)("div",{className:"step-controls",children:[(0,t.jsxs)("div",{className:"step-reorder",children:[(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(0===e)return;const o=[...d];[o[e-1],o[e]]=[o[e],o[e-1]];const l=o.map(((e,o)=>({...e,stepNumber:o+1})));a({steps:l})})(i),disabled:0===i,isSmall:!0,children:"↑"}),(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(e===d.length-1)return;const o=[...d];[o[e],o[e+1]]=[o[e+1],o[e]];const l=o.map(((e,o)=>({...e,stepNumber:o+1})));a({steps:l})})(i),disabled:i===d.length-1,isSmall:!0,children:"↓"})]}),(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(d.length<=3)return;const o=d.filter(((o,l)=>l!==e)).map(((e,o)=>({...e,stepNumber:o+1})));a({steps:o})})(i),isDestructive:!0,isSmall:!0,disabled:d.length<=3,children:(0,o.__)("Remove","section-blocks")})]}),(0,t.jsxs)("div",{className:"step-content",style:{backgroundColor:e.backgroundColor||y,color:e.textColor||T,borderRadius:`${B}px`},children:[(0,t.jsxs)("div",{className:"step-number-icon",children:[(0,t.jsx)("div",{className:"step-number",style:{backgroundColor:O,color:N},children:e.stepNumber}),(0,t.jsx)("div",{className:"step-icon",style:{color:w},children:(0,t.jsx)(n.Dashicon,{icon:e.icon,size:"32"})})]}),(0,t.jsxs)("div",{className:"step-text",children:[(0,t.jsx)(l.RichText,{tagName:"h3",className:"step-title",value:e.title,onChange:e=>D(i,"title",e),placeholder:(0,o.__)("Step title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"step-description",value:e.description,onChange:e=>D(i,"description",e),placeholder:(0,o.__)("Step description...","section-blocks")})]}),(0,t.jsx)("div",{className:"step-settings",children:(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Icon","section-blocks"),value:e.icon,options:s,onChange:e=>D(i,"icon",e)})})]}),m&&i<d.length-1&&(0,t.jsx)("div",{className:`step-connector connector-${p}`,style:{borderColor:g,borderWidth:`${C}px`}})]},e.id)))}),(0,t.jsx)("div",{className:"steps-timeline-actions",children:(0,t.jsxs)(n.Button,{onClick:()=>{if(d.length>=6)return;const e={id:`step-${Date.now()}`,title:`Step ${d.length+1}`,description:"Describe this step in your process",icon:"admin-users",stepNumber:d.length+1,backgroundColor:y,textColor:T,showImage:!1,image:null,imageId:0};a({steps:[...d,e]})},isPrimary:!0,disabled:d.length>=6,children:[(0,o.__)("Add Step","section-blocks")," (",d.length,"/6)"]})})]})]})}})}},l={};function n(e){var t=l[e];if(void 0!==t)return t.exports;var s=l[e]={exports:{}};return o[e](s,s.exports,n),s.exports}n.m=o,e=[],n.O=(o,l,t,s)=>{if(!l){var a=1/0;for(d=0;d<e.length;d++){for(var[l,t,s]=e[d],i=!0,c=0;c<l.length;c++)(!1&s||a>=s)&&Object.keys(n.O).every((e=>n.O[e](l[c])))?l.splice(c--,1):(i=!1,s<a&&(a=s));if(i){e.splice(d--,1);var r=t();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[l,t,s]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={465:0,725:0};n.O.j=o=>0===e[o];var o=(o,l)=>{var t,s,[a,i,c]=l,r=0;if(a.some((o=>0!==e[o]))){for(t in i)n.o(i,t)&&(n.m[t]=i[t]);if(c)var d=c(n)}for(o&&o(l);r<a.length;r++)s=a[r],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var t=n.O(void 0,[725],(()=>n(844)));t=n.O(t)})();1 (()=>{"use strict";var e,o={463:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,t=window.ReactJSXRuntime,s=[{label:"User",value:"admin-users"},{label:"Settings",value:"admin-settings"},{label:"Check",value:"yes-alt"},{label:"Star",value:"star-filled"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Heart",value:"heart"},{label:"Lightbulb",value:"lightbulb"},{label:"Trophy",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email"},{label:"Cart",value:"cart"},{label:"Money",value:"money"},{label:"Chart",value:"chart-line"},{label:"Groups",value:"groups"},{label:"Download",value:"download"},{label:"Upload",value:"upload"},{label:"Search",value:"search"}],a=JSON.parse('{"UU":"create-block/steps-timeline"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{sectionTitle:i,sectionDescription:c,showSectionHeader:r,steps:d,layoutOrientation:b,layoutAlignment:h,stepsPerRow:u,connectorStyle:p,connectorColor:g,connectorThickness:C,showConnectors:m,animateConnectors:x,enableAnimations:v,animationType:k,scrollTrigger:j,scrollOffset:_,backgroundColor:S,sectionTextColor:f,stepBackgroundColor:y,stepTextColor:T,iconColor:w,numberColor:N,numberBackgroundColor:O,spacing:R,borderRadius:B,mobileLayout:P,hideConnectorsOnMobile:A}=e,z=(0,l.useBlockProps)({className:`steps-timeline-block layout-${b} align-${h} spacing-${R}`,style:{backgroundColor:S,color:f,padding:"compact"===R?"2rem":"loose"===R?"4rem":"3rem"}}),D=(e,o,l)=>{const n=[...d];n[e]={...n[e],[o]:l},a({steps:n})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.InspectorControls,{children:[(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Section Header","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Section Header","section-blocks"),checked:r,onChange:e=>a({showSectionHeader:e})}),r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Section Title","section-blocks"),value:i,onChange:e=>a({sectionTitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Section Description","section-blocks"),value:c,onChange:e=>a({sectionDescription:e})})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Orientation","section-blocks"),value:b,options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"},{label:"Zigzag",value:"zigzag"}],onChange:e=>a({layoutOrientation:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Alignment","section-blocks"),value:h,options:[{label:"Center",value:"center"},{label:"Left",value:"left"},{label:"Right",value:"right"}],onChange:e=>a({layoutAlignment:e})}),"horizontal"===b&&(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Steps per Row","section-blocks"),value:u,onChange:e=>a({stepsPerRow:e}),min:2,max:4,step:1}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:R,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>a({spacing:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:B,onChange:e=>a({borderRadius:e}),min:0,max:50,step:1})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Connector Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Connectors","section-blocks"),checked:m,onChange:e=>a({showConnectors:e})}),m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Connector Style","section-blocks"),value:p,options:[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"Animated Line",value:"animated"}],onChange:e=>a({connectorStyle:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Connector Thickness","section-blocks"),value:C,onChange:e=>a({connectorThickness:e}),min:1,max:10,step:1}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Connector Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:g,onChange:e=>a({connectorColor:e||"#007cba"})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Animate Connectors","section-blocks"),checked:x,onChange:e=>a({animateConnectors:e})})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Animation Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable Animations","section-blocks"),checked:v,onChange:e=>a({enableAnimations:e})}),v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Animation Type","section-blocks"),value:k,options:[{label:"Fade In",value:"fade"},{label:"Slide Up",value:"slideUp"},{label:"Slide Left",value:"slideLeft"},{label:"Slide Right",value:"slideRight"},{label:"Zoom In",value:"zoom"},{label:"Bounce In",value:"bounce"}],onChange:e=>a({animationType:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Scroll Trigger","section-blocks"),checked:j,onChange:e=>a({scrollTrigger:e})}),j&&(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Scroll Offset (px)","section-blocks"),value:_,onChange:e=>a({scrollOffset:e}),min:0,max:500,step:10})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Section Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:S,onChange:e=>a({backgroundColor:e||"#ffffff"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Section Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:f,onChange:e=>a({sectionTextColor:e||"#333333"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Step Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:y,onChange:e=>a({stepBackgroundColor:e||"#f8f9fa"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Step Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:T,onChange:e=>a({stepTextColor:e||"#333333"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Icon Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:w,onChange:e=>a({iconColor:e||"#007cba"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Number Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:O,onChange:e=>a({numberBackgroundColor:e||"#007cba"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Number Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:N,onChange:e=>a({numberColor:e||"#ffffff"})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Responsive Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Mobile Layout","section-blocks"),value:P,options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"}],onChange:e=>a({mobileLayout:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Hide Connectors on Mobile","section-blocks"),checked:A,onChange:e=>a({hideConnectorsOnMobile:e})})]})]}),(0,t.jsxs)("div",{...z,children:[r&&(0,t.jsxs)("div",{className:"steps-timeline-header",children:[(0,t.jsx)(l.RichText,{tagName:"h2",className:"section-title",value:i,onChange:e=>a({sectionTitle:e}),placeholder:(0,o.__)("Section title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"section-description",value:c,onChange:e=>a({sectionDescription:e}),placeholder:(0,o.__)("Section description...","section-blocks")})]}),(0,t.jsx)("div",{className:"steps-timeline-container "+("horizontal"===b?`steps-per-row-${u}`:""),children:d.map(((e,i)=>(0,t.jsxs)("div",{className:`step-item step-${i+1}`,children:[(0,t.jsxs)("div",{className:"step-controls",children:[(0,t.jsxs)("div",{className:"step-reorder",children:[(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(0===e)return;const o=[...d];[o[e-1],o[e]]=[o[e],o[e-1]];const l=o.map(((e,o)=>({...e,stepNumber:o+1})));a({steps:l})})(i),disabled:0===i,isSmall:!0,children:"↑"}),(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(e===d.length-1)return;const o=[...d];[o[e],o[e+1]]=[o[e+1],o[e]];const l=o.map(((e,o)=>({...e,stepNumber:o+1})));a({steps:l})})(i),disabled:i===d.length-1,isSmall:!0,children:"↓"})]}),(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(d.length<=3)return;const o=d.filter(((o,l)=>l!==e)).map(((e,o)=>({...e,stepNumber:o+1})));a({steps:o})})(i),isDestructive:!0,isSmall:!0,disabled:d.length<=3,children:(0,o.__)("Remove","section-blocks")})]}),(0,t.jsxs)("div",{className:"step-content",style:{backgroundColor:e.backgroundColor||y,color:e.textColor||T,borderRadius:`${B}px`},children:[(0,t.jsxs)("div",{className:"step-number-icon",children:[(0,t.jsx)("div",{className:"step-number",style:{backgroundColor:O,color:N},children:e.stepNumber}),(0,t.jsx)("div",{className:"step-icon",style:{color:w},children:(0,t.jsx)(n.Dashicon,{icon:e.icon,size:"32"})})]}),(0,t.jsxs)("div",{className:"step-text",children:[(0,t.jsx)(l.RichText,{tagName:"h3",className:"step-title",value:e.title,onChange:e=>D(i,"title",e),placeholder:(0,o.__)("Step title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"step-description",value:e.description,onChange:e=>D(i,"description",e),placeholder:(0,o.__)("Step description...","section-blocks")})]}),(0,t.jsx)("div",{className:"step-settings",children:(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Icon","section-blocks"),value:e.icon,options:s,onChange:e=>D(i,"icon",e)})})]}),m&&i<d.length-1&&(0,t.jsx)("div",{className:`step-connector connector-${p}`,style:{borderColor:g,borderWidth:`${C}px`}})]},e.id)))}),(0,t.jsx)("div",{className:"steps-timeline-actions",children:(0,t.jsxs)(n.Button,{onClick:()=>{if(d.length>=6)return;const e={id:`step-${Date.now()}`,title:`Step ${d.length+1}`,description:"Describe this step in your process",icon:"admin-users",stepNumber:d.length+1,backgroundColor:y,textColor:T,showImage:!1,image:null,imageId:0};a({steps:[...d,e]})},isPrimary:!0,disabled:d.length>=6,children:[(0,o.__)("Add Step","section-blocks")," (",d.length,"/6)"]})})]})]})}})}},l={};function n(e){var t=l[e];if(void 0!==t)return t.exports;var s=l[e]={exports:{}};return o[e](s,s.exports,n),s.exports}n.m=o,e=[],n.O=(o,l,t,s)=>{if(!l){var a=1/0;for(d=0;d<e.length;d++){for(var[l,t,s]=e[d],i=!0,c=0;c<l.length;c++)(!1&s||a>=s)&&Object.keys(n.O).every((e=>n.O[e](l[c])))?l.splice(c--,1):(i=!1,s<a&&(a=s));if(i){e.splice(d--,1);var r=t();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[l,t,s]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={9465:0,5725:0};n.O.j=o=>0===e[o];var o=(o,l)=>{var t,s,[a,i,c]=l,r=0;if(a.some((o=>0!==e[o]))){for(t in i)n.o(i,t)&&(n.m[t]=i[t]);if(c)var d=c(n)}for(o&&o(l);r<a.length;r++)s=a[r],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var t=n.O(void 0,[5725],(()=>n(463)));t=n.O(t)})(); -
section-blocks/tags/1.3.0/build/team-members/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' 44232aabc6eb6c5b0d18');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'a74935de0927c2a0af65'); -
section-blocks/tags/1.3.0/build/team-members/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,l={910:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,a=window.ReactJSXRuntime,i="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxjaXJjbGUgY3g9IjEwMCIgY3k9IjgwIiByPSIzMCIgZmlsbD0iIzlDQTNBRiIvPgo8cGF0aCBkPSJNNTAgMTYwQzUwIDEzNy45MDkgNjcuOTA5IDEyMCA5MCAxMjBIMTEwQzEzMi4wOTEgMTIwIDE1MCAxMzcuOTA5IDE1MCAxNjBWMjAwSDUwVjE2MFoiIGZpbGw9IiM5Q0EzQUYiLz4KPC9zdmc+Cg==",c={linkedin:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),twitter:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})}),facebook:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),instagram:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}),email:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-.904.732-1.636 1.636-1.636h3.819l6.545 4.91 6.545-4.91h3.819A1.636 1.636 0 0 1 24 5.457z"})}),github:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})}),dribbble:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 24C5.385 24 0 18.615 0 12S5.385 0 12 0s12 5.385 12 12-5.385 12-12 12zm10.12-10.358c-.35-.11-3.17-.953-6.384-.438 1.34 3.684 1.887 6.684 1.992 7.308 2.3-1.555 3.936-4.02 4.395-6.87zm-6.115 7.808c-.153-.9-.75-4.032-2.19-7.77l-.066.02c-5.79 2.015-7.86 6.025-8.04 6.4 1.73 1.358 3.92 2.166 6.29 2.166 1.42 0 2.77-.29 4-.816zm-11.62-2.58c.232-.4 3.045-5.055 8.332-6.765.135-.045.27-.084.405-.12-.26-.585-.54-1.167-.832-1.74C7.17 11.775 2.206 11.71 1.756 11.7l-.004.312c0 2.633.998 5.037 2.634 6.855zm-2.42-8.955c.46.008 4.683.026 9.477-1.248-1.698-3.018-3.53-5.558-3.8-5.928-2.868 1.35-5.01 3.99-5.676 7.17zM9.6 2.052c.282.38 2.145 2.914 3.822 6 3.645-1.365 5.19-3.44 5.373-3.702-1.81-1.61-4.19-2.586-6.795-2.586-.825 0-1.63.1-2.4.285zm10.335 3.483c-.218.29-1.935 2.493-5.724 4.04.24.49.47.985.68 1.486.08.18.15.36.22.53 3.41-.43 6.8.26 7.14.33-.02-2.42-.88-4.64-2.31-6.38z"})}),website:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"})})},n=JSON.parse('{"UU":"create-block/team-members"}');(0,e.registerBlockType)(n.UU,{edit:function({attributes:e,setAttributes:n}){const{sectionTitle:t,sectionDescription:r,showSectionHeader:m,members:b,columns:d,layoutStyle:h,hoverEffect:g,imageEffect:v,socialIconStyle:u,backgroundColor:x,textColor:C,accentColor:_,cardBackgroundColor:p,spacing:k,alignment:j,showBio:w,showSocialLinks:f}=e,S=(0,o.useBlockProps)({className:`team-members-block columns-${d} layout-${h} hover-${g} image-${v} social-${u} spacing-${k} align-${j}`,style:{backgroundColor:x,color:C,padding:"compact"===k?"2rem":"loose"===k?"4rem":"3rem"}}),M=(e,l,o)=>{const s=[...b];if(l.includes(".")){const[a,i]=l.split(".");s[e]={...s[e],[a]:{...s[e][a],[i]:o}}}else s[e]={...s[e],[l]:o};n({members:s})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.InspectorControls,{children:[(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Section Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Section Header","section-blocks"),checked:m,onChange:e=>n({showSectionHeader:e})}),m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.TextControl,{label:(0,l.__)("Section Title","section-blocks"),value:t,onChange:e=>n({sectionTitle:e})}),(0,a.jsx)(s.TextControl,{label:(0,l.__)("Section Description","section-blocks"),value:r,onChange:e=>n({sectionDescription:e})})]})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:d,onChange:e=>n({columns:e}),min:2,max:6}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Layout Style","section-blocks"),value:h,options:[{label:(0,l.__)("Card","section-blocks"),value:"card"},{label:(0,l.__)("Overlay","section-blocks"),value:"overlay"},{label:(0,l.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,l.__)("Professional","section-blocks"),value:"professional"}],onChange:e=>n({layoutStyle:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:g,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Lift","section-blocks"),value:"lift"},{label:(0,l.__)("Scale","section-blocks"),value:"scale"},{label:(0,l.__)("Flip","section-blocks"),value:"flip"},{label:(0,l.__)("Slide Up","section-blocks"),value:"slide-up"}],onChange:e=>n({hoverEffect:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Image Effect","section-blocks"),value:v,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Grayscale to Color","section-blocks"),value:"grayscale"},{label:(0,l.__)("Zoom","section-blocks"),value:"zoom"},{label:(0,l.__)("Blur to Sharp","section-blocks"),value:"blur"}],onChange:e=>n({imageEffect:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:k,options:[{label:(0,l.__)("Compact","section-blocks"),value:"compact"},{label:(0,l.__)("Normal","section-blocks"),value:"normal"},{label:(0,l.__)("Loose","section-blocks"),value:"loose"}],onChange:e=>n({spacing:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Alignment","section-blocks"),value:j,options:[{label:(0,l.__)("Left","section-blocks"),value:"left"},{label:(0,l.__)("Center","section-blocks"),value:"center"},{label:(0,l.__)("Right","section-blocks"),value:"right"}],onChange:e=>n({alignment:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Display Options","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Bio","section-blocks"),checked:w,onChange:e=>n({showBio:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Social Links","section-blocks"),checked:f,onChange:e=>n({showSocialLinks:e})}),f&&(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Social Icon Style","section-blocks"),value:u,options:[{label:(0,l.__)("Rounded","section-blocks"),value:"rounded"},{label:(0,l.__)("Square","section-blocks"),value:"square"},{label:(0,l.__)("Minimal","section-blocks"),value:"minimal"}],onChange:e=>n({socialIconStyle:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Background Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:x,onChange:e=>n({backgroundColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Text Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:C,onChange:e=>n({textColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Accent Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:_,onChange:e=>n({accentColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Card Background Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:p,onChange:e=>n({cardBackgroundColor:e})})})]})]}),(0,a.jsxs)("div",{...S,children:[m&&(0,a.jsxs)("div",{className:"team-section-header",children:[(0,a.jsx)(o.RichText,{tagName:"h2",className:"team-section-title",value:t,onChange:e=>n({sectionTitle:e}),placeholder:(0,l.__)("Enter section title...","section-blocks")}),(0,a.jsx)(o.RichText,{tagName:"p",className:"team-section-description",value:r,onChange:e=>n({sectionDescription:e}),placeholder:(0,l.__)("Enter section description...","section-blocks")})]}),(0,a.jsx)("div",{className:"team-members-grid",children:b.map(((e,t)=>(0,a.jsxs)("div",{className:"team-member-card",style:{backgroundColor:p},children:[(0,a.jsx)("div",{className:"member-controls",children:(0,a.jsx)(s.Button,{onClick:()=>(e=>{const l=b.filter(((l,o)=>o!==e));n({members:l})})(t),className:"remove-member",label:(0,l.__)("Remove Member","section-blocks"),showTooltip:!0,children:(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})}),(0,a.jsxs)("div",{className:"member-image-container",children:[(0,a.jsx)(o.MediaUploadCheck,{children:(0,a.jsx)(o.MediaUpload,{onSelect:e=>{const l=[...b];l[t]={...l[t],image:{url:e.url,alt:e.alt||"",id:e.id},imageId:e.id},n({members:l})},allowedTypes:["image"],value:e.imageId||0,render:({open:l})=>(0,a.jsx)(s.Button,{className:e.image&&e.image.url!==i?"image-button":"upload-button",onClick:l,children:e.image&&e.image.url?(0,a.jsx)("img",{src:e.image.url,alt:e.image.alt||e.name}):(0,a.jsx)("img",{src:i,alt:"Default team member avatar"})})})}),e.image&&e.image.url!==i&&(0,a.jsx)("div",{className:"image-controls-overlay",children:(0,a.jsx)(s.Button,{onClick:()=>M(t,"image",{url:i,alt:"Default team member avatar",id:0}),className:"reset-image-button",isDestructive:!0,size:"small",showTooltip:!0,label:(0,l.__)("Reset to Default","section-blocks"),children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"})})})})]}),(0,a.jsxs)("div",{className:"member-content",children:[(0,a.jsx)(o.RichText,{tagName:"h3",className:"member-name",value:e.name,onChange:e=>M(t,"name",e),placeholder:(0,l.__)("Member Name","section-blocks")}),(0,a.jsx)(o.RichText,{tagName:"p",className:"member-position",value:e.position,onChange:e=>M(t,"position",e),placeholder:(0,l.__)("Position","section-blocks"),style:{color:_}}),w&&(0,a.jsx)(o.RichText,{tagName:"p",className:"member-bio",value:e.bio,onChange:e=>M(t,"bio",e),placeholder:(0,l.__)("Brief bio...","section-blocks"),maxLength:300}),f&&(0,a.jsx)("div",{className:"member-social-links",children:Object.keys(c).map((l=>(0,a.jsxs)("div",{className:"social-link-input",children:[(0,a.jsx)("label",{children:l.charAt(0).toUpperCase()+l.slice(1)}),(0,a.jsx)(s.TextControl,{value:e.socialLinks[l]||"",onChange:e=>M(t,`socialLinks.${l}`,e),placeholder:`${l} URL`})]},l)))})]})]},t)))}),(0,a.jsx)("div",{className:"team-actions",children:(0,a.jsx)(s.Button,{variant:"secondary",onClick:()=>{const e=[...b,{name:"New Team Member",position:"Position",bio:"Brief description about this team member.",image:{url:i,alt:"Default team member avatar",id:0},imageId:0,socialLinks:{linkedin:"",twitter:"",facebook:"",instagram:"",email:"",github:"",dribbble:"",website:""}}];n({members:e})},className:"add-member",children:(0,l.__)("Add Team Member","section-blocks")})})]})]})}})}},o={};function s(e){var a=o[e];if(void 0!==a)return a.exports;var i=o[e]={exports:{}};return l[e](i,i.exports,s),i.exports}s.m=l,e=[],s.O=(l,o,a,i)=>{if(!o){var c=1/0;for(m=0;m<e.length;m++){for(var[o,a,i]=e[m],n=!0,t=0;t<o.length;t++)(!1&i||c>=i)&&Object.keys(s.O).every((e=>s.O[e](o[t])))?o.splice(t--,1):(n=!1,i<c&&(c=i));if(n){e.splice(m--,1);var r=a();void 0!==r&&(l=r)}}return l}i=i||0;for(var m=e.length;m>0&&e[m-1][2]>i;m--)e[m]=e[m-1];e[m]=[o,a,i]},s.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={ 843:0,611:0};s.O.j=l=>0===e[l];var l=(l,o)=>{var a,i,[c,n,t]=o,r=0;if(c.some((l=>0!==e[l]))){for(a in n)s.o(n,a)&&(s.m[a]=n[a]);if(t)var m=t(s)}for(l&&l(o);r<c.length;r++)i=c[r],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return s.O(m)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var a=s.O(void 0,[611],(()=>s(910)));a=s.O(a)})();1 (()=>{"use strict";var e,l={910:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,a=window.ReactJSXRuntime,i="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxjaXJjbGUgY3g9IjEwMCIgY3k9IjgwIiByPSIzMCIgZmlsbD0iIzlDQTNBRiIvPgo8cGF0aCBkPSJNNTAgMTYwQzUwIDEzNy45MDkgNjcuOTA5IDEyMCA5MCAxMjBIMTEwQzEzMi4wOTEgMTIwIDE1MCAxMzcuOTA5IDE1MCAxNjBWMjAwSDUwVjE2MFoiIGZpbGw9IiM5Q0EzQUYiLz4KPC9zdmc+Cg==",c={linkedin:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),twitter:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})}),facebook:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),instagram:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}),email:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-.904.732-1.636 1.636-1.636h3.819l6.545 4.91 6.545-4.91h3.819A1.636 1.636 0 0 1 24 5.457z"})}),github:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})}),dribbble:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 24C5.385 24 0 18.615 0 12S5.385 0 12 0s12 5.385 12 12-5.385 12-12 12zm10.12-10.358c-.35-.11-3.17-.953-6.384-.438 1.34 3.684 1.887 6.684 1.992 7.308 2.3-1.555 3.936-4.02 4.395-6.87zm-6.115 7.808c-.153-.9-.75-4.032-2.19-7.77l-.066.02c-5.79 2.015-7.86 6.025-8.04 6.4 1.73 1.358 3.92 2.166 6.29 2.166 1.42 0 2.77-.29 4-.816zm-11.62-2.58c.232-.4 3.045-5.055 8.332-6.765.135-.045.27-.084.405-.12-.26-.585-.54-1.167-.832-1.74C7.17 11.775 2.206 11.71 1.756 11.7l-.004.312c0 2.633.998 5.037 2.634 6.855zm-2.42-8.955c.46.008 4.683.026 9.477-1.248-1.698-3.018-3.53-5.558-3.8-5.928-2.868 1.35-5.01 3.99-5.676 7.17zM9.6 2.052c.282.38 2.145 2.914 3.822 6 3.645-1.365 5.19-3.44 5.373-3.702-1.81-1.61-4.19-2.586-6.795-2.586-.825 0-1.63.1-2.4.285zm10.335 3.483c-.218.29-1.935 2.493-5.724 4.04.24.49.47.985.68 1.486.08.18.15.36.22.53 3.41-.43 6.8.26 7.14.33-.02-2.42-.88-4.64-2.31-6.38z"})}),website:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"})})},n=JSON.parse('{"UU":"create-block/team-members"}');(0,e.registerBlockType)(n.UU,{edit:function({attributes:e,setAttributes:n}){const{sectionTitle:t,sectionDescription:r,showSectionHeader:m,members:b,columns:d,layoutStyle:h,hoverEffect:g,imageEffect:v,socialIconStyle:u,backgroundColor:x,textColor:C,accentColor:_,cardBackgroundColor:p,spacing:k,alignment:j,showBio:w,showSocialLinks:f}=e,S=(0,o.useBlockProps)({className:`team-members-block columns-${d} layout-${h} hover-${g} image-${v} social-${u} spacing-${k} align-${j}`,style:{backgroundColor:x,color:C,padding:"compact"===k?"2rem":"loose"===k?"4rem":"3rem"}}),M=(e,l,o)=>{const s=[...b];if(l.includes(".")){const[a,i]=l.split(".");s[e]={...s[e],[a]:{...s[e][a],[i]:o}}}else s[e]={...s[e],[l]:o};n({members:s})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.InspectorControls,{children:[(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Section Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Section Header","section-blocks"),checked:m,onChange:e=>n({showSectionHeader:e})}),m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.TextControl,{label:(0,l.__)("Section Title","section-blocks"),value:t,onChange:e=>n({sectionTitle:e})}),(0,a.jsx)(s.TextControl,{label:(0,l.__)("Section Description","section-blocks"),value:r,onChange:e=>n({sectionDescription:e})})]})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:d,onChange:e=>n({columns:e}),min:2,max:6}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Layout Style","section-blocks"),value:h,options:[{label:(0,l.__)("Card","section-blocks"),value:"card"},{label:(0,l.__)("Overlay","section-blocks"),value:"overlay"},{label:(0,l.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,l.__)("Professional","section-blocks"),value:"professional"}],onChange:e=>n({layoutStyle:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:g,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Lift","section-blocks"),value:"lift"},{label:(0,l.__)("Scale","section-blocks"),value:"scale"},{label:(0,l.__)("Flip","section-blocks"),value:"flip"},{label:(0,l.__)("Slide Up","section-blocks"),value:"slide-up"}],onChange:e=>n({hoverEffect:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Image Effect","section-blocks"),value:v,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Grayscale to Color","section-blocks"),value:"grayscale"},{label:(0,l.__)("Zoom","section-blocks"),value:"zoom"},{label:(0,l.__)("Blur to Sharp","section-blocks"),value:"blur"}],onChange:e=>n({imageEffect:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:k,options:[{label:(0,l.__)("Compact","section-blocks"),value:"compact"},{label:(0,l.__)("Normal","section-blocks"),value:"normal"},{label:(0,l.__)("Loose","section-blocks"),value:"loose"}],onChange:e=>n({spacing:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Alignment","section-blocks"),value:j,options:[{label:(0,l.__)("Left","section-blocks"),value:"left"},{label:(0,l.__)("Center","section-blocks"),value:"center"},{label:(0,l.__)("Right","section-blocks"),value:"right"}],onChange:e=>n({alignment:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Display Options","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Bio","section-blocks"),checked:w,onChange:e=>n({showBio:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Social Links","section-blocks"),checked:f,onChange:e=>n({showSocialLinks:e})}),f&&(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Social Icon Style","section-blocks"),value:u,options:[{label:(0,l.__)("Rounded","section-blocks"),value:"rounded"},{label:(0,l.__)("Square","section-blocks"),value:"square"},{label:(0,l.__)("Minimal","section-blocks"),value:"minimal"}],onChange:e=>n({socialIconStyle:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Background Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:x,onChange:e=>n({backgroundColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Text Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:C,onChange:e=>n({textColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Accent Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:_,onChange:e=>n({accentColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Card Background Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:p,onChange:e=>n({cardBackgroundColor:e})})})]})]}),(0,a.jsxs)("div",{...S,children:[m&&(0,a.jsxs)("div",{className:"team-section-header",children:[(0,a.jsx)(o.RichText,{tagName:"h2",className:"team-section-title",value:t,onChange:e=>n({sectionTitle:e}),placeholder:(0,l.__)("Enter section title...","section-blocks")}),(0,a.jsx)(o.RichText,{tagName:"p",className:"team-section-description",value:r,onChange:e=>n({sectionDescription:e}),placeholder:(0,l.__)("Enter section description...","section-blocks")})]}),(0,a.jsx)("div",{className:"team-members-grid",children:b.map(((e,t)=>(0,a.jsxs)("div",{className:"team-member-card",style:{backgroundColor:p},children:[(0,a.jsx)("div",{className:"member-controls",children:(0,a.jsx)(s.Button,{onClick:()=>(e=>{const l=b.filter(((l,o)=>o!==e));n({members:l})})(t),className:"remove-member",label:(0,l.__)("Remove Member","section-blocks"),showTooltip:!0,children:(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})}),(0,a.jsxs)("div",{className:"member-image-container",children:[(0,a.jsx)(o.MediaUploadCheck,{children:(0,a.jsx)(o.MediaUpload,{onSelect:e=>{const l=[...b];l[t]={...l[t],image:{url:e.url,alt:e.alt||"",id:e.id},imageId:e.id},n({members:l})},allowedTypes:["image"],value:e.imageId||0,render:({open:l})=>(0,a.jsx)(s.Button,{className:e.image&&e.image.url!==i?"image-button":"upload-button",onClick:l,children:e.image&&e.image.url?(0,a.jsx)("img",{src:e.image.url,alt:e.image.alt||e.name}):(0,a.jsx)("img",{src:i,alt:"Default team member avatar"})})})}),e.image&&e.image.url!==i&&(0,a.jsx)("div",{className:"image-controls-overlay",children:(0,a.jsx)(s.Button,{onClick:()=>M(t,"image",{url:i,alt:"Default team member avatar",id:0}),className:"reset-image-button",isDestructive:!0,size:"small",showTooltip:!0,label:(0,l.__)("Reset to Default","section-blocks"),children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"})})})})]}),(0,a.jsxs)("div",{className:"member-content",children:[(0,a.jsx)(o.RichText,{tagName:"h3",className:"member-name",value:e.name,onChange:e=>M(t,"name",e),placeholder:(0,l.__)("Member Name","section-blocks")}),(0,a.jsx)(o.RichText,{tagName:"p",className:"member-position",value:e.position,onChange:e=>M(t,"position",e),placeholder:(0,l.__)("Position","section-blocks"),style:{color:_}}),w&&(0,a.jsx)(o.RichText,{tagName:"p",className:"member-bio",value:e.bio,onChange:e=>M(t,"bio",e),placeholder:(0,l.__)("Brief bio...","section-blocks"),maxLength:300}),f&&(0,a.jsx)("div",{className:"member-social-links",children:Object.keys(c).map((l=>(0,a.jsxs)("div",{className:"social-link-input",children:[(0,a.jsx)("label",{children:l.charAt(0).toUpperCase()+l.slice(1)}),(0,a.jsx)(s.TextControl,{value:e.socialLinks[l]||"",onChange:e=>M(t,`socialLinks.${l}`,e),placeholder:`${l} URL`})]},l)))})]})]},t)))}),(0,a.jsx)("div",{className:"team-actions",children:(0,a.jsx)(s.Button,{variant:"secondary",onClick:()=>{const e=[...b,{name:"New Team Member",position:"Position",bio:"Brief description about this team member.",image:{url:i,alt:"Default team member avatar",id:0},imageId:0,socialLinks:{linkedin:"",twitter:"",facebook:"",instagram:"",email:"",github:"",dribbble:"",website:""}}];n({members:e})},className:"add-member",children:(0,l.__)("Add Team Member","section-blocks")})})]})]})}})}},o={};function s(e){var a=o[e];if(void 0!==a)return a.exports;var i=o[e]={exports:{}};return l[e](i,i.exports,s),i.exports}s.m=l,e=[],s.O=(l,o,a,i)=>{if(!o){var c=1/0;for(m=0;m<e.length;m++){for(var[o,a,i]=e[m],n=!0,t=0;t<o.length;t++)(!1&i||c>=i)&&Object.keys(s.O).every((e=>s.O[e](o[t])))?o.splice(t--,1):(n=!1,i<c&&(c=i));if(n){e.splice(m--,1);var r=a();void 0!==r&&(l=r)}}return l}i=i||0;for(var m=e.length;m>0&&e[m-1][2]>i;m--)e[m]=e[m-1];e[m]=[o,a,i]},s.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={7843:0,9611:0};s.O.j=l=>0===e[l];var l=(l,o)=>{var a,i,[c,n,t]=o,r=0;if(c.some((l=>0!==e[l]))){for(a in n)s.o(n,a)&&(s.m[a]=n[a]);if(t)var m=t(s)}for(l&&l(o);r<c.length;r++)i=c[r],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return s.O(m)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var a=s.O(void 0,[9611],(()=>s(910)));a=s.O(a)})(); -
section-blocks/tags/1.3.0/build/testimonials-section/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' 85e4cd48461ae10310fd');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '145dce93898bbfa22f4f'); -
section-blocks/tags/1.3.0/build/testimonials-section/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,o={365:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,s=window.wp.components,a=window.ReactJSXRuntime,n=JSON.parse('{"UU":"create-block/testimonials-section"}');(0,e.registerBlockType)(n.UU,{edit:function({attributes:e,setAttributes:n}){const{testimonials:t,layout:i,columns:c,showRatings:r,showImages:d,showTitles:m,backgroundColor:u,textColor:g,cardBackgroundColor:b,starColor:h,borderRadius:x,spacing:_,animationEffect:p,autoplay:k,autoplaySpeed:C}=e,v=(0,l.useBlockProps)({style:{backgroundColor:u,color:g}}),j=(e,o,l)=>{const s=[...t];s[e]={...s[e],[o]:l},n({testimonials:s})},y=e=>{const o=[];for(let l=1;l<=5;l++)o.push((0,a.jsx)("span",{className:"star "+(l<=e?"filled":"empty"),style:{color:l<=e?h:"#ddd"},children:"★"},l));return o};return(0,a.jsxs)("div",{...v,children:[(0,a.jsxs)(l.InspectorControls,{children:[(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Layout","section-blocks"),value:i,options:[{label:(0,o.__)("Grid","section-blocks"),value:"grid"},{label:(0,o.__)("Carousel","section-blocks"),value:"carousel"}],onChange:e=>n({layout:e})}),"grid"===i&&(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Columns","section-blocks"),value:c,onChange:e=>n({columns:e}),min:1,max:4}),(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:_,options:[{label:(0,o.__)("Compact","section-blocks"),value:"compact"},{label:(0,o.__)("Normal","section-blocks"),value:"normal"},{label:(0,o.__)("Spacious","section-blocks"),value:"spacious"}],onChange:e=>n({spacing:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Display Options","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Ratings","section-blocks"),checked:r,onChange:e=>n({showRatings:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Images","section-blocks"),checked:d,onChange:e=>n({showImages:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Titles","section-blocks"),checked:m,onChange:e=>n({showTitles:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Background Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:u,onChange:e=>n({backgroundColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Text Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:g,onChange:e=>n({textColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Card Background Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:b,onChange:e=>n({cardBackgroundColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Star Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:h,onChange:e=>n({starColor:e})})]}),(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:x,onChange:e=>n({borderRadius:e}),min:0,max:50})]}),"carousel"===i&&(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Carousel Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Animation Effect","section-blocks"),value:p,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade","section-blocks"),value:"fade"},{label:(0,o.__)("Slide","section-blocks"),value:"slide"},{label:(0,o.__)("Zoom","section-blocks"),value:"zoom"}],onChange:e=>n({animationEffect:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Autoplay","section-blocks"),checked:k,onChange:e=>n({autoplay:e})}),k&&(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Autoplay Speed (ms)","section-blocks"),value:C,onChange:e=>n({autoplaySpeed:e}),min:1e3,max:1e4,step:500})]})]}),(0,a.jsx)("div",{className:`testimonials-section layout-${i} ${(()=>{switch(_){case"compact":return"spacing-compact";case"spacious":return"spacing-spacious";default:return"spacing-normal"}})()}`,children:(0,a.jsxs)("div",{className:"testimonials-container",children:[(0,a.jsx)("div",{className:"testimonials-grid "+("grid"===i?`columns-${c}`:""),style:"grid"===i?{"--sb-cols":c,"--sb-cols-tablet":c>=4?3:c,"--sb-cols-mobile":Math.min(c,2)}:{},children:t.map(((e,i)=>(0,a.jsxs)("div",{className:"testimonial-card",style:{backgroundColor:b,borderRadius:`${x}px`},children:[(0,a.jsxs)("div",{className:"testimonial-content",children:[d&&(0,a.jsxs)("div",{className:"testimonial-image",children:[(0,a.jsx)(l.MediaUploadCheck,{children:(0,a.jsx)(l.MediaUpload,{onSelect:e=>{const o=t.map(((o,l)=>l===i?{...o,image:{url:e.url,alt:e.alt||""},imageId:e.id}:o));n({testimonials:o})},allowedTypes:["image"],value:e.imageId,render:({open:l})=>(0,a.jsx)(s.Button,{className:e.image?"image-button has-image":"image-button",onClick:l,children:e.image?(0,a.jsx)("img",{src:e.image.url,alt:e.image.alt||e.name}):(0,o.__)("Add Image","section-blocks")})})}),e.image&&(0,a.jsx)(s.Button,{className:"remove-image",onClick:()=>{j(i,"image",null),j(i,"imageId",0)},isDestructive:!0,isSmall:!0,children:(0,o.__)("Remove","section-blocks")})]}),(0,a.jsx)("div",{className:"testimonial-text",children:(0,a.jsx)(s.TextareaControl,{placeholder:(0,o.__)("Testimonial text...","section-blocks"),value:e.text,onChange:e=>j(i,"text",e)})}),r&&(0,a.jsxs)("div",{className:"testimonial-rating",children:[(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Rating","section-blocks"),value:e.rating,onChange:e=>j(i,"rating",e),min:1,max:5}),(0,a.jsx)("div",{className:"stars",children:y(e.rating)})]}),(0,a.jsxs)("div",{className:"testimonial-author",children:[(0,a.jsx)(s.TextControl,{placeholder:(0,o.__)("Client name...","section-blocks"),value:e.name,onChange:e=>j(i,"name",e),className:"author-name"}),m&&(0,a.jsx)(s.TextControl,{placeholder:(0,o.__)("Title/Company...","section-blocks"),value:e.title,onChange:e=>j(i,"title",e),className:"author-title"})]})]}),(0,a.jsx)("div",{className:"testimonial-controls",children:(0,a.jsx)(s.Button,{onClick:()=>(e=>{const o=t.filter(((o,l)=>l!==e));n({testimonials:o})})(i),isDestructive:!0,isSmall:!0,children:(0,o.__)("Remove Testimonial","section-blocks")})})]},i)))}),(0,a.jsx)("div",{className:"add-testimonial",children:(0,a.jsx)(s.Button,{onClick:()=>{const e=[...t,{name:"New Customer",title:"Happy Client",text:"Add your testimonial text here.",rating:5,image:null,imageId:0}];n({testimonials:e})},isPrimary:!0,children:(0,o.__)("Add Testimonial","section-blocks")})})]})})]})}})}},l={};function s(e){var a=l[e];if(void 0!==a)return a.exports;var n=l[e]={exports:{}};return o[e](n,n.exports,s),n.exports}s.m=o,e=[],s.O=(o,l,a,n)=>{if(!l){var t=1/0;for(d=0;d<e.length;d++){for(var[l,a,n]=e[d],i=!0,c=0;c<l.length;c++)(!1&n||t>=n)&&Object.keys(s.O).every((e=>s.O[e](l[c])))?l.splice(c--,1):(i=!1,n<t&&(t=n));if(i){e.splice(d--,1);var r=a();void 0!==r&&(o=r)}}return o}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[l,a,n]},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={ 880:0,512:0};s.O.j=o=>0===e[o];var o=(o,l)=>{var a,n,[t,i,c]=l,r=0;if(t.some((o=>0!==e[o]))){for(a in i)s.o(i,a)&&(s.m[a]=i[a]);if(c)var d=c(s)}for(o&&o(l);r<t.length;r++)n=t[r],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return s.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var a=s.O(void 0,[512],(()=>s(365)));a=s.O(a)})();1 (()=>{"use strict";var e,o={365:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,s=window.wp.components,a=window.ReactJSXRuntime,n=JSON.parse('{"UU":"create-block/testimonials-section"}');(0,e.registerBlockType)(n.UU,{edit:function({attributes:e,setAttributes:n}){const{testimonials:t,layout:i,columns:c,showRatings:r,showImages:d,showTitles:m,backgroundColor:u,textColor:g,cardBackgroundColor:b,starColor:h,borderRadius:x,spacing:_,animationEffect:p,autoplay:k,autoplaySpeed:C}=e,v=(0,l.useBlockProps)({style:{backgroundColor:u,color:g}}),j=(e,o,l)=>{const s=[...t];s[e]={...s[e],[o]:l},n({testimonials:s})},y=e=>{const o=[];for(let l=1;l<=5;l++)o.push((0,a.jsx)("span",{className:"star "+(l<=e?"filled":"empty"),style:{color:l<=e?h:"#ddd"},children:"★"},l));return o};return(0,a.jsxs)("div",{...v,children:[(0,a.jsxs)(l.InspectorControls,{children:[(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Layout","section-blocks"),value:i,options:[{label:(0,o.__)("Grid","section-blocks"),value:"grid"},{label:(0,o.__)("Carousel","section-blocks"),value:"carousel"}],onChange:e=>n({layout:e})}),"grid"===i&&(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Columns","section-blocks"),value:c,onChange:e=>n({columns:e}),min:1,max:4}),(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:_,options:[{label:(0,o.__)("Compact","section-blocks"),value:"compact"},{label:(0,o.__)("Normal","section-blocks"),value:"normal"},{label:(0,o.__)("Spacious","section-blocks"),value:"spacious"}],onChange:e=>n({spacing:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Display Options","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Ratings","section-blocks"),checked:r,onChange:e=>n({showRatings:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Images","section-blocks"),checked:d,onChange:e=>n({showImages:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Titles","section-blocks"),checked:m,onChange:e=>n({showTitles:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Background Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:u,onChange:e=>n({backgroundColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Text Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:g,onChange:e=>n({textColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Card Background Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:b,onChange:e=>n({cardBackgroundColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Star Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:h,onChange:e=>n({starColor:e})})]}),(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:x,onChange:e=>n({borderRadius:e}),min:0,max:50})]}),"carousel"===i&&(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Carousel Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Animation Effect","section-blocks"),value:p,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade","section-blocks"),value:"fade"},{label:(0,o.__)("Slide","section-blocks"),value:"slide"},{label:(0,o.__)("Zoom","section-blocks"),value:"zoom"}],onChange:e=>n({animationEffect:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Autoplay","section-blocks"),checked:k,onChange:e=>n({autoplay:e})}),k&&(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Autoplay Speed (ms)","section-blocks"),value:C,onChange:e=>n({autoplaySpeed:e}),min:1e3,max:1e4,step:500})]})]}),(0,a.jsx)("div",{className:`testimonials-section layout-${i} ${(()=>{switch(_){case"compact":return"spacing-compact";case"spacious":return"spacing-spacious";default:return"spacing-normal"}})()}`,children:(0,a.jsxs)("div",{className:"testimonials-container",children:[(0,a.jsx)("div",{className:"testimonials-grid "+("grid"===i?`columns-${c}`:""),style:"grid"===i?{"--sb-cols":c,"--sb-cols-tablet":c>=4?3:c,"--sb-cols-mobile":Math.min(c,2)}:{},children:t.map(((e,i)=>(0,a.jsxs)("div",{className:"testimonial-card",style:{backgroundColor:b,borderRadius:`${x}px`},children:[(0,a.jsxs)("div",{className:"testimonial-content",children:[d&&(0,a.jsxs)("div",{className:"testimonial-image",children:[(0,a.jsx)(l.MediaUploadCheck,{children:(0,a.jsx)(l.MediaUpload,{onSelect:e=>{const o=t.map(((o,l)=>l===i?{...o,image:{url:e.url,alt:e.alt||""},imageId:e.id}:o));n({testimonials:o})},allowedTypes:["image"],value:e.imageId,render:({open:l})=>(0,a.jsx)(s.Button,{className:e.image?"image-button has-image":"image-button",onClick:l,children:e.image?(0,a.jsx)("img",{src:e.image.url,alt:e.image.alt||e.name}):(0,o.__)("Add Image","section-blocks")})})}),e.image&&(0,a.jsx)(s.Button,{className:"remove-image",onClick:()=>{j(i,"image",null),j(i,"imageId",0)},isDestructive:!0,isSmall:!0,children:(0,o.__)("Remove","section-blocks")})]}),(0,a.jsx)("div",{className:"testimonial-text",children:(0,a.jsx)(s.TextareaControl,{placeholder:(0,o.__)("Testimonial text...","section-blocks"),value:e.text,onChange:e=>j(i,"text",e)})}),r&&(0,a.jsxs)("div",{className:"testimonial-rating",children:[(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Rating","section-blocks"),value:e.rating,onChange:e=>j(i,"rating",e),min:1,max:5}),(0,a.jsx)("div",{className:"stars",children:y(e.rating)})]}),(0,a.jsxs)("div",{className:"testimonial-author",children:[(0,a.jsx)(s.TextControl,{placeholder:(0,o.__)("Client name...","section-blocks"),value:e.name,onChange:e=>j(i,"name",e),className:"author-name"}),m&&(0,a.jsx)(s.TextControl,{placeholder:(0,o.__)("Title/Company...","section-blocks"),value:e.title,onChange:e=>j(i,"title",e),className:"author-title"})]})]}),(0,a.jsx)("div",{className:"testimonial-controls",children:(0,a.jsx)(s.Button,{onClick:()=>(e=>{const o=t.filter(((o,l)=>l!==e));n({testimonials:o})})(i),isDestructive:!0,isSmall:!0,children:(0,o.__)("Remove Testimonial","section-blocks")})})]},i)))}),(0,a.jsx)("div",{className:"add-testimonial",children:(0,a.jsx)(s.Button,{onClick:()=>{const e=[...t,{name:"New Customer",title:"Happy Client",text:"Add your testimonial text here.",rating:5,image:null,imageId:0}];n({testimonials:e})},isPrimary:!0,children:(0,o.__)("Add Testimonial","section-blocks")})})]})})]})}})}},l={};function s(e){var a=l[e];if(void 0!==a)return a.exports;var n=l[e]={exports:{}};return o[e](n,n.exports,s),n.exports}s.m=o,e=[],s.O=(o,l,a,n)=>{if(!l){var t=1/0;for(d=0;d<e.length;d++){for(var[l,a,n]=e[d],i=!0,c=0;c<l.length;c++)(!1&n||t>=n)&&Object.keys(s.O).every((e=>s.O[e](l[c])))?l.splice(c--,1):(i=!1,n<t&&(t=n));if(i){e.splice(d--,1);var r=a();void 0!==r&&(o=r)}}return o}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[l,a,n]},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={6880:0,7512:0};s.O.j=o=>0===e[o];var o=(o,l)=>{var a,n,[t,i,c]=l,r=0;if(t.some((o=>0!==e[o]))){for(a in i)s.o(i,a)&&(s.m[a]=i[a]);if(c)var d=c(s)}for(o&&o(l);r<t.length;r++)n=t[r],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return s.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var a=s.O(void 0,[7512],(()=>s(365)));a=s.O(a)})(); -
section-blocks/tags/1.3.0/build/video-cta-section/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' e6a1fce9d4cbac319cf5');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'a8377fa78a037e86d624'); -
section-blocks/tags/1.3.0/build/video-cta-section/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,o={351:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,t=window.wp.components,n=window.ReactJSXRuntime,s=JSON.parse('{"UU":"create-block/video-cta-section"}');(0,e.registerBlockType)(s.UU,{edit:function({attributes:e,setAttributes:s}){const{heading:a,subheading:i,description:c,videoType:r,videoUrl:d,videoId:u,videoAutoplay:b,videoMuted:_,videoLoop:h,videoControls:p,videoLazyLoad:v,videoPoster:g,videoPosterId:x,videoAltText:k,videoCaption:m,layout:C,primaryButtonText:j,primaryButtonUrl:y,primaryButtonStyle:B,primaryButtonAction:S,primaryButtonTarget:N,secondaryButtonText:T,secondaryButtonUrl:f,secondaryButtonStyle:w,secondaryButtonAction:R,secondaryButtonTarget:P,showSecondaryButton:O,backgroundType:U,backgroundColor:L,gradientColors:$,backgroundImage:A,backgroundImageId:I,overlayColor:F,overlayOpacity:M,textColor:V,headingColor:E,primaryButtonColor:D,primaryButtonTextColor:z,secondaryButtonColor:G,secondaryButtonTextColor:J,textAlignment:W,contentAnimation:Y,spacing:q,borderRadius:H,customCSS:X}=e,Z=()=>{const e=((e,o)=>{if(!e)return"";if("youtube"===o){const o=e.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&\n?#]+)/);return o?o[1]:""}if("vimeo"===o){const o=e.match(/vimeo\.com\/(\d+)/);return o?o[1]:""}return""})(d,r);return d?"youtube"===r&&e?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsx)("iframe",{src:`https://www.youtube.com/embed/${e}?rel=0&showinfo=0&controls=${p?1:0}&mute=${_?1:0}&loop=${h?1:0}`,frameBorder:"0",allowFullScreen:!0,title:k||a})}):"vimeo"===r&&e?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsx)("iframe",{src:`https://player.vimeo.com/video/${e}?muted=${_?1:0}&loop=${h?1:0}&controls=${p?1:0}`,frameBorder:"0",allowFullScreen:!0,title:k||a})}):"self-hosted"===r&&d?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsxs)("video",{src:d,poster:g,controls:p,muted:_,loop:h,style:{width:"100%",height:"auto"},children:[m&&(0,n.jsx)("track",{kind:"captions",src:m}),(0,o.__)("Your browser does not support the video tag.","section-blocks")]})}):(0,n.jsx)("div",{className:"video-cta-video-placeholder",children:(0,n.jsxs)("div",{className:"video-placeholder-content",children:[(0,n.jsx)("span",{className:"dashicons dashicons-warning"}),(0,n.jsx)("p",{children:(0,o.__)("Invalid video URL","section-blocks")})]})}):(0,n.jsx)("div",{className:"video-cta-video-placeholder",children:(0,n.jsxs)("div",{className:"video-placeholder-content",children:[(0,n.jsx)("span",{className:"dashicons dashicons-video-alt3"}),(0,n.jsx)("p",{children:(0,o.__)("Add a video URL to see preview","section-blocks")})]})})},K=(0,l.useBlockProps)({className:`video-cta-section layout-${C} text-${W} spacing-${q} animation-${Y}`,style:{...(()=>{let e={};return"color"===U?e.backgroundColor=L:"gradient"===U?e.background=`linear-gradient(135deg, ${$.start} 0%, ${$.end} 100%)`:"image"===U&&A&&(e.backgroundImage=`url(${A})`,e.backgroundSize="cover",e.backgroundPosition="center",e.backgroundRepeat="no-repeat"),e})(),borderRadius:`${H}px`,position:"relative"}});return(0,n.jsxs)("div",{...K,children:[(0,n.jsxs)(l.InspectorControls,{children:[(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Video Settings","section-blocks"),initialOpen:!0,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Video Type","section-blocks"),value:r,options:[{label:(0,o.__)("YouTube","section-blocks"),value:"youtube"},{label:(0,o.__)("Vimeo","section-blocks"),value:"vimeo"},{label:(0,o.__)("Self-hosted","section-blocks"),value:"self-hosted"}],onChange:e=>s({videoType:e})}),"self-hosted"===r?(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({videoUrl:e.url,videoId:e.id})},allowedTypes:["video"],value:u,render:({open:e})=>(0,n.jsx)(t.Button,{className:u?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:u?(0,o.__)("Replace Video","section-blocks"):(0,o.__)("Upload Video","section-blocks")})})}):(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video URL","section-blocks"),value:d,onChange:e=>s({videoUrl:e}),placeholder:"youtube"===r?"https://www.youtube.com/watch?v=...":"https://vimeo.com/..."}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Autoplay","section-blocks"),checked:b,onChange:e=>s({videoAutoplay:e}),help:(0,o.__)("Note: Most browsers require muted videos for autoplay","section-blocks")}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Muted","section-blocks"),checked:_,onChange:e=>s({videoMuted:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Loop","section-blocks"),checked:h,onChange:e=>s({videoLoop:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Show Controls","section-blocks"),checked:p,onChange:e=>s({videoControls:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Lazy Load","section-blocks"),checked:v,onChange:e=>s({videoLazyLoad:e}),help:(0,o.__)("Improves page load performance","section-blocks")}),"self-hosted"===r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({videoPoster:e.url,videoPosterId:e.id})},allowedTypes:["image"],value:x,render:({open:e})=>(0,n.jsx)(t.Button,{className:x?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:x?(0,o.__)("Replace Poster","section-blocks"):(0,o.__)("Set Poster Image","section-blocks")})})})]}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video Alt Text","section-blocks"),value:k,onChange:e=>s({videoAltText:e}),help:(0,o.__)("Describe the video for accessibility","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video Caption URL","section-blocks"),value:m,onChange:e=>s({videoCaption:e}),help:(0,o.__)("URL to WebVTT caption file","section-blocks")})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:C,options:[{label:(0,o.__)("Full Width","section-blocks"),value:"full-width"},{label:(0,o.__)("Boxed","section-blocks"),value:"boxed"},{label:(0,o.__)("Split - Video Left","section-blocks"),value:"split-left"},{label:(0,o.__)("Split - Video Right","section-blocks"),value:"split-right"},{label:(0,o.__)("Centered","section-blocks"),value:"centered"}],onChange:e=>s({layout:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Text Alignment","section-blocks"),value:W,options:[{label:(0,o.__)("Left","section-blocks"),value:"left"},{label:(0,o.__)("Center","section-blocks"),value:"center"},{label:(0,o.__)("Right","section-blocks"),value:"right"}],onChange:e=>s({textAlignment:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:q,options:[{label:(0,o.__)("Small","section-blocks"),value:"small"},{label:(0,o.__)("Medium","section-blocks"),value:"medium"},{label:(0,o.__)("Large","section-blocks"),value:"large"},{label:(0,o.__)("Extra Large","section-blocks"),value:"extra-large"}],onChange:e=>s({spacing:e})}),(0,n.jsx)(t.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:H,onChange:e=>s({borderRadius:e}),min:0,max:50})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Button Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)("h4",{children:(0,o.__)("Primary Button","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Button URL","section-blocks"),value:y,onChange:e=>s({primaryButtonUrl:e}),placeholder:"https://"}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Style","section-blocks"),value:B,options:[{label:(0,o.__)("Filled","section-blocks"),value:"filled"},{label:(0,o.__)("Outline","section-blocks"),value:"outline"},{label:(0,o.__)("Ghost","section-blocks"),value:"ghost"}],onChange:e=>s({primaryButtonStyle:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Action","section-blocks"),value:S,options:[{label:(0,o.__)("Link","section-blocks"),value:"link"},{label:(0,o.__)("Scroll to Section","section-blocks"),value:"scroll"},{label:(0,o.__)("Open Popup","section-blocks"),value:"popup"}],onChange:e=>s({primaryButtonAction:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Open in New Tab","section-blocks"),checked:N,onChange:e=>s({primaryButtonTarget:e})}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Show Secondary Button","section-blocks"),checked:O,onChange:e=>s({showSecondaryButton:e})}),O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h4",{children:(0,o.__)("Secondary Button","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Button URL","section-blocks"),value:f,onChange:e=>s({secondaryButtonUrl:e}),placeholder:"https://"}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Style","section-blocks"),value:w,options:[{label:(0,o.__)("Filled","section-blocks"),value:"filled"},{label:(0,o.__)("Outline","section-blocks"),value:"outline"},{label:(0,o.__)("Ghost","section-blocks"),value:"ghost"}],onChange:e=>s({secondaryButtonStyle:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Action","section-blocks"),value:R,options:[{label:(0,o.__)("Link","section-blocks"),value:"link"},{label:(0,o.__)("Scroll to Section","section-blocks"),value:"scroll"},{label:(0,o.__)("Open Popup","section-blocks"),value:"popup"}],onChange:e=>s({secondaryButtonAction:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Open in New Tab","section-blocks"),checked:P,onChange:e=>s({secondaryButtonTarget:e})})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Background Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Background Type","section-blocks"),value:U,options:[{label:(0,o.__)("Solid Color","section-blocks"),value:"color"},{label:(0,o.__)("Gradient","section-blocks"),value:"gradient"},{label:(0,o.__)("Image","section-blocks"),value:"image"}],onChange:e=>s({backgroundType:e})}),"color"===U&&(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Background Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:L,onChange:e=>s({backgroundColor:e})})]}),"gradient"===U&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Gradient Start Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:$.start,onChange:e=>s({gradientColors:{...$,start:e}})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Gradient End Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:$.end,onChange:e=>s({gradientColors:{...$,end:e}})})]})]}),"image"===U&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({backgroundImage:e.url,backgroundImageId:e.id})},allowedTypes:["image"],value:I,render:({open:e})=>(0,n.jsx)(t.Button,{className:I?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:I?(0,o.__)("Replace Background","section-blocks"):(0,o.__)("Set Background Image","section-blocks")})})}),A&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Overlay Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:F,onChange:e=>s({overlayColor:e})})]}),(0,n.jsx)(t.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:M,onChange:e=>s({overlayOpacity:e}),min:0,max:1,step:.1})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Text Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:V,onChange:e=>s({textColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Heading Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:E,onChange:e=>s({headingColor:e})})]}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Primary Button Background","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:D,onChange:e=>s({primaryButtonColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Primary Button Text","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:z,onChange:e=>s({primaryButtonTextColor:e})})]}),O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Secondary Button Background","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:G,onChange:e=>s({secondaryButtonColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Secondary Button Text","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:J,onChange:e=>s({secondaryButtonTextColor:e})})]})]}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Content Animation","section-blocks"),value:Y,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade In","section-blocks"),value:"fade-in"},{label:(0,o.__)("Slide Up","section-blocks"),value:"slide-up"},{label:(0,o.__)("Slide Left","section-blocks"),value:"slide-left"},{label:(0,o.__)("Slide Right","section-blocks"),value:"slide-right"},{label:(0,o.__)("Zoom In","section-blocks"),value:"zoom-in"}],onChange:e=>s({contentAnimation:e})})]}),(0,n.jsx)(t.PanelBody,{title:(0,o.__)("Advanced Settings","section-blocks"),initialOpen:!1,children:(0,n.jsx)(t.TextControl,{label:(0,o.__)("Custom CSS Classes","section-blocks"),value:X,onChange:e=>s({customCSS:e}),help:(0,o.__)("Add custom CSS classes separated by spaces","section-blocks")})})]}),"image"===U&&A&&(0,n.jsx)("div",{className:"video-cta-overlay",style:{backgroundColor:F,opacity:M,position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:`${H}px`}}),(0,n.jsx)("div",{className:"video-cta-content",style:{position:"relative",zIndex:1},children:"split-left"===C||"split-right"===C?(0,n.jsxs)("div",{className:"video-cta-split-layout",children:[(0,n.jsx)("div",{className:"video-cta-video-column",children:Z()}),(0,n.jsxs)("div",{className:"video-cta-content-column",children:[(0,n.jsxs)("div",{className:"video-cta-text",style:{color:V},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"video-cta-heading",value:a,onChange:e=>s({heading:e}),placeholder:(0,o.__)("Enter your compelling headline...","section-blocks"),style:{color:E}}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-subheading",value:i,onChange:e=>s({subheading:e}),placeholder:(0,o.__)("Enter your engaging subheading...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-description",value:c,onChange:e=>s({description:e}),placeholder:(0,o.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"video-cta-buttons",children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-primary-button button-${B}`,value:j,onChange:e=>s({primaryButtonText:e}),placeholder:(0,o.__)("Primary button text...","section-blocks"),style:{backgroundColor:"filled"===B?D:"transparent",color:z,borderColor:D,borderRadius:`${H}px`}}),O&&(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-secondary-button button-${w}`,value:T,onChange:e=>s({secondaryButtonText:e}),placeholder:(0,o.__)("Secondary button text...","section-blocks"),style:{backgroundColor:"filled"===w?G:"transparent",color:J,borderColor:G,borderRadius:`${H}px`}})]})})]})]}):(0,n.jsx)("div",{className:"video-cta-single-layout",children:("full-width"===C||"boxed"===C||"centered"===C)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"video-cta-video-section",children:Z()}),(0,n.jsxs)("div",{className:"video-cta-content-section",children:[(0,n.jsxs)("div",{className:"video-cta-text",style:{color:V},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"video-cta-heading",value:a,onChange:e=>s({heading:e}),placeholder:(0,o.__)("Enter your compelling headline...","section-blocks"),style:{color:E}}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-subheading",value:i,onChange:e=>s({subheading:e}),placeholder:(0,o.__)("Enter your engaging subheading...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-description",value:c,onChange:e=>s({description:e}),placeholder:(0,o.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"video-cta-buttons",children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-primary-button button-${B}`,value:j,onChange:e=>s({primaryButtonText:e}),placeholder:(0,o.__)("Primary button text...","section-blocks"),style:{backgroundColor:"filled"===B?D:"transparent",color:z,borderColor:D,borderRadius:`${H}px`}}),O&&(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-secondary-button button-${w}`,value:T,onChange:e=>s({secondaryButtonText:e}),placeholder:(0,o.__)("Secondary button text...","section-blocks"),style:{backgroundColor:"filled"===w?G:"transparent",color:J,borderColor:G,borderRadius:`${H}px`}})]})})]})]})})})]})}})}},l={};function t(e){var n=l[e];if(void 0!==n)return n.exports;var s=l[e]={exports:{}};return o[e](s,s.exports,t),s.exports}t.m=o,e=[],t.O=(o,l,n,s)=>{if(!l){var a=1/0;for(d=0;d<e.length;d++){for(var[l,n,s]=e[d],i=!0,c=0;c<l.length;c++)(!1&s||a>=s)&&Object.keys(t.O).every((e=>t.O[e](l[c])))?l.splice(c--,1):(i=!1,s<a&&(a=s));if(i){e.splice(d--,1);var r=n();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[l,n,s]},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={ 946:0,390:0};t.O.j=o=>0===e[o];var o=(o,l)=>{var n,s,[a,i,c]=l,r=0;if(a.some((o=>0!==e[o]))){for(n in i)t.o(i,n)&&(t.m[n]=i[n]);if(c)var d=c(t)}for(o&&o(l);r<a.length;r++)s=a[r],t.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return t.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var n=t.O(void 0,[390],(()=>t(351)));n=t.O(n)})();1 (()=>{"use strict";var e,o={351:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,t=window.wp.components,n=window.ReactJSXRuntime,s=JSON.parse('{"UU":"create-block/video-cta-section"}');(0,e.registerBlockType)(s.UU,{edit:function({attributes:e,setAttributes:s}){const{heading:a,subheading:i,description:c,videoType:r,videoUrl:d,videoId:u,videoAutoplay:b,videoMuted:_,videoLoop:h,videoControls:p,videoLazyLoad:v,videoPoster:g,videoPosterId:x,videoAltText:k,videoCaption:m,layout:C,primaryButtonText:j,primaryButtonUrl:y,primaryButtonStyle:B,primaryButtonAction:S,primaryButtonTarget:N,secondaryButtonText:T,secondaryButtonUrl:f,secondaryButtonStyle:w,secondaryButtonAction:R,secondaryButtonTarget:P,showSecondaryButton:O,backgroundType:U,backgroundColor:L,gradientColors:$,backgroundImage:A,backgroundImageId:I,overlayColor:F,overlayOpacity:M,textColor:V,headingColor:E,primaryButtonColor:D,primaryButtonTextColor:z,secondaryButtonColor:G,secondaryButtonTextColor:J,textAlignment:W,contentAnimation:Y,spacing:q,borderRadius:H,customCSS:X}=e,Z=()=>{const e=((e,o)=>{if(!e)return"";if("youtube"===o){const o=e.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&\n?#]+)/);return o?o[1]:""}if("vimeo"===o){const o=e.match(/vimeo\.com\/(\d+)/);return o?o[1]:""}return""})(d,r);return d?"youtube"===r&&e?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsx)("iframe",{src:`https://www.youtube.com/embed/${e}?rel=0&showinfo=0&controls=${p?1:0}&mute=${_?1:0}&loop=${h?1:0}`,frameBorder:"0",allowFullScreen:!0,title:k||a})}):"vimeo"===r&&e?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsx)("iframe",{src:`https://player.vimeo.com/video/${e}?muted=${_?1:0}&loop=${h?1:0}&controls=${p?1:0}`,frameBorder:"0",allowFullScreen:!0,title:k||a})}):"self-hosted"===r&&d?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsxs)("video",{src:d,poster:g,controls:p,muted:_,loop:h,style:{width:"100%",height:"auto"},children:[m&&(0,n.jsx)("track",{kind:"captions",src:m}),(0,o.__)("Your browser does not support the video tag.","section-blocks")]})}):(0,n.jsx)("div",{className:"video-cta-video-placeholder",children:(0,n.jsxs)("div",{className:"video-placeholder-content",children:[(0,n.jsx)("span",{className:"dashicons dashicons-warning"}),(0,n.jsx)("p",{children:(0,o.__)("Invalid video URL","section-blocks")})]})}):(0,n.jsx)("div",{className:"video-cta-video-placeholder",children:(0,n.jsxs)("div",{className:"video-placeholder-content",children:[(0,n.jsx)("span",{className:"dashicons dashicons-video-alt3"}),(0,n.jsx)("p",{children:(0,o.__)("Add a video URL to see preview","section-blocks")})]})})},K=(0,l.useBlockProps)({className:`video-cta-section layout-${C} text-${W} spacing-${q} animation-${Y}`,style:{...(()=>{let e={};return"color"===U?e.backgroundColor=L:"gradient"===U?e.background=`linear-gradient(135deg, ${$.start} 0%, ${$.end} 100%)`:"image"===U&&A&&(e.backgroundImage=`url(${A})`,e.backgroundSize="cover",e.backgroundPosition="center",e.backgroundRepeat="no-repeat"),e})(),borderRadius:`${H}px`,position:"relative"}});return(0,n.jsxs)("div",{...K,children:[(0,n.jsxs)(l.InspectorControls,{children:[(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Video Settings","section-blocks"),initialOpen:!0,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Video Type","section-blocks"),value:r,options:[{label:(0,o.__)("YouTube","section-blocks"),value:"youtube"},{label:(0,o.__)("Vimeo","section-blocks"),value:"vimeo"},{label:(0,o.__)("Self-hosted","section-blocks"),value:"self-hosted"}],onChange:e=>s({videoType:e})}),"self-hosted"===r?(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({videoUrl:e.url,videoId:e.id})},allowedTypes:["video"],value:u,render:({open:e})=>(0,n.jsx)(t.Button,{className:u?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:u?(0,o.__)("Replace Video","section-blocks"):(0,o.__)("Upload Video","section-blocks")})})}):(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video URL","section-blocks"),value:d,onChange:e=>s({videoUrl:e}),placeholder:"youtube"===r?"https://www.youtube.com/watch?v=...":"https://vimeo.com/..."}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Autoplay","section-blocks"),checked:b,onChange:e=>s({videoAutoplay:e}),help:(0,o.__)("Note: Most browsers require muted videos for autoplay","section-blocks")}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Muted","section-blocks"),checked:_,onChange:e=>s({videoMuted:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Loop","section-blocks"),checked:h,onChange:e=>s({videoLoop:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Show Controls","section-blocks"),checked:p,onChange:e=>s({videoControls:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Lazy Load","section-blocks"),checked:v,onChange:e=>s({videoLazyLoad:e}),help:(0,o.__)("Improves page load performance","section-blocks")}),"self-hosted"===r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({videoPoster:e.url,videoPosterId:e.id})},allowedTypes:["image"],value:x,render:({open:e})=>(0,n.jsx)(t.Button,{className:x?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:x?(0,o.__)("Replace Poster","section-blocks"):(0,o.__)("Set Poster Image","section-blocks")})})})]}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video Alt Text","section-blocks"),value:k,onChange:e=>s({videoAltText:e}),help:(0,o.__)("Describe the video for accessibility","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video Caption URL","section-blocks"),value:m,onChange:e=>s({videoCaption:e}),help:(0,o.__)("URL to WebVTT caption file","section-blocks")})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:C,options:[{label:(0,o.__)("Full Width","section-blocks"),value:"full-width"},{label:(0,o.__)("Boxed","section-blocks"),value:"boxed"},{label:(0,o.__)("Split - Video Left","section-blocks"),value:"split-left"},{label:(0,o.__)("Split - Video Right","section-blocks"),value:"split-right"},{label:(0,o.__)("Centered","section-blocks"),value:"centered"}],onChange:e=>s({layout:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Text Alignment","section-blocks"),value:W,options:[{label:(0,o.__)("Left","section-blocks"),value:"left"},{label:(0,o.__)("Center","section-blocks"),value:"center"},{label:(0,o.__)("Right","section-blocks"),value:"right"}],onChange:e=>s({textAlignment:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:q,options:[{label:(0,o.__)("Small","section-blocks"),value:"small"},{label:(0,o.__)("Medium","section-blocks"),value:"medium"},{label:(0,o.__)("Large","section-blocks"),value:"large"},{label:(0,o.__)("Extra Large","section-blocks"),value:"extra-large"}],onChange:e=>s({spacing:e})}),(0,n.jsx)(t.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:H,onChange:e=>s({borderRadius:e}),min:0,max:50})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Button Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)("h4",{children:(0,o.__)("Primary Button","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Button URL","section-blocks"),value:y,onChange:e=>s({primaryButtonUrl:e}),placeholder:"https://"}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Style","section-blocks"),value:B,options:[{label:(0,o.__)("Filled","section-blocks"),value:"filled"},{label:(0,o.__)("Outline","section-blocks"),value:"outline"},{label:(0,o.__)("Ghost","section-blocks"),value:"ghost"}],onChange:e=>s({primaryButtonStyle:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Action","section-blocks"),value:S,options:[{label:(0,o.__)("Link","section-blocks"),value:"link"},{label:(0,o.__)("Scroll to Section","section-blocks"),value:"scroll"},{label:(0,o.__)("Open Popup","section-blocks"),value:"popup"}],onChange:e=>s({primaryButtonAction:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Open in New Tab","section-blocks"),checked:N,onChange:e=>s({primaryButtonTarget:e})}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Show Secondary Button","section-blocks"),checked:O,onChange:e=>s({showSecondaryButton:e})}),O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h4",{children:(0,o.__)("Secondary Button","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Button URL","section-blocks"),value:f,onChange:e=>s({secondaryButtonUrl:e}),placeholder:"https://"}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Style","section-blocks"),value:w,options:[{label:(0,o.__)("Filled","section-blocks"),value:"filled"},{label:(0,o.__)("Outline","section-blocks"),value:"outline"},{label:(0,o.__)("Ghost","section-blocks"),value:"ghost"}],onChange:e=>s({secondaryButtonStyle:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Action","section-blocks"),value:R,options:[{label:(0,o.__)("Link","section-blocks"),value:"link"},{label:(0,o.__)("Scroll to Section","section-blocks"),value:"scroll"},{label:(0,o.__)("Open Popup","section-blocks"),value:"popup"}],onChange:e=>s({secondaryButtonAction:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Open in New Tab","section-blocks"),checked:P,onChange:e=>s({secondaryButtonTarget:e})})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Background Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Background Type","section-blocks"),value:U,options:[{label:(0,o.__)("Solid Color","section-blocks"),value:"color"},{label:(0,o.__)("Gradient","section-blocks"),value:"gradient"},{label:(0,o.__)("Image","section-blocks"),value:"image"}],onChange:e=>s({backgroundType:e})}),"color"===U&&(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Background Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:L,onChange:e=>s({backgroundColor:e})})]}),"gradient"===U&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Gradient Start Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:$.start,onChange:e=>s({gradientColors:{...$,start:e}})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Gradient End Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:$.end,onChange:e=>s({gradientColors:{...$,end:e}})})]})]}),"image"===U&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({backgroundImage:e.url,backgroundImageId:e.id})},allowedTypes:["image"],value:I,render:({open:e})=>(0,n.jsx)(t.Button,{className:I?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:I?(0,o.__)("Replace Background","section-blocks"):(0,o.__)("Set Background Image","section-blocks")})})}),A&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Overlay Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:F,onChange:e=>s({overlayColor:e})})]}),(0,n.jsx)(t.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:M,onChange:e=>s({overlayOpacity:e}),min:0,max:1,step:.1})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Text Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:V,onChange:e=>s({textColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Heading Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:E,onChange:e=>s({headingColor:e})})]}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Primary Button Background","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:D,onChange:e=>s({primaryButtonColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Primary Button Text","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:z,onChange:e=>s({primaryButtonTextColor:e})})]}),O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Secondary Button Background","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:G,onChange:e=>s({secondaryButtonColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Secondary Button Text","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:J,onChange:e=>s({secondaryButtonTextColor:e})})]})]}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Content Animation","section-blocks"),value:Y,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade In","section-blocks"),value:"fade-in"},{label:(0,o.__)("Slide Up","section-blocks"),value:"slide-up"},{label:(0,o.__)("Slide Left","section-blocks"),value:"slide-left"},{label:(0,o.__)("Slide Right","section-blocks"),value:"slide-right"},{label:(0,o.__)("Zoom In","section-blocks"),value:"zoom-in"}],onChange:e=>s({contentAnimation:e})})]}),(0,n.jsx)(t.PanelBody,{title:(0,o.__)("Advanced Settings","section-blocks"),initialOpen:!1,children:(0,n.jsx)(t.TextControl,{label:(0,o.__)("Custom CSS Classes","section-blocks"),value:X,onChange:e=>s({customCSS:e}),help:(0,o.__)("Add custom CSS classes separated by spaces","section-blocks")})})]}),"image"===U&&A&&(0,n.jsx)("div",{className:"video-cta-overlay",style:{backgroundColor:F,opacity:M,position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:`${H}px`}}),(0,n.jsx)("div",{className:"video-cta-content",style:{position:"relative",zIndex:1},children:"split-left"===C||"split-right"===C?(0,n.jsxs)("div",{className:"video-cta-split-layout",children:[(0,n.jsx)("div",{className:"video-cta-video-column",children:Z()}),(0,n.jsxs)("div",{className:"video-cta-content-column",children:[(0,n.jsxs)("div",{className:"video-cta-text",style:{color:V},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"video-cta-heading",value:a,onChange:e=>s({heading:e}),placeholder:(0,o.__)("Enter your compelling headline...","section-blocks"),style:{color:E}}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-subheading",value:i,onChange:e=>s({subheading:e}),placeholder:(0,o.__)("Enter your engaging subheading...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-description",value:c,onChange:e=>s({description:e}),placeholder:(0,o.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"video-cta-buttons",children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-primary-button button-${B}`,value:j,onChange:e=>s({primaryButtonText:e}),placeholder:(0,o.__)("Primary button text...","section-blocks"),style:{backgroundColor:"filled"===B?D:"transparent",color:z,borderColor:D,borderRadius:`${H}px`}}),O&&(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-secondary-button button-${w}`,value:T,onChange:e=>s({secondaryButtonText:e}),placeholder:(0,o.__)("Secondary button text...","section-blocks"),style:{backgroundColor:"filled"===w?G:"transparent",color:J,borderColor:G,borderRadius:`${H}px`}})]})})]})]}):(0,n.jsx)("div",{className:"video-cta-single-layout",children:("full-width"===C||"boxed"===C||"centered"===C)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"video-cta-video-section",children:Z()}),(0,n.jsxs)("div",{className:"video-cta-content-section",children:[(0,n.jsxs)("div",{className:"video-cta-text",style:{color:V},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"video-cta-heading",value:a,onChange:e=>s({heading:e}),placeholder:(0,o.__)("Enter your compelling headline...","section-blocks"),style:{color:E}}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-subheading",value:i,onChange:e=>s({subheading:e}),placeholder:(0,o.__)("Enter your engaging subheading...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-description",value:c,onChange:e=>s({description:e}),placeholder:(0,o.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"video-cta-buttons",children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-primary-button button-${B}`,value:j,onChange:e=>s({primaryButtonText:e}),placeholder:(0,o.__)("Primary button text...","section-blocks"),style:{backgroundColor:"filled"===B?D:"transparent",color:z,borderColor:D,borderRadius:`${H}px`}}),O&&(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-secondary-button button-${w}`,value:T,onChange:e=>s({secondaryButtonText:e}),placeholder:(0,o.__)("Secondary button text...","section-blocks"),style:{backgroundColor:"filled"===w?G:"transparent",color:J,borderColor:G,borderRadius:`${H}px`}})]})})]})]})})})]})}})}},l={};function t(e){var n=l[e];if(void 0!==n)return n.exports;var s=l[e]={exports:{}};return o[e](s,s.exports,t),s.exports}t.m=o,e=[],t.O=(o,l,n,s)=>{if(!l){var a=1/0;for(d=0;d<e.length;d++){for(var[l,n,s]=e[d],i=!0,c=0;c<l.length;c++)(!1&s||a>=s)&&Object.keys(t.O).every((e=>t.O[e](l[c])))?l.splice(c--,1):(i=!1,s<a&&(a=s));if(i){e.splice(d--,1);var r=n();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[l,n,s]},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={3946:0,1390:0};t.O.j=o=>0===e[o];var o=(o,l)=>{var n,s,[a,i,c]=l,r=0;if(a.some((o=>0!==e[o]))){for(n in i)t.o(i,n)&&(t.m[n]=i[n]);if(c)var d=c(t)}for(o&&o(l);r<a.length;r++)s=a[r],t.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return t.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var n=t.O(void 0,[1390],(()=>t(351)));n=t.O(n)})(); -
section-blocks/tags/1.3.0/includes/helpers.php
r3749962 r3750877 162 162 $text = '<span class="sb-button__text">' . wp_kses_post( $button['text'] ) . '</span>'; 163 163 164 if ( empty( $button['url'] ) ) { 164 // No link, or a URL esc_url() rejects (e.g. javascript:): render a non-link button. 165 $url = isset( $button['url'] ) && is_string( $button['url'] ) ? esc_url( $button['url'] ) : ''; 166 if ( '' === $url ) { 165 167 return sprintf( '<span class="%s">%s%s</span>', esc_attr( $class ), $icon, $text ); 166 168 } … … 171 173 '<a class="%1$s" href="%2$s"%3$s>%4$s%5$s%6$s</a>', 172 174 esc_attr( $class ), 173 esc_url( $button['url'] ),175 $url, 174 176 $new_tab ? ' target="_blank" rel="noopener noreferrer"' : '', 175 177 $icon, -
section-blocks/tags/1.3.0/includes/registry.php
r3749962 r3750877 60 60 } 61 61 62 /* 63 * New blocks are added here as they ship. Example for an element block: 64 * $blocks['icon-box'] = array( 'name' => 'section-blocks/icon-box', 'group' => 'element', 'since' => '1.3.0' ); 65 */ 62 // Element blocks, 1.3.0. 63 $elements = array( 64 'advanced-heading', 65 'icon-box', 66 'button-group', 67 'icon-list', 68 'image-box', 69 'star-rating', 70 'logo-cloud', 71 'callout', 72 'social-share', 73 'author-box', 74 'promo-banner', 75 'shape-divider', 76 ); 77 foreach ( $elements as $slug ) { 78 $blocks[ $slug ] = array( 79 'name' => 'section-blocks/' . $slug, 80 'group' => 'element', 81 'since' => '1.3.0', 82 ); 83 } 84 85 // New blocks are added above as they ship (see docs/DEVELOPMENT.md). 66 86 67 87 /** -
section-blocks/tags/1.3.0/readme.txt
r3750774 r3750877 1 === Section Blocks – The Layout Builder for Gutenberg===1 === Section Blocks – Landing Page Sections for the Block Editor === 2 2 Contributors: nazmul111 3 Tags: gutenberg, blocks, hero, pricing, faq3 Tags: blocks, gutenberg blocks, landing page, pricing table, page builder 4 4 Requires at least: 6.6 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 2.97 Stable tag: 1.3.0 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 A comprehensive WordPress Gutenberg plugin with 13 professional section blocks for building modern websites.11 25 ready-made blocks for the block editor: hero, pricing, FAQ, testimonials, icon boxes, logo clouds and more. Free, lightweight, no account needed. 12 12 13 13 == Description == 14 14 15 Section Blocks is a powerful WordPress Gutenberg plugin that provides a complete collection of professional section blocks for building modern, responsive websites. Each block is carefully crafted with beautiful design, extensive customization options, and mobile-first responsive design. 16 17 **Key Features:** 18 19 * 13 professional section blocks 20 * Custom "Section Blocks" category in the Gutenberg editor 21 * Mobile-first responsive design 22 * Extensive color, typography, and spacing customization 23 * Hover effects and scroll-triggered animations 24 * SEO-friendly semantic HTML markup 25 * Accessibility-compliant ARIA labels and keyboard navigation 26 * Works with any properly coded WordPress theme 27 28 **Available Blocks:** 29 30 **Hero Section** — Eye-catching hero sections with background images, customizable headings, subtitles, and call-to-action buttons. Includes overlay controls and multiple text alignment options. 31 32 **Features Section** — Showcase product or service features in a 3–6 column responsive grid. Includes 16+ built-in WordPress Dashicons and optional side images. 33 34 **Services Section** — Display services with stylish cards. Choose from 60+ Dashicons or upload custom images. Supports 2–4 column layouts, hover effects, and CTA buttons. 35 36 **Steps Timeline** — Display multi-step processes with vertical, horizontal, and zigzag layouts. Supports 3–6 configurable steps, visual connectors, and scroll-triggered animations. 37 38 **Video CTA Section** — Engaging video call-to-action sections. Supports YouTube, Vimeo, and self-hosted videos with overlay controls and conversion-focused design. 39 40 **Testimonials Section** — Showcase customer testimonials with star ratings, client images, and names. Supports both carousel (with pause-on-hover) and grid layout options. 41 42 **Pricing Tables** — Create professional pricing comparison tables with multiple plans, feature lists, billing period toggle, and highlighted recommended plans. 43 44 **Team Members** — Showcase your team with Card, Overlay, Minimal, and Professional layout styles. Includes social media links and hover effects. 45 46 **FAQ / Accordion** — Toggle-style accordion sections with smooth animations and built-in schema markup for SEO benefits. 47 48 **Gallery Portfolio** — Display images in masonry or grid layouts with filterable categories and lightbox functionality. 49 50 **Newsletter Signup** — Email capture forms with Mailchimp integration, WordPress native storage, privacy consent support, and honeypot spam protection. Configure under Settings > Newsletter Settings. 51 52 **Call to Action** — High-converting CTA sections with solid, gradient, or image backgrounds, customizable text, and multiple button options. 53 54 **Advanced Container** — A layout container for any blocks, with boxed, wide, or full width, a max-width control, and color, gradient, or image backgrounds. 15 Build beautiful landing pages in the WordPress block editor — no page builder needed. Pick a section, change the text, publish. Every block follows your theme's colors and fonts and looks great on desktop and mobile. 16 17 https://youtu.be/IVlSIj16_A4 18 19 **Why Section Blocks** 20 21 * 25 blocks: 13 complete page sections + 12 design elements 22 * 100% free: no locked features, no account, no upsell nags in the editor 23 * Works with any theme and follows its colors, fonts and spacing 24 * Responsive and accessible: keyboard friendly, reduced-motion aware 25 * Lightweight: each block only loads its own CSS and JS on pages that use it 26 * Per-block Responsive Visibility (hide on desktop, tablet or mobile) and Custom CSS 27 * Built-in FAQ schema for search engines 28 29 = Sections = 30 31 **Hero Section** — Eye-catching hero with background image, overlay, heading, subtitle and call-to-action button. 32 33 **Features Section** — Showcase features in a 3–6 column responsive grid with icons and an optional side image. 34 35 **Services Section** — Service cards with icons or images, 2–4 columns, hover effects and buttons. 36 37 **Steps Timeline** — Multi-step processes in vertical, horizontal or zigzag layouts with connectors and scroll animations. 38 39 **Video CTA Section** — Video call to action for YouTube, Vimeo or self-hosted video. 40 41 **Testimonials Section** — Customer quotes with star ratings and photos, as a grid or carousel. 42 43 **Pricing Tables** — Plan comparison with feature lists, monthly/yearly toggle and a highlighted plan. 44 45 **Team Members** — Team grids in Card, Overlay, Minimal or Professional styles with social links. 46 47 **FAQ / Accordion** — Accessible accordion with search, categories and FAQ schema. 48 49 **Gallery Portfolio** — Masonry or grid galleries with filterable categories and a lightbox. 50 51 **Newsletter Signup** — Email capture with Mailchimp, a custom API or WordPress storage, privacy consent and spam protection. 52 53 **Call to Action** — Conversion sections with solid, gradient or image backgrounds and two buttons. 54 55 **Advanced Container** — A layout container for any blocks: boxed, wide or full width, with color, gradient or image backgrounds. 56 57 = Elements = 58 59 **Advanced Heading** — Heading with eyebrow text, subheading, decorative separator and optional gradient text. 60 61 **Icon Box** — Icon, title and text in several styles; the whole box can be a link. 62 63 **Button Group** — Several buttons side by side with styles, icons, alignment and stacking on mobile. 64 65 **Icon List** — Checklists and feature lists with custom icons, columns and dividers. 66 67 **Image Box** — Image with title and text as a card, overlay or side-by-side layout. 68 69 **Star Rating** — Accessible star ratings with half stars and an optional label. 70 71 **Logo Cloud** — Partner and client logos in a grid or an infinite scrolling marquee with a Pause button (static for visitors who prefer reduced motion). 72 73 **Callout** — Info, success, warning, tip and danger notices with icons. 74 75 **Social Share** — Share links for X, Facebook, LinkedIn, WhatsApp, Reddit and email. No tracking, no external scripts. 76 77 **Author Box** — Author bio from the post author or custom details, with avatar and links. 78 79 **Promo Banner** — Image banner with badge, heading, text and button for offers and announcements. 80 81 **Shape Divider** — Wave, curve, tilt, zigzag and other SVG dividers between sections. 55 82 56 83 == Installation == … … 58 85 1. Upload the plugin files to `/wp-content/plugins/section-blocks`, or install directly through the WordPress plugins screen. 59 86 2. Activate the plugin through the 'Plugins' screen in WordPress. 60 3. In the Gutenberg editor, look for the "Section Blocks" category to find all available blocks.87 3. In the block editor, open the inserter and find the blocks under "Section Blocks" and "Section Blocks – Elements". 61 88 4. For newsletter features, configure settings under **Settings > Newsletter Settings**. 62 89 … … 65 92 = How many blocks are included? = 66 93 67 The plugin includes 13 professional section blocks: Hero Section, Features Section, Services Section, Steps Timeline, Video CTA Section, Testimonials, Pricing Tables, Team Members, FAQ/Accordion, Gallery Portfolio, Newsletter Signup, Call to Action, and Advanced Container.94 25: 13 page sections (Hero, Features, Services, Steps Timeline, Video CTA, Testimonials, Pricing Tables, Team Members, FAQ, Gallery Portfolio, Newsletter Signup, Call to Action, Advanced Container) and 12 design elements (Advanced Heading, Icon Box, Button Group, Icon List, Image Box, Star Rating, Logo Cloud, Callout, Social Share, Author Box, Promo Banner, Shape Divider). 68 95 69 96 = How do I configure newsletter integrations? = … … 77 104 = Can I customize colors and typography? = 78 105 79 Yes. Every block has extensive customization options for colors, typography, spacing, and layout in the Gutenbergeditor sidebar.106 Yes. Every block has extensive customization options for colors, typography, spacing, and layout in the block editor sidebar. 80 107 81 108 = Do the blocks work with any WordPress theme? = … … 106 133 == Upgrade Notice == 107 134 135 = 1.3.0 = 136 Adds 12 new design element blocks (25 blocks in total) and renames the plugin to "Section Blocks – Landing Page Sections for the Block Editor". 137 108 138 = 1.2.9 = 109 139 Fixes Features Section columns, Pricing Tables on phones and with wide/full alignment, and Custom CSS that could be overridden by default block styles. … … 113 143 114 144 == Changelog == 145 146 = 1.3.0 = 147 * New: 12 element blocks — Advanced Heading, Icon Box, Button Group, Icon List, Image Box, Star Rating, Logo Cloud, Callout, Social Share, Author Box, Promo Banner and Shape Divider. 25 blocks in total. 148 * New: "Section Blocks – Elements" category in the block inserter. 149 * New: Promo video on the plugin page. 150 * Change: The plugin is now called "Section Blocks – Landing Page Sections for the Block Editor". 151 * Fix: A button whose link is not a valid URL now renders as a plain button instead of an empty link. 115 152 116 153 = 1.2.9 = -
section-blocks/tags/1.3.0/section-blocks.php
r3750774 r3750877 2 2 3 3 /** 4 * Plugin Name: Section Blocks – The Layout Builder for Gutenberg5 * Description: A comprehensive WordPress Gutenberg plugin that provides beautiful, customizable section blocks for building modern websites with professional design elements.6 * Version: 1. 2.94 * Plugin Name: Section Blocks – Landing Page Sections for the Block Editor 5 * Description: Ready-made page sections and design elements for the block editor: hero, pricing, FAQ, testimonials, icon boxes, logo clouds and more. 6 * Version: 1.3.0 7 7 * Requires at least: 6.6 8 8 * Tested up to: 7.1 … … 20 20 exit; 21 21 } 22 define('SECTION_BLOCKS_VERSION', '1. 2.9');22 define('SECTION_BLOCKS_VERSION', '1.3.0'); 23 23 define('SECTION_BLOCKS_PLUGIN_DIR', plugin_dir_path(__FILE__)); 24 24 define('SECTION_BLOCKS_PLUGIN_URL', plugin_dir_url(__FILE__)); -
section-blocks/trunk/build/advanced-container/index.asset.php
r3687222 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' c0ae276bd34e6b2bcdae');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '37056398bfcca2cb4121'); -
section-blocks/trunk/build/advanced-container/index.js
r3687222 r3750877 1 (()=>{"use strict";var e,o={679:()=>{const e=window.wp.blocks,o=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.components,a=window.ReactJSXRuntime,t=JSON.parse('{"UU":"create-block/advanced-container"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{contentWidth:i,maxWidth:r,backgroundType:c,backgroundColor:s,backgroundImage:d,overlayOpacity:b}=e,u=(0,n.useBlockProps)({className:"advanced-container-block align"+("full"===i?"full":""),style:{backgroundColor:"color"===c?s:void 0,backgroundImage:"image"===c&&d?`url(${d})`:void 0,backgroundSize:"cover",backgroundPosition:"center",position:"relative",minHeight:"50px",border:"none"!==c&&s||d?void 0:"1px dashed #ccc"}}),g={className:`container-inner-content width-${i}`,style:{maxWidth:"boxed"===i?`${r}px`:"100%",margin:"0 auto",position:"relative",zIndex:1,padding:"20px"}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.InspectorControls,{children:[(0,a.jsxs)(l.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(l.SelectControl,{label:(0,o.__)("Content Width","section-blocks"),value:i,options:[{label:(0,o.__)("Boxed","section-blocks"),value:"boxed"},{label:(0,o.__)("Full Width","section-blocks"),value:"full"}],onChange:e=>t({contentWidth:e})}),"boxed"===i&&(0,a.jsx)(l.RangeControl,{label:(0,o.__)("Max Width (px)","section-blocks"),value:r,onChange:e=>t({maxWidth:e}),min:400,max:2e3})]}),(0,a.jsxs)(l.PanelBody,{title:(0,o.__)("Background","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(l.SelectControl,{label:(0,o.__)("Background Type","section-blocks"),value:c,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Solid Color","section-blocks"),value:"color"},{label:(0,o.__)("Image","section-blocks"),value:"image"}],onChange:e=>t({backgroundType:e})}),"color"===c&&(0,a.jsx)(l.ColorPalette,{value:s,onChange:e=>t({backgroundColor:e})}),"image"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,a.jsx)(n.MediaUploadCheck,{children:(0,a.jsx)(n.MediaUpload,{onSelect:e=>t({backgroundImage:e.url}),allowedTypes:["image"],value:d,render:({open:e})=>(0,a.jsx)(l.Button,{variant:"secondary",onClick:e,children:d?(0,o.__)("Change Image","section-blocks"):(0,o.__)("Select Image","section-blocks")})})}),d&&(0,a.jsx)(l.Button,{style:{marginTop:"10px"},variant:"link",isDestructive:!0,onClick:()=>t({backgroundImage:""}),children:(0,o.__)("Remove Image","section-blocks")})]}),(0,a.jsx)(l.RangeControl,{label:(0,o.__)("Overlay Opacity (%)","section-blocks"),value:b,onChange:e=>t({overlayOpacity:e}),min:0,max:100})]})]})]}),(0,a.jsxs)("div",{...u,children:["image"===c&&b>0&&(0,a.jsx)("div",{className:"container-overlay",style:{backgroundColor:`rgba(0,0,0,${b/100})`,position:"absolute",top:0,left:0,right:0,bottom:0}}),(0,a.jsx)("div",{...g,children:(0,a.jsx)(n.InnerBlocks,{})})]})]})},save:()=>null})}},n={};function l(e){var a=n[e];if(void 0!==a)return a.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,l),t.exports}l.m=o,e=[],l.O=(o,n,a,t)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){for(var[n,a,t]=e[d],r=!0,c=0;c<n.length;c++)(!1&t||i>=t)&&Object.keys(l.O).every((e=>l.O[e](n[c])))?n.splice(c--,1):(r=!1,t<i&&(i=t));if(r){e.splice(d--,1);var s=a();void 0!==s&&(o=s)}}return o}t=t||0;for(var d=e.length;d>0&&e[d-1][2]>t;d--)e[d]=e[d-1];e[d]=[n,a,t]},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={394:0, 142:0};l.O.j=o=>0===e[o];var o=(o,n)=>{var a,t,[i,r,c]=n,s=0;if(i.some((o=>0!==e[o]))){for(a in r)l.o(r,a)&&(l.m[a]=r[a]);if(c)var d=c(l)}for(o&&o(n);s<i.length;s++)t=i[s],l.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return l.O(d)},n=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];n.forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n))})();var a=l.O(void 0,[142],(()=>l(679)));a=l.O(a)})();1 (()=>{"use strict";var e,o={679:()=>{const e=window.wp.blocks,o=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.components,a=window.ReactJSXRuntime,t=JSON.parse('{"UU":"create-block/advanced-container"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{contentWidth:i,maxWidth:r,backgroundType:c,backgroundColor:s,backgroundImage:d,overlayOpacity:b}=e,u=(0,n.useBlockProps)({className:"advanced-container-block align"+("full"===i?"full":""),style:{backgroundColor:"color"===c?s:void 0,backgroundImage:"image"===c&&d?`url(${d})`:void 0,backgroundSize:"cover",backgroundPosition:"center",position:"relative",minHeight:"50px",border:"none"!==c&&s||d?void 0:"1px dashed #ccc"}}),g={className:`container-inner-content width-${i}`,style:{maxWidth:"boxed"===i?`${r}px`:"100%",margin:"0 auto",position:"relative",zIndex:1,padding:"20px"}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.InspectorControls,{children:[(0,a.jsxs)(l.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(l.SelectControl,{label:(0,o.__)("Content Width","section-blocks"),value:i,options:[{label:(0,o.__)("Boxed","section-blocks"),value:"boxed"},{label:(0,o.__)("Full Width","section-blocks"),value:"full"}],onChange:e=>t({contentWidth:e})}),"boxed"===i&&(0,a.jsx)(l.RangeControl,{label:(0,o.__)("Max Width (px)","section-blocks"),value:r,onChange:e=>t({maxWidth:e}),min:400,max:2e3})]}),(0,a.jsxs)(l.PanelBody,{title:(0,o.__)("Background","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(l.SelectControl,{label:(0,o.__)("Background Type","section-blocks"),value:c,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Solid Color","section-blocks"),value:"color"},{label:(0,o.__)("Image","section-blocks"),value:"image"}],onChange:e=>t({backgroundType:e})}),"color"===c&&(0,a.jsx)(l.ColorPalette,{value:s,onChange:e=>t({backgroundColor:e})}),"image"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,a.jsx)(n.MediaUploadCheck,{children:(0,a.jsx)(n.MediaUpload,{onSelect:e=>t({backgroundImage:e.url}),allowedTypes:["image"],value:d,render:({open:e})=>(0,a.jsx)(l.Button,{variant:"secondary",onClick:e,children:d?(0,o.__)("Change Image","section-blocks"):(0,o.__)("Select Image","section-blocks")})})}),d&&(0,a.jsx)(l.Button,{style:{marginTop:"10px"},variant:"link",isDestructive:!0,onClick:()=>t({backgroundImage:""}),children:(0,o.__)("Remove Image","section-blocks")})]}),(0,a.jsx)(l.RangeControl,{label:(0,o.__)("Overlay Opacity (%)","section-blocks"),value:b,onChange:e=>t({overlayOpacity:e}),min:0,max:100})]})]})]}),(0,a.jsxs)("div",{...u,children:["image"===c&&b>0&&(0,a.jsx)("div",{className:"container-overlay",style:{backgroundColor:`rgba(0,0,0,${b/100})`,position:"absolute",top:0,left:0,right:0,bottom:0}}),(0,a.jsx)("div",{...g,children:(0,a.jsx)(n.InnerBlocks,{})})]})]})},save:()=>null})}},n={};function l(e){var a=n[e];if(void 0!==a)return a.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,l),t.exports}l.m=o,e=[],l.O=(o,n,a,t)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){for(var[n,a,t]=e[d],r=!0,c=0;c<n.length;c++)(!1&t||i>=t)&&Object.keys(l.O).every((e=>l.O[e](n[c])))?n.splice(c--,1):(r=!1,t<i&&(i=t));if(r){e.splice(d--,1);var s=a();void 0!==s&&(o=s)}}return o}t=t||0;for(var d=e.length;d>0&&e[d-1][2]>t;d--)e[d]=e[d-1];e[d]=[n,a,t]},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={394:0,8142:0};l.O.j=o=>0===e[o];var o=(o,n)=>{var a,t,[i,r,c]=n,s=0;if(i.some((o=>0!==e[o]))){for(a in r)l.o(r,a)&&(l.m[a]=r[a]);if(c)var d=c(l)}for(o&&o(n);s<i.length;s++)t=i[s],l.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return l.O(d)},n=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];n.forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n))})();var a=l.O(void 0,[8142],(()=>l(679)));a=l.O(a)})(); -
section-blocks/trunk/build/blocks-manifest.php
r3687222 r3750877 59 59 'editorScript' => 'file:./index.js', 60 60 'style' => 'file:./style-index.css', 61 'render' => 'file:./render.php' 62 ), 63 'advanced-heading' => array( 64 '$schema' => 'https://schemas.wp.org/trunk/block.json', 65 'apiVersion' => 3, 66 'name' => 'section-blocks/advanced-heading', 67 'version' => '1.0.0', 68 'title' => 'Advanced Heading', 69 'category' => 'section-blocks-elements', 70 'icon' => 'heading', 71 'description' => 'A heading with an optional eyebrow, subheading, decorative separator and gradient text.', 72 'keywords' => array( 73 'heading', 74 'title', 75 'eyebrow', 76 'subheading', 77 'gradient', 78 'separator' 79 ), 80 'textdomain' => 'section-blocks', 81 'attributes' => array( 82 'showEyebrow' => array( 83 'type' => 'boolean', 84 'default' => false 85 ), 86 'eyebrow' => array( 87 'type' => 'string', 88 'default' => '' 89 ), 90 'heading' => array( 91 'type' => 'string', 92 'default' => '' 93 ), 94 'level' => array( 95 'type' => 'number', 96 'default' => 2 97 ), 98 'showSubheading' => array( 99 'type' => 'boolean', 100 'default' => false 101 ), 102 'subheading' => array( 103 'type' => 'string', 104 'default' => '' 105 ), 106 'textAlign' => array( 107 'type' => 'string', 108 'default' => '' 109 ), 110 'separator' => array( 111 'type' => 'string', 112 'enum' => array( 113 'none', 114 'line', 115 'dots', 116 'gradient' 117 ), 118 'default' => 'line' 119 ), 120 'separatorWidth' => array( 121 'type' => 'number', 122 'default' => 64 123 ), 124 'gradientText' => array( 125 'type' => 'boolean', 126 'default' => false 127 ), 128 'gradientFrom' => array( 129 'type' => 'string', 130 'default' => '#6366F1' 131 ), 132 'gradientTo' => array( 133 'type' => 'string', 134 'default' => '#C026D3' 135 ) 136 ), 137 'supports' => array( 138 'html' => false, 139 'anchor' => true, 140 'align' => array( 141 'wide', 142 'full' 143 ), 144 'color' => array( 145 'background' => true, 146 'text' => true, 147 'link' => true 148 ), 149 'spacing' => array( 150 'padding' => true, 151 'margin' => true 152 ), 153 'typography' => array( 154 'fontSize' => true, 155 'lineHeight' => true, 156 '__experimentalFontFamily' => true, 157 '__experimentalFontWeight' => true, 158 '__experimentalLetterSpacing' => true, 159 '__experimentalSkipSerialization' => true, 160 '__experimentalDefaultControls' => array( 161 'fontSize' => true 162 ) 163 ) 164 ), 165 'example' => array( 166 'attributes' => array( 167 'showEyebrow' => true, 168 'eyebrow' => 'Why teams choose us', 169 'heading' => 'Build pages that convert', 170 'showSubheading' => true, 171 'subheading' => 'Every section you need, designed to work with your theme.', 172 'textAlign' => 'center', 173 'separator' => 'gradient', 174 'separatorWidth' => 80, 175 'gradientText' => true 176 ) 177 ), 178 'editorScript' => 'file:./index.js', 179 'style' => array( 180 'file:./style-index.css', 181 'section-blocks-shared' 182 ), 183 'render' => 'file:./render.php' 184 ), 185 'author-box' => array( 186 '$schema' => 'https://schemas.wp.org/trunk/block.json', 187 'apiVersion' => 3, 188 'name' => 'section-blocks/author-box', 189 'version' => '1.0.0', 190 'title' => 'Author Box', 191 'category' => 'section-blocks-elements', 192 'icon' => 'admin-users', 193 'description' => 'Show who wrote the post — avatar, name, bio and links — pulled live from the post author, or entered by hand for a guest author.', 194 'keywords' => array( 195 'author', 196 'bio', 197 'profile', 198 'byline', 199 'avatar', 200 'about' 201 ), 202 'textdomain' => 'section-blocks', 203 'usesContext' => array( 204 'postId', 205 'postType' 206 ), 207 'attributes' => array( 208 'source' => array( 209 'type' => 'string', 210 'enum' => array( 211 'author', 212 'custom' 213 ), 214 'default' => 'author' 215 ), 216 'avatar' => array( 217 'type' => 'object', 218 'default' => array( 219 220 ) 221 ), 222 'name' => array( 223 'type' => 'string', 224 'default' => '' 225 ), 226 'role' => array( 227 'type' => 'string', 228 'default' => '' 229 ), 230 'bio' => array( 231 'type' => 'string', 232 'default' => '' 233 ), 234 'website' => array( 235 'type' => 'string', 236 'default' => '' 237 ), 238 'layout' => array( 239 'type' => 'string', 240 'enum' => array( 241 'horizontal', 242 'vertical' 243 ), 244 'default' => 'horizontal' 245 ), 246 'avatarShape' => array( 247 'type' => 'string', 248 'enum' => array( 249 'circle', 250 'rounded' 251 ), 252 'default' => 'circle' 253 ), 254 'avatarSize' => array( 255 'type' => 'number', 256 'default' => 96 257 ), 258 'nameTag' => array( 259 'type' => 'string', 260 'enum' => array( 261 'p', 262 'h2', 263 'h3', 264 'h4' 265 ), 266 'default' => 'p' 267 ), 268 'showBio' => array( 269 'type' => 'boolean', 270 'default' => true 271 ), 272 'showLinks' => array( 273 'type' => 'boolean', 274 'default' => true 275 ), 276 'links' => array( 277 'type' => 'array', 278 'default' => array( 279 280 ) 281 ) 282 ), 283 'supports' => array( 284 'html' => false, 285 'anchor' => true, 286 'align' => array( 287 'wide' 288 ), 289 'color' => array( 290 'background' => true, 291 'text' => true, 292 'link' => true 293 ), 294 'spacing' => array( 295 'padding' => true, 296 'margin' => true 297 ), 298 'typography' => array( 299 'fontSize' => true, 300 'lineHeight' => true 301 ), 302 '__experimentalBorder' => array( 303 'color' => true, 304 'radius' => true, 305 'style' => true, 306 'width' => true 307 ), 308 'shadow' => true 309 ), 310 'example' => array( 311 'attributes' => array( 312 'source' => 'custom', 313 'name' => 'Jane Cooper', 314 'role' => 'Senior Editor', 315 'bio' => 'Jane writes about design systems, accessibility and the open web. She has been building with WordPress for over a decade.', 316 'website' => 'https://example.com', 317 'links' => array( 318 array( 319 'label' => 'Mastodon', 320 'url' => 'https://example.com/@jane' 321 ), 322 array( 323 'label' => 'GitHub', 324 'url' => 'https://example.com/jane' 325 ) 326 ) 327 ) 328 ), 329 'editorScript' => 'file:./index.js', 330 'style' => array( 331 'file:./style-index.css', 332 'section-blocks-shared' 333 ), 334 'render' => 'file:./render.php' 335 ), 336 'button-group' => array( 337 '$schema' => 'https://schemas.wp.org/trunk/block.json', 338 'apiVersion' => 3, 339 'name' => 'section-blocks/button-group', 340 'version' => '1.0.0', 341 'title' => 'Button Group', 342 'category' => 'section-blocks-elements', 343 'icon' => 'button', 344 'description' => 'A row of call-to-action buttons with shared styles, icons, sizes and spacing, that can stack full width on phones.', 345 'keywords' => array( 346 'button', 347 'buttons', 348 'cta', 349 'call to action', 350 'link', 351 'group' 352 ), 353 'textdomain' => 'section-blocks', 354 'attributes' => array( 355 'buttons' => array( 356 'type' => 'array', 357 'default' => array( 358 array( 359 'text' => 'Get started', 360 'url' => '', 361 'opensInNewTab' => false, 362 'style' => 'primary', 363 'icon' => '' 364 ), 365 array( 366 'text' => 'Learn more', 367 'url' => '', 368 'opensInNewTab' => false, 369 'style' => 'outline', 370 'icon' => '' 371 ) 372 ) 373 ), 374 'justification' => array( 375 'type' => 'string', 376 'enum' => array( 377 'left', 378 'center', 379 'right', 380 'space-between' 381 ), 382 'default' => 'left' 383 ), 384 'size' => array( 385 'type' => 'string', 386 'enum' => array( 387 'small', 388 'medium', 389 'large' 390 ), 391 'default' => 'medium' 392 ), 393 'gap' => array( 394 'type' => 'number', 395 'default' => 16 396 ), 397 'stackOnMobile' => array( 398 'type' => 'boolean', 399 'default' => false 400 ), 401 'ariaLabel' => array( 402 'type' => 'string', 403 'default' => '' 404 ) 405 ), 406 'supports' => array( 407 'html' => false, 408 'anchor' => true, 409 'align' => array( 410 'wide', 411 'full' 412 ), 413 'color' => array( 414 'background' => true, 415 'text' => true 416 ), 417 'spacing' => array( 418 'padding' => true, 419 'margin' => true 420 ), 421 'typography' => array( 422 'fontSize' => true 423 ) 424 ), 425 'example' => array( 426 'attributes' => array( 427 'justification' => 'center', 428 'buttons' => array( 429 array( 430 'text' => 'Get started', 431 'url' => '#', 432 'opensInNewTab' => false, 433 'style' => 'primary', 434 'icon' => 'arrow-right' 435 ), 436 array( 437 'text' => 'Learn more', 438 'url' => '#', 439 'opensInNewTab' => false, 440 'style' => 'outline', 441 'icon' => '' 442 ) 443 ) 444 ) 445 ), 446 'editorScript' => 'file:./index.js', 447 'style' => array( 448 'file:./style-index.css', 449 'section-blocks-shared' 450 ), 451 'render' => 'file:./render.php' 452 ), 453 'callout' => array( 454 '$schema' => 'https://schemas.wp.org/trunk/block.json', 455 'apiVersion' => 3, 456 'name' => 'section-blocks/callout', 457 'version' => '1.0.0', 458 'title' => 'Callout', 459 'category' => 'section-blocks-elements', 460 'icon' => 'info-outline', 461 'description' => 'Highlight a note, tip, success message, warning or danger notice with an icon, accessible colors and an optional title.', 462 'keywords' => array( 463 'notice', 464 'alert', 465 'admonition', 466 'note', 467 'tip', 468 'warning', 469 'info', 470 'message', 471 'box' 472 ), 473 'textdomain' => 'section-blocks', 474 'attributes' => array( 475 'type' => array( 476 'type' => 'string', 477 'enum' => array( 478 'info', 479 'success', 480 'warning', 481 'tip', 482 'danger' 483 ), 484 'default' => 'info' 485 ), 486 'title' => array( 487 'type' => 'string', 488 'default' => '' 489 ), 490 'content' => array( 491 'type' => 'string', 492 'default' => '' 493 ), 494 'showIcon' => array( 495 'type' => 'boolean', 496 'default' => true 497 ), 498 'icon' => array( 499 'type' => 'string', 500 'default' => '' 501 ) 502 ), 503 'styles' => array( 504 array( 505 'name' => 'soft', 506 'label' => 'Soft', 507 'isDefault' => true 508 ), 509 array( 510 'name' => 'outline', 511 'label' => 'Outline' 512 ), 513 array( 514 'name' => 'solid', 515 'label' => 'Solid' 516 ) 517 ), 518 'supports' => array( 519 'html' => false, 520 'anchor' => true, 521 'align' => array( 522 'wide', 523 'full' 524 ), 525 'color' => array( 526 'background' => true, 527 'text' => true, 528 'link' => true 529 ), 530 'spacing' => array( 531 'padding' => true, 532 'margin' => true 533 ), 534 'typography' => array( 535 'fontSize' => true, 536 'lineHeight' => true 537 ), 538 '__experimentalBorder' => array( 539 'radius' => true 540 ) 541 ), 542 'example' => array( 543 'attributes' => array( 544 'type' => 'tip', 545 'title' => 'Pro tip', 546 'content' => 'Press <strong>/</strong> in an empty paragraph to search for any block, including this one.' 547 ) 548 ), 549 'editorScript' => 'file:./index.js', 550 'style' => array( 551 'file:./style-index.css', 552 'section-blocks-shared' 553 ), 61 554 'render' => 'file:./render.php' 62 555 ), … … 862 1355 'editorStyle' => 'file:./index.css', 863 1356 'style' => 'file:./style-index.css', 1357 'render' => 'file:./render.php' 1358 ), 1359 'icon-box' => array( 1360 '$schema' => 'https://schemas.wp.org/trunk/block.json', 1361 'apiVersion' => 3, 1362 'name' => 'section-blocks/icon-box', 1363 'version' => '1.0.0', 1364 'title' => 'Icon Box', 1365 'category' => 'section-blocks-elements', 1366 'icon' => 'id-alt', 1367 'description' => 'An icon with a title and text. Optionally the whole box is one accessible link, with a lift or glow hover effect.', 1368 'keywords' => array( 1369 'icon', 1370 'feature', 1371 'box', 1372 'card', 1373 'service', 1374 'link' 1375 ), 1376 'textdomain' => 'section-blocks', 1377 'attributes' => array( 1378 'icon' => array( 1379 'type' => 'string', 1380 'default' => 'star-filled' 1381 ), 1382 'title' => array( 1383 'type' => 'string', 1384 'default' => '' 1385 ), 1386 'titleLevel' => array( 1387 'type' => 'number', 1388 'default' => 3 1389 ), 1390 'text' => array( 1391 'type' => 'string', 1392 'default' => '' 1393 ), 1394 'layout' => array( 1395 'type' => 'string', 1396 'enum' => array( 1397 'top', 1398 'left' 1399 ), 1400 'default' => 'top' 1401 ), 1402 'iconStyle' => array( 1403 'type' => 'string', 1404 'enum' => array( 1405 'plain', 1406 'circle', 1407 'square' 1408 ), 1409 'default' => 'circle' 1410 ), 1411 'url' => array( 1412 'type' => 'string', 1413 'default' => '' 1414 ), 1415 'opensInNewTab' => array( 1416 'type' => 'boolean', 1417 'default' => false 1418 ), 1419 'hoverEffect' => array( 1420 'type' => 'string', 1421 'enum' => array( 1422 'none', 1423 'lift', 1424 'glow' 1425 ), 1426 'default' => 'none' 1427 ), 1428 'textAlign' => array( 1429 'type' => 'string', 1430 'enum' => array( 1431 'left', 1432 'center' 1433 ), 1434 'default' => 'left' 1435 ) 1436 ), 1437 'supports' => array( 1438 'html' => false, 1439 'anchor' => true, 1440 'color' => array( 1441 'background' => true, 1442 'text' => true 1443 ), 1444 'spacing' => array( 1445 'padding' => true, 1446 'margin' => true 1447 ), 1448 'typography' => array( 1449 'fontSize' => true, 1450 'lineHeight' => true 1451 ), 1452 '__experimentalBorder' => array( 1453 'color' => true, 1454 'radius' => true, 1455 'style' => true, 1456 'width' => true 1457 ), 1458 'shadow' => true 1459 ), 1460 'example' => array( 1461 'attributes' => array( 1462 'icon' => 'shield', 1463 'title' => 'Secure by default', 1464 'text' => 'Every page is escaped, accessible and fast, out of the box.', 1465 'iconStyle' => 'circle', 1466 'textAlign' => 'center' 1467 ) 1468 ), 1469 'editorScript' => 'file:./index.js', 1470 'style' => array( 1471 'file:./style-index.css', 1472 'section-blocks-shared' 1473 ), 1474 'render' => 'file:./render.php' 1475 ), 1476 'icon-list' => array( 1477 '$schema' => 'https://schemas.wp.org/trunk/block.json', 1478 'apiVersion' => 3, 1479 'name' => 'section-blocks/icon-list', 1480 'version' => '1.0.0', 1481 'title' => 'Icon List', 1482 'category' => 'section-blocks-elements', 1483 'icon' => 'editor-ul', 1484 'description' => 'A bulleted list with an icon in front of every item — checkmarks for features, pins for locations. Pick one icon for the whole list, override it per item, and lay it out in up to three columns.', 1485 'keywords' => array( 1486 'list', 1487 'checklist', 1488 'icon', 1489 'bullets', 1490 'features', 1491 'benefits' 1492 ), 1493 'textdomain' => 'section-blocks', 1494 'attributes' => array( 1495 'items' => array( 1496 'type' => 'array', 1497 'default' => array( 1498 array( 1499 'icon' => '', 1500 'text' => 'First list item' 1501 ), 1502 array( 1503 'icon' => '', 1504 'text' => 'Second list item' 1505 ), 1506 array( 1507 'icon' => '', 1508 'text' => 'Third list item' 1509 ) 1510 ) 1511 ), 1512 'defaultIcon' => array( 1513 'type' => 'string', 1514 'default' => 'check' 1515 ), 1516 'iconColor' => array( 1517 'type' => 'string', 1518 'default' => '' 1519 ), 1520 'iconSize' => array( 1521 'type' => 'number', 1522 'default' => 20 1523 ), 1524 'columns' => array( 1525 'type' => 'number', 1526 'default' => 1 1527 ), 1528 'itemSpacing' => array( 1529 'type' => 'number', 1530 'default' => 12 1531 ), 1532 'showDividers' => array( 1533 'type' => 'boolean', 1534 'default' => false 1535 ) 1536 ), 1537 'supports' => array( 1538 'html' => false, 1539 'anchor' => true, 1540 'align' => array( 1541 'wide' 1542 ), 1543 'color' => array( 1544 'background' => true, 1545 'text' => true, 1546 'link' => true 1547 ), 1548 'spacing' => array( 1549 'padding' => true, 1550 'margin' => true 1551 ), 1552 'typography' => array( 1553 'fontSize' => true, 1554 'lineHeight' => true 1555 ) 1556 ), 1557 'example' => array( 1558 'attributes' => array( 1559 'items' => array( 1560 array( 1561 'icon' => '', 1562 'text' => 'Free shipping on every order' 1563 ), 1564 array( 1565 'icon' => '', 1566 'text' => '30-day money-back guarantee' 1567 ), 1568 array( 1569 'icon' => '', 1570 'text' => 'Support from real people, 7 days a week' 1571 ), 1572 array( 1573 'icon' => 'lock', 1574 'text' => 'Secure checkout' 1575 ) 1576 ), 1577 'iconSize' => 22 1578 ) 1579 ), 1580 'editorScript' => 'file:./index.js', 1581 'style' => array( 1582 'file:./style-index.css', 1583 'section-blocks-shared' 1584 ), 1585 'render' => 'file:./render.php' 1586 ), 1587 'image-box' => array( 1588 '$schema' => 'https://schemas.wp.org/trunk/block.json', 1589 'apiVersion' => 3, 1590 'name' => 'section-blocks/image-box', 1591 'version' => '1.0.0', 1592 'title' => 'Image Box', 1593 'category' => 'section-blocks-elements', 1594 'icon' => 'format-image', 1595 'description' => 'An image with a title and text, shown as a card, as text over the image, or side by side — with a fixed aspect ratio, focal point, hover zoom and an optional link on the whole box.', 1596 'keywords' => array( 1597 'image', 1598 'card', 1599 'box', 1600 'feature', 1601 'overlay', 1602 'teaser', 1603 'link' 1604 ), 1605 'textdomain' => 'section-blocks', 1606 'attributes' => array( 1607 'image' => array( 1608 'type' => 'object', 1609 'default' => array( 1610 1611 ) 1612 ), 1613 'title' => array( 1614 'type' => 'string', 1615 'default' => '' 1616 ), 1617 'titleLevel' => array( 1618 'type' => 'number', 1619 'default' => 3 1620 ), 1621 'text' => array( 1622 'type' => 'string', 1623 'default' => '' 1624 ), 1625 'url' => array( 1626 'type' => 'string', 1627 'default' => '' 1628 ), 1629 'opensInNewTab' => array( 1630 'type' => 'boolean', 1631 'default' => false 1632 ), 1633 'boxStyle' => array( 1634 'type' => 'string', 1635 'enum' => array( 1636 'card', 1637 'overlay', 1638 'side' 1639 ), 1640 'default' => 'card' 1641 ), 1642 'aspectRatio' => array( 1643 'type' => 'string', 1644 'enum' => array( 1645 '16/9', 1646 '4/3', 1647 '1/1', 1648 '3/4' 1649 ), 1650 'default' => '4/3' 1651 ), 1652 'hoverZoom' => array( 1653 'type' => 'boolean', 1654 'default' => true 1655 ) 1656 ), 1657 'supports' => array( 1658 'html' => false, 1659 'anchor' => true, 1660 'color' => array( 1661 'background' => true, 1662 'text' => true, 1663 'link' => true 1664 ), 1665 'spacing' => array( 1666 'margin' => true, 1667 'padding' => true, 1668 '__experimentalSkipSerialization' => array( 1669 'padding' 1670 ) 1671 ), 1672 'typography' => array( 1673 'fontSize' => true, 1674 'lineHeight' => true 1675 ), 1676 '__experimentalBorder' => array( 1677 'color' => true, 1678 'radius' => true, 1679 'style' => true, 1680 'width' => true 1681 ), 1682 'shadow' => true 1683 ), 1684 'example' => array( 1685 'attributes' => array( 1686 'image' => array( 1687 'url' => 'data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 800 600\'%3E%3Cdefs%3E%3ClinearGradient id=\'g\' x1=\'0\' y1=\'0\' x2=\'0\' y2=\'1\'%3E%3Cstop offset=\'0\' stop-color=\'%2393c5fd\'/%3E%3Cstop offset=\'1\' stop-color=\'%23fde68a\'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=\'800\' height=\'600\' fill=\'url(%23g)\'/%3E%3Ccircle cx=\'600\' cy=\'170\' r=\'70\' fill=\'%23fbbf24\'/%3E%3Cpath d=\'M0 600V430l220-170 180 140 160-100 240 160v140z\' fill=\'%23047857\'/%3E%3Cpath d=\'M0 600V500l300-90 260 70 240-40v160z\' fill=\'%23065f46\'/%3E%3C/svg%3E', 1688 'alt' => '' 1689 ), 1690 'title' => 'Guided mountain hikes', 1691 'text' => 'Small groups, local guides and routes for every level.', 1692 'url' => '#' 1693 ) 1694 ), 1695 'editorScript' => 'file:./index.js', 1696 'style' => array( 1697 'file:./style-index.css', 1698 'section-blocks-shared' 1699 ), 1700 'render' => 'file:./render.php' 1701 ), 1702 'logo-cloud' => array( 1703 '$schema' => 'https://schemas.wp.org/trunk/block.json', 1704 'apiVersion' => 3, 1705 'name' => 'section-blocks/logo-cloud', 1706 'version' => '1.0.0', 1707 'title' => 'Logo Cloud', 1708 'category' => 'section-blocks-elements', 1709 'icon' => 'screenoptions', 1710 'description' => 'Show client or partner logos as a responsive grid or an accessible, auto-scrolling marquee with optional grayscale.', 1711 'keywords' => array( 1712 'logos', 1713 'clients', 1714 'partners', 1715 'brands', 1716 'marquee', 1717 'trusted by', 1718 'sponsors' 1719 ), 1720 'textdomain' => 'section-blocks', 1721 'attributes' => array( 1722 'showHeading' => array( 1723 'type' => 'boolean', 1724 'default' => true 1725 ), 1726 'heading' => array( 1727 'type' => 'string', 1728 'default' => 'Trusted by teams at' 1729 ), 1730 'logos' => array( 1731 'type' => 'array', 1732 'default' => array( 1733 1734 ), 1735 'items' => array( 1736 'type' => 'object' 1737 ) 1738 ), 1739 'layout' => array( 1740 'type' => 'string', 1741 'enum' => array( 1742 'grid', 1743 'marquee' 1744 ), 1745 'default' => 'grid' 1746 ), 1747 'columns' => array( 1748 'type' => 'object', 1749 'default' => array( 1750 'desktop' => 6, 1751 'tablet' => 4, 1752 'mobile' => 3 1753 ) 1754 ), 1755 'speed' => array( 1756 'type' => 'string', 1757 'enum' => array( 1758 'slow', 1759 'normal', 1760 'fast' 1761 ), 1762 'default' => 'normal' 1763 ), 1764 'grayscale' => array( 1765 'type' => 'boolean', 1766 'default' => true 1767 ), 1768 'logoHeight' => array( 1769 'type' => 'number', 1770 'default' => 48 1771 ) 1772 ), 1773 'supports' => array( 1774 'html' => false, 1775 'anchor' => true, 1776 'align' => array( 1777 'wide', 1778 'full' 1779 ), 1780 'color' => array( 1781 'background' => true, 1782 'text' => true 1783 ), 1784 'spacing' => array( 1785 'padding' => true, 1786 'margin' => true 1787 ), 1788 'typography' => array( 1789 'fontSize' => true, 1790 'lineHeight' => true 1791 ), 1792 '__experimentalBorder' => array( 1793 'color' => true, 1794 'radius' => true, 1795 'style' => true, 1796 'width' => true 1797 ), 1798 'interactivity' => true 1799 ), 1800 'example' => array( 1801 'attributes' => array( 1802 'heading' => 'Trusted by teams at', 1803 'columns' => array( 1804 'desktop' => 4, 1805 'tablet' => 4, 1806 'mobile' => 2 1807 ), 1808 'logoHeight' => 40, 1809 'logos' => array( 1810 array( 1811 'image' => array( 1812 'url' => 'data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'160\' height=\'48\' viewBox=\'0 0 160 48\'%3E%3Ccircle cx=\'22\' cy=\'24\' r=\'14\' fill=\'%232563eb\'/%3E%3Ctext x=\'44\' y=\'32\' font-family=\'sans-serif\' font-size=\'22\' font-weight=\'700\' fill=\'%231e293b\'%3EAcme%3C/text%3E%3C/svg%3E', 1813 'alt' => 'Acme' 1814 ), 1815 'url' => '' 1816 ), 1817 array( 1818 'image' => array( 1819 'url' => 'data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'160\' height=\'48\' viewBox=\'0 0 160 48\'%3E%3Crect x=\'8\' y=\'10\' width=\'28\' height=\'28\' rx=\'6\' fill=\'%23059669\'/%3E%3Ctext x=\'44\' y=\'32\' font-family=\'sans-serif\' font-size=\'22\' font-weight=\'700\' fill=\'%231e293b\'%3ENimbus%3C/text%3E%3C/svg%3E', 1820 'alt' => 'Nimbus' 1821 ), 1822 'url' => '' 1823 ), 1824 array( 1825 'image' => array( 1826 'url' => 'data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'160\' height=\'48\' viewBox=\'0 0 160 48\'%3E%3Cpath d=\'M8 38 22 10l14 28z\' fill=\'%23d97706\'/%3E%3Ctext x=\'44\' y=\'32\' font-family=\'sans-serif\' font-size=\'22\' font-weight=\'700\' fill=\'%231e293b\'%3EVertex%3C/text%3E%3C/svg%3E', 1827 'alt' => 'Vertex' 1828 ), 1829 'url' => '' 1830 ), 1831 array( 1832 'image' => array( 1833 'url' => 'data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'160\' height=\'48\' viewBox=\'0 0 160 48\'%3E%3Ccircle cx=\'22\' cy=\'24\' r=\'14\' fill=\'none\' stroke=\'%237c3aed\' stroke-width=\'6\'/%3E%3Ctext x=\'44\' y=\'32\' font-family=\'sans-serif\' font-size=\'22\' font-weight=\'700\' fill=\'%231e293b\'%3EOrbit%3C/text%3E%3C/svg%3E', 1834 'alt' => 'Orbit' 1835 ), 1836 'url' => '' 1837 ) 1838 ) 1839 ) 1840 ), 1841 'editorScript' => 'file:./index.js', 1842 'style' => array( 1843 'file:./style-index.css', 1844 'section-blocks-shared' 1845 ), 1846 'viewScriptModule' => 'file:./view.js', 864 1847 'render' => 'file:./render.php' 865 1848 ), … … 1381 2364 'viewScript' => 'file:./view.js' 1382 2365 ), 2366 'promo-banner' => array( 2367 '$schema' => 'https://schemas.wp.org/trunk/block.json', 2368 'apiVersion' => 3, 2369 'name' => 'section-blocks/promo-banner', 2370 'version' => '1.0.0', 2371 'title' => 'Promo Banner', 2372 'category' => 'section-blocks-elements', 2373 'icon' => 'megaphone', 2374 'description' => 'A promotional banner with a background image, color overlay, badge, heading, text and button, with the content placed where you want it.', 2375 'keywords' => array( 2376 'promo', 2377 'banner', 2378 'sale', 2379 'offer', 2380 'announcement', 2381 'cta', 2382 'hero' 2383 ), 2384 'textdomain' => 'section-blocks', 2385 'attributes' => array( 2386 'image' => array( 2387 'type' => 'object', 2388 'default' => array( 2389 2390 ) 2391 ), 2392 'overlayColor' => array( 2393 'type' => 'string', 2394 'default' => '#1E1B4B' 2395 ), 2396 'overlayOpacity' => array( 2397 'type' => 'number', 2398 'default' => 55 2399 ), 2400 'badge' => array( 2401 'type' => 'string', 2402 'default' => '' 2403 ), 2404 'heading' => array( 2405 'type' => 'string', 2406 'default' => '' 2407 ), 2408 'headingLevel' => array( 2409 'type' => 'number', 2410 'default' => 2 2411 ), 2412 'text' => array( 2413 'type' => 'string', 2414 'default' => '' 2415 ), 2416 'button' => array( 2417 'type' => 'object', 2418 'default' => array( 2419 'text' => '', 2420 'url' => '', 2421 'opensInNewTab' => false, 2422 'style' => 'primary', 2423 'icon' => '' 2424 ) 2425 ), 2426 'contentPosition' => array( 2427 'type' => 'string', 2428 'enum' => array( 2429 'left', 2430 'center', 2431 'right' 2432 ), 2433 'default' => 'left' 2434 ), 2435 'verticalAlign' => array( 2436 'type' => 'string', 2437 'enum' => array( 2438 'top', 2439 'middle', 2440 'bottom' 2441 ), 2442 'default' => 'middle' 2443 ), 2444 'minHeight' => array( 2445 'type' => 'number', 2446 'default' => 320 2447 ) 2448 ), 2449 'supports' => array( 2450 'html' => false, 2451 'anchor' => true, 2452 'align' => array( 2453 'wide', 2454 'full' 2455 ), 2456 'color' => array( 2457 'background' => false, 2458 'text' => true, 2459 'link' => true 2460 ), 2461 'spacing' => array( 2462 'padding' => true, 2463 'margin' => true 2464 ), 2465 'typography' => array( 2466 'fontSize' => true, 2467 'lineHeight' => true 2468 ), 2469 '__experimentalBorder' => array( 2470 'color' => true, 2471 'radius' => true, 2472 'style' => true, 2473 'width' => true 2474 ), 2475 'shadow' => true 2476 ), 2477 'example' => array( 2478 'attributes' => array( 2479 'badge' => 'Limited time', 2480 'heading' => 'Save 30% on annual plans', 2481 'text' => 'Upgrade before Friday and get three months free.', 2482 'button' => array( 2483 'text' => 'Claim offer', 2484 'url' => '#', 2485 'opensInNewTab' => false, 2486 'style' => 'primary', 2487 'icon' => 'arrow-right' 2488 ), 2489 'minHeight' => 280 2490 ) 2491 ), 2492 'editorScript' => 'file:./index.js', 2493 'style' => array( 2494 'file:./style-index.css', 2495 'section-blocks-shared' 2496 ), 2497 'render' => 'file:./render.php' 2498 ), 1383 2499 'services-section' => array( 1384 2500 '$schema' => 'https://schemas.wp.org/trunk/block.json', … … 1562 2678 'editorStyle' => 'file:./index.css', 1563 2679 'style' => 'file:./style-index.css', 2680 'render' => 'file:./render.php' 2681 ), 2682 'shape-divider' => array( 2683 '$schema' => 'https://schemas.wp.org/trunk/block.json', 2684 'apiVersion' => 3, 2685 'name' => 'section-blocks/shape-divider', 2686 'version' => '1.0.0', 2687 'title' => 'Shape Divider', 2688 'category' => 'section-blocks-elements', 2689 'icon' => 'minus', 2690 'description' => 'A decorative wave, curve, zigzag or mountain edge that sits flush between two sections. Pick the shape, height, direction and colors.', 2691 'keywords' => array( 2692 'divider', 2693 'separator', 2694 'wave', 2695 'curve', 2696 'shape', 2697 'svg', 2698 'section' 2699 ), 2700 'textdomain' => 'section-blocks', 2701 'attributes' => array( 2702 'align' => array( 2703 'type' => 'string', 2704 'default' => 'full' 2705 ), 2706 'shape' => array( 2707 'type' => 'string', 2708 'enum' => array( 2709 'wave', 2710 'waves', 2711 'curve', 2712 'tilt', 2713 'triangle', 2714 'arrow', 2715 'zigzag', 2716 'clouds', 2717 'mountains' 2718 ), 2719 'default' => 'wave' 2720 ), 2721 'height' => array( 2722 'type' => 'number', 2723 'default' => 80 2724 ), 2725 'flipX' => array( 2726 'type' => 'boolean', 2727 'default' => false 2728 ), 2729 'flipY' => array( 2730 'type' => 'boolean', 2731 'default' => false 2732 ), 2733 'shapeColor' => array( 2734 'type' => 'string', 2735 'default' => '' 2736 ) 2737 ), 2738 'supports' => array( 2739 'html' => false, 2740 'anchor' => true, 2741 'align' => array( 2742 'wide', 2743 'full' 2744 ), 2745 'color' => array( 2746 'background' => true, 2747 'text' => false, 2748 'link' => false 2749 ), 2750 'spacing' => array( 2751 'margin' => array( 2752 'top', 2753 'bottom' 2754 ) 2755 ) 2756 ), 2757 'example' => array( 2758 'attributes' => array( 2759 'shape' => 'waves', 2760 'height' => 100, 2761 'shapeColor' => '#4f46e5' 2762 ) 2763 ), 2764 'editorScript' => 'file:./index.js', 2765 'style' => array( 2766 'file:./style-index.css', 2767 'section-blocks-shared' 2768 ), 2769 'render' => 'file:./render.php' 2770 ), 2771 'social-share' => array( 2772 '$schema' => 'https://schemas.wp.org/trunk/block.json', 2773 'apiVersion' => 3, 2774 'name' => 'section-blocks/social-share', 2775 'version' => '1.0.0', 2776 'title' => 'Social Share', 2777 'category' => 'section-blocks-elements', 2778 'icon' => 'share', 2779 'description' => 'Share buttons for the current page (X, Facebook, LinkedIn, WhatsApp, Reddit, email) — plain links, no tracking scripts or counters.', 2780 'keywords' => array( 2781 'share', 2782 'social', 2783 'sharing', 2784 'facebook', 2785 'linkedin', 2786 'whatsapp', 2787 'twitter' 2788 ), 2789 'textdomain' => 'section-blocks', 2790 'usesContext' => array( 2791 'postId', 2792 'postType' 2793 ), 2794 'attributes' => array( 2795 'networks' => array( 2796 'type' => 'array', 2797 'items' => array( 2798 'type' => 'string' 2799 ), 2800 'default' => array( 2801 'x', 2802 'facebook', 2803 'linkedin', 2804 'email' 2805 ) 2806 ), 2807 'showLabel' => array( 2808 'type' => 'boolean', 2809 'default' => true 2810 ), 2811 'label' => array( 2812 'type' => 'string', 2813 'default' => 'Share this:' 2814 ), 2815 'showNames' => array( 2816 'type' => 'boolean', 2817 'default' => false 2818 ), 2819 'shape' => array( 2820 'type' => 'string', 2821 'enum' => array( 2822 'circle', 2823 'rounded', 2824 'square' 2825 ), 2826 'default' => 'circle' 2827 ), 2828 'colorScheme' => array( 2829 'type' => 'string', 2830 'enum' => array( 2831 'brand', 2832 'accent', 2833 'mono' 2834 ), 2835 'default' => 'brand' 2836 ), 2837 'size' => array( 2838 'type' => 'string', 2839 'enum' => array( 2840 'small', 2841 'medium', 2842 'large' 2843 ), 2844 'default' => 'medium' 2845 ), 2846 'justify' => array( 2847 'type' => 'string', 2848 'enum' => array( 2849 'left', 2850 'center', 2851 'right', 2852 'space-between' 2853 ), 2854 'default' => 'left' 2855 ) 2856 ), 2857 'supports' => array( 2858 'html' => false, 2859 'anchor' => true, 2860 'color' => array( 2861 'background' => true, 2862 'text' => true 2863 ), 2864 'spacing' => array( 2865 'padding' => true, 2866 'margin' => true 2867 ), 2868 'typography' => array( 2869 'fontSize' => true, 2870 'lineHeight' => true 2871 ) 2872 ), 2873 'example' => array( 2874 'attributes' => array( 2875 'networks' => array( 2876 'x', 2877 'facebook', 2878 'linkedin', 2879 'whatsapp', 2880 'email' 2881 ), 2882 'showNames' => false, 2883 'size' => 'large' 2884 ) 2885 ), 2886 'editorScript' => 'file:./index.js', 2887 'style' => array( 2888 'file:./style-index.css', 2889 'section-blocks-shared' 2890 ), 2891 'render' => 'file:./render.php' 2892 ), 2893 'star-rating' => array( 2894 '$schema' => 'https://schemas.wp.org/trunk/block.json', 2895 'apiVersion' => 3, 2896 'name' => 'section-blocks/star-rating', 2897 'version' => '1.0.0', 2898 'title' => 'Star Rating', 2899 'category' => 'section-blocks-elements', 2900 'icon' => 'star-half', 2901 'description' => 'Show a rating from 0 to 5 stars in half-star steps, with crisp SVG stars, your own colors and an optional label such as “4.8 out of 5 from 1,200 reviews”.', 2902 'keywords' => array( 2903 'rating', 2904 'stars', 2905 'review', 2906 'score', 2907 'testimonial' 2908 ), 2909 'textdomain' => 'section-blocks', 2910 'attributes' => array( 2911 'rating' => array( 2912 'type' => 'number', 2913 'default' => 4.5 2914 ), 2915 'starSize' => array( 2916 'type' => 'number', 2917 'default' => 20 2918 ), 2919 'starColor' => array( 2920 'type' => 'string', 2921 'default' => '#F59E0B' 2922 ), 2923 'emptyColor' => array( 2924 'type' => 'string', 2925 'default' => '' 2926 ), 2927 'label' => array( 2928 'type' => 'string', 2929 'default' => '' 2930 ), 2931 'showNumber' => array( 2932 'type' => 'boolean', 2933 'default' => false 2934 ), 2935 'alignment' => array( 2936 'type' => 'string', 2937 'enum' => array( 2938 'left', 2939 'center', 2940 'right' 2941 ), 2942 'default' => 'left' 2943 ) 2944 ), 2945 'supports' => array( 2946 'html' => false, 2947 'anchor' => true, 2948 'color' => array( 2949 'background' => true, 2950 'text' => true 2951 ), 2952 'spacing' => array( 2953 'padding' => true, 2954 'margin' => true 2955 ), 2956 'typography' => array( 2957 'fontSize' => true, 2958 'lineHeight' => true 2959 ) 2960 ), 2961 'example' => array( 2962 'attributes' => array( 2963 'rating' => 4.5, 2964 'starSize' => 24, 2965 'showNumber' => true, 2966 'label' => 'from 1,200 reviews' 2967 ) 2968 ), 2969 'editorScript' => 'file:./index.js', 2970 'style' => array( 2971 'file:./style-index.css', 2972 'section-blocks-shared' 2973 ), 1564 2974 'render' => 'file:./render.php' 1565 2975 ), -
section-blocks/trunk/build/cta-section/index.asset.php
r3663541 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' ddb4cc5e090dd15eb997');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'bdbb2e9834ce8bb449e5'); -
section-blocks/trunk/build/cta-section/index.js
r3302097 r3750877 1 (()=>{"use strict";var o,e={957:()=>{const o=window.wp.blocks,e=window.wp.i18n,l=window.wp.blockEditor,t=window.wp.components,n=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/cta-section"}');(0,o.registerBlockType)(a.UU,{edit:function({attributes:o,setAttributes:a}){const{title:s,subtitle:c,description:r,primaryButtonText:i,primaryButtonUrl:d,secondaryButtonText:u,secondaryButtonUrl:b,showSecondaryButton:g,backgroundType:x,backgroundColor:h,gradientColors:k,backgroundImage:p,backgroundImageId:_,overlayOpacity:m,textColor:C,primaryButtonColor:v,primaryButtonTextColor:j,secondaryButtonColor:y,secondaryButtonTextColor:B,textAlignment:N,buttonLayout:S,spacing:T,borderRadius:w,animationEffect:f}=o,R=(0,l.useBlockProps)({className:`cta-section layout-${S} text-${N} spacing-${T} animation-${f}`,style:{...(()=>{let o={};switch(x){case"color":o.backgroundColor=h;break;case"gradient":o.background=`linear-gradient(135deg, ${k.start} 0%, ${k.end} 100%)`;break;case"image":p&&(o.backgroundImage=`url(${p.url})`,o.backgroundSize="cover",o.backgroundPosition="center",o.backgroundRepeat="no-repeat")}return o})(),color:C,borderRadius:`${w}px`}});return(0,n.jsxs)("div",{...R,children:[(0,n.jsxs)(l.InspectorControls,{children:[(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Text Alignment","section-blocks"),value:N,options:[{label:(0,e.__)("Left","section-blocks"),value:"left"},{label:(0,e.__)("Center","section-blocks"),value:"center"},{label:(0,e.__)("Right","section-blocks"),value:"right"}],onChange:o=>a({textAlignment:o})}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Button Layout","section-blocks"),value:S,options:[{label:(0,e.__)("Horizontal","section-blocks"),value:"horizontal"},{label:(0,e.__)("Vertical","section-blocks"),value:"vertical"},{label:(0,e.__)("Stacked","section-blocks"),value:"stacked"}],onChange:o=>a({buttonLayout:o})}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Spacing","section-blocks"),value:T,options:[{label:(0,e.__)("Compact","section-blocks"),value:"compact"},{label:(0,e.__)("Normal","section-blocks"),value:"normal"},{label:(0,e.__)("Spacious","section-blocks"),value:"spacious"}],onChange:o=>a({spacing:o})}),(0,n.jsx)(t.RangeControl,{label:(0,e.__)("Border Radius","section-blocks"),value:w,onChange:o=>a({borderRadius:o}),min:0,max:50})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Background Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Background Type","section-blocks"),value:x,options:[{label:(0,e.__)("Solid Color","section-blocks"),value:"color"},{label:(0,e.__)("Gradient","section-blocks"),value:"gradient"},{label:(0,e.__)("Image","section-blocks"),value:"image"}],onChange:o=>a({backgroundType:o})}),"color"===x&&(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Background Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:h,onChange:o=>a({backgroundColor:o})})]}),"gradient"===x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Gradient Start Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:k.start,onChange:o=>a({gradientColors:{...k,start:o}})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Gradient End Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:k.end,onChange:o=>a({gradientColors:{...k,end:o}})})]})]}),"image"===x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:o=>{a({backgroundImage:{url:o.url,alt:o.alt},backgroundImageId:o.id})},allowedTypes:["image"],value:_,render:({open:o})=>(0,n.jsx)(t.Button,{className:p?"image-button has-image":"image-button",onClick:o,children:p?(0,n.jsx)("img",{src:p.url,alt:p.alt||""}):(0,e.__)("Select Background Image","section-blocks")})})}),p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.Button,{onClick:()=>{a({backgroundImage:null,backgroundImageId:0})},isDestructive:!0,isSmall:!0,children:(0,e.__)("Remove Image","section-blocks")}),(0,n.jsx)(t.RangeControl,{label:(0,e.__)("Overlay Opacity","section-blocks"),value:m,onChange:o=>a({overlayOpacity:o}),min:0,max:1,step:.1})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Button Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.ToggleControl,{label:(0,e.__)("Show Secondary Button","section-blocks"),checked:g,onChange:o=>a({showSecondaryButton:o})}),(0,n.jsx)("h4",{children:(0,e.__)("Primary Button","section-blocks")}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:v,onChange:o=>a({primaryButtonColor:o})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:j,onChange:o=>a({primaryButtonTextColor:o})})]}),g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h4",{children:(0,e.__)("Secondary Button","section-blocks")}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:y,onChange:o=>a({secondaryButtonColor:o})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:B,onChange:o=>a({secondaryButtonTextColor:o})})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:C,onChange:o=>a({textColor:o})})]}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Animation Effect","section-blocks"),value:f,options:[{label:(0,e.__)("None","section-blocks"),value:"none"},{label:(0,e.__)("Fade In","section-blocks"),value:"fade-in"},{label:(0,e.__)("Slide Up","section-blocks"),value:"slide-up"},{label:(0,e.__)("Bounce","section-blocks"),value:"bounce"}],onChange:o=>a({animationEffect:o})})]})]}),(0,n.jsxs)("div",{className:"cta-content",children:["image"===x&&p&&(0,n.jsx)("div",{className:"cta-overlay",style:{backgroundColor:`rgba(0, 0, 0, ${m})`,position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:`${w}px`}}),(0,n.jsxs)("div",{className:"cta-text",style:{position:"relative",zIndex:1},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"cta-title",value:s,onChange:o=>a({title:o}),placeholder:(0,e.__)("Enter your call-to-action title...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"cta-subtitle",value:c,onChange:o=>a({subtitle:o}),placeholder:(0,e.__)("Enter your compelling subtitle...","section-blocks")}),r&&(0,n.jsx)(l.RichText,{tagName:"p",className:"cta-description",value:r,onChange:o=>a({description:o}),placeholder:(0,e.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"cta-buttons",style:{position:"relative",zIndex:1},children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsxs)("div",{className:"primary-button-wrapper",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:"cta-primary-button",value:i,onChange:o=>a({primaryButtonText:o}),placeholder:(0,e.__)("Primary button text...","section-blocks"),style:{backgroundColor:v,color:j,borderRadius:`${w}px`}}),(0,n.jsx)(t.TextControl,{label:(0,e.__)("Primary Button URL","section-blocks"),value:d,onChange:o=>a({primaryButtonUrl:o}),placeholder:"https://"})]}),g&&(0,n.jsxs)("div",{className:"secondary-button-wrapper",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:"cta-secondary-button",value:u,onChange:o=>a({secondaryButtonText:o}),placeholder:(0,e.__)("Secondary button text...","section-blocks"),style:{backgroundColor:y,color:B,borderRadius:`${w}px`,border:"transparent"===y?`2px solid ${B}`:"none"}}),(0,n.jsx)(t.TextControl,{label:(0,e.__)("Secondary Button URL","section-blocks"),value:b,onChange:o=>a({secondaryButtonUrl:o}),placeholder:"https://"})]})]})})]})]})}})}},l={};function t(o){var n=l[o];if(void 0!==n)return n.exports;var a=l[o]={exports:{}};return e[o](a,a.exports,t),a.exports}t.m=e,o=[],t.O=(e,l,n,a)=>{if(!l){var s=1/0;for(d=0;d<o.length;d++){for(var[l,n,a]=o[d],c=!0,r=0;r<l.length;r++)(!1&a||s>=a)&&Object.keys(t.O).every((o=>t.O[o](l[r])))?l.splice(r--,1):(c=!1,a<s&&(s=a));if(c){o.splice(d--,1);var i=n();void 0!==i&&(e=i)}}return e}a=a||0;for(var d=o.length;d>0&&o[d-1][2]>a;d--)o[d]=o[d-1];o[d]=[l,n,a]},t.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),(()=>{var o={ 608:0,488:0};t.O.j=e=>0===o[e];var e=(e,l)=>{var n,a,[s,c,r]=l,i=0;if(s.some((e=>0!==o[e]))){for(n in c)t.o(c,n)&&(t.m[n]=c[n]);if(r)var d=r(t)}for(e&&e(l);i<s.length;i++)a=s[i],t.o(o,a)&&o[a]&&o[a][0](),o[a]=0;return t.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(e.bind(null,0)),l.push=e.bind(null,l.push.bind(l))})();var n=t.O(void 0,[488],(()=>t(957)));n=t.O(n)})();1 (()=>{"use strict";var o,e={957:()=>{const o=window.wp.blocks,e=window.wp.i18n,l=window.wp.blockEditor,t=window.wp.components,n=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/cta-section"}');(0,o.registerBlockType)(a.UU,{edit:function({attributes:o,setAttributes:a}){const{title:s,subtitle:c,description:r,primaryButtonText:i,primaryButtonUrl:d,secondaryButtonText:u,secondaryButtonUrl:b,showSecondaryButton:g,backgroundType:x,backgroundColor:h,gradientColors:k,backgroundImage:p,backgroundImageId:_,overlayOpacity:m,textColor:C,primaryButtonColor:v,primaryButtonTextColor:j,secondaryButtonColor:y,secondaryButtonTextColor:B,textAlignment:N,buttonLayout:S,spacing:T,borderRadius:w,animationEffect:f}=o,R=(0,l.useBlockProps)({className:`cta-section layout-${S} text-${N} spacing-${T} animation-${f}`,style:{...(()=>{let o={};switch(x){case"color":o.backgroundColor=h;break;case"gradient":o.background=`linear-gradient(135deg, ${k.start} 0%, ${k.end} 100%)`;break;case"image":p&&(o.backgroundImage=`url(${p.url})`,o.backgroundSize="cover",o.backgroundPosition="center",o.backgroundRepeat="no-repeat")}return o})(),color:C,borderRadius:`${w}px`}});return(0,n.jsxs)("div",{...R,children:[(0,n.jsxs)(l.InspectorControls,{children:[(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Text Alignment","section-blocks"),value:N,options:[{label:(0,e.__)("Left","section-blocks"),value:"left"},{label:(0,e.__)("Center","section-blocks"),value:"center"},{label:(0,e.__)("Right","section-blocks"),value:"right"}],onChange:o=>a({textAlignment:o})}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Button Layout","section-blocks"),value:S,options:[{label:(0,e.__)("Horizontal","section-blocks"),value:"horizontal"},{label:(0,e.__)("Vertical","section-blocks"),value:"vertical"},{label:(0,e.__)("Stacked","section-blocks"),value:"stacked"}],onChange:o=>a({buttonLayout:o})}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Spacing","section-blocks"),value:T,options:[{label:(0,e.__)("Compact","section-blocks"),value:"compact"},{label:(0,e.__)("Normal","section-blocks"),value:"normal"},{label:(0,e.__)("Spacious","section-blocks"),value:"spacious"}],onChange:o=>a({spacing:o})}),(0,n.jsx)(t.RangeControl,{label:(0,e.__)("Border Radius","section-blocks"),value:w,onChange:o=>a({borderRadius:o}),min:0,max:50})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Background Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Background Type","section-blocks"),value:x,options:[{label:(0,e.__)("Solid Color","section-blocks"),value:"color"},{label:(0,e.__)("Gradient","section-blocks"),value:"gradient"},{label:(0,e.__)("Image","section-blocks"),value:"image"}],onChange:o=>a({backgroundType:o})}),"color"===x&&(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Background Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:h,onChange:o=>a({backgroundColor:o})})]}),"gradient"===x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Gradient Start Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:k.start,onChange:o=>a({gradientColors:{...k,start:o}})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Gradient End Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:k.end,onChange:o=>a({gradientColors:{...k,end:o}})})]})]}),"image"===x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:o=>{a({backgroundImage:{url:o.url,alt:o.alt},backgroundImageId:o.id})},allowedTypes:["image"],value:_,render:({open:o})=>(0,n.jsx)(t.Button,{className:p?"image-button has-image":"image-button",onClick:o,children:p?(0,n.jsx)("img",{src:p.url,alt:p.alt||""}):(0,e.__)("Select Background Image","section-blocks")})})}),p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.Button,{onClick:()=>{a({backgroundImage:null,backgroundImageId:0})},isDestructive:!0,isSmall:!0,children:(0,e.__)("Remove Image","section-blocks")}),(0,n.jsx)(t.RangeControl,{label:(0,e.__)("Overlay Opacity","section-blocks"),value:m,onChange:o=>a({overlayOpacity:o}),min:0,max:1,step:.1})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Button Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.ToggleControl,{label:(0,e.__)("Show Secondary Button","section-blocks"),checked:g,onChange:o=>a({showSecondaryButton:o})}),(0,n.jsx)("h4",{children:(0,e.__)("Primary Button","section-blocks")}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:v,onChange:o=>a({primaryButtonColor:o})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:j,onChange:o=>a({primaryButtonTextColor:o})})]}),g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h4",{children:(0,e.__)("Secondary Button","section-blocks")}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:y,onChange:o=>a({secondaryButtonColor:o})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Button Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:B,onChange:o=>a({secondaryButtonTextColor:o})})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,e.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,e.__)("Text Color","section-blocks")}),(0,n.jsx)(t.ColorPicker,{color:C,onChange:o=>a({textColor:o})})]}),(0,n.jsx)(t.SelectControl,{label:(0,e.__)("Animation Effect","section-blocks"),value:f,options:[{label:(0,e.__)("None","section-blocks"),value:"none"},{label:(0,e.__)("Fade In","section-blocks"),value:"fade-in"},{label:(0,e.__)("Slide Up","section-blocks"),value:"slide-up"},{label:(0,e.__)("Bounce","section-blocks"),value:"bounce"}],onChange:o=>a({animationEffect:o})})]})]}),(0,n.jsxs)("div",{className:"cta-content",children:["image"===x&&p&&(0,n.jsx)("div",{className:"cta-overlay",style:{backgroundColor:`rgba(0, 0, 0, ${m})`,position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:`${w}px`}}),(0,n.jsxs)("div",{className:"cta-text",style:{position:"relative",zIndex:1},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"cta-title",value:s,onChange:o=>a({title:o}),placeholder:(0,e.__)("Enter your call-to-action title...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"cta-subtitle",value:c,onChange:o=>a({subtitle:o}),placeholder:(0,e.__)("Enter your compelling subtitle...","section-blocks")}),r&&(0,n.jsx)(l.RichText,{tagName:"p",className:"cta-description",value:r,onChange:o=>a({description:o}),placeholder:(0,e.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"cta-buttons",style:{position:"relative",zIndex:1},children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsxs)("div",{className:"primary-button-wrapper",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:"cta-primary-button",value:i,onChange:o=>a({primaryButtonText:o}),placeholder:(0,e.__)("Primary button text...","section-blocks"),style:{backgroundColor:v,color:j,borderRadius:`${w}px`}}),(0,n.jsx)(t.TextControl,{label:(0,e.__)("Primary Button URL","section-blocks"),value:d,onChange:o=>a({primaryButtonUrl:o}),placeholder:"https://"})]}),g&&(0,n.jsxs)("div",{className:"secondary-button-wrapper",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:"cta-secondary-button",value:u,onChange:o=>a({secondaryButtonText:o}),placeholder:(0,e.__)("Secondary button text...","section-blocks"),style:{backgroundColor:y,color:B,borderRadius:`${w}px`,border:"transparent"===y?`2px solid ${B}`:"none"}}),(0,n.jsx)(t.TextControl,{label:(0,e.__)("Secondary Button URL","section-blocks"),value:b,onChange:o=>a({secondaryButtonUrl:o}),placeholder:"https://"})]})]})})]})]})}})}},l={};function t(o){var n=l[o];if(void 0!==n)return n.exports;var a=l[o]={exports:{}};return e[o](a,a.exports,t),a.exports}t.m=e,o=[],t.O=(e,l,n,a)=>{if(!l){var s=1/0;for(d=0;d<o.length;d++){for(var[l,n,a]=o[d],c=!0,r=0;r<l.length;r++)(!1&a||s>=a)&&Object.keys(t.O).every((o=>t.O[o](l[r])))?l.splice(r--,1):(c=!1,a<s&&(s=a));if(c){o.splice(d--,1);var i=n();void 0!==i&&(e=i)}}return e}a=a||0;for(var d=o.length;d>0&&o[d-1][2]>a;d--)o[d]=o[d-1];o[d]=[l,n,a]},t.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),(()=>{var o={5608:0,3488:0};t.O.j=e=>0===o[e];var e=(e,l)=>{var n,a,[s,c,r]=l,i=0;if(s.some((e=>0!==o[e]))){for(n in c)t.o(c,n)&&(t.m[n]=c[n]);if(r)var d=r(t)}for(e&&e(l);i<s.length;i++)a=s[i],t.o(o,a)&&o[a]&&o[a][0](),o[a]=0;return t.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(e.bind(null,0)),l.push=e.bind(null,l.push.bind(l))})();var n=t.O(void 0,[3488],(()=>t(957)));n=t.O(n)})(); -
section-blocks/trunk/build/faq-accordion/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => ' 8a04b1340a96061a0ae1');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '121a5430539e17cb243f'); -
section-blocks/trunk/build/faq-accordion/index.js
r3302097 r3750877 1 (()=>{"use strict";var e,o={357:()=>{const e=window.wp.blocks,o=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.components,a=window.wp.element,s=window.ReactJSXRuntime,t=JSON.parse('{"UU":"create-block/faq-accordion"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{title:c,faqs:i,categories:r,activeCategory:d,layoutStyle:_,iconStyle:u,animationSpeed:h,animationEasing:b,allowMultipleOpen:g,showSearch:x,showCategories:p,showExpandCollapseAll:m,showVoting:k,showViewCount:v,enableSchema:C,schemaType:j,colors:w,typography:f,spacing:y,searchPlaceholder:S,noResultsMessage:T,expandAllText:q,collapseAllText:B,helpfulText:A,notHelpfulText:N}=e,[P,O]=(0,a.useState)(""),[F,E]=(0,a.useState)(new Set),Q=(0,n.useBlockProps)({className:`faq-accordion faq-accordion--${_}`}),R=(e,o,n)=>{const l=[...i];l[e]={...l[e],[o]:n},t({faqs:l})},I=i.filter((e=>{const o=!P||e.question.toLowerCase().includes(P.toLowerCase())||e.answer.toLowerCase().includes(P.toLowerCase()),n="All"===d||e.category===d;return o&&n})),D=e=>{switch(u){case"plus-minus":default:return e?"−":"+";case"chevron":return e?"⌄":"⌃";case"arrow":return e?"↓":"→";case"triangle":return e?"▼":"▶"}},M=[{name:"Primary",color:"#007cba"},{name:"Secondary",color:"#6c757d"},{name:"Success",color:"#28a745"},{name:"Info",color:"#17a2b8"},{name:"Warning",color:"#ffc107"},{name:"Danger",color:"#dc3545"},{name:"Light",color:"#f8f9fa"},{name:"Dark",color:"#343a40"}];return(0,s.jsxs)("div",{...Q,children:[(0,s.jsx)(n.InspectorControls,{children:(0,s.jsx)(l.TabPanel,{className:"faq-accordion-tabs",activeClass:"active-tab",tabs:[{name:"content",title:(0,o.__)("Content","section-blocks"),className:"tab-content"},{name:"design",title:(0,o.__)("Design","section-blocks"),className:"tab-design"},{name:"advanced",title:(0,o.__)("Advanced","section-blocks"),className:"tab-advanced"}],children:e=>(0,s.jsxs)("div",{className:`tab-panel tab-panel-${e.name}`,children:["content"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("FAQ Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Section Title","section-blocks"),value:c,onChange:e=>t({title:e})}),(0,s.jsx)(l.__experimentalDivider,{}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Search","section-blocks"),checked:x,onChange:e=>t({showSearch:e})}),x&&(0,s.jsx)(l.TextControl,{label:(0,o.__)("Search Placeholder","section-blocks"),value:S,onChange:e=>t({searchPlaceholder:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Categories","section-blocks"),checked:p,onChange:e=>t({showCategories:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Expand/Collapse All","section-blocks"),checked:m,onChange:e=>t({showExpandCollapseAll:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Allow Multiple Open","section-blocks"),checked:g,onChange:e=>t({allowMultipleOpen:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Categories","section-blocks"),initialOpen:!1,children:[r.map(((e,n)=>(0,s.jsxs)(l.Flex,{justify:"space-between",align:"center",children:[(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.__experimentalText,{children:e})}),(0,s.jsx)(l.FlexItem,{children:r.length>1&&(0,s.jsx)(l.Button,{isDestructive:!0,isSmall:!0,onClick:()=>(e=>{if(r.length>1){const o=r.filter((o=>o!==e));t({categories:o});const n=i.map((n=>n.category===e?{...n,category:o[0]}:n));t({faqs:n})}})(e),children:(0,o.__)("Remove","section-blocks")})})]},n))),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Add New Category","section-blocks"),placeholder:(0,o.__)("Category name...","section-blocks"),onKeyDown:e=>{var o;"Enter"===e.key&&e.target.value.trim()&&((o=e.target.value.trim())&&!r.includes(o)&&t({categories:[...r,o]}),e.target.value="")}})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Features","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Enable Voting","section-blocks"),checked:k,onChange:e=>t({showVoting:e}),help:(0,o.__)("Allow users to vote if answers are helpful","section-blocks")}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show View Count","section-blocks"),checked:v,onChange:e=>t({showViewCount:e}),help:(0,o.__)("Display how many times each FAQ was viewed","section-blocks")}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Enable Schema Markup","section-blocks"),checked:C,onChange:e=>t({enableSchema:e}),help:(0,o.__)("Add structured data for better SEO","section-blocks")}),C&&(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Schema Type","section-blocks"),value:j,options:[{label:(0,o.__)("FAQ Page","section-blocks"),value:"FAQPage"},{label:(0,o.__)("Question","section-blocks"),value:"Question"}],onChange:e=>t({schemaType:e})})]})]}),"design"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Layout & Style","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:_,options:[{label:(0,o.__)("Default","section-blocks"),value:"default"},{label:(0,o.__)("Bordered","section-blocks"),value:"bordered"},{label:(0,o.__)("Card","section-blocks"),value:"card"},{label:(0,o.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,o.__)("Modern","section-blocks"),value:"modern"}],onChange:e=>t({layoutStyle:e})}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Icon Style","section-blocks"),value:u,options:[{label:(0,o.__)("Plus/Minus","section-blocks"),value:"plus-minus"},{label:(0,o.__)("Chevron","section-blocks"),value:"chevron"},{label:(0,o.__)("Arrow","section-blocks"),value:"arrow"},{label:(0,o.__)("Triangle","section-blocks"),value:"triangle"}],onChange:e=>t({iconStyle:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Question Background","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.questionBackground,onChange:e=>t({colors:{...w,questionBackground:e||"#f8f9fa"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Question Text","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.questionText,onChange:e=>t({colors:{...w,questionText:e||"#333333"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Answer Background","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.answerBackground,onChange:e=>t({colors:{...w,answerBackground:e||"#ffffff"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Answer Text","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.answerText,onChange:e=>t({colors:{...w,answerText:e||"#666666"}})})]})]}),"advanced"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Animation","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.RangeControl,{label:(0,o.__)("Animation Speed (ms)","section-blocks"),value:h,onChange:e=>t({animationSpeed:e}),min:100,max:1e3,step:50}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Animation Easing","section-blocks"),value:b,options:[{label:(0,o.__)("Ease","section-blocks"),value:"ease"},{label:(0,o.__)("Ease In","section-blocks"),value:"ease-in"},{label:(0,o.__)("Ease Out","section-blocks"),value:"ease-out"},{label:(0,o.__)("Ease In Out","section-blocks"),value:"ease-in-out"},{label:(0,o.__)("Linear","section-blocks"),value:"linear"}],onChange:e=>t({animationEasing:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Typography","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Question Font Size","section-blocks"),value:f.questionFontSize,onChange:e=>t({typography:{...f,questionFontSize:e}})}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Question Font Weight","section-blocks"),value:f.questionFontWeight,options:[{label:(0,o.__)("Normal","section-blocks"),value:"400"},{label:(0,o.__)("Medium","section-blocks"),value:"500"},{label:(0,o.__)("Semi Bold","section-blocks"),value:"600"},{label:(0,o.__)("Bold","section-blocks"),value:"700"}],onChange:e=>t({typography:{...f,questionFontWeight:e}})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Spacing","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Question Padding","section-blocks"),value:y.questionPadding,onChange:e=>t({spacing:{...y,questionPadding:e}})}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Answer Padding","section-blocks"),value:y.answerPadding,onChange:e=>t({spacing:{...y,answerPadding:e}})}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Border Radius","section-blocks"),value:y.borderRadius,onChange:e=>t({spacing:{...y,borderRadius:e}})})]})]})]})})}),(0,s.jsxs)("div",{className:"faq-accordion-editor",children:[(0,s.jsx)(n.RichText,{tagName:"h2",className:"faq-accordion__title",value:c,onChange:e=>t({title:e}),placeholder:(0,o.__)("Enter FAQ section title...","section-blocks")}),x&&(0,s.jsx)("div",{className:"faq-accordion__search",children:(0,s.jsx)("input",{type:"text",placeholder:S,value:P,onChange:e=>O(e.target.value),className:"faq-accordion__search-input"})}),p&&r.length>1&&(0,s.jsx)("div",{className:"faq-accordion__categories",children:(0,s.jsxs)(l.ButtonGroup,{children:[(0,s.jsx)(l.Button,{variant:"All"===d?"primary":"secondary",onClick:()=>t({activeCategory:"All"}),children:(0,o.__)("All","section-blocks")}),r.map((e=>(0,s.jsx)(l.Button,{variant:d===e?"primary":"secondary",onClick:()=>t({activeCategory:e}),children:e},e)))]})}),m&&(0,s.jsx)("div",{className:"faq-accordion__controls",children:(0,s.jsx)(l.Button,{variant:"link",children:F.size>0?B:q})}),(0,s.jsx)("div",{className:"faq-accordion__items",children:I.map(((e,a)=>{const c=i.findIndex((o=>o.id===e.id)),d=F.has(c);return(0,s.jsxs)(l.Card,{className:"faq-accordion__item",children:[(0,s.jsx)(l.CardHeader,{children:(0,s.jsxs)(l.Flex,{justify:"space-between",align:"center",children:[(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.Button,{variant:"link",onClick:()=>(e=>{const o=new Set(F);o.has(e)?o.delete(e):(g||o.clear(),o.add(e)),E(o)})(c),className:"faq-accordion__toggle",children:(0,s.jsx)("span",{className:"faq-accordion__icon",children:D(d)})})}),(0,s.jsx)(l.FlexItem,{isBlock:!0,children:(0,s.jsx)(n.RichText,{tagName:"h3",className:"faq-accordion__question",value:e.question,onChange:e=>R(c,"question",e),placeholder:(0,o.__)("Enter your question...","section-blocks")})}),(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.Button,{isDestructive:!0,isSmall:!0,onClick:()=>(e=>{const o=i.filter(((o,n)=>n!==e));t({faqs:o})})(c),children:(0,o.__)("Remove","section-blocks")})})]})}),d&&(0,s.jsxs)(l.CardBody,{children:[(0,s.jsx)(n.RichText,{tagName:"div",className:"faq-accordion__answer",value:e.answer,onChange:e=>R(c,"answer",e),placeholder:(0,o.__)("Enter your answer...","section-blocks"),multiline:"p"}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Category","section-blocks"),value:e.category,options:r.map((e=>({label:e,value:e}))),onChange:e=>R(c,"category",e)})]})]},e.id)}))}),(0,s.jsx)("div",{className:"faq-accordion__add-item",children:(0,s.jsx)(l.Button,{variant:"primary",onClick:()=>{const e={id:`faq-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,question:(0,o.__)("New Question","section-blocks"),answer:(0,o.__)("Your answer goes here...","section-blocks"),category:r[0]||"General",isOpen:!1,votes:{helpful:0,notHelpful:0},views:0};t({faqs:[...i,e]})},children:(0,o.__)("Add New FAQ","section-blocks")})}),0===I.length&&P&&(0,s.jsx)("div",{className:"faq-accordion__no-results",children:(0,s.jsx)(l.__experimentalText,{children:T})})]})]})}})}},n={};function l(e){var a=n[e];if(void 0!==a)return a.exports;var s=n[e]={exports:{}};return o[e](s,s.exports,l),s.exports}l.m=o,e=[],l.O=(o,n,a,s)=>{if(!n){var t=1/0;for(d=0;d<e.length;d++){for(var[n,a,s]=e[d],c=!0,i=0;i<n.length;i++)(!1&s||t>=s)&&Object.keys(l.O).every((e=>l.O[e](n[i])))?n.splice(i--,1):(c=!1,s<t&&(t=s));if(c){e.splice(d--,1);var r=a();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[n,a,s]},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={ 9:0,157:0};l.O.j=o=>0===e[o];var o=(o,n)=>{var a,s,[t,c,i]=n,r=0;if(t.some((o=>0!==e[o]))){for(a in c)l.o(c,a)&&(l.m[a]=c[a]);if(i)var d=i(l)}for(o&&o(n);r<t.length;r++)s=t[r],l.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return l.O(d)},n=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];n.forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n))})();var a=l.O(void 0,[157],(()=>l(357)));a=l.O(a)})();1 (()=>{"use strict";var e,o={357:()=>{const e=window.wp.blocks,o=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.components,a=window.wp.element,s=window.ReactJSXRuntime,t=JSON.parse('{"UU":"create-block/faq-accordion"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{title:c,faqs:i,categories:r,activeCategory:d,layoutStyle:_,iconStyle:u,animationSpeed:h,animationEasing:b,allowMultipleOpen:g,showSearch:x,showCategories:p,showExpandCollapseAll:m,showVoting:k,showViewCount:v,enableSchema:C,schemaType:j,colors:w,typography:f,spacing:y,searchPlaceholder:S,noResultsMessage:T,expandAllText:q,collapseAllText:B,helpfulText:A,notHelpfulText:N}=e,[P,O]=(0,a.useState)(""),[F,E]=(0,a.useState)(new Set),Q=(0,n.useBlockProps)({className:`faq-accordion faq-accordion--${_}`}),R=(e,o,n)=>{const l=[...i];l[e]={...l[e],[o]:n},t({faqs:l})},I=i.filter((e=>{const o=!P||e.question.toLowerCase().includes(P.toLowerCase())||e.answer.toLowerCase().includes(P.toLowerCase()),n="All"===d||e.category===d;return o&&n})),D=e=>{switch(u){case"plus-minus":default:return e?"−":"+";case"chevron":return e?"⌄":"⌃";case"arrow":return e?"↓":"→";case"triangle":return e?"▼":"▶"}},M=[{name:"Primary",color:"#007cba"},{name:"Secondary",color:"#6c757d"},{name:"Success",color:"#28a745"},{name:"Info",color:"#17a2b8"},{name:"Warning",color:"#ffc107"},{name:"Danger",color:"#dc3545"},{name:"Light",color:"#f8f9fa"},{name:"Dark",color:"#343a40"}];return(0,s.jsxs)("div",{...Q,children:[(0,s.jsx)(n.InspectorControls,{children:(0,s.jsx)(l.TabPanel,{className:"faq-accordion-tabs",activeClass:"active-tab",tabs:[{name:"content",title:(0,o.__)("Content","section-blocks"),className:"tab-content"},{name:"design",title:(0,o.__)("Design","section-blocks"),className:"tab-design"},{name:"advanced",title:(0,o.__)("Advanced","section-blocks"),className:"tab-advanced"}],children:e=>(0,s.jsxs)("div",{className:`tab-panel tab-panel-${e.name}`,children:["content"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("FAQ Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Section Title","section-blocks"),value:c,onChange:e=>t({title:e})}),(0,s.jsx)(l.__experimentalDivider,{}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Search","section-blocks"),checked:x,onChange:e=>t({showSearch:e})}),x&&(0,s.jsx)(l.TextControl,{label:(0,o.__)("Search Placeholder","section-blocks"),value:S,onChange:e=>t({searchPlaceholder:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Categories","section-blocks"),checked:p,onChange:e=>t({showCategories:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show Expand/Collapse All","section-blocks"),checked:m,onChange:e=>t({showExpandCollapseAll:e})}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Allow Multiple Open","section-blocks"),checked:g,onChange:e=>t({allowMultipleOpen:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Categories","section-blocks"),initialOpen:!1,children:[r.map(((e,n)=>(0,s.jsxs)(l.Flex,{justify:"space-between",align:"center",children:[(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.__experimentalText,{children:e})}),(0,s.jsx)(l.FlexItem,{children:r.length>1&&(0,s.jsx)(l.Button,{isDestructive:!0,isSmall:!0,onClick:()=>(e=>{if(r.length>1){const o=r.filter((o=>o!==e));t({categories:o});const n=i.map((n=>n.category===e?{...n,category:o[0]}:n));t({faqs:n})}})(e),children:(0,o.__)("Remove","section-blocks")})})]},n))),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Add New Category","section-blocks"),placeholder:(0,o.__)("Category name...","section-blocks"),onKeyDown:e=>{var o;"Enter"===e.key&&e.target.value.trim()&&((o=e.target.value.trim())&&!r.includes(o)&&t({categories:[...r,o]}),e.target.value="")}})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Features","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Enable Voting","section-blocks"),checked:k,onChange:e=>t({showVoting:e}),help:(0,o.__)("Allow users to vote if answers are helpful","section-blocks")}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Show View Count","section-blocks"),checked:v,onChange:e=>t({showViewCount:e}),help:(0,o.__)("Display how many times each FAQ was viewed","section-blocks")}),(0,s.jsx)(l.ToggleControl,{label:(0,o.__)("Enable Schema Markup","section-blocks"),checked:C,onChange:e=>t({enableSchema:e}),help:(0,o.__)("Add structured data for better SEO","section-blocks")}),C&&(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Schema Type","section-blocks"),value:j,options:[{label:(0,o.__)("FAQ Page","section-blocks"),value:"FAQPage"},{label:(0,o.__)("Question","section-blocks"),value:"Question"}],onChange:e=>t({schemaType:e})})]})]}),"design"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Layout & Style","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:_,options:[{label:(0,o.__)("Default","section-blocks"),value:"default"},{label:(0,o.__)("Bordered","section-blocks"),value:"bordered"},{label:(0,o.__)("Card","section-blocks"),value:"card"},{label:(0,o.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,o.__)("Modern","section-blocks"),value:"modern"}],onChange:e=>t({layoutStyle:e})}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Icon Style","section-blocks"),value:u,options:[{label:(0,o.__)("Plus/Minus","section-blocks"),value:"plus-minus"},{label:(0,o.__)("Chevron","section-blocks"),value:"chevron"},{label:(0,o.__)("Arrow","section-blocks"),value:"arrow"},{label:(0,o.__)("Triangle","section-blocks"),value:"triangle"}],onChange:e=>t({iconStyle:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Question Background","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.questionBackground,onChange:e=>t({colors:{...w,questionBackground:e||"#f8f9fa"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Question Text","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.questionText,onChange:e=>t({colors:{...w,questionText:e||"#333333"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Answer Background","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.answerBackground,onChange:e=>t({colors:{...w,answerBackground:e||"#ffffff"}})}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.__experimentalText,{children:(0,o.__)("Answer Text","section-blocks")}),(0,s.jsx)(l.ColorPalette,{colors:M,value:w.answerText,onChange:e=>t({colors:{...w,answerText:e||"#666666"}})})]})]}),"advanced"===e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Animation","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(l.RangeControl,{label:(0,o.__)("Animation Speed (ms)","section-blocks"),value:h,onChange:e=>t({animationSpeed:e}),min:100,max:1e3,step:50}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Animation Easing","section-blocks"),value:b,options:[{label:(0,o.__)("Ease","section-blocks"),value:"ease"},{label:(0,o.__)("Ease In","section-blocks"),value:"ease-in"},{label:(0,o.__)("Ease Out","section-blocks"),value:"ease-out"},{label:(0,o.__)("Ease In Out","section-blocks"),value:"ease-in-out"},{label:(0,o.__)("Linear","section-blocks"),value:"linear"}],onChange:e=>t({animationEasing:e})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Typography","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Question Font Size","section-blocks"),value:f.questionFontSize,onChange:e=>t({typography:{...f,questionFontSize:e}})}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Question Font Weight","section-blocks"),value:f.questionFontWeight,options:[{label:(0,o.__)("Normal","section-blocks"),value:"400"},{label:(0,o.__)("Medium","section-blocks"),value:"500"},{label:(0,o.__)("Semi Bold","section-blocks"),value:"600"},{label:(0,o.__)("Bold","section-blocks"),value:"700"}],onChange:e=>t({typography:{...f,questionFontWeight:e}})})]}),(0,s.jsxs)(l.PanelBody,{title:(0,o.__)("Spacing","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(l.TextControl,{label:(0,o.__)("Question Padding","section-blocks"),value:y.questionPadding,onChange:e=>t({spacing:{...y,questionPadding:e}})}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Answer Padding","section-blocks"),value:y.answerPadding,onChange:e=>t({spacing:{...y,answerPadding:e}})}),(0,s.jsx)(l.TextControl,{label:(0,o.__)("Border Radius","section-blocks"),value:y.borderRadius,onChange:e=>t({spacing:{...y,borderRadius:e}})})]})]})]})})}),(0,s.jsxs)("div",{className:"faq-accordion-editor",children:[(0,s.jsx)(n.RichText,{tagName:"h2",className:"faq-accordion__title",value:c,onChange:e=>t({title:e}),placeholder:(0,o.__)("Enter FAQ section title...","section-blocks")}),x&&(0,s.jsx)("div",{className:"faq-accordion__search",children:(0,s.jsx)("input",{type:"text",placeholder:S,value:P,onChange:e=>O(e.target.value),className:"faq-accordion__search-input"})}),p&&r.length>1&&(0,s.jsx)("div",{className:"faq-accordion__categories",children:(0,s.jsxs)(l.ButtonGroup,{children:[(0,s.jsx)(l.Button,{variant:"All"===d?"primary":"secondary",onClick:()=>t({activeCategory:"All"}),children:(0,o.__)("All","section-blocks")}),r.map((e=>(0,s.jsx)(l.Button,{variant:d===e?"primary":"secondary",onClick:()=>t({activeCategory:e}),children:e},e)))]})}),m&&(0,s.jsx)("div",{className:"faq-accordion__controls",children:(0,s.jsx)(l.Button,{variant:"link",children:F.size>0?B:q})}),(0,s.jsx)("div",{className:"faq-accordion__items",children:I.map(((e,a)=>{const c=i.findIndex((o=>o.id===e.id)),d=F.has(c);return(0,s.jsxs)(l.Card,{className:"faq-accordion__item",children:[(0,s.jsx)(l.CardHeader,{children:(0,s.jsxs)(l.Flex,{justify:"space-between",align:"center",children:[(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.Button,{variant:"link",onClick:()=>(e=>{const o=new Set(F);o.has(e)?o.delete(e):(g||o.clear(),o.add(e)),E(o)})(c),className:"faq-accordion__toggle",children:(0,s.jsx)("span",{className:"faq-accordion__icon",children:D(d)})})}),(0,s.jsx)(l.FlexItem,{isBlock:!0,children:(0,s.jsx)(n.RichText,{tagName:"h3",className:"faq-accordion__question",value:e.question,onChange:e=>R(c,"question",e),placeholder:(0,o.__)("Enter your question...","section-blocks")})}),(0,s.jsx)(l.FlexItem,{children:(0,s.jsx)(l.Button,{isDestructive:!0,isSmall:!0,onClick:()=>(e=>{const o=i.filter(((o,n)=>n!==e));t({faqs:o})})(c),children:(0,o.__)("Remove","section-blocks")})})]})}),d&&(0,s.jsxs)(l.CardBody,{children:[(0,s.jsx)(n.RichText,{tagName:"div",className:"faq-accordion__answer",value:e.answer,onChange:e=>R(c,"answer",e),placeholder:(0,o.__)("Enter your answer...","section-blocks"),multiline:"p"}),(0,s.jsx)(l.__experimentalSpacer,{marginTop:3}),(0,s.jsx)(l.SelectControl,{label:(0,o.__)("Category","section-blocks"),value:e.category,options:r.map((e=>({label:e,value:e}))),onChange:e=>R(c,"category",e)})]})]},e.id)}))}),(0,s.jsx)("div",{className:"faq-accordion__add-item",children:(0,s.jsx)(l.Button,{variant:"primary",onClick:()=>{const e={id:`faq-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,question:(0,o.__)("New Question","section-blocks"),answer:(0,o.__)("Your answer goes here...","section-blocks"),category:r[0]||"General",isOpen:!1,votes:{helpful:0,notHelpful:0},views:0};t({faqs:[...i,e]})},children:(0,o.__)("Add New FAQ","section-blocks")})}),0===I.length&&P&&(0,s.jsx)("div",{className:"faq-accordion__no-results",children:(0,s.jsx)(l.__experimentalText,{children:T})})]})]})}})}},n={};function l(e){var a=n[e];if(void 0!==a)return a.exports;var s=n[e]={exports:{}};return o[e](s,s.exports,l),s.exports}l.m=o,e=[],l.O=(o,n,a,s)=>{if(!n){var t=1/0;for(d=0;d<e.length;d++){for(var[n,a,s]=e[d],c=!0,i=0;i<n.length;i++)(!1&s||t>=s)&&Object.keys(l.O).every((e=>l.O[e](n[i])))?n.splice(i--,1):(c=!1,s<t&&(t=s));if(c){e.splice(d--,1);var r=a();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[n,a,s]},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={2009:0,8157:0};l.O.j=o=>0===e[o];var o=(o,n)=>{var a,s,[t,c,i]=n,r=0;if(t.some((o=>0!==e[o]))){for(a in c)l.o(c,a)&&(l.m[a]=c[a]);if(i)var d=i(l)}for(o&&o(n);r<t.length;r++)s=t[r],l.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return l.O(d)},n=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];n.forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n))})();var a=l.O(void 0,[8157],(()=>l(357)));a=l.O(a)})(); -
section-blocks/trunk/build/features-section/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' dfde3ff6c6211cccfd9d');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'cf67836024d12c0e09bf'); -
section-blocks/trunk/build/features-section/index.js
r3302097 r3750877 1 (()=>{"use strict";var e,l={536:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,a=window.wp.components,s=window.ReactJSXRuntime,i=[{label:"Star",value:"star-filled"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Heart",value:"heart"},{label:"Lightbulb",value:"lightbulb"},{label:"Trophy",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Check",value:"yes"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email"},{label:"Cart",value:"cart"},{label:"Money",value:"money"},{label:"Chart",value:"chart-line"},{label:"Users",value:"groups"},{label:"Settings",value:"admin-settings"}],t=JSON.parse('{"UU":"create-block/features-section"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{features:n,columns:r,showSideImage:c,sideImage:d,sideImageId:u,sideImagePosition:h,backgroundColor:g,textColor:b,iconColor:m,hoverEffect:v,spacing:p}=e,f=(0,o.useBlockProps)({className:`features-section-block columns-${r} hover-${v} spacing-${p}`,style:{backgroundColor:g,color:b,padding:"compact"===p?"2rem":"loose"===p?"4rem":"3rem"}}),x=(e,l,o)=>{const a=[...n];a[e]={...a[e],[l]:o},t({features:a})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:r,onChange:e=>t({columns:e}),min:3,max:6,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:p,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>t({spacing:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:v,options:[{label:"Lift",value:"lift"},{label:"Scale",value:"scale"},{label:"Glow",value:"glow"},{label:"None",value:"none"}],onChange:e=>t({hoverEffect:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Side Image","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Show Side Image","section-blocks"),checked:c,onChange:e=>t({showSideImage:e})}),c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.MediaUploadCheck,{children:(0,s.jsx)(o.MediaUpload,{onSelect:e=>{t({sideImage:{id:e.id,url:e.url,alt:e.alt},sideImageId:e.id})},allowedTypes:["image"],value:u,render:({open:e})=>(0,s.jsx)(a.Button,{className:d?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:d?(0,s.jsx)("img",{src:d.url,alt:d.alt||""}):(0,l.__)("Choose Side Image","section-blocks")})})}),d&&(0,s.jsx)(a.Button,{onClick:()=>{t({sideImage:null,sideImageId:0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove Side Image","section-blocks")}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Image Position","section-blocks"),value:h,options:[{label:"Left",value:"left"},{label:"Right",value:"right"}],onChange:e=>t({sideImagePosition:e})})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Background Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:g,onChange:e=>t({backgroundColor:e||"#ffffff"})}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Text Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:b,onChange:e=>t({textColor:e||"#333333"})}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Icon Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:m,onChange:e=>t({iconColor:e||"#007cba"})})]})]}),(0,s.jsxs)("div",{...f,children:[(0,s.jsxs)("div",{className:"features-container",children:[c&&"left"===h&&d&&(0,s.jsx)("div",{className:"features-side-image",children:(0,s.jsx)("img",{src:d.url,alt:d.alt||""})}),(0,s.jsx)("div",{className:"features-grid",children:n.map(((e,r)=>(0,s.jsxs)("div",{className:"feature-item",children:[(0,s.jsxs)("div",{className:"feature-controls",children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Icon","section-blocks"),value:e.icon,options:i,onChange:e=>x(r,"icon",e)}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=n.filter(((l,o)=>o!==e));t({features:l})})(r),isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove","section-blocks")})]}),(0,s.jsx)("div",{className:"feature-icon",style:{color:m},children:(0,s.jsx)(a.Dashicon,{icon:e.icon,size:"48"})}),(0,s.jsx)(o.RichText,{tagName:"h3",className:"feature-heading",value:e.heading,onChange:e=>x(r,"heading",e),placeholder:(0,l.__)("Feature heading...","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"feature-description",value:e.description,onChange:e=>x(r,"description",e),placeholder:(0,l.__)("Feature description...","section-blocks")})]},r)))}),c&&"right"===h&&d&&(0,s.jsx)("div",{className:"features-side-image",children:(0,s.jsx)("img",{src:d.url,alt:d.alt||""})})]}),(0,s.jsx)("div",{className:"features-actions",children:(0,s.jsx)(a.Button,{onClick:()=>{const e=[...n,{icon:"star-filled",heading:"New Feature",description:"Describe your amazing feature here."}];t({features:e})},isPrimary:!0,children:(0,l.__)("Add Feature","section-blocks")})})]})]})}})}},o={};function a(e){var s=o[e];if(void 0!==s)return s.exports;var i=o[e]={exports:{}};return l[e](i,i.exports,a),i.exports}a.m=l,e=[],a.O=(l,o,s,i)=>{if(!o){var t=1/0;for(d=0;d<e.length;d++){for(var[o,s,i]=e[d],n=!0,r=0;r<o.length;r++)(!1&i||t>=i)&&Object.keys(a.O).every((e=>a.O[e](o[r])))?o.splice(r--,1):(n=!1,i<t&&(t=i));if(n){e.splice(d--,1);var c=s();void 0!==c&&(l=c)}}return l}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[o,s,i]},a.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={ 69:0,169:0};a.O.j=l=>0===e[l];var l=(l,o)=>{var s,i,[t,n,r]=o,c=0;if(t.some((l=>0!==e[l]))){for(s in n)a.o(n,s)&&(a.m[s]=n[s]);if(r)var d=r(a)}for(l&&l(o);c<t.length;c++)i=t[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=a.O(void 0,[169],(()=>a(536)));s=a.O(s)})();1 (()=>{"use strict";var e,l={536:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,a=window.wp.components,s=window.ReactJSXRuntime,i=[{label:"Star",value:"star-filled"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Heart",value:"heart"},{label:"Lightbulb",value:"lightbulb"},{label:"Trophy",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Check",value:"yes"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email"},{label:"Cart",value:"cart"},{label:"Money",value:"money"},{label:"Chart",value:"chart-line"},{label:"Users",value:"groups"},{label:"Settings",value:"admin-settings"}],t=JSON.parse('{"UU":"create-block/features-section"}');(0,e.registerBlockType)(t.UU,{edit:function({attributes:e,setAttributes:t}){const{features:n,columns:r,showSideImage:c,sideImage:d,sideImageId:u,sideImagePosition:h,backgroundColor:g,textColor:b,iconColor:m,hoverEffect:v,spacing:p}=e,f=(0,o.useBlockProps)({className:`features-section-block columns-${r} hover-${v} spacing-${p}`,style:{backgroundColor:g,color:b,padding:"compact"===p?"2rem":"loose"===p?"4rem":"3rem"}}),x=(e,l,o)=>{const a=[...n];a[e]={...a[e],[l]:o},t({features:a})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:r,onChange:e=>t({columns:e}),min:3,max:6,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:p,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>t({spacing:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:v,options:[{label:"Lift",value:"lift"},{label:"Scale",value:"scale"},{label:"Glow",value:"glow"},{label:"None",value:"none"}],onChange:e=>t({hoverEffect:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Side Image","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Show Side Image","section-blocks"),checked:c,onChange:e=>t({showSideImage:e})}),c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.MediaUploadCheck,{children:(0,s.jsx)(o.MediaUpload,{onSelect:e=>{t({sideImage:{id:e.id,url:e.url,alt:e.alt},sideImageId:e.id})},allowedTypes:["image"],value:u,render:({open:e})=>(0,s.jsx)(a.Button,{className:d?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:d?(0,s.jsx)("img",{src:d.url,alt:d.alt||""}):(0,l.__)("Choose Side Image","section-blocks")})})}),d&&(0,s.jsx)(a.Button,{onClick:()=>{t({sideImage:null,sideImageId:0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove Side Image","section-blocks")}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Image Position","section-blocks"),value:h,options:[{label:"Left",value:"left"},{label:"Right",value:"right"}],onChange:e=>t({sideImagePosition:e})})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Background Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:g,onChange:e=>t({backgroundColor:e||"#ffffff"})}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Text Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:b,onChange:e=>t({textColor:e||"#333333"})}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:(0,l.__)("Icon Color","section-blocks")})}),(0,s.jsx)(o.ColorPalette,{value:m,onChange:e=>t({iconColor:e||"#007cba"})})]})]}),(0,s.jsxs)("div",{...f,children:[(0,s.jsxs)("div",{className:"features-container",children:[c&&"left"===h&&d&&(0,s.jsx)("div",{className:"features-side-image",children:(0,s.jsx)("img",{src:d.url,alt:d.alt||""})}),(0,s.jsx)("div",{className:"features-grid",children:n.map(((e,r)=>(0,s.jsxs)("div",{className:"feature-item",children:[(0,s.jsxs)("div",{className:"feature-controls",children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Icon","section-blocks"),value:e.icon,options:i,onChange:e=>x(r,"icon",e)}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=n.filter(((l,o)=>o!==e));t({features:l})})(r),isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove","section-blocks")})]}),(0,s.jsx)("div",{className:"feature-icon",style:{color:m},children:(0,s.jsx)(a.Dashicon,{icon:e.icon,size:"48"})}),(0,s.jsx)(o.RichText,{tagName:"h3",className:"feature-heading",value:e.heading,onChange:e=>x(r,"heading",e),placeholder:(0,l.__)("Feature heading...","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"feature-description",value:e.description,onChange:e=>x(r,"description",e),placeholder:(0,l.__)("Feature description...","section-blocks")})]},r)))}),c&&"right"===h&&d&&(0,s.jsx)("div",{className:"features-side-image",children:(0,s.jsx)("img",{src:d.url,alt:d.alt||""})})]}),(0,s.jsx)("div",{className:"features-actions",children:(0,s.jsx)(a.Button,{onClick:()=>{const e=[...n,{icon:"star-filled",heading:"New Feature",description:"Describe your amazing feature here."}];t({features:e})},isPrimary:!0,children:(0,l.__)("Add Feature","section-blocks")})})]})]})}})}},o={};function a(e){var s=o[e];if(void 0!==s)return s.exports;var i=o[e]={exports:{}};return l[e](i,i.exports,a),i.exports}a.m=l,e=[],a.O=(l,o,s,i)=>{if(!o){var t=1/0;for(d=0;d<e.length;d++){for(var[o,s,i]=e[d],n=!0,r=0;r<o.length;r++)(!1&i||t>=i)&&Object.keys(a.O).every((e=>a.O[e](o[r])))?o.splice(r--,1):(n=!1,i<t&&(t=i));if(n){e.splice(d--,1);var c=s();void 0!==c&&(l=c)}}return l}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[o,s,i]},a.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={7069:0,3169:0};a.O.j=l=>0===e[l];var l=(l,o)=>{var s,i,[t,n,r]=o,c=0;if(t.some((l=>0!==e[l]))){for(s in n)a.o(n,s)&&(a.m[s]=n[s]);if(r)var d=r(a)}for(l&&l(o);c<t.length;c++)i=t[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=a.O(void 0,[3169],(()=>a(536)));s=a.O(s)})(); -
section-blocks/trunk/build/gallery-portfolio/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => ' 6f659553f15d7d30e96e');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '9e8eed115a7c5e944385'); -
section-blocks/trunk/build/gallery-portfolio/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,l={657:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,a=window.wp.element,t=window.wp.primitives,n=window.ReactJSXRuntime,i=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),c=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})}),r=(0,n.jsx)(t.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(t.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),d=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})}),b=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),h=JSON.parse('{"UU":"create-block/gallery-portfolio"}');(0,e.registerBlockType)(h.UU,{edit:function({attributes:e,setAttributes:t}){const{title:h,subtitle:g,showTitle:_,showSubtitle:u,layout:m,columns:k,columnsMobile:v,columnsTablet:x,gap:p,aspectRatio:j,items:C,categories:y,showFilter:w,showSearch:f,showSort:S,enableLightbox:B,enableLazyLoad:N,hoverEffect:T,animationEffect:A,overlayColor:M,overlayOpacity:O,textColor:P,filterAlignment:R,loadMoreStyle:z,itemsPerPage:L}=e,[U,E]=(0,a.useState)(!1),[I,V]=(0,a.useState)(null),[H,G]=(0,a.useState)(""),[F,D]=(0,a.useState)(!1),[Z,q]=(0,a.useState)([]),[$,J]=(0,a.useState)("all"),W=(0,o.useBlockProps)({className:`section-blocks-gallery-portfolio layout-${m} columns-${k}`}),Y=e=>{const l=(Array.isArray(e)?e:[e]).map(((e,l)=>({id:Date.now()+l,imageId:e.id,imageUrl:e.url,imageAlt:e.alt||"",title:e.title||e.filename||"",description:e.caption||"",category:y.length>0?y[0].slug:"all",link:"",linkTarget:"_self"})));t({items:[...C,...l]})},X=(e,l)=>{const o=C.map((o=>o.id===e?{...o,...l}:o));t({items:o})},K=()=>{D(!F),q([])},Q=()=>{const e=C.map((e=>Z.includes(e.id)?{...e,category:$}:e));t({items:e}),q([]),D(!1)},ee=()=>{const e=C.filter((e=>!Z.includes(e.id)));t({items:e}),q([]),D(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.BlockControls,{children:[(0,n.jsxs)(s.ToolbarGroup,{children:[(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,render:({open:e})=>(0,n.jsx)(s.ToolbarButton,{icon:i,label:(0,l.__)("Add Images","section-blocks"),onClick:e})})}),C.length>0&&(0,n.jsx)(s.ToolbarButton,{icon:c,label:F?(0,l.__)("Exit Bulk Select","section-blocks"):(0,l.__)("Bulk Select","section-blocks"),onClick:K,isPressed:F})]}),F&&Z.length>0&&(0,n.jsxs)(s.ToolbarGroup,{children:[(0,n.jsx)(s.ToolbarButton,{icon:r,label:(0,l.__)("Change Category","section-blocks"),onClick:Q}),(0,n.jsx)(s.ToolbarButton,{icon:d,label:(0,l.__)("Delete Selected","section-blocks"),onClick:ee})]})]}),(0,n.jsxs)(o.InspectorControls,{children:[(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Gallery Management","section-blocks"),initialOpen:!0,children:(0,n.jsxs)("div",{className:"gallery-management",children:[(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,gallery:!0,render:({open:e})=>(0,n.jsx)(s.Button,{onClick:e,variant:"primary",icon:i,className:"add-images-button",children:(0,l.__)("Add Multiple Images","section-blocks")})})}),C.length>0&&(0,n.jsxs)("div",{className:"gallery-stats",children:[(0,n.jsx)("p",{children:(0,l.sprintf)((0,l.__)("Gallery contains %d image(s)","section-blocks"),C.length)}),(0,n.jsxs)("div",{className:"gallery-actions",children:[(0,n.jsx)(s.Button,{variant:"secondary",onClick:K,icon:c,children:F?(0,l.__)("Exit Bulk Select","section-blocks"):(0,l.__)("Bulk Select Mode","section-blocks")}),!F&&(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{confirm((0,l.__)("Are you sure you want to clear all images?","section-blocks"))&&t({items:[]})},isDestructive:!0,children:(0,l.__)("Clear All","section-blocks")})]})]})]})}),F&&(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Bulk Operations","section-blocks"),initialOpen:!0,children:(0,n.jsxs)("div",{className:"bulk-operations",children:[(0,n.jsx)("p",{children:Z.length>0?(0,l.sprintf)((0,l.__)("%d items selected","section-blocks"),Z.length):(0,l.__)("No items selected","section-blocks")}),(0,n.jsxs)("div",{className:"bulk-selection-controls",children:[(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{q(C.map((e=>e.id)))},disabled:Z.length===C.length,children:(0,l.__)("Select All","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{q([])},disabled:0===Z.length,children:(0,l.__)("Clear Selection","section-blocks")})]}),Z.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Assign Category","section-blocks"),value:$,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:J}),(0,n.jsxs)("div",{className:"bulk-action-buttons",children:[(0,n.jsx)(s.Button,{variant:"primary",onClick:Q,children:(0,l.__)("Apply Category","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:ee,isDestructive:!0,children:(0,l.__)("Delete Selected","section-blocks")})]})]})]})}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Gallery Settings","section-blocks"),initialOpen:!F,children:[(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Title","section-blocks"),checked:_,onChange:e=>t({showTitle:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Subtitle","section-blocks"),checked:u,onChange:e=>t({showSubtitle:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Layout","section-blocks"),value:m,options:[{label:(0,l.__)("Masonry","section-blocks"),value:"masonry"},{label:(0,l.__)("Grid","section-blocks"),value:"grid"},{label:(0,l.__)("Justified","section-blocks"),value:"justified"}],onChange:e=>t({layout:e})}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Desktop)","section-blocks"),value:k,onChange:e=>t({columns:e}),min:1,max:6}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Tablet)","section-blocks"),value:x,onChange:e=>t({columnsTablet:e}),min:1,max:4}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Mobile)","section-blocks"),value:v,onChange:e=>t({columnsMobile:e}),min:1,max:2}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Gap (px)","section-blocks"),value:p,onChange:e=>t({gap:e}),min:0,max:50}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Aspect Ratio","section-blocks"),value:j,options:[{label:(0,l.__)("Auto","section-blocks"),value:"auto"},{label:(0,l.__)("Square","section-blocks"),value:"square"},{label:(0,l.__)("Landscape (16:9)","section-blocks"),value:"landscape"},{label:(0,l.__)("Portrait (3:4)","section-blocks"),value:"portrait"}],onChange:e=>t({aspectRatio:e})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Filter & Search","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Category Filter","section-blocks"),checked:w,onChange:e=>t({showFilter:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Search","section-blocks"),checked:f,onChange:e=>t({showSearch:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Sort Options","section-blocks"),checked:S,onChange:e=>t({showSort:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Filter Alignment","section-blocks"),value:R,options:[{label:(0,l.__)("Left","section-blocks"),value:"left"},{label:(0,l.__)("Center","section-blocks"),value:"center"},{label:(0,l.__)("Right","section-blocks"),value:"right"}],onChange:e=>t({filterAlignment:e})})]}),(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Categories","section-blocks"),initialOpen:!1,children:(0,n.jsxs)("div",{className:"category-management",children:[(0,n.jsxs)("div",{className:"add-category",children:[(0,n.jsx)(s.TextControl,{label:(0,l.__)("Add New Category","section-blocks"),value:H,onChange:G,placeholder:(0,l.__)("Category name...","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{if(H.trim()&&!y.find((e=>e.slug===H.toLowerCase().replace(/\s+/g,"-")))){const e={name:H.trim(),slug:H.toLowerCase().replace(/\s+/g,"-")};t({categories:[...y,e]}),G("")}},disabled:!H.trim(),children:(0,l.__)("Add Category","section-blocks")})]}),y.length>0&&(0,n.jsxs)("div",{className:"existing-categories",children:[(0,n.jsx)("h4",{children:(0,l.__)("Existing Categories","section-blocks")}),y.map((e=>(0,n.jsxs)("div",{className:"category-item",children:[(0,n.jsx)("span",{children:e.name}),(0,n.jsx)(s.Button,{icon:d,onClick:()=>(e=>{const l=y.filter((l=>l.slug!==e));t({categories:l});const o=C.map((l=>l.category===e?{...l,category:"all"}:l));t({items:o})})(e.slug),variant:"link",isDestructive:!0,size:"small"})]},e.slug)))]})]})}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Effects & Animation","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:T,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Zoom","section-blocks"),value:"zoom"},{label:(0,l.__)("Fade","section-blocks"),value:"fade"},{label:(0,l.__)("Slide","section-blocks"),value:"slide"},{label:(0,l.__)("Overlay","section-blocks"),value:"overlay"}],onChange:e=>t({hoverEffect:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:A,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,l.__)("Fade In Up","section-blocks"),value:"fadeInUp"},{label:(0,l.__)("Slide In Up","section-blocks"),value:"slideInUp"},{label:(0,l.__)("Zoom In","section-blocks"),value:"zoomIn"}],onChange:e=>t({animationEffect:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Enable Lightbox","section-blocks"),checked:B,onChange:e=>t({enableLightbox:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Enable Lazy Loading","section-blocks"),checked:N,onChange:e=>t({enableLazyLoad:e})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,n.jsx)("p",{children:(0,l.__)("Overlay Color","section-blocks")}),(0,n.jsx)(o.ColorPalette,{value:M,onChange:e=>t({overlayColor:e||"#000000"})}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Overlay Opacity","section-blocks"),value:O,onChange:e=>t({overlayOpacity:e}),min:0,max:1,step:.1}),(0,n.jsx)("p",{children:(0,l.__)("Text Color","section-blocks")}),(0,n.jsx)(o.ColorPalette,{value:P,onChange:e=>t({textColor:e||"#ffffff"})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Load More","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Load More Style","section-blocks"),value:z,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Button","section-blocks"),value:"button"},{label:(0,l.__)("Infinite Scroll","section-blocks"),value:"infinite"}],onChange:e=>t({loadMoreStyle:e})}),"none"!==z&&(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Items Per Page","section-blocks"),value:L,onChange:e=>t({itemsPerPage:e}),min:3,max:50})]})]}),(0,n.jsxs)("div",{...W,children:[_&&(0,n.jsx)(o.RichText,{tagName:"h2",className:"section-blocks-gallery-title",value:h,onChange:e=>t({title:e}),placeholder:(0,l.__)("Enter gallery title...","section-blocks")}),u&&(0,n.jsx)(o.RichText,{tagName:"p",className:"section-blocks-gallery-subtitle",value:g,onChange:e=>t({subtitle:e}),placeholder:(0,l.__)("Enter gallery subtitle...","section-blocks")}),0===C.length?(0,n.jsx)("div",{className:"section-blocks-gallery-placeholder",children:(0,n.jsxs)("div",{className:"placeholder-content",children:[(0,n.jsx)("h3",{children:(0,l.__)("Create Your Gallery","section-blocks")}),(0,n.jsx)("p",{children:(0,l.__)("Upload multiple images to create a beautiful portfolio gallery with filtering and lightbox features.","section-blocks")}),(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,gallery:!0,render:({open:e})=>(0,n.jsx)(s.Button,{onClick:e,variant:"primary",icon:i,className:"upload-button-large",children:(0,l.__)("Upload Multiple Images","section-blocks")})})}),(0,n.jsxs)("div",{className:"placeholder-tips",children:[(0,n.jsx)("h4",{children:(0,l.__)("Tips:","section-blocks")}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,l.__)("Hold Ctrl/Cmd to select multiple images","section-blocks")}),(0,n.jsx)("li",{children:(0,l.__)("You can add categories after uploading","section-blocks")}),(0,n.jsx)("li",{children:(0,l.__)("Use bulk select mode to manage multiple items","section-blocks")})]})]})]})}):(0,n.jsx)("div",{className:"section-blocks-gallery-grid",style:(()=>{const e={display:"grid",gap:`${p}px`,gridTemplateColumns:`repeat(${k}, 1fr)`};if("auto"!==j){const l={square:"1 / 1",landscape:"16 / 9",portrait:"3 / 4"};e.aspectRatio=l[j]}return e})(),children:C.map((e=>(0,n.jsxs)("div",{className:`section-blocks-gallery-item ${F?"bulk-select-mode":""} ${Z.includes(e.id)?"selected":""}`,children:[F&&(0,n.jsx)("div",{className:"gallery-item-checkbox",children:(0,n.jsx)("input",{type:"checkbox",checked:Z.includes(e.id),onChange:()=>{return l=e.id,void q((e=>e.includes(l)?e.filter((e=>e!==l)):[...e,l]));var l}})}),(0,n.jsxs)("div",{className:"gallery-item-image",children:[(0,n.jsx)("img",{src:e.imageUrl,alt:e.imageAlt}),(0,n.jsx)("div",{className:"gallery-item-overlay",children:!F&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Button,{icon:b,onClick:()=>{V(e),E(!0)},variant:"secondary",size:"small",title:(0,l.__)("Edit Item","section-blocks")}),(0,n.jsx)(s.Button,{icon:d,onClick:()=>(e=>{const l=C.filter((l=>l.id!==e));t({items:l})})(e.id),variant:"secondary",size:"small",isDestructive:!0,title:(0,l.__)("Delete Item","section-blocks")})]})})]}),(0,n.jsxs)("div",{className:"gallery-item-meta",children:[e.title&&(0,n.jsx)("h4",{className:"gallery-item-title",children:e.title}),!F&&(0,n.jsx)("div",{className:"gallery-item-quick-controls",children:(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Category","section-blocks"),value:e.category,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:l=>X(e.id,{category:l}),className:"quick-category-select"})}),"all"!==e.category&&(0,n.jsx)("span",{className:"gallery-item-category-badge",children:y.find((l=>l.slug===e.category))?.name||e.category})]})]},e.id)))})]}),U&&I&&(0,n.jsx)(s.Modal,{title:(0,l.__)("Edit Gallery Item","section-blocks"),onRequestClose:()=>{E(!1),V(null)},className:"section-blocks-gallery-modal",children:(0,n.jsxs)("div",{className:"gallery-modal-content",children:[(0,n.jsx)(s.TextControl,{label:(0,l.__)("Title","section-blocks"),value:I.title,onChange:e=>V({...I,title:e})}),(0,n.jsx)(s.TextControl,{label:(0,l.__)("Description","section-blocks"),value:I.description,onChange:e=>V({...I,description:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Category","section-blocks"),value:I.category,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:e=>V({...I,category:e})}),(0,n.jsx)(s.TextControl,{label:(0,l.__)("Link URL","section-blocks"),value:I.link,onChange:e=>V({...I,link:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Link Target","section-blocks"),value:I.linkTarget,options:[{label:(0,l.__)("Same Window","section-blocks"),value:"_self"},{label:(0,l.__)("New Window","section-blocks"),value:"_blank"}],onChange:e=>V({...I,linkTarget:e})}),(0,n.jsxs)("div",{className:"modal-actions",children:[(0,n.jsx)(s.Button,{variant:"primary",onClick:()=>{X(I.id,I),E(!1),V(null)},children:(0,l.__)("Save Changes","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{E(!1),V(null)},children:(0,l.__)("Cancel","section-blocks")})]})]})})]})}})}},o={};function s(e){var a=o[e];if(void 0!==a)return a.exports;var t=o[e]={exports:{}};return l[e](t,t.exports,s),t.exports}s.m=l,e=[],s.O=(l,o,a,t)=>{if(!o){var n=1/0;for(d=0;d<e.length;d++){for(var[o,a,t]=e[d],i=!0,c=0;c<o.length;c++)(!1&t||n>=t)&&Object.keys(s.O).every((e=>s.O[e](o[c])))?o.splice(c--,1):(i=!1,t<n&&(n=t));if(i){e.splice(d--,1);var r=a();void 0!==r&&(l=r)}}return l}t=t||0;for(var d=e.length;d>0&&e[d-1][2]>t;d--)e[d]=e[d-1];e[d]=[o,a,t]},s.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={5 61:0,237:0};s.O.j=l=>0===e[l];var l=(l,o)=>{var a,t,[n,i,c]=o,r=0;if(n.some((l=>0!==e[l]))){for(a in i)s.o(i,a)&&(s.m[a]=i[a]);if(c)var d=c(s)}for(l&&l(o);r<n.length;r++)t=n[r],s.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return s.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var a=s.O(void 0,[237],(()=>s(657)));a=s.O(a)})();1 (()=>{"use strict";var e,l={657:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,a=window.wp.element,t=window.wp.primitives,n=window.ReactJSXRuntime,i=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),c=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})}),r=(0,n.jsx)(t.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(t.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),d=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})}),b=(0,n.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(t.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),h=JSON.parse('{"UU":"create-block/gallery-portfolio"}');(0,e.registerBlockType)(h.UU,{edit:function({attributes:e,setAttributes:t}){const{title:h,subtitle:g,showTitle:_,showSubtitle:u,layout:m,columns:k,columnsMobile:v,columnsTablet:x,gap:p,aspectRatio:j,items:C,categories:y,showFilter:w,showSearch:f,showSort:S,enableLightbox:B,enableLazyLoad:N,hoverEffect:T,animationEffect:A,overlayColor:M,overlayOpacity:O,textColor:P,filterAlignment:R,loadMoreStyle:z,itemsPerPage:L}=e,[U,E]=(0,a.useState)(!1),[I,V]=(0,a.useState)(null),[H,G]=(0,a.useState)(""),[F,D]=(0,a.useState)(!1),[Z,q]=(0,a.useState)([]),[$,J]=(0,a.useState)("all"),W=(0,o.useBlockProps)({className:`section-blocks-gallery-portfolio layout-${m} columns-${k}`}),Y=e=>{const l=(Array.isArray(e)?e:[e]).map(((e,l)=>({id:Date.now()+l,imageId:e.id,imageUrl:e.url,imageAlt:e.alt||"",title:e.title||e.filename||"",description:e.caption||"",category:y.length>0?y[0].slug:"all",link:"",linkTarget:"_self"})));t({items:[...C,...l]})},X=(e,l)=>{const o=C.map((o=>o.id===e?{...o,...l}:o));t({items:o})},K=()=>{D(!F),q([])},Q=()=>{const e=C.map((e=>Z.includes(e.id)?{...e,category:$}:e));t({items:e}),q([]),D(!1)},ee=()=>{const e=C.filter((e=>!Z.includes(e.id)));t({items:e}),q([]),D(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.BlockControls,{children:[(0,n.jsxs)(s.ToolbarGroup,{children:[(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,render:({open:e})=>(0,n.jsx)(s.ToolbarButton,{icon:i,label:(0,l.__)("Add Images","section-blocks"),onClick:e})})}),C.length>0&&(0,n.jsx)(s.ToolbarButton,{icon:c,label:F?(0,l.__)("Exit Bulk Select","section-blocks"):(0,l.__)("Bulk Select","section-blocks"),onClick:K,isPressed:F})]}),F&&Z.length>0&&(0,n.jsxs)(s.ToolbarGroup,{children:[(0,n.jsx)(s.ToolbarButton,{icon:r,label:(0,l.__)("Change Category","section-blocks"),onClick:Q}),(0,n.jsx)(s.ToolbarButton,{icon:d,label:(0,l.__)("Delete Selected","section-blocks"),onClick:ee})]})]}),(0,n.jsxs)(o.InspectorControls,{children:[(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Gallery Management","section-blocks"),initialOpen:!0,children:(0,n.jsxs)("div",{className:"gallery-management",children:[(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,gallery:!0,render:({open:e})=>(0,n.jsx)(s.Button,{onClick:e,variant:"primary",icon:i,className:"add-images-button",children:(0,l.__)("Add Multiple Images","section-blocks")})})}),C.length>0&&(0,n.jsxs)("div",{className:"gallery-stats",children:[(0,n.jsx)("p",{children:(0,l.sprintf)((0,l.__)("Gallery contains %d image(s)","section-blocks"),C.length)}),(0,n.jsxs)("div",{className:"gallery-actions",children:[(0,n.jsx)(s.Button,{variant:"secondary",onClick:K,icon:c,children:F?(0,l.__)("Exit Bulk Select","section-blocks"):(0,l.__)("Bulk Select Mode","section-blocks")}),!F&&(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{confirm((0,l.__)("Are you sure you want to clear all images?","section-blocks"))&&t({items:[]})},isDestructive:!0,children:(0,l.__)("Clear All","section-blocks")})]})]})]})}),F&&(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Bulk Operations","section-blocks"),initialOpen:!0,children:(0,n.jsxs)("div",{className:"bulk-operations",children:[(0,n.jsx)("p",{children:Z.length>0?(0,l.sprintf)((0,l.__)("%d items selected","section-blocks"),Z.length):(0,l.__)("No items selected","section-blocks")}),(0,n.jsxs)("div",{className:"bulk-selection-controls",children:[(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{q(C.map((e=>e.id)))},disabled:Z.length===C.length,children:(0,l.__)("Select All","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{q([])},disabled:0===Z.length,children:(0,l.__)("Clear Selection","section-blocks")})]}),Z.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Assign Category","section-blocks"),value:$,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:J}),(0,n.jsxs)("div",{className:"bulk-action-buttons",children:[(0,n.jsx)(s.Button,{variant:"primary",onClick:Q,children:(0,l.__)("Apply Category","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:ee,isDestructive:!0,children:(0,l.__)("Delete Selected","section-blocks")})]})]})]})}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Gallery Settings","section-blocks"),initialOpen:!F,children:[(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Title","section-blocks"),checked:_,onChange:e=>t({showTitle:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Subtitle","section-blocks"),checked:u,onChange:e=>t({showSubtitle:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Layout","section-blocks"),value:m,options:[{label:(0,l.__)("Masonry","section-blocks"),value:"masonry"},{label:(0,l.__)("Grid","section-blocks"),value:"grid"},{label:(0,l.__)("Justified","section-blocks"),value:"justified"}],onChange:e=>t({layout:e})}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Desktop)","section-blocks"),value:k,onChange:e=>t({columns:e}),min:1,max:6}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Tablet)","section-blocks"),value:x,onChange:e=>t({columnsTablet:e}),min:1,max:4}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Columns (Mobile)","section-blocks"),value:v,onChange:e=>t({columnsMobile:e}),min:1,max:2}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Gap (px)","section-blocks"),value:p,onChange:e=>t({gap:e}),min:0,max:50}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Aspect Ratio","section-blocks"),value:j,options:[{label:(0,l.__)("Auto","section-blocks"),value:"auto"},{label:(0,l.__)("Square","section-blocks"),value:"square"},{label:(0,l.__)("Landscape (16:9)","section-blocks"),value:"landscape"},{label:(0,l.__)("Portrait (3:4)","section-blocks"),value:"portrait"}],onChange:e=>t({aspectRatio:e})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Filter & Search","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Category Filter","section-blocks"),checked:w,onChange:e=>t({showFilter:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Search","section-blocks"),checked:f,onChange:e=>t({showSearch:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Show Sort Options","section-blocks"),checked:S,onChange:e=>t({showSort:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Filter Alignment","section-blocks"),value:R,options:[{label:(0,l.__)("Left","section-blocks"),value:"left"},{label:(0,l.__)("Center","section-blocks"),value:"center"},{label:(0,l.__)("Right","section-blocks"),value:"right"}],onChange:e=>t({filterAlignment:e})})]}),(0,n.jsx)(s.PanelBody,{title:(0,l.__)("Categories","section-blocks"),initialOpen:!1,children:(0,n.jsxs)("div",{className:"category-management",children:[(0,n.jsxs)("div",{className:"add-category",children:[(0,n.jsx)(s.TextControl,{label:(0,l.__)("Add New Category","section-blocks"),value:H,onChange:G,placeholder:(0,l.__)("Category name...","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{if(H.trim()&&!y.find((e=>e.slug===H.toLowerCase().replace(/\s+/g,"-")))){const e={name:H.trim(),slug:H.toLowerCase().replace(/\s+/g,"-")};t({categories:[...y,e]}),G("")}},disabled:!H.trim(),children:(0,l.__)("Add Category","section-blocks")})]}),y.length>0&&(0,n.jsxs)("div",{className:"existing-categories",children:[(0,n.jsx)("h4",{children:(0,l.__)("Existing Categories","section-blocks")}),y.map((e=>(0,n.jsxs)("div",{className:"category-item",children:[(0,n.jsx)("span",{children:e.name}),(0,n.jsx)(s.Button,{icon:d,onClick:()=>(e=>{const l=y.filter((l=>l.slug!==e));t({categories:l});const o=C.map((l=>l.category===e?{...l,category:"all"}:l));t({items:o})})(e.slug),variant:"link",isDestructive:!0,size:"small"})]},e.slug)))]})]})}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Effects & Animation","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:T,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Zoom","section-blocks"),value:"zoom"},{label:(0,l.__)("Fade","section-blocks"),value:"fade"},{label:(0,l.__)("Slide","section-blocks"),value:"slide"},{label:(0,l.__)("Overlay","section-blocks"),value:"overlay"}],onChange:e=>t({hoverEffect:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:A,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,l.__)("Fade In Up","section-blocks"),value:"fadeInUp"},{label:(0,l.__)("Slide In Up","section-blocks"),value:"slideInUp"},{label:(0,l.__)("Zoom In","section-blocks"),value:"zoomIn"}],onChange:e=>t({animationEffect:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Enable Lightbox","section-blocks"),checked:B,onChange:e=>t({enableLightbox:e})}),(0,n.jsx)(s.ToggleControl,{label:(0,l.__)("Enable Lazy Loading","section-blocks"),checked:N,onChange:e=>t({enableLazyLoad:e})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,n.jsx)("p",{children:(0,l.__)("Overlay Color","section-blocks")}),(0,n.jsx)(o.ColorPalette,{value:M,onChange:e=>t({overlayColor:e||"#000000"})}),(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Overlay Opacity","section-blocks"),value:O,onChange:e=>t({overlayOpacity:e}),min:0,max:1,step:.1}),(0,n.jsx)("p",{children:(0,l.__)("Text Color","section-blocks")}),(0,n.jsx)(o.ColorPalette,{value:P,onChange:e=>t({textColor:e||"#ffffff"})})]}),(0,n.jsxs)(s.PanelBody,{title:(0,l.__)("Load More","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Load More Style","section-blocks"),value:z,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Button","section-blocks"),value:"button"},{label:(0,l.__)("Infinite Scroll","section-blocks"),value:"infinite"}],onChange:e=>t({loadMoreStyle:e})}),"none"!==z&&(0,n.jsx)(s.RangeControl,{label:(0,l.__)("Items Per Page","section-blocks"),value:L,onChange:e=>t({itemsPerPage:e}),min:3,max:50})]})]}),(0,n.jsxs)("div",{...W,children:[_&&(0,n.jsx)(o.RichText,{tagName:"h2",className:"section-blocks-gallery-title",value:h,onChange:e=>t({title:e}),placeholder:(0,l.__)("Enter gallery title...","section-blocks")}),u&&(0,n.jsx)(o.RichText,{tagName:"p",className:"section-blocks-gallery-subtitle",value:g,onChange:e=>t({subtitle:e}),placeholder:(0,l.__)("Enter gallery subtitle...","section-blocks")}),0===C.length?(0,n.jsx)("div",{className:"section-blocks-gallery-placeholder",children:(0,n.jsxs)("div",{className:"placeholder-content",children:[(0,n.jsx)("h3",{children:(0,l.__)("Create Your Gallery","section-blocks")}),(0,n.jsx)("p",{children:(0,l.__)("Upload multiple images to create a beautiful portfolio gallery with filtering and lightbox features.","section-blocks")}),(0,n.jsx)(o.MediaUploadCheck,{children:(0,n.jsx)(o.MediaUpload,{onSelect:Y,allowedTypes:["image"],multiple:!0,gallery:!0,render:({open:e})=>(0,n.jsx)(s.Button,{onClick:e,variant:"primary",icon:i,className:"upload-button-large",children:(0,l.__)("Upload Multiple Images","section-blocks")})})}),(0,n.jsxs)("div",{className:"placeholder-tips",children:[(0,n.jsx)("h4",{children:(0,l.__)("Tips:","section-blocks")}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,l.__)("Hold Ctrl/Cmd to select multiple images","section-blocks")}),(0,n.jsx)("li",{children:(0,l.__)("You can add categories after uploading","section-blocks")}),(0,n.jsx)("li",{children:(0,l.__)("Use bulk select mode to manage multiple items","section-blocks")})]})]})]})}):(0,n.jsx)("div",{className:"section-blocks-gallery-grid",style:(()=>{const e={display:"grid",gap:`${p}px`,gridTemplateColumns:`repeat(${k}, 1fr)`};if("auto"!==j){const l={square:"1 / 1",landscape:"16 / 9",portrait:"3 / 4"};e.aspectRatio=l[j]}return e})(),children:C.map((e=>(0,n.jsxs)("div",{className:`section-blocks-gallery-item ${F?"bulk-select-mode":""} ${Z.includes(e.id)?"selected":""}`,children:[F&&(0,n.jsx)("div",{className:"gallery-item-checkbox",children:(0,n.jsx)("input",{type:"checkbox",checked:Z.includes(e.id),onChange:()=>{return l=e.id,void q((e=>e.includes(l)?e.filter((e=>e!==l)):[...e,l]));var l}})}),(0,n.jsxs)("div",{className:"gallery-item-image",children:[(0,n.jsx)("img",{src:e.imageUrl,alt:e.imageAlt}),(0,n.jsx)("div",{className:"gallery-item-overlay",children:!F&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Button,{icon:b,onClick:()=>{V(e),E(!0)},variant:"secondary",size:"small",title:(0,l.__)("Edit Item","section-blocks")}),(0,n.jsx)(s.Button,{icon:d,onClick:()=>(e=>{const l=C.filter((l=>l.id!==e));t({items:l})})(e.id),variant:"secondary",size:"small",isDestructive:!0,title:(0,l.__)("Delete Item","section-blocks")})]})})]}),(0,n.jsxs)("div",{className:"gallery-item-meta",children:[e.title&&(0,n.jsx)("h4",{className:"gallery-item-title",children:e.title}),!F&&(0,n.jsx)("div",{className:"gallery-item-quick-controls",children:(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Category","section-blocks"),value:e.category,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:l=>X(e.id,{category:l}),className:"quick-category-select"})}),"all"!==e.category&&(0,n.jsx)("span",{className:"gallery-item-category-badge",children:y.find((l=>l.slug===e.category))?.name||e.category})]})]},e.id)))})]}),U&&I&&(0,n.jsx)(s.Modal,{title:(0,l.__)("Edit Gallery Item","section-blocks"),onRequestClose:()=>{E(!1),V(null)},className:"section-blocks-gallery-modal",children:(0,n.jsxs)("div",{className:"gallery-modal-content",children:[(0,n.jsx)(s.TextControl,{label:(0,l.__)("Title","section-blocks"),value:I.title,onChange:e=>V({...I,title:e})}),(0,n.jsx)(s.TextControl,{label:(0,l.__)("Description","section-blocks"),value:I.description,onChange:e=>V({...I,description:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Category","section-blocks"),value:I.category,options:[{label:(0,l.__)("All","section-blocks"),value:"all"},...y.map((e=>({label:e.name,value:e.slug})))],onChange:e=>V({...I,category:e})}),(0,n.jsx)(s.TextControl,{label:(0,l.__)("Link URL","section-blocks"),value:I.link,onChange:e=>V({...I,link:e})}),(0,n.jsx)(s.SelectControl,{label:(0,l.__)("Link Target","section-blocks"),value:I.linkTarget,options:[{label:(0,l.__)("Same Window","section-blocks"),value:"_self"},{label:(0,l.__)("New Window","section-blocks"),value:"_blank"}],onChange:e=>V({...I,linkTarget:e})}),(0,n.jsxs)("div",{className:"modal-actions",children:[(0,n.jsx)(s.Button,{variant:"primary",onClick:()=>{X(I.id,I),E(!1),V(null)},children:(0,l.__)("Save Changes","section-blocks")}),(0,n.jsx)(s.Button,{variant:"secondary",onClick:()=>{E(!1),V(null)},children:(0,l.__)("Cancel","section-blocks")})]})]})})]})}})}},o={};function s(e){var a=o[e];if(void 0!==a)return a.exports;var t=o[e]={exports:{}};return l[e](t,t.exports,s),t.exports}s.m=l,e=[],s.O=(l,o,a,t)=>{if(!o){var n=1/0;for(d=0;d<e.length;d++){for(var[o,a,t]=e[d],i=!0,c=0;c<o.length;c++)(!1&t||n>=t)&&Object.keys(s.O).every((e=>s.O[e](o[c])))?o.splice(c--,1):(i=!1,t<n&&(n=t));if(i){e.splice(d--,1);var r=a();void 0!==r&&(l=r)}}return l}t=t||0;for(var d=e.length;d>0&&e[d-1][2]>t;d--)e[d]=e[d-1];e[d]=[o,a,t]},s.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={5561:0,4237:0};s.O.j=l=>0===e[l];var l=(l,o)=>{var a,t,[n,i,c]=o,r=0;if(n.some((l=>0!==e[l]))){for(a in i)s.o(i,a)&&(s.m[a]=i[a]);if(c)var d=c(s)}for(l&&l(o);r<n.length;r++)t=n[r],s.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return s.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var a=s.O(void 0,[4237],(()=>s(657)));a=s.O(a)})(); -
section-blocks/trunk/build/hero-section/index.asset.php
r3750774 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' f1003c6bb24162e719fa');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '0c69d81fd32927b725d8'); -
section-blocks/trunk/build/hero-section/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,o={205:()=>{const e=window.wp.blocks,o=window.wp.i18n,t=window.wp.blockEditor,n=window.wp.components,l=window.ReactJSXRuntime,i=JSON.parse('{"UU":"create-block/hero-section"}');(0,e.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:i}){const{title:r,subtitle:a,backgroundImage:s,backgroundImageId:c,buttonText:d,buttonUrl:g,textAlignment:u,overlayOpacity:b,overlayColor:p,textColor:h,minHeight:k}=e,x=(0,t.useBlockProps)({className:`hero-section-block align-${u}`,style:{minHeight:`${k}px`,backgroundImage:s?`url(${s.url})`:"none",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}}),m={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:p,opacity:b,zIndex:1},v={position:"relative",zIndex:2,color:h,textAlign:u,padding:"2rem",maxWidth:"800px",width:"100%"};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.BlockControls,{children:(0,l.jsx)(n.ToolbarGroup,{children:(0,l.jsx)(t.AlignmentToolbar,{value:u,onChange:e=>i({textAlignment:e})})})}),(0,l.jsxs)(t.InspectorControls,{children:[(0,l.jsxs)(n.PanelBody,{title:(0,o.__)("Hero Settings","section-blocks"),initialOpen:!0,children:[(0,l.jsx)(n.RangeControl,{label:(0,o.__)("Minimum Height (px)","section-blocks"),value:k,onChange:e=>i({minHeight:e}),min:200,max:1e3,step:10}),(0,l.jsx)(n.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:b,onChange:e=>i({overlayOpacity:e}),min:0,max:1,step:.1})]}),(0,l.jsx)(t.PanelColorSettings,{title:(0,o.__)("Color Settings","section-blocks"),colorSettings:[{value:p,onChange:e=>i({overlayColor:e}),label:(0,o.__)("Overlay Color","section-blocks")},{value:h,onChange:e=>i({textColor:e}),label:(0,o.__)("Text Color","section-blocks")}]}),(0,l.jsxs)(n.PanelBody,{title:(0,o.__)("Background Image","section-blocks"),initialOpen:!1,children:[(0,l.jsx)(t.MediaUploadCheck,{children:(0,l.jsx)(t.MediaUpload,{onSelect:e=>i({backgroundImage:{url:e.url,alt:e.alt||""},backgroundImageId:e.id}),allowedTypes:["image"],value:c,render:({open:e})=>(0,l.jsx)(n.Button,{onClick:e,variant:s?"secondary":"primary",children:s?(0,o.__)("Change Background Image","section-blocks"):(0,o.__)("Select Background Image","section-blocks")})})}),s&&(0,l.jsx)(n.Button,{onClick:()=>i({backgroundImage:null,backgroundImageId:0}),variant:"link",isDestructive:!0,children:(0,o.__)("Remove Background Image","section-blocks")})]}),(0,l.jsx)(n.PanelBody,{title:(0,o.__)("Button Settings","section-blocks"),initialOpen:!1,children:(0,l.jsx)(t.URLInput,{label:(0,o.__)("Button URL","section-blocks"),value:g,onChange:e=>i({buttonUrl:e})})})]}),(0,l.jsxs)("div",{...x,children:[(s||b>0)&&(0,l.jsx)("div",{style:m}),(0,l.jsxs)("div",{style:v,children:[(0,l.jsx)(t.RichText,{tagName:"h1",placeholder:(0,o.__)("Enter hero title...","section-blocks"),value:r,onChange:e=>i({title:e}),style:{fontSize:"3rem",fontWeight:"bold",marginBottom:"1rem",lineHeight:"1.2"}}),(0,l.jsx)(t.RichText,{tagName:"p",placeholder:(0,o.__)("Enter hero subtitle...","section-blocks"),value:a,onChange:e=>i({subtitle:e}),style:{fontSize:"1.25rem",marginBottom:"2rem",opacity:.9}}),(0,l.jsx)(t.RichText,{tagName:"span",placeholder:(0,o.__)("Button text...","section-blocks"),value:d,onChange:e=>i({buttonText:e}),style:{display:"inline-block",padding:"12px 24px",backgroundColor:"#007cba",color:"#ffffff",textDecoration:"none",borderRadius:"4px",fontWeight:"600",fontSize:"1rem",border:"none",cursor:"pointer",transition:"background-color 0.3s ease"}})]})]})]})}})}},t={};function n(e){var l=t[e];if(void 0!==l)return l.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,n),i.exports}n.m=o,e=[],n.O=(o,t,l,i)=>{if(!t){var r=1/0;for(d=0;d<e.length;d++){for(var[t,l,i]=e[d],a=!0,s=0;s<t.length;s++)(!1&i||r>=i)&&Object.keys(n.O).every((e=>n.O[e](t[s])))?t.splice(s--,1):(a=!1,i<r&&(r=i));if(a){e.splice(d--,1);var c=l();void 0!==c&&(o=c)}}return o}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[t,l,i]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={ 536:0,248:0};n.O.j=o=>0===e[o];var o=(o,t)=>{var l,i,[r,a,s]=t,c=0;if(r.some((o=>0!==e[o]))){for(l in a)n.o(a,l)&&(n.m[l]=a[l]);if(s)var d=s(n)}for(o&&o(t);c<r.length;c++)i=r[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(d)},t=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var l=n.O(void 0,[248],(()=>n(205)));l=n.O(l)})();1 (()=>{"use strict";var e,o={205:()=>{const e=window.wp.blocks,o=window.wp.i18n,t=window.wp.blockEditor,n=window.wp.components,l=window.ReactJSXRuntime,i=JSON.parse('{"UU":"create-block/hero-section"}');(0,e.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:i}){const{title:r,subtitle:a,backgroundImage:s,backgroundImageId:c,buttonText:d,buttonUrl:g,textAlignment:u,overlayOpacity:b,overlayColor:p,textColor:h,minHeight:k}=e,x=(0,t.useBlockProps)({className:`hero-section-block align-${u}`,style:{minHeight:`${k}px`,backgroundImage:s?`url(${s.url})`:"none",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}}),m={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:p,opacity:b,zIndex:1},v={position:"relative",zIndex:2,color:h,textAlign:u,padding:"2rem",maxWidth:"800px",width:"100%"};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.BlockControls,{children:(0,l.jsx)(n.ToolbarGroup,{children:(0,l.jsx)(t.AlignmentToolbar,{value:u,onChange:e=>i({textAlignment:e})})})}),(0,l.jsxs)(t.InspectorControls,{children:[(0,l.jsxs)(n.PanelBody,{title:(0,o.__)("Hero Settings","section-blocks"),initialOpen:!0,children:[(0,l.jsx)(n.RangeControl,{label:(0,o.__)("Minimum Height (px)","section-blocks"),value:k,onChange:e=>i({minHeight:e}),min:200,max:1e3,step:10}),(0,l.jsx)(n.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:b,onChange:e=>i({overlayOpacity:e}),min:0,max:1,step:.1})]}),(0,l.jsx)(t.PanelColorSettings,{title:(0,o.__)("Color Settings","section-blocks"),colorSettings:[{value:p,onChange:e=>i({overlayColor:e}),label:(0,o.__)("Overlay Color","section-blocks")},{value:h,onChange:e=>i({textColor:e}),label:(0,o.__)("Text Color","section-blocks")}]}),(0,l.jsxs)(n.PanelBody,{title:(0,o.__)("Background Image","section-blocks"),initialOpen:!1,children:[(0,l.jsx)(t.MediaUploadCheck,{children:(0,l.jsx)(t.MediaUpload,{onSelect:e=>i({backgroundImage:{url:e.url,alt:e.alt||""},backgroundImageId:e.id}),allowedTypes:["image"],value:c,render:({open:e})=>(0,l.jsx)(n.Button,{onClick:e,variant:s?"secondary":"primary",children:s?(0,o.__)("Change Background Image","section-blocks"):(0,o.__)("Select Background Image","section-blocks")})})}),s&&(0,l.jsx)(n.Button,{onClick:()=>i({backgroundImage:null,backgroundImageId:0}),variant:"link",isDestructive:!0,children:(0,o.__)("Remove Background Image","section-blocks")})]}),(0,l.jsx)(n.PanelBody,{title:(0,o.__)("Button Settings","section-blocks"),initialOpen:!1,children:(0,l.jsx)(t.URLInput,{label:(0,o.__)("Button URL","section-blocks"),value:g,onChange:e=>i({buttonUrl:e})})})]}),(0,l.jsxs)("div",{...x,children:[(s||b>0)&&(0,l.jsx)("div",{style:m}),(0,l.jsxs)("div",{style:v,children:[(0,l.jsx)(t.RichText,{tagName:"h1",placeholder:(0,o.__)("Enter hero title...","section-blocks"),value:r,onChange:e=>i({title:e}),style:{fontSize:"3rem",fontWeight:"bold",marginBottom:"1rem",lineHeight:"1.2"}}),(0,l.jsx)(t.RichText,{tagName:"p",placeholder:(0,o.__)("Enter hero subtitle...","section-blocks"),value:a,onChange:e=>i({subtitle:e}),style:{fontSize:"1.25rem",marginBottom:"2rem",opacity:.9}}),(0,l.jsx)(t.RichText,{tagName:"span",placeholder:(0,o.__)("Button text...","section-blocks"),value:d,onChange:e=>i({buttonText:e}),style:{display:"inline-block",padding:"12px 24px",backgroundColor:"#007cba",color:"#ffffff",textDecoration:"none",borderRadius:"4px",fontWeight:"600",fontSize:"1rem",border:"none",cursor:"pointer",transition:"background-color 0.3s ease"}})]})]})]})}})}},t={};function n(e){var l=t[e];if(void 0!==l)return l.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,n),i.exports}n.m=o,e=[],n.O=(o,t,l,i)=>{if(!t){var r=1/0;for(d=0;d<e.length;d++){for(var[t,l,i]=e[d],a=!0,s=0;s<t.length;s++)(!1&i||r>=i)&&Object.keys(n.O).every((e=>n.O[e](t[s])))?t.splice(s--,1):(a=!1,i<r&&(r=i));if(a){e.splice(d--,1);var c=l();void 0!==c&&(o=c)}}return o}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[t,l,i]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={6536:0,1248:0};n.O.j=o=>0===e[o];var o=(o,t)=>{var l,i,[r,a,s]=t,c=0;if(r.some((o=>0!==e[o]))){for(l in a)n.o(a,l)&&(n.m[l]=a[l]);if(s)var d=s(n)}for(o&&o(t);c<r.length;c++)i=r[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(d)},t=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var l=n.O(void 0,[1248],(()=>n(205)));l=n.O(l)})(); -
section-blocks/trunk/build/newsletter-signup/index.asset.php
r3318999 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' 5e2722565f6ce7087b68');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'ebb2df9ecb4b2e87b1f9'); -
section-blocks/trunk/build/newsletter-signup/index.js
r3302097 r3750877 1 (()=>{"use strict";var e,o={55:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,t=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/newsletter-signup"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{title:s,subtitle:i,buttonText:c,placeholderText:r,namePlaceholder:b,showNameField:d,requirePrivacyConsent:u,privacyText:g,privacyUrl:p,layoutStyle:h,backgroundType:_,backgroundColor:x,backgroundImage:k,backgroundImageId:C,overlayOpacity:m,overlayColor:v,textColor:j,buttonColor:y,buttonTextColor:T,inputBorderColor:S,inputBackgroundColor:P,textAlignment:w,integrationService:f,mailchimpListId:B,customApiEndpoint:I,showSocialProof:O,subscriberCount:M,socialProofText:N,showLeadMagnet:R,leadMagnetTitle:L,leadMagnetDescription:E,leadMagnetImage:U,enableHoneypot:A,enableRecaptcha:F,recaptchaSiteKey:$,padding:D,borderRadius:H,boxShadow:q,animationEffect:K}=e,z=(0,l.useBlockProps)({className:`section-blocks-newsletter-signup layout-${h} text-${w}`,style:{backgroundColor:"color"===_?x:"transparent",backgroundImage:"image"===_&&k?`url(${k.url})`:"none",backgroundSize:"cover",backgroundPosition:"center",color:j,padding:`${D?.top||"60px"} ${D?.right||"20px"} ${D?.bottom||"60px"} ${D?.left||"20px"}`,borderRadius:`${H}px`,boxShadow:q?"0 10px 30px rgba(0,0,0,0.1)":"none",position:"relative"}}),J="image"===_&&k?{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:v,opacity:m,borderRadius:`${H}px`}:{},G=[{label:(0,o.__)("Centered","section-blocks"),value:"centered"},{label:(0,o.__)("Split","section-blocks"),value:"split"},{label:(0,o.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,o.__)("Card","section-blocks"),value:"card"}],W=[{label:(0,o.__)("WordPress Database","section-blocks"),value:"wordpress"},{label:(0,o.__)("Mailchimp","section-blocks"),value:"mailchimp"},{label:(0,o.__)("Custom API","section-blocks"),value:"custom_api"}],X=[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,o.__)("Slide Up","section-blocks"),value:"slideUp"},{label:(0,o.__)("Scale","section-blocks"),value:"scale"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.InspectorControls,{children:[(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Content Settings","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Title","section-blocks"),value:s,onChange:e=>a({title:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Subtitle","section-blocks"),value:i,onChange:e=>a({subtitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Button Text","section-blocks"),value:c,onChange:e=>a({buttonText:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Email Placeholder","section-blocks"),value:r,onChange:e=>a({placeholderText:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Name Field","section-blocks"),checked:d,onChange:e=>a({showNameField:e})}),d&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("Name Placeholder","section-blocks"),value:b,onChange:e=>a({namePlaceholder:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Layout & Design","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:h,options:G,onChange:e=>a({layoutStyle:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Text Alignment","section-blocks"),value:w,options:[{label:(0,o.__)("Left","section-blocks"),value:"left"},{label:(0,o.__)("Center","section-blocks"),value:"center"},{label:(0,o.__)("Right","section-blocks"),value:"right"}],onChange:e=>a({textAlignment:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Animation Effect","section-blocks"),value:K,options:X,onChange:e=>a({animationEffect:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:H,onChange:e=>a({borderRadius:e}),min:0,max:50}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Box Shadow","section-blocks"),checked:q,onChange:e=>a({boxShadow:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Background","section-blocks"),initialOpen:!1,children:[(0,t.jsxs)(n.ButtonGroup,{children:[(0,t.jsx)(n.Button,{isPrimary:"color"===_,onClick:()=>a({backgroundType:"color"}),children:(0,o.__)("Color","section-blocks")}),(0,t.jsx)(n.Button,{isPrimary:"image"===_,onClick:()=>a({backgroundType:"image"}),children:(0,o.__)("Image","section-blocks")})]}),"color"===_&&(0,t.jsx)(l.ColorPalette,{value:x,onChange:e=>a({backgroundColor:e})}),"image"===_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.MediaUploadCheck,{children:(0,t.jsx)(l.MediaUpload,{onSelect:e=>a({backgroundImage:e,backgroundImageId:e.id}),allowedTypes:["image"],value:C,render:({open:e})=>(0,t.jsx)(n.Button,{onClick:e,variant:"secondary",children:k?(0,o.__)("Change Image","section-blocks"):(0,o.__)("Select Image","section-blocks")})})}),k&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:m,onChange:e=>a({overlayOpacity:e}),min:0,max:1,step:.1}),(0,t.jsx)(l.ColorPalette,{value:v,onChange:e=>a({overlayColor:e})})]})]})]}),(0,t.jsx)(l.PanelColorSettings,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,colorSettings:[{value:j,onChange:e=>a({textColor:e}),label:(0,o.__)("Text Color","section-blocks")},{value:y,onChange:e=>a({buttonColor:e}),label:(0,o.__)("Button Color","section-blocks")},{value:T,onChange:e=>a({buttonTextColor:e}),label:(0,o.__)("Button Text Color","section-blocks")},{value:S,onChange:e=>a({inputBorderColor:e}),label:(0,o.__)("Input Border Color","section-blocks")},{value:P,onChange:e=>a({inputBackgroundColor:e}),label:(0,o.__)("Input Background Color","section-blocks")}]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Integration Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Email Service","section-blocks"),value:f,options:W,onChange:e=>a({integrationService:e})}),"mailchimp"===f&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("Mailchimp List ID","section-blocks"),value:B,onChange:e=>a({mailchimpListId:e}),help:(0,o.__)("Enter your Mailchimp audience/list ID","section-blocks")}),"custom_api"===f&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("API Endpoint URL","section-blocks"),value:I,onChange:e=>a({customApiEndpoint:e}),help:(0,o.__)("Enter the URL for your custom API endpoint","section-blocks")})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Privacy & Security","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Require Privacy Consent","section-blocks"),checked:u,onChange:e=>a({requirePrivacyConsent:e})}),u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Privacy Text","section-blocks"),value:g,onChange:e=>a({privacyText:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Privacy Policy URL","section-blocks"),value:p,onChange:e=>a({privacyUrl:e})})]}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable Honeypot Protection","section-blocks"),checked:A,onChange:e=>a({enableHoneypot:e}),help:(0,o.__)("Helps prevent spam submissions","section-blocks")}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable reCAPTCHA","section-blocks"),checked:F,onChange:e=>a({enableRecaptcha:e})}),F&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("reCAPTCHA Site Key","section-blocks"),value:$,onChange:e=>a({recaptchaSiteKey:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Social Proof","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Social Proof","section-blocks"),checked:O,onChange:e=>a({showSocialProof:e})}),O&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Subscriber Count","section-blocks"),value:M,onChange:e=>a({subscriberCount:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Social Proof Text","section-blocks"),value:N,onChange:e=>a({socialProofText:e}),help:(0,o.__)("Use {count} as placeholder for subscriber count","section-blocks")})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Lead Magnet","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Lead Magnet","section-blocks"),checked:R,onChange:e=>a({showLeadMagnet:e})}),R&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Lead Magnet Title","section-blocks"),value:L,onChange:e=>a({leadMagnetTitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Lead Magnet Description","section-blocks"),value:E,onChange:e=>a({leadMagnetDescription:e})}),(0,t.jsx)(l.MediaUploadCheck,{children:(0,t.jsx)(l.MediaUpload,{onSelect:e=>a({leadMagnetImage:e}),allowedTypes:["image"],value:U?.id,render:({open:e})=>(0,t.jsx)(n.Button,{onClick:e,variant:"secondary",children:U?(0,o.__)("Change Lead Magnet Image","section-blocks"):(0,o.__)("Select Lead Magnet Image","section-blocks")})})})]})]}),(0,t.jsx)(n.PanelBody,{title:(0,o.__)("Spacing","section-blocks"),initialOpen:!1,children:(0,t.jsx)(n.__experimentalBoxControl,{label:(0,o.__)("Padding","section-blocks"),values:D,onChange:e=>a({padding:e})})})]}),(0,t.jsxs)("div",{...z,children:["image"===_&&k&&(0,t.jsx)("div",{style:J}),(0,t.jsx)("div",{style:{position:"relative",zIndex:1},children:(0,t.jsxs)("div",{className:"section-blocks-newsletter-content",children:[R&&(0,t.jsxs)("div",{className:"section-blocks-lead-magnet",children:[U&&(0,t.jsx)("img",{src:U.url,alt:L}),(0,t.jsx)("h4",{children:L}),(0,t.jsx)("p",{children:E})]}),(0,t.jsx)(l.RichText,{tagName:"h2",className:"section-blocks-newsletter-title",value:s,onChange:e=>a({title:e}),placeholder:(0,o.__)("Enter newsletter title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"section-blocks-newsletter-subtitle",value:i,onChange:e=>a({subtitle:e}),placeholder:(0,o.__)("Enter newsletter subtitle...","section-blocks")}),O&&(0,t.jsx)("div",{className:"section-blocks-social-proof",children:(0,t.jsx)("span",{children:N.replace("{count}",M)})}),(0,t.jsxs)("form",{className:"section-blocks-newsletter-form",children:[(0,t.jsxs)("div",{className:"section-blocks-form-fields",children:[d&&(0,t.jsx)("input",{type:"text",placeholder:b,className:"section-blocks-name-input",style:{borderColor:S,backgroundColor:P}}),(0,t.jsx)("input",{type:"email",placeholder:r,className:"section-blocks-email-input",style:{borderColor:S,backgroundColor:P}}),(0,t.jsx)("button",{type:"submit",className:"section-blocks-submit-button",style:{backgroundColor:y,color:T},children:c})]}),u&&(0,t.jsx)("div",{className:"section-blocks-privacy-consent",children:(0,t.jsxs)("label",{children:[(0,t.jsx)("input",{type:"checkbox"}),(0,t.jsx)("span",{children:p?(0,t.jsxs)(t.Fragment,{children:[g.split("privacy policy")[0],(0,t.jsx)("a",{href:p,target:"_blank",rel:"noopener noreferrer",children:"privacy policy"}),g.split("privacy policy")[1]]}):g})]})})]})]})})]})]})}})}},l={};function n(e){var t=l[e];if(void 0!==t)return t.exports;var a=l[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.m=o,e=[],n.O=(o,l,t,a)=>{if(!l){var s=1/0;for(b=0;b<e.length;b++){for(var[l,t,a]=e[b],i=!0,c=0;c<l.length;c++)(!1&a||s>=a)&&Object.keys(n.O).every((e=>n.O[e](l[c])))?l.splice(c--,1):(i=!1,a<s&&(s=a));if(i){e.splice(b--,1);var r=t();void 0!==r&&(o=r)}}return o}a=a||0;for(var b=e.length;b>0&&e[b-1][2]>a;b--)e[b]=e[b-1];e[b]=[l,t,a]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={ 666:0,750:0};n.O.j=o=>0===e[o];var o=(o,l)=>{var t,a,[s,i,c]=l,r=0;if(s.some((o=>0!==e[o]))){for(t in i)n.o(i,t)&&(n.m[t]=i[t]);if(c)var b=c(n)}for(o&&o(l);r<s.length;r++)a=s[r],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(b)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var t=n.O(void 0,[750],(()=>n(55)));t=n.O(t)})();1 (()=>{"use strict";var e,o={55:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,t=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/newsletter-signup"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{title:s,subtitle:i,buttonText:c,placeholderText:r,namePlaceholder:b,showNameField:d,requirePrivacyConsent:u,privacyText:g,privacyUrl:p,layoutStyle:h,backgroundType:_,backgroundColor:x,backgroundImage:k,backgroundImageId:C,overlayOpacity:m,overlayColor:v,textColor:j,buttonColor:y,buttonTextColor:T,inputBorderColor:S,inputBackgroundColor:P,textAlignment:w,integrationService:f,mailchimpListId:B,customApiEndpoint:I,showSocialProof:O,subscriberCount:M,socialProofText:N,showLeadMagnet:R,leadMagnetTitle:L,leadMagnetDescription:E,leadMagnetImage:U,enableHoneypot:A,enableRecaptcha:F,recaptchaSiteKey:$,padding:D,borderRadius:H,boxShadow:q,animationEffect:K}=e,z=(0,l.useBlockProps)({className:`section-blocks-newsletter-signup layout-${h} text-${w}`,style:{backgroundColor:"color"===_?x:"transparent",backgroundImage:"image"===_&&k?`url(${k.url})`:"none",backgroundSize:"cover",backgroundPosition:"center",color:j,padding:`${D?.top||"60px"} ${D?.right||"20px"} ${D?.bottom||"60px"} ${D?.left||"20px"}`,borderRadius:`${H}px`,boxShadow:q?"0 10px 30px rgba(0,0,0,0.1)":"none",position:"relative"}}),J="image"===_&&k?{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:v,opacity:m,borderRadius:`${H}px`}:{},G=[{label:(0,o.__)("Centered","section-blocks"),value:"centered"},{label:(0,o.__)("Split","section-blocks"),value:"split"},{label:(0,o.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,o.__)("Card","section-blocks"),value:"card"}],W=[{label:(0,o.__)("WordPress Database","section-blocks"),value:"wordpress"},{label:(0,o.__)("Mailchimp","section-blocks"),value:"mailchimp"},{label:(0,o.__)("Custom API","section-blocks"),value:"custom_api"}],X=[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,o.__)("Slide Up","section-blocks"),value:"slideUp"},{label:(0,o.__)("Scale","section-blocks"),value:"scale"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.InspectorControls,{children:[(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Content Settings","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Title","section-blocks"),value:s,onChange:e=>a({title:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Subtitle","section-blocks"),value:i,onChange:e=>a({subtitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Button Text","section-blocks"),value:c,onChange:e=>a({buttonText:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Email Placeholder","section-blocks"),value:r,onChange:e=>a({placeholderText:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Name Field","section-blocks"),checked:d,onChange:e=>a({showNameField:e})}),d&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("Name Placeholder","section-blocks"),value:b,onChange:e=>a({namePlaceholder:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Layout & Design","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:h,options:G,onChange:e=>a({layoutStyle:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Text Alignment","section-blocks"),value:w,options:[{label:(0,o.__)("Left","section-blocks"),value:"left"},{label:(0,o.__)("Center","section-blocks"),value:"center"},{label:(0,o.__)("Right","section-blocks"),value:"right"}],onChange:e=>a({textAlignment:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Animation Effect","section-blocks"),value:K,options:X,onChange:e=>a({animationEffect:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:H,onChange:e=>a({borderRadius:e}),min:0,max:50}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Box Shadow","section-blocks"),checked:q,onChange:e=>a({boxShadow:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Background","section-blocks"),initialOpen:!1,children:[(0,t.jsxs)(n.ButtonGroup,{children:[(0,t.jsx)(n.Button,{isPrimary:"color"===_,onClick:()=>a({backgroundType:"color"}),children:(0,o.__)("Color","section-blocks")}),(0,t.jsx)(n.Button,{isPrimary:"image"===_,onClick:()=>a({backgroundType:"image"}),children:(0,o.__)("Image","section-blocks")})]}),"color"===_&&(0,t.jsx)(l.ColorPalette,{value:x,onChange:e=>a({backgroundColor:e})}),"image"===_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.MediaUploadCheck,{children:(0,t.jsx)(l.MediaUpload,{onSelect:e=>a({backgroundImage:e,backgroundImageId:e.id}),allowedTypes:["image"],value:C,render:({open:e})=>(0,t.jsx)(n.Button,{onClick:e,variant:"secondary",children:k?(0,o.__)("Change Image","section-blocks"):(0,o.__)("Select Image","section-blocks")})})}),k&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:m,onChange:e=>a({overlayOpacity:e}),min:0,max:1,step:.1}),(0,t.jsx)(l.ColorPalette,{value:v,onChange:e=>a({overlayColor:e})})]})]})]}),(0,t.jsx)(l.PanelColorSettings,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,colorSettings:[{value:j,onChange:e=>a({textColor:e}),label:(0,o.__)("Text Color","section-blocks")},{value:y,onChange:e=>a({buttonColor:e}),label:(0,o.__)("Button Color","section-blocks")},{value:T,onChange:e=>a({buttonTextColor:e}),label:(0,o.__)("Button Text Color","section-blocks")},{value:S,onChange:e=>a({inputBorderColor:e}),label:(0,o.__)("Input Border Color","section-blocks")},{value:P,onChange:e=>a({inputBackgroundColor:e}),label:(0,o.__)("Input Background Color","section-blocks")}]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Integration Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Email Service","section-blocks"),value:f,options:W,onChange:e=>a({integrationService:e})}),"mailchimp"===f&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("Mailchimp List ID","section-blocks"),value:B,onChange:e=>a({mailchimpListId:e}),help:(0,o.__)("Enter your Mailchimp audience/list ID","section-blocks")}),"custom_api"===f&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("API Endpoint URL","section-blocks"),value:I,onChange:e=>a({customApiEndpoint:e}),help:(0,o.__)("Enter the URL for your custom API endpoint","section-blocks")})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Privacy & Security","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Require Privacy Consent","section-blocks"),checked:u,onChange:e=>a({requirePrivacyConsent:e})}),u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Privacy Text","section-blocks"),value:g,onChange:e=>a({privacyText:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Privacy Policy URL","section-blocks"),value:p,onChange:e=>a({privacyUrl:e})})]}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable Honeypot Protection","section-blocks"),checked:A,onChange:e=>a({enableHoneypot:e}),help:(0,o.__)("Helps prevent spam submissions","section-blocks")}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable reCAPTCHA","section-blocks"),checked:F,onChange:e=>a({enableRecaptcha:e})}),F&&(0,t.jsx)(n.TextControl,{label:(0,o.__)("reCAPTCHA Site Key","section-blocks"),value:$,onChange:e=>a({recaptchaSiteKey:e})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Social Proof","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Social Proof","section-blocks"),checked:O,onChange:e=>a({showSocialProof:e})}),O&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Subscriber Count","section-blocks"),value:M,onChange:e=>a({subscriberCount:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Social Proof Text","section-blocks"),value:N,onChange:e=>a({socialProofText:e}),help:(0,o.__)("Use {count} as placeholder for subscriber count","section-blocks")})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Lead Magnet","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Lead Magnet","section-blocks"),checked:R,onChange:e=>a({showLeadMagnet:e})}),R&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Lead Magnet Title","section-blocks"),value:L,onChange:e=>a({leadMagnetTitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Lead Magnet Description","section-blocks"),value:E,onChange:e=>a({leadMagnetDescription:e})}),(0,t.jsx)(l.MediaUploadCheck,{children:(0,t.jsx)(l.MediaUpload,{onSelect:e=>a({leadMagnetImage:e}),allowedTypes:["image"],value:U?.id,render:({open:e})=>(0,t.jsx)(n.Button,{onClick:e,variant:"secondary",children:U?(0,o.__)("Change Lead Magnet Image","section-blocks"):(0,o.__)("Select Lead Magnet Image","section-blocks")})})})]})]}),(0,t.jsx)(n.PanelBody,{title:(0,o.__)("Spacing","section-blocks"),initialOpen:!1,children:(0,t.jsx)(n.__experimentalBoxControl,{label:(0,o.__)("Padding","section-blocks"),values:D,onChange:e=>a({padding:e})})})]}),(0,t.jsxs)("div",{...z,children:["image"===_&&k&&(0,t.jsx)("div",{style:J}),(0,t.jsx)("div",{style:{position:"relative",zIndex:1},children:(0,t.jsxs)("div",{className:"section-blocks-newsletter-content",children:[R&&(0,t.jsxs)("div",{className:"section-blocks-lead-magnet",children:[U&&(0,t.jsx)("img",{src:U.url,alt:L}),(0,t.jsx)("h4",{children:L}),(0,t.jsx)("p",{children:E})]}),(0,t.jsx)(l.RichText,{tagName:"h2",className:"section-blocks-newsletter-title",value:s,onChange:e=>a({title:e}),placeholder:(0,o.__)("Enter newsletter title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"section-blocks-newsletter-subtitle",value:i,onChange:e=>a({subtitle:e}),placeholder:(0,o.__)("Enter newsletter subtitle...","section-blocks")}),O&&(0,t.jsx)("div",{className:"section-blocks-social-proof",children:(0,t.jsx)("span",{children:N.replace("{count}",M)})}),(0,t.jsxs)("form",{className:"section-blocks-newsletter-form",children:[(0,t.jsxs)("div",{className:"section-blocks-form-fields",children:[d&&(0,t.jsx)("input",{type:"text",placeholder:b,className:"section-blocks-name-input",style:{borderColor:S,backgroundColor:P}}),(0,t.jsx)("input",{type:"email",placeholder:r,className:"section-blocks-email-input",style:{borderColor:S,backgroundColor:P}}),(0,t.jsx)("button",{type:"submit",className:"section-blocks-submit-button",style:{backgroundColor:y,color:T},children:c})]}),u&&(0,t.jsx)("div",{className:"section-blocks-privacy-consent",children:(0,t.jsxs)("label",{children:[(0,t.jsx)("input",{type:"checkbox"}),(0,t.jsx)("span",{children:p?(0,t.jsxs)(t.Fragment,{children:[g.split("privacy policy")[0],(0,t.jsx)("a",{href:p,target:"_blank",rel:"noopener noreferrer",children:"privacy policy"}),g.split("privacy policy")[1]]}):g})]})})]})]})})]})]})}})}},l={};function n(e){var t=l[e];if(void 0!==t)return t.exports;var a=l[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.m=o,e=[],n.O=(o,l,t,a)=>{if(!l){var s=1/0;for(b=0;b<e.length;b++){for(var[l,t,a]=e[b],i=!0,c=0;c<l.length;c++)(!1&a||s>=a)&&Object.keys(n.O).every((e=>n.O[e](l[c])))?l.splice(c--,1):(i=!1,a<s&&(s=a));if(i){e.splice(b--,1);var r=t();void 0!==r&&(o=r)}}return o}a=a||0;for(var b=e.length;b>0&&e[b-1][2]>a;b--)e[b]=e[b-1];e[b]=[l,t,a]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={3666:0,3750:0};n.O.j=o=>0===e[o];var o=(o,l)=>{var t,a,[s,i,c]=l,r=0;if(s.some((o=>0!==e[o]))){for(t in i)n.o(i,t)&&(n.m[t]=i[t]);if(c)var b=c(n)}for(o&&o(l);r<s.length;r++)a=s[r],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(b)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var t=n.O(void 0,[3750],(()=>n(55)));t=n.O(t)})(); -
section-blocks/trunk/build/pricing-tables/index.asset.php
r3318999 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' 3c5a712350d4e5174d93');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '5c368edb66112145099a'); -
section-blocks/trunk/build/pricing-tables/index.js
r3302097 r3750877 1 (()=>{"use strict";var e,l={3:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,n=window.wp.components,s=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/pricing-tables"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{plans:c,showBillingToggle:t,billingPeriod:i,yearlyDiscount:r,columns:d,colorScheme:b,primaryColor:u,backgroundColor:h,textColor:m,borderColor:_,hoverEffect:p,animationEffect:x,showFeatureIcons:g,buttonStyle:k,spacing:v}=e,y=(0,o.useBlockProps)({className:`pricing-tables-block columns-${d} scheme-${b} hover-${p} spacing-${v}`,style:{"--primary-color":u,"--background-color":h,"--text-color":m,"--border-color":_}}),j=[{label:(0,l.__)("Default","section-blocks"),value:"default"},{label:(0,l.__)("Blue","section-blocks"),value:"blue"},{label:(0,l.__)("Green","section-blocks"),value:"green"},{label:(0,l.__)("Purple","section-blocks"),value:"purple"},{label:(0,l.__)("Orange","section-blocks"),value:"orange"},{label:(0,l.__)("Dark","section-blocks"),value:"dark"}],C=[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Lift","section-blocks"),value:"lift"},{label:(0,l.__)("Scale","section-blocks"),value:"scale"},{label:(0,l.__)("Glow","section-blocks"),value:"glow"},{label:(0,l.__)("Tilt","section-blocks"),value:"tilt"}],f=[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Fade In Up","section-blocks"),value:"fadeInUp"},{label:(0,l.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,l.__)("Slide In Left","section-blocks"),value:"slideInLeft"},{label:(0,l.__)("Slide In Right","section-blocks"),value:"slideInRight"},{label:(0,l.__)("Zoom In","section-blocks"),value:"zoomIn"}],N=[{label:(0,l.__)("Solid","section-blocks"),value:"solid"},{label:(0,l.__)("Outline","section-blocks"),value:"outline"},{label:(0,l.__)("Ghost","section-blocks"),value:"ghost"},{label:(0,l.__)("Gradient","section-blocks"),value:"gradient"}],P=[{label:(0,l.__)("Compact","section-blocks"),value:"compact"},{label:(0,l.__)("Normal","section-blocks"),value:"normal"},{label:(0,l.__)("Relaxed","section-blocks"),value:"relaxed"},{label:(0,l.__)("Spacious","section-blocks"),value:"spacious"}],B=[{label:"$",value:"$"},{label:"€",value:"€"},{label:"£",value:"£"},{label:"¥",value:"¥"},{label:"₹",value:"₹"},{label:"Custom",value:"custom"}],S=(e,l,o)=>{const n=[...c];n[e]={...n[e],[l]:o},a({plans:n})},w=e=>"yearly"===i?e.yearlyPrice||((e,l)=>{const o=12*e;return Math.round(o-o*l/100)})(e.price,r):e.price;return(0,s.jsxs)("div",{...y,children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Pricing Settings","section-blocks"),children:[(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Show Billing Toggle","section-blocks"),checked:t,onChange:e=>a({showBillingToggle:e})}),t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.ButtonGroup,{children:[(0,s.jsx)(n.Button,{isPrimary:"monthly"===i,onClick:()=>a({billingPeriod:"monthly"}),children:(0,l.__)("Monthly","section-blocks")}),(0,s.jsx)(n.Button,{isPrimary:"yearly"===i,onClick:()=>a({billingPeriod:"yearly"}),children:(0,l.__)("Yearly","section-blocks")})]}),(0,s.jsx)(n.__experimentalNumberControl,{label:(0,l.__)("Yearly Discount (%)","section-blocks"),value:r,onChange:e=>a({yearlyDiscount:parseInt(e)||0}),min:0,max:50})]}),(0,s.jsx)(n.RangeControl,{label:(0,l.__)("Number of Columns","section-blocks"),value:d,onChange:e=>a({columns:e}),min:2,max:4})]}),(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Design Settings","section-blocks"),children:[(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Color Scheme","section-blocks"),value:b,options:j,onChange:e=>a({colorScheme:e})}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Primary Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:u,onChange:e=>a({primaryColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Background Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:h,onChange:e=>a({backgroundColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Text Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:m,onChange:e=>a({textColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Border Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:_,onChange:e=>a({borderColor:e})})]})]}),(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Effects & Animation","section-blocks"),children:[(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:p,options:C,onChange:e=>a({hoverEffect:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:x,options:f,onChange:e=>a({animationEffect:e})}),(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Show Feature Icons","section-blocks"),checked:g,onChange:e=>a({showFeatureIcons:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Button Style","section-blocks"),value:k,options:N,onChange:e=>a({buttonStyle:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:v,options:P,onChange:e=>a({spacing:e})})]}),(0,s.jsx)(n.PanelBody,{title:(0,l.__)("Plan Management","section-blocks"),initialOpen:!1,children:c.map(((e,o)=>(0,s.jsxs)(n.Card,{style:{marginBottom:"16px"},children:[(0,s.jsx)(n.CardHeader,{children:(0,s.jsxs)(n.Flex,{children:[(0,s.jsx)(n.FlexBlock,{children:(0,s.jsx)("strong",{children:e.name||`Plan ${o+1}`})}),(0,s.jsx)(n.FlexItem,{children:(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Recommended","section-blocks"),checked:e.isRecommended,onChange:e=>S(o,"isRecommended",e)})})]})}),(0,s.jsxs)(n.CardBody,{children:[(0,s.jsx)(n.TextControl,{label:(0,l.__)("Monthly Price","section-blocks"),value:e.price,onChange:e=>S(o,"price",e),type:"number"}),(0,s.jsx)(n.TextControl,{label:(0,l.__)("Yearly Price","section-blocks"),value:e.yearlyPrice,onChange:e=>S(o,"yearlyPrice",e),type:"number"}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Currency","section-blocks"),value:e.currency,options:B,onChange:e=>S(o,"currency",e)}),e.isRecommended&&(0,s.jsx)(n.TextControl,{label:(0,l.__)("Badge Text","section-blocks"),value:e.badge||"",onChange:e=>S(o,"badge",e),placeholder:(0,l.__)("Most Popular","section-blocks")}),(0,s.jsx)(n.TextControl,{label:(0,l.__)("Button URL","section-blocks"),value:e.buttonUrl,onChange:e=>S(o,"buttonUrl",e),type:"url"})]})]},o)))})]}),(0,s.jsxs)("div",{className:"pricing-tables-container",children:[t&&(0,s.jsxs)("div",{className:"billing-toggle",children:[(0,s.jsx)("span",{className:"monthly"===i?"active":"",children:(0,l.__)("Monthly","section-blocks")}),(0,s.jsx)("button",{className:"toggle-switch",onClick:()=>a({billingPeriod:"monthly"===i?"yearly":"monthly"}),children:(0,s.jsx)("span",{className:"toggle-slider"})}),(0,s.jsxs)("span",{className:"yearly"===i?"active":"",children:[(0,l.__)("Yearly","section-blocks"),r>0&&(0,s.jsxs)("span",{className:"discount-badge",children:[(0,l.__)("Save","section-blocks")," ",r,"%"]})]})]}),(0,s.jsxs)("div",{className:`pricing-plans columns-${d}`,children:[c.slice(0,d).map(((e,t)=>(0,s.jsxs)("div",{className:`pricing-plan ${e.isRecommended?"recommended":""} ${k}-button`,children:[e.isRecommended&&e.badge&&(0,s.jsx)("div",{className:"plan-badge",children:e.badge}),(0,s.jsxs)("div",{className:"plan-header",children:[(0,s.jsx)(o.RichText,{tagName:"h3",className:"plan-name",value:e.name,onChange:e=>S(t,"name",e),placeholder:(0,l.__)("Plan Name","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"plan-description",value:e.description,onChange:e=>S(t,"description",e),placeholder:(0,l.__)("Plan description","section-blocks")})]}),(0,s.jsxs)("div",{className:"plan-pricing",children:[(0,s.jsx)("span",{className:"currency",children:e.currency}),(0,s.jsx)("span",{className:"price",children:w(e)}),(0,s.jsxs)("span",{className:"period",children:["/ ","yearly"===i?"year":"month"]})]}),(0,s.jsxs)("div",{className:"plan-features",children:[e.features.map(((e,i)=>(0,s.jsxs)("div",{className:"feature-item",children:[g&&(0,s.jsx)(n.Dashicon,{icon:e.included?e.icon:"no-alt",className:"feature-icon "+(e.included?"included":"not-included")}),(0,s.jsx)(o.RichText,{tagName:"span",className:"feature-text",value:e.text,onChange:e=>((e,l,o,n)=>{const s=[...c];s[e].features[l]={...s[e].features[l],[o]:n},a({plans:s})})(t,i,"text",e),placeholder:(0,l.__)("Feature text","section-blocks")}),(0,s.jsx)(n.Button,{icon:"no-alt",className:"remove-feature",onClick:()=>((e,l)=>{const o=[...c];o[e].features=o[e].features.filter(((e,o)=>o!==l)),a({plans:o})})(t,i),isSmall:!0})]},i))),(0,s.jsx)(n.Button,{icon:"plus",className:"add-feature",onClick:()=>(e=>{const l=[...c];l[e].features.push({text:"New Feature",included:!0,icon:"yes"}),a({plans:l})})(t),isSmall:!0,children:(0,l.__)("Add Feature","section-blocks")})]}),(0,s.jsx)("div",{className:"plan-button",children:(0,s.jsx)(o.RichText,{tagName:"span",className:`cta-button ${k}`,value:e.buttonText,onChange:e=>S(t,"buttonText",e),placeholder:(0,l.__)("Button Text","section-blocks")})}),(0,s.jsx)(n.Button,{icon:"no-alt",className:"remove-plan",onClick:()=>(e=>{const l=c.filter(((l,o)=>o!==e));a({plans:l})})(t),isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove Plan","section-blocks")})]},t))),c.length<4&&(0,s.jsx)("div",{className:"add-plan-container",children:(0,s.jsx)(n.Button,{icon:"plus",className:"add-plan",onClick:()=>{const e={name:`Plan ${c.length+1}`,price:"19",yearlyPrice:"190",currency:"$",period:"month",description:"Perfect for your needs",features:[{text:"Feature 1",included:!0,icon:"yes"},{text:"Feature 2",included:!0,icon:"yes"},{text:"Feature 3",included:!1,icon:"no-alt"}],buttonText:"Get Started",buttonUrl:"#",isRecommended:!1};a({plans:[...c,e]})},isPrimary:!0,children:(0,l.__)("Add Plan","section-blocks")})})]})]})]})}})}},o={};function n(e){var s=o[e];if(void 0!==s)return s.exports;var a=o[e]={exports:{}};return l[e](a,a.exports,n),a.exports}n.m=l,e=[],n.O=(l,o,s,a)=>{if(!o){var c=1/0;for(d=0;d<e.length;d++){for(var[o,s,a]=e[d],t=!0,i=0;i<o.length;i++)(!1&a||c>=a)&&Object.keys(n.O).every((e=>n.O[e](o[i])))?o.splice(i--,1):(t=!1,a<c&&(c=a));if(t){e.splice(d--,1);var r=s();void 0!==r&&(l=r)}}return l}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[o,s,a]},n.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={ 174:0,18:0};n.O.j=l=>0===e[l];var l=(l,o)=>{var s,a,[c,t,i]=o,r=0;if(c.some((l=>0!==e[l]))){for(s in t)n.o(t,s)&&(n.m[s]=t[s]);if(i)var d=i(n)}for(l&&l(o);r<c.length;r++)a=c[r],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=n.O(void 0,[18],(()=>n(3)));s=n.O(s)})();1 (()=>{"use strict";var e,l={3:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,n=window.wp.components,s=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-block/pricing-tables"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{plans:c,showBillingToggle:t,billingPeriod:i,yearlyDiscount:r,columns:d,colorScheme:b,primaryColor:u,backgroundColor:h,textColor:m,borderColor:_,hoverEffect:p,animationEffect:x,showFeatureIcons:g,buttonStyle:k,spacing:v}=e,y=(0,o.useBlockProps)({className:`pricing-tables-block columns-${d} scheme-${b} hover-${p} spacing-${v}`,style:{"--primary-color":u,"--background-color":h,"--text-color":m,"--border-color":_}}),j=[{label:(0,l.__)("Default","section-blocks"),value:"default"},{label:(0,l.__)("Blue","section-blocks"),value:"blue"},{label:(0,l.__)("Green","section-blocks"),value:"green"},{label:(0,l.__)("Purple","section-blocks"),value:"purple"},{label:(0,l.__)("Orange","section-blocks"),value:"orange"},{label:(0,l.__)("Dark","section-blocks"),value:"dark"}],C=[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Lift","section-blocks"),value:"lift"},{label:(0,l.__)("Scale","section-blocks"),value:"scale"},{label:(0,l.__)("Glow","section-blocks"),value:"glow"},{label:(0,l.__)("Tilt","section-blocks"),value:"tilt"}],f=[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Fade In Up","section-blocks"),value:"fadeInUp"},{label:(0,l.__)("Fade In","section-blocks"),value:"fadeIn"},{label:(0,l.__)("Slide In Left","section-blocks"),value:"slideInLeft"},{label:(0,l.__)("Slide In Right","section-blocks"),value:"slideInRight"},{label:(0,l.__)("Zoom In","section-blocks"),value:"zoomIn"}],N=[{label:(0,l.__)("Solid","section-blocks"),value:"solid"},{label:(0,l.__)("Outline","section-blocks"),value:"outline"},{label:(0,l.__)("Ghost","section-blocks"),value:"ghost"},{label:(0,l.__)("Gradient","section-blocks"),value:"gradient"}],P=[{label:(0,l.__)("Compact","section-blocks"),value:"compact"},{label:(0,l.__)("Normal","section-blocks"),value:"normal"},{label:(0,l.__)("Relaxed","section-blocks"),value:"relaxed"},{label:(0,l.__)("Spacious","section-blocks"),value:"spacious"}],B=[{label:"$",value:"$"},{label:"€",value:"€"},{label:"£",value:"£"},{label:"¥",value:"¥"},{label:"₹",value:"₹"},{label:"Custom",value:"custom"}],S=(e,l,o)=>{const n=[...c];n[e]={...n[e],[l]:o},a({plans:n})},w=e=>"yearly"===i?e.yearlyPrice||((e,l)=>{const o=12*e;return Math.round(o-o*l/100)})(e.price,r):e.price;return(0,s.jsxs)("div",{...y,children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Pricing Settings","section-blocks"),children:[(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Show Billing Toggle","section-blocks"),checked:t,onChange:e=>a({showBillingToggle:e})}),t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.ButtonGroup,{children:[(0,s.jsx)(n.Button,{isPrimary:"monthly"===i,onClick:()=>a({billingPeriod:"monthly"}),children:(0,l.__)("Monthly","section-blocks")}),(0,s.jsx)(n.Button,{isPrimary:"yearly"===i,onClick:()=>a({billingPeriod:"yearly"}),children:(0,l.__)("Yearly","section-blocks")})]}),(0,s.jsx)(n.__experimentalNumberControl,{label:(0,l.__)("Yearly Discount (%)","section-blocks"),value:r,onChange:e=>a({yearlyDiscount:parseInt(e)||0}),min:0,max:50})]}),(0,s.jsx)(n.RangeControl,{label:(0,l.__)("Number of Columns","section-blocks"),value:d,onChange:e=>a({columns:e}),min:2,max:4})]}),(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Design Settings","section-blocks"),children:[(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Color Scheme","section-blocks"),value:b,options:j,onChange:e=>a({colorScheme:e})}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Primary Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:u,onChange:e=>a({primaryColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Background Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:h,onChange:e=>a({backgroundColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Text Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:m,onChange:e=>a({textColor:e})})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:(0,l.__)("Border Color","section-blocks")}),(0,s.jsx)(n.ColorPicker,{color:_,onChange:e=>a({borderColor:e})})]})]}),(0,s.jsxs)(n.PanelBody,{title:(0,l.__)("Effects & Animation","section-blocks"),children:[(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:p,options:C,onChange:e=>a({hoverEffect:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:x,options:f,onChange:e=>a({animationEffect:e})}),(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Show Feature Icons","section-blocks"),checked:g,onChange:e=>a({showFeatureIcons:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Button Style","section-blocks"),value:k,options:N,onChange:e=>a({buttonStyle:e})}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:v,options:P,onChange:e=>a({spacing:e})})]}),(0,s.jsx)(n.PanelBody,{title:(0,l.__)("Plan Management","section-blocks"),initialOpen:!1,children:c.map(((e,o)=>(0,s.jsxs)(n.Card,{style:{marginBottom:"16px"},children:[(0,s.jsx)(n.CardHeader,{children:(0,s.jsxs)(n.Flex,{children:[(0,s.jsx)(n.FlexBlock,{children:(0,s.jsx)("strong",{children:e.name||`Plan ${o+1}`})}),(0,s.jsx)(n.FlexItem,{children:(0,s.jsx)(n.ToggleControl,{label:(0,l.__)("Recommended","section-blocks"),checked:e.isRecommended,onChange:e=>S(o,"isRecommended",e)})})]})}),(0,s.jsxs)(n.CardBody,{children:[(0,s.jsx)(n.TextControl,{label:(0,l.__)("Monthly Price","section-blocks"),value:e.price,onChange:e=>S(o,"price",e),type:"number"}),(0,s.jsx)(n.TextControl,{label:(0,l.__)("Yearly Price","section-blocks"),value:e.yearlyPrice,onChange:e=>S(o,"yearlyPrice",e),type:"number"}),(0,s.jsx)(n.SelectControl,{label:(0,l.__)("Currency","section-blocks"),value:e.currency,options:B,onChange:e=>S(o,"currency",e)}),e.isRecommended&&(0,s.jsx)(n.TextControl,{label:(0,l.__)("Badge Text","section-blocks"),value:e.badge||"",onChange:e=>S(o,"badge",e),placeholder:(0,l.__)("Most Popular","section-blocks")}),(0,s.jsx)(n.TextControl,{label:(0,l.__)("Button URL","section-blocks"),value:e.buttonUrl,onChange:e=>S(o,"buttonUrl",e),type:"url"})]})]},o)))})]}),(0,s.jsxs)("div",{className:"pricing-tables-container",children:[t&&(0,s.jsxs)("div",{className:"billing-toggle",children:[(0,s.jsx)("span",{className:"monthly"===i?"active":"",children:(0,l.__)("Monthly","section-blocks")}),(0,s.jsx)("button",{className:"toggle-switch",onClick:()=>a({billingPeriod:"monthly"===i?"yearly":"monthly"}),children:(0,s.jsx)("span",{className:"toggle-slider"})}),(0,s.jsxs)("span",{className:"yearly"===i?"active":"",children:[(0,l.__)("Yearly","section-blocks"),r>0&&(0,s.jsxs)("span",{className:"discount-badge",children:[(0,l.__)("Save","section-blocks")," ",r,"%"]})]})]}),(0,s.jsxs)("div",{className:`pricing-plans columns-${d}`,children:[c.slice(0,d).map(((e,t)=>(0,s.jsxs)("div",{className:`pricing-plan ${e.isRecommended?"recommended":""} ${k}-button`,children:[e.isRecommended&&e.badge&&(0,s.jsx)("div",{className:"plan-badge",children:e.badge}),(0,s.jsxs)("div",{className:"plan-header",children:[(0,s.jsx)(o.RichText,{tagName:"h3",className:"plan-name",value:e.name,onChange:e=>S(t,"name",e),placeholder:(0,l.__)("Plan Name","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"plan-description",value:e.description,onChange:e=>S(t,"description",e),placeholder:(0,l.__)("Plan description","section-blocks")})]}),(0,s.jsxs)("div",{className:"plan-pricing",children:[(0,s.jsx)("span",{className:"currency",children:e.currency}),(0,s.jsx)("span",{className:"price",children:w(e)}),(0,s.jsxs)("span",{className:"period",children:["/ ","yearly"===i?"year":"month"]})]}),(0,s.jsxs)("div",{className:"plan-features",children:[e.features.map(((e,i)=>(0,s.jsxs)("div",{className:"feature-item",children:[g&&(0,s.jsx)(n.Dashicon,{icon:e.included?e.icon:"no-alt",className:"feature-icon "+(e.included?"included":"not-included")}),(0,s.jsx)(o.RichText,{tagName:"span",className:"feature-text",value:e.text,onChange:e=>((e,l,o,n)=>{const s=[...c];s[e].features[l]={...s[e].features[l],[o]:n},a({plans:s})})(t,i,"text",e),placeholder:(0,l.__)("Feature text","section-blocks")}),(0,s.jsx)(n.Button,{icon:"no-alt",className:"remove-feature",onClick:()=>((e,l)=>{const o=[...c];o[e].features=o[e].features.filter(((e,o)=>o!==l)),a({plans:o})})(t,i),isSmall:!0})]},i))),(0,s.jsx)(n.Button,{icon:"plus",className:"add-feature",onClick:()=>(e=>{const l=[...c];l[e].features.push({text:"New Feature",included:!0,icon:"yes"}),a({plans:l})})(t),isSmall:!0,children:(0,l.__)("Add Feature","section-blocks")})]}),(0,s.jsx)("div",{className:"plan-button",children:(0,s.jsx)(o.RichText,{tagName:"span",className:`cta-button ${k}`,value:e.buttonText,onChange:e=>S(t,"buttonText",e),placeholder:(0,l.__)("Button Text","section-blocks")})}),(0,s.jsx)(n.Button,{icon:"no-alt",className:"remove-plan",onClick:()=>(e=>{const l=c.filter(((l,o)=>o!==e));a({plans:l})})(t),isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove Plan","section-blocks")})]},t))),c.length<4&&(0,s.jsx)("div",{className:"add-plan-container",children:(0,s.jsx)(n.Button,{icon:"plus",className:"add-plan",onClick:()=>{const e={name:`Plan ${c.length+1}`,price:"19",yearlyPrice:"190",currency:"$",period:"month",description:"Perfect for your needs",features:[{text:"Feature 1",included:!0,icon:"yes"},{text:"Feature 2",included:!0,icon:"yes"},{text:"Feature 3",included:!1,icon:"no-alt"}],buttonText:"Get Started",buttonUrl:"#",isRecommended:!1};a({plans:[...c,e]})},isPrimary:!0,children:(0,l.__)("Add Plan","section-blocks")})})]})]})]})}})}},o={};function n(e){var s=o[e];if(void 0!==s)return s.exports;var a=o[e]={exports:{}};return l[e](a,a.exports,n),a.exports}n.m=l,e=[],n.O=(l,o,s,a)=>{if(!o){var c=1/0;for(d=0;d<e.length;d++){for(var[o,s,a]=e[d],t=!0,i=0;i<o.length;i++)(!1&a||c>=a)&&Object.keys(n.O).every((e=>n.O[e](o[i])))?o.splice(i--,1):(t=!1,a<c&&(c=a));if(t){e.splice(d--,1);var r=s();void 0!==r&&(l=r)}}return l}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[o,s,a]},n.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={7174:0,9018:0};n.O.j=l=>0===e[l];var l=(l,o)=>{var s,a,[c,t,i]=o,r=0;if(c.some((l=>0!==e[l]))){for(s in t)n.o(t,s)&&(n.m[s]=t[s]);if(i)var d=i(n)}for(l&&l(o);r<c.length;r++)a=c[r],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=n.O(void 0,[9018],(()=>n(3)));s=n.O(s)})(); -
section-blocks/trunk/build/services-section/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' 40569d2715fe40686a4a');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'eedb4218f04cb2915bc3'); -
section-blocks/trunk/build/services-section/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,l={673:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,a=window.wp.components,s=window.ReactJSXRuntime,n=[{label:"Tools",value:"admin-tools"},{label:"Settings",value:"admin-settings"},{label:"Customizer",value:"admin-customizer"},{label:"Chart Line",value:"chart-line"},{label:"Chart Bar",value:"chart-bar"},{label:"Star Filled",value:"star-filled"},{label:"Heart",value:"heart"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Lightbulb",value:"lightbulb"},{label:"Users",value:"admin-users"},{label:"Checkmark",value:"yes-alt"},{label:"Awards",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email-alt"},{label:"Cart",value:"cart"},{label:"Money",value:"money-alt"},{label:"Groups",value:"groups"}],i=JSON.parse('{"UU":"create-block/services-section"}');(0,e.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:i}){const{services:c,columns:t,gap:r,equalHeight:d,animationEffect:u,hoverEffect:v,backgroundColor:b,textColor:h,cardBackgroundColor:g,cardHoverBackgroundColor:m,iconColor:C,iconSize:x,borderRadius:p,cardShadow:k,spacing:_,ctaButtonStyle:j,ctaButtonColor:f,ctaButtonTextColor:S}=e,B=(0,o.useBlockProps)({className:`services-section-block columns-${t} gap-${r} hover-${v} shadow-${k} spacing-${_} animation-${u}${d?" equal-height":""}`,style:{backgroundColor:b,color:h,padding:"compact"===_?"2rem":"loose"===_?"4rem":"3rem"}}),w=(e,l,o)=>{const a=[...c];a[e]={...a[e],[l]:o},i({services:a})},y=(e,l)=>{const o=[...c],a="up"===l?e-1:e+1;a>=0&&a<c.length&&([o[e],o[a]]=[o[a],o[e]],i({services:o}))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:t,onChange:e=>i({columns:e}),min:2,max:4,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Gap Between Cards","section-blocks"),value:r,options:[{label:"Small",value:"small"},{label:"Normal",value:"normal"},{label:"Large",value:"large"}],onChange:e=>i({gap:e})}),(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Equal Height Cards","section-blocks"),checked:d,onChange:e=>i({equalHeight:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:_,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>i({spacing:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Animation & Effects","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:u,options:[{label:"None",value:"none"},{label:"Fade In",value:"fade"},{label:"Slide Up",value:"slide"},{label:"Zoom In",value:"zoom"}],onChange:e=>i({animationEffect:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:v,options:[{label:"Lift",value:"lift"},{label:"Scale",value:"scale"},{label:"Glow",value:"glow"},{label:"Background Overlay",value:"overlay"}],onChange:e=>i({hoverEffect:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Card Design","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Border Radius","section-blocks"),value:p,onChange:e=>i({borderRadius:e}),min:0,max:50,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Card Shadow","section-blocks"),value:k,options:[{label:"None",value:"none"},{label:"Light",value:"light"},{label:"Medium",value:"medium"},{label:"Heavy",value:"heavy"}],onChange:e=>i({cardShadow:e})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Card Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:g,onChange:e=>i({cardBackgroundColor:e||"#ffffff"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Card Hover Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:m,onChange:e=>i({cardHoverBackgroundColor:e||"#f8f9fa"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Icon Settings","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Icon Size","section-blocks"),value:x,onChange:e=>i({iconSize:e}),min:24,max:96,step:4}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Icon Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:C,onChange:e=>i({iconColor:e||"#007cba"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)("p",{children:(0,l.__)("Section Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:b,onChange:e=>i({backgroundColor:e||"#ffffff"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Text Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:h,onChange:e=>i({textColor:e||"#333333"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("CTA Button Style","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Button Style","section-blocks"),value:j,options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Outline",value:"outline"},{label:"Text",value:"text"}],onChange:e=>i({ctaButtonStyle:e})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Button Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:f,onChange:e=>i({ctaButtonColor:e||"#007cba"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Button Text Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:S,onChange:e=>i({ctaButtonTextColor:e||"#ffffff"})})]})]}),(0,s.jsx)("div",{...B,children:(0,s.jsxs)("div",{className:"services-container",children:[(0,s.jsx)("div",{className:"services-grid",children:c.map(((e,t)=>(0,s.jsxs)("div",{className:"service-card",style:{backgroundColor:g,borderRadius:`${p}px`,"--hover-bg-color":m},children:[(0,s.jsx)("div",{className:"service-controls",children:(0,s.jsxs)("div",{className:"service-control-buttons",children:[(0,s.jsx)(a.Button,{onClick:()=>y(t,"up"),disabled:0===t,isSmall:!0,label:(0,l.__)("Move Up","section-blocks"),children:"↑"}),(0,s.jsx)(a.Button,{onClick:()=>y(t,"down"),disabled:t===c.length-1,isSmall:!0,label:(0,l.__)("Move Down","section-blocks"),children:"↓"}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=[...c],o={...c[e]};l.splice(e+1,0,o),i({services:l})})(t),isSmall:!0,label:(0,l.__)("Clone Service","section-blocks"),children:"📋"}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=c.filter(((l,o)=>o!==e));i({services:l})})(t),isDestructive:!0,isSmall:!0,label:(0,l.__)("Remove Service","section-blocks"),children:"🗑️"})]})}),(0,s.jsxs)("div",{className:"service-icon-image",children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Use Icon","section-blocks"),checked:e.useIcon,onChange:e=>w(t,"useIcon",e)}),e.useIcon?(0,s.jsxs)("div",{className:"service-icon-container",children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Icon","section-blocks"),value:e.icon,options:n,onChange:e=>w(t,"icon",e)}),(0,s.jsx)("div",{className:"service-icon",style:{color:C,fontSize:`${x}px`},children:(0,s.jsx)(a.Dashicon,{icon:e.icon,size:x})})]}):(0,s.jsxs)("div",{className:"service-image-container",children:[(0,s.jsx)(o.MediaUploadCheck,{children:(0,s.jsx)(o.MediaUpload,{onSelect:e=>{const l=c.map(((l,o)=>o===t?{...l,image:{url:e.url,alt:e.alt||"",id:e.id},imageId:e.id}:l));i({services:l})},allowedTypes:["image"],value:e.imageId,render:({open:o})=>(0,s.jsx)(a.Button,{onClick:o,className:e.image?"has-image":"no-image",children:e.image?(0,s.jsx)("img",{src:e.image.url,alt:e.image.alt||"",style:{maxWidth:"100px",height:"auto"}}):(0,l.__)("Select Image","section-blocks")})})}),e.image&&(0,s.jsx)(a.Button,{onClick:()=>{const e=c.map(((e,l)=>l===t?{...e,image:null,imageId:0}:e));i({services:e})},isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove Image","section-blocks")})]})]}),(0,s.jsx)(o.RichText,{tagName:"h3",className:"service-title",value:e.title,onChange:e=>w(t,"title",e),placeholder:(0,l.__)("Service title...","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"service-description",value:e.description,onChange:e=>w(t,"description",e),placeholder:(0,l.__)("Service description...","section-blocks")}),(0,s.jsxs)("div",{className:"service-cta-controls",children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Show CTA Button","section-blocks"),checked:e.showCTA,onChange:e=>w(t,"showCTA",e)}),e.showCTA&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Button Text","section-blocks"),value:e.ctaText,onChange:e=>w(t,"ctaText",e)}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Button URL","section-blocks"),value:e.ctaUrl,onChange:e=>w(t,"ctaUrl",e)}),(0,s.jsx)("div",{className:"service-cta-button",style:{backgroundColor:f,color:S,borderRadius:p/2+"px"},children:e.ctaText})]})]})]},t)))}),(0,s.jsx)("div",{className:"services-actions",children:(0,s.jsx)(a.Button,{onClick:()=>{const e=[...c,{useIcon:!0,icon:"admin-tools",image:null,imageId:0,title:"New Service",description:"Describe your amazing service here.",showCTA:!1,ctaText:"Learn More",ctaUrl:"#"}];i({services:e})},isPrimary:!0,children:(0,l.__)("Add Service","section-blocks")})})]})})]})}})}},o={};function a(e){var s=o[e];if(void 0!==s)return s.exports;var n=o[e]={exports:{}};return l[e](n,n.exports,a),n.exports}a.m=l,e=[],a.O=(l,o,s,n)=>{if(!o){var i=1/0;for(d=0;d<e.length;d++){for(var[o,s,n]=e[d],c=!0,t=0;t<o.length;t++)(!1&n||i>=n)&&Object.keys(a.O).every((e=>a.O[e](o[t])))?o.splice(t--,1):(c=!1,n<i&&(i=n));if(c){e.splice(d--,1);var r=s();void 0!==r&&(l=r)}}return l}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[o,s,n]},a.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={ 540:0,820:0};a.O.j=l=>0===e[l];var l=(l,o)=>{var s,n,[i,c,t]=o,r=0;if(i.some((l=>0!==e[l]))){for(s in c)a.o(c,s)&&(a.m[s]=c[s]);if(t)var d=t(a)}for(l&&l(o);r<i.length;r++)n=i[r],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=a.O(void 0,[820],(()=>a(673)));s=a.O(s)})();1 (()=>{"use strict";var e,l={673:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,a=window.wp.components,s=window.ReactJSXRuntime,n=[{label:"Tools",value:"admin-tools"},{label:"Settings",value:"admin-settings"},{label:"Customizer",value:"admin-customizer"},{label:"Chart Line",value:"chart-line"},{label:"Chart Bar",value:"chart-bar"},{label:"Star Filled",value:"star-filled"},{label:"Heart",value:"heart"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Lightbulb",value:"lightbulb"},{label:"Users",value:"admin-users"},{label:"Checkmark",value:"yes-alt"},{label:"Awards",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email-alt"},{label:"Cart",value:"cart"},{label:"Money",value:"money-alt"},{label:"Groups",value:"groups"}],i=JSON.parse('{"UU":"create-block/services-section"}');(0,e.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:i}){const{services:c,columns:t,gap:r,equalHeight:d,animationEffect:u,hoverEffect:v,backgroundColor:b,textColor:h,cardBackgroundColor:g,cardHoverBackgroundColor:m,iconColor:C,iconSize:x,borderRadius:p,cardShadow:k,spacing:_,ctaButtonStyle:j,ctaButtonColor:f,ctaButtonTextColor:S}=e,B=(0,o.useBlockProps)({className:`services-section-block columns-${t} gap-${r} hover-${v} shadow-${k} spacing-${_} animation-${u}${d?" equal-height":""}`,style:{backgroundColor:b,color:h,padding:"compact"===_?"2rem":"loose"===_?"4rem":"3rem"}}),w=(e,l,o)=>{const a=[...c];a[e]={...a[e],[l]:o},i({services:a})},y=(e,l)=>{const o=[...c],a="up"===l?e-1:e+1;a>=0&&a<c.length&&([o[e],o[a]]=[o[a],o[e]],i({services:o}))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.InspectorControls,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:t,onChange:e=>i({columns:e}),min:2,max:4,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Gap Between Cards","section-blocks"),value:r,options:[{label:"Small",value:"small"},{label:"Normal",value:"normal"},{label:"Large",value:"large"}],onChange:e=>i({gap:e})}),(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Equal Height Cards","section-blocks"),checked:d,onChange:e=>i({equalHeight:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:_,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>i({spacing:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Animation & Effects","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Animation Effect","section-blocks"),value:u,options:[{label:"None",value:"none"},{label:"Fade In",value:"fade"},{label:"Slide Up",value:"slide"},{label:"Zoom In",value:"zoom"}],onChange:e=>i({animationEffect:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:v,options:[{label:"Lift",value:"lift"},{label:"Scale",value:"scale"},{label:"Glow",value:"glow"},{label:"Background Overlay",value:"overlay"}],onChange:e=>i({hoverEffect:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Card Design","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Border Radius","section-blocks"),value:p,onChange:e=>i({borderRadius:e}),min:0,max:50,step:1}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Card Shadow","section-blocks"),value:k,options:[{label:"None",value:"none"},{label:"Light",value:"light"},{label:"Medium",value:"medium"},{label:"Heavy",value:"heavy"}],onChange:e=>i({cardShadow:e})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Card Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:g,onChange:e=>i({cardBackgroundColor:e||"#ffffff"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Card Hover Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:m,onChange:e=>i({cardHoverBackgroundColor:e||"#f8f9fa"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Icon Settings","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Icon Size","section-blocks"),value:x,onChange:e=>i({iconSize:e}),min:24,max:96,step:4}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Icon Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:C,onChange:e=>i({iconColor:e||"#007cba"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,s.jsx)("p",{children:(0,l.__)("Section Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:b,onChange:e=>i({backgroundColor:e||"#ffffff"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Text Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:h,onChange:e=>i({textColor:e||"#333333"})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("CTA Button Style","section-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Button Style","section-blocks"),value:j,options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Outline",value:"outline"},{label:"Text",value:"text"}],onChange:e=>i({ctaButtonStyle:e})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Button Background Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:f,onChange:e=>i({ctaButtonColor:e||"#007cba"})}),(0,s.jsx)(a.Spacer,{marginY:3}),(0,s.jsx)("p",{children:(0,l.__)("Button Text Color","section-blocks")}),(0,s.jsx)(a.ColorPalette,{value:S,onChange:e=>i({ctaButtonTextColor:e||"#ffffff"})})]})]}),(0,s.jsx)("div",{...B,children:(0,s.jsxs)("div",{className:"services-container",children:[(0,s.jsx)("div",{className:"services-grid",children:c.map(((e,t)=>(0,s.jsxs)("div",{className:"service-card",style:{backgroundColor:g,borderRadius:`${p}px`,"--hover-bg-color":m},children:[(0,s.jsx)("div",{className:"service-controls",children:(0,s.jsxs)("div",{className:"service-control-buttons",children:[(0,s.jsx)(a.Button,{onClick:()=>y(t,"up"),disabled:0===t,isSmall:!0,label:(0,l.__)("Move Up","section-blocks"),children:"↑"}),(0,s.jsx)(a.Button,{onClick:()=>y(t,"down"),disabled:t===c.length-1,isSmall:!0,label:(0,l.__)("Move Down","section-blocks"),children:"↓"}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=[...c],o={...c[e]};l.splice(e+1,0,o),i({services:l})})(t),isSmall:!0,label:(0,l.__)("Clone Service","section-blocks"),children:"📋"}),(0,s.jsx)(a.Button,{onClick:()=>(e=>{const l=c.filter(((l,o)=>o!==e));i({services:l})})(t),isDestructive:!0,isSmall:!0,label:(0,l.__)("Remove Service","section-blocks"),children:"🗑️"})]})}),(0,s.jsxs)("div",{className:"service-icon-image",children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Use Icon","section-blocks"),checked:e.useIcon,onChange:e=>w(t,"useIcon",e)}),e.useIcon?(0,s.jsxs)("div",{className:"service-icon-container",children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Icon","section-blocks"),value:e.icon,options:n,onChange:e=>w(t,"icon",e)}),(0,s.jsx)("div",{className:"service-icon",style:{color:C,fontSize:`${x}px`},children:(0,s.jsx)(a.Dashicon,{icon:e.icon,size:x})})]}):(0,s.jsxs)("div",{className:"service-image-container",children:[(0,s.jsx)(o.MediaUploadCheck,{children:(0,s.jsx)(o.MediaUpload,{onSelect:e=>{const l=c.map(((l,o)=>o===t?{...l,image:{url:e.url,alt:e.alt||"",id:e.id},imageId:e.id}:l));i({services:l})},allowedTypes:["image"],value:e.imageId,render:({open:o})=>(0,s.jsx)(a.Button,{onClick:o,className:e.image?"has-image":"no-image",children:e.image?(0,s.jsx)("img",{src:e.image.url,alt:e.image.alt||"",style:{maxWidth:"100px",height:"auto"}}):(0,l.__)("Select Image","section-blocks")})})}),e.image&&(0,s.jsx)(a.Button,{onClick:()=>{const e=c.map(((e,l)=>l===t?{...e,image:null,imageId:0}:e));i({services:e})},isDestructive:!0,isSmall:!0,children:(0,l.__)("Remove Image","section-blocks")})]})]}),(0,s.jsx)(o.RichText,{tagName:"h3",className:"service-title",value:e.title,onChange:e=>w(t,"title",e),placeholder:(0,l.__)("Service title...","section-blocks")}),(0,s.jsx)(o.RichText,{tagName:"p",className:"service-description",value:e.description,onChange:e=>w(t,"description",e),placeholder:(0,l.__)("Service description...","section-blocks")}),(0,s.jsxs)("div",{className:"service-cta-controls",children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Show CTA Button","section-blocks"),checked:e.showCTA,onChange:e=>w(t,"showCTA",e)}),e.showCTA&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Button Text","section-blocks"),value:e.ctaText,onChange:e=>w(t,"ctaText",e)}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Button URL","section-blocks"),value:e.ctaUrl,onChange:e=>w(t,"ctaUrl",e)}),(0,s.jsx)("div",{className:"service-cta-button",style:{backgroundColor:f,color:S,borderRadius:p/2+"px"},children:e.ctaText})]})]})]},t)))}),(0,s.jsx)("div",{className:"services-actions",children:(0,s.jsx)(a.Button,{onClick:()=>{const e=[...c,{useIcon:!0,icon:"admin-tools",image:null,imageId:0,title:"New Service",description:"Describe your amazing service here.",showCTA:!1,ctaText:"Learn More",ctaUrl:"#"}];i({services:e})},isPrimary:!0,children:(0,l.__)("Add Service","section-blocks")})})]})})]})}})}},o={};function a(e){var s=o[e];if(void 0!==s)return s.exports;var n=o[e]={exports:{}};return l[e](n,n.exports,a),n.exports}a.m=l,e=[],a.O=(l,o,s,n)=>{if(!o){var i=1/0;for(d=0;d<e.length;d++){for(var[o,s,n]=e[d],c=!0,t=0;t<o.length;t++)(!1&n||i>=n)&&Object.keys(a.O).every((e=>a.O[e](o[t])))?o.splice(t--,1):(c=!1,n<i&&(i=n));if(c){e.splice(d--,1);var r=s();void 0!==r&&(l=r)}}return l}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[o,s,n]},a.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={1540:0,1820:0};a.O.j=l=>0===e[l];var l=(l,o)=>{var s,n,[i,c,t]=o,r=0;if(i.some((l=>0!==e[l]))){for(s in c)a.o(c,s)&&(a.m[s]=c[s]);if(t)var d=t(a)}for(l&&l(o);r<i.length;r++)n=i[r],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(d)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var s=a.O(void 0,[1820],(()=>a(673)));s=a.O(s)})(); -
section-blocks/trunk/build/steps-timeline/index.asset.php
r3318999 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' f431ec7a909336a16976');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'b9d61f68c694c44d3875'); -
section-blocks/trunk/build/steps-timeline/index.js
r3318999 r3750877 1 (()=>{"use strict";var e,o={ 844:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,t=window.ReactJSXRuntime,s=[{label:"User",value:"admin-users"},{label:"Settings",value:"admin-settings"},{label:"Check",value:"yes-alt"},{label:"Star",value:"star-filled"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Heart",value:"heart"},{label:"Lightbulb",value:"lightbulb"},{label:"Trophy",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email"},{label:"Cart",value:"cart"},{label:"Money",value:"money"},{label:"Chart",value:"chart-line"},{label:"Groups",value:"groups"},{label:"Download",value:"download"},{label:"Upload",value:"upload"},{label:"Search",value:"search"}],a=JSON.parse('{"UU":"create-block/steps-timeline"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{sectionTitle:i,sectionDescription:c,showSectionHeader:r,steps:d,layoutOrientation:b,layoutAlignment:h,stepsPerRow:u,connectorStyle:p,connectorColor:g,connectorThickness:C,showConnectors:m,animateConnectors:x,enableAnimations:v,animationType:k,scrollTrigger:j,scrollOffset:_,backgroundColor:S,sectionTextColor:f,stepBackgroundColor:y,stepTextColor:T,iconColor:w,numberColor:N,numberBackgroundColor:O,spacing:R,borderRadius:B,mobileLayout:P,hideConnectorsOnMobile:A}=e,z=(0,l.useBlockProps)({className:`steps-timeline-block layout-${b} align-${h} spacing-${R}`,style:{backgroundColor:S,color:f,padding:"compact"===R?"2rem":"loose"===R?"4rem":"3rem"}}),D=(e,o,l)=>{const n=[...d];n[e]={...n[e],[o]:l},a({steps:n})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.InspectorControls,{children:[(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Section Header","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Section Header","section-blocks"),checked:r,onChange:e=>a({showSectionHeader:e})}),r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Section Title","section-blocks"),value:i,onChange:e=>a({sectionTitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Section Description","section-blocks"),value:c,onChange:e=>a({sectionDescription:e})})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Orientation","section-blocks"),value:b,options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"},{label:"Zigzag",value:"zigzag"}],onChange:e=>a({layoutOrientation:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Alignment","section-blocks"),value:h,options:[{label:"Center",value:"center"},{label:"Left",value:"left"},{label:"Right",value:"right"}],onChange:e=>a({layoutAlignment:e})}),"horizontal"===b&&(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Steps per Row","section-blocks"),value:u,onChange:e=>a({stepsPerRow:e}),min:2,max:4,step:1}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:R,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>a({spacing:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:B,onChange:e=>a({borderRadius:e}),min:0,max:50,step:1})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Connector Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Connectors","section-blocks"),checked:m,onChange:e=>a({showConnectors:e})}),m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Connector Style","section-blocks"),value:p,options:[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"Animated Line",value:"animated"}],onChange:e=>a({connectorStyle:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Connector Thickness","section-blocks"),value:C,onChange:e=>a({connectorThickness:e}),min:1,max:10,step:1}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Connector Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:g,onChange:e=>a({connectorColor:e||"#007cba"})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Animate Connectors","section-blocks"),checked:x,onChange:e=>a({animateConnectors:e})})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Animation Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable Animations","section-blocks"),checked:v,onChange:e=>a({enableAnimations:e})}),v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Animation Type","section-blocks"),value:k,options:[{label:"Fade In",value:"fade"},{label:"Slide Up",value:"slideUp"},{label:"Slide Left",value:"slideLeft"},{label:"Slide Right",value:"slideRight"},{label:"Zoom In",value:"zoom"},{label:"Bounce In",value:"bounce"}],onChange:e=>a({animationType:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Scroll Trigger","section-blocks"),checked:j,onChange:e=>a({scrollTrigger:e})}),j&&(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Scroll Offset (px)","section-blocks"),value:_,onChange:e=>a({scrollOffset:e}),min:0,max:500,step:10})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Section Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:S,onChange:e=>a({backgroundColor:e||"#ffffff"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Section Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:f,onChange:e=>a({sectionTextColor:e||"#333333"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Step Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:y,onChange:e=>a({stepBackgroundColor:e||"#f8f9fa"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Step Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:T,onChange:e=>a({stepTextColor:e||"#333333"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Icon Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:w,onChange:e=>a({iconColor:e||"#007cba"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Number Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:O,onChange:e=>a({numberBackgroundColor:e||"#007cba"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Number Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:N,onChange:e=>a({numberColor:e||"#ffffff"})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Responsive Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Mobile Layout","section-blocks"),value:P,options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"}],onChange:e=>a({mobileLayout:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Hide Connectors on Mobile","section-blocks"),checked:A,onChange:e=>a({hideConnectorsOnMobile:e})})]})]}),(0,t.jsxs)("div",{...z,children:[r&&(0,t.jsxs)("div",{className:"steps-timeline-header",children:[(0,t.jsx)(l.RichText,{tagName:"h2",className:"section-title",value:i,onChange:e=>a({sectionTitle:e}),placeholder:(0,o.__)("Section title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"section-description",value:c,onChange:e=>a({sectionDescription:e}),placeholder:(0,o.__)("Section description...","section-blocks")})]}),(0,t.jsx)("div",{className:"steps-timeline-container "+("horizontal"===b?`steps-per-row-${u}`:""),children:d.map(((e,i)=>(0,t.jsxs)("div",{className:`step-item step-${i+1}`,children:[(0,t.jsxs)("div",{className:"step-controls",children:[(0,t.jsxs)("div",{className:"step-reorder",children:[(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(0===e)return;const o=[...d];[o[e-1],o[e]]=[o[e],o[e-1]];const l=o.map(((e,o)=>({...e,stepNumber:o+1})));a({steps:l})})(i),disabled:0===i,isSmall:!0,children:"↑"}),(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(e===d.length-1)return;const o=[...d];[o[e],o[e+1]]=[o[e+1],o[e]];const l=o.map(((e,o)=>({...e,stepNumber:o+1})));a({steps:l})})(i),disabled:i===d.length-1,isSmall:!0,children:"↓"})]}),(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(d.length<=3)return;const o=d.filter(((o,l)=>l!==e)).map(((e,o)=>({...e,stepNumber:o+1})));a({steps:o})})(i),isDestructive:!0,isSmall:!0,disabled:d.length<=3,children:(0,o.__)("Remove","section-blocks")})]}),(0,t.jsxs)("div",{className:"step-content",style:{backgroundColor:e.backgroundColor||y,color:e.textColor||T,borderRadius:`${B}px`},children:[(0,t.jsxs)("div",{className:"step-number-icon",children:[(0,t.jsx)("div",{className:"step-number",style:{backgroundColor:O,color:N},children:e.stepNumber}),(0,t.jsx)("div",{className:"step-icon",style:{color:w},children:(0,t.jsx)(n.Dashicon,{icon:e.icon,size:"32"})})]}),(0,t.jsxs)("div",{className:"step-text",children:[(0,t.jsx)(l.RichText,{tagName:"h3",className:"step-title",value:e.title,onChange:e=>D(i,"title",e),placeholder:(0,o.__)("Step title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"step-description",value:e.description,onChange:e=>D(i,"description",e),placeholder:(0,o.__)("Step description...","section-blocks")})]}),(0,t.jsx)("div",{className:"step-settings",children:(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Icon","section-blocks"),value:e.icon,options:s,onChange:e=>D(i,"icon",e)})})]}),m&&i<d.length-1&&(0,t.jsx)("div",{className:`step-connector connector-${p}`,style:{borderColor:g,borderWidth:`${C}px`}})]},e.id)))}),(0,t.jsx)("div",{className:"steps-timeline-actions",children:(0,t.jsxs)(n.Button,{onClick:()=>{if(d.length>=6)return;const e={id:`step-${Date.now()}`,title:`Step ${d.length+1}`,description:"Describe this step in your process",icon:"admin-users",stepNumber:d.length+1,backgroundColor:y,textColor:T,showImage:!1,image:null,imageId:0};a({steps:[...d,e]})},isPrimary:!0,disabled:d.length>=6,children:[(0,o.__)("Add Step","section-blocks")," (",d.length,"/6)"]})})]})]})}})}},l={};function n(e){var t=l[e];if(void 0!==t)return t.exports;var s=l[e]={exports:{}};return o[e](s,s.exports,n),s.exports}n.m=o,e=[],n.O=(o,l,t,s)=>{if(!l){var a=1/0;for(d=0;d<e.length;d++){for(var[l,t,s]=e[d],i=!0,c=0;c<l.length;c++)(!1&s||a>=s)&&Object.keys(n.O).every((e=>n.O[e](l[c])))?l.splice(c--,1):(i=!1,s<a&&(a=s));if(i){e.splice(d--,1);var r=t();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[l,t,s]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={465:0,725:0};n.O.j=o=>0===e[o];var o=(o,l)=>{var t,s,[a,i,c]=l,r=0;if(a.some((o=>0!==e[o]))){for(t in i)n.o(i,t)&&(n.m[t]=i[t]);if(c)var d=c(n)}for(o&&o(l);r<a.length;r++)s=a[r],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var t=n.O(void 0,[725],(()=>n(844)));t=n.O(t)})();1 (()=>{"use strict";var e,o={463:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,t=window.ReactJSXRuntime,s=[{label:"User",value:"admin-users"},{label:"Settings",value:"admin-settings"},{label:"Check",value:"yes-alt"},{label:"Star",value:"star-filled"},{label:"Shield",value:"shield"},{label:"Clock",value:"clock"},{label:"Heart",value:"heart"},{label:"Lightbulb",value:"lightbulb"},{label:"Trophy",value:"awards"},{label:"Thumbs Up",value:"thumbs-up"},{label:"Location",value:"location"},{label:"Phone",value:"phone"},{label:"Email",value:"email"},{label:"Cart",value:"cart"},{label:"Money",value:"money"},{label:"Chart",value:"chart-line"},{label:"Groups",value:"groups"},{label:"Download",value:"download"},{label:"Upload",value:"upload"},{label:"Search",value:"search"}],a=JSON.parse('{"UU":"create-block/steps-timeline"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{sectionTitle:i,sectionDescription:c,showSectionHeader:r,steps:d,layoutOrientation:b,layoutAlignment:h,stepsPerRow:u,connectorStyle:p,connectorColor:g,connectorThickness:C,showConnectors:m,animateConnectors:x,enableAnimations:v,animationType:k,scrollTrigger:j,scrollOffset:_,backgroundColor:S,sectionTextColor:f,stepBackgroundColor:y,stepTextColor:T,iconColor:w,numberColor:N,numberBackgroundColor:O,spacing:R,borderRadius:B,mobileLayout:P,hideConnectorsOnMobile:A}=e,z=(0,l.useBlockProps)({className:`steps-timeline-block layout-${b} align-${h} spacing-${R}`,style:{backgroundColor:S,color:f,padding:"compact"===R?"2rem":"loose"===R?"4rem":"3rem"}}),D=(e,o,l)=>{const n=[...d];n[e]={...n[e],[o]:l},a({steps:n})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.InspectorControls,{children:[(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Section Header","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Section Header","section-blocks"),checked:r,onChange:e=>a({showSectionHeader:e})}),r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Section Title","section-blocks"),value:i,onChange:e=>a({sectionTitle:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Section Description","section-blocks"),value:c,onChange:e=>a({sectionDescription:e})})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Orientation","section-blocks"),value:b,options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"},{label:"Zigzag",value:"zigzag"}],onChange:e=>a({layoutOrientation:e})}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Alignment","section-blocks"),value:h,options:[{label:"Center",value:"center"},{label:"Left",value:"left"},{label:"Right",value:"right"}],onChange:e=>a({layoutAlignment:e})}),"horizontal"===b&&(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Steps per Row","section-blocks"),value:u,onChange:e=>a({stepsPerRow:e}),min:2,max:4,step:1}),(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:R,options:[{label:"Compact",value:"compact"},{label:"Normal",value:"normal"},{label:"Loose",value:"loose"}],onChange:e=>a({spacing:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:B,onChange:e=>a({borderRadius:e}),min:0,max:50,step:1})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Connector Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Show Connectors","section-blocks"),checked:m,onChange:e=>a({showConnectors:e})}),m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Connector Style","section-blocks"),value:p,options:[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"Animated Line",value:"animated"}],onChange:e=>a({connectorStyle:e})}),(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Connector Thickness","section-blocks"),value:C,onChange:e=>a({connectorThickness:e}),min:1,max:10,step:1}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Connector Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:g,onChange:e=>a({connectorColor:e||"#007cba"})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Animate Connectors","section-blocks"),checked:x,onChange:e=>a({animateConnectors:e})})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Animation Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Enable Animations","section-blocks"),checked:v,onChange:e=>a({enableAnimations:e})}),v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Animation Type","section-blocks"),value:k,options:[{label:"Fade In",value:"fade"},{label:"Slide Up",value:"slideUp"},{label:"Slide Left",value:"slideLeft"},{label:"Slide Right",value:"slideRight"},{label:"Zoom In",value:"zoom"},{label:"Bounce In",value:"bounce"}],onChange:e=>a({animationType:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Scroll Trigger","section-blocks"),checked:j,onChange:e=>a({scrollTrigger:e})}),j&&(0,t.jsx)(n.RangeControl,{label:(0,o.__)("Scroll Offset (px)","section-blocks"),value:_,onChange:e=>a({scrollOffset:e}),min:0,max:500,step:10})]})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Section Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:S,onChange:e=>a({backgroundColor:e||"#ffffff"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Section Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:f,onChange:e=>a({sectionTextColor:e||"#333333"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Step Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:y,onChange:e=>a({stepBackgroundColor:e||"#f8f9fa"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Step Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:T,onChange:e=>a({stepTextColor:e||"#333333"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Icon Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:w,onChange:e=>a({iconColor:e||"#007cba"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Number Background Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:O,onChange:e=>a({numberBackgroundColor:e||"#007cba"})}),(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:(0,o.__)("Number Text Color","section-blocks")})}),(0,t.jsx)(l.ColorPalette,{value:N,onChange:e=>a({numberColor:e||"#ffffff"})})]}),(0,t.jsxs)(n.PanelBody,{title:(0,o.__)("Responsive Settings","section-blocks"),initialOpen:!1,children:[(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Mobile Layout","section-blocks"),value:P,options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"}],onChange:e=>a({mobileLayout:e})}),(0,t.jsx)(n.ToggleControl,{label:(0,o.__)("Hide Connectors on Mobile","section-blocks"),checked:A,onChange:e=>a({hideConnectorsOnMobile:e})})]})]}),(0,t.jsxs)("div",{...z,children:[r&&(0,t.jsxs)("div",{className:"steps-timeline-header",children:[(0,t.jsx)(l.RichText,{tagName:"h2",className:"section-title",value:i,onChange:e=>a({sectionTitle:e}),placeholder:(0,o.__)("Section title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"section-description",value:c,onChange:e=>a({sectionDescription:e}),placeholder:(0,o.__)("Section description...","section-blocks")})]}),(0,t.jsx)("div",{className:"steps-timeline-container "+("horizontal"===b?`steps-per-row-${u}`:""),children:d.map(((e,i)=>(0,t.jsxs)("div",{className:`step-item step-${i+1}`,children:[(0,t.jsxs)("div",{className:"step-controls",children:[(0,t.jsxs)("div",{className:"step-reorder",children:[(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(0===e)return;const o=[...d];[o[e-1],o[e]]=[o[e],o[e-1]];const l=o.map(((e,o)=>({...e,stepNumber:o+1})));a({steps:l})})(i),disabled:0===i,isSmall:!0,children:"↑"}),(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(e===d.length-1)return;const o=[...d];[o[e],o[e+1]]=[o[e+1],o[e]];const l=o.map(((e,o)=>({...e,stepNumber:o+1})));a({steps:l})})(i),disabled:i===d.length-1,isSmall:!0,children:"↓"})]}),(0,t.jsx)(n.Button,{onClick:()=>(e=>{if(d.length<=3)return;const o=d.filter(((o,l)=>l!==e)).map(((e,o)=>({...e,stepNumber:o+1})));a({steps:o})})(i),isDestructive:!0,isSmall:!0,disabled:d.length<=3,children:(0,o.__)("Remove","section-blocks")})]}),(0,t.jsxs)("div",{className:"step-content",style:{backgroundColor:e.backgroundColor||y,color:e.textColor||T,borderRadius:`${B}px`},children:[(0,t.jsxs)("div",{className:"step-number-icon",children:[(0,t.jsx)("div",{className:"step-number",style:{backgroundColor:O,color:N},children:e.stepNumber}),(0,t.jsx)("div",{className:"step-icon",style:{color:w},children:(0,t.jsx)(n.Dashicon,{icon:e.icon,size:"32"})})]}),(0,t.jsxs)("div",{className:"step-text",children:[(0,t.jsx)(l.RichText,{tagName:"h3",className:"step-title",value:e.title,onChange:e=>D(i,"title",e),placeholder:(0,o.__)("Step title...","section-blocks")}),(0,t.jsx)(l.RichText,{tagName:"p",className:"step-description",value:e.description,onChange:e=>D(i,"description",e),placeholder:(0,o.__)("Step description...","section-blocks")})]}),(0,t.jsx)("div",{className:"step-settings",children:(0,t.jsx)(n.SelectControl,{label:(0,o.__)("Icon","section-blocks"),value:e.icon,options:s,onChange:e=>D(i,"icon",e)})})]}),m&&i<d.length-1&&(0,t.jsx)("div",{className:`step-connector connector-${p}`,style:{borderColor:g,borderWidth:`${C}px`}})]},e.id)))}),(0,t.jsx)("div",{className:"steps-timeline-actions",children:(0,t.jsxs)(n.Button,{onClick:()=>{if(d.length>=6)return;const e={id:`step-${Date.now()}`,title:`Step ${d.length+1}`,description:"Describe this step in your process",icon:"admin-users",stepNumber:d.length+1,backgroundColor:y,textColor:T,showImage:!1,image:null,imageId:0};a({steps:[...d,e]})},isPrimary:!0,disabled:d.length>=6,children:[(0,o.__)("Add Step","section-blocks")," (",d.length,"/6)"]})})]})]})}})}},l={};function n(e){var t=l[e];if(void 0!==t)return t.exports;var s=l[e]={exports:{}};return o[e](s,s.exports,n),s.exports}n.m=o,e=[],n.O=(o,l,t,s)=>{if(!l){var a=1/0;for(d=0;d<e.length;d++){for(var[l,t,s]=e[d],i=!0,c=0;c<l.length;c++)(!1&s||a>=s)&&Object.keys(n.O).every((e=>n.O[e](l[c])))?l.splice(c--,1):(i=!1,s<a&&(a=s));if(i){e.splice(d--,1);var r=t();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[l,t,s]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={9465:0,5725:0};n.O.j=o=>0===e[o];var o=(o,l)=>{var t,s,[a,i,c]=l,r=0;if(a.some((o=>0!==e[o]))){for(t in i)n.o(i,t)&&(n.m[t]=i[t]);if(c)var d=c(n)}for(o&&o(l);r<a.length;r++)s=a[r],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var t=n.O(void 0,[5725],(()=>n(463)));t=n.O(t)})(); -
section-blocks/trunk/build/team-members/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' 44232aabc6eb6c5b0d18');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'a74935de0927c2a0af65'); -
section-blocks/trunk/build/team-members/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,l={910:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,a=window.ReactJSXRuntime,i="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxjaXJjbGUgY3g9IjEwMCIgY3k9IjgwIiByPSIzMCIgZmlsbD0iIzlDQTNBRiIvPgo8cGF0aCBkPSJNNTAgMTYwQzUwIDEzNy45MDkgNjcuOTA5IDEyMCA5MCAxMjBIMTEwQzEzMi4wOTEgMTIwIDE1MCAxMzcuOTA5IDE1MCAxNjBWMjAwSDUwVjE2MFoiIGZpbGw9IiM5Q0EzQUYiLz4KPC9zdmc+Cg==",c={linkedin:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),twitter:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})}),facebook:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),instagram:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}),email:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-.904.732-1.636 1.636-1.636h3.819l6.545 4.91 6.545-4.91h3.819A1.636 1.636 0 0 1 24 5.457z"})}),github:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})}),dribbble:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 24C5.385 24 0 18.615 0 12S5.385 0 12 0s12 5.385 12 12-5.385 12-12 12zm10.12-10.358c-.35-.11-3.17-.953-6.384-.438 1.34 3.684 1.887 6.684 1.992 7.308 2.3-1.555 3.936-4.02 4.395-6.87zm-6.115 7.808c-.153-.9-.75-4.032-2.19-7.77l-.066.02c-5.79 2.015-7.86 6.025-8.04 6.4 1.73 1.358 3.92 2.166 6.29 2.166 1.42 0 2.77-.29 4-.816zm-11.62-2.58c.232-.4 3.045-5.055 8.332-6.765.135-.045.27-.084.405-.12-.26-.585-.54-1.167-.832-1.74C7.17 11.775 2.206 11.71 1.756 11.7l-.004.312c0 2.633.998 5.037 2.634 6.855zm-2.42-8.955c.46.008 4.683.026 9.477-1.248-1.698-3.018-3.53-5.558-3.8-5.928-2.868 1.35-5.01 3.99-5.676 7.17zM9.6 2.052c.282.38 2.145 2.914 3.822 6 3.645-1.365 5.19-3.44 5.373-3.702-1.81-1.61-4.19-2.586-6.795-2.586-.825 0-1.63.1-2.4.285zm10.335 3.483c-.218.29-1.935 2.493-5.724 4.04.24.49.47.985.68 1.486.08.18.15.36.22.53 3.41-.43 6.8.26 7.14.33-.02-2.42-.88-4.64-2.31-6.38z"})}),website:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"})})},n=JSON.parse('{"UU":"create-block/team-members"}');(0,e.registerBlockType)(n.UU,{edit:function({attributes:e,setAttributes:n}){const{sectionTitle:t,sectionDescription:r,showSectionHeader:m,members:b,columns:d,layoutStyle:h,hoverEffect:g,imageEffect:v,socialIconStyle:u,backgroundColor:x,textColor:C,accentColor:_,cardBackgroundColor:p,spacing:k,alignment:j,showBio:w,showSocialLinks:f}=e,S=(0,o.useBlockProps)({className:`team-members-block columns-${d} layout-${h} hover-${g} image-${v} social-${u} spacing-${k} align-${j}`,style:{backgroundColor:x,color:C,padding:"compact"===k?"2rem":"loose"===k?"4rem":"3rem"}}),M=(e,l,o)=>{const s=[...b];if(l.includes(".")){const[a,i]=l.split(".");s[e]={...s[e],[a]:{...s[e][a],[i]:o}}}else s[e]={...s[e],[l]:o};n({members:s})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.InspectorControls,{children:[(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Section Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Section Header","section-blocks"),checked:m,onChange:e=>n({showSectionHeader:e})}),m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.TextControl,{label:(0,l.__)("Section Title","section-blocks"),value:t,onChange:e=>n({sectionTitle:e})}),(0,a.jsx)(s.TextControl,{label:(0,l.__)("Section Description","section-blocks"),value:r,onChange:e=>n({sectionDescription:e})})]})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:d,onChange:e=>n({columns:e}),min:2,max:6}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Layout Style","section-blocks"),value:h,options:[{label:(0,l.__)("Card","section-blocks"),value:"card"},{label:(0,l.__)("Overlay","section-blocks"),value:"overlay"},{label:(0,l.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,l.__)("Professional","section-blocks"),value:"professional"}],onChange:e=>n({layoutStyle:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:g,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Lift","section-blocks"),value:"lift"},{label:(0,l.__)("Scale","section-blocks"),value:"scale"},{label:(0,l.__)("Flip","section-blocks"),value:"flip"},{label:(0,l.__)("Slide Up","section-blocks"),value:"slide-up"}],onChange:e=>n({hoverEffect:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Image Effect","section-blocks"),value:v,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Grayscale to Color","section-blocks"),value:"grayscale"},{label:(0,l.__)("Zoom","section-blocks"),value:"zoom"},{label:(0,l.__)("Blur to Sharp","section-blocks"),value:"blur"}],onChange:e=>n({imageEffect:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:k,options:[{label:(0,l.__)("Compact","section-blocks"),value:"compact"},{label:(0,l.__)("Normal","section-blocks"),value:"normal"},{label:(0,l.__)("Loose","section-blocks"),value:"loose"}],onChange:e=>n({spacing:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Alignment","section-blocks"),value:j,options:[{label:(0,l.__)("Left","section-blocks"),value:"left"},{label:(0,l.__)("Center","section-blocks"),value:"center"},{label:(0,l.__)("Right","section-blocks"),value:"right"}],onChange:e=>n({alignment:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Display Options","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Bio","section-blocks"),checked:w,onChange:e=>n({showBio:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Social Links","section-blocks"),checked:f,onChange:e=>n({showSocialLinks:e})}),f&&(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Social Icon Style","section-blocks"),value:u,options:[{label:(0,l.__)("Rounded","section-blocks"),value:"rounded"},{label:(0,l.__)("Square","section-blocks"),value:"square"},{label:(0,l.__)("Minimal","section-blocks"),value:"minimal"}],onChange:e=>n({socialIconStyle:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Background Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:x,onChange:e=>n({backgroundColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Text Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:C,onChange:e=>n({textColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Accent Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:_,onChange:e=>n({accentColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Card Background Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:p,onChange:e=>n({cardBackgroundColor:e})})})]})]}),(0,a.jsxs)("div",{...S,children:[m&&(0,a.jsxs)("div",{className:"team-section-header",children:[(0,a.jsx)(o.RichText,{tagName:"h2",className:"team-section-title",value:t,onChange:e=>n({sectionTitle:e}),placeholder:(0,l.__)("Enter section title...","section-blocks")}),(0,a.jsx)(o.RichText,{tagName:"p",className:"team-section-description",value:r,onChange:e=>n({sectionDescription:e}),placeholder:(0,l.__)("Enter section description...","section-blocks")})]}),(0,a.jsx)("div",{className:"team-members-grid",children:b.map(((e,t)=>(0,a.jsxs)("div",{className:"team-member-card",style:{backgroundColor:p},children:[(0,a.jsx)("div",{className:"member-controls",children:(0,a.jsx)(s.Button,{onClick:()=>(e=>{const l=b.filter(((l,o)=>o!==e));n({members:l})})(t),className:"remove-member",label:(0,l.__)("Remove Member","section-blocks"),showTooltip:!0,children:(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})}),(0,a.jsxs)("div",{className:"member-image-container",children:[(0,a.jsx)(o.MediaUploadCheck,{children:(0,a.jsx)(o.MediaUpload,{onSelect:e=>{const l=[...b];l[t]={...l[t],image:{url:e.url,alt:e.alt||"",id:e.id},imageId:e.id},n({members:l})},allowedTypes:["image"],value:e.imageId||0,render:({open:l})=>(0,a.jsx)(s.Button,{className:e.image&&e.image.url!==i?"image-button":"upload-button",onClick:l,children:e.image&&e.image.url?(0,a.jsx)("img",{src:e.image.url,alt:e.image.alt||e.name}):(0,a.jsx)("img",{src:i,alt:"Default team member avatar"})})})}),e.image&&e.image.url!==i&&(0,a.jsx)("div",{className:"image-controls-overlay",children:(0,a.jsx)(s.Button,{onClick:()=>M(t,"image",{url:i,alt:"Default team member avatar",id:0}),className:"reset-image-button",isDestructive:!0,size:"small",showTooltip:!0,label:(0,l.__)("Reset to Default","section-blocks"),children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"})})})})]}),(0,a.jsxs)("div",{className:"member-content",children:[(0,a.jsx)(o.RichText,{tagName:"h3",className:"member-name",value:e.name,onChange:e=>M(t,"name",e),placeholder:(0,l.__)("Member Name","section-blocks")}),(0,a.jsx)(o.RichText,{tagName:"p",className:"member-position",value:e.position,onChange:e=>M(t,"position",e),placeholder:(0,l.__)("Position","section-blocks"),style:{color:_}}),w&&(0,a.jsx)(o.RichText,{tagName:"p",className:"member-bio",value:e.bio,onChange:e=>M(t,"bio",e),placeholder:(0,l.__)("Brief bio...","section-blocks"),maxLength:300}),f&&(0,a.jsx)("div",{className:"member-social-links",children:Object.keys(c).map((l=>(0,a.jsxs)("div",{className:"social-link-input",children:[(0,a.jsx)("label",{children:l.charAt(0).toUpperCase()+l.slice(1)}),(0,a.jsx)(s.TextControl,{value:e.socialLinks[l]||"",onChange:e=>M(t,`socialLinks.${l}`,e),placeholder:`${l} URL`})]},l)))})]})]},t)))}),(0,a.jsx)("div",{className:"team-actions",children:(0,a.jsx)(s.Button,{variant:"secondary",onClick:()=>{const e=[...b,{name:"New Team Member",position:"Position",bio:"Brief description about this team member.",image:{url:i,alt:"Default team member avatar",id:0},imageId:0,socialLinks:{linkedin:"",twitter:"",facebook:"",instagram:"",email:"",github:"",dribbble:"",website:""}}];n({members:e})},className:"add-member",children:(0,l.__)("Add Team Member","section-blocks")})})]})]})}})}},o={};function s(e){var a=o[e];if(void 0!==a)return a.exports;var i=o[e]={exports:{}};return l[e](i,i.exports,s),i.exports}s.m=l,e=[],s.O=(l,o,a,i)=>{if(!o){var c=1/0;for(m=0;m<e.length;m++){for(var[o,a,i]=e[m],n=!0,t=0;t<o.length;t++)(!1&i||c>=i)&&Object.keys(s.O).every((e=>s.O[e](o[t])))?o.splice(t--,1):(n=!1,i<c&&(c=i));if(n){e.splice(m--,1);var r=a();void 0!==r&&(l=r)}}return l}i=i||0;for(var m=e.length;m>0&&e[m-1][2]>i;m--)e[m]=e[m-1];e[m]=[o,a,i]},s.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={ 843:0,611:0};s.O.j=l=>0===e[l];var l=(l,o)=>{var a,i,[c,n,t]=o,r=0;if(c.some((l=>0!==e[l]))){for(a in n)s.o(n,a)&&(s.m[a]=n[a]);if(t)var m=t(s)}for(l&&l(o);r<c.length;r++)i=c[r],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return s.O(m)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var a=s.O(void 0,[611],(()=>s(910)));a=s.O(a)})();1 (()=>{"use strict";var e,l={910:()=>{const e=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,a=window.ReactJSXRuntime,i="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxjaXJjbGUgY3g9IjEwMCIgY3k9IjgwIiByPSIzMCIgZmlsbD0iIzlDQTNBRiIvPgo8cGF0aCBkPSJNNTAgMTYwQzUwIDEzNy45MDkgNjcuOTA5IDEyMCA5MCAxMjBIMTEwQzEzMi4wOTEgMTIwIDE1MCAxMzcuOTA5IDE1MCAxNjBWMjAwSDUwVjE2MFoiIGZpbGw9IiM5Q0EzQUYiLz4KPC9zdmc+Cg==",c={linkedin:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),twitter:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})}),facebook:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),instagram:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}),email:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-.904.732-1.636 1.636-1.636h3.819l6.545 4.91 6.545-4.91h3.819A1.636 1.636 0 0 1 24 5.457z"})}),github:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})}),dribbble:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 24C5.385 24 0 18.615 0 12S5.385 0 12 0s12 5.385 12 12-5.385 12-12 12zm10.12-10.358c-.35-.11-3.17-.953-6.384-.438 1.34 3.684 1.887 6.684 1.992 7.308 2.3-1.555 3.936-4.02 4.395-6.87zm-6.115 7.808c-.153-.9-.75-4.032-2.19-7.77l-.066.02c-5.79 2.015-7.86 6.025-8.04 6.4 1.73 1.358 3.92 2.166 6.29 2.166 1.42 0 2.77-.29 4-.816zm-11.62-2.58c.232-.4 3.045-5.055 8.332-6.765.135-.045.27-.084.405-.12-.26-.585-.54-1.167-.832-1.74C7.17 11.775 2.206 11.71 1.756 11.7l-.004.312c0 2.633.998 5.037 2.634 6.855zm-2.42-8.955c.46.008 4.683.026 9.477-1.248-1.698-3.018-3.53-5.558-3.8-5.928-2.868 1.35-5.01 3.99-5.676 7.17zM9.6 2.052c.282.38 2.145 2.914 3.822 6 3.645-1.365 5.19-3.44 5.373-3.702-1.81-1.61-4.19-2.586-6.795-2.586-.825 0-1.63.1-2.4.285zm10.335 3.483c-.218.29-1.935 2.493-5.724 4.04.24.49.47.985.68 1.486.08.18.15.36.22.53 3.41-.43 6.8.26 7.14.33-.02-2.42-.88-4.64-2.31-6.38z"})}),website:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"})})},n=JSON.parse('{"UU":"create-block/team-members"}');(0,e.registerBlockType)(n.UU,{edit:function({attributes:e,setAttributes:n}){const{sectionTitle:t,sectionDescription:r,showSectionHeader:m,members:b,columns:d,layoutStyle:h,hoverEffect:g,imageEffect:v,socialIconStyle:u,backgroundColor:x,textColor:C,accentColor:_,cardBackgroundColor:p,spacing:k,alignment:j,showBio:w,showSocialLinks:f}=e,S=(0,o.useBlockProps)({className:`team-members-block columns-${d} layout-${h} hover-${g} image-${v} social-${u} spacing-${k} align-${j}`,style:{backgroundColor:x,color:C,padding:"compact"===k?"2rem":"loose"===k?"4rem":"3rem"}}),M=(e,l,o)=>{const s=[...b];if(l.includes(".")){const[a,i]=l.split(".");s[e]={...s[e],[a]:{...s[e][a],[i]:o}}}else s[e]={...s[e],[l]:o};n({members:s})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.InspectorControls,{children:[(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Section Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Section Header","section-blocks"),checked:m,onChange:e=>n({showSectionHeader:e})}),m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.TextControl,{label:(0,l.__)("Section Title","section-blocks"),value:t,onChange:e=>n({sectionTitle:e})}),(0,a.jsx)(s.TextControl,{label:(0,l.__)("Section Description","section-blocks"),value:r,onChange:e=>n({sectionDescription:e})})]})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Layout Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.RangeControl,{label:(0,l.__)("Columns","section-blocks"),value:d,onChange:e=>n({columns:e}),min:2,max:6}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Layout Style","section-blocks"),value:h,options:[{label:(0,l.__)("Card","section-blocks"),value:"card"},{label:(0,l.__)("Overlay","section-blocks"),value:"overlay"},{label:(0,l.__)("Minimal","section-blocks"),value:"minimal"},{label:(0,l.__)("Professional","section-blocks"),value:"professional"}],onChange:e=>n({layoutStyle:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Hover Effect","section-blocks"),value:g,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Lift","section-blocks"),value:"lift"},{label:(0,l.__)("Scale","section-blocks"),value:"scale"},{label:(0,l.__)("Flip","section-blocks"),value:"flip"},{label:(0,l.__)("Slide Up","section-blocks"),value:"slide-up"}],onChange:e=>n({hoverEffect:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Image Effect","section-blocks"),value:v,options:[{label:(0,l.__)("None","section-blocks"),value:"none"},{label:(0,l.__)("Grayscale to Color","section-blocks"),value:"grayscale"},{label:(0,l.__)("Zoom","section-blocks"),value:"zoom"},{label:(0,l.__)("Blur to Sharp","section-blocks"),value:"blur"}],onChange:e=>n({imageEffect:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Spacing","section-blocks"),value:k,options:[{label:(0,l.__)("Compact","section-blocks"),value:"compact"},{label:(0,l.__)("Normal","section-blocks"),value:"normal"},{label:(0,l.__)("Loose","section-blocks"),value:"loose"}],onChange:e=>n({spacing:e})}),(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Alignment","section-blocks"),value:j,options:[{label:(0,l.__)("Left","section-blocks"),value:"left"},{label:(0,l.__)("Center","section-blocks"),value:"center"},{label:(0,l.__)("Right","section-blocks"),value:"right"}],onChange:e=>n({alignment:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Display Options","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Bio","section-blocks"),checked:w,onChange:e=>n({showBio:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,l.__)("Show Social Links","section-blocks"),checked:f,onChange:e=>n({showSocialLinks:e})}),f&&(0,a.jsx)(s.SelectControl,{label:(0,l.__)("Social Icon Style","section-blocks"),value:u,options:[{label:(0,l.__)("Rounded","section-blocks"),value:"rounded"},{label:(0,l.__)("Square","section-blocks"),value:"square"},{label:(0,l.__)("Minimal","section-blocks"),value:"minimal"}],onChange:e=>n({socialIconStyle:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,l.__)("Colors","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Background Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:x,onChange:e=>n({backgroundColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Text Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:C,onChange:e=>n({textColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Accent Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:_,onChange:e=>n({accentColor:e})})}),(0,a.jsx)(s.__experimentalSpacer,{marginY:3}),(0,a.jsx)(s.BaseControl,{label:(0,l.__)("Card Background Color","section-blocks"),children:(0,a.jsx)(s.ColorPicker,{color:p,onChange:e=>n({cardBackgroundColor:e})})})]})]}),(0,a.jsxs)("div",{...S,children:[m&&(0,a.jsxs)("div",{className:"team-section-header",children:[(0,a.jsx)(o.RichText,{tagName:"h2",className:"team-section-title",value:t,onChange:e=>n({sectionTitle:e}),placeholder:(0,l.__)("Enter section title...","section-blocks")}),(0,a.jsx)(o.RichText,{tagName:"p",className:"team-section-description",value:r,onChange:e=>n({sectionDescription:e}),placeholder:(0,l.__)("Enter section description...","section-blocks")})]}),(0,a.jsx)("div",{className:"team-members-grid",children:b.map(((e,t)=>(0,a.jsxs)("div",{className:"team-member-card",style:{backgroundColor:p},children:[(0,a.jsx)("div",{className:"member-controls",children:(0,a.jsx)(s.Button,{onClick:()=>(e=>{const l=b.filter(((l,o)=>o!==e));n({members:l})})(t),className:"remove-member",label:(0,l.__)("Remove Member","section-blocks"),showTooltip:!0,children:(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})}),(0,a.jsxs)("div",{className:"member-image-container",children:[(0,a.jsx)(o.MediaUploadCheck,{children:(0,a.jsx)(o.MediaUpload,{onSelect:e=>{const l=[...b];l[t]={...l[t],image:{url:e.url,alt:e.alt||"",id:e.id},imageId:e.id},n({members:l})},allowedTypes:["image"],value:e.imageId||0,render:({open:l})=>(0,a.jsx)(s.Button,{className:e.image&&e.image.url!==i?"image-button":"upload-button",onClick:l,children:e.image&&e.image.url?(0,a.jsx)("img",{src:e.image.url,alt:e.image.alt||e.name}):(0,a.jsx)("img",{src:i,alt:"Default team member avatar"})})})}),e.image&&e.image.url!==i&&(0,a.jsx)("div",{className:"image-controls-overlay",children:(0,a.jsx)(s.Button,{onClick:()=>M(t,"image",{url:i,alt:"Default team member avatar",id:0}),className:"reset-image-button",isDestructive:!0,size:"small",showTooltip:!0,label:(0,l.__)("Reset to Default","section-blocks"),children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"})})})})]}),(0,a.jsxs)("div",{className:"member-content",children:[(0,a.jsx)(o.RichText,{tagName:"h3",className:"member-name",value:e.name,onChange:e=>M(t,"name",e),placeholder:(0,l.__)("Member Name","section-blocks")}),(0,a.jsx)(o.RichText,{tagName:"p",className:"member-position",value:e.position,onChange:e=>M(t,"position",e),placeholder:(0,l.__)("Position","section-blocks"),style:{color:_}}),w&&(0,a.jsx)(o.RichText,{tagName:"p",className:"member-bio",value:e.bio,onChange:e=>M(t,"bio",e),placeholder:(0,l.__)("Brief bio...","section-blocks"),maxLength:300}),f&&(0,a.jsx)("div",{className:"member-social-links",children:Object.keys(c).map((l=>(0,a.jsxs)("div",{className:"social-link-input",children:[(0,a.jsx)("label",{children:l.charAt(0).toUpperCase()+l.slice(1)}),(0,a.jsx)(s.TextControl,{value:e.socialLinks[l]||"",onChange:e=>M(t,`socialLinks.${l}`,e),placeholder:`${l} URL`})]},l)))})]})]},t)))}),(0,a.jsx)("div",{className:"team-actions",children:(0,a.jsx)(s.Button,{variant:"secondary",onClick:()=>{const e=[...b,{name:"New Team Member",position:"Position",bio:"Brief description about this team member.",image:{url:i,alt:"Default team member avatar",id:0},imageId:0,socialLinks:{linkedin:"",twitter:"",facebook:"",instagram:"",email:"",github:"",dribbble:"",website:""}}];n({members:e})},className:"add-member",children:(0,l.__)("Add Team Member","section-blocks")})})]})]})}})}},o={};function s(e){var a=o[e];if(void 0!==a)return a.exports;var i=o[e]={exports:{}};return l[e](i,i.exports,s),i.exports}s.m=l,e=[],s.O=(l,o,a,i)=>{if(!o){var c=1/0;for(m=0;m<e.length;m++){for(var[o,a,i]=e[m],n=!0,t=0;t<o.length;t++)(!1&i||c>=i)&&Object.keys(s.O).every((e=>s.O[e](o[t])))?o.splice(t--,1):(n=!1,i<c&&(c=i));if(n){e.splice(m--,1);var r=a();void 0!==r&&(l=r)}}return l}i=i||0;for(var m=e.length;m>0&&e[m-1][2]>i;m--)e[m]=e[m-1];e[m]=[o,a,i]},s.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={7843:0,9611:0};s.O.j=l=>0===e[l];var l=(l,o)=>{var a,i,[c,n,t]=o,r=0;if(c.some((l=>0!==e[l]))){for(a in n)s.o(n,a)&&(s.m[a]=n[a]);if(t)var m=t(s)}for(l&&l(o);r<c.length;r++)i=c[r],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return s.O(m)},o=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];o.forEach(l.bind(null,0)),o.push=l.bind(null,o.push.bind(o))})();var a=s.O(void 0,[9611],(()=>s(910)));a=s.O(a)})(); -
section-blocks/trunk/build/testimonials-section/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' 85e4cd48461ae10310fd');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '145dce93898bbfa22f4f'); -
section-blocks/trunk/build/testimonials-section/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,o={365:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,s=window.wp.components,a=window.ReactJSXRuntime,n=JSON.parse('{"UU":"create-block/testimonials-section"}');(0,e.registerBlockType)(n.UU,{edit:function({attributes:e,setAttributes:n}){const{testimonials:t,layout:i,columns:c,showRatings:r,showImages:d,showTitles:m,backgroundColor:u,textColor:g,cardBackgroundColor:b,starColor:h,borderRadius:x,spacing:_,animationEffect:p,autoplay:k,autoplaySpeed:C}=e,v=(0,l.useBlockProps)({style:{backgroundColor:u,color:g}}),j=(e,o,l)=>{const s=[...t];s[e]={...s[e],[o]:l},n({testimonials:s})},y=e=>{const o=[];for(let l=1;l<=5;l++)o.push((0,a.jsx)("span",{className:"star "+(l<=e?"filled":"empty"),style:{color:l<=e?h:"#ddd"},children:"★"},l));return o};return(0,a.jsxs)("div",{...v,children:[(0,a.jsxs)(l.InspectorControls,{children:[(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Layout","section-blocks"),value:i,options:[{label:(0,o.__)("Grid","section-blocks"),value:"grid"},{label:(0,o.__)("Carousel","section-blocks"),value:"carousel"}],onChange:e=>n({layout:e})}),"grid"===i&&(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Columns","section-blocks"),value:c,onChange:e=>n({columns:e}),min:1,max:4}),(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:_,options:[{label:(0,o.__)("Compact","section-blocks"),value:"compact"},{label:(0,o.__)("Normal","section-blocks"),value:"normal"},{label:(0,o.__)("Spacious","section-blocks"),value:"spacious"}],onChange:e=>n({spacing:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Display Options","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Ratings","section-blocks"),checked:r,onChange:e=>n({showRatings:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Images","section-blocks"),checked:d,onChange:e=>n({showImages:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Titles","section-blocks"),checked:m,onChange:e=>n({showTitles:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Background Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:u,onChange:e=>n({backgroundColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Text Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:g,onChange:e=>n({textColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Card Background Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:b,onChange:e=>n({cardBackgroundColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Star Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:h,onChange:e=>n({starColor:e})})]}),(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:x,onChange:e=>n({borderRadius:e}),min:0,max:50})]}),"carousel"===i&&(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Carousel Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Animation Effect","section-blocks"),value:p,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade","section-blocks"),value:"fade"},{label:(0,o.__)("Slide","section-blocks"),value:"slide"},{label:(0,o.__)("Zoom","section-blocks"),value:"zoom"}],onChange:e=>n({animationEffect:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Autoplay","section-blocks"),checked:k,onChange:e=>n({autoplay:e})}),k&&(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Autoplay Speed (ms)","section-blocks"),value:C,onChange:e=>n({autoplaySpeed:e}),min:1e3,max:1e4,step:500})]})]}),(0,a.jsx)("div",{className:`testimonials-section layout-${i} ${(()=>{switch(_){case"compact":return"spacing-compact";case"spacious":return"spacing-spacious";default:return"spacing-normal"}})()}`,children:(0,a.jsxs)("div",{className:"testimonials-container",children:[(0,a.jsx)("div",{className:"testimonials-grid "+("grid"===i?`columns-${c}`:""),style:"grid"===i?{"--sb-cols":c,"--sb-cols-tablet":c>=4?3:c,"--sb-cols-mobile":Math.min(c,2)}:{},children:t.map(((e,i)=>(0,a.jsxs)("div",{className:"testimonial-card",style:{backgroundColor:b,borderRadius:`${x}px`},children:[(0,a.jsxs)("div",{className:"testimonial-content",children:[d&&(0,a.jsxs)("div",{className:"testimonial-image",children:[(0,a.jsx)(l.MediaUploadCheck,{children:(0,a.jsx)(l.MediaUpload,{onSelect:e=>{const o=t.map(((o,l)=>l===i?{...o,image:{url:e.url,alt:e.alt||""},imageId:e.id}:o));n({testimonials:o})},allowedTypes:["image"],value:e.imageId,render:({open:l})=>(0,a.jsx)(s.Button,{className:e.image?"image-button has-image":"image-button",onClick:l,children:e.image?(0,a.jsx)("img",{src:e.image.url,alt:e.image.alt||e.name}):(0,o.__)("Add Image","section-blocks")})})}),e.image&&(0,a.jsx)(s.Button,{className:"remove-image",onClick:()=>{j(i,"image",null),j(i,"imageId",0)},isDestructive:!0,isSmall:!0,children:(0,o.__)("Remove","section-blocks")})]}),(0,a.jsx)("div",{className:"testimonial-text",children:(0,a.jsx)(s.TextareaControl,{placeholder:(0,o.__)("Testimonial text...","section-blocks"),value:e.text,onChange:e=>j(i,"text",e)})}),r&&(0,a.jsxs)("div",{className:"testimonial-rating",children:[(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Rating","section-blocks"),value:e.rating,onChange:e=>j(i,"rating",e),min:1,max:5}),(0,a.jsx)("div",{className:"stars",children:y(e.rating)})]}),(0,a.jsxs)("div",{className:"testimonial-author",children:[(0,a.jsx)(s.TextControl,{placeholder:(0,o.__)("Client name...","section-blocks"),value:e.name,onChange:e=>j(i,"name",e),className:"author-name"}),m&&(0,a.jsx)(s.TextControl,{placeholder:(0,o.__)("Title/Company...","section-blocks"),value:e.title,onChange:e=>j(i,"title",e),className:"author-title"})]})]}),(0,a.jsx)("div",{className:"testimonial-controls",children:(0,a.jsx)(s.Button,{onClick:()=>(e=>{const o=t.filter(((o,l)=>l!==e));n({testimonials:o})})(i),isDestructive:!0,isSmall:!0,children:(0,o.__)("Remove Testimonial","section-blocks")})})]},i)))}),(0,a.jsx)("div",{className:"add-testimonial",children:(0,a.jsx)(s.Button,{onClick:()=>{const e=[...t,{name:"New Customer",title:"Happy Client",text:"Add your testimonial text here.",rating:5,image:null,imageId:0}];n({testimonials:e})},isPrimary:!0,children:(0,o.__)("Add Testimonial","section-blocks")})})]})})]})}})}},l={};function s(e){var a=l[e];if(void 0!==a)return a.exports;var n=l[e]={exports:{}};return o[e](n,n.exports,s),n.exports}s.m=o,e=[],s.O=(o,l,a,n)=>{if(!l){var t=1/0;for(d=0;d<e.length;d++){for(var[l,a,n]=e[d],i=!0,c=0;c<l.length;c++)(!1&n||t>=n)&&Object.keys(s.O).every((e=>s.O[e](l[c])))?l.splice(c--,1):(i=!1,n<t&&(t=n));if(i){e.splice(d--,1);var r=a();void 0!==r&&(o=r)}}return o}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[l,a,n]},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={ 880:0,512:0};s.O.j=o=>0===e[o];var o=(o,l)=>{var a,n,[t,i,c]=l,r=0;if(t.some((o=>0!==e[o]))){for(a in i)s.o(i,a)&&(s.m[a]=i[a]);if(c)var d=c(s)}for(o&&o(l);r<t.length;r++)n=t[r],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return s.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var a=s.O(void 0,[512],(()=>s(365)));a=s.O(a)})();1 (()=>{"use strict";var e,o={365:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,s=window.wp.components,a=window.ReactJSXRuntime,n=JSON.parse('{"UU":"create-block/testimonials-section"}');(0,e.registerBlockType)(n.UU,{edit:function({attributes:e,setAttributes:n}){const{testimonials:t,layout:i,columns:c,showRatings:r,showImages:d,showTitles:m,backgroundColor:u,textColor:g,cardBackgroundColor:b,starColor:h,borderRadius:x,spacing:_,animationEffect:p,autoplay:k,autoplaySpeed:C}=e,v=(0,l.useBlockProps)({style:{backgroundColor:u,color:g}}),j=(e,o,l)=>{const s=[...t];s[e]={...s[e],[o]:l},n({testimonials:s})},y=e=>{const o=[];for(let l=1;l<=5;l++)o.push((0,a.jsx)("span",{className:"star "+(l<=e?"filled":"empty"),style:{color:l<=e?h:"#ddd"},children:"★"},l));return o};return(0,a.jsxs)("div",{...v,children:[(0,a.jsxs)(l.InspectorControls,{children:[(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!0,children:[(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Layout","section-blocks"),value:i,options:[{label:(0,o.__)("Grid","section-blocks"),value:"grid"},{label:(0,o.__)("Carousel","section-blocks"),value:"carousel"}],onChange:e=>n({layout:e})}),"grid"===i&&(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Columns","section-blocks"),value:c,onChange:e=>n({columns:e}),min:1,max:4}),(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:_,options:[{label:(0,o.__)("Compact","section-blocks"),value:"compact"},{label:(0,o.__)("Normal","section-blocks"),value:"normal"},{label:(0,o.__)("Spacious","section-blocks"),value:"spacious"}],onChange:e=>n({spacing:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Display Options","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Ratings","section-blocks"),checked:r,onChange:e=>n({showRatings:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Images","section-blocks"),checked:d,onChange:e=>n({showImages:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Show Titles","section-blocks"),checked:m,onChange:e=>n({showTitles:e})})]}),(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Background Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:u,onChange:e=>n({backgroundColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Text Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:g,onChange:e=>n({textColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Card Background Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:b,onChange:e=>n({cardBackgroundColor:e})})]}),(0,a.jsxs)("div",{className:"color-control",children:[(0,a.jsx)("label",{children:(0,o.__)("Star Color","section-blocks")}),(0,a.jsx)(s.ColorPicker,{color:h,onChange:e=>n({starColor:e})})]}),(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:x,onChange:e=>n({borderRadius:e}),min:0,max:50})]}),"carousel"===i&&(0,a.jsxs)(s.PanelBody,{title:(0,o.__)("Carousel Settings","section-blocks"),initialOpen:!1,children:[(0,a.jsx)(s.SelectControl,{label:(0,o.__)("Animation Effect","section-blocks"),value:p,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade","section-blocks"),value:"fade"},{label:(0,o.__)("Slide","section-blocks"),value:"slide"},{label:(0,o.__)("Zoom","section-blocks"),value:"zoom"}],onChange:e=>n({animationEffect:e})}),(0,a.jsx)(s.ToggleControl,{label:(0,o.__)("Autoplay","section-blocks"),checked:k,onChange:e=>n({autoplay:e})}),k&&(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Autoplay Speed (ms)","section-blocks"),value:C,onChange:e=>n({autoplaySpeed:e}),min:1e3,max:1e4,step:500})]})]}),(0,a.jsx)("div",{className:`testimonials-section layout-${i} ${(()=>{switch(_){case"compact":return"spacing-compact";case"spacious":return"spacing-spacious";default:return"spacing-normal"}})()}`,children:(0,a.jsxs)("div",{className:"testimonials-container",children:[(0,a.jsx)("div",{className:"testimonials-grid "+("grid"===i?`columns-${c}`:""),style:"grid"===i?{"--sb-cols":c,"--sb-cols-tablet":c>=4?3:c,"--sb-cols-mobile":Math.min(c,2)}:{},children:t.map(((e,i)=>(0,a.jsxs)("div",{className:"testimonial-card",style:{backgroundColor:b,borderRadius:`${x}px`},children:[(0,a.jsxs)("div",{className:"testimonial-content",children:[d&&(0,a.jsxs)("div",{className:"testimonial-image",children:[(0,a.jsx)(l.MediaUploadCheck,{children:(0,a.jsx)(l.MediaUpload,{onSelect:e=>{const o=t.map(((o,l)=>l===i?{...o,image:{url:e.url,alt:e.alt||""},imageId:e.id}:o));n({testimonials:o})},allowedTypes:["image"],value:e.imageId,render:({open:l})=>(0,a.jsx)(s.Button,{className:e.image?"image-button has-image":"image-button",onClick:l,children:e.image?(0,a.jsx)("img",{src:e.image.url,alt:e.image.alt||e.name}):(0,o.__)("Add Image","section-blocks")})})}),e.image&&(0,a.jsx)(s.Button,{className:"remove-image",onClick:()=>{j(i,"image",null),j(i,"imageId",0)},isDestructive:!0,isSmall:!0,children:(0,o.__)("Remove","section-blocks")})]}),(0,a.jsx)("div",{className:"testimonial-text",children:(0,a.jsx)(s.TextareaControl,{placeholder:(0,o.__)("Testimonial text...","section-blocks"),value:e.text,onChange:e=>j(i,"text",e)})}),r&&(0,a.jsxs)("div",{className:"testimonial-rating",children:[(0,a.jsx)(s.RangeControl,{label:(0,o.__)("Rating","section-blocks"),value:e.rating,onChange:e=>j(i,"rating",e),min:1,max:5}),(0,a.jsx)("div",{className:"stars",children:y(e.rating)})]}),(0,a.jsxs)("div",{className:"testimonial-author",children:[(0,a.jsx)(s.TextControl,{placeholder:(0,o.__)("Client name...","section-blocks"),value:e.name,onChange:e=>j(i,"name",e),className:"author-name"}),m&&(0,a.jsx)(s.TextControl,{placeholder:(0,o.__)("Title/Company...","section-blocks"),value:e.title,onChange:e=>j(i,"title",e),className:"author-title"})]})]}),(0,a.jsx)("div",{className:"testimonial-controls",children:(0,a.jsx)(s.Button,{onClick:()=>(e=>{const o=t.filter(((o,l)=>l!==e));n({testimonials:o})})(i),isDestructive:!0,isSmall:!0,children:(0,o.__)("Remove Testimonial","section-blocks")})})]},i)))}),(0,a.jsx)("div",{className:"add-testimonial",children:(0,a.jsx)(s.Button,{onClick:()=>{const e=[...t,{name:"New Customer",title:"Happy Client",text:"Add your testimonial text here.",rating:5,image:null,imageId:0}];n({testimonials:e})},isPrimary:!0,children:(0,o.__)("Add Testimonial","section-blocks")})})]})})]})}})}},l={};function s(e){var a=l[e];if(void 0!==a)return a.exports;var n=l[e]={exports:{}};return o[e](n,n.exports,s),n.exports}s.m=o,e=[],s.O=(o,l,a,n)=>{if(!l){var t=1/0;for(d=0;d<e.length;d++){for(var[l,a,n]=e[d],i=!0,c=0;c<l.length;c++)(!1&n||t>=n)&&Object.keys(s.O).every((e=>s.O[e](l[c])))?l.splice(c--,1):(i=!1,n<t&&(t=n));if(i){e.splice(d--,1);var r=a();void 0!==r&&(o=r)}}return o}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[l,a,n]},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={6880:0,7512:0};s.O.j=o=>0===e[o];var o=(o,l)=>{var a,n,[t,i,c]=l,r=0;if(t.some((o=>0!==e[o]))){for(a in i)s.o(i,a)&&(s.m[a]=i[a]);if(c)var d=c(s)}for(o&&o(l);r<t.length;r++)n=t[r],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return s.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var a=s.O(void 0,[7512],(()=>s(365)));a=s.O(a)})(); -
section-blocks/trunk/build/video-cta-section/index.asset.php
r3665834 r3750877 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' e6a1fce9d4cbac319cf5');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'a8377fa78a037e86d624'); -
section-blocks/trunk/build/video-cta-section/index.js
r3665834 r3750877 1 (()=>{"use strict";var e,o={351:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,t=window.wp.components,n=window.ReactJSXRuntime,s=JSON.parse('{"UU":"create-block/video-cta-section"}');(0,e.registerBlockType)(s.UU,{edit:function({attributes:e,setAttributes:s}){const{heading:a,subheading:i,description:c,videoType:r,videoUrl:d,videoId:u,videoAutoplay:b,videoMuted:_,videoLoop:h,videoControls:p,videoLazyLoad:v,videoPoster:g,videoPosterId:x,videoAltText:k,videoCaption:m,layout:C,primaryButtonText:j,primaryButtonUrl:y,primaryButtonStyle:B,primaryButtonAction:S,primaryButtonTarget:N,secondaryButtonText:T,secondaryButtonUrl:f,secondaryButtonStyle:w,secondaryButtonAction:R,secondaryButtonTarget:P,showSecondaryButton:O,backgroundType:U,backgroundColor:L,gradientColors:$,backgroundImage:A,backgroundImageId:I,overlayColor:F,overlayOpacity:M,textColor:V,headingColor:E,primaryButtonColor:D,primaryButtonTextColor:z,secondaryButtonColor:G,secondaryButtonTextColor:J,textAlignment:W,contentAnimation:Y,spacing:q,borderRadius:H,customCSS:X}=e,Z=()=>{const e=((e,o)=>{if(!e)return"";if("youtube"===o){const o=e.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&\n?#]+)/);return o?o[1]:""}if("vimeo"===o){const o=e.match(/vimeo\.com\/(\d+)/);return o?o[1]:""}return""})(d,r);return d?"youtube"===r&&e?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsx)("iframe",{src:`https://www.youtube.com/embed/${e}?rel=0&showinfo=0&controls=${p?1:0}&mute=${_?1:0}&loop=${h?1:0}`,frameBorder:"0",allowFullScreen:!0,title:k||a})}):"vimeo"===r&&e?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsx)("iframe",{src:`https://player.vimeo.com/video/${e}?muted=${_?1:0}&loop=${h?1:0}&controls=${p?1:0}`,frameBorder:"0",allowFullScreen:!0,title:k||a})}):"self-hosted"===r&&d?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsxs)("video",{src:d,poster:g,controls:p,muted:_,loop:h,style:{width:"100%",height:"auto"},children:[m&&(0,n.jsx)("track",{kind:"captions",src:m}),(0,o.__)("Your browser does not support the video tag.","section-blocks")]})}):(0,n.jsx)("div",{className:"video-cta-video-placeholder",children:(0,n.jsxs)("div",{className:"video-placeholder-content",children:[(0,n.jsx)("span",{className:"dashicons dashicons-warning"}),(0,n.jsx)("p",{children:(0,o.__)("Invalid video URL","section-blocks")})]})}):(0,n.jsx)("div",{className:"video-cta-video-placeholder",children:(0,n.jsxs)("div",{className:"video-placeholder-content",children:[(0,n.jsx)("span",{className:"dashicons dashicons-video-alt3"}),(0,n.jsx)("p",{children:(0,o.__)("Add a video URL to see preview","section-blocks")})]})})},K=(0,l.useBlockProps)({className:`video-cta-section layout-${C} text-${W} spacing-${q} animation-${Y}`,style:{...(()=>{let e={};return"color"===U?e.backgroundColor=L:"gradient"===U?e.background=`linear-gradient(135deg, ${$.start} 0%, ${$.end} 100%)`:"image"===U&&A&&(e.backgroundImage=`url(${A})`,e.backgroundSize="cover",e.backgroundPosition="center",e.backgroundRepeat="no-repeat"),e})(),borderRadius:`${H}px`,position:"relative"}});return(0,n.jsxs)("div",{...K,children:[(0,n.jsxs)(l.InspectorControls,{children:[(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Video Settings","section-blocks"),initialOpen:!0,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Video Type","section-blocks"),value:r,options:[{label:(0,o.__)("YouTube","section-blocks"),value:"youtube"},{label:(0,o.__)("Vimeo","section-blocks"),value:"vimeo"},{label:(0,o.__)("Self-hosted","section-blocks"),value:"self-hosted"}],onChange:e=>s({videoType:e})}),"self-hosted"===r?(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({videoUrl:e.url,videoId:e.id})},allowedTypes:["video"],value:u,render:({open:e})=>(0,n.jsx)(t.Button,{className:u?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:u?(0,o.__)("Replace Video","section-blocks"):(0,o.__)("Upload Video","section-blocks")})})}):(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video URL","section-blocks"),value:d,onChange:e=>s({videoUrl:e}),placeholder:"youtube"===r?"https://www.youtube.com/watch?v=...":"https://vimeo.com/..."}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Autoplay","section-blocks"),checked:b,onChange:e=>s({videoAutoplay:e}),help:(0,o.__)("Note: Most browsers require muted videos for autoplay","section-blocks")}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Muted","section-blocks"),checked:_,onChange:e=>s({videoMuted:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Loop","section-blocks"),checked:h,onChange:e=>s({videoLoop:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Show Controls","section-blocks"),checked:p,onChange:e=>s({videoControls:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Lazy Load","section-blocks"),checked:v,onChange:e=>s({videoLazyLoad:e}),help:(0,o.__)("Improves page load performance","section-blocks")}),"self-hosted"===r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({videoPoster:e.url,videoPosterId:e.id})},allowedTypes:["image"],value:x,render:({open:e})=>(0,n.jsx)(t.Button,{className:x?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:x?(0,o.__)("Replace Poster","section-blocks"):(0,o.__)("Set Poster Image","section-blocks")})})})]}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video Alt Text","section-blocks"),value:k,onChange:e=>s({videoAltText:e}),help:(0,o.__)("Describe the video for accessibility","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video Caption URL","section-blocks"),value:m,onChange:e=>s({videoCaption:e}),help:(0,o.__)("URL to WebVTT caption file","section-blocks")})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:C,options:[{label:(0,o.__)("Full Width","section-blocks"),value:"full-width"},{label:(0,o.__)("Boxed","section-blocks"),value:"boxed"},{label:(0,o.__)("Split - Video Left","section-blocks"),value:"split-left"},{label:(0,o.__)("Split - Video Right","section-blocks"),value:"split-right"},{label:(0,o.__)("Centered","section-blocks"),value:"centered"}],onChange:e=>s({layout:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Text Alignment","section-blocks"),value:W,options:[{label:(0,o.__)("Left","section-blocks"),value:"left"},{label:(0,o.__)("Center","section-blocks"),value:"center"},{label:(0,o.__)("Right","section-blocks"),value:"right"}],onChange:e=>s({textAlignment:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:q,options:[{label:(0,o.__)("Small","section-blocks"),value:"small"},{label:(0,o.__)("Medium","section-blocks"),value:"medium"},{label:(0,o.__)("Large","section-blocks"),value:"large"},{label:(0,o.__)("Extra Large","section-blocks"),value:"extra-large"}],onChange:e=>s({spacing:e})}),(0,n.jsx)(t.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:H,onChange:e=>s({borderRadius:e}),min:0,max:50})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Button Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)("h4",{children:(0,o.__)("Primary Button","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Button URL","section-blocks"),value:y,onChange:e=>s({primaryButtonUrl:e}),placeholder:"https://"}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Style","section-blocks"),value:B,options:[{label:(0,o.__)("Filled","section-blocks"),value:"filled"},{label:(0,o.__)("Outline","section-blocks"),value:"outline"},{label:(0,o.__)("Ghost","section-blocks"),value:"ghost"}],onChange:e=>s({primaryButtonStyle:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Action","section-blocks"),value:S,options:[{label:(0,o.__)("Link","section-blocks"),value:"link"},{label:(0,o.__)("Scroll to Section","section-blocks"),value:"scroll"},{label:(0,o.__)("Open Popup","section-blocks"),value:"popup"}],onChange:e=>s({primaryButtonAction:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Open in New Tab","section-blocks"),checked:N,onChange:e=>s({primaryButtonTarget:e})}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Show Secondary Button","section-blocks"),checked:O,onChange:e=>s({showSecondaryButton:e})}),O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h4",{children:(0,o.__)("Secondary Button","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Button URL","section-blocks"),value:f,onChange:e=>s({secondaryButtonUrl:e}),placeholder:"https://"}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Style","section-blocks"),value:w,options:[{label:(0,o.__)("Filled","section-blocks"),value:"filled"},{label:(0,o.__)("Outline","section-blocks"),value:"outline"},{label:(0,o.__)("Ghost","section-blocks"),value:"ghost"}],onChange:e=>s({secondaryButtonStyle:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Action","section-blocks"),value:R,options:[{label:(0,o.__)("Link","section-blocks"),value:"link"},{label:(0,o.__)("Scroll to Section","section-blocks"),value:"scroll"},{label:(0,o.__)("Open Popup","section-blocks"),value:"popup"}],onChange:e=>s({secondaryButtonAction:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Open in New Tab","section-blocks"),checked:P,onChange:e=>s({secondaryButtonTarget:e})})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Background Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Background Type","section-blocks"),value:U,options:[{label:(0,o.__)("Solid Color","section-blocks"),value:"color"},{label:(0,o.__)("Gradient","section-blocks"),value:"gradient"},{label:(0,o.__)("Image","section-blocks"),value:"image"}],onChange:e=>s({backgroundType:e})}),"color"===U&&(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Background Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:L,onChange:e=>s({backgroundColor:e})})]}),"gradient"===U&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Gradient Start Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:$.start,onChange:e=>s({gradientColors:{...$,start:e}})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Gradient End Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:$.end,onChange:e=>s({gradientColors:{...$,end:e}})})]})]}),"image"===U&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({backgroundImage:e.url,backgroundImageId:e.id})},allowedTypes:["image"],value:I,render:({open:e})=>(0,n.jsx)(t.Button,{className:I?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:I?(0,o.__)("Replace Background","section-blocks"):(0,o.__)("Set Background Image","section-blocks")})})}),A&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Overlay Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:F,onChange:e=>s({overlayColor:e})})]}),(0,n.jsx)(t.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:M,onChange:e=>s({overlayOpacity:e}),min:0,max:1,step:.1})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Text Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:V,onChange:e=>s({textColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Heading Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:E,onChange:e=>s({headingColor:e})})]}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Primary Button Background","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:D,onChange:e=>s({primaryButtonColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Primary Button Text","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:z,onChange:e=>s({primaryButtonTextColor:e})})]}),O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Secondary Button Background","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:G,onChange:e=>s({secondaryButtonColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Secondary Button Text","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:J,onChange:e=>s({secondaryButtonTextColor:e})})]})]}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Content Animation","section-blocks"),value:Y,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade In","section-blocks"),value:"fade-in"},{label:(0,o.__)("Slide Up","section-blocks"),value:"slide-up"},{label:(0,o.__)("Slide Left","section-blocks"),value:"slide-left"},{label:(0,o.__)("Slide Right","section-blocks"),value:"slide-right"},{label:(0,o.__)("Zoom In","section-blocks"),value:"zoom-in"}],onChange:e=>s({contentAnimation:e})})]}),(0,n.jsx)(t.PanelBody,{title:(0,o.__)("Advanced Settings","section-blocks"),initialOpen:!1,children:(0,n.jsx)(t.TextControl,{label:(0,o.__)("Custom CSS Classes","section-blocks"),value:X,onChange:e=>s({customCSS:e}),help:(0,o.__)("Add custom CSS classes separated by spaces","section-blocks")})})]}),"image"===U&&A&&(0,n.jsx)("div",{className:"video-cta-overlay",style:{backgroundColor:F,opacity:M,position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:`${H}px`}}),(0,n.jsx)("div",{className:"video-cta-content",style:{position:"relative",zIndex:1},children:"split-left"===C||"split-right"===C?(0,n.jsxs)("div",{className:"video-cta-split-layout",children:[(0,n.jsx)("div",{className:"video-cta-video-column",children:Z()}),(0,n.jsxs)("div",{className:"video-cta-content-column",children:[(0,n.jsxs)("div",{className:"video-cta-text",style:{color:V},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"video-cta-heading",value:a,onChange:e=>s({heading:e}),placeholder:(0,o.__)("Enter your compelling headline...","section-blocks"),style:{color:E}}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-subheading",value:i,onChange:e=>s({subheading:e}),placeholder:(0,o.__)("Enter your engaging subheading...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-description",value:c,onChange:e=>s({description:e}),placeholder:(0,o.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"video-cta-buttons",children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-primary-button button-${B}`,value:j,onChange:e=>s({primaryButtonText:e}),placeholder:(0,o.__)("Primary button text...","section-blocks"),style:{backgroundColor:"filled"===B?D:"transparent",color:z,borderColor:D,borderRadius:`${H}px`}}),O&&(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-secondary-button button-${w}`,value:T,onChange:e=>s({secondaryButtonText:e}),placeholder:(0,o.__)("Secondary button text...","section-blocks"),style:{backgroundColor:"filled"===w?G:"transparent",color:J,borderColor:G,borderRadius:`${H}px`}})]})})]})]}):(0,n.jsx)("div",{className:"video-cta-single-layout",children:("full-width"===C||"boxed"===C||"centered"===C)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"video-cta-video-section",children:Z()}),(0,n.jsxs)("div",{className:"video-cta-content-section",children:[(0,n.jsxs)("div",{className:"video-cta-text",style:{color:V},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"video-cta-heading",value:a,onChange:e=>s({heading:e}),placeholder:(0,o.__)("Enter your compelling headline...","section-blocks"),style:{color:E}}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-subheading",value:i,onChange:e=>s({subheading:e}),placeholder:(0,o.__)("Enter your engaging subheading...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-description",value:c,onChange:e=>s({description:e}),placeholder:(0,o.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"video-cta-buttons",children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-primary-button button-${B}`,value:j,onChange:e=>s({primaryButtonText:e}),placeholder:(0,o.__)("Primary button text...","section-blocks"),style:{backgroundColor:"filled"===B?D:"transparent",color:z,borderColor:D,borderRadius:`${H}px`}}),O&&(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-secondary-button button-${w}`,value:T,onChange:e=>s({secondaryButtonText:e}),placeholder:(0,o.__)("Secondary button text...","section-blocks"),style:{backgroundColor:"filled"===w?G:"transparent",color:J,borderColor:G,borderRadius:`${H}px`}})]})})]})]})})})]})}})}},l={};function t(e){var n=l[e];if(void 0!==n)return n.exports;var s=l[e]={exports:{}};return o[e](s,s.exports,t),s.exports}t.m=o,e=[],t.O=(o,l,n,s)=>{if(!l){var a=1/0;for(d=0;d<e.length;d++){for(var[l,n,s]=e[d],i=!0,c=0;c<l.length;c++)(!1&s||a>=s)&&Object.keys(t.O).every((e=>t.O[e](l[c])))?l.splice(c--,1):(i=!1,s<a&&(a=s));if(i){e.splice(d--,1);var r=n();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[l,n,s]},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={ 946:0,390:0};t.O.j=o=>0===e[o];var o=(o,l)=>{var n,s,[a,i,c]=l,r=0;if(a.some((o=>0!==e[o]))){for(n in i)t.o(i,n)&&(t.m[n]=i[n]);if(c)var d=c(t)}for(o&&o(l);r<a.length;r++)s=a[r],t.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return t.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var n=t.O(void 0,[390],(()=>t(351)));n=t.O(n)})();1 (()=>{"use strict";var e,o={351:()=>{const e=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,t=window.wp.components,n=window.ReactJSXRuntime,s=JSON.parse('{"UU":"create-block/video-cta-section"}');(0,e.registerBlockType)(s.UU,{edit:function({attributes:e,setAttributes:s}){const{heading:a,subheading:i,description:c,videoType:r,videoUrl:d,videoId:u,videoAutoplay:b,videoMuted:_,videoLoop:h,videoControls:p,videoLazyLoad:v,videoPoster:g,videoPosterId:x,videoAltText:k,videoCaption:m,layout:C,primaryButtonText:j,primaryButtonUrl:y,primaryButtonStyle:B,primaryButtonAction:S,primaryButtonTarget:N,secondaryButtonText:T,secondaryButtonUrl:f,secondaryButtonStyle:w,secondaryButtonAction:R,secondaryButtonTarget:P,showSecondaryButton:O,backgroundType:U,backgroundColor:L,gradientColors:$,backgroundImage:A,backgroundImageId:I,overlayColor:F,overlayOpacity:M,textColor:V,headingColor:E,primaryButtonColor:D,primaryButtonTextColor:z,secondaryButtonColor:G,secondaryButtonTextColor:J,textAlignment:W,contentAnimation:Y,spacing:q,borderRadius:H,customCSS:X}=e,Z=()=>{const e=((e,o)=>{if(!e)return"";if("youtube"===o){const o=e.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&\n?#]+)/);return o?o[1]:""}if("vimeo"===o){const o=e.match(/vimeo\.com\/(\d+)/);return o?o[1]:""}return""})(d,r);return d?"youtube"===r&&e?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsx)("iframe",{src:`https://www.youtube.com/embed/${e}?rel=0&showinfo=0&controls=${p?1:0}&mute=${_?1:0}&loop=${h?1:0}`,frameBorder:"0",allowFullScreen:!0,title:k||a})}):"vimeo"===r&&e?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsx)("iframe",{src:`https://player.vimeo.com/video/${e}?muted=${_?1:0}&loop=${h?1:0}&controls=${p?1:0}`,frameBorder:"0",allowFullScreen:!0,title:k||a})}):"self-hosted"===r&&d?(0,n.jsx)("div",{className:"video-cta-video-wrapper",children:(0,n.jsxs)("video",{src:d,poster:g,controls:p,muted:_,loop:h,style:{width:"100%",height:"auto"},children:[m&&(0,n.jsx)("track",{kind:"captions",src:m}),(0,o.__)("Your browser does not support the video tag.","section-blocks")]})}):(0,n.jsx)("div",{className:"video-cta-video-placeholder",children:(0,n.jsxs)("div",{className:"video-placeholder-content",children:[(0,n.jsx)("span",{className:"dashicons dashicons-warning"}),(0,n.jsx)("p",{children:(0,o.__)("Invalid video URL","section-blocks")})]})}):(0,n.jsx)("div",{className:"video-cta-video-placeholder",children:(0,n.jsxs)("div",{className:"video-placeholder-content",children:[(0,n.jsx)("span",{className:"dashicons dashicons-video-alt3"}),(0,n.jsx)("p",{children:(0,o.__)("Add a video URL to see preview","section-blocks")})]})})},K=(0,l.useBlockProps)({className:`video-cta-section layout-${C} text-${W} spacing-${q} animation-${Y}`,style:{...(()=>{let e={};return"color"===U?e.backgroundColor=L:"gradient"===U?e.background=`linear-gradient(135deg, ${$.start} 0%, ${$.end} 100%)`:"image"===U&&A&&(e.backgroundImage=`url(${A})`,e.backgroundSize="cover",e.backgroundPosition="center",e.backgroundRepeat="no-repeat"),e})(),borderRadius:`${H}px`,position:"relative"}});return(0,n.jsxs)("div",{...K,children:[(0,n.jsxs)(l.InspectorControls,{children:[(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Video Settings","section-blocks"),initialOpen:!0,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Video Type","section-blocks"),value:r,options:[{label:(0,o.__)("YouTube","section-blocks"),value:"youtube"},{label:(0,o.__)("Vimeo","section-blocks"),value:"vimeo"},{label:(0,o.__)("Self-hosted","section-blocks"),value:"self-hosted"}],onChange:e=>s({videoType:e})}),"self-hosted"===r?(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({videoUrl:e.url,videoId:e.id})},allowedTypes:["video"],value:u,render:({open:e})=>(0,n.jsx)(t.Button,{className:u?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:u?(0,o.__)("Replace Video","section-blocks"):(0,o.__)("Upload Video","section-blocks")})})}):(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video URL","section-blocks"),value:d,onChange:e=>s({videoUrl:e}),placeholder:"youtube"===r?"https://www.youtube.com/watch?v=...":"https://vimeo.com/..."}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Autoplay","section-blocks"),checked:b,onChange:e=>s({videoAutoplay:e}),help:(0,o.__)("Note: Most browsers require muted videos for autoplay","section-blocks")}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Muted","section-blocks"),checked:_,onChange:e=>s({videoMuted:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Loop","section-blocks"),checked:h,onChange:e=>s({videoLoop:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Show Controls","section-blocks"),checked:p,onChange:e=>s({videoControls:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Lazy Load","section-blocks"),checked:v,onChange:e=>s({videoLazyLoad:e}),help:(0,o.__)("Improves page load performance","section-blocks")}),"self-hosted"===r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({videoPoster:e.url,videoPosterId:e.id})},allowedTypes:["image"],value:x,render:({open:e})=>(0,n.jsx)(t.Button,{className:x?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:x?(0,o.__)("Replace Poster","section-blocks"):(0,o.__)("Set Poster Image","section-blocks")})})})]}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video Alt Text","section-blocks"),value:k,onChange:e=>s({videoAltText:e}),help:(0,o.__)("Describe the video for accessibility","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Video Caption URL","section-blocks"),value:m,onChange:e=>s({videoCaption:e}),help:(0,o.__)("URL to WebVTT caption file","section-blocks")})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Layout Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Layout Style","section-blocks"),value:C,options:[{label:(0,o.__)("Full Width","section-blocks"),value:"full-width"},{label:(0,o.__)("Boxed","section-blocks"),value:"boxed"},{label:(0,o.__)("Split - Video Left","section-blocks"),value:"split-left"},{label:(0,o.__)("Split - Video Right","section-blocks"),value:"split-right"},{label:(0,o.__)("Centered","section-blocks"),value:"centered"}],onChange:e=>s({layout:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Text Alignment","section-blocks"),value:W,options:[{label:(0,o.__)("Left","section-blocks"),value:"left"},{label:(0,o.__)("Center","section-blocks"),value:"center"},{label:(0,o.__)("Right","section-blocks"),value:"right"}],onChange:e=>s({textAlignment:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Spacing","section-blocks"),value:q,options:[{label:(0,o.__)("Small","section-blocks"),value:"small"},{label:(0,o.__)("Medium","section-blocks"),value:"medium"},{label:(0,o.__)("Large","section-blocks"),value:"large"},{label:(0,o.__)("Extra Large","section-blocks"),value:"extra-large"}],onChange:e=>s({spacing:e})}),(0,n.jsx)(t.RangeControl,{label:(0,o.__)("Border Radius","section-blocks"),value:H,onChange:e=>s({borderRadius:e}),min:0,max:50})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Button Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)("h4",{children:(0,o.__)("Primary Button","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Button URL","section-blocks"),value:y,onChange:e=>s({primaryButtonUrl:e}),placeholder:"https://"}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Style","section-blocks"),value:B,options:[{label:(0,o.__)("Filled","section-blocks"),value:"filled"},{label:(0,o.__)("Outline","section-blocks"),value:"outline"},{label:(0,o.__)("Ghost","section-blocks"),value:"ghost"}],onChange:e=>s({primaryButtonStyle:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Action","section-blocks"),value:S,options:[{label:(0,o.__)("Link","section-blocks"),value:"link"},{label:(0,o.__)("Scroll to Section","section-blocks"),value:"scroll"},{label:(0,o.__)("Open Popup","section-blocks"),value:"popup"}],onChange:e=>s({primaryButtonAction:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Open in New Tab","section-blocks"),checked:N,onChange:e=>s({primaryButtonTarget:e})}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Show Secondary Button","section-blocks"),checked:O,onChange:e=>s({showSecondaryButton:e})}),O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h4",{children:(0,o.__)("Secondary Button","section-blocks")}),(0,n.jsx)(t.TextControl,{label:(0,o.__)("Button URL","section-blocks"),value:f,onChange:e=>s({secondaryButtonUrl:e}),placeholder:"https://"}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Style","section-blocks"),value:w,options:[{label:(0,o.__)("Filled","section-blocks"),value:"filled"},{label:(0,o.__)("Outline","section-blocks"),value:"outline"},{label:(0,o.__)("Ghost","section-blocks"),value:"ghost"}],onChange:e=>s({secondaryButtonStyle:e})}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Button Action","section-blocks"),value:R,options:[{label:(0,o.__)("Link","section-blocks"),value:"link"},{label:(0,o.__)("Scroll to Section","section-blocks"),value:"scroll"},{label:(0,o.__)("Open Popup","section-blocks"),value:"popup"}],onChange:e=>s({secondaryButtonAction:e})}),(0,n.jsx)(t.ToggleControl,{label:(0,o.__)("Open in New Tab","section-blocks"),checked:P,onChange:e=>s({secondaryButtonTarget:e})})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Background Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Background Type","section-blocks"),value:U,options:[{label:(0,o.__)("Solid Color","section-blocks"),value:"color"},{label:(0,o.__)("Gradient","section-blocks"),value:"gradient"},{label:(0,o.__)("Image","section-blocks"),value:"image"}],onChange:e=>s({backgroundType:e})}),"color"===U&&(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Background Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:L,onChange:e=>s({backgroundColor:e})})]}),"gradient"===U&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Gradient Start Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:$.start,onChange:e=>s({gradientColors:{...$,start:e}})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Gradient End Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:$.end,onChange:e=>s({gradientColors:{...$,end:e}})})]})]}),"image"===U&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.MediaUploadCheck,{children:(0,n.jsx)(l.MediaUpload,{onSelect:e=>{s({backgroundImage:e.url,backgroundImageId:e.id})},allowedTypes:["image"],value:I,render:({open:e})=>(0,n.jsx)(t.Button,{className:I?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:I?(0,o.__)("Replace Background","section-blocks"):(0,o.__)("Set Background Image","section-blocks")})})}),A&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Overlay Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:F,onChange:e=>s({overlayColor:e})})]}),(0,n.jsx)(t.RangeControl,{label:(0,o.__)("Overlay Opacity","section-blocks"),value:M,onChange:e=>s({overlayOpacity:e}),min:0,max:1,step:.1})]})]})]}),(0,n.jsxs)(t.PanelBody,{title:(0,o.__)("Style Settings","section-blocks"),initialOpen:!1,children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Text Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:V,onChange:e=>s({textColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Heading Color","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:E,onChange:e=>s({headingColor:e})})]}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Primary Button Background","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:D,onChange:e=>s({primaryButtonColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Primary Button Text","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:z,onChange:e=>s({primaryButtonTextColor:e})})]}),O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Secondary Button Background","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:G,onChange:e=>s({secondaryButtonColor:e})})]}),(0,n.jsxs)("div",{className:"color-control",children:[(0,n.jsx)("label",{children:(0,o.__)("Secondary Button Text","section-blocks")}),(0,n.jsx)(l.ColorPicker,{color:J,onChange:e=>s({secondaryButtonTextColor:e})})]})]}),(0,n.jsx)(t.__experimentalDivider,{}),(0,n.jsx)(t.SelectControl,{label:(0,o.__)("Content Animation","section-blocks"),value:Y,options:[{label:(0,o.__)("None","section-blocks"),value:"none"},{label:(0,o.__)("Fade In","section-blocks"),value:"fade-in"},{label:(0,o.__)("Slide Up","section-blocks"),value:"slide-up"},{label:(0,o.__)("Slide Left","section-blocks"),value:"slide-left"},{label:(0,o.__)("Slide Right","section-blocks"),value:"slide-right"},{label:(0,o.__)("Zoom In","section-blocks"),value:"zoom-in"}],onChange:e=>s({contentAnimation:e})})]}),(0,n.jsx)(t.PanelBody,{title:(0,o.__)("Advanced Settings","section-blocks"),initialOpen:!1,children:(0,n.jsx)(t.TextControl,{label:(0,o.__)("Custom CSS Classes","section-blocks"),value:X,onChange:e=>s({customCSS:e}),help:(0,o.__)("Add custom CSS classes separated by spaces","section-blocks")})})]}),"image"===U&&A&&(0,n.jsx)("div",{className:"video-cta-overlay",style:{backgroundColor:F,opacity:M,position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:`${H}px`}}),(0,n.jsx)("div",{className:"video-cta-content",style:{position:"relative",zIndex:1},children:"split-left"===C||"split-right"===C?(0,n.jsxs)("div",{className:"video-cta-split-layout",children:[(0,n.jsx)("div",{className:"video-cta-video-column",children:Z()}),(0,n.jsxs)("div",{className:"video-cta-content-column",children:[(0,n.jsxs)("div",{className:"video-cta-text",style:{color:V},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"video-cta-heading",value:a,onChange:e=>s({heading:e}),placeholder:(0,o.__)("Enter your compelling headline...","section-blocks"),style:{color:E}}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-subheading",value:i,onChange:e=>s({subheading:e}),placeholder:(0,o.__)("Enter your engaging subheading...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-description",value:c,onChange:e=>s({description:e}),placeholder:(0,o.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"video-cta-buttons",children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-primary-button button-${B}`,value:j,onChange:e=>s({primaryButtonText:e}),placeholder:(0,o.__)("Primary button text...","section-blocks"),style:{backgroundColor:"filled"===B?D:"transparent",color:z,borderColor:D,borderRadius:`${H}px`}}),O&&(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-secondary-button button-${w}`,value:T,onChange:e=>s({secondaryButtonText:e}),placeholder:(0,o.__)("Secondary button text...","section-blocks"),style:{backgroundColor:"filled"===w?G:"transparent",color:J,borderColor:G,borderRadius:`${H}px`}})]})})]})]}):(0,n.jsx)("div",{className:"video-cta-single-layout",children:("full-width"===C||"boxed"===C||"centered"===C)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"video-cta-video-section",children:Z()}),(0,n.jsxs)("div",{className:"video-cta-content-section",children:[(0,n.jsxs)("div",{className:"video-cta-text",style:{color:V},children:[(0,n.jsx)(l.RichText,{tagName:"h2",className:"video-cta-heading",value:a,onChange:e=>s({heading:e}),placeholder:(0,o.__)("Enter your compelling headline...","section-blocks"),style:{color:E}}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-subheading",value:i,onChange:e=>s({subheading:e}),placeholder:(0,o.__)("Enter your engaging subheading...","section-blocks")}),(0,n.jsx)(l.RichText,{tagName:"p",className:"video-cta-description",value:c,onChange:e=>s({description:e}),placeholder:(0,o.__)("Optional description...","section-blocks")})]}),(0,n.jsx)("div",{className:"video-cta-buttons",children:(0,n.jsxs)("div",{className:"button-group",children:[(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-primary-button button-${B}`,value:j,onChange:e=>s({primaryButtonText:e}),placeholder:(0,o.__)("Primary button text...","section-blocks"),style:{backgroundColor:"filled"===B?D:"transparent",color:z,borderColor:D,borderRadius:`${H}px`}}),O&&(0,n.jsx)(l.RichText,{tagName:"span",className:`video-cta-secondary-button button-${w}`,value:T,onChange:e=>s({secondaryButtonText:e}),placeholder:(0,o.__)("Secondary button text...","section-blocks"),style:{backgroundColor:"filled"===w?G:"transparent",color:J,borderColor:G,borderRadius:`${H}px`}})]})})]})]})})})]})}})}},l={};function t(e){var n=l[e];if(void 0!==n)return n.exports;var s=l[e]={exports:{}};return o[e](s,s.exports,t),s.exports}t.m=o,e=[],t.O=(o,l,n,s)=>{if(!l){var a=1/0;for(d=0;d<e.length;d++){for(var[l,n,s]=e[d],i=!0,c=0;c<l.length;c++)(!1&s||a>=s)&&Object.keys(t.O).every((e=>t.O[e](l[c])))?l.splice(c--,1):(i=!1,s<a&&(a=s));if(i){e.splice(d--,1);var r=n();void 0!==r&&(o=r)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[l,n,s]},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={3946:0,1390:0};t.O.j=o=>0===e[o];var o=(o,l)=>{var n,s,[a,i,c]=l,r=0;if(a.some((o=>0!==e[o]))){for(n in i)t.o(i,n)&&(t.m[n]=i[n]);if(c)var d=c(t)}for(o&&o(l);r<a.length;r++)s=a[r],t.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return t.O(d)},l=globalThis.webpackChunksection_blocks=globalThis.webpackChunksection_blocks||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var n=t.O(void 0,[1390],(()=>t(351)));n=t.O(n)})(); -
section-blocks/trunk/includes/helpers.php
r3749962 r3750877 162 162 $text = '<span class="sb-button__text">' . wp_kses_post( $button['text'] ) . '</span>'; 163 163 164 if ( empty( $button['url'] ) ) { 164 // No link, or a URL esc_url() rejects (e.g. javascript:): render a non-link button. 165 $url = isset( $button['url'] ) && is_string( $button['url'] ) ? esc_url( $button['url'] ) : ''; 166 if ( '' === $url ) { 165 167 return sprintf( '<span class="%s">%s%s</span>', esc_attr( $class ), $icon, $text ); 166 168 } … … 171 173 '<a class="%1$s" href="%2$s"%3$s>%4$s%5$s%6$s</a>', 172 174 esc_attr( $class ), 173 esc_url( $button['url'] ),175 $url, 174 176 $new_tab ? ' target="_blank" rel="noopener noreferrer"' : '', 175 177 $icon, -
section-blocks/trunk/includes/registry.php
r3749962 r3750877 60 60 } 61 61 62 /* 63 * New blocks are added here as they ship. Example for an element block: 64 * $blocks['icon-box'] = array( 'name' => 'section-blocks/icon-box', 'group' => 'element', 'since' => '1.3.0' ); 65 */ 62 // Element blocks, 1.3.0. 63 $elements = array( 64 'advanced-heading', 65 'icon-box', 66 'button-group', 67 'icon-list', 68 'image-box', 69 'star-rating', 70 'logo-cloud', 71 'callout', 72 'social-share', 73 'author-box', 74 'promo-banner', 75 'shape-divider', 76 ); 77 foreach ( $elements as $slug ) { 78 $blocks[ $slug ] = array( 79 'name' => 'section-blocks/' . $slug, 80 'group' => 'element', 81 'since' => '1.3.0', 82 ); 83 } 84 85 // New blocks are added above as they ship (see docs/DEVELOPMENT.md). 66 86 67 87 /** -
section-blocks/trunk/readme.txt
r3750774 r3750877 1 === Section Blocks – The Layout Builder for Gutenberg===1 === Section Blocks – Landing Page Sections for the Block Editor === 2 2 Contributors: nazmul111 3 Tags: gutenberg, blocks, hero, pricing, faq3 Tags: blocks, gutenberg blocks, landing page, pricing table, page builder 4 4 Requires at least: 6.6 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 2.97 Stable tag: 1.3.0 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 A comprehensive WordPress Gutenberg plugin with 13 professional section blocks for building modern websites.11 25 ready-made blocks for the block editor: hero, pricing, FAQ, testimonials, icon boxes, logo clouds and more. Free, lightweight, no account needed. 12 12 13 13 == Description == 14 14 15 Section Blocks is a powerful WordPress Gutenberg plugin that provides a complete collection of professional section blocks for building modern, responsive websites. Each block is carefully crafted with beautiful design, extensive customization options, and mobile-first responsive design. 16 17 **Key Features:** 18 19 * 13 professional section blocks 20 * Custom "Section Blocks" category in the Gutenberg editor 21 * Mobile-first responsive design 22 * Extensive color, typography, and spacing customization 23 * Hover effects and scroll-triggered animations 24 * SEO-friendly semantic HTML markup 25 * Accessibility-compliant ARIA labels and keyboard navigation 26 * Works with any properly coded WordPress theme 27 28 **Available Blocks:** 29 30 **Hero Section** — Eye-catching hero sections with background images, customizable headings, subtitles, and call-to-action buttons. Includes overlay controls and multiple text alignment options. 31 32 **Features Section** — Showcase product or service features in a 3–6 column responsive grid. Includes 16+ built-in WordPress Dashicons and optional side images. 33 34 **Services Section** — Display services with stylish cards. Choose from 60+ Dashicons or upload custom images. Supports 2–4 column layouts, hover effects, and CTA buttons. 35 36 **Steps Timeline** — Display multi-step processes with vertical, horizontal, and zigzag layouts. Supports 3–6 configurable steps, visual connectors, and scroll-triggered animations. 37 38 **Video CTA Section** — Engaging video call-to-action sections. Supports YouTube, Vimeo, and self-hosted videos with overlay controls and conversion-focused design. 39 40 **Testimonials Section** — Showcase customer testimonials with star ratings, client images, and names. Supports both carousel (with pause-on-hover) and grid layout options. 41 42 **Pricing Tables** — Create professional pricing comparison tables with multiple plans, feature lists, billing period toggle, and highlighted recommended plans. 43 44 **Team Members** — Showcase your team with Card, Overlay, Minimal, and Professional layout styles. Includes social media links and hover effects. 45 46 **FAQ / Accordion** — Toggle-style accordion sections with smooth animations and built-in schema markup for SEO benefits. 47 48 **Gallery Portfolio** — Display images in masonry or grid layouts with filterable categories and lightbox functionality. 49 50 **Newsletter Signup** — Email capture forms with Mailchimp integration, WordPress native storage, privacy consent support, and honeypot spam protection. Configure under Settings > Newsletter Settings. 51 52 **Call to Action** — High-converting CTA sections with solid, gradient, or image backgrounds, customizable text, and multiple button options. 53 54 **Advanced Container** — A layout container for any blocks, with boxed, wide, or full width, a max-width control, and color, gradient, or image backgrounds. 15 Build beautiful landing pages in the WordPress block editor — no page builder needed. Pick a section, change the text, publish. Every block follows your theme's colors and fonts and looks great on desktop and mobile. 16 17 https://youtu.be/IVlSIj16_A4 18 19 **Why Section Blocks** 20 21 * 25 blocks: 13 complete page sections + 12 design elements 22 * 100% free: no locked features, no account, no upsell nags in the editor 23 * Works with any theme and follows its colors, fonts and spacing 24 * Responsive and accessible: keyboard friendly, reduced-motion aware 25 * Lightweight: each block only loads its own CSS and JS on pages that use it 26 * Per-block Responsive Visibility (hide on desktop, tablet or mobile) and Custom CSS 27 * Built-in FAQ schema for search engines 28 29 = Sections = 30 31 **Hero Section** — Eye-catching hero with background image, overlay, heading, subtitle and call-to-action button. 32 33 **Features Section** — Showcase features in a 3–6 column responsive grid with icons and an optional side image. 34 35 **Services Section** — Service cards with icons or images, 2–4 columns, hover effects and buttons. 36 37 **Steps Timeline** — Multi-step processes in vertical, horizontal or zigzag layouts with connectors and scroll animations. 38 39 **Video CTA Section** — Video call to action for YouTube, Vimeo or self-hosted video. 40 41 **Testimonials Section** — Customer quotes with star ratings and photos, as a grid or carousel. 42 43 **Pricing Tables** — Plan comparison with feature lists, monthly/yearly toggle and a highlighted plan. 44 45 **Team Members** — Team grids in Card, Overlay, Minimal or Professional styles with social links. 46 47 **FAQ / Accordion** — Accessible accordion with search, categories and FAQ schema. 48 49 **Gallery Portfolio** — Masonry or grid galleries with filterable categories and a lightbox. 50 51 **Newsletter Signup** — Email capture with Mailchimp, a custom API or WordPress storage, privacy consent and spam protection. 52 53 **Call to Action** — Conversion sections with solid, gradient or image backgrounds and two buttons. 54 55 **Advanced Container** — A layout container for any blocks: boxed, wide or full width, with color, gradient or image backgrounds. 56 57 = Elements = 58 59 **Advanced Heading** — Heading with eyebrow text, subheading, decorative separator and optional gradient text. 60 61 **Icon Box** — Icon, title and text in several styles; the whole box can be a link. 62 63 **Button Group** — Several buttons side by side with styles, icons, alignment and stacking on mobile. 64 65 **Icon List** — Checklists and feature lists with custom icons, columns and dividers. 66 67 **Image Box** — Image with title and text as a card, overlay or side-by-side layout. 68 69 **Star Rating** — Accessible star ratings with half stars and an optional label. 70 71 **Logo Cloud** — Partner and client logos in a grid or an infinite scrolling marquee with a Pause button (static for visitors who prefer reduced motion). 72 73 **Callout** — Info, success, warning, tip and danger notices with icons. 74 75 **Social Share** — Share links for X, Facebook, LinkedIn, WhatsApp, Reddit and email. No tracking, no external scripts. 76 77 **Author Box** — Author bio from the post author or custom details, with avatar and links. 78 79 **Promo Banner** — Image banner with badge, heading, text and button for offers and announcements. 80 81 **Shape Divider** — Wave, curve, tilt, zigzag and other SVG dividers between sections. 55 82 56 83 == Installation == … … 58 85 1. Upload the plugin files to `/wp-content/plugins/section-blocks`, or install directly through the WordPress plugins screen. 59 86 2. Activate the plugin through the 'Plugins' screen in WordPress. 60 3. In the Gutenberg editor, look for the "Section Blocks" category to find all available blocks.87 3. In the block editor, open the inserter and find the blocks under "Section Blocks" and "Section Blocks – Elements". 61 88 4. For newsletter features, configure settings under **Settings > Newsletter Settings**. 62 89 … … 65 92 = How many blocks are included? = 66 93 67 The plugin includes 13 professional section blocks: Hero Section, Features Section, Services Section, Steps Timeline, Video CTA Section, Testimonials, Pricing Tables, Team Members, FAQ/Accordion, Gallery Portfolio, Newsletter Signup, Call to Action, and Advanced Container.94 25: 13 page sections (Hero, Features, Services, Steps Timeline, Video CTA, Testimonials, Pricing Tables, Team Members, FAQ, Gallery Portfolio, Newsletter Signup, Call to Action, Advanced Container) and 12 design elements (Advanced Heading, Icon Box, Button Group, Icon List, Image Box, Star Rating, Logo Cloud, Callout, Social Share, Author Box, Promo Banner, Shape Divider). 68 95 69 96 = How do I configure newsletter integrations? = … … 77 104 = Can I customize colors and typography? = 78 105 79 Yes. Every block has extensive customization options for colors, typography, spacing, and layout in the Gutenbergeditor sidebar.106 Yes. Every block has extensive customization options for colors, typography, spacing, and layout in the block editor sidebar. 80 107 81 108 = Do the blocks work with any WordPress theme? = … … 106 133 == Upgrade Notice == 107 134 135 = 1.3.0 = 136 Adds 12 new design element blocks (25 blocks in total) and renames the plugin to "Section Blocks – Landing Page Sections for the Block Editor". 137 108 138 = 1.2.9 = 109 139 Fixes Features Section columns, Pricing Tables on phones and with wide/full alignment, and Custom CSS that could be overridden by default block styles. … … 113 143 114 144 == Changelog == 145 146 = 1.3.0 = 147 * New: 12 element blocks — Advanced Heading, Icon Box, Button Group, Icon List, Image Box, Star Rating, Logo Cloud, Callout, Social Share, Author Box, Promo Banner and Shape Divider. 25 blocks in total. 148 * New: "Section Blocks – Elements" category in the block inserter. 149 * New: Promo video on the plugin page. 150 * Change: The plugin is now called "Section Blocks – Landing Page Sections for the Block Editor". 151 * Fix: A button whose link is not a valid URL now renders as a plain button instead of an empty link. 115 152 116 153 = 1.2.9 = -
section-blocks/trunk/section-blocks.php
r3750774 r3750877 2 2 3 3 /** 4 * Plugin Name: Section Blocks – The Layout Builder for Gutenberg5 * Description: A comprehensive WordPress Gutenberg plugin that provides beautiful, customizable section blocks for building modern websites with professional design elements.6 * Version: 1. 2.94 * Plugin Name: Section Blocks – Landing Page Sections for the Block Editor 5 * Description: Ready-made page sections and design elements for the block editor: hero, pricing, FAQ, testimonials, icon boxes, logo clouds and more. 6 * Version: 1.3.0 7 7 * Requires at least: 6.6 8 8 * Tested up to: 7.1 … … 20 20 exit; 21 21 } 22 define('SECTION_BLOCKS_VERSION', '1. 2.9');22 define('SECTION_BLOCKS_VERSION', '1.3.0'); 23 23 define('SECTION_BLOCKS_PLUGIN_DIR', plugin_dir_path(__FILE__)); 24 24 define('SECTION_BLOCKS_PLUGIN_URL', plugin_dir_url(__FILE__));
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)