1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{95388:function(A,e,t){Promise.resolve().then(t.t.bind(t,38173,23)),Promise.resolve().then(t.t.bind(t,231,23)),Promise.resolve().then(t.bind(t,1952)),Promise.resolve().then(t.bind(t,70589)),Promise.resolve().then(t.bind(t,32149)),Promise.resolve().then(t.bind(t,88794)),Promise.resolve().then(t.bind(t,17062)),Promise.resolve().then(t.bind(t,1078)),Promise.resolve().then(t.bind(t,42890)),Promise.resolve().then(t.bind(t,218)),Promise.resolve().then(t.bind(t,84521)),Promise.resolve().then(t.bind(t,13957)),Promise.resolve().then(t.bind(t,1270)),Promise.resolve().then(t.bind(t,45161)),Promise.resolve().then(t.bind(t,54397)),Promise.resolve().then(t.bind(t,66757))},11747:function(A,e,t){"use strict";t.d(e,{I:function(){return l},Providers:function(){return o}});var r=t(57437),s=t(2265),i=t(16463),a=t(85169);function n(){let{resolvedTheme:A,setTheme:e}=(0,a.F)();return(0,s.useEffect)(()=>{let A=window.matchMedia("(prefers-color-scheme: dark)");function t(){e("light")}return t(),A.addEventListener("change",t),()=>{A.removeEventListener("change",t)}},[A,e]),null}let l=(0,s.createContext)({});function o(A){var e;let t,{children:o}=A,d=(e=(0,i.usePathname)(),t=(0,s.useRef)(),(0,s.useEffect)(()=>{t.current=e},[e]),t.current);return(0,r.jsx)(l.Provider,{value:{previousPathname:d},children:(0,r.jsxs)(a.f,{attribute:"class",disableTransitionOnChange:!0,children:[(0,r.jsx)(n,{}),o]})})}},42890:function(A,e,t){"use strict";t.r(e),t.d(e,{ArticleLayout:function(){return h}});var r=t(57437),s=t(2265),i=t(16463),a=t(11747),n=t(30590),l=t(44839);function o(A){let{className:e,...t}=A;return(0,r.jsx)("div",{className:(0,l.Z)(e,"prose prose-a:text-wppblue-500 prose-a:decoration-wppblue-500 dark:prose-invert"),...t})}var d=t(66648),c={src:"/_next/static/media/avatar-ec-small.0e336e2e.jpg",height:200,width:200,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAUAQEAAAAAAAAAAAAAAAAAAAAB/9oADAMBAAIQAxAAAAGwB//EABYQAQEBAAAAAAAAAAAAAAAAAAIBBP/aAAgBAQABBQJJzZ//xAAVEQEBAAAAAAAAAAAAAAAAAAABAP/aAAgBAwEBPwFb/8QAFREBAQAAAAAAAAAAAAAAAAAAABH/2gAIAQIBAT8Bj//EABkQAAIDAQAAAAAAAAAAAAAAAAERAAIhMf/aAAgBAQAGPwKo1EdU/8QAFxAAAwEAAAAAAAAAAAAAAAAAAAEhEf/aAAgBAQABPyHB7PRCP//aAAwDAQACAAMAAAAQA//EABURAQEAAAAAAAAAAAAAAAAAABEA/9oACAEDAQE/EEL/xAAWEQADAAAAAAAAAAAAAAAAAAAAARH/2gAIAQIBAT8QUH//xAAYEAEAAwEAAAAAAAAAAAAAAAABABExIf/aAAgBAQABPxBD96CsFRc2p//Z",blurWidth:8,blurHeight:8};function u(){return(0,r.jsxs)("div",{className:"max-w-2xl mx-auto sm:items-center sm:flex border-t-2 border-zinc-100 dark:border-zinc-800 pt-6 mt-12",children:[c&&(0,r.jsx)(d.default,{alt:"Enrique Chavez",className:"w-20 h-20 mx-auto mb-10 rounded-full sm:mr-10 ring ring-wppblue-500 ring-offset-4 ring-offset-white dark:ring-offset-zinc-700 sm:mb-0",src:c}),(0,r.jsxs)("div",{className:"text-sm",children:[(0,r.jsxs)("p",{className:"w-full mb-5 font-semibold text-center text-zinc-600 dark:text-zinc-300 sm:text-left sm:mb-3",children:["Written by"," ",(0,r.jsx)("strong",{children:(0,r.jsx)("a",{href:"https://x.com/tmeister",children:"Enrique Chavez"})})]}),(0,r.jsx)("p",{className:"text-center sm:text-justify text-zinc-600 dark:text-zinc-400",children:"I'm a passionate full-stack developer who's been immersed in the tech world for nearly two decades. Over the years, I genuinely enjoy sharing top-notch WordPress guides and tips with fellow enthusiasts."})]})]})}function g(A){return(0,r.jsx)("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",...A,children:(0,r.jsx)("path",{d:"M7.25 11.25 3.75 8m0 0 3.5-3.25M3.75 8h8.5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function h(A){var e;let{article:t,children:l}=A,d=(0,i.useRouter)(),{previousPathname:c}=(0,s.useContext)(a.I);return(0,r.jsx)(n.W2,{className:"mt-16 lg:mt-32",children:(0,r.jsx)("div",{className:"xl:relative",children:(0,r.jsxs)("div",{className:"mx-auto max-w-2xl",children:[c&&(0,r.jsx)("button",{type:"button",onClick:()=>d.back(),"aria-label":"Go back to articles",className:"group mb-8 flex h-10 w-10 items-center justify-center rounded-full bg-white shadow-md shadow-zinc-800/5 ring-1 ring-zinc-900/5 transition dark:border dark:border-zinc-700/50 dark:bg-zinc-800 dark:ring-0 dark:ring-white/10 dark:hover:border-zinc-700 dark:hover:ring-white/20 lg:absolute lg:-left-5 lg:-mt-2 lg:mb-0 xl:-top-1.5 xl:left-0 xl:mt-0",children:(0,r.jsx)(g,{className:"h-4 w-4 stroke-zinc-500 transition group-hover:stroke-zinc-700 dark:stroke-zinc-500 dark:group-hover:stroke-zinc-400"})}),(0,r.jsxs)("article",{children:[(0,r.jsxs)("header",{className:"flex flex-col",children:[(0,r.jsx)("h1",{className:"mt-6 text-4xl font-bold tracking-tight text-zinc-800 dark:text-zinc-100 sm:text-5xl",children:t.title}),(0,r.jsxs)("time",{dateTime:t.date,className:"order-first flex items-center text-base text-zinc-400 dark:text-zinc-500",children:[(0,r.jsx)("span",{className:"h-4 w-0.5 rounded-full bg-zinc-200 dark:bg-zinc-500"}),(0,r.jsx)("span",{className:"ml-3",children:(e=t.date,new Date(`${e}T00:00:00Z`).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}))})]})]}),(0,r.jsx)(o,{className:"mt-8","data-mdx-content":!0,children:l})]}),(0,r.jsx)(u,{})]})})})}},30590:function(A,e,t){"use strict";t.d(e,{W2:function(){return l}});var r=t(57437),s=t(2265),i=t(44839);let a=(0,s.forwardRef)(function(A,e){let{className:t,children:s,...a}=A;return(0,r.jsx)("div",{ref:e,className:(0,i.Z)("sm:px-8",t),...a,children:(0,r.jsx)("div",{className:"mx-auto w-full max-w-7xl lg:px-8",children:s})})}),n=(0,s.forwardRef)(function(A,e){let{className:t,children:s,...a}=A;return(0,r.jsx)("div",{ref:e,className:(0,i.Z)("relative px-4 sm:px-8 lg:px-12",t),...a,children:(0,r.jsx)("div",{className:"mx-auto max-w-2xl lg:max-w-7xl",children:s})})}),l=(0,s.forwardRef)(function(A,e){let{children:t,...s}=A;return(0,r.jsx)(a,{ref:e,...s,children:(0,r.jsx)(n,{children:t})})})},218:function(A,e,t){"use strict";t.d(e,{Hero:function(){return m}});var r=t(57437),s=t(14245),i=t(67753),a=t(39343);function n(A){let{id:e,children:t}=A;return(0,r.jsx)("label",{htmlFor:e,className:"mb-2 block text-sm font-medium text-gray-500",children:t})}function l(A){let{error:e,label:t,id:s,register:i,name:a,alternative:l,placeholder:o,callback:d,defaultValue:c,className:u,...g}=A;return(0,r.jsxs)("div",{className:u,children:[t&&(0,r.jsx)(n,{id:s,children:t}),(0,r.jsx)("input",{placeholder:o,className:l?"block w-full appearance-none rounded-none rounded-r-md min-w-0 flex-auto appearance-none rounded-md border border-zinc-900/10 bg-white px-3 py-[calc(theme(sp
1acing.2)-1px)] shadow-md shadow-zinc-800/5 placeholder:text-zinc-400 focus:border-indigo-500 focus:outline-none focus:ring-4 focus:ring-indigo-500/10 dark:border-zinc-700 dark:bg-zinc-700/[0.15] dark:text-zinc-200 dark:placeholder:text-zinc-500 dark:focus:border-indigo-400 dark:focus:ring-indigo-400/10":"block w-full min-w-0 flex-auto appearance-none rounded-md border border-zinc-900/10 bg-white px-3 py-[calc(theme(spacing.2)-1px)] shadow-md shadow-zinc-800/5 placeholder:text-zinc-400 focus:border-indigo-500 focus:outline-none focus:ring-4 focus:ring-indigo-500/10 dark:border-zinc-700 dark:bg-zinc-700/[0.15] dark:text-zinc-200 dark:placeholder:text-zinc-500 dark:focus:border-indigo-400 dark:focus:ring-indigo-400/10",id:s,defaultValue:c,...i(a,{onChange:A=>d(a,A)}),...g}),e&&!l&&(0,r.jsx)("span",{className:"mt-2 inline-block text-xs text-red-600",children:e.message})]})}var o=t(2265);function d(A){let e={},[t,n]=(0,o.useState)(!1),d=(t,r)=>{A.updateData({...e,[t]:r.target.value})},c=s.Ry({pluginName:s.Z_().required("Plugin name is required"),pluginSlug:s.Z_().required("Plugin slug is required"),pluginUri:s.Z_().required("Plugin Uri is required"),pluginDescription:s.Z_().nullable(),authorName:s.Z_().required("Author name is required"),authorUri:s.Z_().required("Author Uri is required"),authorEmail:s.Z_().email("Please enter a valid email").required("Author email is required")}),{register:u,handleSubmit:g,reset:h,formState:{errors:m}}=(0,a.cI)({mode:"onSubmit",resolver:(0,i.X)(c)}),x=async e=>{n(!0);let t={plugin:{name:e.pluginName,slug:e.pluginSlug,uri:`https://${e.pluginUri}`,description:e.pluginDescription},author:{name:e.authorName,email:e.authorEmail,uri:`https://${e.authorUri}`}},r=await fetch("/api/generate",{method:"POST",body:JSON.stringify(t)}),s=await r.blob(),i=document.createElement("a");i.href=window.URL.createObjectURL(s),i.download=`${e.pluginSlug}.zip`,i.click(),h(),n(!1),A.onSubmit()};return(0,r.jsxs)("form",{onSubmit:g(x),className:"mb-10 w-full space-y-5 divide-y divide-slate-200 rounded border border-slate-200 px-10 py-5 shadow-lg dark:divide-zinc-700/40 dark:border-zinc-700/40 dark:bg-zinc-700/[0.3] lg:mb-0 lg:mr-10 lg:w-6/12",children:[(0,r.jsxs)("div",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"mt-6 grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-6",children:[(0,r.jsx)("div",{className:"sm:col-span-3",children:(0,r.jsx)(l,{id:"plugin-name",name:"pluginName",type:"text",placeholder:"Plugin Name",register:u,callback:d,error:m.pluginName})}),(0,r.jsx)("div",{className:"sm:col-span-3",children:(0,r.jsx)(l,{id:"plugin-slug",name:"pluginSlug",type:"text",placeholder:"plugin-slug",register:u,callback:d,error:m.pluginSlug})})]}),(0,r.jsxs)("div",{className:"mt-1 w-full sm:mt-0",children:[(0,r.jsxs)("div",{className:"flex rounded-md shadow-sm",children:[(0,r.jsx)("span",{className:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-50 px-3 text-gray-500 dark:border-zinc-700 dark:bg-zinc-700/[0.3] dark:text-zinc-500 dark:placeholder:text-zinc-500 dark:focus:border-indigo-400 dark:focus:ring-indigo-400/10 sm:text-sm",children:"https://"}),(0,r.jsx)(l,{id:"plugin-uri",name:"pluginUri",type:"text",autoCorrect:"off",autoCapitalize:"none",alternative:!0,register:u,error:m.pluginUri,className:"w-full",placeholder:"Plugin URL",callback:d})]}),m.pluginUri&&(0,r.jsx)("span",{className:"mt-2 inline-block text-xs text-red-600",children:m.pluginUri.message})]}),(0,r.jsxs)("div",{className:"mt-6 grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-6",children:[(0,r.jsx)("div",{className:"sm:col-span-3",children:(0,r.jsx)(l,{id:"author-name",name:"authorName",type:"text",placeholder:"Author Name",register:u,error:m.authorName,callback:d})}),(0,r.jsx)("div",{className:"sm:col-span-3",children:(0,r.jsx)(l,{id:"author-email",name:"authorEmail",type:"email",placeholder:"Author Email",register:u,error:m.authorEmail,callback:d})})]}),(0,r.jsxs)("div",{className:"mt-1 w-full sm:mt-0",children:[(0,r.jsxs)("div",{className:"flex rounded-md shadow-sm",children:[(0,r.jsx)("span",{className:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-50 px-3 text-gray-500 dark:border-zinc-700 dark:bg-zinc-700/[0.3] dark:text-zinc-500 dark:placeholder:text-zinc-500 dark:focus:border-indigo-400 dark:focus:ring-indigo-400/10 sm:text-sm",children:"https://"}),(0,r.jsx)(l,{id:"author-uri",name:"authorUri",type:"text",placeholder:"Author URL",autoCorrect:"off",autoCapitalize:"none",alternative:!0,register:u,error:m.authorUri,className:"w-full",callback:d})]}),m.authorUri&&(0,r.jsx)("span",{className:"mt-2 inline-block text-xs text-red-600",children:m.authorUri.message})]}),(0,r.jsx)("div",{children:(0,r.jsx)("textarea",{placeholder:"Plugin Short Description",className:"block w-full min-w-0 flex-auto appearance-none rounded-md border border-zinc-900/10 bg-white px-3 py-[calc(theme(sp
1acing.2)-1px)] shadow-md shadow-zinc-800/5 placeholder:text-zinc-400 focus:border-indigo-500 focus:outline-none focus:ring-4 focus:ring-indigo-500/10 dark:border-zinc-700 dark:bg-zinc-700/[0.15] dark:text-zinc-200 dark:placeholder:text-zinc-500 dark:focus:border-indigo-400 dark:focus:ring-indigo-400/10 sm:text-sm",...u("pluginDescription"),onChange:A=>d("pluginDescription",A)})})]}),(0,r.jsx)("div",{className:"flex justify-end pt-5",children:(0,r.jsxs)("button",{type:"submit",className:"inline-flex cursor-pointer items-center justify-center rounded-md border border-transparent bg-blue-600 px-8 py-3 font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:bg-slate-400",disabled:t,children:[t&&(0,r.jsxs)("svg",{className:"-ml-1 mr-3 h-5 w-5 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),t?"Generating...":"Build Plugin"]})})]})}var c=t(87138),u=t(66648),g={src:"/_next/static/media/buy-me-a-coffee.fd33e679.png",height:306,width:1090,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAGFBMVEXmxwT31gHu0RPdvwPqywPIrxDRtgnmzjjplFeIAAAAA3RSTlP+8Pt7/1AtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGklEQVR4nGNgYGVgYWFgZmRgYmdmY2BmZQQAAX4ALaw2xjsAAAAASUVORK5CYII=",blurWidth:8,blurHeight:2};function h(A){return(0,r.jsxs)("section",{className:"w-full lg:w-6/12",children:[(0,r.jsxs)("div",{className:"rounded-lg border border-slate-200 shadow-lg dark:border-zinc-700 ",children:[(0,r.jsxs)("header",{className:"flex items-center rounded-t border-b border-slate-200 bg-slate-50 px-10 py-5 text-slate-600 dark:border-zinc-700 dark:bg-zinc-700/[0.3] dark:text-white ",children:[(0,r.jsx)("div",{className:"h-6 w-6 rounded border border-slate-300 bg-white dark:border-zinc-700 dark:bg-zinc-700/[0.3]"}),(0,r.jsx)("div",{className:"ml-3 font-semibold ",children:"Plugin"})]}),(0,r.jsxs)("main",{className:"space-y-3 px-10 py-5 dark:bg-zinc-700/[0.3] ",children:[(0,r.jsx)("h3",{className:"text-xl font-bold",children:A.data.pluginName}),(0,r.jsxs)("div",{className:"space-x-2 text-sm",children:[(0,r.jsx)("span",{className:"cursor-pointer text-blue-600",children:"Activate"}),(0,r.jsx)("span",{className:"text-slate-400",children:"|"}),(0,r.jsx)("span",{className:"cursor-pointer text-red-600",children:"Delete"})]}),(0,r.jsx)("div",{children:(0,r.jsx)("p",{className:"mt-4 text-sm",children:A.data.pluginDescription})}),(0,r.jsxs)("div",{className:"space-x-2 text-sm",children:[(0,r.jsx)("span",{children:"Version 1.0.0"}),(0,r.jsx)("span",{className:"text-slate-400",children:"|"}),(0,r.jsxs)(c.default,{href:`https://${A.data.authorUri||"example.com"}`,className:"text-blue-600",children:["By ",A.data.authorName]}),(0,r.jsx)("span",{className:"text-slate-400",children:"|"}),(0,r.jsx)(c.default,{href:`https://${A.data.pluginUri||"example.com"}`,className:"text-blue-600",children:"View Details"})]}),(0,r.jsx)("div",{children:(0,r.jsx)("p",{className:"mt-5 cursor-pointer text-sm text-blue-600 ",children:"Enable auto-updates"})})]})]}),A.showBuyMeACoffe&&(0,r.jsx)("div",{className:"relative mt-10 flex justify-center",children:(0,r.jsx)(c.default,{href:"https://www.buymeacoffee.com/tmeister",rel:"noopener noreferrer",target:"_blank",children:(0,r.jsx)(u.default,{width:250,height:70,src:g,alt:"Buy Me a Coffee"})})})]})}function m(){let A={pluginName:"WordPress Plugin Boilerplate",pluginSlug:"plugin-slug",pluginUri:"example.com/plugin-name-uri",pluginDescription:"This is a short description of what the plugin does. It's displayed in the WordPress admin area.",authorName:"Your Name or Your Company",authorEmail:"[email protected].",authorUri:"example.com"},[e,t]=(0,o.useState)(A),[s,i]=(0,o.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("h1",{className:"font-display mx-auto max-w-4xl text-center text-5xl font-medium tracking-tight text-slate-900 dark:text-white sm:text-7xl",children:["WordPress plugin"," ",(0,r.jsxs)("span",{className:"relative whitespace-nowrap text-blue-600",children:[(0,r.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 418 42",className:"absolute left-0 top-2/3 h-[0.58em] w-full fill-blue-300/70",preserveAspectRatio:"none",children:(0,r.jsx)("path",{d:"M203.371.916c-26.013-2.078-76.686 1.963-124.73 9.946L67.3 12.749C35.421 18.062 18.2 21.766 6.004 25.934 1.244 27.561.828 27.778.874 28.61c.07 1.214.828 1.121 9.595-1.176 9.072-2.377 17.15-3.92 39.246-7.496C123.565 7.986 157.869 4.492 195.942 5.046c7.461.108 19.25 1.696 19.17 2.582-.107 1.183-7.874 4.31-25.75 10.366-21.992 7.45-35.43 12.534-36.701 13.884-2.173 2.308-.202 4.407 4.442 4.734 2.654.187 3.263.157 15.593-.78 35.401-2.686 57.944-3.488 88.365-3.143 46.327.526 75.721 2.23 130.788 7.584 19.787 1.924 20.814 1.98 24.557 1.332l.066-.011c1.201-.203 1.53-1.825.399-2.335-2.911-1.31-4.893-1.604-22.048-3.261-57.509-5.556-87.871-7.36-132.059-7.842-23.239-.254-33.617-.116-50.627.674-11.629.54-42.371 2.494-46.696 2.967-2.359.259 8.133-3.625 26.504-9.81 23.239-7.825 27.934-10.149 28.304-14.005.417-4.348-3.529-6-16.878-7.066Z"})}),(0,r.jsx)("span",{className:"relative",children:" boilerplate"})]})," ","generator."]}),(0,r.jsx)("p",{className:"mx-auto mt-10 max-w-3xl text-center text-lg tracking-tight text-slate-500 dark:text-white",children:"Type your plugin details in the form below, and a zip f
1ile will be generated for you."}),(0,r.jsxs)("div",{className:"mt-16 lg:flex",children:[(0,r.jsx)(d,{updateData:A=>{t({...e,...A})},onSubmit:()=>{t(A),i(!0)}}),(0,r.jsx)(h,{data:e,showBuyMeACoffe:s})]})]})}},84521:function(A,e,t){"use strict";t.d(e,{Newsletter:function(){return g}});var r=t(57437),s=t(14245),i=t(67753),a=t(39343),n=t(2265),l=t(87138),o=t(44839);let d={primary:"bg-zinc-800 font-semibold text-zinc-100 hover:bg-zinc-700 active:bg-zinc-800 active:text-zinc-100/70 dark:bg-zinc-700 dark:hover:bg-zinc-600 dark:active:bg-zinc-700 dark:active:text-zinc-100/70",secondary:"bg-zinc-50 font-medium text-zinc-900 hover:bg-zinc-100 active:bg-zinc-100 active:text-zinc-900/60 dark:bg-zinc-800/50 dark:text-zinc-300 dark:hover:bg-zinc-800 dark:hover:text-zinc-50 dark:active:bg-zinc-800/50 dark:active:text-zinc-50/70"};function c(A){let{variant:e="primary",className:t,...s}=A;return t=(0,o.Z)("inline-flex items-center gap-2 justify-center rounded-md py-2 px-3 text-sm outline-offset-2 transition active:transition-none",d[e],t),void 0===s.href?(0,r.jsx)("button",{className:t,...s}):(0,r.jsx)(l.default,{className:t,...s})}var u=t(92009);function g(A){let[e,t]=(0,n.useState)(!1),[l,o]=(0,n.useState)(!1),d=s.Ry({email:s.Z_().email("Please enter a valid email").required("Email is required")}),{register:g,handleSubmit:h,reset:m,formState:{errors:x}}=(0,a.cI)({mode:"onSubmit",resolver:(0,i.X)(d)}),b=async A=>{console.log(A),t(!0),await fetch("/api/subscribe",{method:"POST",body:JSON.stringify(A)}),m(),o(!0),t(!1)};return(0,r.jsxs)("form",{onSubmit:h(b),className:"rounded-2xl border border-zinc-100 p-6 dark:border-zinc-700/40",children:[(0,r.jsxs)("h2",{className:"flex text-sm font-semibold text-zinc-900 dark:text-zinc-100",children:[(0,r.jsx)(u.Z,{className:"h-6 w-6 flex-none text-gray-400"}),(0,r.jsx)("span",{className:"ml-3",children:"Stay up to date"})]}),(0,r.jsx)("p",{className:"mt-2 text-sm text-zinc-600 dark:text-zinc-400",children:"Get notified about news and updates."}),(0,r.jsxs)("div",{className:"mt-6 flex",children:[(0,r.jsx)("input",{type:"email",placeholder:"Email address","aria-label":"Email address",required:!0,...g("email"),error:x.email,className:"min-w-0 flex-auto appearance-none rounded-md border border-zinc-900/10 bg-white px-3 py-[calc(theme(spacing.2)-1px)] shadow-md shadow-zinc-800/5 placeholder:text-zinc-400 focus:border-indigo-500 focus:outline-none focus:ring-4 focus:ring-indigo-500/10 dark:border-zinc-700 dark:bg-zinc-700/[0.15] dark:text-zinc-200 dark:placeholder:text-zinc-500 dark:focus:border-indigo-400 dark:focus:ring-indigo-400/10 sm:text-sm"}),(0,r.jsx)(c,{type:"submit",className:"ml-4 flex-none",children:"Subscbribe"})]}),l&&(0,r.jsx)("span",{className:"mt-3 block text-xs text-wppblue-500",children:"Thanks for subscribing! We'll keep you updated."})]})}},1952:function(A,e,t){"use strict";t.r(e),e.default={src:"/_next/static/media/wp-cli-dev-hero.a9af6751.jpg",height:808,width:1448,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAEAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAVAQEBAAAAAAAAAAAAAAAAAAABAv/aAAwDAQACEAMQAAABmBZ//8QAFBABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQABBQJ//8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAwEBPwF//8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAgEBPwF//8QAFBABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAGPwJ//8QAFhABAQEAAAAAAAAAAAAAAAAAAQCx/9oACAEBAAE/IQ2//9oADAMBAAIAAwAAABAH/8QAFREBAQAAAAAAAAAAAAAAAAAAAAH/2gAIAQMBAT8Qj//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABcQAQADAAAAAAAAAAAAAAAAAAEAESH/2gAIAQEAAT8QGzWP/9k=",blurWidth:8,blurHeight:4}},70589:function(A,e,t){"use strict";t.r(e),e.default={src:"/_next/static/media/modern-shield.35ee4382.jpg",height:1024,width:1792,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAFAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAVAQEBAAAAAAAAAAAAAAAAAAABAv/aAAwDAQACEAMQAAABpBj/xAAVEAEBAAAAAAAAAAAAAAAAAAARI//aAAgBAQABBQIn/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAwEBPwF//8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAgEBPwF//8QAGBAAAgMAAAAAAAAAAAAAAAAAABESITH/2gAIAQEABj8Ck6WH/8QAGRABAAIDAAAAAAAAAAAAAAAAAQARIVFx/9oACAEBAAE/IVCscGvZ/9oADAMBAAIAAwAAABD7/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAEh/9oACAEDAQE/EHD/xAAWEQADAAAAAAAAAAAAAAAAAAAAASH/2gAIAQIBAT8QVP/EABgQAQEAAwAAAAAAAAAAAAAAAAERAEGB/9oACAEBAAE/EFcwSpDb1rP/2Q==",blurWidth:8,blurHeight:5}},32149:function(A,e,t){"use strict";t.r(e),e.default={src:"/_next/static/media/laravel-herd-hero.b32679ac.jpg",height:850,width:1490,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAFAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAVAQEBAAAAAAAAAAAAAAAAAAACA//aAAwDAQACEAMQAAABpA0//8QAFhAAAwAAAAAAAAAAAAAAAAAAAwQj/9oACAEBAAEFAmhX/8QAGBEAAgMAAAAAAAAAAAAAAAAAAAECEjH/2gAIAQMBAT8BvJYf/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAER/9oACAECAQE/AYj/xAAZEAABBQAAAAAAAAAAAAAAAAABAAMRItH/2gAIAQEABj8CauYOr//EABYQAQEBAAAAAAAAAAAAAAAAAAEAEf/aAAgBAQABPyF3REBGf//aAAwDAQACAAMAAAAQ/wD/xAAWEQEBAQAAAAAAAAAAAAAAAAABABH
1/2gAIAQMBAT8QQgsv/8QAFhEBAQEAAAAAAAAAAAAAAAAAAQAx/9oACAECAQE/EBtL/8QAGBAAAgMAAAAAAAAAAAAAAAAAACEBEUH/2gAIAQEAAT8Qxvx6Uao//9k=",blurWidth:8,blurHeight:5}},88794:function(A,e,t){"use strict";t.r(e),e.default={src:"/_next/static/media/terminal-guy.55010b5e.jpg",height:800,width:1440,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAEAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGfB//EABYQAQEBAAAAAAAAAAAAAAAAAAEDE//aAAgBAQABBQIq5//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABcQAAMBAAAAAAAAAAAAAAAAAAABMVH/2gAIAQEABj8CcuH/xAAWEAEBAQAAAAAAAAAAAAAAAAABIQD/2gAIAQEAAT8htR1XP//aAAwDAQACAAMAAAAQA//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABcQAQEBAQAAAAAAAAAAAAAAAAERAPD/2gAIAQEAAT8Ql1QAanXf/9k=",blurWidth:8,blurHeight:4}},17062:function(A,e,t){"use strict";t.r(e),e.default={src:"/_next/static/media/terminal.aa02eb22.jpg",height:720,width:1280,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAFAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAD/9oADAMBAAIQAxAAAAGAEv8A/8QAFhABAQEAAAAAAAAAAAAAAAAAAgMB/9oACAEBAAEFAnDJj//EABgRAAIDAAAAAAAAAAAAAAAAAAABAhEh/9oACAEDAQE/AZOnh//EABcRAAMBAAAAAAAAAAAAAAAAAAABIQL/2gAIAQIBAT8BxVT/xAAXEAEAAwAAAAAAAAAAAAAAAAACABIx/9oACAEBAAY/Ak9rP//EABcQAAMBAAAAAAAAAAAAAAAAAAABIRH/2gAIAQEAAT8h01KJo//aAAwDAQACAAMAAAAQ9//EABURAQEAAAAAAAAAAAAAAAAAAAEA/9oACAEDAQE/EGYn/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAEh/9oACAECAQE/EEsP/8QAFxABAQEBAAAAAAAAAAAAAAAAAREAQf/aAAgBAQABPxCRQUiVQKo8W7//2Q==",blurWidth:8,blurHeight:5}},1078:function(A,e,t){"use strict";t.r(e),e.default={src:"/_next/static/media/web-developer.6b0bbb68.jpg",height:800,width:1440,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAEAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUAQEAAAAAAAAAAAAAAAAAAAAD/9oADAMBAAIQAxAAAAGZCF//xAAWEAADAAAAAAAAAAAAAAAAAAABEhP/2gAIAQEAAQUCoV//xAAVEQEBAAAAAAAAAAAAAAAAAAAAEf/aAAgBAwEBPwGP/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAgEBPwF//8QAFxAAAwEAAAAAAAAAAAAAAAAAABEhkf/aAAgBAQAGPwJTD//EABYQAAMAAAAAAAAAAAAAAAAAAAAxQf/aAAgBAQABPyGMg//aAAwDAQACAAMAAAAQ/wD/xAAXEQEAAwAAAAAAAAAAAAAAAAABABEh/9oACAEDAQE/EAW5P//EABYRAQEBAAAAAAAAAAAAAAAAAAEAIf/aAAgBAgEBPxBXL//EABkQAAIDAQAAAAAAAAAAAAAAAAERADFBUf/aAAgBAQABPxBRAMbR32f/2Q==",blurWidth:8,blurHeight:4}},13957:function(A,e,t){"use strict";t.r(e),e.default={src:"/_next/static/media/76.cdbcd48c.svg",height:28,width:28,blurWidth:0,blurHeight:0}},1270:function(A,e,t){"use strict";t.r(e),e.default={src:"/_next/static/media/github.5043b74b.svg",height:28,width:28,blurWidth:0,blurHeight:0}},45161:function(A,e,t){"use strict";t.r(e),e.default={src:"/_next/static/media/linkedin.07057395.svg",height:28,width:28,blurWidth:0,blurHeight:0}},54397:function(A,e,t){"use strict";t.r(e),e.default={src:"/_next/static/media/wordpress.a646f54b.svg",height:28,width:28,blurWidth:0,blurHeight:0}},66757:function(A,e,t){"use strict";t.r(e),e.default={src:"/_next/static/media/x.bc66164e.svg",height:30,width:30,blurWidth:0,blurHeight:0}}},function(A){A.O(0,[173,231,194,971,23,744],function(){return A(A.s=95388)}),_N_E=A.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.