????

Your IP : 3.145.60.133


Current Path : /home/multihiv/www/store/wp-content/plugins/woocommerce/assets/client/admin/chunks/
Upload File :
Current File : /home/multihiv/www/store/wp-content/plugins/woocommerce/assets/client/admin/chunks/6916.js

"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[6916],{39122:(e,o,n)=>{n.d(o,{FV:()=>s,G3:()=>r,RA:()=>t,Sj:()=>i});const t=["image"],r=60,i=20,s=200},62833:(e,o,n)=>{n.d(o,{LU:()=>r,id:()=>i});var t=n(92694);const r="entrepreneur-signup";(0,t.addFilter)("woocommerce_admin_persisted_queries","woocommerce_admin_customize_your_store",(e=>(e.push("ref"),e)));const i=()=>new URLSearchParams(window.location.search).get("ref")===r},74639:(e,o,n)=>{n.d(o,{rJ:()=>C,jf:()=>y,mt:()=>x,vY:()=>f,nC:()=>p,sw:()=>g,B_:()=>h,$p:()=>k,Tf:()=>v,wO:()=>b});var t=n(65736),r=n(80225),i=n(55609),s=n(10431),a=n(28302),c=n(86020),l=n(81514);const m=({siteUrl:e})=>(0,l.jsx)("iframe",{className:"preview-iframe",src:e,title:"Preview",tabIndex:-1});var u=n(91978),d=n(86841),w=n(17134);const _=({bannerTitle:e,bannerText:o,bannerClass:n,showAIDisclaimer:s,buttonIsLink:m,bannerButtonOnClick:u,bannerButtonText:d,secondaryButton:w,previewBanner:_,children:h})=>(0,l.jsxs)("div",{className:(0,r.Z)("woocommerce-customize-store-banner",n),children:[(0,l.jsxs)("div",{className:"woocommerce-customize-store-banner-content",children:[(0,l.jsxs)("div",{className:"banner-actions",children:[(0,l.jsx)("h1",{children:e}),(0,l.jsx)("p",{children:o}),d&&(0,l.jsx)(i.Button,{onClick:()=>u&&u(),variant:m?"link":"primary",children:d}),w,s&&(0,l.jsx)("p",{className:"ai-disclaimer",children:(0,a.Z)({mixedString:(0,t.__)("Powered by experimental AI. {{link}}Learn more{{/link}}","woocommerce"),components:{link:(0,l.jsx)(c.Link,{href:"https://automattic.com/ai-guidelines",target:"_blank",type:"external"})}})})]}),h]}),_]}),h=()=>(0,l.jsx)(_,{bannerTitle:(0,t.__)("Looking to design your store using AI?","woocommerce"),bannerText:(0,t.__)("Unfortunately, the [AI Store designer] isn't available right now as we can't detect your network. Please check your internet connection.","woocommerce"),bannerClass:"offline-banner",bannerButtonOnClick:()=>{},showAIDisclaimer:!0}),g=({sendEvent:e})=>(0,l.jsx)(_,{bannerTitle:(0,t.__)("Looking to design your store using AI?","woocommerce"),bannerText:(0,t.__)("It looks like you're using Jetpack's offline mode — switch to online mode to start designing with AI.","woocommerce"),bannerClass:"offline-banner",buttonIsLink:!1,bannerButtonOnClick:()=>{e({type:"JETPACK_OFFLINE_HOWTO"})},bannerButtonText:(0,t.__)("Find out how","woocommerce"),showAIDisclaimer:!0}),p=({setOpenDesignChangeWarningModal:e})=>(0,l.jsx)(_,{bannerTitle:(0,t.__)("Use the power of AI to design your store","woocommerce"),bannerText:(0,t.__)("Design the look of your store, create pages, and generate copy using our built-in AI tools.","woocommerce"),bannerClass:"",buttonIsLink:!1,bannerButtonOnClick:()=>{e(!0)},bannerButtonText:(0,t.__)("Design with AI","woocommerce"),showAIDisclaimer:!0}),y=({sendEvent:e})=>(0,l.jsx)(_,{bannerTitle:(0,t.__)("Use the power of AI to design your store","woocommerce"),bannerText:(0,t.__)("Design the look of your store, create pages, and generate copy using our built-in AI tools.","woocommerce"),bannerClass:"",buttonIsLink:!1,bannerButtonOnClick:()=>{e({type:"DESIGN_WITH_AI"})},bannerButtonText:(0,t.__)("Design with AI","woocommerce"),showAIDisclaimer:!0}),b=({setOpenDesignChangeWarningModal:e})=>(0,l.jsx)(_,{bannerTitle:(0,t.__)("Use the power of AI to design your store","woocommerce"),bannerText:(0,t.__)("Design the look of your store, create pages, and generate copy using our built-in AI tools.","woocommerce"),bannerClass:"",buttonIsLink:!1,bannerButtonOnClick:()=>{e(!0)},bannerButtonText:(0,t.__)("Design with AI","woocommerce"),showAIDisclaimer:!0}),k=({redirectToCYSFlow:e})=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(_,{bannerTitle:(0,t.__)("Design your own","woocommerce"),bannerText:(0,t.__)("Quickly create a beautiful store using our built-in store designer. Choose your layout, select a style, and much more.","woocommerce"),bannerClass:"no-ai-banner",bannerButtonText:(0,t.__)("Start designing","woocommerce"),bannerButtonOnClick:()=>{e()},showAIDisclaimer:!1})}),x=({setOpenDesignChangeWarningModal:e})=>{const o=(0,l.jsx)(i.Button,{className:"",onClick:()=>{(0,w.L)("customize_your_store_intro_create_a_new_one_click"),e(!0)},variant:"secondary",children:(0,t.__)("Create a new one","woocommerce")}),n=(0,u.O3)("siteUrl")+"?cys-hide-admin-bar=1";return(0,l.jsx)(_,{bannerTitle:(0,t.__)("Customize your custom theme","woocommerce"),bannerText:(0,t.__)("Keep customizing the look of your AI-generated store, or start over and create a new one.","woocommerce"),bannerClass:"existing-ai-theme-banner",buttonIsLink:!1,bannerButtonOnClick:()=>{(0,w.L)("customize_your_store_intro_customize_click"),(0,d.tJ)(window,(0,s.getNewPath)({customizing:!0},"/customize-store/assembler-hub",{}))},bannerButtonText:(0,t.__)("Customize","woocommerce"),secondaryButton:o,showAIDisclaimer:!0,children:(0,l.jsx)("div",{className:"woocommerce-block-preview-container",children:(0,l.jsx)("div",{className:"iframe-container",children:(0,l.jsx)(m,{siteUrl:n})})})})},f=()=>{const e=(0,u.O3)("siteUrl")+"?cys-hide-admin-bar=1";return(0,l.jsx)(_,{bannerTitle:(0,t.__)("Customize your theme","woocommerce"),bannerText:(0,t.__)("Customize everything from the color palette and the fonts to the page layouts, making sure every detail aligns with your brand.","woocommerce"),bannerClass:"existing-no-ai-theme-banner",buttonIsLink:!1,bannerButtonOnClick:()=>{(0,w.L)("customize_your_store_intro_customize_click",{theme_type:"block"}),(0,d.tJ)(window,(0,s.getNewPath)({customizing:!0},"/customize-store/assembler-hub",{}))},bannerButtonText:(0,t.__)("Customize your store","woocommerce"),showAIDisclaimer:!1,previewBanner:(0,l.jsx)(m,{siteUrl:e})})},C=()=>{const e=(0,u.O3)("siteUrl")+"?cys-hide-admin-bar=1";return(0,l.jsx)(_,{bannerTitle:(0,t.__)("Customize your theme","woocommerce"),bannerText:(0,t.__)("Customize everything from the color palette and the fonts to the page layouts, making sure every detail aligns with your brand.","woocommerce"),bannerClass:"existing-no-ai-theme-banner",buttonIsLink:!1,bannerButtonOnClick:()=>{(0,w.L)("customize_your_store_intro_customize_click",{theme_type:"classic"}),(0,d.tJ)(window,"customize.php?return=/wp-admin/themes.php")},bannerButtonText:(0,t.__)("Go to the Customizer","woocommerce"),showAIDisclaimer:!1,previewBanner:(0,l.jsx)(m,{siteUrl:e})})},v=()=>{const e=(0,u.O3)("siteUrl")+"?cys-hide-admin-bar=1";return(0,l.jsx)(_,{bannerTitle:(0,t.__)("Customize your theme","woocommerce"),bannerText:(0,t.__)("Customize everything from the color palette and the fonts to the page layouts, making sure every detail aligns with your brand.","woocommerce"),bannerClass:"existing-no-ai-theme-banner",buttonIsLink:!1,bannerButtonOnClick:()=>{(0,w.L)("customize_your_store_intro_customize_click",{theme_type:"block"}),(0,d.tJ)(window,`${u.SX}site-editor.php`)},bannerButtonText:(0,t.__)("Go to the Editor","woocommerce"),showAIDisclaimer:!1,previewBanner:(0,l.jsx)(m,{siteUrl:e})})}},35530:(e,o,n)=>{n.d(o,{Fc:()=>u,MO:()=>m,Nh:()=>w,ab:()=>d});var t=n(55609),r=n(65736),i=n(86020),s=n(69307),a=n(91978),c=n(17134),l=n(81514);const m=({setOpenDesignChangeWarningModal:e,sendEvent:o,classname:n="woocommerce-customize-store__design-change-warning-modal"})=>(0,l.jsxs)(t.Modal,{className:n,title:(0,r.__)("Are you sure you want to start a new design?","woocommerce"),onRequestClose:()=>e(!1),shouldCloseOnClickOutside:!1,children:[(0,l.jsx)("p",{children:(0,s.createInterpolateElement)((0,r.__)("The Store Designer will create a new store design for you, and you'll lose any changes you've made to your active theme. If you'd prefer to continue editing your theme, you can do so via the <EditorLink>Editor</EditorLink>.","woocommerce"),{EditorLink:(0,l.jsx)(i.Link,{onClick:()=>(window.open(`${a.SX}site-editor.php`,"_blank"),!1),href:""})})}),(0,l.jsxs)("div",{className:"woocommerce-customize-store__design-change-warning-modal-footer",children:[(0,l.jsx)(t.Button,{onClick:()=>e(!1),variant:"link",children:(0,r.__)("Cancel","woocommerce")}),(0,l.jsx)(t.Button,{onClick:()=>o({type:"DESIGN_WITH_AI"}),variant:"primary",children:(0,r.__)("Design with AI","woocommerce")})]})]}),u=({setOpenDesignChangeWarningModal:e,sendEvent:o,classname:n="woocommerce-customize-store__design-change-warning-modal"})=>(0,l.jsxs)(t.Modal,{className:n,title:(0,r.__)("Are you sure you want to start a new design?","woocommerce"),onRequestClose:()=>e(!1),shouldCloseOnClickOutside:!1,children:[(0,l.jsx)("p",{children:(0,s.createInterpolateElement)((0,r.__)("The Store Designer will create a new store design for you, and you'll lose any changes you've made to your active theme. If you'd prefer to continue editing your theme, you can do so via the <EditorLink>Editor</EditorLink>.","woocommerce"),{EditorLink:(0,l.jsx)(i.Link,{onClick:()=>(window.open(`${a.SX}site-editor.php`,"_blank"),!1),href:""})})}),(0,l.jsxs)("div",{className:"woocommerce-customize-store__design-change-warning-modal-footer",children:[(0,l.jsx)(t.Button,{onClick:()=>e(!1),variant:"link",children:(0,r.__)("Cancel","woocommerce")}),(0,l.jsx)(t.Button,{onClick:()=>o({type:"DESIGN_WITH_AI"}),variant:"primary",children:(0,r.__)("Design with AI","woocommerce")})]})]}),d=({setOpenDesignChangeWarningModal:e,sendEvent:o,classname:n="woocommerce-customize-store__design-change-warning-modal"})=>(0,l.jsxs)(t.Modal,{className:n,title:(0,r.__)("Are you sure you want to start over?","woocommerce"),onRequestClose:()=>e(!1),shouldCloseOnClickOutside:!1,children:[(0,l.jsx)("p",{children:(0,s.createInterpolateElement)((0,r.__)("You'll be asked to provide your business info again, and will lose your existing AI design. If you want to customize your existing design, you can do so via the <EditorLink>Editor</EditorLink>.","woocommerce"),{EditorLink:(0,l.jsx)(i.Link,{onClick:()=>(window.open(`${a.SX}site-editor.php`,"_blank"),!1),href:""})})}),(0,l.jsxs)("div",{className:"woocommerce-customize-store__design-change-warning-modal-footer",children:[(0,l.jsx)(t.Button,{onClick:()=>e(!1),variant:"link",children:(0,r.__)("Cancel","woocommerce")}),(0,l.jsx)(t.Button,{onClick:()=>{o({type:"DESIGN_WITH_AI"}),(0,c.L)("customize_your_store_intro_start_again_click")},variant:"primary",children:(0,r.__)("Start again","woocommerce")})]})]}),w=({isNoAiFlow:e=!0,setIsModalOpen:o,redirectToCYSFlow:n})=>(0,l.jsxs)(t.Modal,{className:"woocommerce-customize-store__theme-switch-warning-modal",title:(0,r.__)("Are you sure you want to design a new theme?","woocommerce"),onRequestClose:()=>o(!1),shouldCloseOnClickOutside:!1,children:[(0,l.jsx)("p",{children:e?(0,r.__)("Your active theme will be changed and you could lose any changes you’ve made to it.","woocommerce"):(0,s.createInterpolateElement)((0,r.__)("The Store Designer will create a new store design for you, and you'll lose any changes you've made to your active theme. If you'd prefer to continue editing your theme, you can do so via the <EditorLink>Editor</EditorLink>.","woocommerce"),{EditorLink:(0,l.jsx)(i.Link,{onClick:()=>(window.open(`${a.SX}site-editor.php`,"_blank"),!1),href:""})})}),(0,l.jsxs)("div",{className:"woocommerce-customize-store__theme-switch-warning-modal-footer",children:[(0,l.jsx)(t.Button,{onClick:()=>{o(!1)},variant:"link",children:(0,r.__)("Cancel","woocommerce")}),(0,l.jsx)(t.Button,{onClick:()=>{o(!1),(0,c.L)("customize_your_store_agree_to_theme_switch_click"),n()},variant:"primary",children:(0,r.__)("Design a new theme","woocommerce")})]})]})},17134:(e,o,n)=>{n.d(o,{L:()=>s});var t=n(14599),r=n(62833),i=n(10791);const s=(e,o)=>{(0,i.V)()&&(0,r.id)()?(0,t.recordEvent)(e,{...o,ref:r.LU}):(0,t.recordEvent)(e,o)}},86841:(e,o,n)=>{n.d(o,{$$:()=>_,FT:()=>u,RS:()=>m,cK:()=>w,cL:()=>a,eP:()=>c,rS:()=>h,sr:()=>l,tJ:()=>d});var t=n(10431),r=n(19881),i=n(91978),s=n(39122);function a(e){return e.document!==e.parent.document&&null!==e.parent.document.body.querySelector(".woocommerce-customize-store__container")}function c(){window.parent.postMessage({type:"iframe-loaded"},(0,i.O3)("homeUrl"))}function l(e){window.addEventListener("message",(o=>{"iframe-loaded"===o.data.type&&e()}))}function m(e){window.addEventListener("message",(o=>{"assemberBackButtonClicked"===o.data.type&&e()}))}function u(){const e=[(0,i.O3)("homeUrl")];function o(o){if(e.includes(o.origin)&&o.data&&"string"==typeof o.data.type&&"string"==typeof o.data.url&&"navigate"===o.data.type)try{const n=(0,t.parseAdminUrl)(o.data.url);if(!e.some((e=>n.origin===e)))throw new Error(`Blocked navigation to untrusted URL: ${n.href}`);window.location.href=n.href}catch(e){(0,r.captureException)(e)}}return window.addEventListener("message",o,!1),function(){window.removeEventListener("message",o,!1)}}function d(e,o){try{if(a(e))e.parent.postMessage({type:"navigate",url:o},(0,i.O3)("homeUrl"));else{const n=(0,t.parseAdminUrl)(o);e.location.href=n.href}}catch(e){(0,r.captureException)(e)}}function w(e){const o=e.contentDocument||e.contentWindow?.document;o?.addEventListener("click",(function(e){if(e.target){const o=e.target?.closest("a");o&&"_blank"===o.target?(e.preventDefault(),window.open(o.href,"_blank")):o&&(e.preventDefault(),window.location.href=o.href)}}))}const _=(e,o=s.G3)=>e.replaceAll(/<!-- wp:site-logo\s*(\{.*?\})?\s*\/-->/g,((e,n)=>{if(n){const e=JSON.parse(n);return e.width=o,`\x3c!-- wp:site-logo ${JSON.stringify(e)} /--\x3e`}return`\x3c!-- wp:site-logo {"width":${o}} /--\x3e`})),h=(e,o)=>e.map(((e,n,t)=>{const r=t[n+1];if(!r)return[e];const i=[e],s=(r.progress-e.progress)/o;for(let n=0;n<o;n++)i.push({...e,progress:e.progress+(n+1)*s});return i})).flat()}}]);