(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[53],{648:function(e,t,s){"use strict";s.r(t);var i=s(0),n=s(2),c=s(4),o=s(500),l=s(8),a=s(12),r=s(17),m=s(168),_=s(566),u=s(546);s(552);t.default=e=>{let{query:t}=e;const{hideTaskList:s}=Object(l.useDispatch)(a.ONBOARDING_STORE_NAME),{updateOptions:d}=Object(l.useDispatch)(a.OPTIONS_STORE_NAME),{task:O}=t,{isResolving:k,taskLists:b}=Object(l.useSelect)(e=>({isResolving:e(a.ONBOARDING_STORE_NAME).isResolving("getTaskListsByIds"),taskLists:e(a.ONBOARDING_STORE_NAME).getTaskListsByIds(["extended_two_column"])}));if(Object(i.useEffect)(()=>{d({woocommerce_task_list_prompt_shown:!0})},[b,k]),O)return null;if(k)return Object(i.createElement)(u.a,{query:t});const p=b[0];if(!p||0===p.tasks.length)return null;const w=p.tasks.filter(e=>e.completed).length===p.tasks.length,{id:E,eventPrefix:h,isHidden:g,isVisible:j,isToggleable:N,title:f,tasks:y}=p;return j?Object(i.createElement)(i.Fragment,{key:E},Object(i.createElement)(_.a,{id:E,eventPrefix:h,isComplete:w,query:t,tasks:y,title:f}),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:!g&&o.a,isSelected:!g,role:"menuitemcheckbox",onClick:()=>(e=>{const{id:t,isHidden:i}=e,n=!i;Object(r.recordEvent)(n?t+"_tasklist_hide":t+"_tasklist_show",{}),s(t)})(p)},Object(n.__)("Show things to do next",'woocommerce'))))):null}}}]);