kollapsminoriteten/wp-content/themes/astra/admin/assets/build/dashboard-app.js

17 lines
1.2 MiB
JavaScript
Raw Normal View History

2025-12-12 13:14:39 +01:00
(()=>{var t,e,n={39:(t,e,n)=>{t.exports=a;var r=n(2799);function a(t){r.call(this,new i(this),t)}function i(t){this.scope=t}n(6698)(a,r),a.prototype.readable=!0;var s=n(8659).EVENTS;Object.keys(s).forEach(function(t){if(0===s[t])i.prototype["on"+t]=function(){this.scope.emit(t)};else if(1===s[t])i.prototype["on"+t]=function(e){this.scope.emit(t,e)};else{if(2!==s[t])throw Error("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(){return null}},251:(t,e)=>{e.read=function(t,e,n,r,a){var i,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)return s?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){var s,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
2025-07-27 19:55:19 +02:00
// translators: %s is the theme name.
2025-12-12 13:14:39 +01:00
"%s is fast, fully customizable & beautiful WordPress theme suitable for blog, personal portfolio, business website and WooCommerce storefront. It is very lightweight and offers unparalleled speed.","astra"),astra_admin.theme_name))),(0,t.createElement)("div",{className:"flex gap-3"},(0,t.createElement)(Ar,{type:"secondary",size:"md",className:"text-button-primary hover:bg-button-secondary hover:bg-background-button-hover hover:outline-button-secondary",variant:"secondary",onClick:()=>{window.open(astra_admin.customize_url,"_self")}},(0,xt.__)("Start Customizing","astra")))),(0,t.createElement)(Ye.Item,{colSpan:{lg:12,md:12,sm:12},className:"xl:col-span-6 relative xl:ml-4 p-2",onClick:()=>r("https://www.youtube-nocookie.com/embed/TBZd9oligCw?showinfo=0&autoplay=1&rel=0")},i&&(0,t.createElement)("div",{className:"astra-video-container lg:col-span-3 md:col-span-8 col-span-8 relative cursor-pointer group"},(0,t.createElement)("img",{src:Lr.astraVideoThumbnail,className:"w-full h-full object-cover rounded-lg aspect-video hover:shadow-overlay-video",alt:(0,xt.__)("Astra Video Thumbnail","astra")}),(0,t.createElement)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-10 h-10 flex items-center justify-center bg-black bg-opacity-50 group-hover:bg-opacity-100 transition-opacity duration-300 rounded-full"},(0,t.createElement)("svg",{className:"w-6 h-6 text-white",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},(0,t.createElement)("path",{d:"M8 5v14l11-7L8 5z"}))))),i&&e&&(0,t.createElement)("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-70 cursor-pointer w-screen z-999999",onClick:()=>r(null)},(0,t.createElement)("div",{className:"text-text-inverse absolute top-4 right-4 flex items-center gap-2 mr-[35px] mt-5"},(0,t.createElement)(Er,{size:20,onClick:t=>{t.stopPropagation(),r(null)}})),(0,t.createElement)("div",{className:"relative rounded-lg shadow-lg w-4/5 cursor-default",onClick:t=>t.stopPropagation()},(0,t.createElement)("iframe",{className:"w-full lg:h-188 sm:h-120 h-60",src:`${e}&autoplay=1`,title:"Youtube Video Player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))))},Vr=Rt("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Nr=({className:e=""})=>(0,t.createElement)("svg",{className:e,width:"138",height:"119",viewBox:"0 0 138 119",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M83.1363 60.863C81.3465 61.953 19.6523 63.0372 16.4254 60.863C13.778 59.0818 15.0372 28.0612 15.5994 15.759C15.6194 15.3288 15.6366 14.9272 15.6567 14.5429C15.7485 12.581 17.2917 10.576 19.2478 10.5129C24.0522 10.358 79.9124 9.78723 82.4221 11.0894C82.8753 11.3246 83.2453 13.0628 83.5379 15.759H83.5408C84.8745 27.9952 84.6078 59.971 83.1392 60.863H83.1363Z",fill:"white"}),(0,t.createElement)("path",{d:"M31.0541 46.7367C28.5013 45.9651 20.8802 45.7127 20.5045 46.8543C20.1259 48.0016 19.7559 55.6255 20.4299 56.6811C21.104 57.7366 30.8849 57.7911 31.4413 56.9478C31.9978 56.1045 31.9777 47.0178 31.057 46.7367H31.0541Z",fill:"white"}),(0,t.createElement)("path",{d:"M30.3684 49.8548C29.9267 50.8243 28.7851 51.2545 27.8127 50.8157C26.8433 50.3739 26.413 49.2324 26.8519 48.26C27.2936 47.2905 28.4352 46.8603 29.4075 47.2991C30.3799 47.738 30.8072 48.8824 30.3684 49.8548Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M31.4383 56.9482C31.6735 56.5896 31.8054 54.7539 31.8112 52.7346C30.6839 51.8828 29.0863 51.6504 27.7898 52.2298C27.2993 52.4478 26.7802 52.7777 26.2668 52.6142C25.8709 52.488 25.6271 52.1093 25.3632 51.7881C24.6404 50.9161 23.5505 50.3597 22.4204 50.2908C21.6172 50.2421 20.8055 50.44 20.1056 50.8387C19.9995 53.3054 20.0425 56.0733 20.4298 56.6814C21.1038 57.7369 30.8847 57.7914 31.4412 56.9482H31.4383Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M32.0689 49.9982C32.0661 50.1846 32.1349 46.9262 31.1912 46.4358C31.1453 46.4128 31.1023 46.4013 31.0593 46.3985C29.2609 45.89
2025-07-27 19:55:19 +02:00
// Translators: %s is the plugin title.
// Translators: %s is the plugin title.
2025-12-12 13:14:39 +01:00
(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:()=>{let t=!1;const n=e,r=l?"deactivate":"activate";l||(t=e);const a={...o};a[e]=t,s({type:"UPDATE_BLOCK_STATUSES",payload:a});const i=new window.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")});const n=new window.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 websites 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 sites navigation accessible at all times with Astra Pros 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.__)("Offers distraction-free learning
2025-07-27 19:55:19 +02:00
// translators: %s Astra Pro plugin name.
// translators: %s Astra Pro plugin name.
2025-08-27 08:44:30 +02:00
(0,xt.sprintf)((0,xt.__)("%s Modules","astra"),astra_admin.plugin_name):
// translators: %s Astra Pro plugin name.
// translators: %s Astra Pro plugin name.
2025-12-12 13:14:39 +01:00
(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:()=>{let t;t=!1===r,n({type:"USE_OLD_HEADER_FOOTER",payload:t});const e=new window.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"";const e=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:()=>{let t;i("updating"),t=!1===r,e({type:"UPGRADE_NOTICES",payload:t});const n=new window.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){let n=(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"}))};var Xl=a(334);const Sl=()=>{const e=(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;const c=`<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:()=>{const t=!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"==typeof t?t:"object"==typeof t&&"textContent"in t?t.textContent?.toString().toLowerCase()||"":"object"==typeof t&&"children"in t?kl(t.children):"",Il=(0,n.createContext)({}),ql=()=>(0,n.useContext)(Il);function Dl({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)return e;const t="text-field-placeholder group-disabled:text-icon-disabled";return v?(0,Nt.jsx)(zl,{className:t}):(0,Nt.jsx)(Ol,{className:t})},[e]),E=(0,n.useCallback)(()=>{const e=d();if(!e)return null;if(m)return e.map((t,e)=>(0,Nt.jsx)(Cr,{className:"cursor-default",icon:a,type:"rounded",size:C,onMouseDown:L(t),label:"function"==typeof i?i(t):t.toString(),closable:!0,disabled:w},e));let r="string"==typeof e?e:"";if("function"==typeof i&&(r=i(e)),"function"==typeof t&&"function"!=typeof i){const n={value:e,...m?{onClose:L(e)}:{}};r=t(n)}return((0,n.isValidElement)(t)||"string"==typeof t)&&"function"!=typeof i&&(r=t),(0,Nt.jsx)("span",{className:Ee("truncate",jl[c].displaySelected,Wl),children:r})},[d,w]),L=t=>e=>{e?.preventDefault(),e?.stopPropagation();const n=[...d()??[]],r=n.findIndex(e=>null!==e&&null!==t&&"object"==typeof e?e[x]===t[x]:e===t);-1!==r&&(n.splice(r,1),y||g(n),"function"==typeof b&&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-2 focus:ring-offset-2 focus:outline-focus-border focus:ring-focus [&:hover:not(:
2025-07-27 19:55:19 +02:00
// translators: WooCommerce plugin name text.
// translators: WooCommerce plugin name text.
2025-12-12 13:14:39 +01:00
(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, its 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