(()=>{"use strict";var e,t={3390:()=>{const e=window.wp.blocks,t=window.wp.i18n,a=window.wp.blockEditor,o=window.wp.components,n=window.ReactJSXRuntime,l=JSON.parse('{"UU":"awt/child-author-404-page"}');(0,e.registerBlockType)(l.UU,{edit:function({attributes:e,setAttributes:l}){const{heading:s,description:r,badgeText:i,bigNumber:b,btnHomeLabel:d,btnBooksLabel:u,btnContactLabel:h}=e;return(0,n.jsxs)("div",{...(0,a.useBlockProps)(),children:[(0,n.jsxs)(a.InspectorControls,{children:[(0,n.jsxs)(o.PanelBody,{title:(0,t.__)("Content Settings","author-website-templates"),children:[(0,n.jsx)(o.TextControl,{label:(0,t.__)("Big Number (404)","author-website-templates"),value:b,onChange:e=>l({bigNumber:e})}),(0,n.jsx)(o.TextControl,{label:(0,t.__)("Badge Text","author-website-templates"),value:i,onChange:e=>l({badgeText:e})}),(0,n.jsx)(o.TextControl,{label:(0,t.__)("Heading","author-website-templates"),value:s,onChange:e=>l({heading:e})}),(0,n.jsx)(o.TextareaControl,{label:(0,t.__)("Description","author-website-templates"),value:r,onChange:e=>l({description:e})})]}),(0,n.jsxs)(o.PanelBody,{title:(0,t.__)("Button Labels","author-website-templates"),children:[(0,n.jsx)(o.TextControl,{label:(0,t.__)("Home Button Label","author-website-templates"),value:d,onChange:e=>l({btnHomeLabel:e})}),(0,n.jsx)(o.TextControl,{label:(0,t.__)("Books Button Label","author-website-templates"),value:u,onChange:e=>l({btnBooksLabel:e})}),(0,n.jsx)(o.TextControl,{label:(0,t.__)("Contact Button Label","author-website-templates"),value:h,onChange:e=>l({btnContactLabel:e})})]})]}),(0,n.jsxs)("div",{className:"awt-404-preview p-8 text-center border border-dashed border-gray-300 rounded",children:[(0,n.jsx)("h2",{className:"text-3xl font-bold mb-4",children:b}),(0,n.jsx)("span",{className:"inline-block bg-yellow-200 px-3 py-1 rounded text-sm font-bold mb-4",children:i}),(0,n.jsx)("h3",{className:"text-xl font-bold mb-2",children:s}),(0,n.jsx)("p",{className:"mb-6",children:r}),(0,n.jsxs)("div",{className:"flex gap-2 justify-center",children:[(0,n.jsx)("button",{className:"px-4 py-2 bg-blue-500 text-white rounded",children:d}),(0,n.jsx)("button",{className:"px-4 py-2 bg-gray-200 rounded",children:u})]}),(0,n.jsx)("p",{className:"mt-4 text-xs text-gray-400",children:(0,t.__)("This is a preview. The actual design will be rendered on the frontend.","author-website-templates")})]})]})},save:function(){return null}})}},a={};function o(e){var n=a[e];if(void 0!==n)return n.exports;var l=a[e]={exports:{}};return t[e](l,l.exports,o),l.exports}o.m=t,e=[],o.O=(t,a,n,l)=>{if(!a){var s=1/0;for(d=0;d<e.length;d++){for(var[a,n,l]=e[d],r=!0,i=0;i<a.length;i++)(!1&l||s>=l)&&Object.keys(o.O).every(e=>o.O[e](a[i]))?a.splice(i--,1):(r=!1,l<s&&(s=l));if(r){e.splice(d--,1);var b=n();void 0!==b&&(t=b)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[a,n,l]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={566:0,7994:0};o.O.j=t=>0===e[t];var t=(t,a)=>{var n,l,[s,r,i]=a,b=0;if(s.some(t=>0!==e[t])){for(n in r)o.o(r,n)&&(o.m[n]=r[n]);if(i)var d=i(o)}for(t&&t(a);b<s.length;b++)l=s[b],o.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return o.O(d)},a=globalThis.webpackChunkauthor_website_templates=globalThis.webpackChunkauthor_website_templates||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var n=o.O(void 0,[7994],()=>o(3390));n=o.O(n)})();