(()=>{"use strict";var e,t={1795:(e,t,o)=>{const l=window.wp.blocks,a=window.wp.i18n,r=window.wp.blockEditor,n=window.wp.components,i=window.wp.serverSideRender;var s=o.n(i);const u=window.ReactJSXRuntime,b=JSON.parse('{"UU":"awt/author-pro-hero-book-slider"}');(0,l.registerBlockType)(b.UU,{edit:function({attributes:e,setAttributes:t}){const{postCount:o,accentColor:l,autoplaySpeed:i,enableAutoplay:b,titleColor:p,priceColor:h,excerptColor:c,blobColor1:g,blobColor2:C,featuredTagBg:d,featuredTagText:m,enableTitleTrim:w,titleTrimLength:_}=e,v=(0,r.useBlockProps)();return(0,u.jsxs)("div",{...v,children:[(0,u.jsxs)(r.InspectorControls,{children:[(0,u.jsxs)(n.PanelBody,{title:(0,a.__)("Slider Settings","author-website-templates"),children:[(0,u.jsx)(n.RangeControl,{label:(0,a.__)("Number of Books","author-website-templates"),value:o,onChange:e=>t({postCount:e}),min:1,max:10}),(0,u.jsx)(n.ToggleControl,{label:(0,a.__)("Enable Autoplay","author-website-templates"),checked:b,onChange:e=>t({enableAutoplay:e})}),b&&(0,u.jsx)(n.RangeControl,{label:(0,a.__)("Autoplay Speed (ms)","author-website-templates"),value:i,onChange:e=>t({autoplaySpeed:e}),min:2e3,max:1e4,step:500}),(0,u.jsx)(n.ToggleControl,{label:(0,a.__)("Trim Book Title","author-website-templates"),checked:w,onChange:e=>t({enableTitleTrim:e})}),w&&(0,u.jsx)(n.RangeControl,{label:(0,a.__)("Title Word Limit","author-website-templates"),value:_,onChange:e=>t({titleTrimLength:e}),min:2,max:30})]}),(0,u.jsx)(r.PanelColorSettings,{title:(0,a.__)("Color Settings","author-website-templates"),initialOpen:!0,colorSettings:[{value:l,onChange:e=>t({accentColor:e}),label:(0,a.__)("Accent Color","author-website-templates")},{value:p,onChange:e=>t({titleColor:e}),label:(0,a.__)("Title Color","author-website-templates")},{value:h,onChange:e=>t({priceColor:e}),label:(0,a.__)("Price Color","author-website-templates")},{value:c,onChange:e=>t({excerptColor:e}),label:(0,a.__)("Excerpt Color","author-website-templates")},{value:g,onChange:e=>t({blobColor1:e}),label:(0,a.__)("Top Blob Color (Top Right)","author-website-templates")},{value:C,onChange:e=>t({blobColor2:e}),label:(0,a.__)("Bottom Blob Color (Bottom Left)","author-website-templates")},{value:d,onChange:e=>t({featuredTagBg:e}),label:(0,a.__)("Featured Tag Background","author-website-templates")},{value:m,onChange:e=>t({featuredTagText:e}),label:(0,a.__)("Featured Tag Text","author-website-templates")}]})]}),(0,u.jsx)(s(),{block:"awt/author-pro-hero-book-slider",attributes:e})]})}})}},o={};function l(e){var a=o[e];if(void 0!==a)return a.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,l),r.exports}l.m=t,e=[],l.O=(t,o,a,r)=>{if(!o){var n=1/0;for(b=0;b<e.length;b++){for(var[o,a,r]=e[b],i=!0,s=0;s<o.length;s++)(!1&r||n>=r)&&Object.keys(l.O).every(e=>l.O[e](o[s]))?o.splice(s--,1):(i=!1,r<n&&(n=r));if(i){e.splice(b--,1);var u=a();void 0!==u&&(t=u)}}return t}r=r||0;for(var b=e.length;b>0&&e[b-1][2]>r;b--)e[b]=e[b-1];e[b]=[o,a,r]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={9477:0,8841:0};l.O.j=t=>0===e[t];var t=(t,o)=>{var a,r,[n,i,s]=o,u=0;if(n.some(t=>0!==e[t])){for(a in i)l.o(i,a)&&(l.m[a]=i[a]);if(s)var b=s(l)}for(t&&t(o);u<n.length;u++)r=n[u],l.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return l.O(b)},o=globalThis.webpackChunkauthor_website_templates=globalThis.webpackChunkauthor_website_templates||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=l.O(void 0,[8841],()=>l(1795));a=l.O(a)})();