').replace(/\s*<\/p>/g,""),children:JSON.parse((null===(n=t.querySelector("children"))||void 0===n?void 0:n.innerHTML)||"{}")})})),wm.setSessionData(JSON.stringify(this.data[e.key]),e.key),[2]}}))}))})),[4,Promise.all(e)]);case 1:return n.sent(),[2,this.data]}}))}))},e}(),Em=function(){function e(e){this.RSS=e,this.createTriggerButton(),this.createFlyOut()}return e.prototype.getTriggerButtonID=function(){return"whats-new-rss-btn-".concat(this.RSS.getID())},e.prototype.getFlyoutID=function(){return"whats-new-rss-flyout-".concat(this.RSS.getID())},e.prototype.getFlyoutCloseBtnID=function(){return"whats-new-rss-flyout-close-".concat(this.RSS.getID())},e.prototype.getFlyoutMultiFeedNavID=function(){return"whats-new-rss-flyout-multi-feed-nav-".concat(this.RSS.getID())},e.prototype.setIsLoading=function(e){void 0===e&&(e=!1);var t=document.getElementById(this.getFlyoutID());e?t.classList.add("is-loading"):t.classList.remove("is-loading")},e.prototype.setNotification=function(e){var t=document.querySelector("#".concat(this.getTriggerButtonID()," .whats-new-rss-notification-badge"));e?(this.RSS.isMultiFeedRSS()?(t.innerHTML="",t.classList.add("is-multi-feed")):t.innerHTML=e>9?"9+":e.toString(),t.classList.remove("hide")):t.classList.add("hide")},e.prototype.createTriggerButton=function(){var e="\n\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\n\t\t').concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t");this.RSS.getElement().innerHTML+=e},e.prototype.createFlyOut=function(){var e=["whats-new-rss-flyout","closed"];this.RSS.getArgs().flyout.className&&e.push(this.RSS.getArgs().flyout.className);var t=[];this.RSS.isMultiFeedRSS()&&(t.push('"));var n=document.createElement("div");n.setAttribute("id",this.getFlyoutID()),n.setAttribute("class",e.join(" ")),n.setAttribute("role","dialog"),n.innerHTML='\n\t\t
\n\n\t\t\n\t\t'),document.body.appendChild(n)},e.prototype.setMultiFeedTabNotificationCount=function(e,t){void 0===t&&(t=0);var n=document.querySelector("#".concat(this.getFlyoutMultiFeedNavID(),' button[data-feed-key="').concat(e,'"]'));if(n){var r=n.querySelector(".new-notification-count");if(t){var o=t>9?"9+":t;r.innerHTML=o.toString()}else r.innerHTML=""}},e.prototype.innerContentWrapper=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="");var r=["whats-new-rss-flyout-inner-content-item"];return t&&r.push("rss-new-post"),n&&r.push(n),'\n\t\t\n\t\t\t').concat(t?'New ✨':"","\n\t\t\t").concat(e,"\n\t\t
\n\t\t")},e.prototype.createExcerpt=function(e,t,n){var r=n.wordLimit,o=n.moreSymbol,s=n.readMore;if(!r)return e;var i=e.replace(/<[^>]*>/g,"").split(/\s+/),a=i.slice(0,r).join(" ");return o&&(a+=o),r>i.length?e:t&&(null==s?void 0:s.label)?"".concat(a,' ').concat(s.label,"
"):"".concat(a,"
")},e.prototype.listChildrenPosts=function(e){var t=this,n=Object.values(e);if(!n.length)return"";var r=document.createElement("details"),o=document.createElement("summary"),s=document.createElement("div");return n.forEach((function(e){var n=(new DOMParser).parseFromString(e.post_content,"text/html"),r=document.createElement("div");r.classList.add("sub-version-item"),r.innerHTML='\n\t\t\t\t\n\t\t\t\t').concat(n.documentElement.textContent,"
\n\t\t\t"),s.appendChild(r)})),o.innerHTML='See More
See Less
',r.appendChild(o),r.appendChild(s),s.classList.add("sub-version-items-wrapper"),r.classList.add("whats-new-rss-sub-version-details"),r.outerHTML},e.prototype.formatDate=function(e){if("function"==typeof this.RSS.getArgs().flyout.formatDate)return this.RSS.getArgs().flyout.formatDate(e);var t=new Date,n=e.getTime(),r=t.getTime()-n,o=36e5,s=24*o,i=7*s,a=30*s;if(r<6e4)return"Just now";if(r1?"s":""," ago")}if(r1?"s":""," ago")}if(r1?"s":""," ago")}if(r1?"s":""," ago")}var m=Math.floor(r/a);return"".concat(m," month").concat(m>1?"s":""," ago")},e}();function _m(){var e=window.location.hash;document.querySelectorAll("#adminmenu #toplevel_page_hfe a").forEach((function(t){var n=t.getAttribute("href"),r=t.closest("li"),o=t.textContent.trim();n&&(e.includes(n.split("#")[1])||"#dashboard"===e&&"Dashboard"===o)?r.classList.add("current"):r.classList.remove("current")}))}const km=function(){var e=i((0,a.useState)(!1),2),t=(e[0],e[1]);(0,a.useEffect)((function(){return _m(),window.addEventListener("hashchange",_m),function(){window.removeEventListener("hashchange",_m)}}),[]);var n=window.location.hash,r=function(e){return n.includes(e)},o=function(e){return{color:r(e)?"#111827":"#4B5563",borderBottom:r(e)?"2px solid #6005FF":"none",paddingBottom:"22px",marginBottom:"-16px"}},s=function(e){window.open(e,"_blank"),t(!1)};return function({selector:e,...t}){const n=(0,a.useRef)(null);(0,a.useEffect)((()=>{var r;return async function(){const e="whats-new-rss-styles";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.innerHTML=await async function(){return".whats-new-rss-is-active{overflow:hidden}.whats-new-rss-trigger-button{display:flex;align-items:center;position:relative;width:auto;padding:5px;cursor:pointer}.whats-new-rss-trigger-button .whats-new-rss-notification-badge{position:absolute;top:-8px;right:-5px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red;transition:transform .2s ease-in-out}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.is-multi-feed{top:-2px;right:-2px;font-size:0;width:10px;height:10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.hide{display:none}.whats-new-rss-trigger-button:hover .whats-new-rss-notification-badge{transform:scale(1.2)}.whats-new-rss-flyout{position:fixed;top:0;right:0;bottom:0;width:100%;z-index:99999;transition:visibility .3s ease-in-out;font-family:Arial,Helvetica,sans-serif}.whats-new-rss-flyout .lightbox-trigger,.whats-new-rss-flyout.hidden{display:none}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon{display:block;margin:auto}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon svg{display:block;background:0 0;width:25px;height:25px}.whats-new-rss-flyout .whats-new-rss-flyout-contents{position:fixed;display:flex;right:0;width:30%;height:100%;flex-direction:column;background-color:#fff;transition:transform .3s ease-in-out;z-index:9999}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 16px 24px;border-bottom:1px solid #ccc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header button{border:none;background:0 0;font-size:30px;cursor:pointer;color:#94a3b8;padding:0;margin:0;box-shadow:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper{display:flex;gap:10px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper h3{margin:0;padding:0;color:#0f172a;font-weight:600;font-size:16px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav{display:flex;padding:0 30px;border-bottom:1px solid #ccc;gap:2em;overflow:auto;white-space:nowrap}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button{position:relative;background:0 0;color:inherit;padding:15px 0;border-bottom:2px solid transparent}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:focus,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:hover{border-color:inherit}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button.selected{border-color:#5d5d5d}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button .new-notification-count{position:absolute;top:0;right:-10px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content{flex:1;overflow-y:auto}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .skeleton-container{margin:30px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item{border-bottom:1px solid #d8dfe9;padding:30px 24px;color:#475569;font-weight:400;font-size:14px;line-height:20px;display:flex;flex-direction:column;gap:13px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>*{margin:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.skeleton-row{height:25vh;margin:40px 0;background:linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post{position:relative}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post .new-post-badge{background:#ff3d3d;border-radius:5px;position:absolute;right:45px;padding:0 5px;color:#fff}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header{display:flex;flex-direction:column;gap:15px;padding:0 0 8px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header p{color:#94a3b8;margin:0;padding:0;font-weight:600;font-size:14px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header h2{margin:0;color:#0f172a;font-weight:700;line-height:28px;font-size:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h2{font-weight:700;font-size:18px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h3{font-weight:700;font-size:16px;line-height:22px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h4{font-weight:700;font-size:15px;line-height:20px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h5{font-weight:700;font-size:14px;line-height:18px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h6{font-weight:700;font-size:13px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p{padding:0;font-size:14px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p:last-child{margin-bottom:0;padding-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a{color:#1170ff;text-decoration:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure{margin:10px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure.wp-block-embed.is-type-video{position:relative;width:100%;height:0;padding-bottom:56.25%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item video{vertical-align:middle;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item strong{font-weight:600}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{padding-inline-start:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li{margin-bottom:5px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{list-style-type:disc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol{list-style-type:decimal}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details{line-height:20px;font-size:.9em;margin:10px 0;background:#f9fafb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary{display:flex;justify-content:space-between;cursor:pointer;padding:20px 15px;height:1em;line-height:20px;font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary::after{content:'⌃';font-size:20px;transform:rotateX(180deg);font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-more{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-less{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary{border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary::after{transform:rotateX(45deg)}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-more{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-less{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item{position:relative;padding:1em;border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-header{display:flex;justify-content:space-between}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-content{margin-top:1em}.whats-new-rss-flyout .whats-new-rss-flyout-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);transition:all .3s ease-in-out}.whats-new-rss-flyout.closed{visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-overlay{opacity:0;visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-contents{transform:translateX(100%)}.whats-new-rss-flyout .whats-new-rss-flyout-inner-header__loading-icon{display:none}@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}@media screen and (max-width:1024px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:40%}}@media screen and (max-width:768px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:85%}}"}(),document.head.appendChild(t)}}(),n.current||(n.current=(r={selector:e,...t},new xm(r))),()=>{n.current&&"function"==typeof n.current.destroy&&n.current.destroy()}}),[e,...Object.values(t)]),n.current}({rssFeedURL:"https://ultimateelementor.com/whats-new/feed/",selector:"#hfe-whats-new",triggerButton:{beforeBtn:'"},flyout:{title:(0,fm.__)("What's New?","astra-sites"),formatDate:function(e){var t=e.toLocaleDateString("en-US",{weekday:"long"}),n=e.toLocaleDateString("en-US",{month:"long"}),r=e.getDate(),o=e.getFullYear();return"".concat(t," ").concat(n," ").concat(r,", ").concat(o)}}}),c().createElement(ot,{className:"hfe-nav-menu relative",style:{width:"unset",padding:"0.5rem",zIndex:"9",paddingTop:"1rem"}},c().createElement("div",{className:"flex flex-col lg:flex-row items-start md:items-center w-full"},c().createElement("div",{className:"flex flex-row md:items-center md:gap-8 w-full"},c().createElement(ot.Left,null,c().createElement(ot.Item,null,c().createElement(D,{to:hm.dashboard.path},c().createElement("img",{src:"".concat(hfeSettingsData.icon_url),alt:"Icon",className:"ml-4 cursor-pointer",style:{height:"35px",width:"35px"}})))),c().createElement(ot.Middle,{className:"flex-grow",align:"left"},c().createElement(ot.Item,null,c().createElement("nav",{className:"flex flex-wrap gap-6 mt-2 md:mt-0 cursor-pointer"},c().createElement(D,{to:hm.dashboard.path,className:"".concat(r("dashboard")?"active-link":""),style:o("dashboard")},(0,fm.__)("Dashboard","header-footer-elementor")),c().createElement(D,{to:hm.headerFooterBuilder.path,className:"".concat(r("edit.php?post_type=elementor-hf")?"active-link":""),style:o("edit.php?post_type=elementor-hf"),onClick:function(){console.log("Navigating to Header & Footer Builder")}},(0,fm.__)("Header & Footer","header-footer-elementor")),c().createElement(D,{to:hm.widgets.path,className:"".concat(r("widgets")?"active-link":""),style:o("widgets")},(0,fm.__)("Widgets","header-footer-elementor")),c().createElement(D,{to:hm.settings.path,className:"".concat(r("settings")?"active-link":""),style:o("settings")},(0,fm.__)("Settings","header-footer-elementor")),c().createElement(D,{to:hm.upgrade.path,className:"".concat(r("upgrade")?"active-link":""),style:o("upgrade")},(0,fm.__)("Free vs Pro","header-footer-elementor")))),c().createElement(ot.Item,null,c().createElement(ct,{icon:c().createElement(lm,null),iconPosition:"right",variant:"ghost",className:"hfe-remove-ring mb-2",style:{color:"#6005FF",background:"none",border:"none",padding:0,cursor:"pointer"},onClick:function(){return s("https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=navigation-bar&utm_campaign=uae-lite-upgrade")}},(0,fm.__)("Get Full Control","header-footer-elementor")))),c().createElement(ot.Right,{className:"gap-4"},c().createElement(ot.Item,null,c().createElement(Gd,{placement:"bottom-end"},c().createElement(Gd.Trigger,null,c().createElement(rm,{label:(0,fm.__)("Free","header-footer-elementor"),size:"xs",variant:"neutral"}),c().createElement("span",{className:"sr-only"},"Open Menu")),c().createElement(Gd.Portal,null,c().createElement(Gd.ContentWrapper,null,c().createElement(Gd.Content,{className:"w-60"},c().createElement(Gd.List,null,c().createElement(Gd.Item,null,(0,fm.__)("Version","header-footer-elementor")),c().createElement(Gd.Item,null,c().createElement("div",{className:"flex justify-between w-full"},"".concat(hfeSettingsData.uaelite_current_version),c().createElement(rm,{label:(0,fm.__)("Free","header-footer-elementor"),size:"xs",variant:"neutral"}))))))))),c().createElement(ot.Item,{className:"gap-4 cursor-pointer"},c().createElement(Gd,{placement:"bottom-end"},c().createElement(Gd.Trigger,null,c().createElement(cm,null)),c().createElement(Gd.Portal,null,c().createElement(Gd.ContentWrapper,null,c().createElement(Gd.Content,{className:"w-60"},c().createElement(Gd.List,null,c().createElement(Gd.Item,null,(0,fm.__)("Useful Resources","header-footer-elementor")),c().createElement(Gd.Item,{className:"text-text-primary",style:{color:"black"},onClick:function(){return s("https://ultimateelementor.com/docs/getting-started-with-ultimate-addons-for-elementor-lite/")}},c().createElement(um,{style:{color:"black"}}),(0,fm.__)("Getting Started","header-footer-elementor")),c().createElement(Gd.Item,{onClick:function(){return s("https://ultimateelementor.com/docs-category/widgets/")}},c().createElement(um,null),(0,fm.__)("How to use widgets","header-footer-elementor")),c().createElement(Gd.Item,{onClick:function(){return s("https://ultimateelementor.com/docs-category/features/")}},c().createElement(um,null),(0,fm.__)("How to use features","header-footer-elementor")),c().createElement(Gd.Item,{onClick:function(){return s("https://ultimateelementor.com/docs-category/templates/")}},c().createElement(um,null),(0,fm.__)("How to use templates","header-footer-elementor")),c().createElement(Gd.Item,{onClick:function(){return s("https://ultimateelementor.com/contact/")}},c().createElement(dm,null),(0,fm.__)("Contact us","header-footer-elementor"))))))),c().createElement("div",{className:"pb-1",id:"hfe-whats-new"})),c().createElement(D,{to:hm.settings.path},c().createElement(mm,{className:"cursor-pointer hfe-user-icon",style:{color:"black"}}))))))};function Sm(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Nm=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},Cm=({variant:e="dark",placement:t="bottom",title:n="",content:r,arrow:o=!1,open:s,setOpen:i,children:l,className:c,tooltipPortalRoot:u,tooltipPortalId:d,boundary:m="clippingAncestors",strategy:f="fixed",offset:h=8,triggers:p=["hover","focus"],interactive:g=!1})=>{const y=(0,a.useMemo)((()=>"boolean"==typeof s&&"function"==typeof i),[s,i]),[v,x]=(0,a.useState)(!1),w=(0,a.useRef)(null),{refs:b,floatingStyles:E,context:_}=Ur({open:y?s:v,onOpenChange:y?i:x,placement:t,strategy:f,middleware:[er(h),nr({boundary:m}),tr({boundary:m}),(M={element:w},{...Qn(M),options:[M,undefined]})],whileElementsMounted:Un}),k=Or(_,{enabled:!y&&p.includes("click")}),S=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:s,elements:i}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:m=0,move:f=!0}=t,h=gr(),p=pr(),g=vr(u),y=vr(c),v=vr(n),x=a.useRef(),w=a.useRef(-1),b=a.useRef(),E=a.useRef(-1),_=a.useRef(!0),k=a.useRef(!1),S=a.useRef((()=>{})),N=a.useRef(!1),C=a.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);a.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(E.current),_.current=!0,N.current=!1)}}),[l,s]),a.useEffect((()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){C()&&r(!1,e,"hover")}const t=Ot(i.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[i.floating,n,r,l,g,C]);const P=a.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=wr(y.current,"close",x.current);o&&!b.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[y,r]),T=sr((()=>{S.current(),b.current=void 0})),j=sr((()=>{if(k.current){const e=Ot(i.floating).body;e.style.pointerEvents="",e.removeAttribute(xr),k.current=!1}})),F=sr((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));a.useEffect((()=>{if(l&&pt(i.domReference)){var e;const r=i.domReference;return n&&r.addEventListener("mouseleave",a),null==(e=i.floating)||e.addEventListener("mouseleave",a),f&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",s),()=>{var e;n&&r.removeEventListener("mouseleave",a),null==(e=i.floating)||e.removeEventListener("mouseleave",a),f&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",s)}}function t(e){if(clearTimeout(w.current),_.current=!1,d&&!Lt(x.current)||m>0&&!wr(y.current,"open"))return;const t=wr(y.current,"open",x.current);t?w.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function s(e){if(F())return;S.current();const t=Ot(i.floating);if(clearTimeout(E.current),N.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(w.current),b.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){j(),T(),F()||P(e,!0,"safe-polygon")}});const r=b.current;return t.addEventListener("mousemove",r),void(S.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==x.current||!Ft(i.floating,e.relatedTarget))&&P(e)}function a(e){F()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){j(),T(),F()||P(e)}})(e))}}),[i,l,e,d,m,f,P,T,j,r,n,v,h,y,g,o,F]),ir((()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&C()){k.current=!0;const e=i.floating;if(pt(i.domReference)&&e){var t;const n=Ot(i.floating).body;n.setAttribute(xr,"");const r=i.domReference,o=null==h||null==(t=h.nodesRef.current.find((e=>e.id===p)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,p,i,h,g,C]),ir((()=>{n||(x.current=void 0,N.current=!1,T(),j())}),[n,T,j]),a.useEffect((()=>()=>{T(),clearTimeout(w.current),clearTimeout(E.current),j()}),[l,i.domReference,T,j]);const A=a.useMemo((()=>{function e(e){x.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){_.current||v.current||r(!0,t,"hover")}d&&!Lt(x.current)||n||0===m||N.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(E.current),"touch"===x.current?o():(N.current=!0,E.current=window.setTimeout(o,m)))}}}),[d,r,n,v,m]),R=a.useMemo((()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){F()||P(e.nativeEvent,!1)}})),[P,F]);return a.useMemo((()=>l?{reference:A,floating:R}:{}),[l,A,R])}(_,{move:!1,enabled:!y&&p.includes("hover"),...g&&{handleClose:eo()}}),N=Wr(_,{enabled:!y&&p.includes("focus")}),C=zr(_),P=Xr(_,{role:"tooltip"}),{getReferenceProps:T,getFloatingProps:j}=Yr([k,S,N,C,P]),{isMounted:F,styles:A}=Jr(_,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),R={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],D="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var M;return(0,O.jsxs)(a.Fragment,{children:[(0,a.isValidElement)(l)&&(0,O.jsx)(a.Fragment,{children:(0,a.cloneElement)(l,{ref:Nm(l.ref,b.setReference),className:Re(l.props.className),...T()})},"tooltip-reference"),(0,O.jsx)(Ar,{id:d,root:u,children:F&&(0,O.jsxs)("div",{className:Re("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",R,"max-w-80 w-fit",c),ref:b.setFloating,style:{...E,...A},...j(),children:[(0,O.jsxs)("div",{children:[!!n&&(0,O.jsx)("span",{className:"font-semibold",children:n},"tooltip-title"),!!r&&(0,O.jsx)("div",{className:"font-normal",children:r},"tooltip-content")]}),o&&(0,O.jsx)(mr,{ref:w,context:_,className:Re("fill-current",D)})]})})]})};Cm.displayName="Tooltip";const Pm=(0,a.forwardRef)((({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:s=!1,...i},a)=>{if(!e)return null;let l="";return s&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,O.jsx)(t,{ref:a,className:Re("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[n],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],r),...i,children:e})}));Pm.displayName="Label";const Tm=({label:e,switchId:t,disabled:n=!1,children:r,size:o})=>{const s={xs:"text-xs leading-4 font-medium",sm:"text-sm leading-5 font-medium",md:"text-base leading-6 font-medium"},i={xs:"text-xs leading-4 font-normal",sm:"text-sm leading-5 font-normal",md:"text-sm leading-5 font-normal"},l={xs:"space-y-0.5",sm:"space-y-0.5",md:"space-y-1"};if((0,a.isValidElement)(e))return(0,O.jsxs)("div",{className:Re("inline-flex items-center gap-3","items-start"),children:[r,e]});const c=!e?.heading&&!e?.description,u=e?.heading&&e?.description?"items-start":"items-center";return c?r:(0,O.jsxs)("div",{className:Re("inline-flex",u,"gap-3"),children:[r,(()=>{const{heading:r="",description:a=""}=e||{};return(0,O.jsxs)("div",{className:Re("space-y-0.5",l[o]),children:[r&&(0,O.jsx)(Pm,{htmlFor:t,className:Re("m-0",s[o]),...n&&{variant:"disabled"},children:r}),a&&(0,O.jsx)(Pm,{tag:"p",variant:"help",className:Re("text-sm font-normal leading-5 m-0",i[o]),...n&&{variant:"disabled"},children:a})]})})()]})},jm=(0,a.forwardRef)((({id:e,onChange:t,value:n,defaultValue:r=!1,size:o="sm",disabled:s=!1,label:i={heading:"",description:""},name:l,className:c,...u},d)=>{const m="lg"===o?"md":o,f=(0,a.useMemo)((()=>typeof n<"u"),[n]),h=(0,a.useMemo)((()=>e||`switch-${((e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t})()}`),[]),[p,g]=(0,a.useState)(r),y="primary",v=(0,a.useCallback)((()=>f?n:p),[f,n,p]),x={primary:{input:"bg-toggle-off checked:bg-toggle-on focus:ring focus:ring-toggle-on focus:ring-offset-2 border border-solid border-toggle-off-border checked:border-toggle-on-border shadow-toggleContainer focus:outline-none checked:focus:border-toggle-on-border focus:border-toggle-off-border",toggleDial:"bg-toggle-dial-background shadow-toggleDial"}},w={md:{container:"w-11 h-6",toggleDial:"size-4 peer-checked:translate-x-5"},sm:{container:"w-10 h-5",toggleDial:"size-3 peer-checked:translate-x-5"},xs:{container:"w-8 h-4",toggleDial:"size-2.5 peer-checked:translate-x-3.75"}};return(0,O.jsx)(Tm,{label:i,switchId:h,disabled:s,size:m,children:(0,O.jsxs)("div",{className:Re("relative group/switch inline-block cursor-pointer rounded-full shrink-0",w[m].container,c),children:[(0,O.jsx)("input",{ref:d,id:h,type:"checkbox",className:Re("peer appearance-none absolute rounded-full cursor-pointer transition-colors duration-300 h-full w-full before:content-[''] checked:before:content-[''] m-0 checked:[background-image:none]",x[y].input,s&&"bg-toggle-off-disabled disabled:border-transparent disabled:cursor-not-allowed checked:disabled:bg-toggle-on-disabled disabled:shadow-toggle-disabled",!s&&{primary:{input:"group-hover/switch:bg-toggle-off-hover checked:group-hover/switch:bg-toggle-on-hover checked:group-hover/switch:border-toggle-on-border"}}[y].input),checked:v(),onChange:e=>{if(s)return;const n=e.target.checked;f||g(n),"function"==typeof t&&t(n)},disabled:s,name:l,...u}),(0,O.jsx)("label",{htmlFor:h,className:Re("peer/toggle-dial bg-white border rounded-full absolute cursor-pointer shadow-md before:content[''] before:transition-opacity before:opacity-0 hover:before:opacity-10 before:hidden border-none transition-all duration-300 top-2/4 not-rtl:left-1 rtl:right-1 -translate-y-2/4 before:w-10 before:h-10 before:rounded-full before:absolute before:top-2/4 not-rtl:before:left-2/4 rtl:before:right-2/4 before:-translate-y-2/4 before:-translate-x-2/4",w[m].toggleDial,x[y].toggleDial,s&&"peer-disabled:cursor-not-allowed",!s&&{md:"group-hover/switch:size-5 group-focus-within/switch:size-5 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",sm:"group-hover/switch:size-4 group-focus-within/switch:size-4 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",xs:"group-hover/switch:size-3.25 group-focus-within/switch:size-3.25 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5"}[m])})]})})}));jm.displayName="Switch";const Fm=am("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),Am=window.wp.apiFetch;var Rm=o.n(Am),Dm=[],Mm=function(){0!==Dm.length&&Dm.shift()()};const Lm=function(e){var t=e.widget,n=e.updateCounter,r=(e.showTooltip,t.id),o=t.icon,s=t.title,l=(t.infoText,t.is_pro),u=(t.is_active,t.slug,t.demo_url),d=(t.doc_url,t.description),m=(t.is_new,i((0,a.useState)(t.is_active),2)),f=m[0],h=m[1],p=i((0,a.useState)(!1),2),g=p[0],y=p[1],v=i((0,a.useState)(!1),2),x=v[0],w=v[1],b=i((0,a.useState)(!1),2),E=b[0],_=b[1];(0,a.useEffect)((function(){h(t.is_active)}),[t.is_active,n]);var k=function(e){var t=e?"hfe_deactivate_widget":"hfe_activate_widget",n=new window.FormData;n.append("action",t),n.append("nonce",hfe_admin_data.nonce),n.append("module_id",r),n.append("is_pro",l);try{var o=Rm()({url:hfe_admin_data.ajax_url,method:"POST",body:n});o.success?h(f):o.error}catch(e){}finally{y(!1),Mm()}};return c().createElement(c().Fragment,null,c().createElement("style",{dangerouslySetInnerHTML:{__html:"\n\t\t\t\t\t.hfe-uae-pro-link:focus,\n\t\t\t\t\t.hfe-uae-pro-link:active,\n\t\t\t\t\t.hfe-uae-pro-link:hover,\n\t\t\t\t\t.hfe-uae-pro-link:focus-visible {\n\t\t\t\t\t\toutline: none !important;\n\t\t\t\t\t\tbox-shadow: none !important;\n\t\t\t\t\t\tborder: none !important;\n\t\t\t\t\t}\n\t\t\t\t"}}),c().createElement(nt,{align:"center",containerType:"flex",direction:"column",justify:"between",gap:""},c().createElement("div",{className:"flex items-start justify-between w-full mb-4"},c().createElement("div",{className:"h-10 w-10 ".concat(null==o?void 0:o.props),style:{fontSize:"22px"}},o),c().createElement("div",{className:"flex items-center gap-x-2"},l?c().createElement(Cm,{arrow:!0,content:c().createElement("div",{style:{textAlign:"left",maxWidth:"280px"}},c().createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:"8px",gap:"6px"}},c().createElement("span",{style:{fontSize:"14px",fontWeight:"600",color:"#ffffff",lineHeight:"1.2"}},s),c().createElement("span",{style:{backgroundColor:"#C026D3",color:"#ffffff",fontSize:"10px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",textTransform:"uppercase",letterSpacing:"0.5px"}},(0,fm.__)("PRO","header-footer-elementor"))),c().createElement("p",{style:{fontSize:"12px",color:"#E5E7EB",margin:"0 0 12px 0",lineHeight:"1.4"}},d),c().createElement("a",{href:"https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=pro-widgets&utm_campaign=uae-upgrade",target:"_blank",rel:"noopener noreferrer",style:{color:"#C026D3",textDecoration:"none",outline:"none",fontSize:"12px",fontWeight:"600"},className:"hfe-uae-pro-link focus:outline-none"},(0,fm.__)("Get Full Control","header-footer-elementor"))),placement:"bottom",variant:"dark",size:"md",triggers:["click"],open:x,onOpenChange:w},c().createElement("div",{onClick:function(){return w(!x)},style:{cursor:"pointer"}},c().createElement(jm,{onChange:function(){},size:"xs",value:!1,disabled:!0,style:{outline:"none",cursor:"default",pointerEvents:"none"},className:"hfe-remove-ring outline-none"}))):c().createElement(jm,{onChange:function(){g||(y(!0),f?(h(!1),Dm.push((function(){return k(f)}))):(h(!0),Dm.push((function(){return k(f)}))),1===Dm.length&&Mm())},size:"xs",value:f,style:{outline:"none"},className:"hfe-remove-ring outline-none"}))),c().createElement("div",{className:"flex items-start justify-between w-full"},c().createElement("p",{className:"text-sm font-medium text-text-primary m-0 w-full leading-tight flex items-center overflow-hidden",style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",wordBreak:"break-word"}},s),c().createElement("div",{className:"ml-2"},c().createElement(Cm,{arrow:!0,content:c().createElement("div",null,u&&c().createElement("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:"text-white focus:outline-none m-0 mb-1 hfe-remove-ring",style:{textDecoration:"none",lineHeight:"1.5rem",outline:"none",border:"none",boxShadow:"none",fontSize:"12px"}},(0,fm.__)("View Demo","header-footer-elementor"))),placement:"bottom",title:"",triggers:["click"],variant:"dark",size:"xs",open:E,onOpenChange:_},c().createElement("div",{onClick:function(e){e.stopPropagation(),_(!E)},onMouseEnter:function(){return _(!0)},onMouseLeave:function(){return _(!1)},style:{cursor:u?"pointer":"default"},className:"inline-flex items-center"},c().createElement(Fm,{className:"h-4 w-4",size:16,color:"#A0A5B2"})))))))},Om=({variant:e="rectangular",className:t,...n})=>{const r={circular:"rounded-full bg-gray-200 ",rectangular:"rounded-md bg-gray-200"}[e],o={circular:"size-10",rectangular:"w-96 h-3"}[e];return(0,O.jsx)("div",{className:Re(r,"animate-pulse",o,t),...n})},Im=function(){var e=i((0,a.useState)(null),2),t=e[0],n=e[1],r=i((0,a.useState)(!0),2),o=r[0],s=r[1],l=i((0,a.useState)(!0),2),u=l[0];return l[1],(0,a.useEffect)((function(){s(!0),Rm()({path:"/hfe/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){var t=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t.push({id:n,slug:r.slug,title:r.title,keywords:r.keywords,icon:c().createElement("i",{className:r.icon}),title_url:r.title_url,default:r.default,doc_url:r.doc_url,is_pro:r.is_pro,description:r.description,is_active:void 0===r.is_activate||r.is_activate,demo_url:void 0!==r.demo_url?r.demo_url:r.doc_url})}return t}(e);n(t),s(!1)})).catch((function(e){s(!1)}))}),[]),c().createElement("div",{className:"rounded-lg bg-white w-full mb-6"},c().createElement("div",{className:"flex items-center justify-between p-4",style:{paddingBottom:"0"}},c().createElement("p",{className:"m-0 text-sm font-semibold text-text-primary"},(0,fm.__)("Widgets / Features","header-footer-elementor")),c().createElement(ct,{icon:c().createElement(lm,null),iconPosition:"right",variant:"ghost",className:"hfe-remove-ring mb-2",style:{color:"#6005FF",background:"none",border:"none",padding:0,cursor:"pointer"},onClick:function(){return window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=navigation-bar&utm_campaign=uae-lite-upgrade","_blank")}},(0,fm.__)("Unlock All Features","header-footer-elementor"))),c().createElement("div",{className:"flex bg-black flex-col rounded-lg p-4"},o?c().createElement(nt,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},Sm(Array(16)).map((function(e,t){return c().createElement(nt.Item,{key:t,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-6 space-y-2"},c().createElement(Om,{className:"w-12 h-2 rounded-md"}),c().createElement(Om,{className:"w-16 h-2 rounded-md"}),c().createElement(Om,{className:"w-12 h-2 rounded-md"}))}))):c().createElement(nt,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},null==t?void 0:t.slice(10,18).map((function(e){return c().createElement(nt.Item,{key:e.id,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary px-4",style:{paddingTop:"8px",paddingBottom:"8px"}},c().createElement(Lm,{widget:e,showTooltip:u,key:e.id,updateCounter:0}))}))),c().createElement("div",{className:"flex items-center justify-center gap-x-2 "},c().createElement(D,{to:hm.widgets.path,className:"text-sm font-normal text-text-primary cursor-pointer",style:{lineHeight:"1rem",paddingTop:"20px"}},(0,fm.__)("View More Widgets","header-footer-elementor"),c().createElement(lm,{className:"ml-1 font-semibold",size:14})))))},Bm=({title:e="",description:t="",icon:n=null,iconPosition:r="right",tag:o="h2",size:s="sm",className:i=""})=>{const a={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!e)return null;const l=()=>(0,O.jsx)(o,{className:Re("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[s]),children:e});return t?(0,O.jsxs)("div",{className:i,children:[(0,O.jsxs)("div",{children:[n&&"left"===r&&(0,O.jsxs)("div",{className:Re("flex items-center",a[s]),children:[n,l()]}),n&&"right"===r&&(0,O.jsxs)("div",{className:Re("flex items-center",a[s]),children:[l(),n]}),!n&&l()]}),(0,O.jsx)("p",{className:Re("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[s]),children:t})]}):(0,O.jsxs)("div",{className:i,children:[n&&"left"===r&&(0,O.jsxs)("div",{className:Re("flex items-center",a[s]),children:[n,l()]}),n&&"right"===r&&(0,O.jsxs)("div",{className:Re("flex items-center",a[s]),children:[l(),n]}),!n&&l()]})},Vm=am("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]),zm=am("BookOpenText",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]]),Um=am("NotepadText",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"16",height:"18",x:"4",y:"4",rx:"2",key:"1u9h20"}],["path",{d:"M8 10h6",key:"3oa6kw"}],["path",{d:"M8 14h8",key:"1fgep2"}],["path",{d:"M8 18h5",key:"17enja"}]]),Wm=am("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),$m=function(){return c().createElement("div",{className:"box-border hfe-dashboard-quick-access p-4 bg-white rounded-lg shadow-md",style:{width:"-webkit-fill-available"}},c().createElement(Bm,{className:"mb-2",icon:null,iconPosition:"right",size:"xs",tag:"h3",title:(0,fm.__)("Quick Access","header-footer-elementor")}),c().createElement(nt,{align:"stretch",className:"p-1 rounded-lg bg-[#F9FAFB] gap-1",containerType:"flex",direction:"column",gap:"",justify:"start",style:{width:"100%",backgroundColor:"#F9FAFB"}},c().createElement(nt.Item,{alignSelf:"auto",className:"p-4 bg-white flex items-center justify-between rounded-lg shadow-container-item",order:"none",shrink:1},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(Vm,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ultimateelementor.com/contact/","_blank")}},(0,fm.__)("VIP Priority Support","header-footer-elementor")),c().createElement(rm,{label:(0,fm.__)("PRO","header-footer-elementor"),size:"xs",variant:"inverse"})),c().createElement(nt.Item,{alignSelf:"auto",className:"p-4 bg-white rounded-lg shadow-container-item",order:"none",shrink:1},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(zm,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ultimateelementor.com/docs/getting-started-with-ultimate-addons-for-elementor-lite/","_blank")}},(0,fm.__)("Knowledge Base","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-4 bg-white rounded-lg shadow-container-item"},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(cm,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ultimateelementor.com/docs/","_blank")}},(0,fm.__)("Help Centre","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-4 bg-white rounded-lg shadow-container-item"},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(Um,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ideas.ultimateelementor.com/boards/feature-requests","_blank")}},(0,fm.__)("Request a Feature","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-4 bg-white rounded-lg shadow-container-item"},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(Wm,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://wordpress.org/support/plugin/header-footer-elementor/reviews/#new-post","_blank")}},(0,fm.__)("Rate Us","header-footer-elementor")))))},Hm=am("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),qm=function(){return c().createElement(Bm,{className:"hfe-header-title",description:"",icon:null,iconPosition:"right",size:"xs",tag:"h6",title:(0,fm.__)("Formerly Elementor Header & Footer Builder","header-footer-elementor")})},Ym=function(){return c().createElement("div",null,c().createElement(nt,{align:"center",className:"bg-background-primary border-[0.5px] border-subtle rounded-xl shadow-sm mb-6 p-8 flex flex-col lg:flex-row",containerType:"flex",direction:"row",gap:"sm"},c().createElement(nt.Item,{shrink:1,className:"flex-1"},c().createElement(Bm,{description:"",icon:null,iconPosition:"right",className:"max-w-lg",size:"lg",tag:"h3",title:(0,fm.__)("Welcome to Ultimate Addons for Elementor!","header-footer-elementor")}),c().createElement(qm,null),c().createElement("p",{className:"text-sm font-medium text-text-tertiary m-0 mt-2"},(0,fm.__)("Effortlessly design modern websites with UAE using our powerful range of widgets & features. Get started by selecting an option based on your needs.","header-footer-elementor")),c().createElement("div",{className:"flex items-center pt-6 gap-2 flex-wrap"},c().createElement(ct,{iconPosition:"right",variant:"primary",className:"text-[#6005FF] border-none hfe-remove-ring flex-shrink-0",style:{backgroundColor:"var(--Colors-Button-button-secondary, #DDD6FE)",transition:"background-color 0.3s ease",border:"none",outline:"none",boxShadow:"none"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#4B00CC",e.currentTarget.style.color="#fff"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="var(--Colors-Button-button-secondary, #DDD6FE)",e.currentTarget.style.color="#6005FF"},onClick:function(){window.open(hfeSettingsData.hfe_post_url,"_blank")}},(0,fm.__)("Create Header/Footer","header-footer-elementor")),c().createElement(ct,{icon:c().createElement(Hm,null),iconPosition:"right",variant:"outline",className:"hfe-remove-ring flex-shrink-0",style:{color:"#000",borderColor:"#E9DFFC"},onMouseEnter:function(e){return e.currentTarget.style.color="#000000"},onMouseLeave:function(e){return(e.currentTarget.style.color="#000")&&(e.currentTarget.style.borderColor="#E9DFFC")},onClick:function(){window.open(hfeSettingsData.elementor_page_url,"_blank")}},(0,fm.__)("Create New Page","header-footer-elementor")),c().createElement("div",{style:{color:"black",background:"none",border:"none",padding:0,cursor:"pointer"},className:"flex-shrink-0",onMouseEnter:function(e){return e.currentTarget.style.color="#6005ff"},onMouseLeave:function(e){return e.currentTarget.style.color="black"},onClick:function(){window.open("https://ultimateelementor.com/docs/getting-started-with-ultimate-addons-for-elementor-lite/","_blank")}}))),c().createElement(nt.Item,{className:"md:mt-0 mt-4 flex-shrink-0"},c().createElement("iframe",{width:"280",height:"160",src:"https://www.youtube.com/embed/ZeogOxqdKJI",frameBorder:"0",style:{borderRadius:"8px"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))))},Gm=am("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]),Xm=am("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Km=function(){return c().createElement("div",null,c().createElement(nt,{className:"bg-background-primary px-4 border-[0.5px] border-subtle rounded-xl shadow-sm",containerType:"flex",direction:"column",gap:"xs"},c().createElement(nt.Item,{className:"flex flex-col pt-6 justify-between",style:{width:"65%"}},c().createElement(nt.Item,{className:"flex justify-center items-center",style:{width:"34%"}},c().createElement("img",{src:"".concat(hfeSettingsData.augmented_reality),alt:(0,fm.__)("Column Showcase","header-footer-elementor"),className:"object-contain w-full rounded"})),c().createElement("div",{className:"pt-2 px-2 flex flex-col"},c().createElement(Bm,{description:"",icon:c().createElement(Gm,null),iconPosition:"left",size:"xs",tag:"p",title:(0,fm.__)("Unlock Pro Widgets","header-footer-elementor"),className:"text-xs py-1 text-[#C026D3]"}),c().createElement(Bm,{description:"",icon:"",iconPosition:"left",tag:"h6",title:c().createElement(c().Fragment,null,(0,fm.__)("Design Smarter with Ultimate Addons!","header-footer-elementor")),className:"py-1 text-[16px] font-normal text-text-primary"}),c().createElement("p",{className:"m-0 text-base max-w-96 text-[#4F4E7C]"},(0,fm.__)("Craft stunning websites faster with powerful widgets, advanced features, and total flexibility.","header-footer-elementor"))),c().createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 m-0 pt-2"},c().createElement("ul",{className:"list-none font-normal space-y-2 text-sm text-[#111827]"},c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(Xm,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,fm.__)("50+ Widgets","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(Xm,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,fm.__)("Conversion Extensions","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(Xm,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,fm.__)("Display Conditions","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(Xm,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,fm.__)("White Label","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(Xm,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,fm.__)("WooCommerce Builder","header-footer-elementor")))),c().createElement("ul",{className:"list-none font-normal space-y-2 text-sm text-[#111827]"},c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(Xm,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,fm.__)("200+ Section Blocks","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(Xm,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,fm.__)("Form & Pop-up Builder","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(Xm,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,fm.__)("Animation Effects","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(Xm,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,fm.__)("Bloggers Toolkit","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(Xm,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,fm.__)("Social Media Bundle","header-footer-elementor")))))),c().createElement("div",{className:"flex items-center m-0 pb-4 w-full justify-center"},c().createElement(ct,{iconPosition:"right",variant:"primary",className:"bg-[#6005FF] w-full m-0 h-10 flex items-center justify-center hfe-remove-ring",style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease",outline:"none",height:"40px"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=unlock-ultimate-feature&utm_campaign=uae-lite-upgrade","_blank")}},(0,fm.__)("View Plans","header-footer-elementor")))))};function Zm(e,t,n,r,o,s,i){try{var a=e[s](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Jm(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function i(e){Zm(s,r,o,i,a,"next",e)}function a(e){Zm(s,r,o,i,a,"throw",e)}i(void 0)}))}}const Qm=window.regeneratorRuntime;var ef=o.n(Qm);const tf=(0,a.createContext)({}),nf=()=>(0,a.useContext)(tf),rf={open:{opacity:1},exit:{opacity:0}},of={duration:.2},sf=({open:e,setOpen:t,children:n,trigger:r=null,className:o,exitOnClickOutside:s=!1,exitOnEsc:i=!0,design:l="simple",scrollLock:c=!0})=>{const u=void 0!==e&&void 0!==t,[d,m]=(0,a.useState)(!1),f=(0,a.useRef)(null),h=(0,a.useRef)(null),p=(0,a.useMemo)((()=>u?e:d),[e,d]),g=(0,a.useMemo)((()=>u?t:m),[m,m]),y=()=>{p||g(!0)},v=()=>{p&&g(!1)},x=(0,a.useCallback)((()=>(0,a.isValidElement)(r)?(0,a.cloneElement)(r,{onClick:De(y,r?.props?.onClick)}):"function"==typeof r?r({onClick:y}):null),[r,y,v]),w=e=>{"Escape"===e.key&&i&&v()},b=e=>{s&&f.current&&!f.current.contains(e.target)&&v()};return(0,a.useEffect)((()=>(window.addEventListener("keydown",w),document.addEventListener("mousedown",b),()=>{window.removeEventListener("keydown",w),document.removeEventListener("mousedown",b)})),[p]),(0,a.useEffect)((()=>{if(!c)return;const e=document.querySelector("html");return p&&e&&(e.style.overflow="hidden"),()=>{e&&(e.style.overflow="")}}),[p]),(0,O.jsxs)(O.Fragment,{children:[x(),(0,O.jsx)(tf.Provider,{value:{open:p,setOpen:g,handleClose:v,design:l,dialogContainerRef:h,dialogRef:f},children:(0,O.jsx)("div",{ref:h,className:Re("fixed z-999999 w-0 h-0 overflow-visible",o),children:n})})]})};sf.displayName="Dialog";const af=({children:e,className:t})=>{const{open:n,handleClose:r,dialogRef:o}=nf();return(0,O.jsx)(Dd,{children:n&&(0,O.jsx)(Cd.div,{className:"fixed inset-0 overflow-y-auto",initial:"exit",animate:"open",exit:"exit",variants:rf,role:"dialog",transition:of,children:(0,O.jsx)("div",{className:"flex items-center justify-center min-h-full",children:(0,O.jsx)("div",{ref:o,className:Re("flex flex-col gap-5 w-120 h-fit bg-background-primary border border-solid border-border-subtle rounded-xl shadow-soft-shadow-2xl my-5 overflow-hidden",t),children:"function"==typeof e?e({close:r}):e})})})})};af.displayName="Dialog.Panel";const lf=({className:e,...t})=>{const{open:n,dialogContainerRef:r}=nf();return r?.current?(0,O.jsx)(O.Fragment,{children:(0,rn.createPortal)((0,O.jsx)(Dd,{children:n&&(0,O.jsx)(Cd.div,{className:Re("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:rf,transition:of})}),r.current)}):null};lf.displayName="Dialog.Backdrop";const cf=({children:e,className:t,...n})=>(0,O.jsx)("div",{className:Re("space-y-2 px-5 pt-5 pb-1",t),...n,children:e});cf.displayName="Dialog.Header";const uf=({children:e,as:t="h3",className:n,...r})=>(0,O.jsx)(t,{className:Re("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e});uf.displayName="Dialog.Title";const df=({children:e,as:t="p",className:n,...r})=>(0,O.jsx)(t,{className:Re("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e});df.displayName="Dialog.Description";const mf=({className:e,...t})=>(0,O.jsx)("button",{className:Re("bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none outline-none shadow-none",e),"aria-label":"Close dialog",...t,children:(0,O.jsx)(nm,{className:"size-4 text-text-primary shrink-0"})}),ff=({children:e,as:t=a.Fragment,...n})=>{const{handleClose:r}=nf();return e?t===a.Fragment?"function"==typeof e?e({close:r}):(0,a.cloneElement)(e,{onClick:r}):(0,O.jsx)(t,{...n,onClick:r,children:e}):(0,O.jsx)(mf,{onClick:r,...n})};ff.displayName="Dialog.CloseButton";const hf=({children:e,className:t,...n})=>(0,O.jsx)("div",{className:Re("px-5",t),...n,children:e});hf.displayName="Dialog.Body";const pf=({children:e,className:t})=>{const{design:n,handleClose:r}=nf();return(0,O.jsx)("div",{className:Re("p-4 flex justify-end gap-3",{"bg-background-secondary":"footer-divided"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};pf.displayName="Dialog.Footer",sf.Panel=af,sf.Title=uf,sf.Description=df,sf.CloseButton=ff,sf.Header=cf,sf.Body=hf,sf.Footer=pf,sf.Backdrop=lf;const gf=function(e){var t=e.plugin,n=e.setUpdateCounter,r=t.path,o=t.slug,s=t.siteUrl,l=t.icon,u=t.type,d=t.name,m=t.zipUrl,f=t.desc,h=(t.wporg,t.isFree,t.action,t.status),p=t.settings_url,g=i((0,a.useState)(!1),2),y=g[0],v=g[1],x=i((0,a.useState)(null),2),w=x[0],b=x[1],E=function(e){v(!1);var t=new window.FormData;t.append("action","hfe_recommended_plugin_activate"),t.append("nonce",hfe_admin_data.nonce),t.append("plugin",e.init),t.append("type",e.type),t.append("slug",e.slug);var r=document.querySelector('[data-slug="'.concat(e.slug,'"]')),o=r.querySelector("span");o.innerText=(0,fm.__)("Activating..","header-footer-elementor"),Rm()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(t){if(t.success)o&&(r.style.color="#16A34A",r.dataset.action="site_redirect",r.classList.add("hfe-plugin-activated"),o.innerText=(0,fm.__)("Activated","header-footer-elementor"),window.open(p,"_blank"),setTimeout((function(){n((function(e){return e+1}))}),5e3));else{e.type;var s=document.querySelector('[data-slug="'.concat(e.slug,'"]'));if(s){var i=s.querySelector("span");i&&(i.innerText=(0,fm.__)("Activate","header-footer-elementor"))}}}))};return c().createElement(nt,{align:"center",containerType:"flex",direction:"column",justify:"between",gap:"lg"},c().createElement("div",{className:"flex items-center justify-between w-full"},c().createElement("div",{className:"h-5 w-5"},c().createElement("img",{src:l,alt:"Recommended Plugins/Themes",className:"w-full h-auto rounded cursor-pointer",style:{width:"140px",height:"140px",marginTop:"-55px"}})),c().createElement("div",{className:"flex items-center gap-x-2"},c().createElement(sf,{design:"simple",open:y,setOpen:v},c().createElement(sf.Backdrop,null),c().createElement(sf.Panel,null,c().createElement(sf.Header,null,c().createElement("div",{className:"flex items-center justify-between"},c().createElement(sf.Title,null,(0,fm.__)("Activate Theme","header-footer-elementor"))),c().createElement(sf.Description,null,(0,fm.__)("Are you sure you want to switch your current theme to Astra?","header-footer-elementor"))),c().createElement(sf.Footer,null,c().createElement(ct,{onClick:function(){return E(w)}},(0,fm.__)("Yes","header-footer-elementor")),c().createElement(ct,{variant:"outline",onClick:function(){return v(!1)}},(0,fm.__)("Close","header-footer-elementor"))))))),c().createElement("div",{className:"flex flex-col w-full pb-4"},c().createElement("p",{className:"text-base font-medium text-text-primary pb-1 m-0 cursor-pointer",onClick:function(){return window.open(t.siteurl,"_blank")},style:{marginTop:"-8px"}},(0,fm.__)(d,"header-footer-elementor")),c().createElement("p",{className:"text-sm font-medium text-text-tertiary m-0"},(0,fm.__)(f,"header-footer-elementor")),c().createElement("div",{className:"hfe-remove-ring"},c().createElement(ct,{size:"sm",className:"cursor-pointer hfe-remove-ring bg-white hover:bg-gray-100 hover:text-gray-900 hover:shadow-md text-gray-800 rounded mt-4 px-2 py-2 transition-all duration-200 ease-in-out transform hover:scale-105 hover:border-gray-400",onClick:function(e){var t=e.currentTarget.dataset.action,n=new window.FormData,r={init:e.currentTarget.dataset.init,type:e.currentTarget.dataset.type,slug:e.currentTarget.dataset.slug,name:e.currentTarget.dataset.pluginname};switch(t){case"hfe_recommended_plugin_activate":"theme"===r.type?(b(r),v(!0)):E(r);break;case"hfe_recommended_plugin_install":n.append("action","theme"===r.type?"hfe_recommended_theme_install":"hfe_recommended_plugin_install"),n.append("_ajax_nonce",hfe_admin_data.installer_nonce),n.append("slug",r.slug),e.target.innerText=(0,fm.__)("Installing..","header-footer-elementor"),Rm()({url:hfe_admin_data.ajax_url,method:"POST",body:n}).then((function(t){t.success||"folder_exists"===t.errorCode?(e.target.innerText=(0,fm.__)("Installed","header-footer-elementor"),"theme"===r.type?(document.querySelector('[data-slug="'.concat(r.slug,'"]')).dataset.action="hfe_recommended_plugin_activate",e.target.innerText=(0,fm.__)("Activate","header-footer-elementor")):E(r)):(e.target.innerText=(0,fm.__)("Install","header-footer-elementor"),alert("theme"===r.type?(0,fm.__)("Theme Installation failed, Please try again later.","header-footer-elementor"):(0,fm.__)("Plugin Installation failed, Please try again later.","header-footer-elementor")))}));break;case"site_redirect":window.open(s,"_blank")}},"data-plugin":m,"data-type":u,"data-pluginname":d,"data-slug":o,"data-site":s,"data-init":r,"data-action":function(e){return"Activated"===e?"site_redirect":"Installed"===e?"hfe_recommended_plugin_activate":"hfe_recommended_plugin_install"}(h),style:{outline:"none",border:"1px solid #ccc"},onMouseEnter:function(e){return e.currentTarget.style.color="#5C2EDE"},onMouseLeave:function(e){return e.currentTarget.style.color="black"}},"Activated"===h?(0,fm.__)("Visit Site","header-footer-elementor"):"Installed"===h?(0,fm.__)("Activate","header-footer-elementor"):(0,fm.__)("Install & Activate","header-footer-elementor")))))};function yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const vf=function(){var e=i((0,a.useState)([]),2),t=e[0],n=e[1],r=i((0,a.useState)(!0),2),o=r[0],s=r[1],l=i((0,a.useState)(0),2),u=l[0],d=l[1],m=i((0,a.useState)(!1),2),f=m[0],h=m[1];function g(e){return Object.keys(e).map((function(t){return function(e){for(var t=1;t"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Rf,Mf=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Lf=/\/\*[^]*?\*\/| +/g,Of=/\n+/g,If=(e,t)=>{let n="",r="",o="";for(let s in e){let i=e[s];"@"==s[0]?"i"==s[1]?n=s+" "+i+";":r+="f"==s[1]?If(i,s):s+"{"+If(i,"k"==s[1]?"":t)+"}":"object"==typeof i?r+=If(i,t?t.replace(/([^,])+/g,(e=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):s):null!=i&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=If.p?If.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Bf={},Vf=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Vf(e[n]);return t}return e};function zf(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let s=Vf(e),i=Bf[s]||(Bf[s]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(s));if(!Bf[i]){let t=s!==e?e:(e=>{let t,n,r=[{}];for(;t=Mf.exec(e.replace(Lf,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Of," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Of," ").trim();return r[0]})(e);Bf[i]=If(o?{["@keyframes "+i]:t}:t,n?"":"."+i)}let a=n&&Bf.g?Bf.g:null;return n&&(Bf.g=Bf[i]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Bf[i],t,r,a),i})(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,o)=>{let s=t[o];if(s&&s.call){let e=s(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;s=t?"."+t:e&&"object"==typeof e?e.props?"":If(e,""):!1===e?"":e}return e+r+(null==s?"":s)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Df(t.target),t.g,t.o,t.k)}zf.bind({g:1});let Uf,Wf,$f,Hf=zf.bind({k:1});function qf(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),l=a.className||o.className;n.p=Object.assign({theme:Wf&&Wf()},a),n.o=/ *go\d+/.test(l),a.className=zf.apply(n,r)+(l?" "+l:""),t&&(a.ref=i);let c=e;return e[0]&&(c=a.as||e,delete a.as),$f&&c[0]&&$f(a),Uf(c,a)}return t?t(o):o}}var Yf=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Gf=(()=>{let e=0;return()=>(++e).toString()})(),Xf=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Kf=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return Kf(e,{type:e.toasts.find((e=>e.id===n.id))?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},Zf=[],Jf={toasts:[],pausedAt:void 0},Qf=e=>{Jf=Kf(Jf,e),Zf.forEach((e=>{e(Jf)}))},eh={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},th=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||Gf()}))(t,e,n);return Qf({type:2,toast:r}),r.id},nh=(e,t)=>th("blank")(e,t);nh.error=th("error"),nh.success=th("success"),nh.loading=th("loading"),nh.custom=th("custom"),nh.dismiss=e=>{Qf({type:3,toastId:e})},nh.remove=e=>Qf({type:4,toastId:e}),nh.promise=(e,t,n)=>{let r=nh.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let o=t.success?Yf(t.success,e):void 0;return o?nh.success(o,{id:r,...n,...null==n?void 0:n.success}):nh.dismiss(r),e})).catch((e=>{let o=t.error?Yf(t.error,e):void 0;o?nh.error(o,{id:r,...n,...null==n?void 0:n.error}):nh.dismiss(r)})),e};var rh=(e,t)=>{Qf({type:1,toast:{id:e,height:t}})},oh=()=>{Qf({type:5,time:Date.now()})},sh=new Map,ih=Hf`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,ah=Hf`
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}`,lh=Hf`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
}`,ch=qf("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
animation: ${ih} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
animation: ${ah} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${e=>e.secondary||"#fff"};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
animation: ${lh} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
`,uh=Hf`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,dh=qf("div")`
width: 12px;
height: 12px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: ${e=>e.secondary||"#e0e0e0"};
border-right-color: ${e=>e.primary||"#616161"};
animation: ${uh} 1s linear infinite;
`,mh=Hf`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,fh=Hf`
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
}`,hh=qf("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
animation: ${mh} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
animation: ${fh} 0.2s ease-out forwards;
opacity: 0;
animation-delay: 200ms;
position: absolute;
border-right: 2px solid;
border-bottom: 2px solid;
border-color: ${e=>e.secondary||"#fff"};
bottom: 6px;
left: 6px;
height: 10px;
width: 6px;
}
`,ph=qf("div")`
position: absolute;
`,gh=qf("div")`
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
`,yh=Hf`
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
}`,vh=qf("div")`
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
animation: ${yh} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
`,xh=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?a.createElement(vh,null,t):t:"blank"===n?null:a.createElement(gh,null,a.createElement(dh,{...r}),"loading"!==n&&a.createElement(ph,null,"error"===n?a.createElement(ch,{...r}):a.createElement(hh,{...r})))},wh=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,bh=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,Eh=qf("div")`
display: flex;
align-items: center;
background: #fff;
color: #363636;
line-height: 1.3;
will-change: transform;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
max-width: 350px;
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
`,_h=qf("div")`
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
`,kh=a.memo((({toast:e,position:t,style:n,children:r})=>{let o=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Xf()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[wh(n),bh(n)];return{animation:t?`${Hf(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Hf(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},s=a.createElement(xh,{toast:e}),i=a.createElement(_h,{...e.ariaProps},Yf(e.message,e));return a.createElement(Eh,{className:e.className,style:{...o,...n,...e.style}},"function"==typeof r?r({icon:s,message:i}):a.createElement(a.Fragment,null,s,i))}));!function(e){If.p=void 0,Uf=e,Wf=void 0,$f=void 0}(a.createElement);var Sh=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let s=a.useCallback((t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;r(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,r]);return a.createElement("div",{ref:s,className:t,style:n},o)},Nh=zf`
z-index: 9999;
> * {
pointer-events: auto;
}
`,Ch=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:l,handlers:c}=(e=>{let{toasts:t,pausedAt:n}=((e={})=>{let[t,n]=(0,a.useState)(Jf),r=(0,a.useRef)(Jf);(0,a.useEffect)((()=>(r.current!==Jf&&n(Jf),Zf.push(n),()=>{let e=Zf.indexOf(n);e>-1&&Zf.splice(e,1)})),[]);let o=t.toasts.map((t=>{var n,r,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||eh[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}}));return{...t,toasts:o}})(e);(0,a.useEffect)((()=>{if(n)return;let e=Date.now(),r=t.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>nh.dismiss(t.id)),n);t.visible&&nh.dismiss(t.id)}));return()=>{r.forEach((e=>e&&clearTimeout(e)))}}),[t,n]);let r=(0,a.useCallback)((()=>{n&&Qf({type:6,time:Date.now()})}),[n]),o=(0,a.useCallback)(((e,n)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:s}=n||{},i=t.filter((t=>(t.position||s)===(e.position||s)&&t.height)),a=i.findIndex((t=>t.id===e.id)),l=i.filter(((e,t)=>te.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[t]);return(0,a.useEffect)((()=>{t.forEach((e=>{if(e.dismissed)((e,t=1e3)=>{if(sh.has(e))return;let n=setTimeout((()=>{sh.delete(e),Qf({type:4,toastId:e})}),t);sh.set(e,n)})(e.id,e.removeDelay);else{let t=sh.get(e.id);t&&(clearTimeout(t),sh.delete(e.id))}}))}),[t]),{toasts:t,handlers:{updateHeight:rh,startPause:oh,endPause:r,calculateOffset:o}}})(n);return a.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map((n=>{let s=n.position||t,i=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Xf()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}})(s,c.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return a.createElement(Sh,{id:n.id,key:n.id,onHeightUpdate:c.updateHeight,className:n.visible?Nh:"",style:i},"custom"===n.type?Yf(n.message,n):o?o(n):a.createElement(kh,{toast:n,position:s}))})))},Ph=nh,Th=[{id:"1",title:(0,fm.__)("Option 1 (Recommended)","header-footer-elementor"),description:(0,fm.__)("This option will automatically replace your theme's header and footer files with custom templates from the plugin. It works with most themes and is selected by default.","header-footer-elementor"),value:"1"},{id:"2",title:(0,fm.__)("Option 2","header-footer-elementor"),description:(0,fm.__)("This option will automatically replace your theme's header and footer files with custom templates from the plugin. It works with most themes and is selected by default.","header-footer-elementor"),value:"2"}];const jh=function(){if("no"===hfeSettingsData.show_theme_support)return null;var e=i((0,a.useState)(hfeSettingsData.theme_option),2),t=e[0],n=e[1],r=i((0,a.useState)(!0),2),o=r[0],s=r[1];(0,a.useEffect)((function(){s(!1)}),[]);var l=function(e){var t=e.target.value;n(t),o||u(t)},u=function(){var e=Jm(ef().mark((function e(t){var n;return ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(hfe_admin_data.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"save_theme_compatibility_option",hfe_compatibility_option:t,nonce:hfe_admin_data.nonce})});case 3:return n=e.sent,e.next=6,n.json();case 6:e.sent.success?Ph.success((0,fm.__)("Settings saved successfully!","header-footer-elementor")):Ph.error((0,fm.__)("Failed to save settings!","header-footer-elementor")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),Ph.error((0,fm.__)("Failed to save settings!","header-footer-elementor"));case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}();return c().createElement(c().Fragment,null,c().createElement(Bm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,fm.__)("Theme Support","header-footer-elementor")}),c().createElement(nt,{align:"stretch",className:"bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column",gap:"sm",justify:"start",style:{marginTop:"24px",maxWidth:"696px"}},c().createElement(nt.Item,{className:"flex flex-col space-y-1"},c().createElement("p",{className:"text-base font-semibold m-0"},(0,fm.__)("Select Option to Add Theme Support","header-footer-elementor")),c().createElement("p",{className:"text-sm font-normal m-0"},(0,fm.__)("To ensure compatibility between the header/footer and your theme, please choose one of the following options to enable theme support:","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-2 space-y-4",alignSelf:"auto",order:"none"},Th.map((function(e){return c().createElement("div",{key:e.id,className:"flex items-start gap-1 justify-center cursor-pointer"},c().createElement("input",{id:e.id,value:e.value,type:"radio",className:"mt-1 cursor-pointer hfe-radio-field",name:"theme-support-option",onChange:l,checked:t===e.value}),c().createElement("div",{className:"flex flex-col cursor-pointer"},c().createElement(Pm,{size:"sm",variant:"neutral",className:"text-sm font-semibold text-text-secondary cursor-pointer flex flex-col items-start justify-start",htmlFor:e.id},e.title,":",c().createElement("p",{className:"m-0 text-sm font-normal text-text-secondary cursor-pointer"},e.description))))}))),c().createElement("div",{className:"flex items-center p-4 border rounded-lg text-start",style:{paddingTop:"16px",paddingBottom:"16px",backgroundColor:"#F3F0FF"}},c().createElement("p",{className:"m-0 text-sm"},c().createElement("strong",null,(0,fm.__)("Note:","header-footer-elementor"))," ",(0,fm.__)("If neither option works, please contact your theme author to add support for this plugin.","header-footer-elementor")))),c().createElement(Ch,{position:"top-right",reverseOrder:!1,gutter:8,containerStyle:{top:20,right:20,marginTop:"80px"},toastOptions:{duration:5e3,style:{background:"white"},success:{duration:3e3,style:{color:""},iconTheme:{primary:"#6005ff",secondary:"#fff"}}}}))},Fh=function(){var e=hfeSettingsData.uaelite_versions,t=(0,a.useRef)(e?e[0].value:""),n=i((0,a.useState)(e?e[0].value:""),2),r=n[0],o=n[1],s=i((0,a.useState)("elementor-header-footer"),2),l=(s[0],s[1]),u=i((0,a.useState)(!1),2),d=u[0],m=u[1];return(0,a.useEffect)((function(){}),[d]),c().createElement(c().Fragment,null,c().createElement(Bm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,fm.__)("Version Control","header-footer-elementor")}),c().createElement("div",{className:"box-border bg-background-primary p-6 rounded-lg",style:{marginTop:"24px"}},c().createElement(nt,{align:"center",className:"flex flex-col lg:flex-row",containerType:"flex",direction:"column",gap:"sm",justify:"start"},c().createElement(nt.Item,{className:"shrink flex flex-col space-y-1"},c().createElement("p",{className:"text-base font-semibold m-0"},(0,fm.__)("Rollback to Previous Version","header-footer-elementor")),c().createElement("p",{className:"text-sm font-normal m-0"},(0,fm.__)("Experiencing an issue with current version? Roll back to a previous version to help troubleshoot the issue.","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-2 flex space-y-4",alignSelf:"auto",order:"none"},c().createElement("div",{className:"bsf-rollback-version"},c().createElement("input",{type:"hidden",name:"product-name",id:"bsf-product-name",value:"header-footer-elementor"}),c().createElement("select",{id:"uaeliteVersionRollback",ref:t,onBlur:function(){l("elementor-header-footer")},onChange:function(e){o(e.target.value)},style:{padding:"8px",marginRight:"10px",marginTop:"16px",cursor:"pointer",borderRadius:"4px",height:"40px",width:"100px",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"}},e.map((function(e){return c().createElement("option",{key:e.value,value:e.value},e.label)})))),c().createElement("div",{className:"flex flex-col cursor-pointer"},c().createElement(sf,{design:"simple",exitOnEsc:!0,scrollLock:!0,open:d,setOpen:m,trigger:c().createElement(ct,{style:{backgroundColor:"#6005ff"}},(0,fm.__)("Rollback","header-footer-elementor"))},c().createElement(sf.Backdrop,null),c().createElement(sf.Panel,null,c().createElement(sf.Header,null,c().createElement("div",{className:"flex items-center justify-between"},c().createElement(sf.Title,null,(0,fm.__)("Rollback to Previous Version","header-footer-elementor")),c().createElement(sf.CloseButton,null))),c().createElement(sf.Body,null,(0,fm.__)("Are you sure you want to rollback to Ultimate Addons for Elementor v".concat(r,"?"),"header-footer-elementor")),c().createElement(sf.Footer,null,c().createElement(ct,{onClick:function(){var e=hfeSettingsData.uaelite_rollback_url.replace("VERSION",r);m(!1),window.location.href=e}},(0,fm.__)("Rollback","header-footer-elementor")),c().createElement(ct,{onClick:function(){m(!1)}},(0,fm.__)("Cancel","header-footer-elementor"))))))))))},Ah=function(){var e=i((0,a.useState)(!0),2),t=e[0],n=e[1];(0,a.useEffect)((function(){n("yes"===hfeSettingsData.analytics_status)}),[]);var r=function(){var e=Jm(ef().mark((function e(){var r,o;return ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(r=!t),e.prev=2,e.next=5,fetch(hfe_admin_data.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"save_analytics_option",uae_analytics_optin:r?"yes":"no",nonce:hfe_admin_data.nonce})});case 5:return o=e.sent,e.next=8,o.json();case 8:e.sent.success?Ph.success((0,fm.__)("Settings saved successfully!","header-footer-elementor")):Ph.error((0,fm.__)("Failed to save settings!","header-footer-elementor")),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),Ph.error((0,fm.__)("Failed to save settings!","header-footer-elementor"));case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}();return c().createElement(c().Fragment,null,c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"20px",marginBottom:"20px",borderColor:"#E5E7EB"}}),c().createElement(nt,{align:"center",className:"flex flex-col lg:flex-row",containerType:"flex",direction:"column",gap:"sm",justify:"start"},c().createElement(nt.Item,{className:"p-2 flex space-y-4",alignSelf:"auto",order:"none"},c().createElement("div",{className:"flex flex-row items-start justify-start px-1 gap-3"},c().createElement(jm,{onChange:r,size:"sm",value:t,className:"hfe-remove-ring"}),c().createElement("div",{className:"flex flex-col justify-start px-1 gap-3"},c().createElement("span",{className:"font-normal text-text-primary m-0"},(0,fm.__)("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. ","header-footer-elementor"),c().createElement("a",{href:"https://store.brainstormforce.com/usage-tracking/?utm_source=wp_dashboard&utm_medium=general_settings&utm_campaign=usage_tracking",target:"_blank",rel:"noopener noreferrer",className:"text-link-primary"},(0,fm.__)("Learn More","header-footer-elementor")))),c().createElement(Ch,{position:"top-right",reverseOrder:!1,gutter:8,containerStyle:{top:20,right:20,marginTop:"40px"},toastOptions:{duration:1e3,style:{background:"white"},success:{duration:2e3,style:{color:""},iconTheme:{primary:"#6005ff",secondary:"#fff"}}}})))))},Rh=function(){return c().createElement(c().Fragment,null,c().createElement(Bm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,fm.__)("My Account","header-footer-elementor")}),c().createElement("div",{className:"",style:{marginTop:"24px"}},c().createElement(nt,{align:"stretch",className:"bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column",gap:"sm",justify:"start",style:{marginTop:"24px"}},c().createElement(nt.Item,{className:"flex flex-col space-y-2",style:{marginTop:"24px"}},c().createElement("p",{className:"text-base font-semibold m-0"},(0,fm.__)("License Key","header-footer-elementor")),c().createElement("p",{className:"text-sm font-normal m-0"},(0,fm.__)("You are using the free version of Ultimate Addons for Elementor, no license key is needed. "))),c().createElement("div",{className:"flex items-center justify-between px-4 rounded-xl",style:{paddingTop:"6px",paddingBottom:"6px",backgroundColor:"#F3F0FF"}},c().createElement("span",{className:"flex flex-col items-left mt-2 text-base font-semibold"},(0,fm.__)("Build Better Websites With Ultimate Addons Pro","header-footer-elementor"),c().createElement("p",{className:"text-sm font-normal m-0 py-2",style:{width:"500px"}},(0,fm.__)("Unlock advanced addons to power up Elementor - smarter widgets, smoother workflows, and more creative freedom with UAE Pro.","header-footer-elementor"))),c().createElement(ct,{icon:c().createElement(lm,null),iconPosition:"right",variant:"link",style:{color:"#6005FF",borderColor:"#6005FF",transition:"color 0.3s ease, border-color 0.3s ease",fontSize:"16px"},className:"hfe-remove-ring text-[#6005FF]",onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-settings&utm_medium=My-accounts&utm_campaign=uae-lite-upgrade","_blank")}},(0,fm.__)("Upgrade Now","header-footer-elementor"))),c().createElement(Ah,null))))},Dh=function(){var e=[{id:1,icon:c().createElement("img",{src:"".concat(hfeSettingsData.user_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),selected:c().createElement("img",{src:"".concat(hfeSettingsData.user__selected_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),title:(0,fm.__)("My Account","header-footer-elementor"),content:c().createElement(Rh,null)},{id:2,icon:c().createElement("img",{src:"".concat(hfeSettingsData.theme_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),selected:c().createElement("img",{src:"".concat(hfeSettingsData.theme_url_selected),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),main:(0,fm.__)("Editor","header-footer-elementor"),title:(0,fm.__)("Theme Support","header-footer-elementor"),content:c().createElement(jh,null)},{id:3,icon:c().createElement("img",{src:"".concat(hfeSettingsData.version_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),selected:c().createElement("img",{src:"".concat(hfeSettingsData.version__selected_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),main:(0,fm.__)("Utilities","header-footer-elementor"),title:(0,fm.__)("Version Control","header-footer-elementor"),content:c().createElement(Fh,null)}].filter((function(e){return"no"!==hfeSettingsData.show_theme_support||2!==e.id})),t=i((0,a.useState)((function(){var t=localStorage.getItem("hfeSelectedItemId");return e.find((function(e){return e.id===Number(t)}))||e[0]})),2),n=t[0],r=t[1];return(0,a.useEffect)((function(){localStorage.setItem("hfeSelectedItemId",n.id.toString())}),[n]),(0,a.useEffect)((function(){var t=new URLSearchParams(window.location.search).get("tab");if(t){var n=Number(t),o=e.find((function(e){return e.id===n}));o&&r(o)}}),[]),c().createElement(c().Fragment,null,c().createElement(km,{onSettingsTabClick:function(){r(e[0])}}),c().createElement("div",{className:""},c().createElement(nt,{align:"stretch",className:"p-1 flex-col lg:flex-row hfe-settings-page",containerType:"flex",direction:"row",gap:"sm",justify:"start",style:{height:"100%"}},c().createElement(nt.Item,{className:"p-2 hfe-sticky-outer-wrapper",alignSelf:"auto",order:"none",shrink:1,style:{backgroundColor:"#ffffff"}},c().createElement("div",{className:"hfe-sticky-sidebar"},c().createElement(Ff,{items:e,onSelectItem:function(e){r(e)},selectedItemId:n.id}))),c().createElement(nt.Item,{className:"p-2 flex w-full justify-center items-start hfe-hide-scrollbar",alignSelf:"auto",order:"none",shrink:1,style:{height:"calc(100vh - 1px)",overflowY:"auto"}},c().createElement("div",{className:"hfe-78-width"},c().createElement(Af,{selectedItem:n}))))))},Mh=am("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Lh=function(){var e=[{title:(0,fm.__)("Essentials","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("White Label Option","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("24/7 Premium Support","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Cross-Domain Copy-Paste","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Dynamic Header & Footer Widgets","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Post Info","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:2,content:(0,fm.__)("Scroll to Top","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:3,content:(0,fm.__)("Reading Progress Bar","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:4,content:(0,fm.__)("Breadcrumbs","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:5,content:(0,fm.__)("Retina Logo","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:6,content:(0,fm.__)("Copyright","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:7,content:(0,fm.__)("Page Title","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:8,content:(0,fm.__)("Site Tagline","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:9,content:(0,fm.__)("Site Logo","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:10,content:(0,fm.__)("Search","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:11,content:(0,fm.__)("Navigation Menu","header-footer-elementor"),iconFree:!0,iconPro:!1}]},{title:(0,fm.__)("Creative & Advanced Design Widgets","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Advanced Heading","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Dual Color Heading","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Fancy Heading","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Multi-Button","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,fm.__)("Image Hotspots","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Content & Media Widgets","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Content Toggle Button","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Image Gallery","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Video Gallery","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Table","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,fm.__)("Timeline","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:6,content:(0,fm.__)("Google Map","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:7,content:(0,fm.__)("Before & After Slider","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:8,content:(0,fm.__)("Info Card","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:9,content:(0,fm.__)("Video","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:10,content:(0,fm.__)("Conditional Display","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:11,content:(0,fm.__)("Info Box","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:12,content:(0,fm.__)("Login Form","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:13,content:(0,fm.__)("User Registration Form","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Marketing & Engagement Widgets","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Marketing Button","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Pricing Table","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Price List","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Countdown Timer","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,fm.__)("Business Hours","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:6,content:(0,fm.__)("Modal Popup","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("E-Commerce Integration","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("WooCommerce: Add to Cart","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("WooCommerce: Product Category","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("WooCommerce: Mini Cart","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("WooCommerce: Product","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,fm.__)("WooCommerce: Checkout","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Forms Integration","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Contact Form 7","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Gravity Forms","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("WPForms","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Fluent Forms","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("SEO Widgets","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("FAQ with Schema","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("How-To","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Table of Contents","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Business Reviews","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Creative Features","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Presets","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Welcome Music","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Particles","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Party Propz","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,fm.__)("Shape Divider","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Social Media Integration","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Instagram Feed","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Twitter Feed","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Social Share","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Advanced Features","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Retina Image","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Team Member","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Post Layout","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Off Canvas","header-footer-elementor"),iconFree:!1,iconPro:!0}]}],t=function(e){return e?c().createElement(Xm,{color:"#16A34A"}):c().createElement(Mh,{color:"#DC2626"})};return c().createElement("div",{className:"rounded-lg bg-white w-full mb-6"},c().createElement("div",{className:"flex items-center justify-between p-5",style:{paddingBottom:"0"}},c().createElement("div",{className:"flex flex-col"},c().createElement("p",{className:"m-0 text-xl font-semibold pt-4 text-text-primary"},(0,fm.__)("Free Vs Pro","header-footer-elementor")),c().createElement("p",{className:"m-0 text-sm font-normal pt-1 text-text-secondary"},(0,fm.__)("Ultimate Addons for Elementor Pro offers 50+ widgets and features!","header-footer-elementor")),c().createElement("p",{className:"m-0 text-sm font-normal pt-1 text-text-secondary"},(0,fm.__)("Compare the popular features/widgets to find the best option for your website.","header-footer-elementor"))),c().createElement("div",{className:"flex items-center gap-x-2 mr-7"},c().createElement(ct,{iconPosition:"right",variant:"primary",style:{color:"white",borderColor:"#6005FF",transition:"color 0.3s ease, border-color 0.3s ease",backgroundColor:"#6005ff"},className:"hfe-remove-ring text-[#6005FF]",onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-FreevsPro&utm_medium=get-uae-pro&utm_campaign=uae-lite-upgrade","_blank")}},(0,fm.__)("Get Full Toolkit","header-footer-elementor")))),c().createElement("div",{className:"px-4"},c().createElement("div",{className:"flex flex-col space-y-2 pt-5"},e.map((function(e){return c().createElement(c().Fragment,{key:e.title},c().createElement("div",{className:"flex fle-row py-4 px-5 items-center h-4 justify-between rounded-lg shadow-container-item",style:{backgroundColor:"#F9FAFB"}},c().createElement("p",{className:"text-sm text-text-primary font-medium"},e.title),c().createElement("div",{className:"flex flex-row items-center",style:{gap:"12rem"}},c().createElement("p",{className:"text-sm text-text-primary font-medium"},(0,fm.__)("Free","header-footer-elementor")),c().createElement("p",{className:"text-sm text-text-primary font-medium",style:{marginRight:"50px"}},(0,fm.__)("Pro","header-footer-elementor")))),e.items.map((function(e){return c().createElement("div",{key:e.id,className:"flex fle-row py-4 px-5 items-center h-4 justify-between rounded-lg shadow-container-item"},c().createElement("p",{className:"text-sm text-text-secondary font-medium"},e.content),c().createElement("div",{className:"flex flex-row items-center justify-between",style:{gap:10===e.id&&e.content===(0,fm.__)("Navigation Menu","header-footer-elementor")?"10.7rem":"12rem"}},c().createElement("p",{className:"text-sm text-text-primary font-medium"},10===e.id&&e.content===(0,fm.__)("Navigation Menu","header-footer-elementor")?e.iconPro?(0,fm.__)("Advanced","header-footer-elementor"):(0,fm.__)("Basic","header-footer-elementor"):t(e.iconFree)),c().createElement("p",{className:"text-sm text-text-primary font-medium",style:{marginRight:10===e.id&&e.content===(0,fm.__)("Navigation Menu","header-footer-elementor")?"25px":"50px"}},10===e.id&&e.content===(0,fm.__)("Navigation Menu","header-footer-elementor")?e.iconPro?(0,fm.__)("Basic","header-footer-elementor"):(0,fm.__)("Advanced","header-footer-elementor"):t(e.iconPro))))})))})),c().createElement("div",{className:"flex items-center justify-center gap-x-2 "},c().createElement("a",{href:"https://ultimateelementor.com/pricing-plans/?utm_source=uae-lite-dashboard&utm_medium=unlock-ultimate-feature&utm_campaign=uae-lite-upgrade",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-normal text-text-primary cursor-pointer no-underline",style:{lineHeight:"1rem",paddingTop:"10px",paddingBottom:"20px",color:"#6005FF",textDecoration:"none",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.outline="none"},onBlur:function(e){return e.target.style.outline="none"}},(0,fm.__)("See all UAE Pro Features","header-footer-elementor"),c().createElement(lm,{className:"ml-1 font-semibold",size:14,color:"#6005FF"}))))))},Oh=function(){return c().createElement(c().Fragment,null,c().createElement(xf,null),c().createElement(km,null),c().createElement("div",null,c().createElement(nt,{align:"stretch",className:"p-6 flex-col lg:flex-row box-border",containerType:"flex",direction:"row",gap:"sm",justify:"start",style:{width:"100%"}},c().createElement(nt.Item,{className:"p-2 hfe-65-width",alignSelf:"auto",order:"none",shrink:0},c().createElement(Lh,null)),c().createElement(nt.Item,{className:"p-2 w-full hfe-35-width hfe-sticky-right-sidebar",shrink:1},c().createElement(Km,null),c().createElement("div",{className:"pt-4 mt-4"},c().createElement($m,null))))))},Ih=Id("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Bh=Id("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Vh=(e,t)=>Re("rounded-full text-brand-primary-600 transition-colors duration-300",e[t].dot,e[t].ring),zh={sm:{dot:"size-2.5",ring:"size-5",numberIcon:"size-5 text-tiny",icon:"size-5",label:"text-xs"},md:{dot:"size-3",ring:"size-6",numberIcon:"size-6 text-sm",icon:"size-6",label:"text-sm"},lg:{dot:"size-3.5",ring:"size-7",numberIcon:"size-7 text-md",icon:"size-7",label:"text-sm"}},Uh=({variant:e="dot",size:t="sm",type:n="inline",currentStep:r=1,children:o,className:s,lineClassName:i="min-w-10",completedVariant:l="icon",completedIcon:c=(0,O.jsx)(Ih,{}),...u})=>{const d=a.Children.count(o);-1===r&&(r=d+1);const m=a.Children.map(o,((o,s)=>{const u={isCompleted:s+1{const p=$h(i,r,n,a,l,t,u,m,f),g={lg:"left-[calc(50%+14px)] right-[calc(-50%+14px)]",md:"left-[calc(50%+12px)] right-[calc(-50%+12px)]",sm:"left-[calc(50%+10px)] right-[calc(-50%+10px)]"},y={lg:"top-3.5",md:"top-3",sm:"top-2.5"},v=()=>{if(e){const t=Re(a[l].label,"text-text-tertiary",n?"text-brand-primary-600":"","break-word","stack"===s?"mt-2 transform max-w-xs":"mx-2 max-w-32");return(0,O.jsx)("span",{className:t,children:e})}return null},x=()=>{if(!c){const t=Re("block",r?"border-brand-primary-600":"border-border-subtle",d);return"stack"===s?(0,O.jsx)("div",{className:Re("relative","flex","border-solid","border-y","absolute",r?"border-brand-primary-600":"border-border-subtle",y[l],g[l]),children:(0,O.jsx)("span",{className:"block"})}):(0,O.jsx)("div",{className:"flex-1",children:(0,O.jsx)("span",{className:Re("mr-2 border-y border-solid",!e&&"ml-2",t)})})}return null};return"stack"===s?(0,O.jsxs)("div",{className:"relative flex-1 justify-center",children:[(0,O.jsxs)("div",{className:Re("flex items-center flex-col",o),...h,children:[p,v()]}),x()]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:Re("flex items-center",o),...h,children:[p,v()]}),x()]})};Wh.displayName="ProgressSteps.Step";const $h=(e,t,n,r,o,s,i,a="icon",l=(0,O.jsx)(Ih,{}))=>{if(t)return"number"===a?(0,O.jsx)("span",{className:Re(Vh(r,o),"flex items-center justify-center bg-brand-primary-600 text-text-on-color rounded-full"),children:i+1}):(0,O.jsx)("span",{className:Vh(r,o),children:l});const c=((e,t,n)=>Re("relative flex items-center rounded-full justify-center transition-colors z-10 duration-500 ring-1",e?"ring-brand-primary-600":"ring-border-subtle",t[n].ring))(!!n,r,o),u=((e,t,n,r)=>{const o=`absolute rounded-full transition-colors duration-500 ${n[r].dot}`;return"dot"===e?Re(o,n[r].dot,t?"bg-brand-primary-600":"bg-text-tertiary"):"number"===e?Re(o,n[r].dot,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):"icon"===e?Re(o,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):""})(e,n,r,o);let d=null;return"number"===e?d=i+1:"icon"===e&&s&&(d=s),(0,O.jsx)("span",{className:c,children:(0,O.jsx)("span",{className:u,children:d})})};Uh.Step=Wh;const Hh=function(e){var t=e.plugin,n=e.setUpdateCounter,r=e.onPluginSelect,o=t.path,s=t.slug,l=t.siteUrl,u=t.icon,d=t.type,m=t.name,f=t.zipUrl,h=t.desc,p=(t.wporg,t.isFree,t.action,t.status),g=t.settings_url,y=i((0,a.useState)(!1),2),v=y[0],x=y[1],w=i((0,a.useState)(null),2),b=w[0],E=(w[1],i((0,a.useState)(!1),2)),_=E[0],k=E[1];return c().createElement(c().Fragment,null,c().createElement("style",null,"\n .uae-role-checkbox {\n position: relative;\n width: 30px;\n height: 30px;\n -webkit-appearance: none;\n appearance: none;\n border: 2px solid #d1d5db; /* gray-300 */\n border-radius: 4px;\n cursor: pointer;\n }\n\n .uae-role-checkbox:checked {\n background-color: #240064;\n border-color: #0017E1;\n }\n\n .uae-role-checkbox:checked::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 4px;\n height: 8px;\n border-right: 2px solid #fff;\n border-bottom: 2px solid #fff;\n transform: translate(-50%, -60%) rotate(45deg);\n }\n "),c().createElement(nt,{align:"center",containerType:"flex",direction:"row",justify:"between",gap:"md"},c().createElement("div",{className:"flex items-center gap-x-3 flex-1 cursor-pointer",onClick:function(e){if(!e.target.closest("p.text-sm.font-medium")){var t=!_;k(t),r&&r({slug:s,path:o,type:d,name:m,zipUrl:f,status:p,isChecked:t})}}},c().createElement("div",{className:"h-6 w-6 flex-shrink-0"},c().createElement("img",{src:u,alt:"Recommended Plugins/Themes",className:"w-full h-auto rounded",style:{width:"24px",height:"24px"}})),c().createElement("div",{className:"flex flex-col pl-3 flex-1 min-w-0"},c().createElement("p",{className:"text-sm font-medium text-text-primary pb-1 m-0 cursor-pointer truncate",style:{width:"230px"},onClick:function(e){e.stopPropagation(),window.open(t.siteurl,"_blank")}},(0,fm.__)(m,"header-footer-elementor")),c().createElement("p",{className:"text-sm font-normal text-text-tertiary m-0 truncate"},(0,fm.__)(h,"header-footer-elementor"))),c().createElement("div",{className:"flex-shrink-0 ml-2"},c().createElement("input",{type:"checkbox",checked:_,onChange:function(e){var t=e.target.checked;k(t),r&&r({slug:s,path:o,type:d,name:m,zipUrl:f,status:p,isChecked:t})},onClick:function(e){return e.stopPropagation()},id:"plugin-".concat(s),className:"uae-role-checkbox h-4 w-4 text-purple-600 focus:ring-purple-500 border-gray-300 rounded","data-plugin":f,"data-type":d,"data-pluginname":m,"data-slug":s,"data-site":l,"data-init":o,"data-status":p}))),c().createElement(sf,{design:"simple",open:v,setOpen:x},c().createElement(sf.Backdrop,null),c().createElement(sf.Panel,null,c().createElement(sf.Header,null,c().createElement("div",{className:"flex items-center justify-between"},c().createElement(sf.Title,null,(0,fm.__)("Activate Theme","header-footer-elementor"))),c().createElement(sf.Description,null,(0,fm.__)("Are you sure you want to switch your current theme to Astra?","header-footer-elementor"))),c().createElement(sf.Footer,null,c().createElement(ct,{onClick:function(){return function(e){x(!1);var t=new window.FormData;t.append("action","hfe_recommended_plugin_activate"),t.append("nonce",hfe_admin_data.nonce),t.append("plugin",e.init),t.append("type",e.type),t.append("slug",e.slug);var r=document.querySelector('[data-slug="'.concat(e.slug,'"]')),o=r.querySelector("span");o.innerText=(0,fm.__)("Activating..","header-footer-elementor"),Rm()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(t){if(t.success)o&&(r.style.color="#16A34A",r.dataset.action="site_redirect",r.classList.add("hfe-plugin-activated"),o.innerText=(0,fm.__)("Activated","header-footer-elementor"),window.open(g,"_blank"),setTimeout((function(){n((function(e){return e+1}))}),5e3));else{e.type;var s=document.querySelector('[data-slug="'.concat(e.slug,'"]'));if(s){var i=s.querySelector("span");i&&(i.innerText=(0,fm.__)("Activate","header-footer-elementor"))}}}))}(b)}},(0,fm.__)("Yes","header-footer-elementor")),c().createElement(ct,{variant:"outline",onClick:function(){return x(!1)}},(0,fm.__)("Close","header-footer-elementor")))))))},qh=am("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Yh=am("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function Gh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Xh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,s=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw s}}}}function Xh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0);return c().createElement(c().Fragment,null,c().createElement("style",null,"\n .uae-role-checkbox {\n position: relative;\n width: 30px;\n height: 30px;\n -webkit-appearance: none;\n appearance: none;\n border: 2px solid #d1d5db; /* gray-300 */\n border-radius: 4px;\n cursor: pointer;\n }\n\n .uae-role-checkbox:focus {\n outline: none;\n }\n\n .uae-role-checkbox:checked {\n background-color: #5C2EDE !important; /* brand-primary-600 */\n border-color: #0017E1;\n }\n\n .uae-role-checkbox:checked::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 4px;\n height: 8px;\n border-right: 2px solid #fff;\n border-bottom: 2px solid #fff;\n transform: translate(-50%, -60%) rotate(45deg);\n }\n\n\t\t\t\t\t.uae-error-field {\n\t\t\t\t\t\tborder-color: #dc3545 !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.uae-error-message {\n\t\t\t\t\t\tcolor: #dc3545;\n\t\t\t\t\t\tfont-size: 0.875rem;\n\t\t\t\t\t\tmargin-top: 0.25rem;\n\t\t\t\t\t}\n "),c().createElement("div",{className:"bg-background-primary border-[0.5px] items-start justify-center border-subtle p-4 rounded-xl shadow-sm mb-6 flex flex-col",style:{width:"42.625rem"}},I&&c().createElement("div",{className:"rounded-lg bg-white w-full"},c().createElement("div",{className:"flex flex-col items-start justify-between",style:{paddingTop:"1rem",paddingLeft:"1rem",paddingRight:"1rem"}},c().createElement("p",{className:"text-text-primary m-0 mb-2 hfe-65-width",style:{fontSize:"24px",lineHeight:"1.3em"}},(0,fm.__)("Recommended Essentials","header-footer-elementor")),c().createElement("span",{className:"text-md font-normal text-text-secondary m-0 mb-2",style:{lineHeight:"1.5em"}},(0,fm.__)("These free plugins add essential features to your website and help speed up your workflow. Select the plugins you want to install.","header-footer-elementor")),c().createElement("div",{className:"flex items-center gap-x-2 mr-7"})),c().createElement("div",{className:"flex flex-col rounded-lg",style:{backgroundColor:"white",paddingTop:"1rem",paddingLeft:"1rem",paddingRight:"1rem"}},l?c().createElement(nt,{align:"stretch",className:"gap-1 p-1 grid grid-cols-1 md:grid-cols-2",containerType:"grid",justify:"start"},Sm(Array(2)).map((function(e,t){return c().createElement(nt.Item,{key:t,alignSelf:"auto",style:{height:"150px"},className:"text-wrap rounded-md shadow-container-item bg-[#F9FAFB] p-4"},c().createElement("div",{className:"flex flex-col gap-6",style:{marginTop:"40px"}},c().createElement(Om,{className:"w-12 h-2 rounded-md"}),c().createElement(Om,{className:"w-16 h-2 rounded-md"}),c().createElement(Om,{className:"w-12 h-2 rounded-md"})))}))):c().createElement(nt,{align:"stretch",className:"gap-1 p-1 grid grid-cols-1 md:grid-cols-1",containerType:"grid",justify:"start",style:{backgroundColor:"#F9FAFB"}},r.slice(0,3).map((function(e){return c().createElement(nt.Item,{key:e.slug,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement(Hh,{plugin:e,setUpdateCounter:f,onPluginSelect:L}))}))))),(!P||!I)&&c().createElement("div",{className:"px-5 pt-3 bg-white rounded-lg"},c().createElement("h3",{className:"text-base font-medium text-gray-900 ".concat(I?"":"text-xl mb-3")},(0,fm.__)("Get Important Notifications and Updates","header-footer-elementor")),c().createElement("div",{className:"flex flex-row items-start gap-4 mb-4"},c().createElement("div",{className:"flex flex-col flex-1"},c().createElement("label",{className:"text-sm font-medium text-gray-700 mb-2"},(0,fm.__)("First Name","header-footer-elementor")),c().createElement("input",{type:"text",name:"firstName",value:S.firstName,onChange:function(e){return R("firstName",e.target.value)},className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none hfe-remove-ring transition-colors ".concat(F.firstName?"uae-error-field":""),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",fontSize:"14px",boxShadow:"none"}}),F.firstName&&c().createElement("span",{className:"uae-error-message"},F.firstName)),c().createElement("div",{className:"flex flex-col flex-1"},c().createElement("label",{className:"text-sm font-medium text-gray-700 mb-2"},(0,fm.__)("Last Name","header-footer-elementor")),c().createElement("input",{type:"text",name:"lastName",value:S.lastName,onChange:function(e){return R("lastName",e.target.value)},className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none hfe-remove-ring transition-colors",style:{height:"48px",borderColor:"#e0e0e0",outline:"none",fontSize:"14px",boxShadow:"none"}}))),c().createElement("div",{className:"flex flex-row items-start gap-4 mb-4"},c().createElement("div",{className:"flex flex-col flex-1"},c().createElement("label",{className:"text-sm font-medium text-gray-700 mb-2"},(0,fm.__)("Email Address","header-footer-elementor")),c().createElement("input",{type:"email",name:"email",value:S.email,onChange:function(e){return R("email",e.target.value)},className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-purple-500 transition-colors ".concat(F.email?"uae-error-field":""),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",fontSize:"14px",boxShadow:"none"}}),F.email&&c().createElement("span",{className:"uae-error-message"},F.email))),c().createElement("div",{className:"flex items-start gap-1"},c().createElement("input",{type:"checkbox",id:"notifications-checkbox",checked:x,onChange:D,className:"uae-role-checkbox mt-1 h-4 w-4 text-[#5C2EDE] focus:ring-[#5C2EDE] border-gray-300 rounded"}),c().createElement("label",{htmlFor:"notifications-checkbox",className:"text-sm text-gray-600 leading-relaxed"},(0,fm.__)("Notify me about critical updates and new features — and help us improve by sharing how you use the plugin. ","header-footer-elementor"),c().createElement("a",{href:"https://store.brainstormforce.com/privacy-policy/?utm_source=uae_onboarding&utm_medium=notification_updates&utm_campaign=privacy_policy",className:"text-sm text-text-primary",target:"_blank"},(0,fm.__)(" Privacy Policy","header-footer-elementor"))))),c().createElement("div",{className:"flex w-full justify-between items-center hfe-onboarding-bottom",style:{paddingLeft:"8px",paddingRight:"8px",paddingTop:"30px"}},c().createElement(ct,{className:"flex items-center gap-1 hfe-remove-ring",icon:c().createElement(qh,null),variant:"outline",onClick:function(){return t(1)}},(0,fm.__)("Back","header-footer-elementor")),c().createElement("div",{className:"flex justify-between gap-3 items-center",style:{paddingRight:"1.875rem"}},c().createElement(ct,{className:"hfe-remove-ring text-text-tertiary",variant:"ghost",onClick:function(){return t(3)}}," ",(0,fm.__)("Skip","header-footer-elementor")),c().createElement(ct,{className:"flex items-center gap-1 hfe-remove-ring",icon:c().createElement(Yh,null),iconPosition:"right",style:{backgroundColor:"#5C2EDE",transition:"background-color 0.3s ease",padding:"12px"},onClick:function(){if("true"===localStorage.getItem("uaeFormSubmitted")&&I)r.length>0&&O(),t(3);else{var e,n,o={};if(null!==(e=S.email)&&void 0!==e&&e.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S.email.trim())||(o.email=(0,fm.__)("Please enter a valid email address","header-footer-elementor")):o.email=(0,fm.__)("This field is required","header-footer-elementor"),null!==(n=S.firstName)&&void 0!==n&&n.trim()||(o.firstName=(0,fm.__)("This field is required","header-footer-elementor")),Object.keys(o).length>0)return void A(o);A({}),r.length>0&&O(),function(e,n,r,o,s){if(e){var i=(new Date).toISOString().split("T")[0],a=s||window.location.hostname,l=new URLSearchParams({email:e,date:i,fname:n||"",lname:r||"",isActive:o?"yes":"no"});o&&l.append("domain",a),fetch("/wp-json/hfe/v1/email-webhook/?".concat(l.toString()),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){if(!e.ok)throw new Error("HTTP error! Status: ".concat(e.status));return e.json()})).then((function(e){"success"===e.message||console.warn("Unexpected webhook response:",e),t(3)})).catch((function(e){console.error("Error calling webhook:",e),t(3)}))}else t(3)}(S.email,S.firstName,S.lastName,x,S.domain),localStorage.setItem("uaeFormSubmitted","true"),T(!0),t(3)}}},(0,fm.__)("Next","header-footer-elementor"))))))}},{label:"",component:function(e){var t=e.setCurrentStep,n=i((0,a.useState)({headerFooterBuilder:!1,megaMenu:!1,modalPopup:!1,wooCommerceWidgets:!1,premiumWidgets:!1}),2),r=n[0],o=n[1],s=function(e){o((function(t){return ep(ep({},t),{},p({},e,!t[e]))}))},l=(r.headerFooterBuilder||r.megaMenu,r.modalPopup||r.wooCommerceWidgets||r.premiumWidgets);return c().createElement(c().Fragment,null,c().createElement("style",null,"\n .uae-role-checkbox {\n position: relative;\n width: 30px;\n height: 30px;\n -webkit-appearance: none;\n appearance: none;\n border: 2px solid #d1d5db; /* gray-300 */\n border-radius: 4px;\n cursor: pointer;\n outline: none;\n }\n\n .uae-role-checkbox:focus {\n outline: none;\n box-shadow: none;\n }\n\n .uae-role-checkbox:checked {\n background-color: #5C2EDE;\n border-color: #0017E1;\n outline: none;\n }\n\n .uae-role-checkbox:checked::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 4px;\n height: 8px;\n border-right: 2px solid #fff;\n border-bottom: 2px solid #fff;\n transform: translate(-50%, -60%) rotate(45deg);\n }\n "),c().createElement("div",{className:"box-border bg-background-primary p-6 rounded-lg",style:{width:"42.625rem"}},c().createElement("p",{className:"text-text-primary m-0 mb-2 hfe-65-width",style:{fontSize:"24px",lineHeight:"1.3em"}},(0,fm.__)("Select Your Features","header-footer-elementor")),c().createElement("span",{className:"text-sm font-normal text-text-secondary",style:{lineHeight:"1.5em"}},(0,fm.__)("Unlock more design control, faster setup, and powerful customization—so you can build a better website, effortlessly.","header-footer-elementor")),c().createElement("div",{className:"relative",style:{marginTop:"20px"}},c().createElement("div",{className:"flex items-center justify-between gap-3 mt-5 cursor-pointer",onClick:function(e){s("headerFooterBuilder")}},c().createElement("div",{className:"flex flex-col space-y-1 flex-1"},c().createElement("div",{className:"flex items-center justify-start gap-1"},c().createElement("div",{className:"text-sm font-normal m-0"},(0,fm.__)("Header & Footer Builder","header-footer-elementor")),c().createElement(rm,{label:(0,fm.__)("Free","header-footer-elementor"),size:"xs",type:"pill",variant:"green"})),c().createElement("div",{className:"text-sm font-normal m-0",style:{maxWidth:"90%",color:"#9CA3AF"}},(0,fm.sprintf)((0,fm.__)("Assign headers and footers to specific pages or post types. Gives users complete layout control—something typically locked behind Pro plugins.","header-footer-elementor")))),c().createElement("div",{className:"flex-shrink-0"},c().createElement("input",{type:"checkbox",checked:r.headerFooterBuilder,onClick:function(e){return e.stopPropagation()},onChange:function(){return s("headerFooterBuilder")},className:"uae-role-checkbox w-5 h-5 outline-none",style:{accentColor:"#240064",width:"18px",height:"18px"}})))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"10px",marginBottom:"10px",borderColor:"#E5E7EB"}}),c().createElement("div",{className:"flex items-center justify-between gap-3 cursor-pointer",onClick:function(){return s("megaMenu")}},c().createElement("div",{className:"flex flex-col space-y-1 flex-1"},c().createElement("div",{className:"flex items-center justify-start gap-1"},c().createElement("div",{className:"text-sm font-normal m-0"},(0,fm.__)("Mega Menu & Navigation Widget","header-footer-elementor")),c().createElement(rm,{label:(0,fm.__)("Free","header-footer-elementor"),size:"xs",type:"pill",variant:"green"})),c().createElement("div",{style:{color:"#9CA3AF"},className:"text-sm font-normal m-0"},(0,fm.sprintf)((0,fm.__)("Save hours by copying Elementor sections, widgets, or pages from one website to another—no need to rebuild layouts from scratch.","header-footer-elementor")))),c().createElement("div",{className:"flex-shrink-0"},c().createElement("input",{type:"checkbox",checked:r.megaMenu,onClick:function(e){return e.stopPropagation()},onChange:function(){return s("megaMenu")},className:"uae-role-checkbox w-5 h-5",style:{accentColor:"#240064",width:"18px",height:"18px"}}))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"10px",marginBottom:"10px",borderColor:"#E5E7EB"}}),c().createElement("div",{className:"flex items-center justify-between gap-3 cursor-pointer",onClick:function(){return s("modalPopup")}},c().createElement("div",{className:"flex flex-col space-y-1 flex-1"},c().createElement("div",{className:"flex items-center justify-start gap-1"},c().createElement("div",{className:"text-sm font-normal m-0"},(0,fm.__)("Modal Popup","header-footer-elementor")),c().createElement(rm,{label:(0,fm.__)("Pro","header-footer-elementor"),size:"xs",type:"pill",variant:"inverse"})),c().createElement("div",{style:{color:"#9CA3AF"},className:"text-sm font-normal m-0"},(0,fm.sprintf)((0,fm.__)("Design eye-catching popups directly in Elementor—collect leads, display promotions, or show messages without needing a separate popup plugin.","header-footer-elementor")))),c().createElement("div",{className:"flex-shrink-0"},c().createElement("input",{type:"checkbox",checked:r.modalPopup,onClick:function(e){return e.stopPropagation()},onChange:function(){return s("modalPopup")},className:"uae-role-checkbox w-5 h-5",style:{accentColor:"#240064",width:"18px",height:"18px"}}))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"10px",marginBottom:"10px",borderColor:"#E5E7EB"}}),c().createElement("div",{className:"flex items-center justify-between gap-3 cursor-pointer",onClick:function(){return s("wooCommerceWidgets")}},c().createElement("div",{className:"flex flex-col space-y-1 flex-1"},c().createElement("div",{className:"flex items-center justify-start gap-1"},c().createElement("div",{className:"text-sm font-normal m-0"},(0,fm.__)("WooCommerce Widgets","header-footer-elementor")),c().createElement(rm,{label:(0,fm.__)("Pro","header-footer-elementor"),size:"xs",type:"pill",variant:"inverse"})),c().createElement("div",{style:{color:"#9CA3AF"},className:"text-sm font-normal m-0"},(0,fm.__)("Design eye-catching popups directly in Elementor—collect leads, display promotions, or show messages without needing a separate popup plugin.","header-footer-elementor"))),c().createElement("div",{className:"flex-shrink-0"},c().createElement("input",{type:"checkbox",checked:r.wooCommerceWidgets,onClick:function(e){return e.stopPropagation()},onChange:function(){return s("wooCommerceWidgets")},className:"uae-role-checkbox w-5 h-5",style:{accentColor:"#240064",width:"18px",height:"18px"}}))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"10px",marginBottom:"10px",borderColor:"#E5E7EB"}}),c().createElement("div",{className:"flex items-center justify-between gap-3 cursor-pointer",onClick:function(){return s("premiumWidgets")}},c().createElement("div",{className:"flex flex-col space-y-1 flex-1"},c().createElement("div",{className:"flex items-center justify-start gap-1"},c().createElement("div",{className:"text-sm font-normal m-0"},(0,fm.__)("50+ Premium Widgets & 200+ Templates","header-footer-elementor")),c().createElement(rm,{label:(0,fm.__)("Pro","header-footer-elementor"),size:"xs",type:"pill",variant:"inverse"})),c().createElement("div",{style:{color:"#9CA3AF"},className:"text-sm font-normal m-0"},(0,fm.__)("Design eye-catching popups directly in Elementor—collect leads, display promotions, or show messages without needing a separate popup plugin.","header-footer-elementor"))),c().createElement("div",{className:"flex-shrink-0"},c().createElement("input",{type:"checkbox",checked:r.premiumWidgets,onClick:function(e){return e.stopPropagation()},onChange:function(){return s("premiumWidgets")},className:"uae-role-checkbox w-5 h-5",style:{accentColor:"#240064",width:"18px",height:"18px"}}))),c().createElement("div",{className:"flex justify-between items-center px-2 hfe-onboarding-bottom",style:{paddingTop:"30px"}},c().createElement(ct,{className:"flex items-center gap-1 outline-none hfe-remove-ring",icon:c().createElement(qh,null),variant:"outline",onClick:function(){return t(2)}},(0,fm.__)("Back","header-footer-elementor")),c().createElement("div",{className:"flex justify-start text-text-tertiary items-center gap-3"},c().createElement(ct,{className:"hfe-remove-ring text-text-tertiary",variant:"ghost",onClick:function(){return t(4)}}," ",(0,fm.__)("Skip","header-footer-elementor")),l?c().createElement(ct,{className:"flex items-center gap-1 hfe-remove-ring",icon:c().createElement(Yh,null),iconPosition:"right",style:{backgroundColor:"#5C2EDE",transition:"background-color 0.3s ease",padding:"12px"},onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=wp-admin&utm_medium=onboarding&utm_campaign=uae-upgrade","_blank")}},(0,fm.__)("Upgrade","header-footer-elementor")):c().createElement(ct,{className:"flex items-center gap-1 hfe-remove-ring",icon:c().createElement(Yh,null),iconPosition:"right",style:{backgroundColor:"#5C2EDE",transition:"background-color 0.3s ease",padding:"12px"},onClick:function(){return t(4)}},(0,fm.__)("Next","header-footer-elementor")))),l&&c().createElement("div",{className:"mt-4 p-3 rounded-lg border border-gray-400 bg-gray-50",style:{backgroundColor:"#F9FAFB",borderColor:"#E5E7EB",marginTop:"16px"}},c().createElement("div",{className:"text-sm border border-gray-400 text-gray-700 font-medium"},(0,fm.__)("You've picked Pro features — upgrade to start using them.","header-footer-elementor")))))}},{label:"",component:function(e){e.setCurrentStep;var t=i((0,a.useState)(!1),2),n=t[0],r=t[1],o=i((0,a.useState)(""),2),s=o[0],l=o[1],u=i((0,a.useState)(""),2),d=u[0],m=u[1],f=i((0,a.useState)(""),2),h=f[0],p=f[1],g=i((0,a.useState)(!0),2),y=(g[0],g[1]),v=i((0,a.useState)(""),2),x=v[0],w=v[1],b=i((0,a.useState)(""),2),E=b[0],_=b[1],k=i((0,a.useState)(!1),2),S=k[0],N=k[1];(0,a.useEffect)((function(){l(hfeSettingsData.user_email),y("yes"===hfeSettingsData.analytics_status),history.pushState(null,"",window.location.href);var e=function(e){e.preventDefault(),localStorage.setItem("currentStep","2"),window.location.reload()};return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[hfeSettingsData.user_email]);return c().createElement("div",{className:"bg-background-primary border-[0.5px] border-subtle rounded-xl shadow-sm mb-6 p-8",style:{width:"672px"}},c().createElement("div",{className:"flex items-start hfe-display-flex"},c().createElement("div",{className:"flex flex-col items-start",style:{paddingRight:"35px"}},c().createElement("h1",{className:"text-text-primary m-0 mb-2",style:{fontSize:"1.4rem",lineHeight:"1.3em"}},(0,fm.__)("You’re All Set to Start Creating! 🚀","header-footer-elementor")),c().createElement("span",{className:"text-sm font-normal text-text-tertiary m-0 mb-4 ",style:{lineHeight:"1.6em"}},(0,fm.__)("Ultimate Addons is ready to supercharge your Elementor workflow! Build faster, cleaner, and more creatively — with complete control over your site.","header-footer-elementor")),c().createElement("span",{className:"font-semibold m-0 pt-2"},(0,fm.__)("What You Can Do Next:","header-footer-elementor")),c().createElement("ul",{className:"font-normal",style:{fontSize:"0.9rem",lineHeight:"1.6em",color:"#111827"}},c().createElement("li",{className:"font-normal",style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",color:"#111827"}},c().createElement(Xm,{color:"#111827",size:18}),(0,fm.__)("Build a custom header","header-footer-elementor")),c().createElement("li",{className:"font-normal ",style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",color:"#111827"}},c().createElement(Xm,{color:"#111827",size:18}),(0,fm.__)("Design your site footer","header-footer-elementor")),c().createElement("li",{className:"font-normal",style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",color:"#111827"}},c().createElement(Xm,{color:"#111827",size:18}),(0,fm.__)("Create a new page","header-footer-elementor"))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginBottom:"20px",borderColor:"#E5E7EB"}})),c().createElement("div",{className:"",style:{textAlign:"end"}},c().createElement("img",{alt:"Build",className:"w-full object-contain",style:{height:"130px",width:"160px"},src:"".concat(hfeSettingsData.create_new),loading:"lazy"}))),c().createElement("div",{className:"flex flex-row pt-2 items-center justify-between gap-1 pb-4 hfe-display-flex"},c().createElement("div",{className:"flex items-center justify-start gap-3"},c().createElement(ct,{iconPosition:"right",variant:"outline",className:"hfe-remove-ring text-sm font-semibold",style:{transition:"background-color 0.3s ease"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor=""},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor=""},onClick:function(){window.open(hfeSettingsData.hfe_post_url,"_self")}},(0,fm.__)("Create New Header","header-footer-elementor")),c().createElement(ct,{iconPosition:"right",variant:"outline",className:"hfe-remove-ring text-sm font-semibold",style:{transition:"background-color 0.3s ease"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor=""},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor=""},onClick:function(){window.open(hfeSettingsData.hfe_post_url,"_self")}},(0,fm.__)("Create New Footer","header-footer-elementor"))),c().createElement(ct,{iconPosition:"right",variant:"outline",className:"hfe-remove-ring text-sm font-semibold",style:{color:"",borderColor:""},onMouseEnter:function(e){return e.currentTarget.style.color="#000000"},onMouseLeave:function(e){return(e.currentTarget.style.color="")&&(e.currentTarget.style.borderColor="")},onClick:function(){window.open(hfeSettingsData.elementor_page_url,"_blank")}},(0,fm.__)("Create New Page","header-footer-elementor"))),c().createElement(sf,{design:"simple",open:n,setOpen:r},c().createElement(sf.Backdrop,null),c().createElement(sf.Panel,null,c().createElement(sf.Header,{style:{padding:"30px",marginBottom:"0.5rem"}},c().createElement("div",{className:"flex items-center justify-between"},c().createElement("div",{className:"flex items-center justify-center"},c().createElement(sf.Title,{style:{fontSize:"1.6rem",width:"80%",lineHeight:"1.3em"}},(0,fm.__)("We have a special Reward just for you! 🎁","header-footer-elementor")),c().createElement(ct,{icon:c().createElement(Mh,{className:"size-10"}),iconPosition:"right",size:"md",variant:"ghost",className:"hfe-remove-ring self-start",onClick:function(){return r(!1)},style:{marginLeft:"60px",marginBottom:"20px"}}))),c().createElement(sf.Description,{style:{width:"90%",color:"#64748B",marginTop:"10px"}},(0,fm.__)("Enter your details to get special offer that we have for you and stay updated on UAE’s latest news and updates.","header-footer-elementor")),c().createElement("div",{className:"flex w-full",style:{marginTop:"15px"}},c().createElement("div",{className:"block",style:{width:"50%",paddingRight:"13px"}},c().createElement("input",{type:"text",placeholder:(0,fm.__)("First Name","header-footer-elementor"),value:d,className:"h-12 border border-subtle px-2 w-full",style:{borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"5px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},onChange:function(e){e&&e.target&&(_(""),m(e.target.value))}}),E&&c().createElement("span",{className:"absolute color-text-danger text-xs text-sm font-normal",style:{color:"#FF0000",marginTop:"0px"}},E)),c().createElement("div",{className:"block",style:{width:"50%"}},c().createElement("input",{type:"text",placeholder:(0,fm.__)("Last Name","header-footer-elementor"),value:h,className:"h-12 border border-subtle px-2 w-full",style:{borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"5px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},onChange:function(e){e&&e.target&&p(e.target.value)}}))),c().createElement("input",{type:"email",placeholder:(0,fm.__)("Your Email Address","header-footer-elementor"),value:s,className:"h-12 border border-subtle px-2 w-full",style:{borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"20px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},onChange:function(e){e&&e.target&&(w(""),l(e.target.value))}}),x&&c().createElement("span",{className:"absolute color-text-danger text-xs text-sm font-normal",style:{color:"#FF0000",marginTop:"0px"}},x),c().createElement(ct,{icon:S?c().createElement(LoaderCircle,{className:"animate-spin"}):null,iconPosition:"right",variant:"primary",className:"bg-[#6005FF] hfe-remove-ring w-full mt-2",disabled:S,style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease",marginTop:"20px"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:function(){var e=!1;d.trim()?_(""):(_((0,fm.__)("This field is required","header-footer-elementor")),e=!0),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?w(""):(w((0,fm.__)("Entered email address is invalid!","header-footer-elementor")),e=!0),e||(w(""),_(""),N(!0),function(e,t,n){var r=(new Date).toISOString().split("T")[0],o=new URLSearchParams({email:e,date:r,fname:t,lname:n});fetch("/wp-json/hfe/v1/email-webhook/?".concat(o.toString()),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){if(!e.ok)throw new Error("HTTP error! Status: ".concat(e.status));return e.json()})).then((function(e){"success"===e.message?(N(!1),window.location.href=hfeSettingsData.onboarding_success_url):(N(!1),console.warn("Unexpected webhook response:",e))})).catch((function(e){console.error("Error calling webhook:",e)}))}(s,d,h))}},(0,fm.__)("Submit","header-footer-elementor"))))))}}],np=tp.slice(0,4);const rp=function(){var e,t=i(c().useState((function(){var e=localStorage.getItem("currentStep");return e?parseInt(e,10):1})),2),n=t[0],r=t[1];(0,a.useEffect)((function(){localStorage.setItem("currentStep",n)}),[n]),(0,a.useEffect)((function(){var e=setTimeout((function(){localStorage.removeItem("currentStep")}),18e4);return function(){return clearTimeout(e)}}),[]);var o=null===(e=tp[n-1])||void 0===e?void 0:e.component;return c().createElement("div",null,c().createElement("div",{className:"w-full"},c().createElement("div",{className:"flex flex-col items-center justify-center",style:{marginTop:"-38px",marginBottom:"24px"}},c().createElement(ot,{className:"bg-none",style:{background:"none"}},c().createElement(ot.Left,null,c().createElement(ot.Item,null,hfeSettingsData.icon_svg&&c().createElement(D,{to:hm.dashboard.path},c().createElement("img",{src:"".concat(hfeSettingsData.icon_new),alt:"Logo",className:"cursor-pointer",style:{height:"35px"}})))),c().createElement(ot.Middle,null,c().createElement(ot.Item,null,c().createElement(Uh,{currentStep:Math.min(n,np.length),className:"uae-steps",variant:"number",completedVariant:"number"},np.map((function(e,t){return c().createElement(Uh.Step,{key:t,className:"font-bold",labelText:e.label,size:"md"})}))))),c().createElement(ot.Right,null,c().createElement(ot.Item,null,c().createElement(D,{className:"hfe-remove-ring",to:hm.dashboard.path},c().createElement("div",{className:"flex items-center cursor-pointer justify-center gap-1"},c().createElement("p",{style:{fontSize:"0.9rem",color:"#111827"}},(0,fm.__)("Exit Guided Setup","header-footer-elementor")),c().createElement(ct,{icon:c().createElement(Mh,{className:"size-4"}),iconPosition:"right",size:"xs",variant:"ghost",className:"hfe-remove-ring"})))))))),c().createElement("div",{className:"flex items-center justify-center"},o&&c().createElement(o,{currentStep:n,setCurrentStep:r})))},op=function(){return(0,a.useEffect)((function(){var e=document.body;return e.classList.add("hfe-onboarding-fullscreen"),function(){e.classList.remove("hfe-onboarding-fullscreen")}}),[]),c().createElement(c().Fragment,null,c().createElement(rp,null))},sp=function(){var e;return React.createElement(L,{routes:hm,defaultRoute:null==hm||null===(e=hm.dashboard)||void 0===e?void 0:e.path},React.createElement(T,{path:hm.dashboard.path},React.createElement(wf,null)),React.createElement(T,{path:hm.onboarding.path},React.createElement(op,null)),React.createElement(T,{path:hm.widgets.path},React.createElement(Cf,null)),React.createElement(T,{path:hm.templates.path},React.createElement(jf,null)),React.createElement(T,{path:hm.settings.path},React.createElement(Dh,null)),React.createElement(T,{path:hm.upgrade.path},React.createElement(Oh,null)))},ip=Id("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),ap=({variant:e="primary",size:t="md",icon:n=null,className:r=""})=>{const o={primary:"text-brand-primary-600",secondary:"text-background-primary"}[e],s={sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6",xl:"[&>svg]:size-8"}[t];return(0,O.jsx)("span",{className:Re("flex",s,o,r),children:n||(0,O.jsx)(ip,{className:"animate-spin shrink-0"})})},lp=function(){var e=i((0,a.useState)(!1),2),t=e[0],n=e[1],r=i((0,a.useState)(!0),2);return r[0],r[1],window.onhashchange=function(){window.scrollTo(0,0)},(0,a.useEffect)((function(){setTimeout((function(){n(!0)}),1e3)}),[]),t?React.createElement("div",{className:"app-container font-figtree"},React.createElement(sp,null)):React.createElement("div",{className:"loading-spinner flex items-center justify-center h-screen",style:{background:"#F9FAFB"}},React.createElement(ap,{icon:null,size:"lg",variant:"primary"}))};n()((function(){var t=document.getElementById("hfe-settings-app");if(t&&(0,e.H)(t).render(React.createElement(lp,null)),"yes"===hfe_admin_data.show_view_all||window.location.href===hfeSettingsData.header_footer_builder||"yes"===hfeSettingsData.is_hfe_post){var n=document.getElementById("hfe-admin-top-bar-root");if(n){var r=document.createElement("div");r.id="hfe-settings-app",n.appendChild(r),(0,e.H)(r).render(React.createElement(km,null))}}}))})()})();
//# sourceMappingURL=main.js.map