(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[53],{544:function(e,t,s){"use strict";t.a=["products","payments","woocommerce-payments","tax","shipping","marketing","appearance"]},627:function(e,t,s){"use strict";s.r(t);var i=s(0),n=s(2),c=s(3),a=s(480),o=s(7),l=s(11),r=s(16),m=s(171),d=s(546),u=s(525),_=(s(531),s(544));t.default=({query:e})=>{const{hideTaskList:t}=Object(o.useDispatch)(l.ONBOARDING_STORE_NAME),{updateOptions:s}=Object(o.useDispatch)(l.OPTIONS_STORE_NAME),{task:p}=e,{isResolving:O,taskLists:k}=Object(o.useSelect)(e=>({isResolving:e(l.ONBOARDING_STORE_NAME).isResolving("getTaskLists"),taskLists:e(l.ONBOARDING_STORE_NAME).getTaskLists()}));if(Object(i.useEffect)(()=>{s({woocommerce_task_list_prompt_shown:!0})},[k,O]),p)return null;if(O)return Object(i.createElement)(u.a,{query:e});const b=k.find(e=>"extended"===e.id),w=k.find(e=>"setup"===e.id),g=w.tasks.find(e=>"payments"===e.id);if(b.tasks=[...new Set(b.tasks.filter(e=>"payments"!==e.id||!g).concat((null==w?void 0:w.tasks.filter(e=>!_.a.includes(e.id)&&"store_details"!==e.id))||[]))],0===b.tasks.length)return null;const h=b.tasks.filter(e=>e.completed).length===b.tasks.length,{id:E,isHidden:f,isVisible:j,isToggleable:N,title:y,tasks:R}=b;return j?Object(i.createElement)(i.Fragment,{key:E},Object(i.createElement)(d.a,{id:E,isComplete:h,query:e,tasks:R,title:y}),N&&Object(i.createElement)(m.a,null,Object(i.createElement)(c.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",label:Object(n.__)("Display",'woocommerce')},Object(i.createElement)(c.MenuItem,{className:"woocommerce-layout__homescreen-extension-tasklist-toggle",icon:!f&&a.a,isSelected:!f,role:"menuitemcheckbox",onClick:()=>(e=>{const{id:s,isHidden:i}=e,n=!i;Object(r.recordEvent)(n?s+"_tasklist_hide":s+"_tasklist_show",{}),t(s)})(b)},Object(n.__)("Show things to do next",'woocommerce'))))):null}}}]);