File "customize-store.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/woocommerce/assets/client/admin/chunks/customize-store.js
File size: 260.51 KB
MIME-type: text/plain
Charset: utf-8

"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[925],{46417:(e,t,o)=>{o.d(t,{Q:()=>g,Z:()=>m});var r=o(69307),n=o(7829),a=o(55609),i=o(94333),s=o(65736);const c={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},l=320,M={width:"100%",height:"100%"};function u(e,t){var o;return e/((o=t)+(.46153846153846156-o)*(1-Math.max(0,Math.min(1,(e-l)/980))))}const g=(0,r.createContext)(!1),m=function e({isFullWidth:t,isOversized:o,setIsOversized:m,isReady:d,children:y,defaultSize:N,innerContentStyle:I,isHandleVisibleByDefault:p=!1}){const[D,T]=(0,r.useState)(M),[j,w]=(0,r.useState)(),[E,z]=(0,r.useState)(!1),[k,h]=(0,r.useState)(!1),[A,f]=(0,r.useState)(1),x={type:"tween",duration:E?0:.5},[L,O]=(0,r.useState)(!1),_=(0,r.useRef)(null),b=(0,i.useInstanceId)(e,"edit-site-resizable-frame-handle-help"),S=N.width/N.height,C={default:{flexGrow:0,height:D.height},fullWidth:{flexGrow:1,height:D.height}},v=E||p?"active":k?"visible":"hidden",Q=(0,r.createElement)(a.__unstableMotion.button,{key:"handle",role:"separator","aria-orientation":"vertical",className:(0,n.Z)("edit-site-resizable-frame__handle",{"is-resizing":E}),variants:{hidden:{opacity:0,left:0},visible:{opacity:.6,left:-10},active:{opacity:1,left:-10}},animate:v,"aria-label":(0,s.__)("Drag to resize","woocommerce"),"aria-describedby":b,"aria-valuenow":_.current?.resizable?.offsetWidth||void 0,"aria-valuemin":l,"aria-valuemax":N.width,onKeyDown:e=>{if(!["ArrowLeft","ArrowRight"].includes(e.key))return;e.preventDefault();const t=20*(e.shiftKey?5:1)*("ArrowLeft"===e.key?1:-1),o=Math.min(Math.max(l,_.current.resizable.offsetWidth+t),N.width);T({width:o,height:u(o,S)})},initial:"hidden",exit:"hidden",whileFocus:"active",whileHover:"active",children:p&&!L&&(0,r.createElement)(a.Popover,{className:"woocommerce-assembler-hub__resizable-frame__drag-handler",position:"middle right"},(0,s.__)("Drag to resize","woocommerce"))});return(0,r.createElement)(a.ResizableBox,{as:a.__unstableMotion.div,ref:_,initial:!1,variants:C,animate:t?"fullWidth":"default",onAnimationComplete:e=>{"fullWidth"===e&&T({width:"100%",height:"100%"})},transition:x,size:D,enable:{top:!1,right:!1,bottom:!1,left:d,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},resizeRatio:A,handleClasses:void 0,handleStyles:{left:c,right:c},minWidth:l,maxWidth:"100%",maxHeight:"100%",onFocus:()=>h(!0),onBlur:()=>h(!1),onMouseOver:()=>h(!0),onMouseOut:()=>h(!1),handleComponent:{left:(0,r.createElement)(r.Fragment,null,p?(0,r.createElement)("div",null,Q):(0,r.createElement)(a.Tooltip,{position:"middle right",text:(0,s.__)("Drag to resize","woocommerce")},Q),(0,r.createElement)("div",{hidden:!0,id:b},(0,s.__)("Use left and right arrow keys to resize the canvas. Hold shift to resize in larger increments.","woocommerce")))},onResizeStart:(e,t,o)=>{w(o.offsetWidth),z(!0)},onResize:(e,t,r,n)=>{const a=n.width/A,i=Math.abs(a),s=n.width<0?i:(N.width-j)/2,c=Math.min(i,s),l=0===i?0:c/i;f(1-l+2*l);const M=j+n.width;m(M>N.width),T({height:o?"100%":u(M,S)})},onResizeStop:(e,t,r)=>{z(!1),L||O(!0),o&&(m(!1),T(M))},className:(0,n.Z)("edit-site-resizable-frame__inner",{"is-resizing":E})},(0,r.createElement)(a.__unstableMotion.div,{className:"customize-your-store-edit-site-resizable-frame__inner-content",animate:{borderRadius:t?0:8},transition:x,style:I},(0,r.createElement)(g.Provider,{value:E},y)))}},60970:(e,t,o)=>{o.d(t,{R:()=>N});var r=o(12314),n=o(69307),a=o(7829),i=o(9818),s=o(55609),c=o(94333),l=o(37798),M=o(22629),u=o(59713),g=o(10431),m=o(86020),d=o(15577),y=o(84279);const N=(0,n.forwardRef)((({isTransparent:e,...t},o)=>{const{siteTitle:N}=(0,i.useSelect)((e=>{const{getSite:t}=e(l.store);return{siteTitle:t()?.title}}),[]),I=(0,c.useReducedMotion)();return(0,n.createElement)(s.__unstableMotion.div,(0,r.Z)({ref:o},t,{className:(0,a.Z)("edit-site-site-hub",t.className),initial:!1,transition:{type:"tween",duration:I?0:.3,ease:"easeOut"}}),(0,n.createElement)(s.__experimentalHStack,{justify:"space-between",alignment:"center",className:"edit-site-site-hub__container"},(0,n.createElement)(s.__experimentalHStack,{justify:"flex-start",className:"edit-site-site-hub__text-content",spacing:"0"},(0,n.createElement)("div",{className:(0,a.Z)("edit-site-site-hub__view-mode-toggle-container",{"has-transparent-background":e})},(0,n.createElement)(m.Link,{href:(0,g.getNewPath)((0,g.getPersistedQuery)(),"/",{}),type:"wp-admin"},(0,y.id)()?(0,n.createElement)(d.Z,{size:24,className:"woocommerce-cys-wordpress-header-logo"}):(0,n.createElement)(u.Z,{className:"edit-site-layout__view-mode-toggle-icon"}))),!(0,y.id)()&&(0,n.createElement)(s.__unstableAnimatePresence,null,(0,n.createElement)(s.__unstableMotion.div,{layout:!1,animate:{opacity:1},exit:{opacity:0},className:(0,a.Z)("edit-site-site-hub__site-title",{"is-transparent":e}),transition:{type:"tween",duration:I?0:.2,ease:"easeOut",delay:.1}},(0,M.decodeEntities)(N))))))}))},95218:(e,t,o)=>{o.r(t),o.d(t,{CustomizeStoreController:()=>sa,customizeStoreStateMachineActions:()=>na,customizeStoreStateMachineDefinition:()=>ia,customizeStoreStateMachineServices:()=>aa,default:()=>ca,machineActions:()=>ra});var r={};o.r(r),o.d(r,{assignActiveTheme:()=>F,assignActiveThemeHasMods:()=>K,assignCurrentThemeIsAiGenerated:()=>H,assignCustomizeStoreCompleted:()=>Z,assignFetchIntroDataError:()=>W,assignFlags:()=>q,assignIsFontLibraryAvailable:()=>J,assignIsPTKPatternsAPIAvailable:()=>X,assignNoAIFlowError:()=>V,assignTaskReferral:()=>Y,assignThemeData:()=>U,recordTracksBrowseAllThemesClicked:()=>R,recordTracksDesignWithAIClicked:()=>B,recordTracksDesignWithoutAIClicked:()=>P,recordTracksThemeSelected:()=>G});var n={};o.r(n),o.d(n,{fetchAiStatus:()=>oe,fetchCustomizeStoreCompleted:()=>ne,fetchIntroData:()=>ae,fetchThemeCards:()=>re,setFlags:()=>ie});var a={};o.r(a),o.d(a,{assignHasCompleteSurvey:()=>_n,completeSurvey:()=>bn});var i={};o.r(i),o.d(i,{fetchSurveyCompletedOption:()=>Sn});var s=o(69307),c=o(37798),l=o(38469),M=o(8667),u=o(66002),g=o(10431),m=o(67221),d=o(9818),y=o(86020),N=o(74617),I=o(98817),p=o(66811),D=o(53736),T=o(65736),j=o(70048),w=o(76357),E=o(55609);let z=function(e){return e.AIOnline="AIOnline",e.AIOffline="AIOffline",e.noAI="noAI",e}({});var k=o(60970);const h=({colorPalettes:e,totalPalettes:t})=>{let o=null;return t>4&&(o=(0,s.createElement)("li",{className:"more_palettes"},"+",t-4)),(0,s.createElement)("ul",{className:"theme-card__color-palettes"},e.map((e=>(0,s.createElement)("li",{key:e.title,style:{background:"linear-gradient(to right, "+e.primary+" 0px, "+e.primary+" 50%, "+e.secondary+" 50%, "+e.secondary+" 100%)"}}))),o)},A=({slug:e,description:t,thumbnail_url:o,name:r,color_palettes:n=[],total_palettes:a=0,link_url:i="",is_active:c=!1,is_free:l,price:M,onClick:u})=>(0,s.createElement)("div",{className:"theme-card",key:e},(0,s.createElement)("div",null,i?(0,s.createElement)(y.Link,{href:i,onClick:u},(0,s.createElement)("img",{src:o,alt:t})):(0,s.createElement)("img",{src:o,alt:t})),(0,s.createElement)("div",{className:"theme-card__info"},(0,s.createElement)("h2",{className:"theme-card__title"},r),n&&(0,s.createElement)(h,{colorPalettes:n,totalPalettes:a})),(0,s.createElement)("div",null,c&&(0,s.createElement)("span",{className:"theme-card__active"},(0,T.__)("Active theme","woocommerce")),!l&&(0,s.createElement)("span",{className:"theme-card__paid"},(0,T.__)("Paid","woocommerce")),(0,s.createElement)("span",{className:"theme-card__free"},M)));var f=o(34081);const x=()=>{const[e,t]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{const e=()=>{t(!0)},o=()=>{t(!1)};return window.addEventListener("offline",e),window.addEventListener("online",o),()=>{window.removeEventListener("offline",e),window.removeEventListener("online",o)}}),[]),e};var L=o(33342);const O=o.p+"f7b873a3a464ccdb5585.svg";var _=o(52228),b=o(76373);const S=e=>e===z.AIOnline||e===z.AIOffline,C=e=>e===z.noAI,v=e=>e===z.AIOffline;var Q=o(7872);const U=(0,Q.assign)({intro:(e,t)=>{const o=t.data.themeData;return{...e.intro,themeData:o}}}),F=(0,Q.assign)({intro:(e,t)=>{const o=t.data.activeTheme;return{...e.intro,activeTheme:o}}}),Y=(0,Q.assign)({intro:(e,t)=>{const o=t.data.taskReferral;return{...e.intro,taskReferral:o}}}),B=()=>{(0,b.L)("customize_your_store_intro_design_with_ai_click")},P=()=>{(0,b.L)("customize_your_store_intro_design_without_ai_click")},G=(e,t)=>{(0,b.L)("customize_your_store_intro_theme_select",{theme:t.payload.theme,is_active:"SELECTED_ACTIVE_THEME"===t.type?"yes":"no"})},R=()=>{(0,b.L)("customize_your_store_intro_browse_all_themes_click")},Z=(0,Q.assign)({intro:(e,t)=>{const o=t.data.customizeStoreTaskCompleted;return{...e.intro,customizeStoreTaskCompleted:o}}}),W=(0,Q.assign)({intro:e=>({...e.intro,hasErrors:!0})}),H=(0,Q.assign)({intro:(e,t)=>{const o=t.data.currentThemeIsAiGenerated;return{...e.intro,currentThemeIsAiGenerated:o}}}),V=(0,Q.assign)({intro:(e,t)=>{const{errorStatus:o}=t;return{...e.intro,hasErrors:!0,errorStatus:o}}}),J=(0,Q.assign)({isFontLibraryAvailable:(e,t)=>t.payload}),X=(0,Q.assign)({isPTKPatternsAPIAvailable:(e,t)=>t.payload}),K=(0,Q.assign)({activeThemeHasMods:(e,t)=>t.data.activeThemeHasMods}),q=(0,Q.assign)({activeThemeHasMods:()=>(0,_.cL)(window)?window.parent.__wcCustomizeStore.activeThemeHasMods:window.__wcCustomizeStore.activeThemeHasMods,isFontLibraryAvailable:()=>(0,_.cL)(window)?window.parent.__wcCustomizeStore.isFontLibraryAvailable||!1:window.__wcCustomizeStore.isFontLibraryAvailable,isPTKPatternsAPIAvailable:()=>(0,_.cL)(window)?window.parent.__wcCustomizeStore.isPTKPatternsAPIAvailable||!1:window.__wcCustomizeStore.isPTKPatternsAPIAvailable,flowType:(e,t)=>t.data});var $=o(86989),ee=o.n($),te=o(34052);const oe=async()=>{const e=await fetch("https://status.openai.com/api/v2/status.json");return await e.json()},re=async()=>await ee()({path:"/wc-admin/onboarding/themes/recommended",method:"GET"}),ne=async()=>{const e=await(0,d.resolveSelect)(m.ONBOARDING_STORE_NAME).getTask("customize-store");return{customizeStoreTaskCompleted:e?.isComplete}},ae=async()=>{const e=(0,d.resolveSelect)(c.store).getDefaultTemplateId({slug:"home"}),t=(0,d.resolveSelect)(m.OPTIONS_STORE_NAME).getOption("woocommerce_admin_customize_store_completed_theme_id"),o=(0,d.resolveSelect)(m.ONBOARDING_STORE_NAME).getTask("customize-store"),r=re(),[n,a,i,s]=await Promise.all([e,t,o,r]);let l=!1;a&&n===a&&(l=!0);const M=i?.isComplete;return{customizeStoreTaskCompleted:M,themeData:s,activeTheme:(await(0,d.resolveSelect)("core").getCurrentTheme()).stylesheet||"",currentThemeIsAiGenerated:l}},ie=async()=>{if(!(0,_.cL)(window)){const e={FONT_LIBRARY_AVAILABLE:(async()=>{const e=await(async()=>{try{return await ee()({path:"/wp/v2/font-collections?_fields=slug",method:"GET"}),!0}catch(e){return!1}})();window.__wcCustomizeStore={...window.__wcCustomizeStore,isFontLibraryAvailable:e}})(),PTK_PATTERNS_API_AVAILABLE:(async()=>{const e=await(async()=>{try{return await ee()({path:"/wc/private/patterns",method:"GET"}),!0}catch(e){return!1}})();window.__wcCustomizeStore={...window.__wcCustomizeStore,isPTKPatternsAPIAvailable:e}})()};await Promise.all(Object.values(e))}if((0,te.V)()&&!(0,_.cL)(window))try{const{status:e}=await oe(),t="critical"!==e.indicator&&"major"!==e.indicator;return window.cys_aiOnline=e,(0,b.L)("customize_your_store_ai_status",{online:t?"yes":"no"}),window.cys_aiFlow=!0,t?z.AIOnline:z.AIOffline}catch(e){return window.cys_aiOnline=!1,(0,b.L)("customize_your_store_ai_status",{online:"no"}),z.AIOffline}return z.noAI},se={"network-offline":L.B_,"task-incomplete-active-theme-has-mods":L.wO,"jetpack-offline":L.sw,"existing-ai-theme":L.mt,"existing-theme":L.nC,[z.noAI]:L.$p,"existing-no-ai-theme":L.vY,"classic-theme":L.rJ,"non-default-block-theme":L.Tf,default:L.jf},ce={"no-modal":null,"task-incomplete-override-design-changes":f.MO,"task-complete-with-ai-theme":f.ab,"task-complete-without-ai-theme":f.Fc},le=({sendEvent:e,themeData:t})=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",{className:"select-theme-text"},(0,T.__)("Or select a professionally designed theme to customize and make your own.","woocommerce")),(0,s.createElement)("div",{className:"woocommerce-customize-store-theme-cards"},t.themes?.map((t=>(0,s.createElement)(A,{key:t.slug,slug:t.slug,description:t.description,thumbnail_url:t.thumbnail_url,name:t.name,color_palettes:t.color_palettes,total_palettes:t.total_palettes,link_url:t?.link_url,is_active:t.is_active,is_free:t.is_free,price:t.price,onClick:()=>{t.is_active?e({type:"SELECTED_ACTIVE_THEME",payload:{theme:t.slug}}):e({type:"SELECTED_NEW_THEME",payload:{theme:t.slug}})}})))),(0,s.createElement)("div",{className:"woocommerce-customize-store-browse-themes"},(0,s.createElement)("button",{onClick:()=>e({type:"SELECTED_BROWSE_ALL_THEMES"})},(0,T.__)("Browse all themes","woocommerce")))),Me=({isBlockTheme:e,isDefaultTheme:t,isNoAiFlow:o,sendEvent:r})=>{const[n,a]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",{className:"select-theme-text"},(0,T.__)("Design or choose a new theme","woocommerce")),(0,s.createElement)("div",{className:"woocommerce-customize-store-cards"},(0,s.createElement)("div",{className:"intro-card"},(0,s.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkyIiBoZWlnaHQ9IjE2NyIgdmlld0JveD0iMCAwIDI5MiAxNjciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xNzIuMzU1IDE2LjQxMTZINi4wNDk1OEMzLjA0NzM1IDE2LjQxMTYgMC41IDE4Ljk1OTggMC41IDIxLjk2MjlWMjguMTUxM0gxNzcuODE0VjIxLjk2MjlDMTc3LjkwNSAxOC44Njg4IDE3NS40NDggMTYuNDExNiAxNzIuMzU1IDE2LjQxMTZaIiBmaWxsPSIjQkVBMEYyIi8+CjxwYXRoIGQ9Ik0xOTUuODY1IDExMC42OTNWMTU0LjA1N0gyNDAuMTI1VjExMC42OTNIMTk1Ljg2NVpNMjA3LjIzNyAxNDIuNjgxVjEyMi4wNzhIMjI4Ljc0NFYxNDIuNjgxSDIwNy4yMzdaIiBmaWxsPSIjRTVFNUU1IiBmaWxsLW9wYWNpdHk9IjAuNiIvPgo8cGF0aCBkPSJNMTk1Ljg2NSAzOC4zNDM4Vjk4Ljk2MjRIMjkxLjVWMzguMzQzOEgxOTUuODY1Wk0yMDcuMjM3IDg3LjU4NjdWNDkuNzE5NEgyODAuMTI4Vjg3LjU4NjdIMjA3LjIzN1oiIGZpbGw9IiNFNUU1RTUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGQ9Ik0yODAuMjYyIDEwNi4yOThDMjc4LjgzMyAxMDUuMTYxIDI2NC41MTQgOTQuMTY3NSAyNjQuNTE0IDk0LjE2NzVDMjY0LjUxNCA5NC4xNjc1IDI2Mi42Nz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NDMxMVY3LjkzMTA2SDI3NC4wNDVWMjcuMDcxSDI2OC45NDlWMjcuMjgyMVpNMjY4Ljk0OSAyMS4xNDU2VjE0LjM4NDFDMjY4LjExMyAxMy4xMzQxIDI2Ni4yNDcgMTIuMjAwNiAyNjQuNTgzIDEyLjIwMDZDMjYxLjY3IDEyLjIwMDYgMjU5LjY5OCAxNC40ODk2IDI1OS42OTggMTcuNzEyMUMyNTkuNjk4IDIwLjkzNDYgMjYxLjY3IDIzLjMyOTEgMjY0LjU4MyAyMy4zMjkxQzI2Ni4yNDcgMjMuMzI5MSAyNjguMTIxIDIyLjM5NTYgMjY4Ljk0OSAyMS4xNDU2WiIgZmlsbD0iIzNDMjg2MSIvPgo8cGF0aCBkPSJNMTA4LjMxNyAxMDMuODU3QzEwOC44MTYgOTkuMDAyMSAxMDIuMTMxIDk0LjMzNjIgOTMuMzg0NCA5My40MzUxQzg0LjYzNzggOTIuNTM0IDc3LjE0MjEgOTUuNzM5IDc2LjY0MjMgMTAwLjU5NEM3Ni4xNDI1IDEwNS40NDggODIuODI3OCAxMTAuMTE0IDkxLjU3NDUgMTExLjAxNUMxMDAuMzIxIDExMS45MTYgMTA3LjgxNyAxMDguNzExIDEwOC4zMTcgMTAzLjg1N1oiIGZpbGw9IiNFQUUyRkYiLz4KPC9zdmc+Cg==",alt:(0,T.__)("Design your own theme","woocommerce")}),(0,s.createElement)("div",null,(0,s.createElement)("h2",{className:"intro-card__title"},(0,T.__)("Design your own theme","woocommerce")),(0,s.createElement)("button",{className:"intro-card__link",onClick:()=>{(0,b.L)("customize_your_store_intro_design_theme",{theme_type:e?"block":"classic"}),t&&o?(0,_.tJ)(window,(0,g.getNewPath)({customizing:!0},"/customize-store/assembler-hub",{})):a(!0)}},(0,T.__)("Use the store designer","woocommerce")))),(0,s.createElement)("div",{className:"intro-card"},(0,s.createElement)("img",{src:O,alt:(0,T.__)("Choose a professionally designed theme","woocommerce")}),(0,s.createElement)("div",null,(0,s.createElement)("h2",{className:"intro-card__title"},(0,T.__)("Choose a professionally designed theme","woocommerce")),(0,s.createElement)("button",{className:"intro-card__link",onClick:()=>{(0,b.L)("customize_your_store_intro_browse_themes"),r({type:"SELECTED_BROWSE_ALL_THEMES"})}},(0,T.__)("Browse themes","woocommerce"))))),n&&(0,s.createElement)(f.Nh,{setIsModalOpen:a,isNoAiFlow:o,redirectToCYSFlow:()=>r({type:o?"DESIGN_WITHOUT_AI":"DESIGN_WITH_AI"})}))},ue=({onClick:e})=>(0,s.createElement)("div",null,(0,s.createElement)(E.Button,{className:"close-cys-design-with-ai",onClick:e||(()=>{})},(0,s.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)("path",{d:"M5.40456 5L19 19M5 19L18.5954 5",stroke:"#1E1E1E",strokeWidth:"1.5"})))),ge=({onClick:e})=>(0,s.createElement)("div",null,(0,s.createElement)(E.Button,{className:"skip-cys-design-with-ai",onClick:e||(()=>{}),variant:"link"},(0,T.__)("Skip","woocommerce")));var me=o(84279),de=o(15577),ye=o(7829);const Ne=({className:e,selected:t,title:o,subtitle:r,name:n,value:a,onChange:i})=>{const c=()=>{i(a)},l="woocommerce-"+a.replace(/_/g,"-");return(0,s.createElement)("div",{role:"radio",className:(0,ye.Z)("woocommerce-cys-choice-container",e),onClick:c,onKeyDown:e=>{"Enter"===e.key&&c()},"data-selected":t||null,tabIndex:0},(0,s.createElement)("div",{className:"woocommerce-cys-choice"},(0,s.createElement)("input",{className:"woocommerce-cys-choice-input",id:l,name:n,type:"radio",value:a,checked:!!t,onChange:c,"data-selected":t||null,tabIndex:-1}),(0,s.createElement)("label",{htmlFor:l,className:"choice__title"},o),r&&(0,s.createElement)("p",{className:"choice__subtitle"},r)))},Ie=o.p+"73ae3f4886531d9c3fee.svg",pe=o.p+"ef66842cc5fb22e3c7ca.svg",De=[{title:(0,T.__)("Analyzing your responses","woocommerce"),image:(0,s.createElement)("img",{src:"data:image/svg+xml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40NzI4NEM1LjQ4MjA4IDU2LjE0OTUgNS4zMTQ1MiA0OC42ODU1IDguMjkwNDQgNDQuMjU1NloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGlkPSJWZWN0b3JfMzIiIGQ9Ik01Ni4wMzYxIDU3LjY0MzFINS45Njk5N0M2LjA4Mjg5IDU4LjkyMzIgNi4yNTc3MyA2MC4xNDkxIDYuNDcyNjQgNjEuMjYyOUg1Ni4wNDM0QzU2LjE0MTcgNjAuMjEwNiA1Ni4yNjU1IDU4Ljk0MTMgNTYuMDMyNCA1Ny42NDMxSDU2LjAzNjFaIiBmaWxsPSIjMjcxQjNEIi8+CjwvZz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF80ODI0XzIwMjE4Ij4KPHJlY3Qgd2lkdGg9IjIxNiIgaGVpZ2h0PSIxMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",alt:(0,T.__)("Comparing the top performing stores","woocommerce")}),progress:28},{title:(0,T.__)("Designing the best look for your business","woocommerce"),image:(0,s.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjE2IiBoZWlnaHQ9IjEzNiIgdmlld0JveD0iMCAwIDIxNiAxMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yMDkuMjQ5IDg2LjY5MjRIMTczLjA4N0MxNjkuMzU5IDg2LjY5MjQgMTY2LjMzNiA4OS42OTM0IDE2Ni4zMzYgOTMuMzk1M1YxMjkuMjk3QzE2Ni4zMzYgMTMyLjk5OSAxNjkuMzU5IDEzNiAxNzMuMDg3IDEzNkgyMDkuMjQ5QzIxMi45NzggMTM2IDIxNiAxMzIuOTk5IDIxNiAxMjkuMjk3VjkzLjM5NTNDMjE2IDg5LjY5MzQgMjEyLjk3OCA4Ni42OTI0IDIwOS4yNDk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UuODUzOUM4Ni45ODc2IDIzLjI4NTUgNzYuNzU2MiA0Ljk4NDEzIDY0LjExMjIgNC45ODQxM0M1Ni41Mjg0IDQuOTg0MTMgNDkuODEwNSAxMS41Njk3IDQ1LjY1MzYgMjEuNzA2OUM0My4wMzA4IDExLjU2OTcgMzguNzk5NiA0Ljk4NDEzIDM0LjAyNDEgNC45ODQxM1oiIGZpbGw9IiNCRUEwRjIiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF80ODI0XzI5NzQ2Ij4KPHJlY3Qgd2lkdGg9IjgyIiBoZWlnaHQ9IjgxLjczOTYiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1IDQuOTg0MTMpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",alt:(0,T.__)("Designing the best look for your business","woocommerce")}),progress:42},{title:(0,T.__)("Generating content","woocommerce"),image:(0,s.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEwIiBoZWlnaHQ9IjEzNiIgdmlld0JveD0iMCAwIDIxMCAxMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDkuNzgiIGhlaWdodD0iMTM2IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjExMDEwNykiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yMDEuNTQzIDE4LjYzMDFWMTUuMTQxM0wxOTguNjU2IDE0Ljc2MzRDMTk4LjM5NSAxMy41NTEgMTk3LjkxOCAxMi40MjAxIDE5Ny4yNjcgMTEuNDE0MkwxOTkuMDM3IDkuMTA1NzdMMTk2LjU3MiA2LjY0MDM4TDE5NC4yNjQgOC40MTA5M0MxOTMuMjU4IDcuNzU2NzggMTkyLjEyNyA3LjI3OTk4IDE5MC45MTIgNy4wMjEyM0wxOTAuNTM3IDQ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E4OC45NSAyMS4wMTg5WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",alt:(0,T.__)("Generating content","woocommerce")}),progress:56},{title:(0,T.__)("Assembling your AI-optimized store","woocommerce"),image:(0,s.createElement)("img",{src:Ie,alt:(0,T.__)("Assembling your AI-optimized store","woocommerce")}),progress:70},{title:(0,T.__)("Applying the finishing touches","woocommerce"),image:(0,s.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjE2IiBoZWlnaHQ9IjEzNiIgdmlld0JveD0iMCAwIDIxNiAxMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGlkPSJGcmFtZSIgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzQ4MjRfMTQwNjApIj4KPGcgaWQ9IkxheWVyIDEiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTczLjY2NCAxMTEuMjQ1VjEwMy40NDFMMTY3LjE2OCAxMDIuNTk0QzE2Ni41NzcgOTkuODg2IDE2NS41MDYgOTcuMzU1OCAxNjQuMDQxIDk1LjEwNDNMMTY4LjAyNyA4OS45NDI2TDE2Mi40NzggODQuNDI5OEwxNTcuMjgyIDg4LjM4OThDMTU1LjAxNiA4Ni45Mjc0IDE1Mi40NzMgODUuODU5NiAxNDkuNzM2IDg1LjI4NEwxNDguODkxIDc4LjgzMDFIMTQxLjAzNUwxNDAuMTgzIDg1LjI4NEMxMzcuNDU3IDg1Ljg2MzIgMTM0LjkxIDg2LjkyNzQgMTMyLjY0NCA4OC4zODk4TDEyNy40NDggODQuNDI5OEwxMjEuODk5IDg5Ljk0MjZMMTI1Ljg4NSA5NS4xMDQzQzEyNC40MTMgOTcuMzU1OCAxMjMuMzM4IDk5Ljg4MjMgMTIyLjc1OSAxMDIuNTk0TDExNi4yNjIgMTAzLjQ0MVYxMTEuMjQ1TDEyMi43NTkgMTEyLjA5MkMxMjMuMzQyIDExNC43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45NDcxIDg2LjQ3MTIgODkuODQ3M1oiIGZpbGw9IiMyNzFCM0QiLz4KPC9nPgo8L2c+CjwvZz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF80ODI0XzE0MDYwIj4KPHJlY3Qgd2lkdGg9IjIxNiIgaGVpZ2h0PSIxMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",alt:(0,T.__)("Applying the finishing touches","woocommerce")}),progress:84},{title:(0,T.__)("Opening the doors","woocommerce"),image:(0,s.createElement)("img",{src:pe,alt:(0,T.__)("Opening the doors","woocommerce")}),progress:100}],Te=()=>{const e=(0,g.getPersistedQuery)(),t=(0,g.getNewPath)(e,"/customize-store/assembler-hub",{}),o=(0,s.useRef)(null),[r,n]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{const r=o.current;null!==r&&window.addEventListener("popstate",(()=>{const o=(0,g.getNewPath)(e,"/customize-store/design-with-ai/api-call-loader",{});"admin.php"+window.location.search===o&&(r.contentWindow?.postMessage({type:"assemberBackButtonClicked"},"*"),window.history?.pushState({},"",t))}),!1)}),[t,o,e]),(0,s.createElement)("iframe",{ref:o,onLoad:e=>{const o=()=>n(!0);(0,_.cK)(e.currentTarget),(0,_.sr)(o),setTimeout(o,6e4),window.parent.history?.pushState({},"",t)},style:{opacity:r?1:0},src:t,title:"assembler-hub",className:"cys-fullscreen-iframe"})};var je=o(25094);const we=(0,Q.assign)({startLoadingTime:()=>performance.now()}),Ee=(0,Q.assign)({businessInfoDescription:(e,t)=>({descriptionText:t.payload})}),ze=(0,Q.assign)({lookAndFeel:(e,t)=>({...e.lookAndFeel,choice:t.payload})}),ke=(0,Q.assign)({toneOfVoice:(e,t)=>({...e.toneOfVoice,choice:t.payload})}),he=(0,Q.assign)({lookAndFeel:(e,t)=>({choice:t.data.look,aiRecommended:t.data.look}),toneOfVoice:(e,t)=>({choice:t.data.tone,aiRecommended:t.data.tone})}),Ae=(0,Q.assign)({aiSuggestions:(e,t)=>({...e.aiSuggestions,defaultColorPalette:t.data.response})}),fe=(0,Q.assign)({aiSuggestions:e=>{let t=e.aiSuggestions.fontPairing;const o=e.lookAndFeel.choice;switch(!0){case"Contemporary"===o:t="Inter + Inter";break;case"Classic"===o:t="Bodoni Moda + Overpass";break;case"Bold"===o:t="Rubik + Inter"}return{...e.aiSuggestions,fontPairing:t}}}),xe=(0,Q.assign)({aiSuggestions:(e,t)=>({...e.aiSuggestions,header:t.data.response.slug})}),Le=(0,Q.assign)({aiSuggestions:(e,t)=>({...e.aiSuggestions,footer:t.data.response.slug})}),Oe=(0,Q.assign)({aiSuggestions:(e,t)=>({...e.aiSuggestions,homepageTemplate:t.data.response.homepage_template})}),_e=(0,Q.assign)({spawnSaveDescriptionToOptionRef:e=>(0,je.Cs)((()=>{return t=e.businessInfoDescription.descriptionText,(0,d.dispatch)(m.OPTIONS_STORE_NAME).updateOptions({woo_ai_describe_store_description:t});var t}),"update-woo-ai-business-description-option")}),be={assignStartLoadingTime:we,assignBusinessInfoDescription:Ee,assignLookAndFeel:ze,assignToneOfVoice:ke,assignLookAndTone:he,assignDefaultColorPalette:Ae,assignFontPairing:fe,assignHeader:xe,assignFooter:Le,assignHomepageTemplate:Oe,assignAPICallLoaderError:(0,Q.assign)({apiCallLoader:()=>((0,b.L)("customize_your_store_ai_wizard_error"),{hasErrors:!0})}),logAIAPIRequestError:()=>{console.log("API Request error")},updateQueryStep:(e,t,{action:o})=>{const{path:r}=(0,g.getQuery)(),n=o.step,a=r.split("/");"customize-store"===a[1]&&"design-with-ai"===a[2]&&a[3]!==n&&(0,g.updateQueryString)({},`/customize-store/design-with-ai/${n}`)},recordTracksStepViewed:(e,t,{action:o})=>{const{step:r}=o;(0,b.L)("customize_your_store_ai_wizard_step_view",{step:r})},recordTracksStepClosed:(e,t)=>{const{step:o}=t.payload;(0,b.L)("customize_your_store_ai_wizard_step_close",{step:o.replaceAll("-","_")})},recordTracksStepCompleted:(e,t,{action:o})=>{const{step:r}=o;(0,b.L)("customize_your_store_ai_wizard_step_complete",{step:r})},spawnSaveDescriptionToOption:_e,redirectToAssemblerHub:async()=>{window.parent.__wcCustomizeStore.activeThemeHasMods=!0}};var Se=o(95146);const Ce=(e,t,o)=>Object.assign(new Error(e),{code:t,cause:o}),ve=o.n(Se)()("jetpack-ai-assistant:token"),Qe="jetpack-ai-jwt-token";var Ue=o(55954),Fe=o(32674);const Ye={inter:{fontFamily:"Inter",fontWeights:["400","500","600"],fontStyles:["normal"]},"bodoni-moda":{fontFamily:"Bodoni Moda",fontWeights:["400"],fontStyles:["normal"]},overpass:{fontFamily:"Overpass",fontWeights:["300","400"],fontStyles:["normal"]},"albert-sans":{fontFamily:"Albert Sans",fontWeights:["700"],fontStyles:["normal"]},lora:{fontFamily:"Lora",fontWeights:["400"],fontStyles:["normal"]},montserrat:{fontFamily:"Montserrat",fontWeights:["500","700"],fontStyles:["normal"]},arvo:{fontFamily:"Arvo",fontWeights:["400"],fontStyles:["normal"]},rubik:{fontFamily:"Rubik",fontWeights:["400","800"],fontStyles:["normal"]},newsreader:{fontFamily:"Newsreader",fontWeights:["400"],fontStyles:["normal"]},cormorant:{fontFamily:"Cormorant",fontWeights:["400","500"],fontStyles:["normal"]},"work-sans":{fontFamily:"Work Sans",fontWeights:["400"],fontStyles:["normal"]},raleway:{fontFamily:"Raleway",fontWeights:["700"],fontStyles:["normal"]}},Be=[{title:"Inter + Inter",version:2,lookAndFeel:["Contemporary","Bold"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Inter",slug:"inter"}]}}},styles:{elements:{button:{typography:{fontFamily:"var(--wp--preset--font-family--inter)",fontWeight:"400",lineHeight:"1"}},heading:{typography:{fontFamily:"var(--wp--preset--font-family--inter)",fontStyle:"normal",fontWeight:"600",lineHeight:"1.2"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--inter)",fontSize:"var(--wp--preset--font-size--medium)",fontStyle:"normal"}},"core/post-navigation-link":{typography:{fontFamily:"var(--wp--preset--font-family--inter)"}}},typography:{fontFamily:"var(--wp--preset--font-family--inter)",fontSize:"var(--wp--preset--font-size--medium)",fontStyle:"normal",fontWeight:"400",lineHeight:"1.6"}}},{title:"Bodoni Moda + Overpass",version:2,lookAndFeel:["Classic"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Bodoni Moda",slug:"bodoni-moda"},{fontFamily:"Overpass",slug:"overpass"}]}}},styles:{elements:{button:{typography:{fontFamily:"var(--wp--preset--font-family--overpass)",fontWeight:"400",lineHeight:"1"}},heading:{typography:{fontFamily:"var(--wp--preset--font-family--bodoni-moda)",fontStyle:"normal",fontWeight:"400"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--bodoni-moda)"}},"core/post-navigation-link":{typography:{fontFamily:"var(--wp--preset--font-family--bodoni-moda)"}}},typography:{fontFamily:"var(--wp--preset--font-family--overpass)",fontSize:"var(--wp--preset--font-size--medium)",fontStyle:"normal",fontWeight:"300",lineHeight:"1.6"}}},{title:"Albert Sans + Lora",version:2,lookAndFeel:["Contemporary","Bold"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Albert Sans",slug:"albert-sans"},{fontFamily:"Lora",slug:"lora"}]}}},styles:{elements:{heading:{typography:{fontFamily:"var(--wp--preset--font-family--albert-sans)",fontStyle:"normal",fontWeight:"700"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--albert-sans)",fontSize:"var(--wp--preset--font-size--medium)"}}},typography:{fontFamily:"var(--wp--preset--font-family--lora)",fontStyle:"normal",fontWeight:"400",lineHeight:"1.67"}}},{title:"Montserrat + Arvo",version:2,lookAndFeel:["Contemporary","Bold"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Montserrat",slug:"montserrat"},{fontFamily:"Arvo",slug:"arvo"}]}}},styles:{elements:{button:{typography:{fontFamily:"var(--wp--preset--font-family--arvo)",fontStyle:"normal",fontWeight:"500"}},heading:{typography:{fontFamily:"var(--wp--preset--font-family--montserrat)",fontStyle:"normal",fontWeight:"700",lineHeight:"1.4"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--montserrat)",fontWeight:"700"}},"core/post-navigation-link":{typography:{fontFamily:"var(--wp--preset--font-family--montserrat)"}}},typography:{fontFamily:"var(--wp--preset--font-family--arvo)",fontSize:"var(--wp--preset--font-size--small)",fontStyle:"normal",fontWeight:"400",lineHeight:"1.6"}}},{title:"Rubik + Inter",version:2,lookAndFeel:["Bold"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Rubik",slug:"rubik"},{fontFamily:"Inter",slug:"inter"}]}}},styles:{elements:{button:{typography:{fontFamily:"var(--wp--preset--font-family--inter)",fontWeight:"400",lineHeight:"1"}},heading:{typography:{fontFamily:"var(--wp--preset--font-family--rubik)",fontStyle:"normal",fontWeight:"800"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--rubik)",fontWeight:"800"}},"core/post-navigation-link":{typography:{fontFamily:"var(--wp--preset--font-family--rubik)"}}},typography:{fontFamily:"var(--wp--preset--font-family--inter)",fontSize:"var(--wp--preset--font-size--medium)",fontStyle:"normal",fontWeight:"400",lineHeight:"1.6"}}},{title:"Newsreader + Newsreader",version:2,lookAndFeel:["Classic"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Newsreader",slug:"newsreader"}]}}},styles:{elements:{heading:{typography:{fontFamily:"var(--wp--preset--font-family--newsreader)",fontStyle:"normal",fontWeight:"400"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--newsreader)"}}},typography:{fontFamily:"var(--wp--preset--font-family--newsreader)",fontSize:"var(--wp--preset--font-size--medium)",lineHeight:"1.67"}}},{title:"Cormorant + Work Sans",version:2,lookAndFeel:[],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Cormorant",slug:"cormorant"},{fontFamily:"Work Sans",slug:"work-sans"}]}}},styles:{elements:{heading:{typography:{fontFamily:"var(--wp--preset--font-family--cormorant)",fontStyle:"normal",fontWeight:"500"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--cormorant)"}}},typography:{fontFamily:"var(--wp--preset--font-family--work-sans)"}}},{title:"Raleway + Cormorant",version:2,lookAndFeel:["Classic","Bold"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Raleway",slug:"raleway"},{fontFamily:"Cormorant",slug:"cormorant"}]}}},styles:{elements:{heading:{typography:{fontFamily:"var(--wp--preset--font-family--raleway)",fontStyle:"normal",fontWeight:"700"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--raleway)"}}},typography:{fontFamily:"var(--wp--preset--font-family--cormorant)",fontSize:"var(--wp--preset--font-size--medium)",lineHeight:"1.67"}}}],Pe=[{title:"Cardo Font + System Sans-serif",version:2,lookAndFeel:[],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Cardo",slug:"heading"},{fontFamily:"System Sans-serif",slug:"system-sans-serif"}]}}},styles:{elements:{heading:{typography:{fontFamily:"var(--wp--preset--font-family--heading)",fontStyle:"normal",fontWeight:"300"}}},typography:{fontFamily:"var(--wp--preset--font-family--system-sans-serif)"}}},{title:"Inter + Cardo Font",version:2,lookAndFeel:[],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Inter",slug:"body"},{fontFamily:"Cardo",slug:"heading"}]}}},styles:{elements:{heading:{typography:{fontFamily:"var(--wp--preset--font-family--body)",fontStyle:"normal",fontWeight:"300"}}},typography:{fontFamily:"var(--wp--preset--font-family--heading)"}}}],Ge=[{title:"Commissioner + Crimson Pro",version:2,lookAndFeel:["Contemporary"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Commissioner",slug:"commissioner"},{fontFamily:"Crimson Pro",slug:"crimson-pro"}]}}},styles:{elements:{button:{typography:{fontFamily:"var(--wp--preset--font-family--crimson-pro)",fontWeight:"400",lineHeight:"1"}},heading:{typography:{fontFamily:"var(--wp--preset--font-family--commissioner)",fontStyle:"normal",fontWeight:"300"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--commissioner)",fontWeight:"300"}},"core/post-navigation-link":{typography:{fontFamily:"var(--wp--preset--font-family--commissioner)"}}},typography:{fontFamily:"var(--wp--preset--font-family--crimson-pro)",fontSize:"var(--wp--preset--font-size--medium)",fontStyle:"normal",fontWeight:"400",lineHeight:"1.6"}}},{title:"DM Sans + IBM Plex Mono",version:2,lookAndFeel:[],settings:{typography:{fontFamilies:{theme:[{fontFamily:"DM Sans",slug:"dm-sans"},{fontFamily:"IBM Plex Mono",slug:"ibm-plex-mono"}]}}},styles:{elements:{heading:{typography:{fontFamily:"var(--wp--preset--font-family--dm-sans)",fontStyle:"normal",fontWeight:"700"}}},typography:{fontFamily:"var(--wp--preset--font-family--ibm-plex-mono)",fontSize:"var(--wp--preset--font-size--small)",fontStyle:"normal",fontWeight:"300",lineHeight:"1.67"}}},{title:"Fraunces + Libre Franklin",version:2,lookAndFeel:["Classic"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Fraunces",slug:"fraunces"},{fontFamily:"Libre Franklin",slug:"libre-franklin"}]}}},styles:{elements:{heading:{typography:{fontFamily:"var(--wp--preset--font-family--fraunces)",fontStyle:"normal",fontWeight:"500"}}},typography:{fontFamily:"var(--wp--preset--font-family--libre-franklin)",lineHeight:"1.67"}}},{title:"Libre Baskerville + DM Sans",version:2,lookAndFeel:[],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Libre Baskerville",slug:"libre-baskerville"},{fontFamily:"DM Sans",slug:"dm-sans"}]}}},styles:{elements:{button:{typography:{fontFamily:"var(--wp--preset--font-family--dm-sans)",fontWeight:"400",lineHeight:"1"}},heading:{typography:{fontFamily:"var(--wp--preset--font-family--libre-baskerville)",fontStyle:"normal",fontWeight:"700"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--libre-baskerville)"}},"core/post-navigation-link":{typography:{fontFamily:"var(--wp--preset--font-family--libre-baskerville)"}}},typography:{fontFamily:"var(--wp--preset--font-family--dm-sans)",fontSize:"var(--wp--preset--font-size--small)",fontStyle:"normal",fontWeight:"400",lineHeight:"1.6"}}},{title:"Playfair Display + Fira Sans",version:2,lookAndFeel:["Classic"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Playfair Display",slug:"playfair-display"},{fontFamily:"Fira Sans",slug:"fira-sans"}]}}},styles:{elements:{button:{typography:{fontFamily:"var(--wp--preset--font-family--fira-sans)",fontWeight:"400",lineHeight:"1"}},heading:{typography:{fontFamily:"var(--wp--preset--font-family--playfair-display)",fontStyle:"italic",fontWeight:"400"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--playfair-display)",fontStyle:"italic",fontWeight:"400"}},"core/post-navigation-link":{typography:{fontFamily:"var(--wp--preset--font-family--playfair-display)",fontStyle:"italic",fontWeight:"400"}}},typography:{fontFamily:"var(--wp--preset--font-family--fira-sans)",fontSize:"var(--wp--preset--font-size--medium)",fontStyle:"normal",fontWeight:"400",lineHeight:"1.6"}}},{title:"Libre Franklin + EB Garamond",version:2,lookAndFeel:["Classic"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Libre Franklin",slug:"libre-franklin"},{fontFamily:"EB Garamond",slug:"eb-garamond"}]}}},styles:{elements:{button:{typography:{fontFamily:"var(--wp--preset--font-family--libre-franklin)",fontSize:"var(--wp--preset--font-size--small)",fontWeight:"400",lineHeight:"1"}},heading:{typography:{fontFamily:"var(--wp--preset--font-family--libre-franklin)",fontStyle:"normal",fontWeight:"700"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--libre-franklin)",fontWeight:"500"}},"core/post-navigation-link":{typography:{fontFamily:"var(--wp--preset--font-family--libre-franklin)"}}},typography:{fontFamily:"var(--wp--preset--font-family--eb-garamond)",fontSize:"var(--wp--preset--font-size--medium)",fontStyle:"normal",fontWeight:"400",lineHeight:"1.6"}}},{title:"Plus Jakarta Sans + Plus Jakarta Sans",version:2,lookAndFeel:["Contemporary","Bold"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Plus Jakarta Sans",slug:"plus-jakarta-sans"}]}}},styles:{elements:{heading:{typography:{fontFamily:"var(--wp--preset--font-family--plus-jakarta-sans)",fontStyle:"normal",fontWeight:"700"}}},typography:{fontFamily:"var(--wp--preset--font-family--plus-jakarta-sans)",lineHeight:"1.67"}}},{title:"Rubik + Rubik",version:2,lookAndFeel:["Contemporary"],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Rubik",slug:"rubik"}]}}},styles:{elements:{heading:{typography:{fontFamily:"var(--wp--preset--font-family--rubik)"}}},typography:{fontFamily:"var(--wp--preset--font-family--rubik)",fontWeight:"400",lineHeight:"1.67"}}},{title:"Space Mono + Roboto",version:2,lookAndFeel:[],settings:{typography:{fontFamilies:{theme:[{fontFamily:"Space Mono",slug:"space-mono"},{fontFamily:"Roboto",slug:"roboto"}]}}},styles:{elements:{button:{typography:{fontFamily:"var(--wp--preset--font-family--roboto)",fontWeight:"400",lineHeight:"1"}},heading:{typography:{fontFamily:"var(--wp--preset--font-family--space-mono)",fontStyle:"normal",fontWeight:"400",lineHeight:"1.15"}}},blocks:{"core/site-title":{typography:{fontFamily:"var(--wp--preset--font-family--space-mono)",fontStyle:"normal",fontWeight:"400"}},"core/post-navigation-link":{typography:{fontFamily:"var(--wp--preset--font-family--space-mono)"}}},typography:{fontFamily:"var(--wp--preset--font-family--roboto)",fontSize:"var(--wp--preset--font-size--small)",fontStyle:"normal",fontWeight:"400",lineHeight:"1.6"}}},...Be,...Pe],Re=[{title:"New - Neutral",version:2,settings:{color:{palette:{theme:[{color:"#000000",name:"Primary",slug:"primary"},{color:"#636363",name:"Secondary",slug:"secondary"},{color:"#000000",name:"Foreground",slug:"foreground"},{color:"#ffffff",name:"Background",slug:"background"},{color:"#ffffff",name:"Tertiary",slug:"tertiary"},{color:"#FFFFFF",name:"Color 1",slug:"theme-1"},{color:"#1a0c00",name:"Color 5",slug:"theme-5"}]}}},styles:{blocks:{"core/button":{}},color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--primary)",text:"var(--wp--preset--color--background)"},":hover":{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}},link:{color:{text:"var(--wp--preset--color--foreground)"}}}}},{title:"Ancient Bronze",version:2,settings:{color:{palette:{theme:[{color:"#323856",name:"Primary",slug:"primary"},{color:"#8C8369",name:"Secondary",slug:"secondary"},{color:"#323856",name:"Foreground",slug:"foreground"},{color:"#ffffff",name:"Background",slug:"background"},{color:"#F7F2EE",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}},wpcom_category:"Neutral"},{title:"Arctic Dawn",version:2,settings:{color:{palette:{theme:[{color:"#1E226F",name:"Primary",slug:"primary"},{color:"#DD301D",name:"Secondary",slug:"secondary"},{color:"#0D1263",name:"Foreground",slug:"foreground"},{color:"#ffffff",name:"Background",slug:"background"},{color:"#F0F1F5",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}},wpcom_category:"Neutral"},{title:"Bronze Serenity",version:2,settings:{color:{palette:{theme:[{color:"#1e4b4b",name:"Primary",slug:"primary"},{color:"#9e7047",name:"Secondary",slug:"secondary"},{color:"#1e4b4b",name:"Foreground",slug:"foreground"},{color:"#ffffff",name:"Background",slug:"background"},{color:"#e9eded",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"}},wpcom_category:"Neutral"},{title:"Purple Twilight",version:2,settings:{color:{palette:{theme:[{color:"#301834",name:"Primary",slug:"primary"},{color:"#6a5eb7",name:"Secondary",slug:"secondary"},{color:"#090909",name:"Foreground",slug:"foreground"},{color:"#fefbff",name:"Background",slug:"background"},{color:"#f3eaf5",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}},wpcom_category:"Neutral"},{title:"Candy Store",version:2,settings:{color:{palette:{theme:[{color:"#293852",name:"Primary",slug:"primary"},{color:"#f1bea7",name:"Secondary",slug:"secondary"},{color:"#293852",name:"Foreground",slug:"foreground"},{color:"#ffffff",name:"Background",slug:"background"},{color:"#fffddb",name:"Tertiary",slug:"tertiary"}]}}},styles:{blocks:{"core/button":{color:{background:"var(--wp--preset--color--secondary)"},variations:{outline:{border:{color:"var(--wp--preset--color--secondary)"},color:{text:"var(--wp--preset--color--primary)"}}}}},color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--primary)"}}}},wpcom_category:"Neutral"},{title:"Midnight Citrus",version:2,settings:{color:{palette:{theme:[{color:"#222222",name:"Primary",slug:"primary"},{color:"#c0f500",name:"Secondary",slug:"secondary"},{color:"#222222",name:"Foreground",slug:"foreground"},{color:"#ffffff",name:"Background",slug:"background"},{color:"#f7faed",name:"Tertiary",slug:"tertiary"}]}}},styles:{blocks:{"core/button":{color:{background:"var(--wp--preset--color--secondary)"},variations:{outline:{border:{color:"var(--wp--preset--color--secondary)"},color:{text:"var(--wp--preset--color--primary)"}}}}},color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{":hover":{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--primary)"}},color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--primary)"}}}},wpcom_category:"Neutral"},{title:"Crimson Tide",version:2,settings:{color:{palette:{theme:[{color:"#101317",name:"Primary",slug:"primary"},{color:"#EC5E3F",name:"Secondary",slug:"secondary"},{color:"#101317",name:"Foreground",slug:"foreground"},{color:"#ffffff",name:"Background",slug:"background"},{color:"#EEEEEE",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}},wpcom_category:"Neutral"},{title:"Raspberry Chocolate",version:2,settings:{color:{palette:{theme:[{color:"#42332e",name:"Primary",slug:"primary"},{color:"#d64d68",name:"Secondary",slug:"secondary"},{color:"#241d1a",name:"Foreground",slug:"foreground"},{color:"#eeeae6",name:"Background",slug:"background"},{color:"#D6CCC2",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}},wpcom_category:"Bright"},{title:"Gumtree Sunset",version:2,settings:{color:{palette:{theme:[{color:"#8699A1",name:"Primary",slug:"primary"},{color:"#BB6154",name:"Secondary",slug:"secondary"},{color:"#476C77",name:"Foreground",slug:"foreground"},{color:"#F4F7F7",name:"Background",slug:"background"},{color:"#ffffff",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"}},wpcom_category:"Bright"},{title:"Fuchsia",version:2,settings:{color:{palette:{theme:[{color:"#b7127f",name:"Primary",slug:"primary"},{color:"#18020C",name:"Secondary",slug:"secondary"},{color:"#b7127f",name:"Foreground",slug:"foreground"},{color:"#f7edf6",name:"Background",slug:"background"},{color:"#ffffff",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"}},wpcom_category:"Bright"},{title:"Cinder",version:2,settings:{color:{palette:{theme:[{color:"#c14420",name:"Primary",slug:"primary"},{color:"#2F2D2D",name:"Secondary",slug:"secondary"},{color:"#c14420",name:"Foreground",slug:"foreground"},{color:"#f1f2f2",name:"Background",slug:"background"},{color:"#DCDCDC",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"}},wpcom_category:"Bright"},{title:"Canary",version:2,settings:{color:{palette:{theme:[{color:"#0F0F05",name:"Primary",slug:"primary"},{color:"#666666",name:"Secondary",slug:"secondary"},{color:"#0F0F05",name:"Foreground",slug:"foreground"},{color:"#FCFF9B",name:"Background",slug:"background"},{color:"#E8EB8C",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}},wpcom_category:"Bright"},{title:"Blue Lagoon",version:2,settings:{color:{palette:{theme:[{color:"#004DE5",name:"Primary",slug:"primary"},{color:"#0496FF",name:"Secondary",slug:"secondary"},{color:"#0036A3",name:"Foreground",slug:"foreground"},{color:"#FEFDF8",name:"Background",slug:"background"},{color:"#DEF2F7",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"}},wpcom_category:"Bright"},{title:"Vibrant Berry",version:2,settings:{color:{palette:{theme:[{slug:"primary",color:"#7C1D6F",name:"Primary"},{slug:"secondary",color:"#C62FB2",name:"Secondary"},{slug:"foreground",color:"#7C1D6F",name:"Foreground"},{slug:"background",color:"#FFEED6",name:"Background"},{slug:"tertiary",color:"#FDD8DE",name:"Tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"}},wpcom_category:"Bright"},{title:"Aquamarine Night",version:2,settings:{color:{palette:{theme:[{color:"#deffef",name:"Primary",slug:"primary"},{color:"#56fbb9",name:"Secondary",slug:"secondary"},{color:"#ffffff",name:"Foreground",slug:"foreground"},{color:"#091C48",name:"Background",slug:"background"},{color:"#10317F",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"}},wpcom_category:"Dark"},{title:"Evergreen Twilight",version:2,settings:{color:{palette:{theme:[{color:"#ffffff",name:"Primary",slug:"primary"},{color:"#8EE978",name:"Secondary",slug:"secondary"},{color:"#ffffff",name:"Foreground",slug:"foreground"},{color:"#181818",name:"Background",slug:"background"},{color:"#636363",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"}},wpcom_category:"Dark"},{title:"Cinnamon Latte",version:2,settings:{color:{palette:{theme:[{slug:"primary",color:"#D9CAB3",name:"Primary"},{slug:"secondary",color:"#BC8034",name:"Secondary"},{slug:"foreground",color:"#FFFFFF",name:"Foreground"},{slug:"background",color:"#3C3F4D",name:"Background"},{slug:"tertiary",color:"#2B2D36",name:"Tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}},wpcom_category:"Dark"},{title:"Lightning",version:2,settings:{color:{palette:{theme:[{color:"#ebffd2",name:"Primary",slug:"primary"},{color:"#fefefe",name:"Secondary",slug:"secondary"},{color:"#ebffd2",name:"Foreground",slug:"foreground"},{color:"#0e1fb5",name:"Background",slug:"background"},{color:"#0A1680",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}},wpcom_category:"Dark"},{title:"Lilac Nightshade",version:2,settings:{color:{palette:{theme:[{color:"#f5d6ff",name:"Primary",slug:"primary"},{color:"#C48DDA",name:"Secondary",slug:"secondary"},{color:"#ffffff",name:"Foreground",slug:"foreground"},{color:"#000000",name:"Background",slug:"background"},{color:"#462749",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"}},wpcom_category:"Dark"},{title:"Charcoal",version:2,settings:{color:{palette:{theme:[{color:"#dbdbdb",name:"Primary",slug:"primary"},{color:"#efefef",name:"Secondary",slug:"secondary"},{color:"#dbdbdb",name:"Foreground",slug:"foreground"},{color:"#1e1e1e",name:"Background",slug:"background"},{color:"#000000",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}},wpcom_category:"Dark"},{title:"Rustic Rosewood",version:2,settings:{color:{palette:{theme:[{color:"#F4F4F2",name:"Primary",slug:"primary"},{color:"#EE797C",name:"Secondary",slug:"secondary"},{color:"#ffffff",name:"Foreground",slug:"foreground"},{color:"#1A1A1A",name:"Background",slug:"background"},{color:"#3B3939",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}},wpcom_category:"Dark"},{title:"Sandalwood Oasis",version:2,settings:{color:{palette:{theme:[{color:"#F0EBE3",name:"Primary",slug:"primary"},{color:"#DF9785",name:"Secondary",slug:"secondary"},{color:"#ffffff",name:"Foreground",slug:"foreground"},{color:"#2a2a16",name:"Background",slug:"background"},{color:"#434323",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"}},wpcom_category:"Dark"},{title:"Slate",version:2,settings:{color:{palette:{theme:[{slug:"primary",color:"#FFFFFF",name:"Primary"},{slug:"secondary",color:"#FFDF6D",name:"Secondary"},{slug:"foreground",color:"#EFF2F9",name:"Foreground"},{slug:"background",color:"#13161E",name:"Background"},{slug:"tertiary",color:"#303036",name:"Tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}},wpcom_category:"Dark"},{title:"Blueberry Sorbet",version:2,settings:{color:{palette:{theme:[{color:"#2038B6",name:"Primary",slug:"primary"},{color:"#BD4089",name:"Secondary",slug:"secondary"},{color:"#2038B6",name:"Foreground",slug:"foreground"},{color:"#FDFBEF",name:"Background",slug:"background"},{color:"#F8F2E2",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}}}}},{title:"Green Thumb",version:2,settings:{color:{palette:{theme:[{color:"#164A41",name:"Primary",slug:"primary"},{color:"#4B7B4D",name:"Secondary",slug:"secondary"},{color:"#164A41",name:"Foreground",slug:"foreground"},{color:"#ffffff",name:"Background",slug:"background"},{color:"#CEEAC4",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}},link:{color:{text:"var(--wp--preset--color--secondary)"},":hover":{color:{text:"var(--wp--preset--color--foreground)"}}}}}},{title:"Golden Haze",version:2,settings:{color:{palette:{theme:[{color:"#232224",name:"Primary",slug:"primary"},{color:"#EBB54F",name:"Secondary",slug:"secondary"},{color:"#515151",name:"Foreground",slug:"foreground"},{color:"#ffffff",name:"Background",slug:"background"},{color:"#FFF0AE",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--foreground)"}},link:{color:{text:"var(--wp--preset--color--secondary)"},":hover":{color:{text:"var(--wp--preset--color--foreground)"}}}}}},{title:"Golden Indigo",version:2,settings:{color:{palette:{theme:[{color:"#4866C0",name:"Primary",slug:"primary"},{color:"#C09F50",name:"Secondary",slug:"secondary"},{color:"#405AA7",name:"Foreground",slug:"foreground"},{color:"#ffffff",name:"Background",slug:"background"},{color:"#FBF5EE",name:"Tertiary",slug:"tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}},link:{color:{text:"var(--wp--preset--color--secondary)"},":hover":{color:{text:"var(--wp--preset--color--foreground)"}}}}}},{title:"Ice",version:2,settings:{color:{palette:{theme:[{slug:"primary",color:"#3473FE",name:"Primary"},{slug:"secondary",color:"#12123F",name:"Secondary"},{slug:"foreground",color:"#12123F",name:"Foreground"},{slug:"background",color:"#F1F4FA",name:"Background"},{slug:"tertiary",color:"#DBE6EE",name:"Tertiary"}]}}},styles:{color:{background:"var(--wp--preset--color--background)",text:"var(--wp--preset--color--foreground)"},elements:{button:{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}},link:{color:{text:"var(--wp--preset--color--foreground)"},":hover":{color:{text:"var(--wp--preset--color--primary)"}}}}}}].map((e=>({...e,styles:{...e.styles,blocks:{"core/button":{color:{background:"var(--wp--preset--color--secondary)"},variations:{outline:{border:{color:"var(--wp--preset--color--secondary)"},color:{text:"var(--wp--preset--color--secondary)"}}}},"core/heading":{color:{text:"var(--wp--preset--color--foreground)"},elements:{link:{color:{text:"var(--wp--preset--color--foreground)"}}}},"core/post-date":{color:{text:"var(--wp--preset--color--foreground)"}},"core/post-title":{color:{text:"var(--wp--preset--color--foreground)"},elements:{link:{":hover":{color:{text:"var(--wp--preset--color--primary)"}},color:{text:"var(--wp--preset--color--foreground)"}}}},"core/pullquote":{border:{color:"var(--wp--preset--color--foreground)",style:"solid",width:"1px 0"}},"core/quote":{border:{color:"var(--wp--preset--color--foreground)",style:"solid",width:"0 0 0 5px"}},"core/separator":{color:{text:"var(--wp--preset--color--foreground)"}},"core/cover":{elements:{heading:{color:{text:"#ffffff"}}}},"core/site-title":{elements:{link:{":hover":{color:{text:"var(--wp--preset--color--foreground)"}},color:{text:"var(--wp--preset--color--foreground)"}}}},...e.styles.blocks},elements:{heading:{color:{text:"var(--wp--preset--color--foreground)"}},button:{":active":{color:{background:"var(--wp--preset--color--foreground)",text:"var(--wp--preset--color--background)"}},":focus":{color:{background:"var(--wp--preset--color--foreground)",text:"var(--wp--preset--color--background)"},outline:{color:"var(--wp--preset--color--primary)",offset:"2px",style:"dotted",width:"1px"}},":hover":{color:{background:"var(--wp--preset--color--secondary)",text:"var(--wp--preset--color--background)"}},":visited":{color:{text:e.styles.elements?.button?e.styles.elements.button.color:"var(--wp--preset--color--background)"}},color:{background:"var(--wp--preset--color--primary)",text:"var(--wp--preset--color--background)"}},link:{":hover":{color:{text:"var(--wp--preset--color--primary)"},typography:{textDecoration:"none"}},color:{text:"var(--wp--preset--color--foreground)"}},...e.styles.elements}}}))),Ze=["New - Neutral","Blueberry Sorbet","Ancient Bronze","Crimson Tide","Purple Twilight","Green Thumb","Golden Haze","Golden Indigo","Arctic Dawn","Raspberry Chocolate","Canary","Ice","Rustic Rosewood","Cinnamon Latte","Lightning","Aquamarine Night","Charcoal","Slate"].map((e=>Re.find((t=>t.title===e))));var We=o(4981),He=o(97800),Ve=o(52175);const Je=(0,s.createContext)({logoBlockIds:[],setLogoBlockIds:()=>{}}),Xe=()=>{const{logoBlockIds:e}=(0,s.useContext)(Je),{attributes:t,isAttributesLoading:o}=(0,d.useSelect)((t=>{const o=t(Ve.store).getBlocksByClientId(e),r=!o.length||null===o[0];return r?{attributes:{},isAttributesLoading:r}:{attributes:o[0].attributes,isAttributesLoading:r}}),[e]);return{attributes:t,isAttributesLoading:o}},Ke="twentytwentyfour",qe=()=>{const{blockPatterns:e,isLoading:t,invalidateCache:o}=(0,d.useSelect)((e=>({blockPatterns:e(c.store).getBlockPatterns(),isLoading:!e(c.store).hasFinishedResolution("getBlockPatterns"),invalidateCache:()=>(0,d.dispatch)(c.store).invalidateResolutionForStoreSelector("getBlockPatterns")})));return{blockPatterns:e,isLoading:t,invalidateCache:o}},$e=e=>{const{blockPatterns:t,isLoading:o}=qe(),{attributes:r,isAttributesLoading:n}=Xe(),[a,i]=(0,s.useState)(r.width);(0,s.useEffect)((()=>{n||i(r.width)}),[n,r.width,a]);const c=(0,s.useMemo)((()=>(t||[]).filter((t=>t.categories?.includes(e)&&!t.name.includes(Ke)&&"pattern-directory/theme"!==t.source&&"pattern-directory/core"!==t.source))),[t,e]);return{isLoading:o,patterns:(0,s.useMemo)((()=>c.map((e=>{const t=(0,_.$$)(e.content,a);return{...e,content:t,blocks:(0,We.parse)(t,{__unstableSkipMigrationLogs:!0})}}))),[c,a])}},et="woocommerce-blocks/hero-product-split",tt=`${Ke}//header`,ot=`${Ke}//footer`,rt={template1:{blocks:["woocommerce-blocks/header-centered-menu"]},template2:{blocks:["woocommerce-blocks/header-essential"]},template3:{blocks:["woocommerce-blocks/header-centered-menu"]}},nt={template1:{blocks:["woocommerce-blocks/footer-with-3-menus"]},template2:{blocks:["woocommerce-blocks/footer-large"]},template3:{blocks:["woocommerce-blocks/footer-with-3-menus"]}},at={template1:{blocks:[(0,te.V)()?et:"woocommerce-blocks/just-arrived-full-hero","woocommerce-blocks/product-collection-5-columns","woocommerce-blocks/hero-product-3-split","woocommerce-blocks/product-collection-3-columns","woocommerce-blocks/testimonials-3-columns","woocommerce-blocks/featured-category-triple","woocommerce-blocks/social-follow-us-in-social-media"],metadata:{businessType:["e-commerce","large-business"],contentFocus:["featured products"],audience:["general"],design:["contemporary"],features:["fullwidth-image-banner","testimonials","social-media","search"],complexity:"high"}},template2:{blocks:[(0,te.V)()?et:"woocommerce-blocks/featured-category-cover-image","woocommerce-blocks/product-collection-4-columns","woocommerce-blocks/hero-product-chessboard","woocommerce-blocks/product-collection-5-columns","woocommerce-blocks/testimonials-3-columns"],metadata:{businessType:["e-commerce","subscription","large-business"],contentFocus:["catalog"],audience:["general"],design:["contemporary"],features:["small-banner","testimonials","newsletter"],complexity:"high"}},template3:{blocks:["woocommerce-blocks/hero-product-split","woocommerce-blocks/product-collection-featured-products-5-columns","woocommerce-blocks/featured-category-triple","woocommerce-blocks/product-query-product-gallery"],metadata:{businessType:["subscription","large-business"],contentFocus:["catalog","call-to-action"],audience:["general"],design:["contemporary"],features:["small-banner","social-media"],complexity:"high"}}},it=(e,t)=>e.map((e=>{const o=t[e];return o&&o.content?{...o,blocks:(0,We.parse)(o.content,{__unstableSkipMigrationLogs:!0})}:null})).filter((e=>null!==e)),st=e=>e.reduce(((e,t)=>(e[t.name]=t,e)),{}),ct=()=>!window.parent?.window.cys_aiFlow&&!window.parent?.window.cys_aiFlow&&window.wcAdminFeatures["pattern-toolkit-full-composability"]&&[Ve.BlockPopover].every((e=>null!=e)),lt=async({homepageTemplateId:e})=>{ct()?await(async()=>{const{invalidateResolutionForStoreSelector:e}=(0,d.dispatch)(c.store);e("getBlockPatterns"),e("getDefaultTemplateId"),(0,He.registerCoreBlocks)((0,He.__experimentalGetCoreBlocks)());const t=await(0,d.resolveSelect)(c.store).getBlockPatterns(),o=Object.entries({header:"woocommerce-blocks/header-essential",intro:"woocommerce-blocks/centered-content-with-image-below",footer:"woocommerce-blocks/footer-with-3-menus"}).reduce(((e,[o,r])=>{const n=t.find((e=>e.name===r));return{...e,[o]:n?(e=>{const t=(0,We.parse)(e.content);return t.length>0&&(t[0].attributes={...t[0].attributes,metadata:{...t[0].attributes.metadata||{},categories:e.categories,patternName:e.name,name:t[0].attributes.metadata?.name||e.title}}),t})(n):[]}}),{footer:[],intro:[],header:[]}),r=(0,We.serialize)(o.header),n=(0,We.serialize)(o.footer);let a=(0,We.serialize)(o.intro);a=`\x3c!-- wp:template-part {"slug":"header", "theme": "${Ke}"} /--\x3e`+a+`\x3c!-- wp:template-part {"slug":"footer", "theme": "${Ke}"} /--\x3e`,a=(0,_.$$)(a);const i=await(0,d.resolveSelect)(c.store).getDefaultTemplateId({slug:"home"}),{saveEntityRecord:s}=(0,d.dispatch)(c.store);await Promise.all([s("postType","wp_template_part",{id:`${Ke}//header`,content:r},{throwOnError:!0}),s("postType","wp_template_part",{id:`${Ke}//footer`,content:n},{throwOnError:!0}),s("postType","wp_template",{id:i,content:a},{throwOnError:!0})])})():await(async({homepageTemplateId:e})=>{const{invalidateResolutionForStoreSelector:t}=(0,d.dispatch)(c.store);t("getBlockPatterns"),t("getDefaultTemplateId");const o=await(0,d.resolveSelect)(c.store).getBlockPatterns(),r=st(o),n=it(at[e].blocks,r),a=it(rt[e].blocks,r),i=it(nt[e].blocks,r),s=[...a].filter(Boolean).map((e=>e.content)).join("\n\n"),l=[...i].filter(Boolean).map((e=>e.content)).join("\n\n");let M=[...n].filter(Boolean).map((e=>e.content)).join("\n\n");M=`\x3c!-- wp:template-part {"slug":"header", "theme": "${Ke}"} /--\x3e`+M+`\x3c!-- wp:template-part {"slug":"footer", "theme": "${Ke}"} /--\x3e`,M=(0,_.$$)(M);const u=await(0,d.resolveSelect)(c.store).getDefaultTemplateId({slug:"home"}),{saveEntityRecord:g}=(0,d.dispatch)(c.store);await Promise.all([g("postType","wp_template_part",{id:`${Ke}//header`,content:s},{throwOnError:!0}),g("postType","wp_template_part",{id:`${Ke}//footer`,content:l},{throwOnError:!0}),g("postType","wp_template",{id:u,content:M},{throwOnError:!0})])})({homepageTemplateId:e})},Mt=async e=>{await ee()({path:`/wc-admin/onboarding/themes/install?theme=${e}`,method:"POST"}),await ee()({path:`/wc-admin/onboarding/themes/activate?theme=${e}&theme_switch_via_cys_ai_loader=1`,method:"POST"})},ut=async(e,t)=>{const{fontFamilyId:o,...r}=e,n=await async function(e){try{const t=await(await fetch(new Request(e))).blob(),o=e.split("/").pop();return new File([t],o,{type:t.type})}catch(t){throw new Error(`Error downloading font face asset from ${e}`)}}(Array.isArray(r.src)?r.src[0]:r.src),a=new FormData,i=await function(e,t,o){const r=`file-${o}`;return t.append(r,e,e.name),r}(n,a,t);a.append("font_face_settings",JSON.stringify({...r,src:i}));const s={path:`/wp/v2/font-families/${e.fontFamilyId}/font-faces/`,method:"POST",body:a};return ee()(s)},gt=async()=>{const e=await(0,d.resolveSelect)("core").getEntityRecords("postType","wp_font_family",{per_page:-1}),t=await Promise.all(e.map((async e=>{const t=await ee()({path:`/wp/v2/font-families/${e.id}/font-faces`,method:"GET"});return{...e,font_face:t}}))),o=await ee()({path:"/wp/v2/font-collections/google-fonts",method:"GET"}),{fontFacesToInstall:r,fontFamiliesWithFontFacesToInstall:n}=((e,t)=>Object.entries(Ye).reduce(((o,[r,n])=>{const a=((e,t,o)=>{const r=e.font_families.find((({font_family_settings:e})=>e.slug===t));if(!r)return null;const n=r?.font_family_settings.fontFace.filter((({fontWeight:e})=>o.fontWeights.includes(e)));return{...r?.font_family_settings,fontFace:n}})(e,r,n);if(!a)return o;const i=((e,t)=>e.find((({font_family_settings:e})=>e.slug===t)))(t,a.slug);if(!i)return{...o,fontFamiliesWithFontFacesToInstall:[...o.fontFamiliesWithFontFacesToInstall,a]};const s=i.font_face.filter((({fontWeight:e})=>n.fontWeights.includes(e)));return{...o,fontFacesToInstall:[...o.fontFacesToInstall,...s.map((e=>({...e,fontFamilyId:i.id})))]}}),{fontFamiliesWithFontFacesToInstall:[],fontFacesToInstall:[]}))(o,t),a=n.map((async e=>{const t=await(e=>{const t={path:"/wp/v2/font-families",method:"POST",data:{font_family_settings:JSON.stringify({name:e.name,slug:e.slug,fontFamily:e.fontFamily,preview:e.preview})}};return ee()(t)})(e);return Promise.all(e.fontFace.map((async(e,o)=>ut({...e,fontFamilyId:t.id},o))))})),i=r.map(ut);return await Promise.all([...a,...i])},mt=async e=>{const t=Re[0],o="yes"===await(0,d.resolveSelect)(m.OPTIONS_STORE_NAME).getOption("woocommerce_allow_tracking"),r=e.isFontLibraryAvailable&&o?Be[0]:Pe[0],n=await(async()=>{const e=await(async()=>{let e=3;for(;e>0;){const t=await(0,d.resolveSelect)("core").getEntityRecords("root","theme",{status:"active"},!0);if(t)return t;e--}return null})();if(!e)return null;const t=e[0]?._links,o=t?.["wp:user-global-styles"]?.[0]?.href;return(await ee()({url:o})).id})();if(!n)return;const{saveEntityRecord:a}=(0,d.dispatch)(c.store);await a("root","globalStyles",{id:n,styles:(0,Fe.X)(t?.styles||{},r?.styles||{}),settings:(0,Fe.X)(t?.settings||{},r?.settings||{})},{throwOnError:!0})},dt=async()=>{if(window.wcAdminFeatures["pattern-toolkit-full-composability"]&&window.wcTracks?.isEnabled)try{const{success:e}=await ee()({path:"/wc/private/patterns",method:"POST"});if(!e)throw new Error("Fetching patterns failed")}catch(e){throw e}},yt=async()=>{try{await(0,d.dispatch)(m.OPTIONS_STORE_NAME).updateOptions({woocommerce_allow_tracking:"yes"}),window.wcTracks.isEnabled=!0}catch(e){throw e}},Nt={assembleSite:async()=>{await lt({homepageTemplateId:"template1"})},browserPopstateHandler:()=>e=>{const t=()=>{e({type:"EXTERNAL_URL_UPDATE"})};return window.addEventListener("popstate",t),()=>{window.removeEventListener("popstate",t)}},installAndActivateTheme:async e=>{try{await Mt(Ke),await mt(e)}catch(e){throw(0,b.L)("customize_your_store__no_ai_install_and_activate_theme_error",{theme:Ke,error:e instanceof Error?e.message:"unknown"}),e}},createProducts:async()=>{try{const{success:e}=await ee()({path:"/wc-admin/onboarding/products",method:"POST"});if(!e)throw new Error("Product creation failed")}catch(e){throw e}},installFontFamilies:async()=>{if(window.wcTracks?.isEnabled)try{await gt()}catch(e){throw e}},installPatterns:dt,updateGlobalStylesWithDefaultValues:mt,enableTracking:yt,updateShowOnFront:async()=>{try{await ee()({path:"/wp/v2/settings",method:"POST",data:{show_on_front:"posts"}})}catch(e){throw e}}},{escalate:It}=Ue,pt=(0,l.C)({id:"query-ai-endpoint",predictableActionArguments:!0,initial:"init",context:{prompt:"",queryId:"",version:"",responseValidation:()=>!0,retryCount:0,validatedResponse:{}},states:{init:{always:"querying",entry:["setRetryCount"]},querying:{invoke:{src:"getCompletion",onDone:{target:"success",actions:["handleAiResponse"]},onError:{target:"error"}}},error:{always:[{cond:e=>e.retryCount>=3,target:"querying",actions:[It((()=>({data:"Max retries exceeded"})))]},{target:"querying",actions:(0,Q.assign)({retryCount:e=>e.retryCount+1})}]},success:{type:"final",data:e=>({result:"success",response:e.validatedResponse})}}},{actions:{handleAiResponse:(0,Q.assign)({validatedResponse:(e,t)=>t.data}),setRetryCount:(0,Q.assign)({retryCount:0})},services:{getCompletion:async({queryId:e,prompt:t,version:o,responseValidation:r,retryCount:n,abortSignal:a=AbortSignal.timeout(1e4)})=>{const{token:i}=await async function(){var e,t;const o=localStorage.getItem(Qe);let r;if(o)try{r=JSON.parse(o)}catch(e){throw ve("Error parsing token",e),Ce("Error parsing cached token","token_parse_error")}if(r&&(null==r?void 0:r.expire)>Date.now())return ve("Using cached token"),r;const n=null===(e=window.JP_CONNECTION_INITIAL_STATE)||void 0===e?void 0:e.apiNonce,a=null===(t=window.JP_CONNECTION_INITIAL_STATE)||void 0===t?void 0:t.siteSuffix;try{const e={token:(await ee()({path:"/jetpack/v4/jetpack-ai-jwt?_cacheBuster="+Date.now(),credentials:"same-origin",headers:{"X-WP-Nonce":n},method:"POST"})).token,blogId:a,expire:Date.now()+12e4};return ve("Storing new token"),localStorage.setItem(Qe,JSON.stringify(e)),e}catch(e){throw Ce("Error fetching new token","token_fetch_error")}}();let s,c;try{const e=new URL("https://public-api.wordpress.com/wpcom/v2/text-completion");e.searchParams.append("feature","woo_cys"),s=await ee()({url:e.toString(),method:"POST",data:{token:i,prompt:t,_fields:"completion"},signal:a})}catch(t){throw(0,b.L)("customize_your_store_ai_completion_api_error",{query_id:e,version:o,retry_count:n,error_type:"api_request_error"}),t}try{c=JSON.parse(s.completion)}catch{throw(0,b.L)("customize_your_store_ai_completion_response_error",{query_id:e,version:o,retry_count:n,error_type:"json_parse_error",response:s.completion}),new Error(`Error validating Jetpack AI text completions response for ${e}`)}try{const t=r(c);return(0,b.L)("customize_your_store_ai_completion_success",{query_id:e,version:o,retry_count:n}),t}catch(t){throw(0,b.L)("customize_your_store_ai_completion_response_error",{query_id:e,version:o,retry_count:n,error_type:"valid_json_invalid_values",response:s.completion}),t}}}}),Dt=()=>async()=>{if(await(0,d.dispatch)(m.OPTIONS_STORE_NAME).updateOptions({woocommerce_blocks_allow_ai_connection:"yes"}),!(await ee()({path:"/wc-admin/ai/store-info",method:"GET"})).is_ai_generated)return Promise.all([ee()({path:"/wc-admin/ai/patterns",method:"DELETE"}),ee()({path:"/wc/private/ai/products",method:"DELETE"})])},Tt={browserPopstateHandler:()=>e=>{const t=()=>{e({type:"EXTERNAL_URL_UPDATE"})};return window.addEventListener("popstate",t),()=>{window.removeEventListener("popstate",t)}},queryAiEndpoint:pt,assembleSite:async e=>{try{await(async({colorPaletteName:e=Re[0].title,fontPairingName:t=Ge[0].title})=>{const o=Re.find((t=>t.title===e)),r=Ge.find((e=>e.title===t)),{invalidateResolutionForStoreSelector:n}=(0,d.dispatch)(c.store);n("__experimentalGetCurrentGlobalStylesId");const a=await(0,d.resolveSelect)(c.store).__experimentalGetCurrentGlobalStylesId(),{saveEntityRecord:i}=(0,d.dispatch)(c.store);await i("root","globalStyles",{id:a,styles:(0,Fe.X)(o?.styles||{},r?.styles||{}),settings:(0,Fe.X)(o?.settings||{},r?.settings||{})},{throwOnError:!0})})({colorPaletteName:e.aiSuggestions.defaultColorPalette.default,fontPairingName:e.aiSuggestions.fontPairing}),(0,b.L)("customize_your_store_ai_update_global_styles_success")}catch(e){throw console.error(e),(0,b.L)("customize_your_store_ai_update_global_styles_response_error",{error:e instanceof Error?e.message:"unknown"}),e}try{await lt({homepageTemplateId:"template1"}),(0,b.L)("customize_your_store_ai_update_template_success")}catch(e){throw console.error(e),(0,b.L)("customize_your_store_ai_update_template_response_error",{error:e instanceof Error?e.message:"unknown"}),e}},updateStorePatterns:async e=>{try{await(0,d.dispatch)(m.OPTIONS_STORE_NAME).updateOptions({woocommerce_blocks_allow_ai_connection:"yes"});const{images:t}=await ee()({path:"/wc-admin/ai/images",method:"POST",data:{business_description:e.businessInfoDescription.descriptionText}}),{is_ai_generated:o}=await ee()({path:"/wc-admin/ai/store-info",method:"GET"});if(!t){if(!o)throw new Error("AI content not generated: images not available");return void await Dt()()}const[r]=await Promise.all([ee()({path:"/wc/private/ai/products",method:"POST",data:{business_description:e.businessInfoDescription.descriptionText,images:t}}),ee()({path:"/wc-admin/ai/patterns",method:"POST",data:{business_description:e.businessInfoDescription.descriptionText,images:t}})]),n=r.product_content.map(((e,t)=>ee()({path:"/wc-admin/ai/product",method:"POST",data:{products_information:e,last_product:t===r.product_content.length-1}})));if(await Promise.all([...n,ee()({path:"/wc-admin/ai/business-description",method:"POST",data:{business_description:e.businessInfoDescription.descriptionText}}),ee()({path:"/wc-admin/ai/store-title",method:"POST",data:{business_description:e.businessInfoDescription.descriptionText}})]),!r.ai_content_generated)throw new Error((r.additional_errors,JSON.stringify(r.additional_errors)))}catch(e){throw(0,b.L)("customize_your_store_update_store_pattern_api_error",{error:e instanceof Error?e.message:"unknown"}),e}},saveAiResponseToOption:e=>(0,d.dispatch)(m.OPTIONS_STORE_NAME).updateOptions({woocommerce_customize_store_ai_suggestions:{...e.aiSuggestions,lookAndFeel:e.lookAndFeel.choice}}),installAndActivateTheme:async()=>{try{await Mt(Ke)}catch(e){throw(0,b.L)("customize_your_store_ai_install_and_activate_theme_error",{theme:Ke,error:e instanceof Error?e.message:"unknown"}),e}},resetPatternsAndProducts:Dt,installPatterns:dt};var jt=o(1850);const wt=[{name:"Ancient Bronze",primary:"#11163d",secondary:"#8C8369",foreground:"#11163d",background:"#ffffff",lookAndFeel:["Contemporary","Classic"]},{name:"Arctic Dawn",primary:"#243156",secondary:"#DE5853",foreground:"#243156",background:"#ffffff",lookAndFeel:["Contemporary"]},{name:"Bronze Serenity",primary:"#1e4b4b",secondary:"#9e7047",foreground:"#1e4b4b",background:"#ffffff",lookAndFeel:["Classic"]},{name:"Purple Twilight",primary:"#301834",secondary:"#6a5eb7",foreground:"#090909",background:"#fefbff",lookAndFeel:["Bold"]},{name:"Candy Store",primary:"#293852",secondary:"#f1bea7",foreground:"#293852",background:"#ffffff",lookAndFeel:["Classic"]},{name:"Midnight Citrus",primary:"#1B1736",secondary:"#7E76A3",foreground:"#1B1736",background:"#ffffff",lookAndFeel:["Bold","Contemporary"]},{name:"Crimson Tide",primary:"#A02040",secondary:"#234B57",foreground:"#871C37",background:"#ffffff",lookAndFeel:["Bold"]},{name:"Raspberry Chocolate",primary:"#42332e",secondary:"#d64d68",foreground:"#241d1a",background:"#eeeae6",lookAndFeel:["Contemporary","Classic"]},{name:"Gumtree Sunset",primary:"#476C77",secondary:"#EFB071",foreground:"#476C77",background:"#edf4f4",lookAndFeel:["Classic"]},{name:"Fuchsia",primary:"#b7127f",secondary:"#18020C",foreground:"#b7127f",background:"#f7edf6",lookAndFeel:["Bold"]},{name:"Cinder",primary:"#c14420",secondary:"#2F2D2D",foreground:"#863119",background:"#f1f2f2",lookAndFeel:["Contemporary","Classic"]},{name:"Canary",primary:"#0F0F05",secondary:"#353535",foreground:"#0F0F05",background:"#FCFF9B",lookAndFeel:["Bold"]},{name:"Blue Lagoon",primary:"#004DE5",secondary:"#0496FF",foreground:"#0036A3",background:"#FEFDF8",lookAndFeel:["Bold","Contemporary"]},{name:"Vibrant Berry",primary:"#7C1D6F",secondary:"#C62FB2",foreground:"#7C1D6F",background:"#FFEED6",lookAndFeel:["Classic","Bold"]},{name:"Aquamarine Night",primary:"#deffef",secondary:"#56fbb9",foreground:"#ffffff",background:"#091C48",lookAndFeel:["Bold"]},{name:"Evergreen Twilight",primary:"#ffffff",secondary:"#8EE978",foreground:"#ffffff",background:"#181818",lookAndFeel:["Contemporary","Classic"]},{name:"Cinnamon Latte",primary:"#D9CAB3",secondary:"#BC8034",foreground:"#FFFFFF",background:"#3C3F4D",lookAndFeel:["Contemporary","Classic"]},{name:"Lightning",primary:"#ebffd2",secondary:"#fefefe",foreground:"#ebffd2",background:"#0e1fb5",lookAndFeel:["Bold"]},{name:"Lilac Nightshade",primary:"#f5d6ff",secondary:"#C48DDA",foreground:"#ffffff",background:"#000000",lookAndFeel:["Contemporary","Classic"]},{name:"Charcoal",primary:"#dbdbdb",secondary:"#efefef",foreground:"#dbdbdb",background:"#1e1e1e",lookAndFeel:["Contemporary","Classic"]},{name:"Rustic Rosewood",primary:"#F4F4F2",secondary:"#EE797C",foreground:"#ffffff",background:"#1A1A1A",lookAndFeel:["Contemporary","Classic"]},{name:"Sandalwood Oasis",primary:"#F0EBE3",secondary:"#DF9785",foreground:"#ffffff",background:"#2a2a16",lookAndFeel:["Contemporary","Classic"]},{name:"Slate",primary:"#FFFFFF",secondary:"#FFDF6D",foreground:"#EFF2F9",background:"#13161E",lookAndFeel:["Contemporary","Classic"]}],Et=wt.map((e=>e.name)),zt=/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,kt=jt.z.string().refine((e=>Et.includes(e)),{message:"Color palette not part of allowed list"}),ht=(jt.z.object({name:kt,primary:jt.z.string().regex(zt,{message:"Invalid primary color"}),secondary:jt.z.string().regex(zt,{message:"Invalid secondary color"}),foreground:jt.z.string().regex(zt,{message:"Invalid foreground color"}),background:jt.z.string().regex(zt,{message:"Invalid background color"}),lookAndFeel:jt.z.array(jt.z.enum(["Contemporary","Classic","Bold"]))}),{queryId:"default_color_palette",version:"2023-10-12",prompt:(e,t,o)=>`\n            You are a WordPress theme expert designing a WooCommerce site. Analyse the following store description, merchant's chosen look and tone, and determine the most appropriate color scheme, along with 8 best alternatives.\n\t\t\tDo not use any palette names that are not part of the color choices provided below.\n\t\t\tRespond in the JSON form: "{ "default": "palette name", "bestColors": [ "palette name 1", "palette name 2", "palette name 3", "palette name 4", "palette name 5", "palette name 6", "palette name 7", "palette name 8" ] }"\n\t\t\t\n            Chosen look and tone: ${t} look, ${o} tone.\n            Business description: ${e}\n\n            Colors schemes to choose from: \n            ${JSON.stringify(t?wt.filter((e=>e.lookAndFeel.includes(t))):wt)}\n        `,responseValidation:jt.z.object({default:kt,bestColors:jt.z.array(kt).length(8)}).refine((e=>{const t=[e.default,...e.bestColors];return new Set(t).size===t.length}),{message:"Color palette names must be unique"}).parse}),At=[{pair_name:"Inter + Inter",fonts:{Inter:"A highly legible sans-serif, optimized for UI design."},settings:"Inter is used for buttons and general typography."},{pair_name:"Bodoni Moda + Overpass",fonts:{"Bodoni Moda":"A modern serif font with high contrast between thick and thin lines, commonly used for headings.",Overpass:"A clean, modern sans-serif, originally inspired by Highway Gothic. Good for text and UI elements."},settings:"Overpass is used for buttons and general typography, while Bodoni Moda is specified for headings and some core blocks like site title and post navigation link."},{pair_name:"Commissioner + Crimson Pro",fonts:{Commissioner:"A low-contrast, geometric sans-serif, designed for legibility and readability in long texts.","Crimson Pro":"A serif typeface designed for readability and long-form text."},settings:"Commissioner dominates elements like buttons, headings, and core blocks, while Crimson Pro is set for general typography."},{pair_name:"Libre Baskerville + DM Sans",fonts:{"Libre Baskerville":"A serif typeface with a classic feel, good for long reading and often used for body text in books.","DM Sans":"A clean, geometric sans-serif, often used for UI and short text."},settings:"Libre Baskerville is used for headings and core blocks, whereas DM Sans is used for buttons and general typography."},{pair_name:"Libre Franklin + EB Garamond",fonts:{"Libre Franklin":"A sans-serif that offers readability, suitable for both text and display.","EB Garamond":"A revival of the classical 'Garamond' typefaces, suitable for long-form text."},settings:"Libre Franklin is predominantly used for elements like buttons, headings, and core blocks. EB Garamond is set for general typography."},{pair_name:"Montserrat + Arvo",fonts:{Montserrat:"A geometric sans-serif, popular for its modern clean lines.",Arvo:"A slab-serif font with a more traditional feel, suitable for print and screen."},settings:"Montserrat is used for buttons, headings, and core blocks. Arvo is used for general typography."},{pair_name:"Playfair Display + Fira Sans",fonts:{"Playfair Display":"A high-contrast serif designed for headings and offers a modern take on older serif fonts.","Fira Sans":"A sans-serif designed for readability at small sizes, making it suitable for both UI and text."},settings:"Playfair Display is used in italics for headings and core blocks, while Fira Sans is used for buttons and general typography."},{pair_name:"Rubik + Inter",fonts:{Rubik:"A sans-serif with slightly rounded corners, designed for a softer, more modern look.",Inter:"A highly legible sans-serif, optimized for UI design."},settings:"Rubik is applied for headings and core blocks. Inter is used for buttons and general typography."},{pair_name:"Space Mono + Roboto",fonts:{"Space Mono":"A monospace typeface with a futuristic vibe.",Roboto:"A neo-grotesque sans-serif, known for its flexibility and modern design."},settings:"Space Mono is used for headings, while Roboto takes care of buttons and general typography."}].map((e=>e.pair_name)),ft=(jt.z.object({pair_name:jt.z.string().refine((e=>At.includes(e)),{message:"Font choice not part of allowed list"})}).parse,[{slug:"woocommerce-blocks/header-essential",label:"Essential Header"},{slug:"woocommerce-blocks/header-centered-menu",label:"Centered Menu with search Header"},{slug:"woocommerce-blocks/header-minimal",label:"Minimal Header"},{slug:"woocommerce-blocks/header-large",label:"Large Header"}]).map((e=>e.slug)),xt=(jt.z.object({slug:jt.z.string().refine((e=>ft.includes(e)),{message:"Header not part of allowed list"})}).parse,[{slug:"woocommerce-blocks/footer-simple-menu",label:"Footer with Simple Menu"},{slug:"woocommerce-blocks/footer-with-3-menus",label:"Footer with 3 Menus"},{slug:"woocommerce-blocks/footer-large",label:"Large Footer"}]).map((e=>e.slug)),Lt=(jt.z.object({slug:jt.z.string().refine((e=>xt.includes(e)),{message:"Footer not part of allowed list"})}).parse,Object.keys(at)),Ot=(jt.z.object({homepage_template:jt.z.string().refine((e=>Lt.includes(e)),{message:"Template not part of allowed list"})}).parse,(0,l.C)({id:"designWithAi",predictableActionArguments:!0,preserveActionOrder:!0,schema:{context:{},events:{}},invoke:{src:"browserPopstateHandler"},on:{EXTERNAL_URL_UPDATE:{target:"navigate"},AI_WIZARD_CLOSED_BEFORE_COMPLETION:{actions:[(0,Q.sendParent)(((e,t)=>t)),"recordTracksStepClosed"]}},context:{startLoadingTime:null,businessInfoDescription:{descriptionText:""},lookAndFeel:{choice:""},toneOfVoice:{choice:""},aiSuggestions:{defaultColorPalette:{default:"Ancient Bronze"},fontPairing:"Rubik + Inter",homepageTemplate:"template1"},apiCallLoader:{hasErrors:!1},aiOnline:!0,isBlockTheme:!1},initial:"navigate",states:{navigate:{always:[{target:"businessInfoDescription",cond:{type:"hasStepInUrl",step:"business-info-description"}},{target:"lookAndFeel",cond:{type:"hasStepInUrl",step:"look-and-feel"}},{target:"toneOfVoice",cond:{type:"hasStepInUrl",step:"tone-of-voice"}},{target:"apiCallLoader",cond:{type:"hasStepInUrl",step:"api-call-loader"}},{target:"businessInfoDescription"}]},businessInfoDescription:{id:"businessInfoDescription",initial:"preBusinessInfoDescription",states:{preBusinessInfoDescription:{always:{target:"businessInfoDescription"}},businessInfoDescription:{meta:{component:({sendEvent:e,context:t})=>{const[o,r]=(0,s.useState)(t.businessInfoDescription.descriptionText),[n,a]=(0,s.useState)(!1);return(0,s.createElement)("div",null,!(0,me.id)()&&(0,s.createElement)(y.ProgressBar,{percent:20,color:"var(--wp-admin-theme-color)",bgcolor:"transparent"}),(0,me.id)()&&(0,s.createElement)(de.Z,{size:24,className:"woocommerce-cys-wordpress-header-logo"}),!(0,me.id)()&&(0,s.createElement)(ue,{onClick:()=>{e({type:"AI_WIZARD_CLOSED_BEFORE_COMPLETION",payload:{step:"business-info-description"}})}}),(0,me.id)()&&(0,s.createElement)(ge,{onClick:()=>{(0,b.L)("customize_your_store_entrepreneur_skip_click",{step:"business-info-description"}),window.location.href=(0,N.getAdminLink)("admin.php?page=wc-admin&ref=entrepreneur-signup")}}),(0,s.createElement)("div",{className:"woocommerce-cys-design-with-ai woocommerce-cys-layout"},(0,s.createElement)("div",{className:"woocommerce-cys-page"},(0,s.createElement)("h1",null,(0,T.__)("Tell us a bit more about your business","woocommerce")),(0,s.createElement)(E.TextareaControl,{onChange:e=>{r(e)},value:o}),(0,s.createElement)("div",{className:"woocommerce-cys-design-with-ai-guide"},(0,s.createElement)("p",null,(0,T.__)("The more detail you provide, the better job our AI can do!","woocommerce")),(0,s.createElement)("p",null,(0,T.__)("Try to include:","woocommerce")),(0,s.createElement)("ul",null,(0,s.createElement)("li",null,(0,T.__)("What you want to sell","woocommerce")),(0,s.createElement)("li",null,(0,T.__)("How many products you plan on displaying","woocommerce")),(0,s.createElement)("li",null,(0,T.__)("What makes your business unique","woocommerce")),(0,s.createElement)("li",null,(0,T.__)("Who your target audience is","woocommerce")))),(0,s.createElement)(E.Button,{variant:"primary",onClick:()=>{a(!0),e({type:"BUSINESS_INFO_DESCRIPTION_COMPLETE",payload:o})},disabled:0===o.length||n},n?(0,s.createElement)(E.Spinner,null):(0,T.__)("Continue","woocommerce")))))}},entry:[{type:"recordTracksStepViewed",step:"business_info_description"}],on:{BUSINESS_INFO_DESCRIPTION_COMPLETE:{actions:["assignBusinessInfoDescription","spawnSaveDescriptionToOption",{type:"recordTracksStepCompleted",step:"business_info_description"}],target:"postBusinessInfoDescription"}}},postBusinessInfoDescription:{always:{target:"#lookAndFeel"}}}},lookAndFeel:{id:"lookAndFeel",initial:"preLookAndFeel",states:{preLookAndFeel:{always:{target:"lookAndFeel"}},lookAndFeel:{meta:{component:({sendEvent:e,context:t})=>{const o=[{title:(0,T.__)("Contemporary","woocommerce"),key:"Contemporary",subtitle:(0,T.__)("Clean lines, neutral colors, sleek and modern look.","woocommerce")},{title:(0,T.__)("Classic","woocommerce"),key:"Classic",subtitle:(0,T.__)("Elegant and timeless with a nostalgic touch.","woocommerce")},{title:(0,T.__)("Bold","woocommerce"),key:"Bold",subtitle:(0,T.__)("Vibrant with eye-catching colors and visuals.","woocommerce")}],[r,n]=(0,s.useState)(""===t.lookAndFeel.choice?o[0].key:t.lookAndFeel.choice);return(0,s.createElement)("div",null,!(0,me.id)()&&(0,s.createElement)(y.ProgressBar,{percent:60,color:"var(--wp-admin-theme-color)",bgcolor:"transparent"}),(0,me.id)()&&(0,s.createElement)(de.Z,{size:24,className:"woocommerce-cys-wordpress-header-logo"}),!(0,me.id)()&&(0,s.createElement)(ue,{onClick:()=>{e({type:"AI_WIZARD_CLOSED_BEFORE_COMPLETION",payload:{step:"look-and-feel"}})}}),(0,me.id)()&&(0,s.createElement)(ge,{onClick:()=>{(0,b.L)("customize_your_store_entrepreneur_skip_click",{step:"look-and-feel"}),window.location.href=(0,N.getAdminLink)("admin.php?page=wc-admin&ref=entrepreneur-signup")}}),(0,s.createElement)("div",{className:"woocommerce-cys-design-with-ai-look-and-feel woocommerce-cys-layout"},(0,s.createElement)("div",{className:"woocommerce-cys-page"},(0,s.createElement)("h1",null,(0,T.__)("How would you like your store to look?","woocommerce")),(0,s.createElement)("div",{className:"choices"},o.map((({title:e,subtitle:t,key:o})=>(0,s.createElement)(Ne,{key:o,name:"user-profile-choice",title:e,subtitle:t,selected:r===o,value:o,onChange:e=>{n(e)}})))),(0,s.createElement)(E.Button,{variant:"primary",onClick:()=>{t.lookAndFeel.aiRecommended&&t.lookAndFeel.aiRecommended!==r&&(0,b.L)("customize_your_store_ai_wizard_changed_ai_option",{step:"look-and-feel",ai_recommended:t.lookAndFeel.aiRecommended,user_choice:r}),e({type:"LOOK_AND_FEEL_COMPLETE",payload:r})}},(0,T.__)("Continue","woocommerce")))))}},entry:[{type:"updateQueryStep",step:"look-and-feel"},{type:"recordTracksStepViewed",step:"look_and_feel"}],on:{LOOK_AND_FEEL_COMPLETE:{actions:[{type:"recordTracksStepCompleted",step:"look_and_feel"},"assignLookAndFeel"],target:"postLookAndFeel"}}},postLookAndFeel:{always:{target:"#toneOfVoice"}}}},toneOfVoice:{id:"toneOfVoice",initial:"preToneOfVoice",states:{preToneOfVoice:{always:{target:"toneOfVoice"}},toneOfVoice:{meta:{component:({sendEvent:e,context:t})=>{const o=[{title:(0,T.__)("Informal","woocommerce"),key:"Informal",subtitle:(0,T.__)("Relaxed and friendly, like a conversation with a friend.","woocommerce")},{title:(0,T.__)("Neutral","woocommerce"),key:"Neutral",subtitle:(0,T.__)("Impartial tone with casual expressions without slang.","woocommerce")},{title:(0,T.__)("Formal","woocommerce"),key:"Formal",subtitle:(0,T.__)("Direct yet respectful, serious and professional.","woocommerce")}],[r,n]=(0,s.useState)(""===t.toneOfVoice.choice?o[0].key:t.toneOfVoice.choice),a=()=>{t.toneOfVoice.aiRecommended&&t.toneOfVoice.aiRecommended!==r&&(0,b.L)("customize_your_store_ai_wizard_changed_ai_option",{step:"tone-of-voice",ai_recommended:t.toneOfVoice.aiRecommended,user_choice:r}),e({type:"TONE_OF_VOICE_COMPLETE",payload:r})};return(0,s.createElement)("div",null,!(0,me.id)()&&(0,s.createElement)(y.ProgressBar,{percent:80,color:"var(--wp-admin-theme-color)",bgcolor:"transparent"}),(0,me.id)()&&(0,s.createElement)(de.Z,{size:24,className:"woocommerce-cys-wordpress-header-logo"}),!(0,me.id)()&&(0,s.createElement)(ue,{onClick:()=>{e({type:"AI_WIZARD_CLOSED_BEFORE_COMPLETION",payload:{step:"tone-of-voice"}})}}),(0,me.id)()&&(0,s.createElement)(ge,{onClick:()=>{(0,b.L)("customize_your_store_entrepreneur_skip_click",{step:"tone-of-voice"}),window.location.href=(0,N.getAdminLink)("admin.php?page=wc-admin&ref=entrepreneur-signup")}}),(0,s.createElement)("div",{className:"woocommerce-cys-design-with-ai-tone-of-voice woocommerce-cys-layout"},(0,s.createElement)("div",{className:"woocommerce-cys-page"},(0,s.createElement)("h1",null,(0,T.__)("Which writing style do you prefer?","woocommerce")),t.apiCallLoader.hasErrors&&(0,s.createElement)(E.Notice,{className:"woocommerce-cys-design-with-ai__error-notice",isDismissible:!1,status:"error"},(0,s.createInterpolateElement)((0,T.__)("Oops! We encountered a problem while generating your store. <retryButton/>","woocommerce"),{retryButton:(0,s.createElement)(E.Button,{onClick:a,variant:"tertiary"},(0,T.__)("Please try again","woocommerce"))})),(0,s.createElement)("div",{className:"choices"},o.map((({title:e,subtitle:t,key:o})=>(0,s.createElement)(Ne,{key:o,name:"user-profile-choice",title:e,subtitle:t,selected:r===o,value:o,onChange:e=>{n(e)}})))),(0,s.createElement)(E.Button,{variant:"primary",onClick:a},(0,T.__)("Continue","woocommerce")))))}},entry:[{type:"updateQueryStep",step:"tone-of-voice"},{type:"recordTracksStepViewed",step:"tone_of_voice"}],on:{TONE_OF_VOICE_COMPLETE:{actions:["assignToneOfVoice",{type:"recordTracksStepCompleted",step:"tone_of_voice"}],target:"postToneOfVoice"}}},postToneOfVoice:{always:{target:"#apiCallLoader"}}}},apiCallLoader:{id:"apiCallLoader",initial:"preApiCallLoader",states:{preApiCallLoader:{always:{target:"apiCallLoader"}},apiCallLoader:{meta:{component:()=>{const[e,t]=(0,s.useState)(5);(0,s.useEffect)((()=>{const e=e=>{const t=new Image;t.src=e,t.onload=()=>{}};e(Ie),e(pe)}),[]);const o=(0,_.rS)(De.slice(0,-1),10);return(0,s.createElement)(p.Loader,null,(0,s.createElement)(p.Loader.Sequence,{interval:4e4/(o.length-1),shouldLoop:!1,onChange:e=>{setTimeout((()=>{t(o[e].progress)}),0)}},o.map((e=>(0,s.createElement)(p.Loader.Layout,{key:e.title},(0,s.createElement)(p.Loader.Illustration,null,e.image),(0,s.createElement)(p.Loader.Title,null,e.title))))),(0,s.createElement)(p.Loader.ProgressBar,{className:"smooth-transition",progress:e||0}))}},entry:[{type:"updateQueryStep",step:"api-call-loader"},"assignStartLoadingTime"],type:"parallel",states:{chooseColorPairing:{initial:"executeOrSkip",states:{executeOrSkip:{always:[{target:"pending",cond:"isAiOnline"},{target:"success"}]},pending:{invoke:{src:"queryAiEndpoint",data:e=>({...ht,prompt:ht.prompt(e.businessInfoDescription.descriptionText,e.lookAndFeel.choice,e.toneOfVoice.choice)}),onDone:{actions:["assignDefaultColorPalette"],target:"success"},onError:{target:"success"}}},success:{type:"final"}}},chooseFontPairing:{initial:"pending",states:{pending:{entry:["assignFontPairing"],always:{target:"success"}},success:{type:"final"}}},updateStorePatterns:{initial:"executeOrSkip",states:{executeOrSkip:{always:[{target:"pending",cond:"isAiOnline"},{target:"resetPatternsAndProducts"}]},pending:{invoke:{src:"updateStorePatterns",onDone:{target:"success"},onError:{actions:["assignAPICallLoaderError"],target:"#toneOfVoice"}}},resetPatternsAndProducts:{invoke:{src:"resetPatternsAndProducts",onDone:{target:"success"},onError:{actions:["assignAPICallLoaderError"],target:"#toneOfVoice"}}},success:{type:"final"}}},installAndActivateTheme:{initial:"pending",states:{pending:{invoke:{src:"installAndActivateTheme",onDone:{target:"success"},onError:{actions:["assignAPICallLoaderError"],target:"#toneOfVoice"}}},success:{type:"final"}}}},onDone:"postApiCallLoader"},postApiCallLoader:{type:"parallel",states:{assembleSite:{initial:"pending",states:{pending:{invoke:{src:"assembleSite",onDone:{target:"done"},onError:{actions:["assignAPICallLoaderError"],target:"#toneOfVoice"}}},done:{type:"final"}}},saveAiResponse:{initial:"pending",states:{pending:{invoke:{src:"saveAiResponseToOption",onDone:{target:"done"},onError:{target:"failed"}}},done:{type:"final"},failed:{type:"final"}}},installPatterns:{initial:"pending",states:{pending:{invoke:{src:"installPatterns",onDone:{target:"success"},onError:{target:"success"}}},success:{type:"final"}}}},onDone:{target:"#designWithAi.showAssembleHub"}}}},showAssembleHub:{meta:{component:()=>{const e=(0,_.rS)(De.slice(-2),10),[t,o]=(0,s.useState)(e[0].progress);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.Loader,null,(0,s.createElement)(p.Loader.Sequence,{interval:1e4/(e.length-1),shouldLoop:!1,onChange:t=>{setTimeout((()=>{o(e[t].progress)}),0)}},e.map(((e,t)=>(0,s.createElement)(p.Loader.Layout,{key:t},(0,s.createElement)(p.Loader.Illustration,null,e.image),(0,s.createElement)(p.Loader.Title,null,e.title))))),(0,s.createElement)(p.Loader.ProgressBar,{className:"smooth-transition",progress:t||0})),(0,s.createElement)(Te,null))}},entry:["redirectToAssemblerHub"],type:"final"}}},{actions:be,services:Tt,guards:{hasStepInUrl:(e,t,{cond:o})=>{const{path:r=""}=(0,g.getQuery)();return r.split("/")[3]===o.step},isAiOnline:e=>e.aiOnline}}));var _t=o(28316),bt=o(69959);const St=({parentMachine:e,parentContext:t})=>{const o=(0,d.useSelect)((e=>e("core").getCurrentTheme()),[]),r=o?.is_block_theme;Ot.context.aiOnline=t?.flowType===z.AIOnline;const{versionEnabled:n}=(0,bt.r)(),[a,i,c]=(0,M.e)(Ot,{devTools:"V4"===n,parent:e,context:{...Ot.context,isBlockTheme:r}}),l=(0,u.v)(c,(e=>{var t;return(0,_t.r)(null!==(t=e?.meta)&&void 0!==t?t:void 0)})),[g,m]=(0,s.useState)(null);(0,s.useEffect)((()=>{l?.component&&m((()=>l?.component))}),[g,l?.component]);const y=a.value instanceof Object?Object.keys(a.value)[0]:a.value;return(0,s.createElement)("div",{className:`woocommerce-design-with-ai__container woocommerce-design-with-ai-wizard__step-${y}`},g?(0,s.createElement)(g,{sendEvent:i,context:a.context}):(0,s.createElement)("div",null))},Ct="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEwIiBoZWlnaHQ9IjEzNiIgdmlld0JveD0iMCAwIDIxMCAxMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMzQ1XzExNzkxKSI+CjxyZWN0IHdpZHRoPSIyMDkuODI5IiBoZWlnaHQ9IjEzNiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wODU5Mzc1KSIvPgo8cGF0aCBkPSJNMTcyLjA5MSA0OC41NzkxQzE1MS42MTEgNDguNTc5MSAxMzguMzQ4IDU5LjMyOTkgMTM4LjM0OCA3NS44NTM5QzEzOC4zNDggOTYuNDUxMSAxNjAuMTgxIDk5LjI0NTkgMTYwLjE4MSAxMDkuOThIMTg0QzE4NCA5OS4yNDI1IDIwNS44MzMgOTYuNDUxMSAyMDUuODMzIDc1Ljg1MzlDMjA1LjgzMyA1OS4zMjk5IDE5Mi41NjcgNDguNTc5MSAxNzIuMDkxIDQ4LjU3OTFaIiBmaWxsPSIjQkVBMEYyIi8+CjxwYXRoIGQ9Ik0zOC4wNDkgNC4xMDcxOEMxMy44ODY0IDQuMTA3MTggMC4zMTM4NjggMjIuNzU2MiA1LjEzMjc4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LjM4SDE2MC4xNzhDMTYwLjE3OCAxMTMuNjI4IDE2MC4xNzggMTE0LjIxMyAxNjAuMTc4IDExNC45NDRIMTU1Ljc4OFYxMTguMzQ0SDE2MC4xNzhDMTYwLjE3OCAxMTkuNDA1IDE2MC4xNzggMTIwLjI1OCAxNjAuMTc4IDEyMC4yODJDMTYwLjE3OCAxMjUuNzA4IDE2NC43OTMgMTMxLjk0NyAxNzIuMDkxIDEzMS45NDdDMTc5LjM4OSAxMzEuOTQ3IDE4NC4wMDQgMTI1LjcwNSAxODQuMDA0IDEyMC4yODJDMTg0LjAwNCAxMjAuMjU1IDE4NC4wMDQgMTE5LjQyNSAxODQuMDA0IDExOC4zNDRIMTg4LjM5NFYxMTQuOTQ0SDE4NC4wMDRDMTg0LjAwNCAxMTQuMjEzIDE4NC4wMDQgMTEzLjYzMSAxODQuMDA0IDExMy4zOEgxODguMzkxWiIgZmlsbD0iIzI3MUIzRCIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzEzNDVfMTE3OTEiPgo8cmVjdCB3aWR0aD0iMjA5LjgyOSIgaGVpZ2h0PSIxMzYiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjA4NTkzNzUpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",vt=[{title:(0,T.__)("Setting up the foundations","woocommerce"),image:(0,s.createElement)("img",{src:Ie,alt:(0,T.__)("Setting up the foundations","woocommerce")}),progress:25},{title:(0,T.__)("Turning on the lights","woocommerce"),image:(0,s.createElement)("img",{src:Ct,alt:(0,T.__)("Turning on the lights","woocommerce")}),progress:50},{title:(0,T.__)("Opening the doors","woocommerce"),image:(0,s.createElement)("img",{src:pe,alt:(0,T.__)("Opening the doors","woocommerce")}),progress:100}],Qt=()=>{const[e,t]=(0,s.useState)(5);(0,s.useEffect)((()=>{const e=e=>{const t=new Image;t.src=e,t.onload=()=>{}};e(Ie),e(Ct),e(pe)}),[]);const o=(0,_.rS)(vt.slice(0,-1),10);return(0,s.createElement)(p.Loader,null,(0,s.createElement)(p.Loader.Sequence,{interval:5e3/(o.length-1),shouldLoop:!1,onChange:e=>{setTimeout((()=>{t(o[e].progress)}),0)}},o.map((e=>(0,s.createElement)(p.Loader.Layout,{key:e.title},(0,s.createElement)(p.Loader.Illustration,null,e.image),(0,s.createElement)(p.Loader.Title,null,e.title))))),(0,s.createElement)(p.Loader.ProgressBar,{className:"smooth-transition",progress:e||0}))},Ut=({sendEvent:e})=>{const t=(0,g.getNewPath)({},"/customize-store/assembler-hub",{}),o=(0,s.useRef)(null),[r,n]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{window.addEventListener("message",(t=>{"INSTALL_FONTS"===t.data?.type&&e({type:"INSTALL_FONTS"})}))}),[e]),(0,s.createElement)("iframe",{ref:o,onLoad:e=>{const o=()=>n(!0);(0,_.cK)(e.currentTarget),(0,_.sr)(o),setTimeout(o,6e4),window.parent.history?.pushState({},"",t)},style:{opacity:r?1:0},src:t,title:"assembler-hub",className:"cys-fullscreen-iframe"})},Ft={redirectToAssemblerHub:async()=>{window.parent.__wcCustomizeStore.activeThemeHasMods=!0},redirectToIntroWithError:(0,Q.sendParent)(((e,t)=>{const o=t;return{type:"NO_AI_FLOW_ERROR",errorStatus:o?.data?.data?.status}})),redirectToAssemblerHubSection:(e,t,{action:o})=>{const{section:r}=o;(0,_.tJ)(window,(0,g.getNewPath)({customizing:!0},`/customize-store/assembler-hub/${r}`,{}))}},Yt={initial:"checkFontLibrary",states:{checkFontLibrary:{always:[{cond:{type:"isFontLibraryAvailable"},target:"pending"},{target:"success"}]},pending:{invoke:{src:"installFontFamilies",onDone:{target:"success"},onError:{actions:"redirectToIntroWithError"}}},success:{type:"final"}}},Bt=(0,l.C)({id:"designWithoutAI",predictableActionArguments:!0,preserveActionOrder:!0,schema:{context:{},events:{}},invoke:{src:"browserPopstateHandler"},on:{EXTERNAL_URL_UPDATE:{target:"navigate"},INSTALL_FONTS:{target:"installFontFamilies"}},context:{startLoadingTime:null,flowType:z.noAI,apiCallLoader:{hasErrors:!1},isFontLibraryAvailable:!1,isPTKPatternsAPIAvailable:!1,isBlockTheme:!1},initial:"navigate",states:{navigate:{always:[{cond:{type:"hasFontInstallInUrl",step:"design"},target:"installFontFamilies"},{cond:{type:"hasPatternInstallInUrl",step:"design"},target:"installPatterns"},{cond:{type:"hasStepInUrl",step:"design"},target:"preAssembleSite"}]},installFontFamilies:{meta:{component:Qt},initial:"enableTracking",states:{enableTracking:{invoke:{src:"enableTracking",onDone:{target:"checkFontLibrary"}}},checkFontLibrary:Yt.states.checkFontLibrary,pending:Yt.states.pending,success:{type:"final"}},onDone:{target:"#designWithoutAI.showAssembleHubTypography"}},installPatterns:{meta:{component:Qt},initial:"enableTracking",states:{enableTracking:{invoke:{src:"enableTracking",onDone:{target:"fetchPatterns"}}},fetchPatterns:{invoke:{src:"installPatterns",onDone:{target:"success"},onError:{actions:"redirectToIntroWithError"}}},success:{type:"final"}},onDone:{target:"#designWithoutAI.showAssembleHubHomepage"}},preAssembleSite:{initial:"preApiCallLoader",id:"preAssembleSite",states:{preApiCallLoader:{meta:{component:Qt},type:"parallel",states:{updateShowOnFront:{initial:"pending",states:{pending:{invoke:{src:"updateShowOnFront",onDone:{target:"success"},onError:{actions:"redirectToIntroWithError"}}},success:{type:"final"}}},installAndActivateTheme:{initial:"pending",states:{pending:{invoke:{src:"installAndActivateTheme",onDone:{target:"success"},onError:{actions:"redirectToIntroWithError"}}},success:{type:"final"}}},createProducts:{initial:"pending",states:{pending:{invoke:{src:"createProducts",onDone:{target:"success"},onError:{actions:"redirectToIntroWithError"}}},success:{type:"final"}}},installFontFamilies:{initial:Yt.initial,states:{checkFontLibrary:Yt.states.checkFontLibrary,pending:Yt.states.pending,success:{type:"final"}}},installPatterns:{initial:"pending",states:{pending:{invoke:{src:"installPatterns",onDone:{target:"success"},onError:{target:"success"}}},success:{type:"final"}}}},onDone:{target:"assembleSite"}},assembleSite:{initial:"pending",states:{pending:{invoke:{src:"assembleSite",onDone:{target:"success"},onError:{actions:"redirectToIntroWithError"}}},success:{type:"final"}},onDone:{target:"#designWithoutAI.showAssembleHub"}}}},showAssembleHub:{id:"showAssembleHub",meta:{component:({sendEvent:e})=>{const t=(0,_.rS)(vt.slice(-2),10),[o,r]=(0,s.useState)(t[0].progress);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.Loader,null,(0,s.createElement)(p.Loader.Sequence,{interval:2e3/(t.length-1),shouldLoop:!1,onChange:e=>{setTimeout((()=>{r(t[e].progress)}),0)}},t.map(((e,t)=>(0,s.createElement)(p.Loader.Layout,{key:t},(0,s.createElement)(p.Loader.Illustration,null,e.image),(0,s.createElement)(p.Loader.Title,null,e.title))))),(0,s.createElement)(p.Loader.ProgressBar,{className:"smooth-transition",progress:o||0})),(0,s.createElement)(Ut,{sendEvent:e}))}},entry:["redirectToAssemblerHub"]},showAssembleHubHomepage:{entry:[{type:"redirectToAssemblerHubSection",section:"homepage"}]},showAssembleHubTypography:{entry:[{type:"redirectToAssemblerHubSection",section:"typography"}]}}},{actions:Ft,services:Nt,guards:{hasStepInUrl:(e,t,{cond:o})=>{const{path:r=""}=(0,g.getQuery)();return r.split("/")[2]===o.step},isFontLibraryAvailable:e=>e.isFontLibraryAvailable,hasFontInstallInUrl:()=>{const{path:e=""}=(0,g.getQuery)(),t=e.split("/");return"design"===t[2]&&"install-fonts"===t[3]},hasPatternInstallInUrl:()=>{const{path:e=""}=(0,g.getQuery)(),t=e.split("/");return"design"===t[2]&&"install-patterns"===t[3]}}}),Pt=({parentMachine:e,parentContext:t})=>{var o,r;const n=(0,d.useSelect)((e=>e("core").getCurrentTheme()),[]),a=n?.is_block_theme,{versionEnabled:i}=(0,bt.r)(),[,c,l]=(0,M.e)(Bt,{devTools:"V4"===i,parent:e,context:{...Bt.context,isFontLibraryAvailable:null!==(o=t?.isFontLibraryAvailable)&&void 0!==o&&o,isPTKPatternsAPIAvailable:null!==(r=t?.isPTKPatternsAPIAvailable)&&void 0!==r&&r,isBlockTheme:a}}),g=(0,u.v)(l,(e=>{var t;return(0,_t.r)(null!==(t=e?.meta)&&void 0!==t?t:void 0)})),[m,y]=(0,s.useState)(null);return(0,s.useEffect)((()=>{g?.component&&y((()=>g?.component))}),[m,g?.component]),(0,s.createElement)("div",{className:"woocommerce-design-without-ai__container"},m?(0,s.createElement)(m,{sendEvent:c}):(0,s.createElement)("div",null))},Gt=({parentMachine:e,context:t})=>(0,s.createElement)(Pt,{parentMachine:e,parentContext:t});var Rt=o(86802),Zt=o(90170),Wt=o(24705),Ht=o(55815),Vt=o(12238),Jt=o(4323),Xt=o(58141),Kt=o(92694),qt=o(12314),$t=o(94333),eo=o(95417),to=o(18783),oo=o(63967),ro=o(42981),no=o(2866),ao=o(81377),io=o(66528),so=o(33004),co=o(99196);const lo=e=>"string"==typeof e&&e!==decodeURIComponent(e),Mo=({fontFamilies:e,iframeInstance:t,onLoad:o})=>{const{site:r,currentTheme:n}=(0,d.useSelect)((e=>({site:e(c.store).getSite(),currentTheme:e(c.store).getCurrentTheme()})));return(0,s.useEffect)((()=>{if(!Array.isArray(e)||!r)return;const a=r?.url+"/wp-content/themes/"+n?.stylesheet;e.forEach((async e=>{e.fontFace?.forEach((async e=>{const r=`url(${((e,t)=>{if(e){if(e.startsWith("file:.")&&t){const o=e.replace("file:.",t);return lo(o)?o:encodeURI(o)}return lo(e)?e:encodeURI(e)}})(Array.isArray(e.src)?e.src[0]:e.src,a)})`,n=new FontFace(e.fontFamily,r,{style:e.fontStyle,weight:e.fontWeight}),i=await n.load();document.fonts.add(i),t&&t.contentDocument?.fonts.add(i),o&&o()}))}))}),[n?.stylesheet,e,t,o,r]),(0,s.createElement)(s.Fragment,null)},uo=({fontFamilies:e,onLoad:t,preload:o=!1})=>{const r=(0,s.useMemo)((()=>new URLSearchParams([...e.map((({fontFamily:e})=>["family",`${e}:ital,wght@0,400;0,700;1,400;1,700`])),["display","swap"]])),[e]);return r.getAll("family").length?(0,s.createElement)(s.Fragment,null,o?(0,s.createElement)("link",{rel:"preconnect",href:"https://fonts.wp.com"}):null,(0,s.createElement)("link",{rel:o?"preload":"stylesheet",type:"text/css",as:o?"style":void 0,href:`https://fonts-api.wp.com/css2?${r}`,onLoad:t,onError:t})):null},{useGlobalSetting:go}=(0,Zt.U)(Ve.privateApis),mo=()=>{var e;const[t]=go("typography.fontFamilies"),[o]=go("typography.fontFamilies",void 0,"base"),{context:r}=(0,s.useContext)($n),n=Ge.map((e=>e?.settings?.typography?.fontFamilies?.theme)),a=(0,s.useMemo)((()=>document.querySelector(".block-editor-block-preview__content iframe")),[]),i=n.map((e=>[...e.map((e=>({...e,name:e.fontFamily})))]));return(0,s.createElement)(s.Fragment,null,S(r.flowType)&&i.map((e=>(0,s.createElement)(uo,{fontFamilies:e,key:e.map((e=>e.slug)).join("-"),preload:!0}))),C(r.flowType)&&(0,s.createElement)(Mo,{fontFamilies:[...null!==(e=t.custom)&&void 0!==e?e:[],...o.theme],iframeInstance:a}))},yo=(e,{selectBlockByClientId:t})=>{const o=(e=>{for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest("[data-is-parent-block='true'], header, footer");return t?t.id.slice(6):void 0})(e.target);if(o)return t(o,null),o},No="enable-click",Io=e=>{e.setAttribute("inert","true")},po=e=>{e.removeAttribute("inert")};let Do=function(e){return e.VISIBLE="VISIBLE",e.HIDDEN="HIDDEN",e}({});const To=(e=0,t=0)=>()=>({width:0,height:0,top:t,right:e,bottom:t,left:e});let jo=null,wo=null;var Eo=o(92819),zo=o(46417);const ko=(0,s.createContext)({selectedBlockRef:null,setSelectedBlockRef:()=>{}}),ho=({children:e})=>{const[t,o]=(0,s.useState)(null);return(0,s.createElement)(ko.Provider,{value:{selectedBlockRef:t,setSelectedBlockRef:e=>{o(e)}}},e)},Ao=(e,t)=>{const[o,r,n]=(0,c.useEntityBlockEditor)("postType",e,{id:t});return[null!=o?o:[],r,n]},fo=e=>"core/cover"===e.name&&e.attributes.url.includes("music-black-and-white-white-photography.jpg"),xo=e=>"Featured Category Cover Image"===e.attributes?.metadata?.name,Lo=(e,t)=>{const o=e.filter(fo);o&&((e,t)=>{const o=e.map((e=>e?.innerBlocks[0].innerBlocks.find((e=>"core/buttons"===e.name)))).map((e=>e?.innerBlocks[0])).filter(Boolean);o&&t(o)})(o,t);const r=e.filter(xo);return r&&((e,t)=>{t(e.map((e=>e.innerBlocks.find((e=>"core/cover"===e.name)))).map((e=>e?.innerBlocks.find((e=>"core/buttons"===e.name)))).map((e=>e?.innerBlocks[0])))})(r,t),e},Oo={color:{background:"#ffffff",text:"#000000"}},{GlobalStylesContext:_o}=(0,Zt.U)(Ve.privateApis),bo=()=>{const{user:e}=(0,s.useContext)(_o);return(0,s.useMemo)((()=>(0,Eo.isEqual)(Re[0].settings.color,e.settings.color)),[e])},So=()=>{const e=bo(),t=(0,d.useSelect)((e=>e(c.store).getDefaultTemplateId({slug:"home"})),[]),[o]=Ao("wp_template",t||""),r=(0,s.useRef)(null),{insertBlocks:n}=(0,d.useDispatch)(Ve.store),a=(0,s.useMemo)((()=>o.findLastIndex((e=>"core/template-part"===e.name))),[o]);return{insertPattern:(0,s.useCallback)((t=>{const o=(0,Zt.U)((0,d.select)(Ve.store)).__experimentalGetParsedPattern(t.name).blocks.map((e=>(0,We.cloneBlock)(e)));if(e){const e=Lo(o,(e=>{e.forEach((e=>e.attributes.style=Oo))}));n(e,a,void 0,!1),r.current=e[0].clientId}else{const e=Lo(o,(e=>{e.forEach((e=>e.attributes.style={}))}));n(e,a,void 0,!1),r.current=e[0].clientId}(0,b.L)("customize_your_store_assembler_pattern_sidebar_click",{pattern:t.name})}),[n,a,e]),insertedPattern:r}},{Provider:Co}=E.Disabled.Context;let vo;const{useGlobalSetting:Qo}=(0,Zt.U)(Ve.privateApis),Uo=2e3;function Fo({viewportWidth:e,containerWidth:t,settings:o,additionalStyles:r,isScrollable:n=!0,autoScale:a=!0,isPatternPreview:i,CustomIframeComponent:c=Ve.__unstableIframe}){const[l,M]=(0,s.useState)(null),{setLogoBlockIds:u,logoBlockIds:m}=(0,s.useContext)(Je),[y]=Qo("typography.fontFamilies.theme"),N=y.filter((({slug:e})=>"system-font"!==e)),{context:I}=(0,s.useContext)($n);e||(e=t);const[p,D]=(0,s.useState)(null),[j,w,z,k]=(()=>{const[e,t]=(0,co.useState)(Do.HIDDEN),o={getBoundingClientRect:To()},[r,n]=(0,co.useState)(o),a=()=>{t(Do.HIDDEN),jo=null,wo=null};return[e,r,({event:o,clickedBlockClientId:r,hoveredBlockClientId:i})=>{const s=window.document.querySelector('.woocommerce-customize-store-assembler > iframe[name="editor-canvas"]');if(o.target.classList.contains(No))a();else if(jo=null===r?jo:r,wo=null===i?wo:i,jo!==wo)t(Do.HIDDEN),jo=null;else{e===Do.HIDDEN&&t(Do.VISIBLE);const r=s.getBoundingClientRect(),a={getBoundingClientRect:To(o.clientX+r.left,o.clientY+r.top+20)};n(a)}},a,t]})(),{selectBlock:h,setBlockEditingMode:A}=(0,d.useDispatch)(Ve.store),{getBlockParents:f}=(0,d.useSelect)(Ve.store),{setSelectedBlockRef:x}=(0,s.useContext)(ko),L=(0,d.useSelect)((e=>{const t=e("core/block-editor").getSelectedBlock();return t?.clientId}));(0,s.useEffect)((()=>{if(L&&p){const e=p.querySelector(`#block-${L}`);if(!e)return;const t=new MutationObserver((()=>{x(e)}));return t.observe(e,{attributes:!0}),()=>{t.disconnect()}}}),[p,L,x]);const O=(0,s.useMemo)((()=>!n&&o.styles?[...o.styles,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"}]:o.styles),[o.styles,n]),_=t/e,b=l?t/(l*_):0;vo=vo||(0,$t.pure)(Ve.BlockList);const C=(0,s.useContext)(zo.Q),v=(0,g.useQuery)(),{insertPatternByName:Q}=(()=>{const{blockPatterns:e,isLoading:t}=qe(),{insertPattern:o}=So();return{insertPatternByName:r=>{if(t)return;const n=e.find((e=>e.name===r));n&&o(n)},isLoading:t}})();return(({documentElement:e,autoScale:t,isPatternPreview:o,logoBlockIds:r,query:n},{selectBlockOnHover:a,selectBlock:i,getBlockParents:c,setBlockEditingMode:l,updatePopoverPosition:M,setLogoBlockIds:u,setContentHeight:g,hidePopover:m,insertPatternByName:d})=>{(0,s.useEffect)((()=>{const r=[],s=[];if(!e)return;if(o){const o=((e,t,{setContentHeight:o})=>{const r=new window.MutationObserver((()=>{if(t){const t=e.ownerDocument.body.querySelector(".is-root-container");o(t?t.clientHeight:null)}}));return r.observe(e,{attributes:!0,characterData:!1,subtree:!0,childList:!0}),r})(e,t,{setContentHeight:g});r.push(o)}(e=>{const t=e.ownerDocument.documentElement;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%";const o="enable-click-styles";if(!e.ownerDocument.head.querySelector(`#${o}`)){const t=e.ownerDocument.createElement("style");t.setAttribute("type","text/css"),t.setAttribute("id",o),t.innerHTML=`\n\t\t\t.${No}[data-type="core/button"]:hover {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t.${No}:focus::after,\n\t\t\t.${No}.is-selected::after {\n\t\t\t\tcontent: none !important;\n\t\t\t}\n\t\t`,e.ownerDocument.head.appendChild(t)}e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%"})(e);const y=(({documentElement:e},{setLogoBlockIds:t})=>{const o=new window.MutationObserver((()=>{const o=e.querySelectorAll(".wp-block-site-logo"),r=Array.from(o).map((e=>e.getAttribute("data-block"))).filter(Boolean);t(r)}));return o.observe(e,{subtree:!0,childList:!0}),o})({autoScale:t,documentElement:e},{setLogoBlockIds:u});if(r.push(y),ct()&&!o){const t=((e,{hidePopover:t,selectBlock:o})=>{const r=e=>{(e.clientX<0||e.clientY<0)&&o(""),t()};return e&&e.addEventListener("mouseleave",r),()=>{e&&e.removeEventListener("mouseleave",r)}})(e,{hidePopover:m,selectBlock:i}),o=((e,{selectBlock:t,selectBlockOnHover:o,getBlockParents:r,setBlockEditingMode:n,updatePopoverPosition:a})=>{const i=e.ownerDocument.body,s=e=>{const i=o(e,{selectBlockByClientId:t,getBlockParents:r,setBlockEditingMode:n});a({event:e,hoveredBlockClientId:null,clickedBlockClientId:i}),e.target.focus()},c=e=>{const n=o(e,{selectBlockByClientId:t,getBlockParents:r,setBlockEditingMode:()=>{}});n&&a({event:e,hoveredBlockClientId:n,clickedBlockClientId:null})};return i.addEventListener("click",s),i.addEventListener("mousemove",c),()=>{i.removeEventListener("click",s),i.removeEventListener("mousemove",c)}})(e,{selectBlock:i,selectBlockOnHover:a,getBlockParents:c,setBlockEditingMode:l,updatePopoverPosition:M}),u=(e=>{const t=e.ownerDocument.body,o=new window.MutationObserver((()=>{var o;const r=null!==(o=t.getElementsByClassName("block-editor-block-list__layout")[0]?.children)&&void 0!==o?o:[];for(const e of r)e.setAttribute("data-is-parent-block","true");for(const t of e.querySelectorAll("[data-is-parent-block='true'] *"))t.classList.contains(No)||Io(t)}));return o.observe(t,{childList:!0}),o})(e);r.push(u);const g=((e,t)=>{const o=e.ownerDocument.body,r={"/customize-store/assembler-hub/header":"header[data-type='core/template-part']","/customize-store/assembler-hub/footer":"footer[data-type='core/template-part']","/customize-store/assembler-hub/homepage":"[data-is-parent-block='true']:not([data-type='core/template-part']):not(.disable-click)"},n=t.includes("/customize-store/assembler-hub/homepage")?r["/customize-store/assembler-hub/homepage"]:r[t],a=()=>{for(const t of e.querySelectorAll("[data-is-parent-block='true']"))t.classList.contains(No)||Io(t);for(const t of e.querySelectorAll(n))po(t)};a();const i=new window.MutationObserver(a);return i.observe(o,{childList:!0}),i})(e,n?.path);r.push(g),s.push(o),s.push(t)}const N=((e,t)=>{const o=()=>{t("woocommerce-blocks/centered-content-with-image-below")},r=e.querySelector(".no-blocks-insert-pattern-button");return r&&r.addEventListener("click",o),()=>{r&&r.removeEventListener("click",o)}})(e,d);return s.push(N),()=>{r.forEach((e=>e.disconnect())),s.forEach((e=>e()))}}),[e,r,n])})({documentElement:p,autoScale:a,isPatternPreview:i,contentHeight:l,logoBlockIds:m,query:v},{hidePopover:k,selectBlockOnHover:yo,selectBlock:h,getBlockParents:f,setBlockEditingMode:A,updatePopoverPosition:z,setLogoBlockIds:u,setContentHeight:M,insertPatternByName:Q}),(0,s.createElement)(s.Fragment,null,!i&&w&&j===Do.VISIBLE&&!C&&(0,s.createElement)(E.Popover,{anchor:w,as:"div",variant:"unstyled",className:"components-tooltip woocommerce-customize-store_popover-tooltip"},(0,s.createElement)("span",null,(0,T.__)("You can edit your content later in the Editor","woocommerce"))),(0,s.createElement)(Co,{value:!0},(0,s.createElement)("div",{className:(0,ye.Z)("block-editor-block-preview__content",{"woocommerce-customize-store-assembler":!i}),style:a?{transform:`scale(${_})`,aspectRatio:b,maxHeight:null!==l&&l>Uo?Uo*_:void 0}:{}},(0,s.createElement)(c,{"aria-hidden":!0,scrolling:n?"yes":"no",tabIndex:-1,canEnableZoomOutView:!0,readonly:!ct(),style:a?{position:"absolute",width:e,pointerEvents:"none",height:l,maxHeight:Uo}:{},contentRef:e=>{if(!e||null!==p)return;const t=e.ownerDocument.documentElement;D(t)}},(0,s.createElement)(Ve.__unstableEditorStyles,{styles:O}),(0,s.createElement)("style",null,`\n\t\t\t\t\t\t.block-editor-block-list__block::before,\n\t\t\t\t\t\t.has-child-selected > .is-selected::after,\n\t\t\t\t\t\t.is-hovered:not(.is-selected.is-hovered)::after,\n\t\t\t\t\t\t.block-list-appender {\n\t\t\t\t\t\t\tdisplay: none !important;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.block-editor-block-list__block.is-selected {\n\t\t\t\t\t\t\tbox-shadow: none !important;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.block-editor-rich-text__editable {\n\t\t\t\t\t\t\tpointer-events: none !important;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.wp-block-site-title .block-editor-rich-text__editable {\n\t\t\t\t\t\t\tpointer-events: all !important;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.wp-block-navigation-item .wp-block-navigation-item__content,\n\t\t\t\t\t\t.wp-block-navigation .wp-block-pages-list__item__link {\n\t\t\t\t\t\t\tpointer-events: all !important;\n\t\t\t\t\t\t\tcursor: pointer !important;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.components-resizable-box__handle {\n\t\t\t\t\t\t\tdisplay: none !important;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfooter.is-selected::after,\n\t\t\t\t\t\theader.is-selected::after {\n\t\t\t\t\t\t\toutline-color: var(--wp-admin-theme-color) !important;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\theader.is-selected::after {\n\t\t\t\t\t\t    border-top-left-radius: 20px;\n\t\t\t\t\t    }\n\n\t\t\t\t\t\tfooter.is-selected::after {\n\t\t\t\t\t\t    border-bottom-left-radius: 20px;\n\t\t\t\t\t    }\n\n\t\t\t\t\t\t${r}\n\t\t\t\t\t`),(0,s.createElement)(vo,{renderAppender:!1}),(0,s.createElement)(mo,null),S(I.flowType)&&(0,s.createElement)(uo,{fontFamilies:N,onLoad:Eo.noop})))))}const Yo=e=>{const[t,{width:o}]=(0,$t.useResizeObserver)();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,s.createElement)("div",{className:"auto-block-preview__container"},!!o&&(0,s.createElement)(Fo,(0,qt.Z)({},e,{containerWidth:o}))))},Bo={intro:{label:(0,T.__)("Intro","woocommerce"),description:(0,T.__)("Welcome shoppers to your store with one of our introductory patterns.","woocommerce")},"featured-selling":{label:(0,T.__)("Featured selling","woocommerce"),description:(0,T.__)("Put the spotlight on one or more of your products or product categories.","woocommerce")},about:{label:(0,T.__)("About","woocommerce"),description:(0,T.__)("Show your shoppers what’s special about your business.","woocommerce")},services:{label:(0,T.__)("Services","woocommerce"),description:(0,T.__)("Share information on any services that your business can provide.","woocommerce")},reviews:{label:(0,T.__)("Reviews","woocommerce"),description:(0,T.__)("Encourage sales by sharing positive feedback from happy shoppers.","woocommerce")},"social-media":{label:(0,T.__)("Social media","woocommerce"),description:(0,T.__)("Promote your social channels and give shoppers a way to see your latest products and news.","woocommerce")}},Po=(0,s.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG"},(0,s.createElement)(E.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"}));function Go({clientId:e}){const{category:t,patternName:o}=(0,d.useSelect)((t=>{const{getBlockAttributes:o}=t(Ve.store),r=o(e),n=r?.metadata?.categories,a=Object.keys(Bo).find((e=>n?.includes(e))),i=r?.metadata?.patternName;return{category:a,patternName:i}}),[e]),{patterns:r}=$e(t),{replaceBlocks:n}=(0,d.useDispatch)(Ve.store);if(r.length<2)return null;const a=(e=>{for(const t in Bo)if(e.includes(t))return Bo[t].label})([t]);return(0,s.createElement)(E.ToolbarGroup,{className:"woocommerce-customize-your-store-toolbar-shuffle-container"},(0,s.createElement)(E.Button,{icon:Po,label:(0,T.__)("Shuffle","woocommerce"),onClick:()=>{const a=((e,t)=>{const o=e.length,r=e.findIndex((({name:e})=>e===t)),n=Math.floor(Math.random()*o);return n!==r?e[n]:r===n?0===n?e[1]:n===o?e[0]:e[n-1]:e[0]})(r,o);a.blocks[0].attributes={...a.blocks[0].attributes,metadata:{...a.blocks[0].attributes.metadata,categories:[t],patternName:a.name}},n(e,a.blocks),(0,b.L)("customize_your_store_assembler_pattern_shuffle_click",{category:t,pattern:a.name})}},a&&(0,s.createElement)("span",null,(0,Eo.capitalize)(a))))}var Ro=o(19944);function Zo({clientId:e,currentBlockName:t,nextBlockClientId:o}){const{removeBlock:r,selectBlock:n}=(0,d.useDispatch)(Ve.store);return(0,s.createElement)(E.ToolbarGroup,null,(0,s.createElement)(E.ToolbarButton,{showTooltip:!0,label:(0,T.__)("Delete","woocommerce"),icon:Ro.Z,onClick:()=>{r(e),o&&n(o),(0,b.L)("customize_your_store_assembler_pattern_delete_click",{pattern:t})}}))}let Wo;const Ho=e=>void 0!==e.find((e=>e.clientId===Wo)),Vo=()=>{var e;const[t,o]=(0,s.useState)(!1),{currentBlock:r,nextBlock:n,previousBlock:a,allBlocks:i}=(0,d.useSelect)((e=>{const t=e(Ve.store).getSelectedBlockClientId(),o=e(Ve.store).getNextBlockClientId(),r=e(Ve.store).getPreviousBlockClientId(),[n]=e(Ve.store).getBlocksByClientId([t]),[a]=e(Ve.store).getBlocksByClientId([o]),[i]=e(Ve.store).getBlocksByClientId([r]);return{currentBlock:n,nextBlock:a,previousBlock:i,allBlocks:e(Ve.store).getBlocks()}}),[]),c=(0,g.useQuery)();(0,s.useEffect)((()=>{const e=c.path;e&&o((e=>e.includes("/customize-store/assembler-hub/homepage"))(e))}),[c]);const l=null!==(e=r?.clientId)&&void 0!==e?e:null,{isBlockMoverUpButtonDisabled:M,isBlockMoverDownButtonDisabled:u}=(0,s.useMemo)((()=>{const e="core/template-part"===a?.name,t="core/template-part"===n?.name;return{isBlockMoverUpButtonDisabled:e||i[1]?.clientId===l,isBlockMoverDownButtonDisabled:t||i[i.length-2]?.clientId===l}}),[i,n?.name,a?.name,l]),m=Ho(i),y=(0,s.useMemo)((()=>{const e=i.find((({clientId:e})=>e===l));return"core/template-part"===e?.name}),[i,l]),{selectedBlockRef:N}=(0,s.useContext)(ko),I=(0,s.useRef)(null),p=(0,s.useMemo)((()=>{if(N&&l)return{getBoundingClientRect(){const{top:e,width:t,height:o}=N.getBoundingClientRect(),r=window.document.querySelector('.woocommerce-customize-store-assembler > iframe[name="editor-canvas"]')?.getBoundingClientRect();return r?new window.DOMRect(r?.left+10,Math.max(e+70+r.top,100),t,o):new window.DOMRect(0,0,0,0)}}}),[N,l]);return t&&l&&!m&&!y&&p?(0,s.createElement)(E.Popover,{as:"div",animate:!1,className:"components-tooltip woocommerce-customize-store_block-toolbar-popover",variant:"unstyled",resize:!1,flip:!1,shift:!0,anchor:p,placement:"top-start",ref:I},(0,s.createElement)("div",{className:"woocommerce-customize-store-block-toolbar"},(0,s.createElement)(E.Toolbar,{label:"Options"},(0,s.createElement)(s.Fragment,null,(0,s.createElement)(E.ToolbarGroup,null,(0,s.createElement)(Ve.BlockMover,{clientIds:[l],isBlockMoverUpButtonDisabled:M,isBlockMoverDownButtonDisabled:u})),(0,s.createElement)(Go,{clientId:l}),(0,s.createElement)(Zo,{clientId:l,currentBlockName:r?.name,nextBlockClientId:n?.clientId}))))):null},Jo=(0,s.memo)((({blocks:e,settings:t,useSubRegistry:o=!0,onChange:r,isPatternPreview:n,...a})=>{const i=Array.isArray(e)?e:[e],c=(0,s.useContext)(zo.Q);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ve.BlockEditorProvider,{value:i,settings:t,onChange:r,useSubRegistry:o},(0,s.createElement)(ho,null,ct()&&!n&&!c&&(0,s.createElement)(Vo,null),(0,s.createElement)(Yo,(0,qt.Z)({isPatternPreview:n,settings:t},a)))))}));function Xo({contentRef:e,children:t,tabIndex:o=0,scale:r=1,frameSize:n=0,expand:a=!1,readonly:i,forwardedRef:c,loadStyles:l=!0,loadScripts:M=!1,...u}){const[g,m]=(0,s.useState)(),[y,N]=(0,s.useState)([]),{resolvedAssets:I}=(0,d.useSelect)((e=>({resolvedAssets:e(Ve.store).getSettings().__unstableResolvedAssets})),[]),{styles:p="",scripts:D=""}=I,[j,{height:w}]=(0,$t.useResizeObserver)(),z=(0,$t.useRefEffect)((e=>{function t(){const{contentDocument:t,ownerDocument:o}=e,{documentElement:r}=t;r.classList.add("block-editor-iframe__html"),N(Array.from(o?.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e)))}return e._load=()=>{m(e.contentDocument)},e.addEventListener("load",t),()=>{delete e._load,e.removeEventListener("load",t)}}),[]),k=(0,$t.useDisabled)({isDisabled:!i}),h=(0,$t.useMergeRefs)([e,k]),A=`<!doctype html>\n<html>\n\t<head>\n\t\t<script>window.frameElement._load()<\/script>\n\t\t<style>html{height:auto!important;min-height:100%;}body{margin:0}</style>\n\t\t${l?p:""}\n\t\t${M?D:""}\n\t</head>\n\t<body>\n\t\t<script>document.currentScript.parentElement.remove()<\/script>\n\t</body>\n</html>`,[f,x]=(0,s.useMemo)((()=>{const e=URL.createObjectURL(new window.Blob([A],{type:"text/html"}));return[e,()=>URL.revokeObjectURL(e)]}),[A]);(0,s.useEffect)((()=>x),[x]);const L=w*(1-r)/2;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("iframe",(0,qt.Z)({},u,{style:{...u.style,height:a?w:u.style?.height,marginTop:1!==r?-L+n:u.style?.marginTop,marginBottom:1!==r?-L+n:u.style?.marginBottom,transform:1!==r?`scale( ${r} )`:u.style?.transform,transition:"all .3s"},ref:(0,$t.useMergeRefs)([c,z]),tabIndex:o,src:f,title:(0,T.__)("Editor canvas","woocommerce"),name:"editor-canvas"}),g&&(0,s.createPortal)((0,s.createElement)("body",{ref:h,className:(0,ye.Z)("block-editor-iframe__body","editor-styles-wrapper",...y)},j,(0,s.createElement)(E.__experimentalStyleProvider,{document:g},t)),g.documentElement)))}const Ko=(0,s.forwardRef)((function(e,t){return(0,d.useSelect)((e=>e(Ve.store).getSettings().__internalIsInitialized),[])?(0,s.createElement)(Xo,(0,qt.Z)({},e,{forwardedRef:t})):null})),qo=(0,co.memo)((({renderedBlocks:e,settings:t,additionalStyles:o,isScrollable:r,onChange:n})=>(0,s.createElement)("div",{className:"woocommerce-customize-store__block-editor"},(0,s.createElement)("div",{className:"woocommerce-block-preview-container"},(0,s.createElement)(Jo,{blocks:e,onChange:n,settings:t,additionalStyles:o,isScrollable:r,useSubRegistry:!1,autoScale:!1,setLogoBlockContext:!0,CustomIframeComponent:Ko,isPatternPreview:!1}))))),$o=(0,s.createContext)({highlightedBlockClientId:null,setHighlightedBlockClientId:e=>{},resetHighlightedBlockClientId:()=>{}}),er=({children:e})=>{const[t,o]=(0,s.useState)(null);return(0,s.createElement)($o.Provider,{value:{highlightedBlockClientId:t,setHighlightedBlockClientId:o,resetHighlightedBlockClientId:()=>{o(null)}}},e)},tr=()=>{const e=(0,so.Z)(),t=(0,d.useSelect)((e=>e(c.store).getDefaultTemplateId({slug:"home"})),[]),{templateType:o}=(0,d.useSelect)((e=>{const{getEditedPostType:t}=(0,Zt.U)(e(Jt.h));return{templateType:t()}}),[]),[r,,n]=Ao(o,t||""),a=(0,g.useQuery)(),{currentState:i}=(0,s.useContext)($n),l=((e,t="topDown",o=.2)=>{const[r,n]=(0,s.useState)(.05),a=(0,to.T)();return(0,s.useEffect)((()=>{let r=document.querySelector(e);const a="IFRAME"===r?.tagName;a&&(r=r.contentDocument);const i=()=>{if(!r)return;const e=a?r.documentElement:r,i=e.clientWidth>480?o:.05,s=e.scrollHeight-e.clientHeight,c=e.scrollTop,l=s*i;let M;M="bottomUp"===t?s/l-c/l:c/l,M=.1+.9*M,M=Math.max(.1,Math.min(M,1)),n(M)};return r&&r.addEventListener("scroll",i),()=>{r&&r.removeEventListener("scroll",i)}}),[e,t,o,a]),r})(".woocommerce-customize-store__block-editor iframe","/customize-store/assembler-hub/footer"===a.path?"bottomUp":"topDown"),{highlightedBlockClientId:M}=(0,s.useContext)($o),u=null!==M,m=u?`\n\t\t.wp-block.preview-opacity {\n\t\t\topacity: ${l};\n\t\t}\n\t`:"",y=r.map((e=>e.clientId)),{updateBlockAttributes:N}=(0,d.useDispatch)(Ve.store),I=bo();(0,s.useEffect)((()=>{Lo(r,I?e=>{const t=e.map((({clientId:e})=>e));N(t,{style:Oo,className:""})}:e=>{const t=e.map((({clientId:e})=>e));N(t,{style:{}})})}),[I,N]);const{insertBlock:p,removeBlock:D}=(0,d.useDispatch)(Ve.store);(({blocks:e,createBlock:t,insertBlock:o,removeBlock:r})=>{(0,s.useEffect)((()=>{if(2===e.length&&e.every((e=>"core/template-part"===e.name))){const e=t("core/group",{__noBlocksPlaceholder:!0,className:No,style:{dimensions:{minHeight:"60vh"},color:{background:"#FAFAFA"},spacing:{padding:{top:"40px",bottom:"40px"}}},layout:{type:"flex",orientation:"vertical",justifyContent:"center",verticalAlignment:"center"}},[t("core/image",{url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAABHCAYAAADWdGMkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAoZSURBVHgB7V3dUtvWFl5bMgknoY05gcx0TmcqB9LbuDdnJtPpxDxByRPEPAHwBMATQJ4AeILAE+BOp8NMb3BvG1yrV50BU5yENAbbUr+lLRlZyL9IxpL9zWiEtn7Y7E9r7bW+vbURx8fHWdMUGoWMRELZSqVSZW95oVBcMQwjSUME1LU8NfWlU6fy7OzjLYoIEkTqayHMDIWPHWw3CDVNc1kIodEQAS+4LgRp9qGOLTKEKhQgpqebDe2LL6ZojMEiUEI/frxokPro0Zf06dM/FAMMVXfQCYESWqvVLFK//vp/1h59I8UAo0so4+HDB3R6empZaFzw11/nGkUEgRLKJLJlXl5eNbnfqGNiop6miCDwPtRxs+x+37//QHHAINK6oJAQwjgkEh8pA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Vy0rq/XC6D3MmbFyS7rDu1nvDV7tmNfOX4uLgIMjZbWZB0e2IVQciO6x4mcK2d1cn7ug56Itc/DhuapqBwCsFJOaLdH6WVSmuB29tv5fYY794V1nmZFeob5h5c9ZtBE8lffvFCExQT8PzhwOYU8cvg74bbQUDwp9W7EtZPTko7eHl7qO9wI9A5RRx9TkyoRz3dRGYW6ctb/lcjo6y/BolA5uU6ak+feWWGP3bF/eiTCy2j5DG6ww1COb2Avsv/S4WluKQd1ORbDU11Unu4D3b64864GSWP887e0DTAjWG0TffIiw/QyGLJFuyT7C7JZ2jLEQJgbXtsbd2Ot7b6nd0KF70ijn2oK20pvOVFdTvdJC3O2BBC2famI52EgG7SnPYwA3XJsSWUgxIeHHZOOBYGcvLcv9k6rtbqQTzigWt326U2bnCaww3ZL7H2ypS3dsmxJZRH+Z3G9Ztm0sZl9i0E9Jfm+CLXr0uOJaF2hFq8LhZLbjXIgQyW3PKguQoRf4tuiQCJpV5dcizzUK8ADN0173cxROemcvmF1u3BVvXtt0+zPNUFv3uXbgUrSj5gjwO3vkIjCAVENRHDy2y3uNZTrgaq7gRJLLzHfhDeI4pgpUh3FyAH9XVBaOTXnmOdQoCXWM8EtU7IyQlucyNpnQw7yi02zRuFqLA+N5facI5ZPIAKtHV9nnQMa6VoQLDFjkV7/pOGIs0+pfMmF4ZScr0GZ7GNcu0pIU06rD2QrWPTbg5/+QdOUUNsxXm4uTyssmnaCZPIkp2XTF7EMA5kxhWN0Ra4WLhU8apVn2WLDZyqrNMYQwvf8VA5M97IKIryDWS+96wYYWhsLzXEHwT1g1KplEUTvKSYAMrZ6r9R1BmXsZP9hwAAAABJRU5ErkJggg==",align:"center",className:No}),t("core/group",{layout:{type:"constrained",contentSize:"350px"},className:No},[t("core/paragraph",{className:No,align:"center",fontFamily:"inter",style:{color:{text:"#2F2F2F"}},content:(0,T.__)("Add one or more of our homepage patterns to create a page that welcomes shoppers.","woocommerce")}),t("core/button",{align:"center",fontFamily:"inter",className:`is-style-outline ${No} no-blocks-insert-pattern-button`,style:{border:{radius:"2px",color:"#007cba",width:"1px"},color:{text:"#007cba"}},text:(0,T.__)("Add patterns","woocommerce")})])]);o(e,1),Wo=e.clientId}e.length>3&&Wo&&r(Wo)}),[e,t,o,r])})({blocks:r,createBlock:We.createBlock,insertBlock:p,removeBlock:D}),(0,s.useEffect)((()=>{const{blockIdToHighlight:e,restOfBlockIds:t}=y.reduce(((e,t)=>u&&t!==M?{blockIdToHighlight:e.blockIdToHighlight,restOfBlockIds:[...e.restOfBlockIds,t]}:{blockIdToHighlight:t,restOfBlockIds:e.restOfBlockIds}),{blockIdToHighlight:null,restOfBlockIds:[]});N(e,{className:""}),N(t,{className:" preview-opacity"})}),[y,M,u,N]);const j=(0,s.useMemo)((()=>!("object"==typeof i&&"transitional"===i.transitionalScreen)),[i]);return(0,s.createElement)(qo,{renderedBlocks:r,isScrollable:j,onChange:n,settings:e,additionalStyles:m})},or=({isLoading:e})=>{const{context:t,hasPageContentFocus:o}=(0,d.useSelect)((e=>{const{getEditedPostContext:t,hasPageContentFocus:o}=(0,Zt.U)(e(Jt.h));return{context:t(),hasPageContentFocus:o}}),[]),{setEditedPostContext:r}=(0,d.useDispatch)(Jt.h),n=(0,s.useMemo)((()=>{const{postType:e,postId:n,...a}=null!=t?t:{};return{...o?t:a,queryContext:[t?.queryContext||{page:1},e=>r({...t,queryContext:{...t?.queryContext,...e}})]}}),[o,t,r]);return(0,s.useEffect)((()=>{e||((0,_.eP)(),(0,b.L)("customize_your_store_assembler_hub_editor_loaded"))}),[e]),(0,s.createElement)(s.Fragment,null,e?(0,s.createElement)(ao.Z,null):null,(0,s.createElement)(Ve.BlockContextProvider,{value:n},(0,s.createElement)(ro.v4,{enableRegionNavigation:!1,className:(0,ye.Z)("woocommerce-customize-store__edit-site-editor","edit-site-editor__interface-skeleton",{"show-icon-labels":!1,"is-loading":e}),content:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(io.w,null),(0,s.createElement)(tr,null))})))};var rr=o(83619),nr=o(17832);const ar=({setOpenWarningModal:e,onExitClicked:t,classname:o="woocommerce-customize-store__design-change-warning-modal"})=>(0,s.createElement)(E.Modal,{className:o,title:(0,T.__)("Are you sure you want to exit?","woocommerce"),onRequestClose:()=>e(!1),shouldCloseOnClickOutside:!1},(0,s.createElement)("p",null,(0,T.__)("You'll lose any changes you've made to your store's design and will start the process again.","woocommerce")),(0,s.createElement)("div",{className:"woocommerce-customize-store__design-change-warning-modal-footer"},(0,s.createElement)(E.Button,{onClick:t,variant:"link"},(0,T.__)("Exit and lose changes","woocommerce")),(0,s.createElement)(E.Button,{onClick:()=>e(!1),variant:"primary"},(0,T.__)("Continue designing","woocommerce")))),{useLocation:ir}=(0,Zt.U)(Rt.privateApis),sr=({isRoot:e,title:t,actions:o,meta:r,content:n,footer:a,description:i,backPath:c,onNavigateBackClick:l})=>{const{context:M}=(0,s.useContext)($n),[u,g]=(0,s.useState)(!1),m=ir(),d=(0,E.__experimentalUseNavigator)(),y=(0,T.isRTL)()?rr.Z:j.Z,N=M?.flowType;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(E.__experimentalVStack,{className:(0,ye.Z)("edit-site-sidebar-navigation-screen__main",{"has-footer":!!a}),spacing:0,justify:"flex-start"},(0,s.createElement)(E.__experimentalHStack,{spacing:4,alignment:"flex-start",className:"edit-site-sidebar-navigation-screen__title-icon"},!e&&(0,s.createElement)(nr.Z,{onClick:()=>{l?.();const e=null!=c?c:m.state?.backPath;e?d.goTo(e,{isBack:!0}):d.goToParent()},icon:y,label:(0,T.__)("Back","woocommerce"),showTooltip:!1}),e&&!(0,me.id)()&&(0,s.createElement)(nr.Z,{onClick:()=>{g(!0)},icon:y,label:(0,T.__)("Back","woocommerce"),showTooltip:!1}),(0,s.createElement)(E.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen__title",style:(0,me.id)()?{padding:"0 16px"}:{},color:"#e0e0e0",level:1,size:20},t),o&&(0,s.createElement)("div",{className:"edit-site-sidebar-navigation-screen__actions"},o)),r&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"edit-site-sidebar-navigation-screen__meta"},r)),(0,s.createElement)("div",{className:"edit-site-sidebar-navigation-screen__content"},i&&(0,s.createElement)("p",{className:"edit-site-sidebar-navigation-screen__description"},i),n)),a&&(0,s.createElement)("footer",{className:"edit-site-sidebar-navigation-screen__footer"},a),u&&(0,s.createElement)(ar,{setOpenWarningModal:g,onExitClicked:()=>{window.parent.__wcCustomizeStore.sendEventToIntroMachine(N&&S(N)?{type:"GO_BACK_TO_DESIGN_WITH_AI"}:{type:"GO_BACK_TO_DESIGN_WITHOUT_AI"})}}))};var cr=o(39630);const{GlobalStylesContext:lr}=(0,Zt.U)(Ve.privateApis),Mr=({variation:e,children:t})=>{const{base:o,user:r,setUserConfig:n}=(0,s.useContext)(lr),a=(0,s.useMemo)((()=>{var t,r;return{user:{settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(r=e.styles)&&void 0!==r?r:{}},base:o,merged:(0,Fe.X)(o,e),setUserConfig:()=>{}}}),[e,o]),i=()=>{if(e.settings.color&&r.settings.color&&r.settings.color.palette.hasCreatedOwnColors){delete r.settings.color.palette.hasCreatedOwnColors,delete r.styles.color;for(const e in r.styles.elements)r.styles.elements[e].color&&delete r.styles.elements[e].color}const t=((e,t)=>{if(e.settings.typography){delete t.typography;for(const e in t.elements)t.elements[e].typography&&delete t.elements[e].typography}return t})(e,r.styles),o=((e,t)=>("New - Neutral"===e.title&&delete t.blocks["core/button"],t))(e,t);n((()=>({settings:(0,Fe.X)(r.settings,e.settings),styles:(0,Fe.X)(o,e.styles)}))),e.settings.color?.palette&&(0,b.L)("customize_your_store_assembler_hub_color_palette_item_click",{item:e.title}),e.settings.typography&&(0,b.L)("customize_your_store_assembler_hub_typography_item_click",{item:e.title})},c=(0,s.useMemo)((()=>{if(e.settings.color)return(0,Eo.isEqual)(e.settings.color,r.settings.color);const{theme:t}=r.settings.typography.fontFamilies;return e.settings.typography?.fontFamilies.theme.every((({slug:e})=>t.some((({slug:t})=>t===e))))&&t.length===e.settings.typography?.fontFamilies.theme.length}),[r,e]);let l=e?.title;return e?.description&&(l=(0,T.sprintf)((0,T.__)("%1$s (%2$s)","woocommerce"),e?.title,e?.description)),(0,s.createElement)(Ve.BlockEditorProvider,{onChange:Eo.noop,onInput:Eo.noop,settings:{},useSubRegistry:!0},(0,s.createElement)(lr.Provider,{value:a},(0,s.createElement)("div",{className:(0,ye.Z)("woocommerce-customize-store_global-styles-variations_item",{"is-active":c}),role:"button",onClick:i,onKeyDown:e=>{e.keyCode===cr.ENTER&&(e.preventDefault(),i())},tabIndex:"0","aria-label":l,"aria-current":c},(0,s.createElement)("div",{className:"woocommerce-customize-store_global-styles-variations_item-preview"},t))))},{useGlobalStylesOutput:ur}=(0,Zt.U)(Ve.privateApis),gr=({width:e,height:t,inlineCss:o,containerResizeListener:r,children:n,onFocusOut:a,iframeInstance:i,...c})=>{const[l]=ur(),M=(0,co.useMemo)((()=>l?[...l,...o?[{css:o,isGlobalStyles:!0}]:[],{css:"html{overflow:hidden}body{min-width: 0;padding: 0;border: none;transform:scale(1);}",isGlobalStyles:!0}]:l),[o,l]);return(0,s.createElement)(Ko,(0,qt.Z)({ref:i,className:"global-styles-variation-container__iframe",style:{height:t,visibility:e?"visible":"hidden"},tabIndex:-1,loadStyles:!1,contentRef:(0,$t.useRefEffect)((e=>{const t=e=>{e.stopImmediatePropagation(),a?.()};return e.addEventListener("focusout",t),()=>{e.removeEventListener("focusout",t)}}),[]),scrolling:"no"},c),(0,s.createElement)(Ve.__unstableEditorStyles,{styles:null!=M?M:[]}),r,n)},{useGlobalSetting:mr,useGlobalStyle:dr}=(0,Zt.U)(Ve.privateApis),yr=({title:e})=>{const[t]=dr("typography.fontWeight"),[o="serif"]=dr("typography.fontFamily"),[r=o]=dr("elements.h1.typography.fontFamily"),[n=t]=dr("elements.h1.typography.fontWeight"),[a="black"]=dr("color.text"),[i=a]=dr("elements.h1.color.text"),[c="white"]=dr("color.background"),[l]=dr("color.gradient"),[M]=mr("color.palette.theme"),[u,{width:g}]=(0,$t.useResizeObserver)(),m=[...new Set(M.map((({color:e})=>e)))],d=m.filter((e=>e!==c)).slice(0,2);return(0,s.createElement)(gr,{width:g,height:44,containerResizeListener:u},(0,s.createElement)("div",{style:{height:g?44:0,width:"100%",background:null!=l?l:c,cursor:"pointer"}},(0,s.createElement)("div",{style:{height:"100%",overflow:"hidden"}},e?(0,s.createElement)(E.__experimentalHStack,{spacing:1.8875,justify:"center",style:{height:"100%",overflow:"hidden"}},d.map(((e,t)=>(0,s.createElement)("div",{key:t,style:{height:16,width:16,background:e,borderRadius:8}})))):(0,s.createElement)(E.__experimentalVStack,{spacing:3,justify:"center",style:{height:"100%",overflow:"hidden",padding:10,boxSizing:"border-box"}},(0,s.createElement)("div",{style:{fontSize:40,fontFamily:r,color:i,fontWeight:n,lineHeight:"1em",textAlign:"center"}},(0,T.__)("Default","woocommerce"))))))},Nr=()=>{const{aiSuggestions:e,isLoading:t}=(0,d.useSelect)((e=>{const{getOption:t,hasFinishedResolution:o}=e(m.OPTIONS_STORE_NAME);return{aiSuggestions:t("woocommerce_customize_store_ai_suggestions"),isLoading:!o("getOption",["woocommerce_customize_store_ai_suggestions"])}})),[o,r]=(0,s.useState)([]);return(0,s.useEffect)((()=>{t||r(e?.defaultColorPalette?.bestColors?.length>0&&e?.defaultColorPalette?.default?Re.filter((t=>e.defaultColorPalette?.bestColors.includes(t.title)||e.defaultColorPalette.default===t.title)):Ze)}),[t,e?.defaultColorPalette]),t?(0,s.createElement)("div",{className:"woocommerce-customize-store_color-palette-spinner-container"},(0,s.createElement)(E.Spinner,null)):(0,s.createElement)(E.__experimentalGrid,{columns:3,className:"woocommerce-customize-store_color-palette-container"},o?.map(((e,t)=>(0,s.createElement)(Mr,{key:t,variation:e},(0,s.createElement)(yr,{title:e?.title})))))},{useGlobalStyle:Ir,useGlobalSetting:pr,useSettingsForBlockElement:Dr,ColorPanel:Tr,GlobalStylesContext:jr}=(0,Zt.U)(Ve.privateApis),wr=()=>{const{setUserConfig:e}=(0,s.useContext)(jr),[t]=Ir("",void 0,"user",{shouldDecodeEncode:!1}),[o,r]=Ir("",void 0,"all",{shouldDecodeEncode:!1}),[n]=pr(""),a=Dr(n);return(0,s.createElement)(Tr,{inheritedValue:o,value:t,onChange:(0,Eo.debounce)((t=>{r({...t,blocks:{...t.blocks,"core/button":{color:{}},"core/heading":{color:{}}}}),e((e=>({...e,settings:(0,Fe.X)(e.settings,{color:{palette:{hasCreatedOwnColors:!0}}})})))}),100),settings:a})},{useGlobalStyle:Er,useGlobalSetting:zr}=(0,Zt.U)(Ve.privateApis),kr={fontSize:"13vw",lineHeight:"20px",color:"#000000"},hr=e=>e.split(",").map((e=>(e=e.trim()).startsWith('"')?`'${e}'`:e)).join(", "),Ar=()=>{const[e]=zr("typography.fontFamilies.theme"),[t="serif"]=Er("typography.fontFamily"),[o="normal"]=Er("typography.fontStyle"),[r="-0.15px"]=Er("typography.letterSpacing"),[n=400]=Er("typography.fontWeight"),[a=t]=Er("elements.heading.typography.fontFamily"),[i=o]=Er("elements.heading.typography.fontStyle"),[c=n]=Er("elements.heading.typography.fontWeight"),[l=r]=Er("elements.heading.typography.letterSpacing"),[M,{width:u}]=(0,$t.useResizeObserver)(),g=(0,$t.useViewportMatch)("large"),m=g?106:74,d=u?u/(g?136:120):1,y=Math.ceil(m*d),N=e.filter((({slug:e})=>"system-font"!==e)),{context:I}=(0,s.useContext)($n),[p,D]=(0,s.useState)(S(I.flowType)&&!N.length||C(I.flowType)),T=t=>{const o=e.find((({fontFamily:e})=>e===t));return o?.name||o?.fontFamily||t},j=(0,s.useMemo)((()=>T(t)),[t,e]),w=(0,s.useMemo)((()=>T(a)),[a,e]),z=()=>D(!0),k=(0,s.useRef)(null);return(0,s.createElement)(gr,{width:u,height:y,containerResizeListener:M,iframeInstance:k},(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{style:{height:u?y:0,width:"100%",background:"white",cursor:"pointer"}},(0,s.createElement)("div",{style:{height:"100%",overflow:"hidden",opacity:p?1:0}},(0,s.createElement)(E.__experimentalHStack,{spacing:10*d,justify:"flex-start",style:{height:"100%",overflow:"hidden"}},(0,s.createElement)(E.__experimentalVStack,{spacing:1,style:{margin:"10px",width:"100%",textAlign:g?"center":"left"}},(0,s.createElement)("div",{"aria-label":w,style:{...kr,letterSpacing:l,fontWeight:c,fontFamily:hr(a),fontStyle:i}},w),(0,s.createElement)("div",{"aria-label":j,style:{...kr,fontSize:"13px",letterSpacing:r,fontWeight:n,fontFamily:hr(t),fontStyle:o}},j))))),S(I.flowType)&&(0,s.createElement)(uo,{fontFamilies:e,onLoad:z}),C(I.flowType)&&(0,s.createElement)(Mo,{fontFamilies:e,onLoad:z,iframeInstance:k.current})))};let fr=function(e){return e.IDLE="IDLE",e.LOADING="LOADING",e.DONE="DONE",e}({});const xr=(0,s.createContext)({optInFlowStatus:fr.IDLE,setOptInFlowStatus:()=>{}}),Lr=({children:e})=>{const t=(0,d.useSelect)((e=>"yes"===e(m.OPTIONS_STORE_NAME).getOption("woocommerce_allow_tracking")),[]),[o,r]=(0,s.useState)(t?fr.DONE:fr.IDLE);return(0,s.createElement)(xr.Provider,{value:{optInFlowStatus:o,setOptInFlowStatus:r}},e)},Or=()=>{const{aiSuggestions:e,isLoading:t}=(0,d.useSelect)((e=>{const{getOption:t,hasFinishedResolution:o}=e(m.OPTIONS_STORE_NAME);return{aiSuggestions:t("woocommerce_customize_store_ai_suggestions"),isLoading:!o("getOption",["woocommerce_customize_store_ai_suggestions"])}})),{useGlobalSetting:o}=(0,Zt.U)(Ve.privateApis),[r]=o("typography.fontFamilies.custom"),[n]=o("typography.fontFamilies",void 0,"base"),{context:a}=(0,s.useContext)($n),i=a.flowType===z.AIOnline,c=a.isFontLibraryAvailable,l=(0,d.useSelect)((e=>"yes"===e(m.OPTIONS_STORE_NAME).getOption("woocommerce_allow_tracking"))),{optInFlowStatus:M}=(0,s.useContext)(xr),u=(0,s.useMemo)((()=>{if(S(a.flowType))return i&&e?.lookAndFeel?Ge.filter((t=>t.lookAndFeel.includes(e?.lookAndFeel))):Be;const t=Pe.map((e=>{const t=e.settings.typography.fontFamilies,o=n.theme.filter((e=>t.theme.some((t=>t.fontFamily===e.name))));return{...e,settings:{typography:{fontFamilies:{theme:o}}}}}));if(!l||!c||M!==fr.DONE)return t;const o=Be.map((e=>{const t=e.settings.typography.fontFamilies,o=r.filter((e=>t.theme.some((t=>t.slug===e.slug))));return{...e,settings:{typography:{fontFamilies:{theme:o}}}}}));return[...t,...o]}),[i,e?.lookAndFeel,n.theme,a.flowType,r,c,M,l]);return t||M===fr.LOADING?(0,s.createElement)("div",{className:"woocommerce-customize-store_font-pairing-spinner-container"},(0,s.createElement)(E.Spinner,null)):(0,s.createElement)(E.__experimentalGrid,{columns:2,gap:3,className:"woocommerce-customize-store_font-pairing-container",style:{opacity:0,animation:"containerFadeIn 300ms ease-in-out forwards"}},u.map(((e,t)=>(0,s.createElement)(Mr,{key:t,variation:e},(0,s.createElement)(Ar,null)))))},{GlobalStylesContext:_r}=(0,Zt.U)(Ve.privateApis),br=()=>{const{user:e}=(0,s.useContext)(_r),t=!(!e.settings.color||!e.settings.color.palette.hasCreatedOwnColors);return(0,s.createElement)("div",{className:"woocommerce-customize-store_sidebar-color-content",style:{opacity:0,animation:"containerFadeIn 300ms ease-in-out forwards"}},(0,s.createElement)(Nr,null),(0,s.createElement)(E.PanelBody,{className:"woocommerce-customize-store__color-panel-container",title:(0,T.__)("or create your own","woocommerce"),initialOpen:t,onToggle:function(e){(0,b.L)("customize_your_store_assembler_hub_color_palette_create_toggle",{open:e})}},(0,s.createElement)(wr,null)))},Sr=({onNavigateBackClick:e})=>{const{context:{flowType:t}}=(0,s.useContext)($n),o=t===z.AIOnline,r=o?(0,T.__)("Change the color palette","woocommerce"):(0,T.__)("Choose your color palette","woocommerce"),n=o?(0,T.__)("Based on the info you shared, our AI tool recommends using this color palette. Want to change it? You can select or add new colors below, or update them later in Editor.","woocommerce"):(0,T.__)("Choose the color palette that best suits your brand. Want to change it? Create your custom color palette below, or update it later in Editor.","woocommerce");return(0,s.createElement)(sr,{title:r,onNavigateBackClick:e,description:n,content:(0,s.createElement)(br,null)})},Cr=({editorSelector:e,scrollDirection:t="bottom"})=>{const o=(0,to.T)(),r=(0,s.useCallback)((()=>{const o=document.querySelector(e);o&&o.contentWindow?.scrollTo({left:0,top:"bottom"===t&&o.contentDocument?.body.scrollHeight||0})}),[t,e]);return(0,s.useEffect)((()=>{o||r()}),[o,r]),{scroll:r}},vr=(e=".edit-site-sidebar-navigation-screen__content .block-editor-block-patterns-list__item")=>{const[t,o]=(0,s.useState)();return(0,s.useEffect)((()=>{document.querySelectorAll(e).forEach((e=>{e.getAttribute("aria-label")===t?.title?e.classList.add("is-selected"):e.classList.remove("is-selected")}))}),[t,e]),{selectedPattern:t,setSelectedPattern:o}},Qr=(e,t)=>{const o=t.attributes;return o.className&&o.className.includes("preview-opacity")&&(o.className=o.className.replaceAll(" preview-opacity","")),e.find((e=>e.blocks[0].attributes.className===t.attributes.className))},Ur=["woocommerce-blocks/footer-with-3-menus","woocommerce-blocks/footer-simple-menu","woocommerce-blocks/footer-large"],Fr=({onNavigateBackClick:e})=>{const{scroll:t}=Cr({editorSelector:".woocommerce-customize-store__block-editor iframe",scrollDirection:"bottom"}),{isLoading:o,patterns:r}=$e("woo-commerce"),n=(0,d.useSelect)((e=>e(c.store).getDefaultTemplateId({slug:"home"})),[]),[a]=Ao("wp_template",n||""),[i,,l]=Ao("wp_template_part",ot),M=a.find((e=>"footer"===e.attributes.slug)),{setHighlightedBlockClientId:u,resetHighlightedBlockClientId:g}=(0,s.useContext)($o),{selectedPattern:m,setSelectedPattern:y}=vr();(0,s.useEffect)((()=>{var e;u(null!==(e=M?.clientId)&&void 0!==e?e:null)}),[M?.clientId,u]);const N=(0,s.useMemo)((()=>r.filter((e=>Ur.includes(e.name))).sort(((e,t)=>Ur.indexOf(e.name)-Ur.indexOf(t.name)))),[r]);(0,s.useEffect)((()=>{if(m||!i.length||!N.length)return;const e=Qr(N,i[i.length-1]);y(e)}),[i,N]);const I=(0,s.useCallback)(((e,o)=>{y(e),l([...i.slice(0,-1),o[0]],{selection:{}}),t()}),[i,l,y,t]),{context:p}=(0,s.useContext)($n),D=p.flowType===z.AIOnline,j=D?(0,T.__)("Change your footer","woocommerce"):(0,T.__)("Choose your footer","woocommerce"),w=D?(0,T.__)("Select a new footer from the options below. Your footer includes your site's secondary navigation and will be added to every page. You can continue customizing this via the Editor.","woocommerce"):(0,T.__)("Select a footer from the options below. Your footer includes your site's secondary navigation and will be added to every page. You can continue customizing this via the Editor later.","woocommerce");return(0,s.createElement)(sr,{title:j,onNavigateBackClick:()=>{g(),e()},description:w,content:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"woocommerce-customize-store__sidebar-footer-content"},o&&(0,s.createElement)("span",{className:"components-placeholder__preview"},(0,s.createElement)(E.Spinner,null)),!o&&(0,s.createElement)(Ve.__experimentalBlockPatternsList,{shownPatterns:N,blockPatterns:N,onClickPattern:I,label:"Footers",orientation:"vertical",isDraggable:!1,onHover:()=>{},showTitlesAsTooltip:!0})))})},Yr=["woocommerce-blocks/header-centered-menu","woocommerce-blocks/header-essential","woocommerce-blocks/header-minimal","woocommerce-blocks/header-large"],Br=({onNavigateBackClick:e})=>{const{scroll:t}=Cr({editorSelector:".woocommerce-customize-store__block-editor iframe",scrollDirection:"top"}),{isLoading:o,patterns:r}=$e("woo-commerce"),n=(0,d.useSelect)((e=>e(c.store).getDefaultTemplateId({slug:"home"})),[]),[a]=Ao("wp_template",n||""),[i,,l]=Ao("wp_template_part",tt),M=a.find((e=>"header"===e.attributes.slug)),{setHighlightedBlockClientId:u,resetHighlightedBlockClientId:g}=(0,s.useContext)($o),{selectedPattern:m,setSelectedPattern:y}=vr();(0,s.useEffect)((()=>{var e;u(null!==(e=M?.clientId)&&void 0!==e?e:null)}),[M?.clientId,u]);const N=(0,s.useMemo)((()=>r.filter((e=>Yr.includes(e.name))).sort(((e,t)=>Yr.indexOf(e.name)-Yr.indexOf(t.name)))),[r]);(0,s.useEffect)((()=>{if(m||!i.length||!N.length)return;const e=Qr(N,i[0]);y(e)}),[i,N]);const I=(0,s.useCallback)(((e,o)=>{y(e),l([o[0],...i.slice(1)],{selection:{}}),t()}),[i,l,y,t]),{context:p}=(0,s.useContext)($n),D=p.flowType===z.AIOnline?(0,T.__)("Change your header","woocommerce"):(0,T.__)("Choose your header","woocommerce");return(0,s.createElement)(sr,{title:D,onNavigateBackClick:()=>{g(),e()},description:(0,T.__)("Select a new header from the options below. Your header includes your site's navigation and will be added to every page. You can continue customizing this via the Editor.","woocommerce"),content:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"woocommerce-customize-store__sidebar-header-content"},o&&(0,s.createElement)("span",{className:"components-placeholder__preview"},(0,s.createElement)(E.Spinner,null)),!o&&(0,s.createElement)(Ve.__experimentalBlockPatternsList,{shownPatterns:N,blockPatterns:N,onClickPattern:I,label:"Headers",orientation:"vertical",isDraggable:!1,onHover:()=>{},showTitlesAsTooltip:!0})))})},Pr=({onNavigateBackClick:e})=>{const{scroll:t}=Cr({editorSelector:".woocommerce-customize-store__block-editor iframe",scrollDirection:"top"}),{isLoading:o,homeTemplates:r}=(()=>{const{blockPatterns:e,isLoading:t}=qe(),o=(0,s.useMemo)((()=>st(e)),[e]);return{homeTemplates:(0,s.useMemo)((()=>{if(t)return{};const e=at;return Object.entries(e).reduce(((t,[r,n])=>(r in e&&(t[r]=it(n.blocks,o)),t)),{})}),[t,o]),isLoading:t}})(),{selectedPattern:n,setSelectedPattern:a}=vr(),i=(0,d.useSelect)((e=>e(c.store).getDefaultTemplateId({slug:"home"})),[]),[l,,M]=Ao("wp_template",i||""),u=(0,s.useCallback)(((e,o)=>{e!==n&&(a(e),M([l[0],...o,l[l.length-1]],{selection:{}}),t())}),[n,a,M,l,t]),g=(0,to.T)(),m=bo(),y=(0,s.useMemo)((()=>Object.entries(r).map((([e,t])=>"template1"===e?{name:e,title:e,blocks:t.reduce(((e,t)=>{const o=(0,Zt.U)((0,d.select)(Ve.store)).__experimentalGetParsedPattern(t.name);if(!o)return e;if(!m){const t=Lo(o.blocks,(e=>{e.forEach((e=>{e.attributes.style={}}))}));return[...e,...t]}const r=Lo(o.blocks,(e=>{e.forEach((e=>{e.attributes.style=Oo}))}));return[...e,...r]}),[]),blockTypes:[""],categories:[""],content:"",source:""}:{name:e,title:e,blocks:t.reduce(((e,t)=>{const o=(0,Zt.U)((0,d.select)(Ve.store)).__experimentalGetParsedPattern(t.name);return o?[...e,...o.blocks]:e}),[]),blockTypes:[""],categories:[""],content:"",source:""}))),[r,m]);(0,s.useEffect)((()=>{if(n||!l.length||!y.length||o||g)return;const e=y.find((e=>{const t=l.slice(1,l.length-1);return e.blocks.length===t.length&&t.every(((t,o)=>t.name===e.blocks[o].name))}));a(e)}),[l,y,o,g]);const{context:N}=(0,s.useContext)($n),I=N.flowType===z.AIOnline,p=I?(0,T.__)("Change your homepage","woocommerce"):(0,T.__)("Choose your homepage","woocommerce"),D=I?(0,T.__)("Based on the most successful stores in your industry and location, our AI tool has recommended this template for your business. Prefer a different layout? Choose from the templates below now, or later via the Editor.","woocommerce"):(0,T.__)("Create an engaging homepage by selecting one of our pre-designed layouts. You can continue customizing this page, including the content, later via the Editor.","woocommerce");return(0,s.createElement)(sr,{title:p,onNavigateBackClick:e,description:D,content:(0,s.createElement)("div",{className:"woocommerce-customize-store__sidebar-homepage-content"},(0,s.createElement)("div",{className:"edit-site-sidebar-navigation-screen-patterns__group-homepage"},o||g?(0,s.createElement)("span",{className:"components-placeholder__preview"},(0,s.createElement)(E.Spinner,null)):(0,s.createElement)(Ve.__experimentalBlockPatternsList,{shownPatterns:y,blockPatterns:y,onClickPattern:u,label:"Homepage",orientation:"vertical",category:"homepage",isDraggable:!1,showTitlesAsTooltip:!1})))})};var Gr=o(63623),Rr=o(68591),Zr=o(89690),Wr=o(28897),Hr=o(58358),Vr=o(41890),Jr=o(12394);let Xr=function(e){return e.Forward="forward",e.Back="back",e}({});const Kr=(0,s.createContext)({navigate:()=>{}});function qr({children:e}){const[t,o]=(0,s.useState)({direction:null}),r=(0,s.useCallback)((e=>{o({direction:e})}),[]),n=(0,ye.Z)("woocommerce-customize-store-edit-site-sidebar__screen-wrapper",{"slide-from-left":"back"===t.direction,"slide-from-right":"forward"===t.direction});return(0,s.createElement)(Kr.Provider,{value:{navigate:r}},(0,s.createElement)("div",{className:n},e))}const $r=()=>{const{context:{flowType:e}}=(0,s.useContext)($n),t=e===z.AIOnline,{navigate:o}=(0,s.useContext)(Kr);return(0,s.createElement)(sr,{isRoot:!0,title:(0,T.__)("Let's get creative","woocommerce"),description:(0,T.__)("Use our style and layout tools to customize the design of your store. Content and images can be added or changed via the Editor later.","woocommerce"),content:(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"edit-site-sidebar-navigation-screen-patterns__group-header"},(0,s.createElement)(E.__experimentalHeading,{level:2},(0,T.__)("Style","woocommerce"))),(0,s.createElement)(E.__experimentalItemGroup,null,(0,s.createElement)(E.__experimentalNavigatorButton,{as:Jr.Z,path:"/customize-store/assembler-hub/logo",withChevron:!0,icon:Gr.Z,onClick:()=>{const e=(0,g.getNewPath)({customizing:!0},"/customize-store/assembler-hub/logo",{});(0,g.navigateTo)({url:e}),o(Xr.Forward),(0,b.L)("customize_your_store_assembler_hub_sidebar_item_click",{item:"logo"})}},(0,T.__)("Add your logo","woocommerce")),(0,s.createElement)(E.__experimentalNavigatorButton,{as:Jr.Z,path:"/customize-store/assembler-hub/color-palette",withChevron:!0,icon:Rr.Z,onClick:()=>{const e=(0,g.getNewPath)({customizing:!0},"/customize-store/assembler-hub/color-palette",{});(0,g.navigateTo)({url:e}),o(Xr.Forward),(0,b.L)("customize_your_store_assembler_hub_sidebar_item_click",{item:"color-palette"})}},t?(0,T.__)("Change the color palette","woocommerce"):(0,T.__)("Choose your color palette","woocommerce")),(0,s.createElement)(E.__experimentalNavigatorButton,{as:Jr.Z,path:"/customize-store/assembler-hub/typography",withChevron:!0,icon:Zr.Z,onClick:()=>{const e=(0,g.getNewPath)({customizing:!0},"/customize-store/assembler-hub/typography",{});(0,g.navigateTo)({url:e}),o(Xr.Forward),(0,b.L)("customize_your_store_assembler_hub_sidebar_item_click",{item:"typography"})}},t?(0,T.__)("Change fonts","woocommerce"):(0,T.__)("Choose fonts","woocommerce"))),(0,s.createElement)("div",{className:"edit-site-sidebar-navigation-screen-patterns__group-header"},(0,s.createElement)(E.__experimentalHeading,{level:2},(0,T.__)("Layout","woocommerce"))),(0,s.createElement)(E.__experimentalItemGroup,null,(0,s.createElement)(E.__experimentalNavigatorButton,{as:Jr.Z,path:"/customize-store/assembler-hub/header",withChevron:!0,icon:Wr.Z,onClick:()=>{const e=(0,g.getNewPath)({customizing:!0},"/customize-store/assembler-hub/header",{});(0,g.navigateTo)({url:e}),o(Xr.Forward),(0,b.L)("customize_your_store_assembler_hub_sidebar_item_click",{item:"header"})}},t?(0,T.__)("Change your header","woocommerce"):(0,T.__)("Choose your header","woocommerce")),(0,s.createElement)(E.__experimentalNavigatorButton,{as:Jr.Z,path:"/customize-store/assembler-hub/homepage",withChevron:!0,icon:Hr.Z,onClick:()=>{const e=ct()?(0,g.getNewPath)({customizing:!0},"/customize-store/assembler-hub/homepage/intro",{}):(0,g.getNewPath)({customizing:!0},"/customize-store/assembler-hub/homepage",{});(0,g.navigateTo)({url:e}),o(Xr.Forward),(0,b.L)("customize_your_store_assembler_hub_sidebar_item_click",{item:"home"})}},t?(0,T.__)("Change your homepage","woocommerce"):(0,T.__)("Design your homepage","woocommerce")),(0,s.createElement)(E.__experimentalNavigatorButton,{as:Jr.Z,path:"/customize-store/assembler-hub/footer",withChevron:!0,icon:Vr.Z,onClick:()=>{const e=(0,g.getNewPath)({customizing:!0},"/customize-store/assembler-hub/footer",{});(0,g.navigateTo)({url:e}),o(Xr.Forward),(0,b.L)("customize_your_store_assembler_hub_sidebar_item_click",{item:"footer"})}},t?(0,T.__)("Change your footer","woocommerce"):(0,T.__)("Choose your footer","woocommerce"))))})};var en=o(17062);const tn=({onNavigateBackClick:e})=>{const{context:t}=(0,s.useContext)($n),o=t.flowType===z.AIOnline,r=t.isFontLibraryAvailable,n=o?(0,T.__)("Change your font","woocommerce"):(0,T.__)("Choose fonts","woocommerce"),a=o?(0,T.__)("AI has selected a font pairing that's the best fit for your business. If you'd like to change them, select a new option below now, or later in Editor.","woocommerce"):(0,T.__)("Select the pair of fonts that best suits your brand. The larger font will be used for headings, and the smaller for supporting content. You can change your font at any time in Editor.","woocommerce"),i=(0,d.useSelect)((e=>e(m.OPTIONS_STORE_NAME).getOption("woocommerce_allow_tracking"))),c="no"===i||!i;let l;l=c&&!r?(0,T.__)("Upgrade to the <WordPressLink>latest version of WordPress</WordPressLink> and <OptInModal>opt in to usage tracking</OptInModal> to get access to more fonts.","woocommerce"):c&&r?(0,T.__)("Opt in to <OptInModal>usage tracking</OptInModal> to get access to more fonts.","woocommerce"):i&&!r?(0,T.__)("Upgrade to the <WordPressLink>latest version of WordPress</WordPressLink> to get access to more fonts.","woocommerce"):"";const[M,u]=(0,s.useState)(!1),g=()=>u(!1),[N,I]=(0,s.useState)(!1),[p,D]=(0,s.useState)(!0);return(0,s.createElement)(sr,{title:n,onNavigateBackClick:e,description:a,content:(0,s.createElement)("div",{className:"woocommerce-customize-store_sidebar-typography-content"},r&&(0,s.createElement)(Or,null),l&&(0,s.createElement)("div",{className:"woocommerce-customize-store_sidebar-typography-upgrade-notice"},(0,s.createElement)("h4",null,(0,T.__)("Want more font pairings?","woocommerce")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)(l,{WordPressLink:(0,s.createElement)(E.Button,{href:`${en.SX}update-core.php`,variant:"link"}),OptInModal:(0,s.createElement)(E.Button,{onClick:()=>{u(!0)},variant:"link"})})),M&&(0,s.createElement)(E.Modal,{className:"woocommerce-customize-store__opt-in-usage-tracking-modal",title:(0,T.__)("Access more fonts","woocommerce"),onRequestClose:g,shouldCloseOnClickOutside:!1},(0,s.createElement)(E.CheckboxControl,{className:"core-profiler__checkbox",label:(0,w.Z)({mixedString:(0,T.__)("More fonts are available! Opt in to connect your store and access the full font library, plus get more relevant content and a tailored store setup experience. Opting in will enable {{link}}usage tracking{{/link}}, which you can opt out of at any time via WooCommerce settings.","woocommerce"),components:{link:(0,s.createElement)(y.Link,{href:"https://woocommerce.com/usage-tracking?utm_medium=product",target:"_blank",type:"external"})}}),checked:p,onChange:D}),(0,s.createElement)("div",{className:"woocommerce-customize-store__design-change-warning-modal-footer"},(0,s.createElement)(E.Button,{onClick:()=>{(0,b.L)("customize_your_store_assembler_hub_skip_opt_in_usage_tracking"),g()},variant:"link"},(0,T.__)("Cancel","woocommerce")),(0,s.createElement)(E.Button,{onClick:async()=>{(0,b.L)("customize_your_store_assembler_hub_opt_in_usage_tracking"),await yt(),g(),I(!1)},variant:"primary",disabled:!p},N?(0,s.createElement)(E.Spinner,null):(0,T.__)("Opt in","woocommerce"))))))})};var on=o(53961);const rn=[{kind:"postType",name:"wp_navigation"}];let nn=!0;const an=()=>{const e=(0,g.useQuery)(),{sendEvent:t}=(0,s.useContext)($n),[o,r]=(0,s.useState)(!1),n=(0,d.useSelect)((e=>e(c.store).getDefaultTemplateId({slug:"home"})),[]),[a]=Ao("wp_template",n||""),i=Ho(a),l=(0,to.T)(),{__unstableMarkLastChangeAsPersistent:M}=(0,d.useDispatch)(Ve.store),{createErrorNotice:u}=(0,d.useDispatch)(on.store),{dirtyEntityRecords:m,isDirty:y}=(0,Vt.useEntitiesSavedStatesIsDirty)(),{editEntityRecord:N,saveEditedEntityRecord:I,__experimentalSaveSpecifiedEntityEdits:p}=(0,d.useDispatch)(c.store),D=(0,s.useCallback)((async()=>{for(const{kind:e,name:t,key:o,property:r}of m)"root"===e&&"site"===t?await p("root","site",void 0,[r]):(rn.some((o=>o.kind===e&&o.name===t))&&N(e,t,o,{status:"publish"}),await I(e,t,o),M())}),[m,N,I,p,M]),j="/customize-store/assembler-hub"===e.path;(0,s.useEffect)((()=>{l||(j?nn&&y&&(D(),nn=!1):nn=!1)}),[l,y,j,D]);return j?(0,s.createElement)(E.__experimentalHStack,{className:"edit-site-save-hub",alignment:"right",spacing:4},(0,s.createElement)(E.Button,{variant:"primary",onClick:async()=>{(0,b.L)("customize_your_store_assembler_hub_done_click"),r(!0);try{await D(),t("FINISH_CUSTOMIZATION")}catch(e){u(`${(0,T.__)("Saving failed.","woocommerce")} ${e}`),r(!1)}},className:"edit-site-save-hub__button",disabled:o||l||i,"aria-disabled":o,__next40pxDefaultSize:!0},o?(0,s.createElement)(E.Spinner,null):(0,T.__)("Finish customizing","woocommerce"))):null};var sn=o(23374),cn=o(3005),ln=o(85797),Mn=o(11313),un=o(41790);const gn=({shouldSyncIcon:e,setAttributes:t})=>{const{siteIconId:o,mediaUpload:r}=(0,d.useSelect)((e=>{const{canUser:t,getEditedEntityRecord:o}=e(c.store),r=t("update","settings")?o("root","site"):void 0,n=r?.site_icon;return{siteIconId:n,mediaUpload:e(Ve.store).getSettings().mediaUpload}}),[]),{editEntityRecord:n}=(0,d.useDispatch)(c.store),a=e=>n("root","site",void 0,{site_icon:null!=e?e:null}),i=(t,o=!1)=>{(e||o)&&a(t),n("root","site",void 0,{site_logo:t})},s=(e,o=!1)=>{e&&(e.id||!e.url?(i(e.id,o),t({width:un.G3})):i(void 0))},l=r=>{if(void 0===e){const e=!o;return t({shouldSyncIcon:e}),void s(r,e)}s(r)},{createErrorNotice:M}=(0,d.useDispatch)(on.store),u=e=>{M(e,{type:"snackbar"})};return{onFilesDrop:e=>{r({allowedTypes:["image"],filesList:e,onFileChange([e]){(0,Mn.isBlobURL)(e?.url)||l(e)},onError:u})},onInitialSelectLogo:l,setIcon:a,siteIconId:o,onRemoveLogo:()=>{i(null),t({width:void 0})}}},mn=({attributes:{width:e,isLink:t,shouldSyncIcon:o,align:r=""},canUserEdit:n,naturalWidth:a,naturalHeight:i,setAttributes:c,setIcon:l,logoId:M})=>{const u=(0,$t.useViewportMatch)("medium"),g=!["wide","full"].includes(r)&&u,m=e||un.G3,d=a/i,y=a<i?un.Sj:Math.ceil(un.Sj*d),N=2.5*un.FV;return(0,s.createElement)("div",{className:"woocommerce-customize-store__sidebar-group"},(0,s.createElement)("div",{className:"woocommerce-customize-store__sidebar-group-header"},(0,T.__)("Settings","woocommerce")),(0,s.createElement)(E.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)("Image width","woocommerce"),onChange:e=>c({width:e}),min:y,max:un.FV,initialPosition:Math.min(un.G3,N),value:m,disabled:!g}),(0,s.createElement)(E.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Link logo to homepage","woocommerce"),onChange:()=>{c({isLink:!t})},checked:t}),n&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(E.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)("Use as site icon","woocommerce"),onChange:e=>{c({shouldSyncIcon:e}),l(e?M:void 0)},checked:!!o,help:(0,T.__)("Site icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps.","woocommerce")})))},dn=({siteLogoId:e,attributes:t,setAttributes:o,mediaItemData:r,isLoading:n,canUserEdit:a})=>{const{alt_text:i,source_url:c}=r||{},{onFilesDrop:l,onInitialSelectLogo:M,setIcon:u}=gn({shouldSyncIcon:t.shouldSyncIcon,setAttributes:o}),[{naturalWidth:g,naturalHeight:m},d]=(0,s.useState)({});if(n)return(0,s.createElement)("span",{className:"components-placeholder__preview"},(0,s.createElement)(E.Spinner,null));function y(e){M(e),(0,b.L)("customize_your_store_assembler_hub_logo_select")}if(!c)return(0,s.createElement)(Ve.MediaUploadCheck,null,(0,s.createElement)(Ve.MediaUpload,{onSelect:y,allowedTypes:un.RA,render:({open:e})=>(0,s.createElement)(E.Button,{variant:"link",onClick:()=>{e(),(0,b.L)("customize_your_store_assembler_hub_logo_add_click")},className:"block-library-site-logo__inspector-upload-container"},(0,s.createElement)("span",null,(0,s.createElement)(sn.Z,{icon:cn.Z,size:20,className:"icon-control"})),(0,s.createElement)(E.DropZone,{onFilesDrop:l}))}));const N=(0,s.createElement)("div",{className:"woocommerce-customize-store__sidebar-logo-container"},(0,s.createElement)("img",{className:"woocommerce-customize-store_custom-logo",src:c,alt:i,onLoad:e=>{d({naturalWidth:e.target.naturalWidth,naturalHeight:e.target.naturalHeight})}}));return m&&g?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ve.MediaUploadCheck,null,(0,s.createElement)(Ve.MediaUpload,{onSelect:y,allowedTypes:un.RA,render:({open:e})=>(0,s.cloneElement)(N,{onClick(){e(),(0,b.L)("customize_your_store_assembler_hub_logo_edit_click")}})})),!!c&&(0,s.createElement)(mn,{attributes:t,setAttributes:o,naturalWidth:g,naturalHeight:m,canUserEdit:a,setIcon:u,logoId:r?.id||e})):N},yn=({onNavigateBackClick:e})=>{const{logoBlockIds:t}=(0,s.useContext)(Je),{attributes:o,isAttributesLoading:r}=Xe(),{siteLogoId:n,canUserEdit:a,mediaItemData:i,isRequestingMediaItem:l}=(0,d.useSelect)((e=>{const{canUser:t,getEntityRecord:o,getEditedEntityRecord:r}=e(c.store),n=t("update","settings"),a=n?r("root","site"):void 0,i=o("root","__unstableBase"),s=n?a?.site_logo:i?.site_logo;return{siteLogoId:s,canUserEdit:n,mediaItemData:s&&e(c.store).getMedia(s,{context:"view"}),isRequestingMediaItem:s&&!e(c.store).hasFinishedResolution("getMedia",[s,{context:"view"}])}}),[]),{updateBlockAttributes:M}=(0,d.useDispatch)(Ve.store),u=e=>{t.length&&t.forEach((t=>M(t,e)))},{onInitialSelectLogo:g,onRemoveLogo:m}=gn({shouldSyncIcon:o.shouldSyncIcon,setAttributes:u}),N=void 0===n||l||r;return(0,s.createElement)(sr,{title:(0,T.__)("Add your logo","woocommerce"),description:(0,T.__)("Ensure your store is on-brand by adding your logo. For best results, upload a SVG or PNG that's a minimum of 300px wide.","woocommerce"),onNavigateBackClick:e,content:(0,s.createElement)("div",{className:"woocommerce-customize-store__sidebar-logo-content"},(0,s.createElement)("div",{className:"woocommerce-customize-store__sidebar-group-header woocommerce-customize-store__logo-header-container"},(0,s.createElement)("span",null,(0,T.__)("Logo","woocommerce")),n&&(0,s.createElement)(E.DropdownMenu,{icon:ln.Z,label:(0,T.__)("Options","woocommerce"),className:"woocommerce-customize-store__logo-dropdown-menu",popoverProps:{className:"woocommerce-customize-store__logo-dropdown-popover",placement:"bottom-end"}},(({onClose:e})=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(E.MenuGroup,{className:"woocommerce-customize-store__logo-menu-group"},(0,s.createElement)(Ve.MediaUploadCheck,null,(0,s.createElement)(Ve.MediaUpload,{onSelect:t=>{g(t),e(),(0,b.L)("customize_your_store_assembler_hub_logo_select")},allowedTypes:un.RA,render:({open:e})=>(0,s.createElement)(E.MenuItem,{onClick:()=>{e(),(0,b.L)("customize_your_store_assembler_hub_logo_replace_click")}},(0,T.__)("Replace","woocommerce"))}))),(0,s.createElement)(E.MenuGroup,{className:"woocommerce-customize-store__logo-menu-group"},(0,s.createElement)(E.MenuItem,{className:"woocommerce-customize-store__logo-menu-item-delete",onClick:()=>{e(),m(),(0,b.L)("customize_your_store_assembler_hub_logo_remove_click")}},(0,T.__)("Delete","woocommerce"))))))),(0,s.createElement)(dn,{siteLogoId:n,attributes:o,setAttributes:u,canUserEdit:a,mediaItemData:i,isLoading:N}),(0,s.createElement)("div",{className:"woocommerce-customize-store__fiverr-cta-group"},(0,s.createElement)("strong",null,(0,T.__)("DON'T HAVE A LOGO YET?","woocommerce")),(0,s.createElement)("p",null,(0,w.Z)({mixedString:(0,T.__)("Build your brand by creating a memorable logo using {{link}}Fiverr{{/link}}.","woocommerce"),components:{link:(0,s.createElement)(y.Link,{href:"https://go.fiverr.com/visit/?bta=917527&brand=logomaker&landingPage=https%253A%252F%252Fwww.fiverr.com%252Flogo-maker%252Fwoo",target:"_blank",type:"external",rel:"noreferrer",onClick:()=>{(0,b.L)("customize_your_store_fiverr_logo_maker_cta_click")}})}}))))})},Nn=(e,t)=>{if(e?.includes(t))return!0},In=({onNavigateBackClick:e})=>{const{context:t}=(0,s.useContext)($n),o=x(),r=t.isPTKPatternsAPIAvailable,n=(0,d.useSelect)((e=>e(c.store).getDefaultTemplateId({slug:"home"})),[]),[a]=Ao("wp_template",n||""),i=(0,s.useMemo)((()=>{const e=Object.keys(Bo),t=e.reduce(((e,t)=>({...e,[t]:0})),{});return a.reduce(((t,o)=>{var r;const n=(null!==(r=o.attributes?.metadata?.categories)&&void 0!==r?r:[]).find((t=>e.includes(t)));return n?{...t,[n]:t[n]+1}:t}),t)}),[a]),{blockPatterns:l,isLoading:M,invalidateCache:u}=qe(),m=l.filter((e=>!e.name.includes(Ke)&&!e.name.includes("woocommerce")&&"core"!==e.source&&"pattern-directory/featured"!==e.source&&"pattern-directory/theme"!==e.source&&"pattern-directory/core"!==e.source)),N=(0,s.useMemo)((()=>{let e;return o?e=(0,T.__)("Looks like we can't detect your network. Please double-check your internet connection and refresh the page.","woocommerce"):r?window.wcTracks?.isEnabled?M||0!==m.length||(e=(0,T.__)("Unfortunately, a technical issue is preventing more patterns from being displayed. Please <FetchPatterns>try again</FetchPatterns> later.","woocommerce")):e=(0,T.__)("Opt in to <OptInModal>usage tracking</OptInModal> to get access to more patterns.","woocommerce"):e=(0,T.__)("Unfortunately, we're experiencing some technical issues — please come back later to access more patterns.","woocommerce"),e}),[o,r,M,m.length]),[I,p]=(0,s.useState)(!1),D=()=>p(!1),[j,z]=(0,s.useState)(!0),[k,h]=(0,s.useState)(!1),A=(0,T.__)("Design your homepage","woocommerce"),f=(0,T.__)("Create an engaging homepage by adding and combining different patterns and layouts. You can continue customizing this page, including the content, later via the Editor.","woocommerce"),L=(0,g.useQuery)().path;return(0,s.createElement)(sr,{title:A,onNavigateBackClick:e,description:f,content:(0,s.createElement)("div",{className:"woocommerce-customize-store__sidebar-homepage-content"},(0,s.createElement)("div",{className:"edit-site-sidebar-navigation-screen-patterns__group-homepage"},Object.entries(Bo).map((([e,{label:t}],o)=>(0,s.createElement)(E.__experimentalItemGroup,{key:o},(0,s.createElement)(E.__experimentalNavigatorButton,{className:(0,ye.Z)({"edit-site-sidebar-navigation-screen-patterns__group-homepage-item--active":Nn(L,e)}),path:`/customize-store/assembler-hub/homepage/${e}`,onClick:()=>{const t=(0,g.getNewPath)({customizing:!0},`/customize-store/assembler-hub/homepage/${e}`,{});(0,g.navigateTo)({url:t}),(0,b.L)("customize_your_store_assembler_pattern_category_click",{category:e})},as:Jr.Z,withChevron:!0},(0,s.createElement)("div",{className:"edit-site-sidebar-navigation-screen-patterns__group-homepage-label-container"},(0,s.createElement)("span",null,(0,Eo.capitalize)(t)),a.length>0&&i[e]>0&&(0,s.createElement)("span",{className:"edit-site-sidebar-navigation-screen-patterns__group-homepage-number-pattern"},i[e])))))),N&&(0,s.createElement)("div",{className:"woocommerce-customize-store_sidebar-patterns-upgrade-notice"},(0,s.createElement)("h4",null,(0,T.__)("Want more patterns?","woocommerce")),(0,s.createElement)("p",null,(0,s.createInterpolateElement)(N,{OptInModal:(0,s.createElement)(E.Button,{onClick:()=>{p(!0)},variant:"link"}),FetchPatterns:(0,s.createElement)(E.Button,{onClick:async()=>{await ee()({path:"/wc/private/patterns",method:"POST"}),u()},variant:"link"})})),I&&(0,s.createElement)(E.Modal,{className:"woocommerce-customize-store__opt-in-usage-tracking-modal",title:(0,T.__)("Access more patterns","woocommerce"),onRequestClose:D,shouldCloseOnClickOutside:!1},(0,s.createElement)(E.CheckboxControl,{className:"core-profiler__checkbox",label:(0,w.Z)({mixedString:(0,T.__)("More patterns from the WooCommerce.com library are available! Opt in to connect your store and access the full library, plus get more relevant content and a tailored store setup experience. Opting in will enable {{link}}usage tracking{{/link}}, which you can opt out of at any time via WooCommerce settings.","woocommerce"),components:{link:(0,s.createElement)(y.Link,{href:"https://woocommerce.com/usage-tracking?utm_medium=product",target:"_blank",type:"external"})}}),checked:j,onChange:z}),(0,s.createElement)("div",{className:"woocommerce-customize-store__design-change-warning-modal-footer"},(0,s.createElement)(E.Button,{onClick:()=>{(0,b.L)("customize_your_store_assembler_hub_skip_opt_in_usage_tracking"),D()},variant:"link"},(0,T.__)("Cancel","woocommerce")),(0,s.createElement)(E.Button,{onClick:async()=>{(0,b.L)("customize_your_store_assembler_hub_opt_in_usage_tracking"),await yt(),h(!0),D(),h(!1)},variant:"primary",disabled:!j},k?(0,s.createElement)(E.Spinner,null):(0,T.__)("Opt in","woocommerce")))))))})};function pn(){const e=(0,g.useQuery)().path,{navigate:t}=(0,s.useContext)(Kr),o=(0,s.useCallback)((()=>{const e=(0,g.getNewPath)({customizing:!0},"/customize-store/assembler-hub",{});(0,g.navigateTo)({url:e}),t(Xr.Back)}),[t]);return(0,s.createElement)(s.Fragment,null,((e,t)=>"/customize-store/assembler-hub"===e?(0,s.createElement)($r,null):"/customize-store/assembler-hub/color-palette"===e?(0,s.createElement)(Sr,{onNavigateBackClick:t}):"/customize-store/assembler-hub/logo"===e?(0,s.createElement)(yn,{onNavigateBackClick:t}):"/customize-store/assembler-hub/typography"===e?(0,s.createElement)(tn,{onNavigateBackClick:t}):"/customize-store/assembler-hub/header"===e?(0,s.createElement)(Br,{onNavigateBackClick:t}):ct()&&e?.includes("/customize-store/assembler-hub/homepage")?(0,s.createElement)(In,{onNavigateBackClick:t}):ct()||"/customize-store/assembler-hub/homepage"!==e?"/customize-store/assembler-hub/footer"===e?(0,s.createElement)(Fr,{onNavigateBackClick:t}):(0,s.createElement)($r,null):(0,s.createElement)(Pr,{onNavigateBackClick:t}))(e,o))}const Dn=(0,s.memo)((function(){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qr,null,(0,s.createElement)(pn,null)),(0,s.createElement)(an,null))})),Tn="woocommerce_customize_store_onboarding_tour_hidden",jn=({onClose:e,skipTour:t,takeTour:o,flowType:r,showWelcomeTour:n,setIsResizeHandleVisible:a})=>{const[i,c]=(0,s.useState)("left"),{heading:l,descriptions:M}=(e=>{switch(e){case z.AIOnline:return{heading:(0,T.__)("Welcome to your AI-generated store!","woocommerce"),descriptions:{desktop:(0,T.__)("This is where you can start customizing the look and feel of your store, including adding your logo, and changing colors and layouts. Take a quick tour to discover what’s possible.","woocommerce")}};case z.noAI:return{heading:(0,T.__)("Discover what's possible with the store designer","woocommerce"),descriptions:{desktop:(0,T.__)("Start designing your store, including adding your logo, changing color schemes, and building your own layouts. Take a quick tour to discover what's possible.","woocommerce")}}}})(r);return n?(0,s.createElement)(y.TourKit,{config:{options:{effects:{arrowIndicator:!1,overlay:!1,liveResize:{rootElementSelector:"#adminmenuback",resize:!0}},portalParentElement:document.getElementById("wpbody"),popperModifiers:[{name:"bottom-left",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.top="auto",e.styles.popper.left="auto",e.styles.popper.bottom="16px",e.styles.popper.transform="translate3d(16px, 0px, 0px)"}}],classNames:["woocommerce-customize-store-tour-kit","woocommerce-customize-store-welcome-tourkit"]},steps:[{meta:{name:"welcome-tour",primaryButton:{text:(0,T.__)("Take a tour","woocommerce")},descriptions:M,heading:l,skipButton:{isVisible:!0}},referenceElements:{desktop:"#adminmenuback"}}],closeHandler:(e,r,n)=>{"done-btn"===n?o():t()}}}):(0,s.createElement)(y.TourKit,{config:{placement:i,options:{effects:{spotlight:{interactivity:{enabled:!0,rootElementSelector:"#wpwrap"}},arrowIndicator:!0,autoScroll:{behavior:"auto",block:"center"},liveResize:{mutation:!0,resize:!0,rootElementSelector:"#wpwrap"}},callbacks:{onPreviousStep:()=>{c("left"),a(!0)},onNextStep:()=>{c("right-start"),a(!1)}},popperModifiers:[{name:"right-start",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.arrow.transform="translate3d(0px, 96px, 0)"}},{name:"offset",options:{offset:({placement:e})=>"left"===e?[0,20]:[52,16]}}],classNames:"woocommerce-customize-store-tour-kit"},steps:[{referenceElements:{desktop:".edit-site-layout__canvas-container"},meta:{name:"view-changes-real-time",heading:(0,T.__)("View your changes in real time","woocommerce"),descriptions:{desktop:(0,T.__)("Any changes you make to the layout and style will appear here in real time — perfect for testing different looks before you make it live. You can also resize this area to check how your store looks on mobile.","woocommerce")}}},{referenceElements:{desktop:".edit-site-layout__sidebar-region"},meta:{name:"make-your-store-your-own",heading:(0,T.__)("Make your store your own","woocommerce"),descriptions:{desktop:(0,T.__)("Customize the style and layout of your store to fit your brand! Add your logo, change the font and colors, and try out different page layouts. You'll be able to edit the text and images later via the Editor.","woocommerce")},secondaryButton:{text:(0,T.__)("Previous","woocommerce")}}}],closeHandler:(t,o,r)=>{"done-btn"===r?(0,b.L)("customize_your_store_assembler_hub_tour_complete"):(0,b.L)("customize_your_store_assembler_hub_tour_close"),e()}}})};var wn=o(14812);const En="customize_your_store_transitional_page_secondary_button",zn=({children:e,order:t=1})=>(0,s.createElement)(E.Fill,{name:En},(o=>(0,y.createOrderedChildren)(e,t,o)));zn.Slot=({fillProps:e})=>(0,s.createElement)(E.Slot,{name:En,fillProps:e},y.sortFillsByOrder);const kn=()=>{const e=(0,wn.useSlot)(En);return Boolean(e?.fills?.length)?(0,s.createElement)(zn.Slot,null):null},hn=({value:e,onChange:t})=>(0,s.createElement)("div",{className:"woocommerce-survey-star-rating"},[...Array(5)].map(((o,r)=>(r+=1,(0,s.createElement)("button",{type:"button",key:r,className:r<=e?"woocommerce-survey-star-rating__button-on":"woocommerce-survey-star-rating__button-off",onClick:()=>{t(r)}},(0,s.createElement)("span",{className:"woocommerce-survey-star-rating__star"},"★")))))),An=({showAISurvey:e,onSend:t,closeFunction:o})=>{const[r,n]=(0,s.useState)(!1),[a,i]=(0,s.useState)(!1),[c,l]=(0,s.useState)(!1),[M,u]=(0,s.useState)(!1),[g,m]=(0,s.useState)(""),[y,N]=(0,s.useState)(""),{createSuccessNotice:I}=(0,d.useDispatch)("core/notices"),[p,D]=(0,s.useState)(0),j=0===p||!r&&!a&&!c&&!M;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"woocommerce-ai-survey-form"},(0,s.createElement)("div",{className:"content"},(0,s.createElement)("p",{className:"woocommerce-ai-survey-form__description"},(0,T.__)("Our goal is to make sure you have all the right tools to start customizing your store. We’d love to know if we hit our mark and how we can improve.","woocommerce")),(0,s.createElement)("h4",null,(0,T.__)("On a scale of 1 = difficult to 5 = very easy, how would you rate the overall experience?","woocommerce"),(0,s.createElement)("span",null,"*")),(0,s.createElement)(hn,{value:p,onChange:D}),(0,s.createElement)("hr",null),(0,s.createElement)("h4",null,e?(0,T.__)("What motivated you to choose the “Design with AI” option?","woocommerce"):(0,T.__)('What motivated you to choose the "Design your own theme" option?',"woocommerce"),(0,s.createElement)("span",null,"*")),(0,s.createElement)(E.CheckboxControl,{label:e?(0,T.__)("I wanted to see how AI could help me streamline the process.","woocommerce"):(0,T.__)("I wanted to design my own theme.","woocommerce"),checked:r,onChange:n}),(0,s.createElement)(E.CheckboxControl,{label:(0,T.__)("I didn't like any of the available themes.","woocommerce"),checked:a,onChange:i}),(0,s.createElement)(E.CheckboxControl,{label:(0,T.__)("I didn't find a theme that matched my needs.","woocommerce"),checked:c,onChange:l}),(0,s.createElement)(E.CheckboxControl,{label:(0,T.__)("Other.","woocommerce"),checked:M,onChange:u}),(0,s.createElement)("hr",null),(0,s.createElement)("h4",null,(0,T.__)("Did you find anything confusing, irrelevant, or not useful?","woocommerce")),(0,s.createElement)(E.TextareaControl,{value:g,onChange:m}),(0,s.createElement)("hr",null),(0,s.createElement)("h4",null,e?(0,T.__)("Feel free to spill the beans here. All suggestions, feedback, or comments about the AI-generated store experience are welcome.","woocommerce"):(0,T.__)('Feel free to spill the beans here. All suggestions, feedback, or comments about the "Design your own theme" experience are welcome.',"woocommerce")),(0,s.createElement)(E.TextareaControl,{value:y,onChange:N})),(0,s.createElement)("div",null,(0,s.createElement)("hr",null),(0,s.createElement)("div",{className:"buttons"},(0,s.createElement)(E.Button,{className:"is-spinner",variant:"tertiary",onClick:o},(0,T.__)("Cancel","woocommerce")),(0,s.createElement)(E.Button,{variant:"primary",onClick:()=>{e?(0,b.L)("customize_your_store_transitional_survey_complete",{rating:p,choose_streamline:r,choose_dislike_themes:a,choose_themes_not_match:c,choose_other:M,feedback:g,spill_beans:y}):(0,b.L)("ces_feedback",{action:"customize_your_store_on_core_transitional_survey_complete",score:p,choose_design_my_own_theme:r,choose_dislike_themes:a,choose_themes_not_match:c,choose_other:M,comments:g,spill_beans:y}),t(),I((0,T.__)("Thanks for the feedback. We'll put it to good use!","woocommerce"),{type:"snackbar"})},disabled:j},(0,T.__)("Send","woocommerce"))))))};var fn=o(70444);const xn=(0,s.createElement)(fn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,s.createElement)(fn.Path,{fill:"#1E1E1E",d:"m8.85 4.821-1.203-.895-2.083 2.802-1.114-.83L3.553 7.1 5.87 8.829l2.98-4.008ZM20 7.75h-8.889v-1.5H20v1.5Zm0 5h-8.889v-1.5H20v1.5Z"}),(0,s.createElement)(fn.Path,{fill:"#1E1E1E",fillRule:"evenodd",d:"M6 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0-1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm2 4a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}),(0,s.createElement)(fn.Path,{fill:"#1E1E1E",d:"M11.111 17.75H20v-1.5h-8.889v1.5Z"}));var Ln=o(33532),On=o(87983);const _n=(0,Q.assign)({transitionalScreen:(e,t)=>({...e.transitionalScreen,hasCompleteSurvey:"yes"===t.data})}),bn=(0,Q.assign)({transitionalScreen:e=>((0,d.dispatch)(m.OPTIONS_STORE_NAME).updateOptions({woocommerce_admin_customize_store_survey_completed:"yes"}),{...e.transitionalScreen,hasCompleteSurvey:!0})}),Sn=async()=>(0,d.resolveSelect)(m.OPTIONS_STORE_NAME).getOption("woocommerce_admin_customize_store_survey_completed"),Cn=({sendEvent:e,hasCompleteSurvey:t,isWooExpress:o,isSurveyOpen:r,setSurveyOpen:n,aiOnline:a})=>{const i=(0,N.getSetting)("homeUrl",""),c=()=>{n(!1)},l=!t&&!(0,me.id)(),M=o&&a;return(0,s.createElement)("div",{className:"woocommerce-customize-store__transitional"},r&&(0,s.createElement)(E.Modal,{title:(0,T.__)("Share feedback","woocommerce"),onRequestClose:()=>c(),shouldCloseOnClickOutside:!1,className:"woocommerce-ai-survey-modal"},(0,s.createElement)(An,{showAISurvey:M,onSend:()=>{e({type:"COMPLETE_SURVEY"}),c()},closeFunction:c})),(0,s.createElement)(k.R,{as:E.__unstableMotion.div,variants:{view:{x:0}},isTransparent:!1,className:"edit-site-layout__hub"}),(0,s.createElement)("div",{className:"woocommerce-customize-store__transitional-content"},(0,s.createElement)("h1",{className:"woocommerce-customize-store__transitional-heading"},(0,T.__)("Your store looks great!","woocommerce")),(0,s.createElement)("h2",{className:"woocommerce-customize-store__transitional-subheading"},(0,me.id)()?(0,T.__)("Congratulations! You've successfully designed your store. Now you can go back to the Home screen to complete your store setup and start selling.","woocommerce"):(0,T.__)("Congratulations! You've successfully designed your store. Take a look at your hard work before continuing to set up your store.","woocommerce")),(0,s.createElement)(kn,null),(0,s.createElement)("div",{className:"woocommerce-customize-store__transitional-buttons"},l&&(0,s.createElement)(E.Button,{className:"woocommerce-customize-store__transitional-preview-buttonwoocommerce-customize-store__transitional-preview-button",variant:"secondary",onClick:()=>{(0,b.L)(o?"customize_your_store_transitional_survey_click":"customize_your_store_on_core_transitional_survey_click"),n(!0)}},(0,T.__)("Share feedback","woocommerce")),(0,s.createElement)(E.Button,{className:"woocommerce-customize-store__transitional-preview-button",variant:(0,me.id)()?"secondary":"primary",onClick:()=>{(0,b.L)("customize_your_store_transitional_preview_store_click"),window.open(i,"_blank")}},(0,T.__)("View store","woocommerce")),(0,me.id)()&&(0,s.createElement)(E.Button,{variant:"primary",onClick:()=>{(0,b.L)("customize_your_store_entrepreneur_home_click"),e({type:"GO_BACK_TO_HOME"})}},(0,T.__)("Back to Home","woocommerce"))),!(0,me.id)()&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("h2",{className:"woocommerce-customize-store__transitional-main-actions-title"},(0,T.__)("What's next?","woocommerce")),(0,s.createElement)("div",{className:"woocommerce-customize-store__transitional-main-actions"},(0,s.createElement)("div",{className:"woocommerce-customize-store__transitional-action"},(0,s.createElement)(sn.Z,{className:"woocommerce-customize-store__transitional-action__icon",icon:Ln.Z}),(0,s.createElement)("div",{className:"woocommerce-customize-store__transitional-action__content"},(0,s.createElement)("h3",null,(0,T.__)("Add your products","woocommerce")),(0,s.createElement)("p",null,(0,T.__)("Start stocking your virtual shelves by adding or importing your products, or edit the sample products.","woocommerce")),(0,s.createElement)(E.Button,{variant:"link",onClick:()=>{(0,b.L)("customize_your_store_transitional_product_list_click"),(0,_.tJ)(window,`${en.SX}edit.php?post_type=product`)}},(0,T.__)("Go to Products","woocommerce")))),(0,s.createElement)("div",{className:"woocommerce-customize-store__transitional-action"},(0,s.createElement)(sn.Z,{className:"woocommerce-customize-store__transitional-action__icon",icon:On.Z}),(0,s.createElement)("div",{className:"woocommerce-customize-store__transitional-action__content"},(0,s.createElement)("h3",null,(0,T.__)("Fine-tune your design","woocommerce")),(0,s.createElement)("p",null,(0,T.__)("Head to the Editor to change your images and text, add more pages, and make any further customizations.","woocommerce")),(0,s.createElement)(E.Button,{variant:"link",onClick:()=>{(0,b.L)("customize_your_store_transitional_editor_click"),(0,_.tJ)(window,`${en.SX}site-editor.php`)}},(0,T.__)("Go to the Editor","woocommerce")))),(0,s.createElement)("div",{className:"woocommerce-customize-store__transitional-action"},(0,s.createElement)(sn.Z,{className:"woocommerce-customize-store__transitional-action__icon",icon:xn}),(0,s.createElement)("div",{className:"woocommerce-customize-store__transitional-action__content"},(0,s.createElement)("h3",null,(0,T.__)("Continue setting up your store","woocommerce")),(0,s.createElement)("p",null,(0,T.__)("Go back to the Home screen to complete your store setup and start selling","woocommerce")),(0,s.createElement)(E.Button,{variant:"link",onClick:()=>{(0,b.L)("customize_your_store_transitional_home_click"),e({type:"GO_BACK_TO_HOME"})}},(0,T.__)("Back to Home","woocommerce"))))))))},vn=({skipTour:e,takeTour:t,shouldTourBeShown:o})=>(0,s.createElement)(E.Modal,{className:"woocommerce-customize-store__onboarding-welcome-modal",title:(0,T.__)("Welcome to your store!","woocommerce"),onRequestClose:e,shouldCloseOnClickOutside:!1},(0,s.createElement)("span",{className:"woocommerce-customize-store__title"},(0,T.__)("Our AI tool had a few issues generating your content.","woocommerce")),(0,s.createElement)("p",null,(0,T.__)("But don't let that stop you! Start customizing the look and feel of your store by adding your logo and selecting your colors and layout. ","woocommerce"),o&&(0,T.__)("Take a quick tour to discover what's possible.","woocommerce")),o&&(0,s.createElement)("div",{className:"woocommerce-customize-store__design-change-warning-modal-footer"},(0,s.createElement)(E.Button,{onClick:e,variant:"link"},(0,T.__)("Skip","woocommerce")),(0,s.createElement)(E.Button,{onClick:t,variant:"primary"},(0,T.__)("Take a tour","woocommerce"))));var Qn=o(70261);const Un=(e,t)=>{e.querySelectorAll(".is-added").forEach((e=>{e.classList.remove("is-added")})),t.forEach((t=>{const o=t.attributes.metadata?.patternName;if(!o)return;const r=e.querySelector(`[id="${o}"]`);r&&r.classList.add("is-added")}))},Fn={intro:["Intro: Two column with content and image","Heading with image and two columns below","Fullwidth content with background image","Two column with image and content","Centered heading with two column text","Content with button and fullwidth image","Center-aligned content overlaid on an image","Left-aligned content overlaid on an image","Centered Content","Large left-aligned heading","Fullwidth image with content and button","Pull right with wide image below"],about:["Content right with image left","Content left with image right","Heading left and content right","Four image grid, content on the left","Content with grid of images on right","Heading with two media columns","Heading with content and large image below","Centered heading and button","Content left, image right","Tall content with image left","Fullwidth image, content pull right","Right-aligned Content","Large heading with content on right","Tall content with image right","Spread right, heavy text","Heading with button and text","Left-aligned content","Pull left, fullwidth image"],services:["Three columns with images and content","Heading with four text sections","Two columns with images","Heading with six text sections","Headings left, content right"]},Yn=(e,t,o)=>{const r=Fn[o]?.indexOf(e),n=Fn[o]?.indexOf(t);return-1===r&&-1===n?null:r>-1&&n>-1?r-n:-1===r&&n>-1?1:-1===n&&r>-1?-1:void 0},Bn=({category:e})=>{const{patterns:t,isLoading:o}=$e(e),r=bo(),n=(0,s.useMemo)((()=>{const o=t.filter((e=>!e.name.includes(Ke)&&"pattern-directory/theme"!==e.source&&"pattern-directory/core"!==e.source)).map((e=>{if("woocommerce-blocks/just-arrived-full-hero"!==e.name&&"woocommerce-blocks/featured-category-cover-image"!==e.name)return e;if(!r){const t=Lo(e.blocks,(e=>{e.forEach((e=>e.attributes.style={}))}));return{...e,blocks:t}}const t=Lo(e.blocks,(e=>{e.forEach((e=>e.attributes.style=Oo))}));return{...e,blocks:t}}));return((e,t)=>{const o="woocommerce-blocks";return"intro"===t||"about"===t?e.sort(((e,r)=>{if("woocommerce-blocks/centered-content-with-image-below"===e.name)return-1;if("woocommerce-blocks/centered-content-with-image-below"===r.name)return 1;const n=Yn(e.title,r.title,t);return"number"==typeof n?n:e.name.includes(o)&&!r.name.includes(o)?1:!e.name.includes(o)&&r.name.includes(o)?-1:0})):e.sort(((e,r)=>{const n=Yn(e.title,r.title,t);return"number"==typeof n?n:e.name.includes(o)&&!r.name.includes(o)?-1:!e.name.includes(o)&&r.name.includes(o)?1:0}))})(o,e)}),[e,r,t]),a=(0,$t.useAsyncList)(n),[i,l]=(0,s.useState)(10),M=(0,s.useRef)(null),u=(0,d.useSelect)((e=>e(c.store).getDefaultTemplateId({slug:"home"})),[]),[m]=Ao("wp_template",u||""),y=(0,to.T)(),N=o||y;(0,s.useEffect)((()=>{if(N||null===M.current)return;Un(M.current,m);const e=new MutationObserver((()=>{Un(M.current,m)})),t=document.querySelector(".woocommerce-customize-store-edit-site-layout__sidebar-extra__pattern .block-editor-block-patterns-list");return t&&e.observe(t,{childList:!0}),()=>{e.disconnect()}}),[o,m,N]);const{insertPattern:I,insertedPattern:p}=So();return(0,s.useEffect)((()=>{if(y)return;const e=window.document.querySelector('.woocommerce-customize-store-assembler > iframe[name="editor-canvas"]'),t=e?.contentWindow?.document.body.querySelector(".block-editor-block-list__layout"),o=new MutationObserver((()=>{if(p.current){const e=t?.querySelector(`[id="block-${p.current}"]`);e&&(e.scrollIntoView({behavior:"smooth",block:"end"}),p.current=null)}}));return t&&o.observe(t,{childList:!0}),()=>{o.disconnect()}}),[p,y]),(0,s.createElement)("div",{className:"woocommerce-customize-store-edit-site-layout__sidebar-extra__pattern",onScroll:e=>{const t=e.target;t.scrollTop/(t.scrollHeight-t.clientHeight)>.5&&l((e=>e+10))}},(0,s.createElement)("div",{className:"woocommerce-customize-store-edit-site-layout__sidebar-extra__pattern__header"},(0,s.createElement)("h1",null,(0,Eo.capitalize)(Bo[e].label)),(0,s.createElement)(E.Button,{onClick:()=>{const e=(0,g.getNewPath)({customizing:!0},"/customize-store/assembler-hub/homepage",{});(0,g.navigateTo)({url:e}),(0,b.L)("customize_your_store_assembler_pattern_sidebar_close")},iconSize:18,icon:Qn.Z,label:(0,T.__)("Close","woocommerce")})),(0,s.createElement)("div",{className:"woocommerce-customize-store-edit-site-layout__sidebar-extra__pattern__description"},(0,s.createElement)("span",null,Bo[e].description)),N&&(0,s.createElement)("span",{className:"components-placeholder__preview"},(0,s.createElement)(E.Spinner,null)),!N&&(0,s.createElement)(Ve.__experimentalBlockPatternsList,{shownPatterns:a.slice(0,i),blockPatterns:a.slice(0,i),onClickPattern:I,label:"Homepage",orientation:"vertical",category:e,isDraggable:!1,showTitlesAsTooltip:!0,ref:M}))},Pn=()=>{const{path:e}=(0,g.useQuery)(),t=(0,s.useMemo)((()=>e?(e=>{const t=e.match(/\/homepage\/(.*)/),o=t?.[1];return o&&Object.keys(Bo).includes(o)?o:null})(e):null),[e]);return t?(0,s.createElement)("div",{className:"woocommerce-customize-store-edit-site-layout__sidebar-extra"},(0,s.createElement)(Bn,{category:t})):null},{useGlobalStyle:Gn}=(0,Zt.U)(Ve.privateApis),Rn=()=>{const[e,t]=(0,s.useState)([]),{sendEvent:o,currentState:r,context:n}=(0,s.useContext)($n),{customizing:a}=(0,g.useQuery)(),[i,l]=(0,s.useState)(v(n.flowType)&&"true"!==a);(0,s.useEffect)((()=>{l(v(n.flowType)&&"true"!==a)}),[n.flowType,a]),(0,eo.Z)();const{shouldTourBeShown:M,isResizeHandleVisible:u,setShowWelcomeTour:y,onClose:N,...I}=(()=>{const[e,t]=(0,co.useState)(!0),[o,r]=(0,co.useState)(!0),{updateOptions:n}=(0,d.useDispatch)(m.OPTIONS_STORE_NAME),{shouldTourBeShown:a}=(0,d.useSelect)((e=>{const{getOption:t,hasFinishedResolution:o}=e(m.OPTIONS_STORE_NAME);return{shouldTourBeShown:!("yes"===t(Tn)||!o("getOption",[Tn]))}}));return{onClose:()=>{n({[Tn]:"yes"})},shouldTourBeShown:a,showWelcomeTour:e,setShowWelcomeTour:t,setIsResizeHandleVisible:r,isResizeHandleVisible:o}})(),p=()=>{(0,b.L)("customize_your_store_assembler_hub_tour_start"),y(!1),l(!1)},D=()=>{(0,b.L)("customize_your_store_assembler_hub_tour_skip"),N(),l(!1)},j=(0,$t.useViewportMatch)("medium","<"),w=(0,$t.useReducedMotion)(),[h,A]=(0,$t.useResizeObserver)(),f=(0,to.T)(),[x,L]=(0,s.useState)(!1),[O]=Gn("color.background"),[_]=Gn("color.gradient"),{record:S}=(0,no.Z)(),{id:C,type:Q}=S,[U,F]=(0,s.useState)(!1),Y=(0,s.createElement)(or,{isLoading:f});return"object"==typeof r&&"transitional"===r.transitionalScreen?(0,s.createElement)(c.EntityProvider,{kind:"root",type:"site"},(0,s.createElement)(c.EntityProvider,{kind:"postType",type:Q,id:C},(0,s.createElement)(Cn,{sendEvent:o,isWooExpress:(0,te.V)(),isSurveyOpen:U,setSurveyOpen:F,hasCompleteSurvey:!!n?.transitionalScreen?.hasCompleteSurvey,aiOnline:n?.flowType===z.AIOnline}))):(0,s.createElement)(Je.Provider,{value:{logoBlockIds:e,setLogoBlockIds:t}},(0,s.createElement)(er,null,(0,s.createElement)(c.EntityProvider,{kind:"root",type:"site"},(0,s.createElement)(c.EntityProvider,{kind:"postType",type:Q,id:C},(0,s.createElement)("div",{className:(0,ye.Z)("edit-site-layout")},(0,s.createElement)(E.__unstableMotion.div,{className:"edit-site-layout__header-container",animate:"view"},(0,s.createElement)(k.R,{as:E.__unstableMotion.div,variants:{view:{x:0}},isTransparent:!1,className:"edit-site-layout__hub"})),(0,s.createElement)("div",{className:"edit-site-layout__content"},(0,s.createElement)("div",{className:"edit-site-layout__sidebar"},(0,s.createElement)(ro.XD,{ariaLabel:(0,T.__)("Navigation","woocommerce"),className:"edit-site-layout__sidebar-region"},(0,s.createElement)(E.__unstableMotion.div,{animate:{opacity:1},transition:{type:"tween",duration:w||j?0:.5,ease:"easeOut"},className:"edit-site-layout__sidebar"},(0,s.createElement)(Dn,null))),(0,s.createElement)(Pn,null)),!j&&(0,s.createElement)("div",{className:"edit-site-layout__canvas-container"},h,!!A.width&&(0,s.createElement)(E.__unstableMotion.div,{initial:!1,layout:"position",className:(0,ye.Z)("edit-site-layout__canvas")},(0,s.createElement)(oo.Z,null,(0,s.createElement)(zo.Z,{isReady:!f,isHandleVisibleByDefault:!I.showWelcomeTour&&u,isFullWidth:!1,defaultSize:{width:A.width-24,height:A.height},isOversized:x,setIsOversized:L,innerContentStyle:{background:null!=_?_:O}},Y)))))),!f&&M&&(z.AIOnline===n.flowType||z.noAI===n.flowType)&&(0,s.createElement)(jn,(0,qt.Z)({skipTour:D,takeTour:p,onClose:N,flowType:n.flowType},I)),!f&&i&&(0,s.createElement)(vn,{shouldTourBeShown:M,skipTour:D,takeTour:p})))))},Zn={},Wn=e=>{(0,s.useEffect)((()=>{if("undefined"!=typeof document)return Zn[e]=(Zn[e]||0)+1,1===Zn[e]&&document.body.classList.add(e),()=>{Zn[e]--,0===Zn[e]&&document.body.classList.remove(e)}}),[e])},{useGlobalSetting:Hn}=(0,Zt.U)(Ve.privateApis),Vn=()=>{const{setOptInFlowStatus:e}=(0,s.useContext)(xr),[t,o]=Hn("typography.fontFamilies"),{__experimentalSaveSpecifiedEntityEdits:r}=(0,d.useDispatch)(c.store),{invalidateCache:n}=qe();return(0,s.useEffect)((()=>{const a=(0,d.subscribe)((async()=>{"yes"===(0,d.select)(m.OPTIONS_STORE_NAME).getOption("woocommerce_allow_tracking")&&(e(fr.LOADING),await(async()=>{await ee()({path:"/wc/private/patterns",method:"POST"})})(),n(),await(async()=>{var e;await gt();const n=(0,d.select)(c.store).__experimentalGetCurrentGlobalStylesId(),a=(await(0,d.resolveSelect)(c.store).getEntityRecords("postType","wp_font_family",{_embed:!0,per_page:-1})||[]).map((e=>({id:e.id,...e.font_family_settings,fontFace:e?._embedded?.font_faces.map((e=>e.font_face_settings))||[]}))),{custom:i}=t,s=[...i?i.map((e=>e.slug)):[]],l=a.reduce(((e,t)=>s.includes(t.slug)||void 0===Ye[t.slug]?e:[...e,{...t}]),[]);o({...t,custom:[...null!==(e=t.custom)&&void 0!==e?e:[],...null!=l?l:[]]}),r("root","globalStyles",n,["settings.typography.fontFamilies"])})(),e(fr.DONE),a())}),m.OPTIONS_STORE_NAME);return()=>{a()}}),[]),null},Jn={},Xn={},Kn={"core/block-editor":{moveBlocksUp:()=>(0,b.L)("customize_your_store_assembler_pattern_move_up_click"),moveBlocksDown:()=>(0,b.L)("customize_your_store_assembler_pattern_move_down_click")}};(0,d.use)((e=>({dispatch:t=>{const o="object"==typeof t?t.name:t,r={...e.dispatch(o)},n=Kn[o];return Jn[o]||(Jn[o]={}),Xn[o]||(Xn[o]={}),n&&Object.keys(n).forEach((e=>{const t=r[e],a=n[e];Xn[o][e]&&Xn[o][e]===t||(Xn[o][e]=t,Jn[o][e]=(...e)=>{try{"string"==typeof a?(0,b.L)(a):"function"==typeof a&&a(...e)}catch(e){console.error(e)}return t(...e)}),r[e]=Jn[o][e]})),r}})),{});const{RouterProvider:qn}=(0,Zt.U)(Rt.privateApis);(0,Kt.addFilter)("editor.MediaUpload","woo/customize-store/assembler-hub",(()=>Xt.MediaUpload));const $n=(0,s.createContext)({sendEvent:()=>{},context:{},currentState:"assemblerHub"}),ea=e=>{const t=(0,s.useRef)(!1);Wn("woocommerce-assembler"),t.current||((()=>{if(!window.wcBlockSettings)return void console.warn("window.blockSettings not found. Skipping initialization.");const e=window.wcBlockSettings;e.__experimentalFetchLinkSuggestions=(t,o)=>(0,c.__experimentalFetchLinkSuggestions)(t,o,e),e.__experimentalFetchRichUrlData=c.__experimentalFetchUrlData,((0,d.dispatch)(We.store).__experimentalReapplyBlockTypeFilters||(0,d.dispatch)(We.store).reapplyBlockTypeFilters)();const t=(0,He.__experimentalGetCoreBlocks)().filter((({name:e})=>"core/freeform"!==e&&!(0,We.getBlockType)(e)));(0,He.registerCoreBlocks)(t),(0,d.dispatch)(We.store).setFreeformFallbackBlockName("core/html"),(0,d.dispatch)(Ht.store).setDefaults("core/edit-site",{editorMode:"visual",fixedToolbar:!1,focusMode:!1,distractionFree:!1,keepCaretInsideBlock:!1,welcomeGuide:!1,welcomeGuideStyles:!1,welcomeGuidePage:!1,welcomeGuideTemplate:!1,showListViewByDefault:!1,showBlockBreadcrumbs:!0}),(0,d.dispatch)(Jt.h).updateSettings(e),(0,d.dispatch)(Vt.store).updateEditorSettings({defaultTemplateTypes:e.defaultTemplateTypes,defaultTemplatePartAreas:e.defaultTemplatePartAreas}),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),(0,Zt.U)((0,d.dispatch)(Jt.h)).setCanvasMode("view")})(),t.current=!0);const[o,r]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{(0,_.RS)((()=>r(!0)))}),[]),e.context.aiOnline=window.parent?.window.cys_aiOnline,(0,s.createElement)(s.Fragment,null,o&&(0,s.createElement)(ar,{setOpenWarningModal:r,onExitClicked:()=>{window.location.href=(0,g.getNewPath)({},"/",{})}}),(0,s.createElement)($n.Provider,{value:e},(0,s.createElement)(Wt.ShortcutProvider,{style:{height:"100%"}},(0,s.createElement)(Lr,null,(0,s.createElement)(Fe.V,null,(0,s.createElement)(qn,null,(0,s.createElement)(Rn,null)),(0,s.createElement)(Vn,null))))))},ta=()=>{const e=(0,g.getNewPath)((0,g.getPersistedQuery)(),"/",{});(0,_.tJ)(window,e)},oa=()=>(0,s.createElement)("div",{className:"woocommerce-customize-store__loading"},(0,s.createElement)(y.Spinner,null)),ra={updateQueryStep:(e,t,{action:o})=>{const{path:r}=(0,g.getQuery)(),n=o.step,a=r.split("/");"customize-store"===a[1]&&a[2]!==n&&(0,g.updateQueryString)({},`/customize-store/${n}`)},redirectToWooHome:ta,redirectToThemes:e=>{var t;(0,te.V)()?window.location.href=null!==(t=e?.intro?.themeData?._links?.browse_all?.href)&&void 0!==t?t:(0,N.getAdminLink)("themes.php"):window.location.href=(0,N.getAdminLink)("admin.php?page=wc-admin&tab=themes&path=%2Fextensions")},redirectToReferrer:()=>{const{getWithExpiry:e,remove:t}=(0,p.accessTaskReferralStorage)({taskId:"customize-store"}),o=e();o&&(t(),window.location.href=o.returnUrl)},goBack:()=>{const e=(0,g.getHistory)();e.__experimentalLocationStack.length>=2&&!e.__experimentalLocationStack[e.__experimentalLocationStack.length-2].search.includes("customize-store")?e.back():ta()}},na={...r,...a,...ra},aa={...n,...i,browserPopstateHandler:()=>e=>{const t=()=>{e({type:"EXTERNAL_URL_UPDATE"})};return window.addEventListener("popstate",t),()=>{window.removeEventListener("popstate",t)}},markTaskComplete:async()=>{const e=await(0,d.resolveSelect)(c.store).getDefaultTemplateId({slug:"home"});return(0,d.dispatch)(m.OPTIONS_STORE_NAME).updateOptions({woocommerce_admin_customize_store_completed:"yes",woocommerce_admin_customize_store_completed_theme_id:e})}},ia=(0,l.C)({id:"customizeStore",initial:"setFlags",predictableActionArguments:!0,preserveActionOrder:!0,schema:{context:{},events:{},services:{}},context:{intro:{hasErrors:!1,themeData:{themes:[],_links:{browse_all:{href:(0,N.getAdminLink)("themes.php")}}},activeTheme:"",customizeStoreTaskCompleted:!1,currentThemeIsAiGenerated:!1},transitionalScreen:{hasCompleteSurvey:!1},flowType:z.noAI,isFontLibraryAvailable:null,isPTKPatternsAPIAvailable:null,activeThemeHasMods:void 0},invoke:{src:"browserPopstateHandler"},on:{GO_BACK_TO_DESIGN_WITH_AI:{target:"designWithAi",actions:[{type:"updateQueryStep",step:"design-with-ai"}]},GO_BACK_TO_DESIGN_WITHOUT_AI:{target:"intro",actions:[{type:"updateQueryStep",step:"intro"}]},EXTERNAL_URL_UPDATE:{target:"navigate"},AI_WIZARD_CLOSED_BEFORE_COMPLETION:{target:"intro",actions:[{type:"updateQueryStep",step:"intro"}]},NO_AI_FLOW_ERROR:{target:"intro",actions:[{type:"assignNoAIFlowError"},{type:"updateQueryStep",step:"intro"}]},INSTALL_FONTS:{target:"designWithoutAi.installFonts"}},states:{setFlags:{invoke:{src:"setFlags",onDone:{actions:"assignFlags",target:"navigate"}}},navigate:{always:[{target:"intro",cond:{type:"hasStepInUrl",step:"intro"}},{target:"designWithAi",cond:{type:"hasStepInUrl",step:"design-with-ai"}},{target:"designWithoutAi",cond:{type:"hasStepInUrl",step:"design"}},{target:"assemblerHub",cond:{type:"hasStepInUrl",step:"assembler-hub"}},{target:"transitionalScreen",cond:{type:"hasStepInUrl",step:"transitional"}},{target:"intro"}]},intro:{id:"intro",initial:"fetchIntroData",states:{fetchIntroData:{initial:"pending",states:{pending:{invoke:{src:"fetchIntroData",onError:{actions:"assignFetchIntroDataError",target:"success"},onDone:{target:"success",actions:["assignThemeData","assignActiveTheme","assignCustomizeStoreCompleted","assignCurrentThemeIsAiGenerated"]}}},success:{type:"final"}},onDone:"intro"},intro:{meta:{component:({sendEvent:e,context:t})=>{const{intro:{activeTheme:o,themeData:r,customizeStoreTaskCompleted:n,currentThemeIsAiGenerated:a},activeThemeHasMods:i}=t,c=x(),[l,M]=(0,s.useState)(t.flowType===z.noAI&&t.intro.hasErrors),u=403===t.intro.errorStatus?(0,T.__)("Sorry, you don't have permission to update the theme.","woocommerce"):(0,T.__)("Oops! We encountered a problem while setting up the foundations. {{anchor}}Please try again{{/anchor}} or start with a theme.","woocommerce"),[g,m]=(0,s.useState)(!1);let y="no-modal",N="default";const I="twentytwentyfour"===o,p=(0,d.useSelect)((e=>e("core").getCurrentTheme()),[]),D=p?.is_block_theme;switch(!0){case c:N="network-offline";break;case t.flowType===z.noAI&&!D:N="classic-theme";break;case t.flowType===z.noAI&&D&&!I:N="non-default-block-theme";break;case t.flowType===z.noAI&&!n:N=z.noAI;break;case t.flowType===z.noAI&&n:N="existing-no-ai-theme";break;case!n&&i:N="task-incomplete-active-theme-has-mods";break;case n&&a:N="existing-ai-theme";break;case n&&!a:N="existing-theme"}switch(!0){case!1===g:y="no-modal";break;case"task-incomplete-active-theme-has-mods"===N:y="task-incomplete-override-design-changes";break;case"existing-ai-theme"===N:y="task-complete-with-ai-theme";break;case"existing-theme"===N:y="task-complete-without-ai-theme"}const h=ce[y],A=se[N],f=t.flowType===z.AIOnline?(0,T.__)("Create a store that reflects your brand and business. Select one of our professionally designed themes to customize, or create your own using AI.","woocommerce"):(0,T.__)("Design a store that reflects your brand and business. Customize your active theme, select a professionally designed theme, or create a new look using our store designer.","woocommerce");return(0,s.createElement)(s.Fragment,null,h&&(0,s.createElement)(h,{sendEvent:e,setOpenDesignChangeWarningModal:m}),(0,s.createElement)("div",{className:"woocommerce-customize-store-header"},(0,s.createElement)(k.R,{as:E.__unstableMotion.div,variants:{view:{x:0}},isTransparent:!1,className:"woocommerce-customize-store__content"})),(0,s.createElement)("div",{className:"woocommerce-customize-store-container"},(0,s.createElement)("div",{className:"woocommerce-customize-store-sidebar"},(0,s.createElement)("div",{className:"woocommerce-customize-store-sidebar__title"},(0,s.createElement)("button",{onClick:()=>{e("CLICKED_ON_BREADCRUMB")}},j.Z),(0,T.__)("Customize your store","woocommerce")),(0,s.createElement)("p",null,f)),(0,s.createElement)("div",{className:"woocommerce-customize-store-main"},l&&(0,s.createElement)(E.Notice,{onRemove:()=>M(!1),className:"woocommerce-cys-design-with-ai__error-notice",status:"error"},(0,w.Z)({mixedString:u,components:{anchor:(0,s.createElement)("a",{className:"woocommerce-customize-store-error-link",onClick:()=>e("DESIGN_WITHOUT_AI")})}})),(0,s.createElement)(A,{setOpenDesignChangeWarningModal:m,redirectToCYSFlow:()=>e("DESIGN_WITHOUT_AI"),sendEvent:e}),I&&!n?(0,s.createElement)(le,{sendEvent:e,themeData:r}):(0,s.createElement)(Me,{isBlockTheme:D,isDefaultTheme:I,sendEvent:e,isNoAiFlow:C(t.flowType)}))))}}}},on:{CLICKED_ON_BREADCRUMB:{actions:"goBack"},DESIGN_WITH_AI:{actions:["recordTracksDesignWithAIClicked"],target:"designWithAi"},DESIGN_WITHOUT_AI:{actions:["recordTracksDesignWithoutAIClicked"],target:"designWithoutAi"},SELECTED_NEW_THEME:{actions:["recordTracksThemeSelected"],target:"appearanceTask"},SELECTED_ACTIVE_THEME:{actions:["recordTracksThemeSelected"],target:"appearanceTask"},SELECTED_BROWSE_ALL_THEMES:{actions:["recordTracksBrowseAllThemesClicked","redirectToThemes"]}}},designWithoutAi:{initial:"preDesignWithoutAi",states:{preDesignWithoutAi:{always:{target:"designWithoutAi"}},designWithoutAi:{entry:[{type:"updateQueryStep",step:"design"}],meta:{component:Gt}},installFonts:{entry:[{type:"updateQueryStep",step:"design/install-fonts"}],meta:{component:Gt}},installPatterns:{entry:[{type:"updateQueryStep",step:"design/install-patterns"}],meta:{component:Gt}}}},designWithAi:{initial:"preDesignWithAi",states:{preDesignWithAi:{always:{target:"designWithAi"}},designWithAi:{meta:{component:({parentMachine:e,context:t})=>{const o=(0,g.getNewPath)({},"/customize-store",{});return S(t.flowType)?(0,s.createElement)(St,{parentMachine:e,parentContext:t}):((0,_.tJ)(window,o),null)}},entry:[{type:"updateQueryStep",step:"design-with-ai"}]}},on:{THEME_SUGGESTED:{target:"assemblerHub"}}},assemblerHub:{initial:"fetchCustomizeStoreCompleted",states:{fetchCustomizeStoreCompleted:{invoke:{src:"fetchCustomizeStoreCompleted",onDone:{actions:"assignCustomizeStoreCompleted",target:"checkCustomizeStoreCompleted"}}},checkCustomizeStoreCompleted:{always:[{cond:"customizeTaskIsNotCompleted",actions:[{type:"updateQueryStep",step:"intro"}],target:"#customizeStore.intro"},{cond:"customizeTaskIsCompleted",target:"assemblerHub"}]},assemblerHub:{entry:[{type:"updateQueryStep",step:"assembler-hub"}],meta:{component:ea}},postAssemblerHub:{invoke:[{src:"markTaskComplete",onDone:{target:"#customizeStore.transitionalScreen"}},{src:"fetchSurveyCompletedOption"}]}},on:{FINISH_CUSTOMIZATION:{target:".postAssemblerHub"}}},transitionalScreen:{initial:"fetchCustomizeStoreCompleted",states:{fetchCustomizeStoreCompleted:{invoke:{src:"fetchCustomizeStoreCompleted",onDone:{actions:"assignCustomizeStoreCompleted",target:"checkCustomizeStoreCompleted"}}},checkCustomizeStoreCompleted:{always:[{cond:"customizeTaskIsNotCompleted",actions:[{type:"updateQueryStep",step:"intro"}],target:"#customizeStore.intro"},{cond:"hasTaskReferral",target:"skipTransitional"},{cond:"customizeTaskIsCompleted",target:"preTransitional"}]},preTransitional:{meta:{component:oa},invoke:{src:"fetchSurveyCompletedOption",onError:{target:"transitional"},onDone:{target:"transitional",actions:["assignHasCompleteSurvey"]}}},skipTransitional:{entry:["redirectToReferrer"]},transitional:{entry:[{type:"updateQueryStep",step:"transitional"}],meta:{component:ea},on:{GO_BACK_TO_HOME:{actions:"redirectToWooHome"},COMPLETE_SURVEY:{actions:"completeSurvey"}}}}},appearanceTask:{}}}),sa=({actionOverrides:e,servicesOverrides:t})=>{(0,D.p0)(["woocommerce-customize-store"]);const o=(0,s.useMemo)((()=>ia.withConfig({services:{...aa,...t},actions:{...na,...e},guards:{hasStepInUrl:(e,t,{cond:o})=>{const{path:r=""}=(0,g.getQuery)();return r.split("/")[2]===o.step},isAiOnline:e=>e.flowType===z.AIOnline,isAiOffline:e=>e.flowType===z.AIOffline,activeThemeHasMods:e=>!!e.activeThemeHasMods,activeThemeHasNoMods:e=>!e.activeThemeHasMods,customizeTaskIsCompleted:e=>e.intro.customizeStoreTaskCompleted,customizeTaskIsNotCompleted:e=>!e.intro.customizeStoreTaskCompleted,hasTaskReferral:()=>{const{getWithExpiry:e}=(0,p.accessTaskReferralStorage)({taskId:"customize-store"});return null!==e()}}})),[e,t]),{versionEnabled:r}=(0,bt.r)(),[n,a,i]=(0,M.e)(o,{devTools:"V4"===r});(0,s.useEffect)((()=>{(0,_.cL)(window)||(window.__wcCustomizeStore={...window.__wcCustomizeStore,sendEventToIntroMachine:e=>a(e)})}),[a]),window.__wcCustomizeStore={...window.__wcCustomizeStore};const c=(0,u.v)(i,(e=>{var t;return(0,_t.r)(null!==(t=e?.meta)&&void 0!==t?t:void 0)})),[l,m]=(0,s.useState)(null);(0,s.useEffect)((()=>{c?.component&&m((()=>c?.component))}),[l,c?.component]),(0,s.useEffect)((()=>(0,_.FT)()),[]),Wn("is-fullscreen-mode");const d=n.value instanceof Object?Object.keys(n.value)[0]:n.value;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:`woocommerce-customize-store__container woocommerce-customize-store__step-${d}`},l?(0,s.createElement)(l,{parentMachine:i,sendEvent:a,context:n.context,currentState:n.value}):(0,s.createElement)(oa,null)),(0,s.createElement)(I.PluginArea,{scope:"woocommerce-customize-store"}))},ca=sa},15577:(e,t,o)=>{o.d(t,{Z:()=>s});var r=o(69307),n=o(7862),a=o.n(n);function i({className:e="wordpress-logo",size:t=72}){return(0,r.createElement)("svg",{className:e,height:t,width:t,viewBox:"0 0 72 72"},(0,r.createElement)("path",{d:"M36,0C16.1,0,0,16.1,0,36c0,19.9,16.1,36,36,36c19.9,0,36-16.2,36-36C72,16.1,55.8,0,36,0z M3.6,36 c0-4.7,1-9.1,2.8-13.2l15.4,42.3C11.1,59.9,3.6,48.8,3.6,36z M36,68.4c-3.2,0-6.2-0.5-9.1-1.3l9.7-28.2l9.9,27.3 c0.1,0.2,0.1,0.3,0.2,0.4C43.4,67.7,39.8,68.4,36,68.4z M40.5,20.8c1.9-0.1,3.7-0.3,3.7-0.3c1.7-0.2,1.5-2.8-0.2-2.7 c0,0-5.2,0.4-8.6,0.4c-3.2,0-8.5-0.4-8.5-0.4c-1.7-0.1-2,2.6-0.2,2.7c0,0,1.7,0.2,3.4,0.3l5,13.8L28,55.9L16.2,20.8 c2-0.1,3.7-0.3,3.7-0.3c1.7-0.2,1.5-2.8-0.2-2.7c0,0-5.2,0.4-8.6,0.4c-0.6,0-1.3,0-2.1,0C14.7,9.4,24.7,3.6,36,3.6 c8.4,0,16.1,3.2,21.9,8.5c-0.1,0-0.3,0-0.4,0c-3.2,0-5.4,2.8-5.4,5.7c0,2.7,1.5,4.9,3.2,7.6c1.2,2.2,2.7,4.9,2.7,8.9 c0,2.8-0.8,6.3-2.5,10.5l-3.2,10.8L40.5,20.8z M52.3,64l9.9-28.6c1.8-4.6,2.5-8.3,2.5-11.6c0-1.2-0.1-2.3-0.2-3.3 c2.5,4.6,4,9.9,4,15.5C68.4,47.9,61.9,58.4,52.3,64z"}))}i.propTypes={className:a().string,size:a().number};const s=i},28316:(e,t,o)=>{function r(e,t=new Set){if(!t.has(e)){t.add(e);for(const o in e)if(e.hasOwnProperty(o)){if("component"===o)return e;if("object"==typeof e[o]&&null!==e[o]){const n=r(e[o],t);if(void 0!==n)return n}}}}o.d(t,{r:()=>r})}}]);