//!wrt $BSPEC:{"icn":"apps/pchc","cpr":"Copyright (C) Windows 96 Team 2023.","dsc":"PC Health Check for Windows 97","frn":"PC Health Check","ver":1,"ssy":"gui"}

const{execCmd:execCmd}=w96.sys,{Theme:Theme,DialogCreator:DialogCreator}=w96.ui;class HealthCheckApp extends WApplication{constructor(){super()}async main(n){super.main(n);const i=this.createWindow({title:"PC Health Check",initialHeight:672,initialWidth:672,icon:await Theme.getIconUrl("apps/pchc","16x16"),center:!0,taskbar:!0,bodyClass:"health-app",body:'\n                <div class="top">\n                    <div class="title">\n                        PC health at a glance\n                    </div>\n                </div>\n                <div class="mid">\n                    <div class="left">\n                        <div class="device"></div>\n                        <div class="device-title">DESKTOP-MCRO96</div>\n                        <div class="specs">\n                            <div class="spec">32 MB RAM</div>\n                            <div class="spec">512 MB HDD</div>\n                            <div class="spec">26 years old</div>\n                        </div>\n                    </div>\n                    <div class="content">\n                        <div class="upgrade-notify-box">\n                            <div>\n                                <span class="bold-noaa">INTRODUCING WINDOWS 97</span>\n                            </div>\n                            <div class="ex">\n                                Let\'s check if this PC meets the system requirements.<br>\n                                If it does, you can get the free upgrade when it\'s available.\n                            </div>\n                            <button class="w96-button check-now">Check now</button>\n                        </div>\n\n                        <div class="check-items">\n                            <div class="item account">\n                                <div class="top">\n                                    <div class="icon"></div>\n                                    <div class="title"><span class="bold-noaa">Backup and Sync</span></div>\n                                    <div class="action alert">Attention required</div>\n                                </div>\n\n                                <div class="explanation">\n                                    <span class="title">Sign in with a Mikesoft account to get started</span>\n                                    <div>\n                                        <div style="display: inline-block;width: calc(100% - 75px);">\n                                            Keep your preferences in sync across devices, and set up MikeDrive to sync your files too. It will only cost you your precious soul and data.\n                                        </div>\n                                        <button class="w96-button sign-in" style="display: inline-block; vertical-align: top; width: 68px; margin-left: 2px;">Sign in</button>\n                                    </div>\n                                </div>\n                            </div>\n\n                            <div class="item update">\n                                <div class="top">\n                                    <div class="icon"></div>\n                                    <div class="title"><span class="bold-noaa">Windows Update</span></div>\n                                    <div class="action">You are up to date</div>\n                                </div>\n                            </div>\n\n                            <div class="item storage">\n                                <div class="top">\n                                    <div class="icon"></div>\n                                    <div class="title"><span class="bold-noaa">Storage Capacity</span></div>\n                                    <div class="action">50% full</div>\n                                </div>\n                            </div>\n\n                            <div class="item startup">\n                                <div class="top">\n                                    <div class="icon"></div>\n                                    <div class="title"><span class="bold-noaa">Startup Time</span></div>\n                                    <div class="action">Ok</div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class="bottom">\n                    <span class="text">Related Links</span>\n\n                    <div class="right">\n                        <button class="w96-button tips" disabled>Tips on PC health</button>\n                        <button class="w96-button more-w97">More on Windows 97</button>\n                    </div>\n                </div>\n            '},!0),s=i.getBodyContainer();s.querySelector(".w96-button.check-now").addEventListener("click",(()=>{DialogCreator.create({title:"This PC can't run Windows 97",icon:"error",body:"The processor isn't supported for Windows 97. <br>While this PC doesn't meet the system requirements to run Windows 97,<br> you'll keep getting Windows 96 updates."})})),s.querySelector(".w96-button.sign-in").addEventListener("click",(()=>{DialogCreator.create({title:"Sign in error",icon:"error",body:"Unable to contact the Mikesoft Cloud servers. This is probably your fault."})})),s.querySelector(".w96-button.more-w97").addEventListener("click",(()=>{DialogCreator.create({title:"Error",icon:"error",body:"General failure"})})),i.show()}}

return await WApplication.execAsync(new HealthCheckApp(), this.boxedEnv.args, this);