1 line
181 KiB
JavaScript
1 line
181 KiB
JavaScript
|
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[925],{37557:(e,t,o)=>{o.d(t,{U:()=>u});var r=o(74776);const n="I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.";let i="I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.";const a=window.wcSettings,s=a?.admin,l=parseFloat(a?.wpVersion),c=parseFloat(s?.gutenberg_version);!isNaN(l)&&l>=6.4&&(i=n),!isNaN(c)&&c>=16.9&&(i=n);const{lock:M,unlock:u}=(0,r.__dangerousOptInToUnstableAPIsOnlyForCoreModules)(i,"@wordpress/edit-site")},51975:(e,t,o)=>{o.r(t),o.d(t,{CustomizeStoreController:()=>zr,customizeStoreStateMachineActions:()=>Er,customizeStoreStateMachineDefinition:()=>jr,customizeStoreStateMachineServices:()=>Tr,default:()=>wr,machineActions:()=>Dr});var r={};o.r(r),o.d(r,{assignActiveThemeHasMods:()=>R,assignCurrentThemeIsAiGenerated:()=>H,assignCustomizeStoreCompleted:()=>Z,assignFetchIntroDataError:()=>W,assignThemeData:()=>Y,recordTracksBrowseAllThemesClicked:()=>G,recordTracksDesignWithAIClicked:()=>P,recordTracksThemeSelected:()=>B});var n={};o.r(n),o.d(n,{fetchIntroData:()=>K,fetchThemeCards:()=>X});var i={};o.r(i),o.d(i,{assignHasCompleteSurvey:()=>lr,completeSurvey:()=>cr});var a={};o.r(a),o.d(a,{fetchSurveyCompletedOption:()=>Mr});var s=o(69307),l=o(37798),c=o(11122),M=o(28226),u=o(50883),g=o(10431),m=o(67221),d=o(9818),y=o(86020),N=o(74617),p=o(98817),I=o(34374),D=o(65736),E=o(70048),T=o(55609),j=o(5267),z=o(83849),w=o.n(z),k=o(94333),h=o(22629),f=o(40800);const A=(0,s.forwardRef)(((e,t)=>{let{isTransparent:o,...r}=e;const{siteTitle:n}=(0,d.useSelect)((e=>{var t;const{getSite:o}=e(l.store);return{siteTitle:null===(t=o())||void 0===t?void 0:t.title}}),[]),i=(0,k.useReducedMotion)();return(0,s.createElement)(T.__unstableMotion.div,(0,j.Z)({ref:t},r,{className:w()("edit-site-site-hub",r.className),initial:!1,transition:{type:"tween",duration:i?0:.3,ease:"easeOut"}}),(0,s.createElement)(T.__experimentalHStack,{justify:"space-between",alignment:"center",className:"edit-site-site-hub__container"},(0,s.createElement)(T.__experimentalHStack,{justify:"flex-start",className:"edit-site-site-hub__text-content",spacing:"0"},(0,s.createElement)(T.__unstableMotion.div,{className:w()("edit-site-site-hub__view-mode-toggle-container",{"has-transparent-background":o}),layout:!0,transition:{type:"tween",duration:i?0:.3,ease:"easeOut"}},(0,s.createElement)(y.Link,{href:(0,g.getNewPath)({},"/",{}),type:"wp-admin"},(0,s.createElement)(f.Z,{className:"edit-site-layout__view-mode-toggle-icon"}))),(0,s.createElement)(T.__unstableAnimatePresence,null,(0,s.createElement)(T.__unstableMotion.div,{layout:!1,animate:{opacity:1},exit:{opacity:0},className:w()("edit-site-site-hub__site-title",{"is-transparent":o}),transition:{type:"tween",duration:i?0:.2,ease:"easeOut",delay:.1}},(0,h.decodeEntities)(n))))))})),x=e=>{let{colorPalettes:t,totalPalettes:o}=e,r=null;return o>4&&(r=(0,s.createElement)("li",{className:"more_palettes"},"+",o-4)),(0,s.createElement)("ul",{className:"theme-card__color-palettes"},t.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%)"}}))),r)},_=e=>{let{slug:t,description:o,thumbnail_url:r,name:n,color_palettes:i=[],total_palettes:a=0,link_url:l="",is_active:c=!1,onClick:M}=e;return(0,s.createElement)("div",{className:"theme-card",key:t},(0,s.createElement)("div",null,l?(0,s.createElement)(y.Link,{href:l,onClick:M},(0,s.createElement)("img",{src:r,alt:o})):(0,s.createElement)("img",{src:r,alt:o})),(0,s.createElement)("div",{className:"theme-card__info"},(0,s.createElement)("h2",{className:"theme-card__title"},n),i&&(0,s.createElement)(x,{colorPalettes:i,totalPalettes:a})),(0,s.createElement)("div",null,c&&(0,s.createElement)("span",{className:"theme-card__active"},(0,D.__)("Active theme","woocommerce")),(0,s.createElement)("span",{className:"theme-card__free"},"Free")))};va
|