"use strict";(self.webpackChunk_wcAdmin_webpackJsonp=self.webpackChunk_wcAdmin_webpackJsonp||[]).push([[9525],{63809:function(e,s,t){t.r(s);var n=t(69307),i=t(65736),l=t(9818),a=t(67221),r=t(39931),o=t(72484),c=t(39891);s.default=e=>{let{query:s,twoColumns:t}=e;const{task:u}=s,{isResolving:m,taskLists:d}=(0,l.useSelect)((e=>({taskLists:e(a.ONBOARDING_STORE_NAME).getTaskListsByIds(["setup_two_column","extended_two_column"]),isResolving:e(a.ONBOARDING_STORE_NAME).isResolving("getTaskListsByIds")}))),k=(()=>{if(!u)return null;const e=d.reduce(((e,s)=>[...e,...s.tasks]),[]);return e.find((e=>e.id===u))||null})();if(u&&!k)return null;if(m||!d[0])return(0,n.createElement)(o.Z,{twoColumns:t});if(k)return(0,n.createElement)("div",{className:"woocommerce-task-dashboard__container"},(0,n.createElement)(c.i,{query:s,task:k}));const _=d[0],p=_.tasks,w=p.filter((e=>e.isComplete)),f=p.length===w.length,g=p.filter((e=>e.isDismissed));return(0,n.createElement)(n.Fragment,null,p&&(_.isVisible||u)&&(0,n.createElement)(r.Z,{id:_.id,eventName:"tasklist",twoColumns:t,keepCompletedTaskList:_.keepCompletedTaskList,dismissedTasks:g||[],isComplete:f,query:s,cesHeader:!1,tasks:p,title:(0,i.__)("Get ready to start selling","woocommerce")}))}}}]);