"use strict";var A=Object.create;var l=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var w=Object.getPrototypeOf;var C=Object.prototype.hasOwnProperty;var f=(e,o)=>l(e,"name",{value:o,configurable:true});var D=(e,o)=>{for(var t in o)l(e,t,{get:o[t],enumerable:true})};var v=(e,o,t,i)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let r of b(o))if(!C.call(e,r)&&r!==t)l(e,r,{get:()=>o[r],enumerable:!(i=T(o,r))||i.enumerable})}return e};var u=(e,o,t)=>(t=e!=null?A(w(e)):{},v(o||!e||!e.__esModule?l(t,"default",{value:e,enumerable:true}):t,e));var I=e=>v(l({},"__esModule",{value:true}),e);var P=(e,o,t,i)=>{var r=i>1?void 0:i?T(o,t):o;for(var m=e.length-1,p;m>=0;m--)if(p=e[m])r=(i?p(o,t,r):p(r))||r;if(i&&r)l(o,t,r);return r};var R={};D(R,{default:()=>N});module.exports=I(R);var c=require("react/jsx-runtime");var a=require("mobx-react");var g=require("react");var s=require("..");var h=u(require("../../../components/util/ErrorBoundary"));var E=require("../../../config");var n=require("../actions");var O=u(require("../components/TodosWebview"));let d=class extends g.Component{render(){const o=!s.todosStore||!s.todosStore.isFeatureActive||s.todosStore.isTodosPanelForceHidden;if(o){return null}return(0,c.jsx)(h.default,{children:(0,c.jsx)(O.default,{isTodosServiceActive:this.props.stores.services.isTodosServiceActive||false,isVisible:s.todosStore.isTodosPanelVisible,handleClientMessage:n.todoActions.handleClientMessage,setTodosWebview:t=>n.todoActions.setTodosWebview(t),width:s.todosStore.width,minWidth:E.TODOS_MIN_WIDTH,resize:t=>n.todoActions.resize(t),userAgent:s.todosStore.userAgent,todoUrl:s.todosStore.todoUrl,isTodoUrlValid:s.todosStore.isTodoUrlValid})})}};f(d,"TodosScreen");d=P([(0,a.inject)("stores","actions"),a.observer],d);var N=d;
