(()=>{vart,e,n={39:(t,e,n)=>{t.exports=a;varr=n(2799);functiona(t){r.call(this,newi(this),t)}functioni(t){this.scope=t}n(6698)(a,r),a.prototype.readable=!0;vars=n(8659).EVENTS;Object.keys(s).forEach(function(t){if(0===s[t])i.prototype["on"+t]=function(){this.scope.emit(t)};elseif(1===s[t])i.prototype["on"+t]=function(e){this.scope.emit(t,e)};else{if(2!==s[t])throwError("wrong number of arguments!");i.prototype["on"+t]=function(e,n){this.scope.emit(t,e,n)}}})},219:t=>{"use strict";t.exports=JSON.parse('{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}')},245:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){returnnull}},251:(t,e)=>{e.read=function(t,e,n,r,a){vari,s,o=8*a-r-1,l=(1<<o)-1,c=l>>1,u=-7,d=n?a-1:0,f=n?-1:1,p=t[e+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=o;u>0;i=256*i+t[e+d],d+=f,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=r;u>0;s=256*s+t[e+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)returns?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=c}return(p?-1:1)*s*Math.pow(2,i-r)},e.write=function(t,e,n,r,a,i){vars,o,l,c=8*i-a-1,u=(1<<c)-1,d=u>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2
(0,xt.__)("%s plugin needs to be installed and activated to enable this module.","astra"),n),placement:"right",arrow:!0},(0,t.createElement)(pl,{className:"text-icon-primary min-w-[14px] min-h-[14px]",size:14}))))),"white-label"!==e&&(0,t.createElement)("div",{className:"flex items-center gap-x-2"},(0,t.createElement)(fl,{className:`\n\t\t[&>label]:!size-2.5 \n\t\t[&>label]:!left-1 \n\t\t${a?"":"bg-[#E8CFF8]"}\n\t`,id:`ast-${e}-toggle`,size:"xs","aria-label":(0,xt.sprintf)((0,xt.__)("Toggle %s Module Status","astra"),n),value:l,onChange:()=>{lett=!1;constn=e,r=l?"deactivate":"activate";l||(t=e);consta={...o};a[e]=t,s({type:"UPDATE_BLOCK_STATUSES",payload:a});consti=newwindow.FormData;i.append("action","astra_addon_update_module_status"),i.append("security",astra_addon_admin.update_nonce),i.append("module_status",r),i.append("module_id",n),rn()({url:astra_admin.ajax_url,method:"POST",body:i}).then(t=>{if(!t.success)return;s({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:"activate"===r?(0,xt.__)("Successfully Activated!","astra"):(0,xt.__)("Successfully Deactivated!","astra")});constn=newwindow.FormData;n.append("action","astra_refresh_assets_files"),n.append("security",astra_addon_admin.update_nonce),rn()({url:astra_admin.ajax_url,method:"POST",body:n}).then(t=>{"advanced-hooks"===e&&location.reload()}).catch(t=>{console.error("Error during cache refresh:",t)})}).catch(t=>{console.error("Error during activation/deactivation:",t)})},disabled:!a}))),(0,t.createElement)("div",{className:"flex flex-col w-full"},(0,t.createElement)("div",{className:"flex flex-wrap gap-1"},r?.map((e,n)=>(0,t.createElement)(hr,{key:n,className:sr("text-text-tertiary",a||0===n?"":"text-text-disabled pointer-events-none"),href:a||0===n?e?.link_url:"#",target:e.target_blank?"_blank":"_self",rel:"noreferrer"},e?.link_text)))))},ml=Rt("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),vl=({moduleInfo:e})=>{const{title:n,title_url:r}=e;return(0,t.createElement)(el,{className:"rounded-md p-4",title:(0,t.createElement)("div",{className:"flex items-center gap-2 text-base"},n,(0,t.createElement)(Cr,{className:"font-normal px-0.5 text-text-secondary bg-background-primary uppercase",label:(0,xt.__)("Pro","astra"),size:"xs",type:"rounded",variant:"inverse"})),content:(0,t.createElement)("div",{className:"mt-3 flex items-center gap-1 text-xs"},(0,t.createElement)("span",null,(t=>{switch(t){case"Colors & Background":return(0,xt.__)("Customize every color and background on your site to match your brand perfectly.","astra");case"Typography":return(0,xt.__)("Take full control of your website’s typography—from header to footer.","astra");case"Spacing":return(0,xt.__)("Gain precise control over margins and padding across your site with Astra Pro.","astra");case"Blog Pro":return(0,xt.__)("Customize your blog with advanced layouts, infinite scroll, post meta controls and more","astra");case"Sticky Header":return(0,xt.__)("Keep your site’s navigation accessible at all times with Astra Pro’s Sticky Header module.","astra");case"Site Layouts":return(0,xt.__)("Full Width, Fluid, Fixed, or Padded layouts that perfectly match your design vision.","astra");case"Nav Menu":return(0,xt.__)("With Astra Pro Nav Menu module you can create stunning mega menus with ease","astra");case"Site Builder":return(0,xt.__)("Design and manage every part of your website—headers, footers, 404 pages, and more.","astra");case"Page Headers":return(0,xt.__)("Create custom page headers with backgrounds, breadcrumbs, and display rules.","astra");case"WooCommerce":return(0,xt.__)("Boost performance and improve shopping experience with advanced features.","astra");case"White Label":return(0,xt.__)("Rebrand Astra with your own logo and details to offer a fully personalized client experience.","astra");case"LearnDash":return(0,xt.__)("Create and manage courses, quizzes, and more with tools designed for effective learning.","astra");case"Lifter LMS":return(0,xt.__)("Offersdistraction-freelearning
(0,xt.sprintf)((0,xt.__)("Do more with %s Modules","astra"),astra_admin.plugin_name)},(0,t.createElement)("div",{className:"flex"},astra_admin.pro_available&&(0,t.createElement)(ll,null),!astra_admin.pro_available&&(0,t.createElement)(Gr,{className:"p-0.5 lg:flex-shrink-0 text-xs font-medium text-astra focus:text-astra focus-visible:text-astra-hover active:text-astra-hover hover:text-astra-hover no-underline",isLink:!0,campaign:"pro-module",spinnerPosition:"right"},(0,xt.__)("Get Full Control","astra")))),(0,t.createElement)(pr.Body,null,(0,t.createElement)(gl,null))),yl=()=>{const{pro_available:e=!1,show_self_branding:n=!0}=astra_admin;return(0,t.createElement)("main",{className:"bg-background-secondary min-h-[calc(100vh_-_8rem)]"},(0,t.createElement)("h1",{className:"sr-only"}," Astra "),(0,t.createElement)(Ye,{className:"md:p-8 sm:p-6 p-[0.7rem]",cols:12,containerType:"grid",gap:"2xl"},(0,t.createElement)(Ye.Item,{className:"flex flex-col gap-8",colSpan:{lg:8,md:12,sm:12}},n&&(0,t.createElement)(Rr,null),(0,t.createElement)(mr,null),(0,t.createElement)(bl,null),n&&(0,t.createElement)(ea,null)),(0,t.createElement)(Ye.Item,{className:"flex flex-col gap-8 lg:sticky lg:top-8 lg:self-start",colSpan:{lg:4,md:12,sm:12}},!e&&n&&(0,t.createElement)(Kr,null),n&&(0,t.createElement)(ol,null),e&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)(pr,{className:"deprecated-section p-3 [&>div>.ast-licensing-wrap]:max-w-full"},wp.hooks.applyFilters("astra_dashboard.welcome_screen_after_integrations",(0,t.createElement)("span",{hidden:!0})))))))},wl=[{title:(0,xt.__)("Essentials","astra"),items:[{content:(0,xt.__)("24/7 Premium Support","astra")},{content:(0,xt.__)("Access To Pro Updates","astra")},{content:(0,xt.__)("CSS File Generation For Speed Optimization","astra")},{content:(0,xt.__)("White Label","astra")}]},{title:(0,xt.__)("Design","astra"),items:[{content:(0,xt.__)("Page Background Styling","astra")},{content:(0,xt.__)("Sidebar Designing Styles","astra")},{content:(0,xt.__)("Colors and Backgrounds","astra"),free:(0,xt.__)("Limited Features","astra"),pro:(0,xt.__)("Full Features","astra")},{content:(0,xt.__)("Typography","astra"),free:(0,xt.__)("Limited Features","astra"),pro:(0,xt.__)("Full Features","astra")},{content:(0,xt.__)("Spacing","astra"),free:(0,xt.__)("Limited Features","astra"),pro:(0,xt.__)("Full Features","astra")}]},{title:(0,xt.__)("Site Layouts","astra"),items:[{content:(0,xt.__)("Full Width Site Layout","astra")},{content:(0,xt.__)("Max Width Site Layout","astra")},{content:(0,xt.__)("Padded Site Layout","astra")},{content:(0,xt.__)("Fluid Site Layout","astra")}]},{title:(0,xt.__)("Dynamic Content Builder Without Code","astra"),items:[{content:(0,xt.__)("Multiple Page Headers","astra")},{content:(0,xt.__)("Custom Header","astra")},{content:(0,xt.__)("Custom Footer","astra")},{content:(0,xt.__)("Custom 404 Page","astra")},{content:(0,xt.__)("Hooks Support to Add Custom Code","astra")}]},{title:(0,xt.__)("Header","astra"),items:[{content:(0,xt.__)("Sticky When Scroll Up","astra")},{content:(0,xt.__)("Shrink When Scroll Up","astra")},{content:(0,xt.__)("Hide Sticky When Scroll Down","astra")},{content:(0,xt.__)("Sticky Header Animations","astra")},{content:(0,xt.__)("Mega Menu","astra")},{content:(0,xt.__)("Container Width for Menu Dropdown","astra")},{content:(0,xt.__)("100% Width for Menu Dropdown","astra")},{content:(0,xt.__)("Gutenberg Templates in Menu Dropdown","astra")},{content:(0,xt.__)("Elementor Templates in Menu Dropdown","astra")},{content:(0,xt.__)("Beaver Builder Templates in Menu Dropdown","astra")},{content:(0,xt.__)("Divi Builder Templates in Menu Dropdown","astra")},{content:(0,xt.__)("Brizy Templates in Menu Dropdown","astra")},{content:(0,xt.__)("Widgets in Menu Dropdown","astra")},{content:(0,xt.__)("Flyout Off-Canvas Menu","astra")},{content:(0,xt.__)("Full Screen Off-Canvas Menu","astra")},{content:(0,xt.__)("Slide Search","astra")},{content:(0,xt.__)("Full Screen Search","astra")},{content:(0,xt.__)("Header Cover Search","astra")},{content:(0,xt.__)("Multiple HTML Elements","astra
(0,xt.__)("%1$s Header/Footer Builder is a new and powerful way to design header and footer for your website. With this, you can give a creative look to your header/footer with less effort. Activating this feature will add advanced options to %2$s customizer where you can create awesome new designs..","astra"),astra_admin?.theme_name||"Astra")),(0,t.createElement)(en,{color:"secondary"},(0,xt.__)("After years of evolution and updates, the old header footer builder is at the point where it can no longer handle all of the new features. We recommend that you upgrade to the new header footer builder which has an assortment of new features and provides a more seamless experience.","astra"))),(0,t.createElement)(fl,{value:a,onChange:()=>{lett;t=!1===r,n({type:"USE_OLD_HEADER_FOOTER",payload:t});conste=newwindow.FormData;e.append("action","ast_migrate_to_builder"),e.append("security",astra_admin.update_nonce),e.append("status",t),rn()({url:astra_admin.ajax_url,method:"POST",body:e}).then(()=>{n({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,xt.__)("Successfully saved!","astra")})}).catch(t=>{console.error("Error during API request:",t),n({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,xt.__)("An error occurred while saving.","astra")})})}})),!e&&(0,t.createElement)("div",{className:"h-px bg-border-subtle"}))},Tl=()=>{if(astra_admin.pro_available)return"";conste=qr(),r=Br(t=>t.useUpgradeNotices),[a,i]=(0,n.useState)(!1);return(0,t.createElement)("div",{className:"flex gap-4"},(0,t.createElement)("div",{className:"w-full flex flex-col gap-1"},(0,t.createElement)(en,{as:"h5",size:18,weight:600},(0,xt.__)("Build Better Websites with Astra Pro","astra")),(0,t.createElement)(en,{color:"secondary"},(0,xt.__)("Access powerful features for painless WordPress design without the high costs. Powerful tools, premium support, limitless opportunity with Pro! Toggle upgrade notices on or off ","astra"),(0,t.createElement)("span",{onClick:()=>{lett;i("updating"),t=!1===r,e({type:"UPGRADE_NOTICES",payload:t});constn=newwindow.FormData;n.append("action","ast_disable_pro_notices"),n.append("security",astra_admin.update_nonce),n.append("status",t),rn()({url:astra_admin.ajax_url,method:"POST",body:n}).then(n=>{if(n.success){letn=(0,xt.__)("Deactivated!","astra");t&&(n=(0,xt.__)("Activated!","astra")),e({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:n}),i(!1)}}).catch(t=>{console.error("Error during activation/deactivation:",t)})},className:"cursor-pointer text-link-primary hover:text-link-primary-hover",rel:"noreferrer"},"updating"===a?(0,xt.__)("updating...","astra"):(0,xt.__)("here.","astra")))),(0,t.createElement)(Gr,{campaign:"settings",className:"self-start whitespace-nowrap",spinnerPosition:"right"}))};varXl=a(334);constSl=()=>{conste=(0,n.useRef)({}),r=qr(),a=Br(t=>t.enableUsageTracking),i=a,{bsfUsageTrackingUrl:s,is_whitelabel:o,theme_name:l}=astra_admin;if(o)return;constc=`<a href="${s}" target="_blank" rel="noreferrer" class="cursor-pointer text-link-primary hover:text-link-primary-hover">${(0,xt.__)("Learn More","astra")}</a>`;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"h-px bg-border-subtle"}),(0,t.createElement)("div",{className:"flex gap-4"},(0,t.createElement)("div",{className:"w-full flex flex-col gap-1"},(0,t.createElement)(en,{as:"h5",size:18,weight:600},(0,xt.__)("Contribute to Astra","astra")),(0,t.createElement)(en,{color:"secondary"},(0,Xl.Ay)((0,xt.sprintf)(/* translators: %s: Link to article with text *//* translators: %s: Link to article with text */
(0,xt.__)("Collect non-sensitive information from your website, such as the PHP version and features used, to help us fix bugs faster, make smarter decisions, and build features that actually matter to you. %s.","astra"),c)))),(0,t.createElement)(fl,{value:i,onChange:()=>{constt=!a;r({type:"UPDATE_ENABLE_USAGE_TRACKING",payload:t}),dr({action:"astra_analytics_optin_status",value:t},r,e)}})))},zl=wr("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),Ol=wr("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ml=wr("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),jl={sm:{icon:"[&>svg]:size-4",searchIcon:"[&>svg]:size-4",selectButton:"px-2.5 py-2 rounded text-xs font-medium leading-4 min-h-[2rem]",multiSelect:"pl-2 pr-2 py-1.5",displaySelected:"text-xs font-normal",dropdown:"rounded-md",dropdownItemsWrapper:"p-1.5",searchbarWrapper:"p-3 flex items-center gap-0.5",searchbar:"font-medium text-sm",searchbarIcon:"size-4",label:"text-sm font-medium"},md:{icon:"[&>svg]:size-5",searchIcon:"[&>svg]:size-5",selectButton:"px-3.5 py-2.5 rounded-md text-sm font-medium leading-4 min-h-[2.5rem]",multiSelect:"pl-2 pr-2.5 py-2",displaySelected:"text-sm font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-sm font-medium"},lg:{icon:"[&>svg]:size-6",searchIcon:"[&>svg]:size-5",selectButton:"px-4 py-3 rounded-lg text-sm font-medium leading-5 min-h-[3rem]",multiSelect:"pl-2.5 pr-3 py-2.5",displaySelected:"text-base font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-base font-medium"}},Wl="group-disabled:text-field-color-disabled",Fl={sm:"w-[calc(100%+0.75rem)] translate-x-[-0.375rem]",md:"w-[calc(100%+1rem)] translate-x-[-0.5rem]",lg:"w-[calc(100%+1rem)] translate-x-[-0.5rem]"},kl=t=>"string"==typeoft?t:"object"==typeoft&&"textContent"int?t.textContent?.toString().toLowerCase()||"":"object"==typeoft&&"children"int?kl(t.children):"",Il=(0,n.createContext)({}),ql=()=>(0,n.useContext)(Il);functionDl({children:t,icon:e=null,placeholder:r="Select an option",optionIcon:a=null,render:i,label:s,className:o,...l}){const{sizeValue:c,getReferenceProps:u,getValues:d,selectId:f,refs:p,isOpen:h,multiple:m,combobox:v,setSelected:g,onChange:b,isControlled:y,disabled:w,by:x}=ql(),C={sm:"xs",md:"sm",lg:"md"}[c],A=(0,n.useCallback)(()=>{if(e)returne;constt="text-field-placeholder group-disabled:text-icon-disabled";returnv?(0,Nt.jsx)(zl,{className:t}):(0,Nt.jsx)(Ol,{className:t})},[e]),E=(0,n.useCallback)(()=>{conste=d();if(!e)returnnull;if(m)returne.map((t,e)=>(0,Nt.jsx)(Cr,{className:"cursor-default",icon:a,type:"rounded",size:C,onMouseDown:L(t),label:"function"==typeofi?i(t):t.toString(),closable:!0,disabled:w},e));letr="string"==typeofe?e:"";if("function"==typeofi&&(r=i(e)),"function"==typeoft&&"function"!=typeofi){constn={value:e,...m?{onClose:L(e)}:{}};r=t(n)}return((0,n.isValidElement)(t)||"string"==typeoft)&&"function"!=typeofi&&(r=t),(0,Nt.jsx)("span",{className:Ee("truncate",jl[c].displaySelected,Wl),children:r})},[d,w]),L=t=>e=>{e?.preventDefault(),e?.stopPropagation();constn=[...d()??[]],r=n.findIndex(e=>null!==e&&null!==t&&"object"==typeofe?e[x]===t[x]:e===t);-1!==r&&(n.splice(r,1),y||g(n),"function"==typeofb&&b(n))};return(0,Nt.jsxs)("div",{className:"w-full flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[!!s&&(0,Nt.jsx)("label",{className:Ee(jl[c]?.label,"text-field-label"),htmlFor:f,children:s}),(0,Nt.jsxs)("button",{id:f,ref:p.setReference,className:Ee("flex items-center justify-between w-full box-border transition-[outline,background-color,color,box-shadow] duration-200 bg-white","outline outline-1 outline-field-border border-none cursor-pointer",!h&&"focus:ring-2focus:ring-offset-2focus:outline-focus-borderfocus:ring-focus[&:hover:not(:
(0,xt.__)("%s Extensions that will elevate your online store from good to exceptional.","astra"),"WooCommerce"))),(0,t.createElement)(pr.Body,null,(0,t.createElement)(Ye,{align:"stretch",className:"gap-1 p-1 grid bg-background-secondary rounded-lg",containerType:"grid",cols:{xl:2,md:2,sm:1},justify:"start"},astra_admin.woo_extensions.map(e=>(0,t.createElement)(Ye.Item,{key:e.slug,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-white p-4 extensions-page"},(0,t.createElement)(yg,{plugin:e})))))),xg=({item:e})=>{const[r,a]=e,[i,s]=(0,n.useState)(!1),o=Object.entries(a.subcategories),l=astra_admin.astra_docs_data.docs.filter(t=>t.category?.toString()===r),c=l.length;return(0,t.createElement)("div",{className:"py-5 border-t border-slate-200"},(0,t.createElement)("button",{onClick:()=>s(!i),className:"w-full flex justify-between items-center"},(0,t.createElement)("div",{className:"flex items-center"},$r.bookmark,(0,t.createElement)("h4",{className:"text-base font-medium leading-[1.625rem] text-slate-800 ml-2"},(0,Xl.Ay)(a.name))),(0,t.createElement)("div",{className:`${i?"rotate-0":"-rotate-90"} transition-rotate duration-300 ease-in-out`},$r.expand)),i&&(0,t.createElement)("div",{className:"mt-5"},!!o.length&&(0,t.createElement)("div",{className:"ml-2"},o.map((e,n)=>(0,t.createElement)(xg,{item:e,key:n}))),!!l.length&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"space-y-1 mb-5"},l.splice(0,5).map((e,n)=>(0,t.createElement)("a",{href:e.url+"?utm_source=free-theme&utm_medium=dashboard&utm_campaign=knowledge",target:"_blank",className:"flex items-center justify-between text-slate-800 rounded-md p-2 pl-0 hover:bg-gray-50 group cursor-pointer focus:outline-0",key:n},(0,t.createElement)("div",{className:"flex items-center ast-kb-caret"},(0,t.createElement)("span",null,$r.caret),(0,t.createElement)("div",{className:"text-base leading-[1.625rem] text-slate-800 ml-2"},(0,Xl.Ay)(e.title))),(0,t.createElement)("div",{className:"text-slate-600 invisible group-hover:visible"},$r.redirect)))),(0,t.createElement)("a",{href:astra_admin.websiteUrl?.docsCategoryDynamicUrl?.replace("#category#",r),target:"_blank",className:"text-base font-medium leading-4 text-astra flex items-center"},(0,t.createElement)("span",{className:"mr-2"},`View all ${(0,Xl.Ay)(a.name)} docs`),$r.redirect)),!c&&!o.length&&(0,t.createElement)("p",null,(0,xt.__)("No docs found!","astra"))))},Cg=xg,Ag=()=>(0,t.createElement)("div",{className:"relative flex bg-blue-50 py-5 pl-4 pr-10 border border-sky-500 rounded-md"},(0,t.createElement)("div",{className:"mr-3"},$r.checkbadge),(0,t.createElement)("div",null,(0,t.createElement)("h4",{className:"text-base font-semibold leading-5 text-slate-800 mb-1.5"},(0,xt.__)("Upgrade to Astra Pro","astra")),(0,t.createElement)("p",{className:"text-sm text-slate-600 mb-3"},(0,xt.__)("Get access to powerful features for painless WordPress designing, without the high costs. With all the time you will save, it’s a product that pays for itself!","astra")),(0,t.createElement)(Gr,{className:"text-sm text-astra text-medium"})),(0,t.createElement)("div",{className:"uppercase absolute top-4 right-4 leading-[1rem] font-medium text-[0.625rem] text-white bg-slate-800 rounded-[0.1875rem] py-[0rem] px-1.5"},(0,xt.__)("Pro","astra"))),Eg=({data:e})=>(0,t.createElement)("div",null,e&&e.map((e,n)=>(0,t.createElement)("a",{href:e.url+"?utm_source=free-theme&utm_medium=dashboard&utm_campaign=knowledge",target:"blank",className:"flex items-center justify-between text-slate-800 rounded-md p-2 pl-0 hover:bg-gray-50 group cursor-pointer",key:n},(0,t.createElement)("div",{className:"flex items-center ast-kb-caret"},$r.caret,(0,t.createElement)("div",{className:"text-base leading-[1.625rem] text-slate-800 ml-2"},(0,Xl.Ay)(e.title))),(0,t.createElement)("div",{className:"text-slate-600 invisible group-hover:visible"},$r.redirect)))),Lg={"getting-started":yl,"starter-templates":()=>{const[e,r]=(0,n.useState)(!1);if(astra_admin.show_plugins){if(!astra_admin.starter_templates_data.is_available)return(0,t.creat