From cfe60c3ab3480102d79ee24d54297a8abd8dc0f6 Mon Sep 17 00:00:00 2001 From: urielsalis Date: Wed, 22 Nov 2023 17:58:17 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20urielsal?= =?UTF-8?q?is/urielsalis.github.io@988011ba2415631f5f4a91649864cfa93261add?= =?UTF-8?q?e=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 _next/static/chunks/pages/index-4fb717268de4d2f4.js | 1 + _next/static/chunks/pages/index-59686215865113d1.js | 1 - index.html | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) rename _next/static/{hLauGA_j56u5I4kXRjp7P => GK2i-a9lzMEQPYFnzI_ax}/_buildManifest.js (82%) rename _next/static/{hLauGA_j56u5I4kXRjp7P => GK2i-a9lzMEQPYFnzI_ax}/_ssgManifest.js (100%) create mode 100644 _next/static/chunks/pages/index-4fb717268de4d2f4.js delete mode 100644 _next/static/chunks/pages/index-59686215865113d1.js diff --git a/404.html b/404.html index 170c9418..833969ae 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/hLauGA_j56u5I4kXRjp7P/_buildManifest.js b/_next/static/GK2i-a9lzMEQPYFnzI_ax/_buildManifest.js similarity index 82% rename from _next/static/hLauGA_j56u5I4kXRjp7P/_buildManifest.js rename to _next/static/GK2i-a9lzMEQPYFnzI_ax/_buildManifest.js index 467a56bd..4f12ac64 100644 --- a/_next/static/hLauGA_j56u5I4kXRjp7P/_buildManifest.js +++ b/_next/static/GK2i-a9lzMEQPYFnzI_ax/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/b637e9a5-7245d18b966de1f7.js","static/chunks/106-49963f6d1dd34304.js","static/chunks/pages/index-59686215865113d1.js"],"/_error":["static/chunks/pages/_error-ee5b5fb91d29d86f.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/b637e9a5-7245d18b966de1f7.js","static/chunks/106-49963f6d1dd34304.js","static/chunks/pages/index-4fb717268de4d2f4.js"],"/_error":["static/chunks/pages/_error-ee5b5fb91d29d86f.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/hLauGA_j56u5I4kXRjp7P/_ssgManifest.js b/_next/static/GK2i-a9lzMEQPYFnzI_ax/_ssgManifest.js similarity index 100% rename from _next/static/hLauGA_j56u5I4kXRjp7P/_ssgManifest.js rename to _next/static/GK2i-a9lzMEQPYFnzI_ax/_ssgManifest.js diff --git a/_next/static/chunks/pages/index-4fb717268de4d2f4.js b/_next/static/chunks/pages/index-4fb717268de4d2f4.js new file mode 100644 index 00000000..70623b1f --- /dev/null +++ b/_next/static/chunks/pages/index-4fb717268de4d2f4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5557:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(9533)}])},9533:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return pages}});var i=s(5893),a=s(7294),booting_screen=function(e){return(0,i.jsxs)("div",{style:e.visible||e.isShutDown?{zIndex:"100"}:{zIndex:"-20"},className:(e.visible||e.isShutDown?" visible opacity-100":" invisible opacity-0 ")+" absolute duration-500 select-none flex flex-col justify-around items-center top-0 right-0 overflow-hidden m-0 p-0 h-screen w-screen bg-black",children:[(0,i.jsx)("img",{width:"400px",height:"400px",className:"md:w-1/4 w-1/2",src:"./themes/Yaru/status/cof_orange_hex.svg",alt:"Ubuntu Logo"}),(0,i.jsx)("div",{className:"w-10 h-10 flex justify-center items-center rounded-full outline-none cursor-pointer",onClick:e.turnOn,children:e.isShutDown?(0,i.jsx)("div",{className:"bg-white rounded-full flex justify-center items-center w-10 h-10 hover:bg-gray-300",children:(0,i.jsx)("img",{width:"32px",height:"32px",className:"w-8",src:"./themes/Yaru/status/power-button.svg",alt:"Power Button"})}):(0,i.jsx)("img",{width:"40px",height:"40px",className:" w-10 "+(e.visible?" animate-spin ":""),src:"./themes/Yaru/status/process-working-symbolic.svg",alt:"Ubuntu Process Symbol"})}),(0,i.jsx)("img",{width:"200px",height:"100px",className:"md:w-1/5 w-1/2",src:"./themes/Yaru/status/ubuntu_white_hex.svg",alt:"Ubuntu Name"}),(0,i.jsxs)("div",{className:"text-white mb-4",children:[(0,i.jsx)("a",{className:"underline",href:"https://www.linkedin.com/in/urielsalis/",rel:"noreferrer noopener",target:"_blank",children:"linkedin"}),(0,i.jsx)("span",{className:"font-bold mx-1",children:"|"}),(0,i.jsx)("a",{href:"https://github.com/urielsalis/urielsalis.github.io",rel:"noreferrer noopener",target:"_blank",className:"underline",children:"github"})]})]})};function BackgroundImage(e){return(0,i.jsx)("div",{style:{backgroundImage:"url(".concat({"wall-1":"./images/wallpapers/wall-1.webp","wall-2":"./images/wallpapers/wall-2.webp","wall-3":"./images/wallpapers/wall-3.webp","wall-4":"./images/wallpapers/wall-4.webp","wall-5":"./images/wallpapers/wall-5.webp","wall-6":"./images/wallpapers/wall-6.webp","wall-7":"./images/wallpapers/wall-7.webp","wall-8":"./images/wallpapers/wall-8.webp"}[e.img],")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPositionX:"center"},className:"bg-ubuntu-img absolute -z-10 top-0 right-0 overflow-hidden h-full w-full"})}let SideBarApp=class SideBarApp extends a.Component{componentDidMount(){this.id=this.props.id}render(){return(0,i.jsxs)("div",{tabIndex:"0",onClick:this.openApp,onMouseEnter:()=>{this.setState({showTitle:!0})},onMouseLeave:()=>{this.setState({showTitle:!1})},className:(!1===this.props.isClose[this.id]&&this.props.isFocus[this.id]?"bg-white bg-opacity-10 ":"")+" w-auto p-2 outline-none relative transition hover:bg-white hover:bg-opacity-10 rounded m-1",id:"sidebar-"+this.props.id,children:[(0,i.jsx)("img",{width:"28px",height:"28px",className:"w-7",src:this.props.icon,alt:"Ubuntu App Icon"}),(0,i.jsx)("img",{className:(this.state.scaleImage?" scale ":"")+" scalable-app-icon w-7 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",src:this.props.icon,alt:""}),!1===this.props.isClose[this.id]?(0,i.jsx)("div",{className:" w-1 h-1 absolute left-0 top-1/2 bg-ub-orange rounded-sm"}):null,(0,i.jsx)("div",{className:(this.state.showTitle?" visible ":" invisible ")+" w-max py-0.5 px-1.5 absolute top-1.5 left-full ml-3 m-1 text-ubt-grey text-opacity-90 text-sm bg-ub-grey bg-opacity-70 border-gray-400 border border-opacity-40 rounded-md",children:this.props.title})]})}constructor(){super(),this.scaleImage=()=>{setTimeout(()=>{this.setState({scaleImage:!1})},1e3),this.setState({scaleImage:!0})},this.openApp=()=>{!this.props.isMinimized[this.id]&&this.props.isClose[this.id]&&this.scaleImage(),this.props.openApp(this.id),this.setState({showTitle:!1})},this.id=null,this.state={showTitle:!1,scaleImage:!1}}};let renderApps=e=>{let t=[];return e.apps.forEach((s,a)=>{!1!==e.favourite_apps[s.id]&&t.push((0,i.jsx)(SideBarApp,{id:s.id,title:s.title,icon:s.icon,isClose:e.closed_windows,isFocus:e.focused_windows,openApp:e.openAppByAppId,isMinimized:e.isMinimized,openFromMinimised:e.openFromMinimised},a))}),t};function SideBar(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:(e.hide?" -translate-x-full ":"")+" absolute transform duration-300 select-none z-40 left-0 top-0 h-full pt-7 w-auto flex flex-col justify-start items-center border-black border-opacity-60 bg-black bg-opacity-50",children:[0!==Object.keys(e.closed_windows).length?renderApps(e):null,(0,i.jsx)(AllApps,{showApps:e.showAllApps})]}),(0,i.jsx)("div",{onMouseEnter:function(){e.hideSideBar(null,!1)},onMouseLeave:function(){setTimeout(()=>{e.hideSideBar(null,!0)},2e3)},className:"w-1 h-full absolute top-0 left-0 bg-transparent z-50"})]})}function AllApps(e){let[t,s]=(0,a.useState)(!1);return(0,i.jsx)("div",{className:"w-10 h-10 rounded m-1 hover:bg-white hover:bg-opacity-10 flex items-center justify-center",style:{marginTop:"auto"},onMouseEnter:()=>{s(!0)},onMouseLeave:()=>{s(!1)},onClick:e.showApps,children:(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("img",{width:"28px",height:"28px",className:"w-7",src:"./themes/Yaru/system/view-app-grid-symbolic.svg",alt:"Ubuntu view app"}),(0,i.jsx)("div",{className:(t?" visible ":" invisible ")+" w-max py-0.5 px-1.5 absolute top-1 left-full ml-5 text-ubt-grey text-opacity-90 text-sm bg-ub-grey bg-opacity-70 border-gray-400 border border-opacity-40 rounded-md",children:"Show Applications"})]})})}var r=s(9755),o=s.n(r),n=s(9089);let Terminal=class Terminal extends a.Component{componentDidMount(){this.reStartTerminal()}componentDidUpdate(){clearInterval(this.cursor),this.startCursor(this.terminal_rows-2)}componentWillUnmount(){clearInterval(this.cursor)}xss(e){if(e)return e.split("").map(e=>{switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"/":return"/";default:return e}}).join("")}render(){return(0,i.jsx)("div",{className:"h-full w-full bg-ub-drk-abrgn text-white text-sm font-bold",id:"terminal-body",children:this.state.terminal})}constructor(){super(),this.reStartTerminal=()=>{clearInterval(this.cursor),o()("#terminal-body").empty(),this.appendTerminalRow()},this.appendTerminalRow=()=>{let e=this.state.terminal;e.push(this.terminalRow(this.terminal_rows)),this.setState({terminal:e}),this.terminal_rows+=2},this.terminalRow=e=>(0,i.jsxs)(a.Fragment,{children:[(0,i.jsxs)("div",{className:"flex w-full h-5",children:[(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:" text-ubt-green",children:"uriel@Salis"}),(0,i.jsx)("div",{className:"text-white mx-px font-medium",children:":"}),(0,i.jsx)("div",{className:" text-ubt-blue",children:this.current_directory}),(0,i.jsx)("div",{className:"text-white mx-px font-medium mr-1",children:"$"})]}),(0,i.jsxs)("div",{id:"cmd",onClick:this.focusCursor,className:" bg-transperent relative flex-1 overflow-hidden",children:[(0,i.jsx)("span",{id:"show-".concat(e),className:" float-left whitespace-pre pb-1 opacity-100 font-normal tracking-wider"}),(0,i.jsx)("div",{id:"cursor-".concat(e),className:" float-left mt-1 w-1.5 h-3.5 bg-white"}),(0,i.jsx)("input",{id:"terminal-input-".concat(e),"data-row-id":e,onKeyDown:this.checkKey,onBlur:this.unFocusCursor,className:" absolute top-0 left-0 w-full opacity-0 outline-none bg-transparent",spellCheck:!1,autoFocus:!0,autoComplete:"off",type:"text"})]})]}),(0,i.jsx)("div",{id:"row-result-".concat(e),className:"my-2 font-normal"})]},e),this.focusCursor=e=>{clearInterval(this.cursor),this.startCursor(o()(e.target).data("row-id"))},this.unFocusCursor=e=>{this.stopCursor(o()(e.target).data("row-id"))},this.startCursor=e=>{clearInterval(this.cursor),o()("input#terminal-input-".concat(e)).trigger("focus"),o()("input#terminal-input-".concat(e)).on("input",function(){o()("#cmd span#show-".concat(e)).text(o()(this).val())}),this.cursor=window.setInterval(function(){"visible"===o()("#cursor-".concat(e)).css("visibility")?o()("#cursor-".concat(e)).css({visibility:"hidden"}):o()("#cursor-".concat(e)).css({visibility:"visible"})},500)},this.stopCursor=e=>{clearInterval(this.cursor),o()("#cursor-".concat(e)).css({visibility:"visible"})},this.removeCursor=e=>{this.stopCursor(e),o()("#cursor-".concat(e)).css({display:"none"})},this.clearInput=e=>{o()("input#terminal-input-".concat(e)).trigger("blur")},this.checkKey=e=>{if("Enter"===e.key){let t=o()(e.target).data("row-id"),s=o()("input#terminal-input-".concat(t)).val().trim();0!==s.length&&(this.removeCursor(t),this.handleCommands(s,t),this.prev_commands.push(s),this.commands_index=this.prev_commands.length-1,this.clearInput(t))}else if("ArrowUp"===e.key){let t;t=this.commands_index<=-1?"":this.prev_commands[this.commands_index];let s=o()(e.target).data("row-id");o()("input#terminal-input-".concat(s)).val(t),o()("#show-".concat(s)).text(t),this.commands_index--}else if("ArrowDown"===e.key){let t;if(this.commands_index>=this.prev_commands.length)return;this.commands_index<=-1&&(this.commands_index=0),t=this.commands_index===this.prev_commands.length?"":this.prev_commands[this.commands_index];let s=o()(e.target).data("row-id");o()("input#terminal-input-".concat(s)).val(t),o()("#show-".concat(s)).text(t),this.commands_index++}},this.childDirectories=e=>{let t=[];return t.push('
'),this.child_directories[e].forEach(e=>{t.push('\''.concat(e,"'"))}),t.push("
"),t},this.closeTerminal=()=>{o()("#close-terminal").trigger("click")},this.handleCommands=(e,t)=>{let s=e.split(" ").filter(Boolean),i=s[0];s.shift();let a="",r=s.join(" ");switch(r=r.trim(),i){case"cd":if(0===s.length||""===r){this.current_directory="~",this.curr_dir_name="root";break}if(s.length>1){a="too many arguments, arguments must be <1.";break}if("personal-documents"===r){a="bash /".concat(this.curr_dir_name," : Permission denied \uD83D\uDE0F");break}this.child_directories[this.curr_dir_name].includes(r)?(this.current_directory+="/"+r,this.curr_dir_name=r):"."===r||".."===r||"../"===r?(this.current_directory="~",this.curr_dir_name="root"):a="bash: cd: ".concat(s,": No such file or directory");break;case"ls":let o=s[0];if((""===o||null==o)&&(o=this.curr_dir_name),s.length>1){a="too many arguments, arguments must be <1.";break}a=o in this.child_directories?this.childDirectories(o).join(""):"personal-documents"===o?"Nope! \uD83D\uDE43":"ls: cannot access '".concat(s,"': No such file or directory ");break;case"mkdir":void 0!==s[0]&&""!==s[0]?(this.props.addFolder(s[0]),a=""):a="mkdir: missing operand";break;case"pwd":a=this.current_directory.replace("~","/home/uriel");break;case"code":"."===s[0]||0===s.length?this.props.openApp("vscode"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands:[ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg]";break;case"echo":a=this.xss(s.join(" "));break;case"spotify":"."===s[0]||0===s.length?this.props.openApp("spotify"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"chrome":"."===s[0]||0===s.length?this.props.openApp("chrome"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"todoist":"."===s[0]||0===s.length?this.props.openApp("todo-ist"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"trash":"."===s[0]||0===s.length?this.props.openApp("trash"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"about-uriel":"."===s[0]||0===s.length?this.props.openApp("about-uriel"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"terminal":"."===s[0]||0===s.length?this.props.openApp("terminal"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"settings":"."===s[0]||0===s.length?this.props.openApp("settings"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"sendmsg":"."===s[0]||0===s.length?this.props.openApp("gedit"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"clear":this.reStartTerminal();return;case"exit":this.closeTerminal();return;case"sudo":n.ZP.event({category:"Sudo Access",action:"lol"}),a="";break;case"rick":n.ZP.event({category:"Rick",action:"lol"}),a='';break;default:a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]"}document.getElementById("row-result-".concat(t)).innerHTML=a,this.appendTerminalRow()},this.cursor="",this.terminal_rows=1,this.current_directory="~",this.curr_dir_name="root",this.prev_commands=[],this.commands_index=-1,this.child_directories={root:["books","projects","personal-documents","skills","languages","PDPU","interests"],PDPU:["Sem-6"],books:["Eric-Jorgenson_The-Almanack-of-Naval-Ravikant.pdf","Elon Musk: How the Billionaire CEO of SpaceX.pdf","The $100 Startup_CHRIS_GUILLEBEAU.pdf","The_Magic_of_Thinking_Big.pdf"],skills:["Front-end development","React.js","jQuery","Flutter","Express.js","SQL","Firebase"],projects:["urielsalis-personal-portfolio","synonyms-list-react","economist.com-unlocked","Improve-Codeforces","flutter-banking-app","Meditech-Healthcare","CPU-Scheduling-APP-React-Native"],interests:["Software Engineering","Deep Learning","Computer Vision"],languages:["Javascript","C++","Java","Dart"]},this.state={terminal:[]}}};let displayTerminal=(e,t)=>(0,i.jsx)(Terminal,{addFolder:e,openApp:t,children:" "});function Settings(e){let t={"wall-1":"./images/wallpapers/wall-1.webp","wall-2":"./images/wallpapers/wall-2.webp","wall-3":"./images/wallpapers/wall-3.webp","wall-4":"./images/wallpapers/wall-4.webp","wall-5":"./images/wallpapers/wall-5.webp","wall-6":"./images/wallpapers/wall-6.webp","wall-7":"./images/wallpapers/wall-7.webp","wall-8":"./images/wallpapers/wall-8.webp"},changeBackgroundImage=t=>{e.changeBackgroundImage(o()(t.target).data("path"))};return(0,i.jsxs)("div",{className:"w-full flex-col flex-grow z-20 max-h-full overflow-y-auto windowMainScreen select-none bg-ub-cool-grey",children:[(0,i.jsx)("div",{className:" md:w-2/5 w-2/3 h-1/3 m-auto my-4",style:{backgroundImage:"url(".concat(t[e.currBgImgName],")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}}),(0,i.jsx)("div",{className:"flex flex-wrap justify-center items-center border-t border-gray-900",children:Object.keys(t).map((s,a)=>(0,i.jsx)("div",{tabIndex:"1",onFocus:changeBackgroundImage,"data-path":s,className:(s===e.currBgImgName?" border-yellow-700 ":" border-transparent ")+" md:px-28 md:py-20 md:m-4 m-2 px-14 py-10 outline-none border-4 border-opacity-80",style:{backgroundImage:"url(".concat(t[s],")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}},a))})]})}let Chrome=class Chrome extends a.Component{componentDidMount(){let e=localStorage.getItem("chrome-url"),t=localStorage.getItem("chrome-display-url");null!=e&&this.setState({url:e,display_url:t},this.refreshChrome)}render(){return(0,i.jsxs)("div",{className:"h-full w-full flex flex-col bg-ub-cool-grey",children:[this.displayUrlBar(),(0,i.jsx)("iframe",{src:this.state.url,className:"flex-grow",id:"chrome-screen",frameBorder:"0",title:"Ubuntu Chrome Url"})]})}constructor(){super(),this.storeVisitedUrl=(e,t)=>{localStorage.setItem("chrome-url",e),localStorage.setItem("chrome-display-url",t)},this.refreshChrome=()=>{document.getElementById("chrome-screen").src+=""},this.goToHome=()=>{this.setState({url:this.home_url,display_url:"https://www.google.com"}),this.refreshChrome()},this.checkKey=e=>{if("Enter"===e.key){let t=e.target.value,s="";0!==(t=t.trim()).length&&(0!==t.indexOf("http://")&&0!==t.indexOf("https://")&&(t="https://"+t),s=t=encodeURI(t),t.includes("google.com")&&(t="https://www.google.com/webhp?igu=1",s="https://www.google.com"),this.setState({url:t,display_url:t}),this.storeVisitedUrl(t,s),document.getElementById("chrome-url-bar").blur())}},this.handleDisplayUrl=e=>{this.setState({display_url:e.target.value})},this.displayUrlBar=()=>(0,i.jsxs)("div",{className:"w-full pt-0.5 pb-1 flex justify-start items-center text-white text-sm border-b border-gray-900",children:[(0,i.jsx)("div",{onClick:this.refreshChrome,className:" ml-2 mr-1 flex justify-center items-center rounded-full bg-gray-50 bg-opacity-0 hover:bg-opacity-10",children:(0,i.jsx)("img",{className:"w-5",src:"./themes/Yaru/status/chrome_refresh.svg",alt:"Ubuntu Chrome Refresh"})}),(0,i.jsx)("div",{onClick:this.goToHome,className:" mr-2 ml-1 flex justify-center items-center rounded-full bg-gray-50 bg-opacity-0 hover:bg-opacity-10",children:(0,i.jsx)("img",{className:"w-5",src:"./themes/Yaru/status/chrome_home.svg",alt:"Ubuntu Chrome Home"})}),(0,i.jsx)("input",{onKeyDown:this.checkKey,onChange:this.handleDisplayUrl,value:this.state.display_url,id:"chrome-url-bar",className:"outline-none bg-ub-grey rounded-full pl-3 py-0.5 mr-3 w-5/6 text-gray-300 focus:text-white",type:"url",spellCheck:!1,autoComplete:"off"})]}),this.home_url="https://www.google.com/webhp?igu=1",this.state={url:"https://www.google.com/webhp?igu=1",display_url:"https://www.google.com"}}};let Trash=class Trash extends a.Component{componentDidMount(){let e=localStorage.getItem("trash-empty");null!=e&&"true"===e&&this.setState({empty:!0})}render(){return(0,i.jsxs)("div",{className:"w-full h-full flex flex-col bg-ub-cool-grey text-white select-none",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between w-full bg-ub-warm-grey bg-opacity-40 text-sm",children:[(0,i.jsx)("span",{className:"font-bold ml-2",children:"Trash"}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:"border border-black bg-black bg-opacity-50 px-3 py-1 my-1 mx-1 rounded text-gray-300",children:"Restore"}),(0,i.jsx)("div",{onClick:this.emptyTrash,className:"border border-black bg-black bg-opacity-50 px-3 py-1 my-1 mx-1 rounded hover:bg-opacity-80",children:"Empty"})]})]}),this.state.empty?this.emptyScreen():this.showTrashItems()]})}constructor(){super(),this.focusFile=e=>{o()(e.target).children().get(0).classList.toggle("opacity-60"),o()(e.target).children().get(1).classList.toggle("bg-ub-orange")},this.emptyTrash=()=>{this.setState({empty:!0}),localStorage.setItem("trash-empty",!0)},this.emptyScreen=()=>(0,i.jsxs)("div",{className:"flex-grow flex flex-col justify-center items-center",children:[(0,i.jsx)("img",{className:" w-24",src:"./themes/Yaru/status/user-trash-symbolic.svg",alt:"Ubuntu Trash"}),(0,i.jsx)("span",{className:"font-bold mt-4 text-xl px-1 text-gray-400",children:"Trash is Empty"})]}),this.showTrashItems=()=>(0,i.jsx)("div",{className:"flex-grow ml-4 flex flex-wrap items-start content-start justify-start overflow-y-auto windowMainScreen",children:this.trashItems.map((e,t)=>(0,i.jsxs)("div",{tabIndex:"1",onFocus:this.focusFile,onBlur:this.focusFile,className:"flex flex-col items-center text-sm outline-none w-16 my-2 mx-4",children:[(0,i.jsx)("div",{className:"w-16 h-16 flex items-center justify-center",children:(0,i.jsx)("img",{src:e.icon,alt:"Ubuntu File Icons"})}),(0,i.jsx)("span",{className:"text-center rounded px-0.5",children:e.name})]},t))}),this.trashItems=[{name:"php",icon:"./themes/filetypes/php.png"},{name:"Angular.js",icon:"./themes/filetypes/js.png"},{name:"node_modules",icon:"./themes/Yaru/system/folder.png"},{name:"abandoned project",icon:"./themes/Yaru/system/folder.png"},{name:"18BCP127 assignment name.zip",icon:"./themes/filetypes/zip.png"},{name:"project final",icon:"./themes/Yaru/system/folder.png"},{name:"project ultra-final",icon:"./themes/Yaru/system/folder.png"}],this.state={empty:!1}}};var l=s(5247);let Gedit=class Gedit extends a.Component{componentDidMount(){l.ZP.init("JTbKuwT7e0-M5Oq7S")}render(){return(0,i.jsxs)("div",{className:"w-full h-full relative flex flex-col bg-ub-cool-grey text-white select-none",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between w-full bg-ub-gedit-light bg-opacity-60 border-b border-t border-blue-400 text-sm",children:[(0,i.jsx)("span",{className:"font-bold ml-2",children:"Send a Message to Me"}),(0,i.jsx)("div",{className:"flex",children:(0,i.jsx)("div",{onClick:this.sendMessage,className:"border border-black bg-black bg-opacity-50 px-3 py-0.5 my-1 mx-1 rounded hover:bg-opacity-80",children:"Send"})})]}),(0,i.jsxs)("div",{className:"relative flex-grow flex flex-col bg-ub-gedit-dark font-normal windowMainScreen",children:[(0,i.jsx)("div",{className:"absolute left-0 top-0 h-full px-2 bg-ub-gedit-darker"}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("input",{id:"sender-name",className:" w-full text-ubt-gedit-orange focus:bg-ub-gedit-light outline-none font-medium text-sm pl-6 py-0.5 bg-transparent",placeholder:"Your Email / Name :",spellCheck:"false",autoComplete:"off",type:"text"}),(0,i.jsx)("span",{className:"absolute left-1 top-1/2 transform -translate-y-1/2 font-bold light text-sm text-ubt-gedit-blue",children:"1"})]}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("input",{id:"sender-subject",className:" w-full my-1 text-ubt-gedit-blue focus:bg-ub-gedit-light gedit-subject outline-none text-sm font-normal pl-6 py-0.5 bg-transparent",placeholder:"subject (may be a feedback for this website!)",spellCheck:"false",autoComplete:"off",type:"text"}),(0,i.jsx)("span",{className:"absolute left-1 top-1/2 transform -translate-y-1/2 font-bold text-sm text-ubt-gedit-blue",children:"2"})]}),(0,i.jsxs)("div",{className:"relative flex-grow",children:[(0,i.jsx)("textarea",{id:"sender-message",className:" w-full gedit-message font-light text-sm resize-none h-full windowMainScreen outline-none tracking-wider pl-6 py-1 bg-transparent",placeholder:"Message",spellCheck:"false",autoComplete:"none",type:"text"}),(0,i.jsx)("span",{className:"absolute left-1 top-1 font-bold text-sm text-ubt-gedit-blue",children:"3"})]})]}),this.state.sending?(0,i.jsx)("div",{className:"flex justify-center items-center animate-pulse h-full w-full bg-gray-400 bg-opacity-30 absolute top-0 left-0",children:(0,i.jsx)("img",{className:" w-8 absolute animate-spin",src:"./themes/Yaru/status/process-working-symbolic.svg",alt:"Ubuntu Process Symbol"})}):null]})}constructor(){super(),this.sendMessage=async()=>{let e=o()("#sender-name").val(),t=o()("#sender-subject").val(),s=o()("#sender-message").val();e=e.trim(),t=t.trim(),s=s.trim();let i=!1;if(0===e.length&&(o()("#sender-name").val(""),o()("#sender-name").attr("placeholder","Name must not be Empty!"),i=!0),0===s.length&&(o()("#sender-message").val(""),o()("#sender-message").attr("placeholder","Message must not be Empty!"),i=!0),i)return;this.setState({sending:!0});let a={name:e,subject:t,message:s};l.ZP.send("service_3xmfau2","template_48gspu5",a).then(()=>{this.setState({sending:!1}),o()("#close-gedit").trigger("click")}).catch(()=>{this.setState({sending:!1}),o()("#close-gedit").trigger("click")}),n.ZP.event({category:"Send Message",action:"".concat(e,", ").concat(t,", ").concat(s)})},this.state={sending:!1}}};let AboutUriel=class AboutUriel extends a.Component{componentDidMount(){this.screens={about:(0,i.jsx)(About,{}),education:(0,i.jsx)(Education,{}),skills:(0,i.jsx)(Skills,{}),projects:(0,i.jsx)(Projects,{}),talks:(0,i.jsx)(Talks,{}),resume:(0,i.jsx)(Resume,{})};let e=localStorage.getItem("about-section");null==e&&(e=this.props.default),this.changeScreen(document.getElementById(e))}render(){return(0,i.jsxs)("div",{className:"w-full h-full flex bg-ub-cool-grey text-white select-none relative",children:[(0,i.jsx)("div",{className:"md:flex hidden flex-col w-1/4 md:w-1/5 text-sm overflow-y-auto windowMainScreen border-r border-black",children:this.renderNavLinks()}),(0,i.jsxs)("div",{onClick:this.showNavBar,className:"md:hidden flex flex-col items-center justify-center absolute bg-ub-cool-grey rounded w-6 h-6 top-1 left-1",children:[(0,i.jsx)("div",{className:" w-3.5 border-t border-white"}),(0,i.jsx)("div",{className:" w-3.5 border-t border-white",style:{marginTop:"2pt",marginBottom:"2pt"}}),(0,i.jsx)("div",{className:" w-3.5 border-t border-white"}),(0,i.jsx)("div",{className:(this.state.navbar?" visible animateShow z-30 ":" invisible ")+" md:hidden text-xs absolute bg-ub-cool-grey py-0.5 px-1 rounded-sm top-full mt-1 left-0 shadow border-black border border-opacity-20",children:this.renderNavLinks()})]}),(0,i.jsx)("div",{className:"flex flex-col w-3/4 md:w-4/5 justify-start items-center flex-grow bg-ub-grey overflow-y-auto windowMainScreen",children:this.state.screen})]})}constructor(e){super(e),this.changeScreen=e=>{let t=e.id||e.target.id;localStorage.setItem("about-section",t),n.ZP.send({hitType:"pageview",page:"/".concat(t),title:"Custom Title"}),this.setState({screen:this.screens[t],active_screen:t})},this.showNavBar=()=>{this.setState({navbar:!this.state.navbar})},this.renderNavLinks=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{id:"about",tabIndex:"0",onFocus:this.changeScreen,className:("about"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"about uriel",src:"./themes/Yaru/status/about.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"About Me"})]}),(0,i.jsxs)("div",{id:"education",tabIndex:"0",onFocus:this.changeScreen,className:("education"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"uriel' education",src:"./themes/Yaru/status/education.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"Education"})]}),(0,i.jsxs)("div",{id:"skills",tabIndex:"0",onFocus:this.changeScreen,className:("skills"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"uriel' skills",src:"./themes/Yaru/status/skills.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"Skills"})]}),(0,i.jsxs)("div",{id:"projects",tabIndex:"0",onFocus:this.changeScreen,className:("projects"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"uriel' projects",src:"./themes/Yaru/status/projects.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"Projects"})]}),(0,i.jsxs)("div",{id:"talks",tabIndex:"0",onFocus:this.changeScreen,className:("projects"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"uriel' talks",src:"./themes/Yaru/status/audio-headphones-symbolic.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"Talks"})]}),(0,i.jsxs)("div",{id:"resume",tabIndex:"0",onFocus:this.changeScreen,className:("resume"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"uriel's resume",src:"./themes/Yaru/status/download.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"Resume"})]})]}),this.screens={},this.state={screen:()=>{},active_screen:this.props.default,navbar:!1}}};function About(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"w-20 md:w-28 my-4 bg-white rounded-full",children:(0,i.jsx)("img",{className:"w-full",src:"./images/logos/bitmoji.png",alt:"Uriel Salischiker Logo"})}),(0,i.jsxs)("div",{className:" mt-4 md:mt-8 text-lg md:text-2xl text-center px-1",children:[(0,i.jsxs)("div",{children:["my name is ",(0,i.jsx)("span",{className:"font-bold",children:"Uriel Salischiker"})," ,"]}),(0,i.jsxs)("div",{className:"font-normal ml-1",children:["I'm a ",(0,i.jsx)("span",{className:"text-pink-600 font-bold",children:"Software Engineer!"})]})]}),(0,i.jsxs)("div",{className:" mt-4 relative md:my-8 pt-px bg-white w-32 md:w-48",children:[(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 left-0"}),(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 right-0"})]}),(0,i.jsxs)("ul",{className:" mt-4 leading-tight tracking-tight text-sm md:text-base w-5/6 md:w-3/4 emoji-list",children:[(0,i.jsxs)("li",{className:" list-pc",children:["I'm a ",(0,i.jsx)("span",{className:" font-medium",children:"Senior Software Engineer"})," experienced in leading teams and mentoring other engineers! ( Hit me up ",(0,i.jsx)("a",{className:"text-underline",href:"mailto:uriel@urielsalis.com",children:(0,i.jsx)("u",{children:"@uriel@urielsalis.com"})})," :) )"]}),(0,i.jsx)("li",{className:" mt-3 list-building",children:" My main tech stack is Kotlin/Java, but I have experience in Python, Go and Typescript."}),(0,i.jsx)("li",{className:" mt-3 list-time",children:" I have several personal projects in the Minecraft community, on top of discord moderation work"}),(0,i.jsx)("li",{className:" mt-3 list-star",children:" Director @ https://givin.gifts !"})]})]})}function Education(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:" font-medium relative text-2xl mt-2 md:mt-4 mb-4",children:["Education",(0,i.jsxs)("div",{className:"absolute pt-px bg-white mt-px top-full w-full",children:[(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 left-full"}),(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 right-full"})]})]}),(0,i.jsx)("ul",{className:" w-10/12 mt-4 ml-4 px-0 md:px-1",children:(0,i.jsxs)("li",{className:"list-disc",children:[(0,i.jsx)("div",{className:" text-lg md:text-xl text-left font-bold leading-tight",children:"FAMAF - UNC"}),(0,i.jsx)("div",{className:" text-sm text-gray-400 mt-0.5",children:"2016 - 2018"}),(0,i.jsx)("div",{className:" text-sm md:text-base",children:"Computer Computer Science"}),(0,i.jsx)("div",{className:"text-sm text-gray-300 font-bold mt-1",children:"Incomplete"})]})})]})}function Skills(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:" font-medium relative text-2xl mt-2 md:mt-4 mb-4",children:["Technical Skills",(0,i.jsxs)("div",{className:"absolute pt-px bg-white mt-px top-full w-full",children:[(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 left-full"}),(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 right-full"})]})]}),(0,i.jsxs)("ul",{className:" tracking-tight text-sm md:text-base w-10/12 emoji-list",children:[(0,i.jsx)("li",{className:" list-arrow text-sm md:text-base mt-4 leading-tight tracking-tight",children:"I've worked with a wide variety of programming languages & frameworks."}),(0,i.jsx)("li",{className:" list-arrow text-sm md:text-base mt-4 leading-tight tracking-tight",children:(0,i.jsxs)("div",{children:[" My areas of expertise are ",(0,i.jsx)("strong",{className:"text-ubt-gedit-orange",children:"Java and Kotlin!"})]})}),(0,i.jsx)("li",{className:" list-arrow text-sm md:text-base mt-4 leading-tight tracking-tight",children:(0,i.jsx)("div",{children:"Here are my most frequently used"})})]}),(0,i.jsxs)("div",{className:"w-full md:w-10/12 flex mt-4",children:[(0,i.jsx)("div",{className:" text-sm text-center md:text-base w-1/2 font-bold",children:"Languages & Tools"}),(0,i.jsx)("div",{className:" text-sm text-center md:text-base w-1/2 font-bold",children:"Frameworks & Libraries"})]}),(0,i.jsxs)("div",{className:"w-full md:w-10/12 flex justify-center items-start font-bold text-center",children:[(0,i.jsx)("div",{className:"px-2 w-1/2",children:(0,i.jsxs)("div",{className:"flex flex-wrap justify-center items-start w-full mt-2",children:[(0,i.jsx)("img",{className:"m-1",src:"https://img.shields.io/badge/-Kotlin-%23F7DF1C?style=flat&logo=kotlin&logoColor=000000&labelColor=%23F7DF1C&color=%23FFCE5A",alt:"kotlin"}),(0,i.jsx)("img",{className:"m-1",src:"https://img.shields.io/badge/Java-00599C?style=flat&logo=java&logoColor=white",alt:"java"}),(0,i.jsx)("img",{src:"https://img.shields.io/badge/-Git-%23F05032?style=flat&logo=git&logoColor=%23ffffff",alt:"git",className:"m-1"}),(0,i.jsx)("img",{src:"https://img.shields.io/badge/-Intellij-FFCA28?style=flat&logo=intellij-idea&logoColor=000000",alt:"intellij",className:"m-1"})]})}),(0,i.jsx)("div",{className:"px-2 flex flex-wrap items-start w-1/2",children:(0,i.jsxs)("div",{className:"flex flex-wrap justify-center items-start w-full mt-2",children:[(0,i.jsx)("img",{className:" m-1",src:"https://img.shields.io/badge/-Spring-61DAFB?style=flat&logo=spring&logoColor=ffffff",alt:"spring"}),(0,i.jsx)("img",{className:"m-1",src:"https://img.shields.io/badge/Ktor-02569B?style=flat&logo=ktor&logoColor=white",alt:"ktor"}),(0,i.jsx)("img",{className:"m-1",src:"https://img.shields.io/badge/Ratpack-38B2AC?style=flat&logo=ratpack&logoColor=white",alt:"ratpack"}),(0,i.jsx)("img",{src:"https://img.shields.io/badge/-KoTest-339933?style=flat&logo=kotest&logoColor=ffffff",alt:"kotest",className:"m-1"}),(0,i.jsx)("img",{src:"https://img.shields.io/badge/Junit-0769AD?style=flat&logo=junit&logoColor=white",alt:"junit",className:"m-1"}),(0,i.jsx)("img",{className:"m-1",src:"https://img.shields.io/badge/Arrow-593D88?style=flat&logo=arrowkt&logoColor=white",alt:"arrow"})]})})]})]})}function Projects(){let e={javascript:"yellow-300",firebase:"red-600",firestore:"red-500","firebase auth":"red-400","chrome-extension":"yellow-400",flutter:"blue-400",dart:"blue-500","react-native":"purple-500",html5:"pink-600",sass:"pink-400",tensorflow:"yellow-600",django:"green-600",python:"green-200","codeforces-api":"gray-300",tailwindcss:"blue-300","next.js":"purple-600"};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:" font-medium relative text-2xl mt-2 md:mt-4 mb-4",children:["Projects",(0,i.jsxs)("div",{className:"absolute pt-px bg-white mt-px top-full w-full",children:[(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 left-full"}),(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 right-full"})]})]}),(0,i.jsx)("iframe",{src:"https://github.com/sponsors/urielsalis/card",title:"Sponsor urielsalis",className:"my-4 w-5/6 md:w-3/4"}),[{name:"Arisa-KT",date:"Ongoing",link:"https://github.com/mojira/arisa-kt",description:["A bot for jira to automate common tasks, used in the bugtracked for Minecraft!"],domains:["kotlin"]},{name:"MinecraftHopper",date:"Ongoing",link:"https://github.com/MinecraftHopper/MinecraftHopper",description:["A collection of articles for technical support around Minecraft"],domains:["jekyll"]},{name:"Absol",date:"December 2019",link:"https://github.com/LordRalex/absol",description:["A discord bot to handle moderation, hjt logs and automatic messages, used in MinecraftForums and MinecraftHelp"],domains:["go"]},{name:"mc-crash-lib",date:"Aug 2020",link:"https://github.com/urielsalis/mc-crash-lib",description:["A library to parse Minecraft crash reports and look for fixes automatically."],domains:["kotlin"]},{name:"dxdiaglib",date:"May 2019",link:"https://github.com/urielsalis/dxdiaglib",description:["A library to parse dxdiags and look for drivers automatically"],domains:["kotlin"]},{name:"Urielsalads reboot",date:"Jan 2017",link:"https://github.com/urielsalis/Urielsalads-reboot",description:["IRC bot to find drivers and parse hjt"],domains:["java"]},{name:"CurseBot2",date:"Sep 2017",link:"https://github.com/urielsalis/CurseBot2",description:["Reverse-engineering of curse (now twich) chat to build a moderation bot"],domains:["java"]}].map((t,s)=>{let a=t.link.split("/"),r=a[a.length-1];return(0,i.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",className:"flex w-full flex-col px-4",children:(0,i.jsxs)("div",{className:"w-full py-1 px-2 my-2 border border-gray-50 border-opacity-10 rounded hover:bg-gray-50 hover:bg-opacity-5 cursor-pointer",children:[(0,i.jsxs)("div",{className:"flex flex-wrap justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex justify-center items-center",children:[(0,i.jsx)("div",{className:" text-base md:text-lg mr-2",children:t.name.toLowerCase()}),(0,i.jsx)("iframe",{src:"https://ghbtns.com/github-btn.html?user=urielsalis&repo=".concat(r,"&type=star&count=true"),frameBorder:"0",scrolling:"0",width:"150",height:"20",title:t.name.toLowerCase()+"-star"})]}),(0,i.jsx)("div",{className:"text-gray-300 font-light text-sm",children:t.date})]}),(0,i.jsx)("ul",{className:" tracking-normal leading-tight text-sm font-light ml-4 mt-1",children:t.description.map((e,t)=>(0,i.jsx)("li",{className:"list-disc mt-1 text-gray-100",children:e},t))}),(0,i.jsx)("div",{className:"flex flex-wrap items-start justify-start text-xs py-2",children:t.domains?t.domains.map((t,s)=>{let a="border-".concat(e[t]),r="text-".concat(e[t]);return(0,i.jsx)("span",{className:"px-1.5 py-0.5 w-max border ".concat(a," ").concat(r," m-1 rounded-full"),children:t},s)}):null})]})},s)})]})}function Resume(){return(0,i.jsx)("iframe",{className:"h-full w-full",src:"./files/Resume.pdf",title:"Uriel Salischiker resume",frameBorder:"0"})}function Talks(){return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("ul",{className:" tracking-tight text-sm md:text-base w-10/12 emoji-list",children:[(0,i.jsx)("li",{className:" list-arrow text-sm md:text-base mt-4 leading-tight tracking-tight",children:(0,i.jsx)("a",{href:"https://urielsalis.com/functionalkotlin",children:"Functional Kotlin"})}),(0,i.jsx)("li",{className:" list-arrow text-sm md:text-base mt-4 leading-tight tracking-tight",children:(0,i.jsx)("a",{href:"https://urielsalis.com/migrations",children:"The migration handbook"})})]})})}let c=s(6217)._b,d=new c({operators:{add:!0,concatenate:!0,conditional:!0,divide:!0,factorial:!0,multiply:!0,power:!0,remainder:!0,subtract:!0,logical:!1,comparison:!1,in:!1,assignment:!0}});let Calc=class Calc extends a.Component{componentDidMount(){this.reStartTerminal()}componentDidUpdate(){clearInterval(this.cursor),this.startCursor(this.terminal_rows-2)}componentWillUnmount(){clearInterval(this.cursor)}xss(e){if(e)return e.split("").map(e=>{switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"/":return"/";default:return e}}).join("")}render(){return(0,i.jsxs)("div",{className:"h-full w-full bg-ub-drk-abrgn text-ubt-grey opacity-100 p-1 float-left font-normal",children:[(0,i.jsx)("div",{children:"C-style arbitary precision calculator (version 2.12.7.2)"}),(0,i.jsx)("div",{children:"Calc is open software."}),(0,i.jsx)("div",{children:'[ type "exit" to exit, "clear" to clear, "help" for help.]'}),(0,i.jsx)("div",{className:"text-white text-sm font-bold bg-ub-drk-abrgn",id:"calculator-body",children:this.state.terminal})]})}constructor(){super(),this.reStartTerminal=()=>{clearInterval(this.cursor),o()("#calculator-body").empty(),this.appendTerminalRow()},this.appendTerminalRow=()=>{let e=this.state.terminal;e.push(this.terminalRow(this.terminal_rows)),this.setState({terminal:e}),this.terminal_rows+=2},this.terminalRow=e=>(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)("div",{className:" flex p-2 text-ubt-grey opacity-100 mt-1 float-left font-normal "}),(0,i.jsxs)("div",{className:"flex w-full h-5",children:[(0,i.jsxs)("div",{className:" flex text-ubt-green h-1 mr-2",children:[" ",";"," "]}),(0,i.jsxs)("div",{id:"cmd",onClick:this.focusCursor,className:" bg-transperent relative flex-1 overflow-hidden",children:[(0,i.jsx)("span",{id:"show-calculator-".concat(e),className:" float-left whitespace-pre pb-1 opacity-100 font-normal tracking-wider"}),(0,i.jsx)("div",{id:"cursor-".concat(e),className:" float-left mt-1 w-1.5 h-3.5 bg-white"}),(0,i.jsx)("input",{id:"calculator-input-".concat(e),"data-row-id":e,onKeyDown:this.checkKey,onBlur:this.unFocusCursor,className:" absolute top-0 left-0 w-full opacity-0 outline-none bg-transparent",spellCheck:!1,autoFocus:!0,autoComplete:"off",type:"text"})]})]}),(0,i.jsx)("div",{id:"row-calculator-result-".concat(e),className:"my-2 font-normal"})]},e),this.focusCursor=e=>{clearInterval(this.cursor),this.startCursor(o()(e.target).data("row-id"))},this.unFocusCursor=e=>{this.stopCursor(o()(e.target).data("row-id"))},this.startCursor=e=>{clearInterval(this.cursor),o()("input#calculator-input-".concat(e)).trigger("focus"),o()("input#calculator-input-".concat(e)).on("input",function(){o()("#cmd span#show-calculator-".concat(e)).text(o()(this).val())}),this.cursor=window.setInterval(function(){"visible"===o()("#cursor-".concat(e)).css("visibility")?o()("#cursor-".concat(e)).css({visibility:"hidden"}):o()("#cursor-".concat(e)).css({visibility:"visible"})},500)},this.stopCursor=e=>{clearInterval(this.cursor),o()("#cursor-".concat(e)).css({visibility:"visible"})},this.removeCursor=e=>{this.stopCursor(e),o()("#cursor-".concat(e)).css({display:"none"})},this.clearInput=e=>{o()("input#calculator-input-".concat(e)).trigger("blur")},this.checkKey=e=>{if("Enter"===e.key){let t=o()(e.target).data("row-id"),s=o()("input#calculator-input-".concat(t)).val().trim();0!==s.length&&(this.removeCursor(t),this.handleCommands(s,t),this.prev_commands.push(s),this.commands_index=this.prev_commands.length-1,this.clearInput(t))}else if("ArrowUp"===e.key){let t;t=this.commands_index<=-1?"":this.prev_commands[this.commands_index];let s=o()(e.target).data("row-id");o()("input#calculator-input-".concat(s)).val(t),o()("#show-calculator-".concat(s)).text(t),this.commands_index--}else if("ArrowDown"===e.key){let t;if(this.commands_index>=this.prev_commands.length)return;this.commands_index<=-1&&(this.commands_index=0),t=this.commands_index===this.prev_commands.length?"":this.prev_commands[this.commands_index];let s=o()(e.target).data("row-id");o()("input#calculator-input-".concat(s)).val(t),o()("#show-calculator-".concat(s)).text(t),this.commands_index++}},this.closeTerminal=()=>{o()("#close-calc").trigger("click")},this.handleCommands=(e,t)=>{let s=e.split(" ").filter(Boolean)[0],i="";switch(s){case"clear":this.reStartTerminal();return;case"exit":this.closeTerminal();return;case"help":i='Available Commands:
Operators:
addition ( + ), subtraction ( - ),
multiplication ( * ), division ( / ),
modulo ( % )exponentiation. ( ^ )

Mathematical functions:
abs[x] : Absolute value (magnitude) of x
acos[x] : Arc cosine of x (in radians)
acosh[x] : Hyperbolic arc cosine of x (in radians)
asin[x] : Arc sine of x (in radians)
asinh[x] : Hyperbolic arc sine of x (in radians)
atan[x] : Arc tangent of x (in radians)
atanh[x] : Hyperbolic arc tangent of x (in radians)
cbrt[x] : Cube root of x
ceil[x] : Ceiling of x — the smallest integer that’s >= x
cos[x] : Cosine of x (x is in radians)
cosh[x] : Hyperbolic cosine of x (x is in radians)
exp[x] : e^x (exponential/antilogarithm function with base e)
floor[x] : Floor of x — the largest integer that’s <= x
ln[x] : Natural logarithm of x
log[x] : Natural logarithm of x (synonym for ln, not base-10)
log10[x] : Base-10 logarithm of x
log2[x] : Base-2 logarithm of x
round[x] : X, rounded to the nearest integer
sign[x] : Sign of x (-1, 0, or 1 for negative, zero, or positive respectively)
sin[x] : Sine of x (x is in radians)
sinh[x] : Hyperbolic sine of x (x is in radians)
sqrt[x] : Square root of x. Result is NaN (Not a Number) if x is negative.
tan[x] : Tangent of x (x is in radians)
tanh[x] : Hyperbolic tangent of x (x is in radians)


Pre-defined functions:
random(n) : Get a random number in the range [0, n). If n is zero, or not provided, it defaults to 1.
fac(n) n! : (factorial of n: "n * (n-1) * (n-2) * … * 2 * 1") Deprecated. Use the ! operator instead.
min(a,b,…) : Get the smallest (minimum) number in the list.
max(a,b,…) : Get the largest (maximum) number in the list.
hypot(a,b) : Hypotenuse, i.e. the square root of the sum of squares of its arguments.
pyt(a, b) : Alias for hypot.
pow(x, y) : Equivalent to x^y.
roundTo(x, n) : Rounds x to n places after the decimal point.

Constants:
E : The value of Math.E from your JavaScript runtime.
PI : The value of Math.PI from your JavaScript runtime.

Variable assignments :
declare variable and assign a value: x=1 declared variable can be used in further calculation x+2.

clear command for clearing calculator app.

exit command for exit from calculator app. ';break;default:i=this.evaluteExp(e)}document.getElementById("row-calculator-result-".concat(t)).innerHTML=i,this.appendTerminalRow()},this.evaluteExp=e=>{let t,s="";try{t=d.parse(e);try{s=d.evaluate(e,this.variables),2===t.tokens.length&&"IOP2"===t.tokens[2].type&&(this.variables[t.variables()[0]]=s)}catch(e){s=e.message}}catch(e){s="Invalid Expression"}return s},this.cursor="",this.terminal_rows=2,this.prev_commands=[],this.commands_index=-1,this.variables={},this.state={terminal:[]}}};let m=[{id:"chrome",title:"Google Chrome",icon:"./themes/Yaru/apps/chrome.png",disabled:!1,favourite:!0,desktop_shortcut:!0,screen:()=>(0,i.jsx)(Chrome,{children:" "})},{id:"calc",title:"Calc",icon:"./themes/Yaru/apps/calc.png",disabled:!1,favourite:!0,desktop_shortcut:!1,screen:(e,t)=>(0,i.jsx)(Calc,{addFolder:e,openApp:t,children:" "})},{id:"about-uriel",title:"About Uriel",icon:"./themes/Yaru/system/user-home.png",disabled:!1,favourite:!0,desktop_shortcut:!0,screen:()=>(0,i.jsx)(AboutUriel,{default:"about"})},{id:"vscode",title:"Visual Studio Code",icon:"./themes/Yaru/apps/vscode.png",disabled:!1,favourite:!0,desktop_shortcut:!1,screen:function(){return(0,i.jsx)("iframe",{src:"https://github1s.com/urielsalis/urielsalis.github.io/blob/HEAD/components/ubuntu.js",frameBorder:"0",title:"VsCode",className:"h-full w-full bg-ub-cool-grey"})}},{id:"terminal",title:"Terminal",icon:"./themes/Yaru/apps/bash.png",disabled:!1,favourite:!0,desktop_shortcut:!1,screen:displayTerminal},{id:"spotify",title:"Spotify",icon:"./themes/Yaru/apps/spotify.png",disabled:!1,favourite:!0,desktop_shortcut:!1,screen:function(){return(0,i.jsx)("iframe",{src:"https://open.spotify.com/embed/playlist/37i9dQZEVXbMDoHDwVN2tF?si=EmyFiczdTrOMO0eoHQqdlA",frameBorder:"0",title:"Spotify",className:"h-full w-full bg-ub-cool-grey"})}},{id:"settings",title:"Settings",icon:"./themes/Yaru/apps/gnome-control-center.png",disabled:!1,favourite:!0,desktop_shortcut:!1,screen:()=>(0,i.jsx)(Settings,{children:" "})},{id:"trash",title:"Trash",icon:"./themes/Yaru/system/user-trash-full.png",disabled:!1,favourite:!1,desktop_shortcut:!0,screen:()=>(0,i.jsx)(Trash,{children:" "})},{id:"gedit",title:"Contact Me",icon:"./themes/Yaru/apps/gedit.png",disabled:!1,favourite:!1,desktop_shortcut:!0,screen:()=>(0,i.jsx)(Gedit,{children:" "})},{id:"Talks",title:"Talks",icon:"./themes/Yaru/system/user-home.png",disabled:!1,favourite:!0,desktop_shortcut:!0,screen:()=>(0,i.jsx)(AboutUriel,{default:"talks"})}];var h=s(1193),u=s.n(h);let Window=class Window extends a.Component{componentDidMount(){this.id=this.props.id,this.setDefaultWindowDimenstion(),n.ZP.send({hitType:"pageview",page:"/".concat(this.id),title:"Custom Title"}),window.addEventListener("resize",this.resizeBoundries)}componentWillUnmount(){n.ZP.send({hitType:"pageview",page:"/desktop",title:"Custom Title"}),window.removeEventListener("resize",this.resizeBoundries)}render(){return(0,i.jsx)(u(),{axis:"both",handle:".bg-ub-window-title",grid:[1,1],scale:1,onStart:this.changeCursorToMove,onStop:this.changeCursorToDefault,onDrag:this.checkOverlap,allowAnyClick:!1,defaultPosition:{x:this.startX,y:this.startY},bounds:{left:0,top:0,right:this.state.parentSize.width,bottom:this.state.parentSize.height},children:(0,i.jsxs)("div",{style:{width:"".concat(this.state.width,"%"),height:"".concat(this.state.height,"%")},className:this.state.cursorType+" "+(this.state.closed?" closed-window ":"")+(this.state.maximized?" duration-300 rounded-none":" rounded-lg rounded-b-none")+(this.props.minimized?" opacity-0 invisible duration-200 ":"")+(this.props.isFocused?" z-30 ":" z-20 notFocused")+" opened-window overflow-hidden min-w-1/4 min-h-1/4 main-window absolute window-shadow border-black border-opacity-40 border border-t-0 flex flex-col",id:this.id,children:[(0,i.jsx)(WindowYBorder,{resize:this.handleHorizontalResize}),(0,i.jsx)(WindowXBorder,{resize:this.handleVerticleResize}),(0,i.jsx)(WindowTopBar,{title:this.props.title}),(0,i.jsx)(WindowEditButtons,{minimize:this.minimizeWindow,maximize:this.maximizeWindow,isMaximised:this.state.maximized,close:this.closeWindow,id:this.id}),"settings"===this.id?(0,i.jsx)(Settings,{changeBackgroundImage:this.props.changeBackgroundImage,currBgImgName:this.props.bg_image_name}):(0,i.jsx)(WindowMainScreen,{screen:this.props.screen,title:this.props.title,addFolder:"terminal"===this.props.id?this.props.addFolder:null,openApp:this.props.openApp})]})})}constructor(){super(),this.setDefaultWindowDimenstion=()=>{window.innerWidth<640?this.setState({height:60,width:85},this.resizeBoundries):this.setState({height:85,width:60},this.resizeBoundries)},this.resizeBoundries=()=>{this.setState({parentSize:{height:window.innerHeight-window.innerHeight*(this.state.height/100)-28,width:window.innerWidth-window.innerWidth*(this.state.width/100)}})},this.changeCursorToMove=()=>{this.focusWindow(),this.state.maximized&&this.restoreWindow(),this.setState({cursorType:"cursor-move"})},this.changeCursorToDefault=()=>{this.setState({cursorType:"cursor-default"})},this.handleVerticleResize=()=>{this.setState({height:this.state.height+.1},this.resizeBoundries)},this.handleHorizontalResize=()=>{this.setState({width:this.state.width+.1},this.resizeBoundries)},this.setWinowsPosition=()=>{var e=document.querySelector("#"+this.id),t=e.getBoundingClientRect();e.style.setProperty("--window-transform-x",t.x.toFixed(1).toString()+"px"),e.style.setProperty("--window-transform-y",(t.y.toFixed(1)-32).toString()+"px")},this.checkOverlap=()=>{50>document.querySelector("#"+this.id).getBoundingClientRect().x.toFixed(1)?this.props.hideSideBar(this.id,!0):this.props.hideSideBar(this.id,!1)},this.focusWindow=()=>{this.props.focus(this.id)},this.minimizeWindow=()=>{let e=-310;this.state.maximized&&(e=-510),this.setWinowsPosition();var t=document.querySelector("#sidebar-"+this.id),s=t.getBoundingClientRect();(t=document.querySelector("#"+this.id)).style.transform="translate(".concat(e,"px,").concat(s.y.toFixed(1)-240,"px) scale(0.2)"),this.props.hasMinimised(this.id)},this.restoreWindow=()=>{var e=document.querySelector("#"+this.id);this.setDefaultWindowDimenstion();let t=e.style.getPropertyValue("--window-transform-x"),s=e.style.getPropertyValue("--window-transform-y");e.style.transform="translate(".concat(t,",").concat(s,")"),setTimeout(()=>{this.setState({maximized:!1}),this.checkOverlap()},300)},this.maximizeWindow=()=>{if(this.state.maximized)this.restoreWindow();else{this.focusWindow();var e=document.querySelector("#"+this.id);this.setWinowsPosition(),e.style.transform="translate(-1pt,-2pt)",this.setState({maximized:!0,height:96.3,width:100.2}),this.props.hideSideBar(this.id,!0)}},this.closeWindow=()=>{this.setWinowsPosition(),this.setState({closed:!0},()=>{this.props.hideSideBar(this.id,!1),setTimeout(()=>{this.props.closed(this.id)},300)})},this.id=null,this.startX=60,this.startY=10,this.state={cursorType:"cursor-default",width:60,height:85,closed:!1,maximized:!1,parentSize:{height:100,width:100}}}};function WindowTopBar(e){return(0,i.jsx)("div",{className:" relative bg-ub-window-title border-t-2 border-white border-opacity-5 py-1.5 px-3 text-white w-full select-none rounded-b-none",children:(0,i.jsx)("div",{className:"flex justify-center text-sm font-bold",children:e.title})})}let WindowYBorder=class WindowYBorder extends a.Component{componentDidMount(){this.trpImg=new Image(0,0),this.trpImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",this.trpImg.style.opacity=0}render(){return(0,i.jsx)("div",{className:" window-y-border border-transparent border-1 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",onDragStart:e=>{e.dataTransfer.setDragImage(this.trpImg,0,0)},onDrag:this.props.resize})}};let WindowXBorder=class WindowXBorder extends a.Component{componentDidMount(){this.trpImg=new Image(0,0),this.trpImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",this.trpImg.style.opacity=0}render(){return(0,i.jsx)("div",{className:" window-x-border border-transparent border-1 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",onDragStart:e=>{e.dataTransfer.setDragImage(this.trpImg,0,0)},onDrag:this.props.resize})}};function WindowEditButtons(e){return(0,i.jsxs)("div",{className:"absolute select-none right-0 top-0 mt-1 mr-1 flex justify-center items-center",children:[(0,i.jsx)("span",{className:"mx-1.5 bg-white bg-opacity-0 hover:bg-opacity-10 rounded-full flex justify-center mt-1 h-5 w-5 items-center",onClick:e.minimize,children:(0,i.jsx)("img",{src:"./themes/Yaru/window/window-minimize-symbolic.svg",alt:"ubuntu window minimize",className:"h-5 w-5 inline"})}),e.isMaximised?(0,i.jsx)("span",{className:"mx-2 bg-white bg-opacity-0 hover:bg-opacity-10 rounded-full flex justify-center mt-1 h-5 w-5 items-center",onClick:e.maximize,children:(0,i.jsx)("img",{src:"./themes/Yaru/window/window-restore-symbolic.svg",alt:"ubuntu window restore",className:"h-5 w-5 inline"})}):(0,i.jsx)("span",{className:"mx-2 bg-white bg-opacity-0 hover:bg-opacity-10 rounded-full flex justify-center mt-1 h-5 w-5 items-center",onClick:e.maximize,children:(0,i.jsx)("img",{src:"./themes/Yaru/window/window-maximize-symbolic.svg",alt:"ubuntu window maximize",className:"h-5 w-5 inline"})}),(0,i.jsx)("button",{tabIndex:"-1",id:"close-".concat(e.id),className:"mx-1.5 focus:outline-none cursor-default bg-ub-orange bg-opacity-90 hover:bg-opacity-100 rounded-full flex justify-center mt-1 h-5 w-5 items-center",onClick:e.close,children:(0,i.jsx)("img",{src:"./themes/Yaru/window/window-close-symbolic.svg",alt:"ubuntu window close",className:"h-5 w-5 inline"})})]})}let WindowMainScreen=class WindowMainScreen extends a.Component{componentDidMount(){setTimeout(()=>{this.setState({setDarkBg:!0})},3e3)}render(){return(0,i.jsx)("div",{className:"w-full flex-grow z-20 max-h-full overflow-y-auto windowMainScreen"+(this.state.setDarkBg?" bg-ub-drk-abrgn ":" bg-ub-cool-grey"),children:this.props.addFolder?displayTerminal(this.props.addFolder,this.props.openApp):this.props.screen()})}constructor(){super(),this.state={setDarkBg:!1}}};let UbuntuApp=class UbuntuApp extends a.Component{render(){return(0,i.jsxs)("div",{className:"p-1 m-px z-10 bg-white bg-opacity-0 hover:bg-opacity-20 focus:bg-ub-orange focus:bg-opacity-50 focus:border-yellow-700 focus:border-opacity-100 border border-transparent outline-none rounded select-none w-24 h-20 flex flex-col justify-start items-center text-center text-xs font-normal text-white ",id:"app-"+this.props.id,onDoubleClick:this.openApp,tabIndex:0,children:[(0,i.jsx)("img",{width:"40px",height:"40px",className:"mb-1 w-10",src:this.props.icon,alt:"Ubuntu "+this.props.name}),this.props.name]})}constructor(...e){super(...e),this.openApp=()=>{this.props.openApp(this.props.id)}}};let AllApplications=class AllApplications extends a.Component{componentDidMount(){this.setState({apps:this.props.apps})}render(){return(0,i.jsxs)("div",{className:"absolute h-full top-7 w-full z-20 pl-12 justify-center md:pl-20 border-black border-opacity-60 bg-black bg-opacity-70",children:[(0,i.jsx)("div",{className:"flex md:pr-20 pt-5 align-center justify-center",children:(0,i.jsxs)("div",{className:"flex w-2/3 h-full items-center pl-2 pr-2 bg-white border-black border-width-2 rounded-xl overflow-hidden md:w-1/3 ",children:[(0,i.jsx)("img",{className:"w-5 h-5",alt:"search icon",src:"./images/logos/search.png"}),(0,i.jsx)("input",{className:"w-3/4 p-1 bg-transparent focus:outline-none",placeholder:"Type to Search ",value:this.state.query,onChange:this.handleChange})]})}),(0,i.jsx)("div",{className:"grid md:grid-cols-6 md:grid-rows-3 grid-cols-3 grid-rows-6 md:gap-4 gap-1 md:px-20 px-5 pt-10 justify-center",children:this.renderApps()}),(0,i.jsxs)("div",{className:"flex align-center justify-center w-full fixed bottom-0 mb-15 pr-20 md:pr-20 ",children:[(0,i.jsxs)("div",{className:"w-1/4 text-center group text-white bg-transparent cursor-pointer items-center",onClick:this.handleSwitch.bind(this,1),children:[(0,i.jsx)("h4",{children:"Frequent"}),1===this.state.category?(0,i.jsx)("div",{className:"h-1 mt-1 bg-ub-orange self-center"}):(0,i.jsx)("div",{className:"h-1 mt-1 bg-transparent group-hover:bg-white "})]}),(0,i.jsxs)("div",{className:"w-1/4 text-center group text-white bg-transparent cursor-pointer items-center",onClick:this.handleSwitch.bind(this,0),children:[(0,i.jsx)("h4",{children:"All"}),0===this.state.category?(0,i.jsx)("div",{className:"h-1 mt-1 bg-ub-orange self-center"}):(0,i.jsx)("div",{className:"h-1 mt-1 bg-transparent group-hover:bg-white"})]})]})]})}constructor(){super(),this.handleChange=e=>{this.setState({query:e.target.value,apps:""===e.target.value||null===e.target.value?this.props.apps:this.state.apps.filter(t=>t.title.toLowerCase().includes(e.target.value.toLowerCase()))})},this.renderApps=()=>{let e=[],t=JSON.parse(localStorage.getItem("frequentApps"));return(0===this.state.category?[...this.state.apps]:(()=>{let e=[];return t&&t.forEach(t=>{let s=this.props.apps.find(e=>e.id===t.id);s&&e.push(s)}),e})()).forEach((t,s)=>{let a={name:t.title,id:t.id,icon:t.icon,openApp:this.props.openApp};e.push((0,i.jsx)(UbuntuApp,{...a},s))}),e},this.handleSwitch=e=>{e!==this.state.category&&this.setState({category:e})},this.state={query:"",apps:[],category:0}}};function Devider(){return(0,i.jsx)("div",{className:"flex justify-center w-full",children:(0,i.jsx)("div",{className:" border-t border-gray-900 py-1 w-2/5"})})}var desktop_menu=function(e){let[t,s]=(0,a.useState)(!1);(0,a.useEffect)(()=>(document.addEventListener("fullscreenchange",checkFullScreen),()=>{document.removeEventListener("fullscreenchange",checkFullScreen)}),[]);let openSettings=()=>{e.openApp("settings")},checkFullScreen=()=>{document.fullscreenElement?s(!0):s(!1)};return(0,i.jsxs)("div",{id:"desktop-menu",className:(e.active?" block ":" hidden ")+" cursor-default w-52 context-menu-bg border text-left font-light border-gray-900 rounded text-white py-4 absolute z-50 text-sm",children:[(0,i.jsx)("div",{onClick:e.addNewFolder,className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:(0,i.jsx)("span",{className:"ml-5",children:"New Folder"})}),(0,i.jsx)(Devider,{}),(0,i.jsx)("div",{className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5 text-gray-400",children:(0,i.jsx)("span",{className:"ml-5",children:"Paste"})}),(0,i.jsx)(Devider,{}),(0,i.jsx)("div",{className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5 text-gray-400",children:(0,i.jsx)("span",{className:"ml-5",children:"Show Desktop in Files"})}),(0,i.jsx)("div",{onClick:()=>{e.openApp("terminal")},className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:(0,i.jsx)("span",{className:"ml-5",children:"Open in Terminal"})}),(0,i.jsx)(Devider,{}),(0,i.jsx)("div",{onClick:openSettings,className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:(0,i.jsx)("span",{className:"ml-5",children:"Change Background..."})}),(0,i.jsx)(Devider,{}),(0,i.jsx)("div",{className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5 text-gray-400",children:(0,i.jsx)("span",{className:"ml-5",children:"Display Settings"})}),(0,i.jsx)("div",{onClick:openSettings,className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:(0,i.jsx)("span",{className:"ml-5",children:"Settings"})}),(0,i.jsx)(Devider,{}),(0,i.jsx)("div",{onClick:()=>{try{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()}catch(e){console.log(e)}},className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:(0,i.jsxs)("span",{className:"ml-5",children:[t?"Exit":"Enter"," Full Screen"]})})]})};function default_Devider(){return(0,i.jsx)("div",{className:"flex justify-center w-full",children:(0,i.jsx)("div",{className:" border-t border-gray-900 py-1 w-2/5"})})}var context_menus_default=function(e){return(0,i.jsxs)("div",{id:"default-menu",className:(e.active?" block ":" hidden ")+" cursor-default w-52 context-menu-bg border text-left border-gray-900 rounded text-white py-4 absolute z-50 text-sm",children:[(0,i.jsxs)("a",{rel:"noreferrer noopener",href:"https://github.com/urielsalis/urielsalis.github.io",target:"_blank",className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"\uD83C\uDF1F"})," ",(0,i.jsx)("span",{className:"ml-2",children:"Star this Project"})]}),(0,i.jsxs)("a",{rel:"noreferrer noopener",href:"https://github.com/urielsalis/urielsalis.github.io/issues",target:"_blank",className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"❗"})," ",(0,i.jsx)("span",{className:"ml-2",children:"Report bugs"})]}),(0,i.jsx)(default_Devider,{}),(0,i.jsxs)("a",{rel:"noreferrer noopener",href:"https://www.linkedin.com/in/urielsalis/",target:"_blank",className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"\uD83D\uDE4B‍♂️"})," ",(0,i.jsxs)("span",{className:"ml-2",children:["Follow on ",(0,i.jsx)("strong",{children:"Linkedin"})]})]}),(0,i.jsxs)("a",{rel:"noreferrer noopener",href:"https://github.com/urielsalis",target:"_blank",className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"\uD83E\uDD1D"})," ",(0,i.jsxs)("span",{className:"ml-2",children:["Follow on ",(0,i.jsx)("strong",{children:"Github"})]})]}),(0,i.jsxs)("a",{rel:"noreferrer noopener",href:"mailto:uriel@urielsalis.com",target:"_blank",className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"\uD83D\uDCE5"})," ",(0,i.jsx)("span",{className:"ml-2",children:"Contact Me"})]}),(0,i.jsx)(default_Devider,{}),(0,i.jsxs)("div",{onClick:()=>{localStorage.clear(),window.location.reload()},className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"\uD83E\uDDF9"})," ",(0,i.jsx)("span",{className:"ml-2",children:"Reset Ubuntu"})]})]})};let Desktop=class Desktop extends a.Component{componentDidMount(){n.ZP.send({hitType:"pageview",page:"/desktop",title:"Custom Title"}),this.fetchAppsData(),this.setContextListeners(),this.setEventListeners(),this.checkForNewFolders()}componentWillUnmount(){this.removeContextListeners()}render(){return(0,i.jsxs)("div",{className:" h-full w-full flex flex-col items-end justify-start content-start flex-wrap-reverse pt-8 bg-transparent relative overflow-hidden overscroll-none window-parent",children:[(0,i.jsx)("div",{className:"absolute h-full w-full bg-transparent","data-context":"desktop-area",children:this.renderWindows()}),(0,i.jsx)(BackgroundImage,{img:this.props.bg_image_name}),(0,i.jsx)(SideBar,{apps:m,hide:this.state.hideSideBar,hideSideBar:this.hideSideBar,favourite_apps:this.state.favourite_apps,showAllApps:this.showAllApps,allAppsView:this.state.allAppsView,closed_windows:this.state.closed_windows,focused_windows:this.state.focused_windows,isMinimized:this.state.minimized_windows,openAppByAppId:this.openApp}),this.renderDesktopApps(),(0,i.jsx)(desktop_menu,{active:this.state.context_menus.desktop,openApp:this.openApp,addNewFolder:this.addNewFolder}),(0,i.jsx)(context_menus_default,{active:this.state.context_menus.default}),this.state.showNameBar?this.renderNameBar():null,this.state.allAppsView?(0,i.jsx)(AllApplications,{apps:m,recentApps:this.app_stack,openApp:this.openApp}):null]})}constructor(){super(),this.checkForNewFolders=()=>{var e=localStorage.getItem("new_folders");null===e?localStorage.setItem("new_folders",JSON.stringify([])):((e=JSON.parse(e)).forEach(e=>{m.push({id:"new-folder-".concat(e.id),title:e.name,icon:"./themes/Yaru/system/folder.png",disabled:!0,favourite:!1,desktop_shortcut:!0,screen:()=>{}})}),this.updateAppsData())},this.setEventListeners=()=>{document.getElementById("open-settings").addEventListener("click",()=>{this.openApp("settings")})},this.setContextListeners=()=>{document.addEventListener("contextmenu",this.checkContextMenu),document.addEventListener("click",this.hideAllContextMenu)},this.removeContextListeners=()=>{document.removeEventListener("contextmenu",this.checkContextMenu),document.removeEventListener("click",this.hideAllContextMenu)},this.checkContextMenu=e=>{(e.preventDefault(),this.hideAllContextMenu(),"desktop-area"===e.target.dataset.context)?(n.ZP.event({category:"Context Menu",action:"Opened Desktop Context Menu"}),this.showContextMenu(e,"desktop")):(n.ZP.event({category:"Context Menu",action:"Opened Default Context Menu"}),this.showContextMenu(e,"default"))},this.showContextMenu=(e,t)=>{let{posx:s,posy:i}=this.getMenuPosition(e),a=document.getElementById("".concat(t,"-menu"));s+o()(a).width()>window.innerWidth&&(s-=o()(a).width()),i+o()(a).height()>window.innerHeight&&(i-=o()(a).height()),s=s.toString()+"px",i=i.toString()+"px",a.style.left=s,a.style.top=i,this.setState({context_menus:{...this.state.context_menus,[t]:!0}})},this.hideAllContextMenu=()=>{let e=this.state.context_menus;Object.keys(e).forEach(t=>{e[t]=!1}),this.setState({context_menus:e})},this.getMenuPosition=e=>{var t=0,s=0;return e||(e=window.event),e.pageX||e.pageY?(t=e.pageX,s=e.pageY):(e.clientX||e.clientY)&&(t=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,s=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),{posx:t,posy:s}},this.fetchAppsData=()=>{let e={},t={},s={},i={},a={},r={},o=[];m.forEach(n=>{e={...e,[n.id]:!1},t={...t,[n.id]:!0},s={...s,[n.id]:n.disabled},i={...i,[n.id]:n.favourite},a={...a,[n.id]:!1},r={...r,[n.id]:!1},n.desktop_shortcut&&o.push(n.id)}),this.setState({focused_windows:e,closed_windows:t,disabled_apps:s,favourite_apps:i,overlapped_windows:a,minimized_windows:r,desktop_apps:o}),this.initFavourite={...i}},this.updateAppsData=()=>{let e={},t={},s={},i={},a={},r=[];m.forEach(o=>{e={...e,[o.id]:(void 0!==this.state.focused_windows[o.id]||null!==this.state.focused_windows[o.id])&&this.state.focused_windows[o.id]},i={...i,[o.id]:(void 0!==this.state.minimized_windows[o.id]||null!==this.state.minimized_windows[o.id])&&this.state.minimized_windows[o.id]},a={...a,[o.id]:o.disabled},t={...t,[o.id]:void 0===this.state.closed_windows[o.id]&&null===this.state.closed_windows[o.id]||this.state.closed_windows[o.id]},s={...s,[o.id]:o.favourite},o.desktop_shortcut&&r.push(o.id)}),this.setState({focused_windows:e,closed_windows:t,disabled_apps:a,minimized_windows:i,favourite_apps:s,desktop_apps:r}),this.initFavourite={...s}},this.renderDesktopApps=()=>{if(0===Object.keys(this.state.closed_windows).length)return;let e=[];return m.forEach((t,s)=>{if(this.state.desktop_apps.includes(t.id)){let a={name:t.title,id:t.id,icon:t.icon,openApp:this.openApp};e.push((0,i.jsx)(UbuntuApp,{...a},s))}}),e},this.renderWindows=()=>{let e=[];return m.forEach((t,s)=>{if(!1===this.state.closed_windows[t.id]){let a={title:t.title,id:t.id,screen:t.screen,addFolder:this.addToDesktop,closed:this.closeApp,openApp:this.openApp,focus:this.focus,isFocused:this.state.focused_windows[t.id],hideSideBar:this.hideSideBar,hasMinimised:this.hasMinimised,minimized:this.state.minimized_windows[t.id],changeBackgroundImage:this.props.changeBackgroundImage,bg_image_name:this.props.bg_image_name};e.push((0,i.jsx)(Window,{...a},s))}}),e},this.hideSideBar=(e,t)=>{if(t===this.state.hideSideBar)return;if(null===e){if(!1===t)this.setState({hideSideBar:!1});else for(let e in this.state.overlapped_windows)if(this.state.overlapped_windows[e]){this.setState({hideSideBar:!0});break}return}if(!1===t){for(let t in this.state.overlapped_windows)if(this.state.overlapped_windows[t]&&t!==e)return}let s=this.state.overlapped_windows;s[e]=t,this.setState({hideSideBar:t,overlapped_windows:s})},this.hasMinimised=e=>{let t=this.state.minimized_windows;var s=this.state.focused_windows;t[e]=!0,s[e]=!1,this.setState({minimized_windows:t,focused_windows:s}),this.hideSideBar(null,!1),this.giveFocusToLastApp()},this.giveFocusToLastApp=()=>{if(!this.checkAllMinimised()){for(let e in this.app_stack)if(!this.state.minimized_windows[this.app_stack[e]]){this.focus(this.app_stack[e]);break}}},this.checkAllMinimised=()=>{let e=!0;for(let t in this.state.minimized_windows)this.state.closed_windows[t]||(e&=this.state.minimized_windows[t]);return e},this.openApp=e=>{if(n.ZP.event({category:"Open App",action:"Opened ".concat(e," window")}),!this.state.disabled_apps[e]){if(this.state.minimized_windows[e]){this.focus(e);var t=document.querySelector("#"+e);t.style.transform="translate(".concat(t.style.getPropertyValue("--window-transform-x"),",").concat(t.style.getPropertyValue("--window-transform-y"),") scale(1)");let s=this.state.minimized_windows;s[e]=!1,this.setState({minimized_windows:s});return}if(this.app_stack.includes(e))this.focus(e);else{let t=this.state.closed_windows,a=this.state.favourite_apps;var s=localStorage.getItem("frequentApps")?JSON.parse(localStorage.getItem("frequentApps")):[],i=s.find(t=>t.id===e);i?s.forEach(e=>{e.id===i.id&&(e.frequency+=1)}):s.push({id:e,frequency:1}),s.sort((e,t)=>e.frequencyt.frequency?-1:0),localStorage.setItem("frequentApps",JSON.stringify(s)),setTimeout(()=>{a[e]=!0,t[e]=!1,this.setState({closed_windows:t,favourite_apps:a,allAppsView:!1},this.focus(e)),this.app_stack.push(e)},200)}}},this.closeApp=e=>{this.app_stack.splice(this.app_stack.indexOf(e),1),this.giveFocusToLastApp(),this.hideSideBar(null,!1);let t=this.state.closed_windows,s=this.state.favourite_apps;!1===this.initFavourite[e]&&(s[e]=!1),t[e]=!0,this.setState({closed_windows:t,favourite_apps:s})},this.focus=e=>{var t=this.state.focused_windows;for(let s in t[e]=!0,t)t.hasOwnProperty(s)&&s!==e&&(t[s]=!1);this.setState({focused_windows:t})},this.addNewFolder=()=>{this.setState({showNameBar:!0})},this.addToDesktop=e=>{let t=(e=e.trim()).replace(/\s+/g,"-").toLowerCase();m.push({id:"new-folder-".concat(t),title:e,icon:"./themes/Yaru/system/folder.png",disabled:!0,favourite:!1,desktop_shortcut:!0,screen:()=>{}});var s=JSON.parse(localStorage.getItem("new_folders"));s.push({id:"new-folder-".concat(t),name:e}),localStorage.setItem("new_folders",JSON.stringify(s)),this.setState({showNameBar:!1},this.updateAppsData)},this.showAllApps=()=>{this.setState({allAppsView:!this.state.allAppsView})},this.renderNameBar=()=>(0,i.jsxs)("div",{className:"absolute rounded-md top-1/2 left-1/2 text-center text-white font-light text-sm bg-ub-cool-grey transform -translate-y-1/2 -translate-x-1/2 sm:w-96 w-3/4 z-50",children:[(0,i.jsxs)("div",{className:"w-full flex flex-col justify-around items-start pl-6 pb-8 pt-6",children:[(0,i.jsx)("span",{children:"New folder name"}),(0,i.jsx)("input",{className:"outline-none mt-5 px-1 w-10/12 context-menu-bg border-2 border-yellow-700 rounded py-0.5",id:"folder-name-input",type:"text",autoComplete:"off",spellCheck:"false",autoFocus:!0})]}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{onClick:()=>{let e=document.getElementById("folder-name-input").value;this.addToDesktop(e)},className:"w-1/2 px-4 py-2 border border-gray-900 border-opacity-50 border-r-0 hover:bg-ub-warm-grey hover:bg-opacity-10 hover:border-opacity-50",children:"Create"}),(0,i.jsx)("div",{onClick:()=>{this.setState({showNameBar:!1})},className:"w-1/2 px-4 py-2 border border-gray-900 border-opacity-50 hover:bg-ub-warm-grey hover:bg-opacity-10 hover:border-opacity-50",children:"Cancel"})]})]}),this.app_stack=[],this.initFavourite={},this.allWindowClosed=!1,this.state={focused_windows:{},closed_windows:{},allAppsView:!1,overlapped_windows:{},disabled_apps:{},favourite_apps:{},hideSideBar:!1,minimized_windows:{},desktop_apps:[],context_menus:{desktop:!1,default:!1},showNameBar:!1}}};let Clock=class Clock extends a.Component{componentDidMount(){this.update_time=setInterval(()=>{this.setState({current_time:new Date})},1e4)}componentWillUnmount(){clearInterval(this.update_time)}render(){let e;let{current_time:t}=this.state,s=this.day_list[t.getDay()],a=t.getHours(),r=t.getMinutes(),o=this.month_list[t.getMonth()],n=t.getDate().toLocaleString(),l=a<12?"AM":"PM";return 1===r.toLocaleString().length&&(r="0"+r),this.state.hour_12&&a>12&&(a-=12),e=this.props.onlyTime?a+":"+r+" "+l:this.props.onlyDay?s+" "+o+" "+n:s+" "+o+" "+n+" "+a+":"+r+" "+l,(0,i.jsx)("span",{children:e})}constructor(){super(),this.month_list=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],this.day_list=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],this.state={hour_12:!0,current_time:new Date}}};function LockScreen(e){return e.isLocked&&(window.addEventListener("click",e.unLockScreen),window.addEventListener("keypress",e.unLockScreen)),(0,i.jsxs)("div",{id:"ubuntu-lock-screen",style:{zIndex:"100"},className:(e.isLocked?" visible translate-y-0 ":" invisible -translate-y-full ")+" absolute outline-none bg-black bg-opacity-90 transform duration-500 select-none top-0 right-0 overflow-hidden m-0 p-0 h-screen w-screen",children:[(0,i.jsx)("div",{style:{backgroundImage:"url(".concat({"wall-1":"./images/wallpapers/wall-1.webp","wall-2":"./images/wallpapers/wall-2.webp","wall-3":"./images/wallpapers/wall-3.webp","wall-4":"./images/wallpapers/wall-4.webp","wall-5":"./images/wallpapers/wall-5.webp","wall-6":"./images/wallpapers/wall-6.webp","wall-7":"./images/wallpapers/wall-7.webp","wall-8":"./images/wallpapers/wall-8.webp"}[e.bgImgName],")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPositionX:"center"},className:"absolute top-0 left-0 w-full h-full transform z-20 blur-md "}),(0,i.jsxs)("div",{className:"w-full h-full z-50 overflow-hidden relative flex flex-col justify-center items-center text-white",children:[(0,i.jsx)("div",{className:" text-7xl",children:(0,i.jsx)(Clock,{onlyTime:!0})}),(0,i.jsx)("div",{className:"mt-4 text-xl font-medium",children:(0,i.jsx)(Clock,{onlyDay:!0})}),(0,i.jsx)("div",{className:" mt-16 text-base",children:"Click or Press a key to unlock"})]})]})}function SmallArrow(e){let t=e.angle?e.angle:"up";return(0,i.jsx)("div",{className:" arrow-custom-"+t})}function Status(){return(0,i.jsxs)("div",{className:"flex justify-center items-center",children:[(0,i.jsx)("span",{className:"mx-1.5",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/network-wireless-signal-good-symbolic.svg",alt:"ubuntu wifi",className:"inline status-symbol w-4 h-4"})}),(0,i.jsx)("span",{className:"mx-1.5",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/audio-volume-medium-symbolic.svg",alt:"ubuntu sound",className:"inline status-symbol w-4 h-4"})}),(0,i.jsx)("span",{className:"mx-1.5",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/battery-good-symbolic.svg",alt:"ubuntu battry",className:"inline status-symbol w-4 h-4"})}),(0,i.jsx)("span",{className:"mx-1",children:(0,i.jsx)(SmallArrow,{angle:"down",className:" status-symbol"})})]})}var p=s(8949);let Slider=class Slider extends a.Component{render(){return(0,i.jsx)("input",{type:"range",onChange:this.props.onChange,className:this.props.className,name:this.props.name,min:"0",max:"100",value:this.props.value,step:"1"})}};let StatusCard=class StatusCard extends a.Component{componentDidMount(){this.setState({sound_level:localStorage.getItem("sound-level")||75,brightness_level:localStorage.getItem("brightness-level")||100},()=>{document.getElementById("monitor-screen").style.filter="brightness(".concat(3/400*this.state.brightness_level+.25,")")})}render(){return(0,i.jsxs)("div",{ref:this.wrapperRef,className:"absolute bg-ub-cool-grey rounded-md py-4 top-9 right-3 shadow border-black border border-opacity-20 status-card"+(this.props.visible?" visible animateShow":" invisible"),children:[" ",(0,i.jsx)("div",{className:"absolute w-0 h-0 -top-1 right-6 top-arrow-up"}),(0,i.jsxs)("div",{className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/audio-headphones-symbolic.svg",alt:"ubuntu headphone"})}),(0,i.jsx)(Slider,{onChange:this.handleSound,className:"ubuntu-slider w-2/3",value:this.state.sound_level,name:"headphone_range"})]}),(0,i.jsxs)("div",{className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/display-brightness-symbolic.svg",alt:"ubuntu brightness"})}),(0,i.jsx)(Slider,{onChange:this.handleBrightness,className:"ubuntu-slider w-2/3",name:"brightness_range",value:this.state.brightness_level})]}),(0,i.jsx)("div",{className:"w-64 flex content-center justify-center",children:(0,i.jsx)("div",{className:"w-2/4 border-black border-opacity-50 border-b my-2 border-solid"})}),(0,i.jsxs)("div",{className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/network-wireless-signal-good-symbolic.svg",alt:"ubuntu wifi"})}),(0,i.jsxs)("div",{className:"w-2/3 flex items-center justify-between text-gray-400",children:[(0,i.jsx)("span",{children:"Pixel 8 Pro"}),(0,i.jsx)(SmallArrow,{angle:"right"})]})]}),(0,i.jsxs)("div",{className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/bluetooth-symbolic.svg",alt:"ubuntu bluetooth"})}),(0,i.jsxs)("div",{className:"w-2/3 flex items-center justify-between text-gray-400",children:[(0,i.jsx)("span",{children:"Off"}),(0,i.jsx)(SmallArrow,{angle:"right"})]})]}),(0,i.jsxs)("div",{className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/battery-good-symbolic.svg",alt:"ubuntu battery"})}),(0,i.jsxs)("div",{className:"w-2/3 flex items-center justify-between text-gray-400",children:[(0,i.jsx)("span",{children:"2:40 Remaining (75%)"}),(0,i.jsx)(SmallArrow,{angle:"right"})]})]}),(0,i.jsx)("div",{className:"w-64 flex content-center justify-center",children:(0,i.jsx)("div",{className:"w-2/4 border-black border-opacity-50 border-b my-2 border-solid"})}),(0,i.jsxs)("div",{id:"open-settings",className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/emblem-system-symbolic.svg",alt:"ubuntu settings"})}),(0,i.jsx)("div",{className:"w-2/3 flex items-center justify-between",children:(0,i.jsx)("span",{children:"Settings"})})]}),(0,i.jsxs)("div",{onClick:this.props.lockScreen,className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/changes-prevent-symbolic.svg",alt:"ubuntu lock"})}),(0,i.jsx)("div",{className:"w-2/3 flex items-center justify-between",children:(0,i.jsx)("span",{children:"Lock"})})]}),(0,i.jsxs)("div",{onClick:this.props.shutDown,className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/system-shutdown-symbolic.svg",alt:"ubuntu power"})}),(0,i.jsxs)("div",{className:"w-2/3 flex items-center justify-between",children:[(0,i.jsx)("span",{children:"Power Off / Log Out"}),(0,i.jsx)(SmallArrow,{angle:"right"})]})]})]})}constructor(){super(),this.handleClickOutside=()=>{this.props.toggleVisible()},this.handleBrightness=e=>{this.setState({brightness_level:e.target.value}),localStorage.setItem("brightness-level",e.target.value),document.getElementById("monitor-screen").style.filter="brightness(".concat(3/400*e.target.value+.25,")")},this.handleSound=e=>{this.setState({sound_level:e.target.value}),localStorage.setItem("sound-level",e.target.value)},this.wrapperRef=a.createRef(),this.state={sound_level:75,brightness_level:100}}};var g=(0,p.Z)(StatusCard);let Navbar=class Navbar extends a.Component{render(){return(0,i.jsxs)("div",{className:"main-navbar-vp absolute top-0 right-0 w-screen shadow-md flex flex-nowrap justify-between items-center bg-ub-grey text-ubt-grey text-sm select-none z-50",children:[(0,i.jsx)("div",{tabIndex:"0",className:"pl-3 pr-3 outline-none transition duration-100 ease-in-out border-b-2 border-transparent focus:border-ubb-orange py-1 ",children:"Activities"}),(0,i.jsx)("div",{tabIndex:"0",className:"pl-2 pr-2 text-xs md:text-sm outline-none transition duration-100 ease-in-out border-b-2 border-transparent focus:border-ubb-orange py-1",children:(0,i.jsx)(Clock,{})}),(0,i.jsxs)("div",{id:"status-bar",tabIndex:"0",onFocus:()=>{this.setState({status_card:!0})},className:"relative pr-3 pl-3 outline-none transition duration-100 ease-in-out border-b-2 border-transparent focus:border-ubb-orange py-1 ",children:[(0,i.jsx)(Status,{}),(0,i.jsx)(g,{shutDown:this.props.shutDown,lockScreen:this.props.lockScreen,visible:this.state.status_card,toggleVisible:()=>{this.setState({status_card:!1})}})]})]})}constructor(){super(),this.state={status_card:!1}}};let Ubuntu=class Ubuntu extends a.Component{componentDidMount(){this.getLocalData()}render(){return(0,i.jsxs)("div",{className:"w-screen h-screen overflow-hidden",id:"monitor-screen",children:[(0,i.jsx)(LockScreen,{isLocked:this.state.screen_locked,bgImgName:this.state.bg_image_name,unLockScreen:this.unLockScreen}),(0,i.jsx)(booting_screen,{visible:this.state.booting_screen,isShutDown:this.state.shutDownScreen,turnOn:this.turnOn}),(0,i.jsx)(Navbar,{lockScreen:this.lockScreen,shutDown:this.shutDown}),(0,i.jsx)(Desktop,{bg_image_name:this.state.bg_image_name,changeBackgroundImage:this.changeBackgroundImage})]})}constructor(){super(),this.setTimeOutBootScreen=()=>{setTimeout(()=>{this.setState({booting_screen:!1})},2e3)},this.getLocalData=()=>{let e=localStorage.getItem("bg-image");null!=e&&this.setState({bg_image_name:e}),null!=localStorage.getItem("booting_screen")?this.setState({booting_screen:!1}):(localStorage.setItem("booting_screen",!1),this.setTimeOutBootScreen());let t=localStorage.getItem("shut-down");if(null!=t&&"true"===t)this.shutDown();else{let e=localStorage.getItem("screen-locked");null!=e&&this.setState({screen_locked:"true"===e})}},this.lockScreen=()=>{n.ZP.send({hitType:"pageview",page:"/lock-screen",title:"Lock Screen"}),n.ZP.event({category:"Screen Change",action:"Set Screen to Locked"}),document.getElementById("status-bar").blur(),setTimeout(()=>{this.setState({screen_locked:!0})},100),localStorage.setItem("screen-locked",!0)},this.unLockScreen=()=>{n.ZP.send({hitType:"pageview",page:"/desktop",title:"Custom Title"}),window.removeEventListener("click",this.unLockScreen),window.removeEventListener("keypress",this.unLockScreen),this.setState({screen_locked:!1}),localStorage.setItem("screen-locked",!1)},this.changeBackgroundImage=e=>{this.setState({bg_image_name:e}),localStorage.setItem("bg-image",e)},this.shutDown=()=>{n.ZP.send({hitType:"pageview",page:"/switch-off",title:"Custom Title"}),n.ZP.event({category:"Screen Change",action:"Switched off the Ubuntu"}),document.getElementById("status-bar").blur(),this.setState({shutDownScreen:!0}),localStorage.setItem("shut-down",!0)},this.turnOn=()=>{n.ZP.send({hitType:"pageview",page:"/desktop",title:"Custom Title"}),this.setState({shutDownScreen:!1,booting_screen:!0}),this.setTimeOutBootScreen(),localStorage.setItem("shut-down",!1)},this.state={screen_locked:!1,bg_image_name:"wall-2",booting_screen:!0,shutDownScreen:!1}}};var b=s(9008),x=s.n(b);function Meta(){return(0,i.jsxs)(x(),{children:["/* Primary Meta Tags */",(0,i.jsx)("title",{children:"Uriel Salischiker Portfolio - Senior Software Engineer"}),(0,i.jsx)("meta",{charSet:"utf-8"}),(0,i.jsx)("meta",{name:"title",content:"Uriel Salischiker - Senior Software Engineer"}),(0,i.jsx)("meta",{name:"description",content:"Uriel Salischiker's (urielsalis) Personal Portfolio Website."}),(0,i.jsx)("meta",{name:"author",content:"Uriel Salischiker (urielsalis)"}),(0,i.jsx)("meta",{name:"keywords",content:"urielsalis, urielsalis's portfolio, Uriel Salischiker"}),(0,i.jsx)("meta",{name:"robots",content:"index, follow"}),(0,i.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=utf-8"}),(0,i.jsx)("meta",{name:"language",content:"English"}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,i.jsx)("meta",{name:"theme-color",content:"#E95420"}),"/* Search Engine */",(0,i.jsx)("meta",{name:"image",content:"images/logos/fevicon.png"}),"/* Schema.org for Google */",(0,i.jsx)("meta",{itemProp:"name",content:"Uriel Salischiker - Senior Software Engineer"}),(0,i.jsx)("meta",{itemProp:"description",content:"Uriel Salischiker's (urielsalis) Personal Portfolio Website."}),(0,i.jsx)("meta",{itemProp:"image",content:"images/logos/fevicon.png"}),"/* Twitter */",(0,i.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,i.jsx)("meta",{name:"twitter:title",content:"Uriel Salischiker - Senior Software Engineer"}),(0,i.jsx)("meta",{name:"twitter:description",content:"Uriel Salischiker's (urielsalis) Personal Portfolio Website."}),(0,i.jsx)("meta",{name:"twitter:site",content:"urielsalis"}),(0,i.jsx)("meta",{name:"twitter:creator",content:"urielsalis"}),(0,i.jsx)("meta",{name:"twitter:image:src",content:"images/logos/logo_1024.png"}),"/* Open Graph general (Facebook, Pinterest & Google+) */",(0,i.jsx)("meta",{name:"og:title",content:"Uriel Salischiker - Senior Software Engineer"}),(0,i.jsx)("meta",{name:"og:description",content:"Uriel Salischiker's (urielsalis) Personal Portfolio Website."}),(0,i.jsx)("meta",{name:"og:image",content:"images/logos/logo_1200.png"}),(0,i.jsx)("meta",{name:"og:url",content:"http://urielsalis.com/"}),(0,i.jsx)("meta",{name:"og:site_name",content:"Uriel Salischiker Personal Portfolio"}),(0,i.jsx)("meta",{name:"og:locale",content:"en_US"}),(0,i.jsx)("meta",{name:"og:type",content:"website"}),(0,i.jsx)("link",{rel:"icon",href:"images/logos/fevicon.svg"}),(0,i.jsx)("link",{rel:"apple-touch-icon",href:"images/logos/logo.png"}),(0,i.jsx)("link",{rel:"preload",href:"https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap",as:"style"}),(0,i.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap",rel:"stylesheet"})]})}n.ZP.initialize("G-Y6L0L59N6Q");var pages=function(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Meta,{}),(0,i.jsx)(Ubuntu,{})]})}}},function(e){e.O(0,[571,106,774,888,179],function(){return e(e.s=5557)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/index-59686215865113d1.js b/_next/static/chunks/pages/index-59686215865113d1.js deleted file mode 100644 index 29b49c74..00000000 --- a/_next/static/chunks/pages/index-59686215865113d1.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5557:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(9533)}])},9533:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return pages}});var i=s(5893),a=s(7294),booting_screen=function(e){return(0,i.jsxs)("div",{style:e.visible||e.isShutDown?{zIndex:"100"}:{zIndex:"-20"},className:(e.visible||e.isShutDown?" visible opacity-100":" invisible opacity-0 ")+" absolute duration-500 select-none flex flex-col justify-around items-center top-0 right-0 overflow-hidden m-0 p-0 h-screen w-screen bg-black",children:[(0,i.jsx)("img",{width:"400px",height:"400px",className:"md:w-1/4 w-1/2",src:"./themes/Yaru/status/cof_orange_hex.svg",alt:"Ubuntu Logo"}),(0,i.jsx)("div",{className:"w-10 h-10 flex justify-center items-center rounded-full outline-none cursor-pointer",onClick:e.turnOn,children:e.isShutDown?(0,i.jsx)("div",{className:"bg-white rounded-full flex justify-center items-center w-10 h-10 hover:bg-gray-300",children:(0,i.jsx)("img",{width:"32px",height:"32px",className:"w-8",src:"./themes/Yaru/status/power-button.svg",alt:"Power Button"})}):(0,i.jsx)("img",{width:"40px",height:"40px",className:" w-10 "+(e.visible?" animate-spin ":""),src:"./themes/Yaru/status/process-working-symbolic.svg",alt:"Ubuntu Process Symbol"})}),(0,i.jsx)("img",{width:"200px",height:"100px",className:"md:w-1/5 w-1/2",src:"./themes/Yaru/status/ubuntu_white_hex.svg",alt:"Ubuntu Name"}),(0,i.jsxs)("div",{className:"text-white mb-4",children:[(0,i.jsx)("a",{className:"underline",href:"https://www.linkedin.com/in/urielsalis/",rel:"noreferrer noopener",target:"_blank",children:"linkedin"}),(0,i.jsx)("span",{className:"font-bold mx-1",children:"|"}),(0,i.jsx)("a",{href:"https://github.com/urielsalis/urielsalis.github.io",rel:"noreferrer noopener",target:"_blank",className:"underline",children:"github"})]})]})};function BackgroundImage(e){return(0,i.jsx)("div",{style:{backgroundImage:"url(".concat({"wall-1":"./images/wallpapers/wall-1.webp","wall-2":"./images/wallpapers/wall-2.webp","wall-3":"./images/wallpapers/wall-3.webp","wall-4":"./images/wallpapers/wall-4.webp","wall-5":"./images/wallpapers/wall-5.webp","wall-6":"./images/wallpapers/wall-6.webp","wall-7":"./images/wallpapers/wall-7.webp","wall-8":"./images/wallpapers/wall-8.webp"}[e.img],")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPositionX:"center"},className:"bg-ubuntu-img absolute -z-10 top-0 right-0 overflow-hidden h-full w-full"})}let SideBarApp=class SideBarApp extends a.Component{componentDidMount(){this.id=this.props.id}render(){return(0,i.jsxs)("div",{tabIndex:"0",onClick:this.openApp,onMouseEnter:()=>{this.setState({showTitle:!0})},onMouseLeave:()=>{this.setState({showTitle:!1})},className:(!1===this.props.isClose[this.id]&&this.props.isFocus[this.id]?"bg-white bg-opacity-10 ":"")+" w-auto p-2 outline-none relative transition hover:bg-white hover:bg-opacity-10 rounded m-1",id:"sidebar-"+this.props.id,children:[(0,i.jsx)("img",{width:"28px",height:"28px",className:"w-7",src:this.props.icon,alt:"Ubuntu App Icon"}),(0,i.jsx)("img",{className:(this.state.scaleImage?" scale ":"")+" scalable-app-icon w-7 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",src:this.props.icon,alt:""}),!1===this.props.isClose[this.id]?(0,i.jsx)("div",{className:" w-1 h-1 absolute left-0 top-1/2 bg-ub-orange rounded-sm"}):null,(0,i.jsx)("div",{className:(this.state.showTitle?" visible ":" invisible ")+" w-max py-0.5 px-1.5 absolute top-1.5 left-full ml-3 m-1 text-ubt-grey text-opacity-90 text-sm bg-ub-grey bg-opacity-70 border-gray-400 border border-opacity-40 rounded-md",children:this.props.title})]})}constructor(){super(),this.scaleImage=()=>{setTimeout(()=>{this.setState({scaleImage:!1})},1e3),this.setState({scaleImage:!0})},this.openApp=()=>{!this.props.isMinimized[this.id]&&this.props.isClose[this.id]&&this.scaleImage(),this.props.openApp(this.id),this.setState({showTitle:!1})},this.id=null,this.state={showTitle:!1,scaleImage:!1}}};let renderApps=e=>{let t=[];return e.apps.forEach((s,a)=>{!1!==e.favourite_apps[s.id]&&t.push((0,i.jsx)(SideBarApp,{id:s.id,title:s.title,icon:s.icon,isClose:e.closed_windows,isFocus:e.focused_windows,openApp:e.openAppByAppId,isMinimized:e.isMinimized,openFromMinimised:e.openFromMinimised},a))}),t};function SideBar(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:(e.hide?" -translate-x-full ":"")+" absolute transform duration-300 select-none z-40 left-0 top-0 h-full pt-7 w-auto flex flex-col justify-start items-center border-black border-opacity-60 bg-black bg-opacity-50",children:[0!==Object.keys(e.closed_windows).length?renderApps(e):null,(0,i.jsx)(AllApps,{showApps:e.showAllApps})]}),(0,i.jsx)("div",{onMouseEnter:function(){e.hideSideBar(null,!1)},onMouseLeave:function(){setTimeout(()=>{e.hideSideBar(null,!0)},2e3)},className:"w-1 h-full absolute top-0 left-0 bg-transparent z-50"})]})}function AllApps(e){let[t,s]=(0,a.useState)(!1);return(0,i.jsx)("div",{className:"w-10 h-10 rounded m-1 hover:bg-white hover:bg-opacity-10 flex items-center justify-center",style:{marginTop:"auto"},onMouseEnter:()=>{s(!0)},onMouseLeave:()=>{s(!1)},onClick:e.showApps,children:(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("img",{width:"28px",height:"28px",className:"w-7",src:"./themes/Yaru/system/view-app-grid-symbolic.svg",alt:"Ubuntu view app"}),(0,i.jsx)("div",{className:(t?" visible ":" invisible ")+" w-max py-0.5 px-1.5 absolute top-1 left-full ml-5 text-ubt-grey text-opacity-90 text-sm bg-ub-grey bg-opacity-70 border-gray-400 border border-opacity-40 rounded-md",children:"Show Applications"})]})})}var r=s(9755),o=s.n(r),n=s(9089);let Terminal=class Terminal extends a.Component{componentDidMount(){this.reStartTerminal()}componentDidUpdate(){clearInterval(this.cursor),this.startCursor(this.terminal_rows-2)}componentWillUnmount(){clearInterval(this.cursor)}xss(e){if(e)return e.split("").map(e=>{switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"/":return"/";default:return e}}).join("")}render(){return(0,i.jsx)("div",{className:"h-full w-full bg-ub-drk-abrgn text-white text-sm font-bold",id:"terminal-body",children:this.state.terminal})}constructor(){super(),this.reStartTerminal=()=>{clearInterval(this.cursor),o()("#terminal-body").empty(),this.appendTerminalRow()},this.appendTerminalRow=()=>{let e=this.state.terminal;e.push(this.terminalRow(this.terminal_rows)),this.setState({terminal:e}),this.terminal_rows+=2},this.terminalRow=e=>(0,i.jsxs)(a.Fragment,{children:[(0,i.jsxs)("div",{className:"flex w-full h-5",children:[(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:" text-ubt-green",children:"uriel@Salis"}),(0,i.jsx)("div",{className:"text-white mx-px font-medium",children:":"}),(0,i.jsx)("div",{className:" text-ubt-blue",children:this.current_directory}),(0,i.jsx)("div",{className:"text-white mx-px font-medium mr-1",children:"$"})]}),(0,i.jsxs)("div",{id:"cmd",onClick:this.focusCursor,className:" bg-transperent relative flex-1 overflow-hidden",children:[(0,i.jsx)("span",{id:"show-".concat(e),className:" float-left whitespace-pre pb-1 opacity-100 font-normal tracking-wider"}),(0,i.jsx)("div",{id:"cursor-".concat(e),className:" float-left mt-1 w-1.5 h-3.5 bg-white"}),(0,i.jsx)("input",{id:"terminal-input-".concat(e),"data-row-id":e,onKeyDown:this.checkKey,onBlur:this.unFocusCursor,className:" absolute top-0 left-0 w-full opacity-0 outline-none bg-transparent",spellCheck:!1,autoFocus:!0,autoComplete:"off",type:"text"})]})]}),(0,i.jsx)("div",{id:"row-result-".concat(e),className:"my-2 font-normal"})]},e),this.focusCursor=e=>{clearInterval(this.cursor),this.startCursor(o()(e.target).data("row-id"))},this.unFocusCursor=e=>{this.stopCursor(o()(e.target).data("row-id"))},this.startCursor=e=>{clearInterval(this.cursor),o()("input#terminal-input-".concat(e)).trigger("focus"),o()("input#terminal-input-".concat(e)).on("input",function(){o()("#cmd span#show-".concat(e)).text(o()(this).val())}),this.cursor=window.setInterval(function(){"visible"===o()("#cursor-".concat(e)).css("visibility")?o()("#cursor-".concat(e)).css({visibility:"hidden"}):o()("#cursor-".concat(e)).css({visibility:"visible"})},500)},this.stopCursor=e=>{clearInterval(this.cursor),o()("#cursor-".concat(e)).css({visibility:"visible"})},this.removeCursor=e=>{this.stopCursor(e),o()("#cursor-".concat(e)).css({display:"none"})},this.clearInput=e=>{o()("input#terminal-input-".concat(e)).trigger("blur")},this.checkKey=e=>{if("Enter"===e.key){let t=o()(e.target).data("row-id"),s=o()("input#terminal-input-".concat(t)).val().trim();0!==s.length&&(this.removeCursor(t),this.handleCommands(s,t),this.prev_commands.push(s),this.commands_index=this.prev_commands.length-1,this.clearInput(t))}else if("ArrowUp"===e.key){let t;t=this.commands_index<=-1?"":this.prev_commands[this.commands_index];let s=o()(e.target).data("row-id");o()("input#terminal-input-".concat(s)).val(t),o()("#show-".concat(s)).text(t),this.commands_index--}else if("ArrowDown"===e.key){let t;if(this.commands_index>=this.prev_commands.length)return;this.commands_index<=-1&&(this.commands_index=0),t=this.commands_index===this.prev_commands.length?"":this.prev_commands[this.commands_index];let s=o()(e.target).data("row-id");o()("input#terminal-input-".concat(s)).val(t),o()("#show-".concat(s)).text(t),this.commands_index++}},this.childDirectories=e=>{let t=[];return t.push('
'),this.child_directories[e].forEach(e=>{t.push('\''.concat(e,"'"))}),t.push("
"),t},this.closeTerminal=()=>{o()("#close-terminal").trigger("click")},this.handleCommands=(e,t)=>{let s=e.split(" ").filter(Boolean),i=s[0];s.shift();let a="",r=s.join(" ");switch(r=r.trim(),i){case"cd":if(0===s.length||""===r){this.current_directory="~",this.curr_dir_name="root";break}if(s.length>1){a="too many arguments, arguments must be <1.";break}if("personal-documents"===r){a="bash /".concat(this.curr_dir_name," : Permission denied \uD83D\uDE0F");break}this.child_directories[this.curr_dir_name].includes(r)?(this.current_directory+="/"+r,this.curr_dir_name=r):"."===r||".."===r||"../"===r?(this.current_directory="~",this.curr_dir_name="root"):a="bash: cd: ".concat(s,": No such file or directory");break;case"ls":let o=s[0];if((""===o||null==o)&&(o=this.curr_dir_name),s.length>1){a="too many arguments, arguments must be <1.";break}a=o in this.child_directories?this.childDirectories(o).join(""):"personal-documents"===o?"Nope! \uD83D\uDE43":"ls: cannot access '".concat(s,"': No such file or directory ");break;case"mkdir":void 0!==s[0]&&""!==s[0]?(this.props.addFolder(s[0]),a=""):a="mkdir: missing operand";break;case"pwd":a=this.current_directory.replace("~","/home/uriel");break;case"code":"."===s[0]||0===s.length?this.props.openApp("vscode"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands:[ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg]";break;case"echo":a=this.xss(s.join(" "));break;case"spotify":"."===s[0]||0===s.length?this.props.openApp("spotify"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"chrome":"."===s[0]||0===s.length?this.props.openApp("chrome"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"todoist":"."===s[0]||0===s.length?this.props.openApp("todo-ist"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"trash":"."===s[0]||0===s.length?this.props.openApp("trash"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"about-uriel":"."===s[0]||0===s.length?this.props.openApp("about-uriel"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"terminal":"."===s[0]||0===s.length?this.props.openApp("terminal"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"settings":"."===s[0]||0===s.length?this.props.openApp("settings"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"sendmsg":"."===s[0]||0===s.length?this.props.openApp("gedit"):a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]";break;case"clear":this.reStartTerminal();return;case"exit":this.closeTerminal();return;case"sudo":n.ZP.event({category:"Sudo Access",action:"lol"}),a="";break;case"rick":n.ZP.event({category:"Rick",action:"lol"}),a='';break;default:a="Command '"+i+"' not found, or not yet implemented.
Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-uriel, todoist, trash, settings, sendmsg ]"}document.getElementById("row-result-".concat(t)).innerHTML=a,this.appendTerminalRow()},this.cursor="",this.terminal_rows=1,this.current_directory="~",this.curr_dir_name="root",this.prev_commands=[],this.commands_index=-1,this.child_directories={root:["books","projects","personal-documents","skills","languages","PDPU","interests"],PDPU:["Sem-6"],books:["Eric-Jorgenson_The-Almanack-of-Naval-Ravikant.pdf","Elon Musk: How the Billionaire CEO of SpaceX.pdf","The $100 Startup_CHRIS_GUILLEBEAU.pdf","The_Magic_of_Thinking_Big.pdf"],skills:["Front-end development","React.js","jQuery","Flutter","Express.js","SQL","Firebase"],projects:["urielsalis-personal-portfolio","synonyms-list-react","economist.com-unlocked","Improve-Codeforces","flutter-banking-app","Meditech-Healthcare","CPU-Scheduling-APP-React-Native"],interests:["Software Engineering","Deep Learning","Computer Vision"],languages:["Javascript","C++","Java","Dart"]},this.state={terminal:[]}}};let displayTerminal=(e,t)=>(0,i.jsx)(Terminal,{addFolder:e,openApp:t,children:" "});function Settings(e){let t={"wall-1":"./images/wallpapers/wall-1.webp","wall-2":"./images/wallpapers/wall-2.webp","wall-3":"./images/wallpapers/wall-3.webp","wall-4":"./images/wallpapers/wall-4.webp","wall-5":"./images/wallpapers/wall-5.webp","wall-6":"./images/wallpapers/wall-6.webp","wall-7":"./images/wallpapers/wall-7.webp","wall-8":"./images/wallpapers/wall-8.webp"},changeBackgroundImage=t=>{e.changeBackgroundImage(o()(t.target).data("path"))};return(0,i.jsxs)("div",{className:"w-full flex-col flex-grow z-20 max-h-full overflow-y-auto windowMainScreen select-none bg-ub-cool-grey",children:[(0,i.jsx)("div",{className:" md:w-2/5 w-2/3 h-1/3 m-auto my-4",style:{backgroundImage:"url(".concat(t[e.currBgImgName],")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}}),(0,i.jsx)("div",{className:"flex flex-wrap justify-center items-center border-t border-gray-900",children:Object.keys(t).map((s,a)=>(0,i.jsx)("div",{tabIndex:"1",onFocus:changeBackgroundImage,"data-path":s,className:(s===e.currBgImgName?" border-yellow-700 ":" border-transparent ")+" md:px-28 md:py-20 md:m-4 m-2 px-14 py-10 outline-none border-4 border-opacity-80",style:{backgroundImage:"url(".concat(t[s],")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}},a))})]})}let Chrome=class Chrome extends a.Component{componentDidMount(){let e=localStorage.getItem("chrome-url"),t=localStorage.getItem("chrome-display-url");null!=e&&this.setState({url:e,display_url:t},this.refreshChrome)}render(){return(0,i.jsxs)("div",{className:"h-full w-full flex flex-col bg-ub-cool-grey",children:[this.displayUrlBar(),(0,i.jsx)("iframe",{src:this.state.url,className:"flex-grow",id:"chrome-screen",frameBorder:"0",title:"Ubuntu Chrome Url"})]})}constructor(){super(),this.storeVisitedUrl=(e,t)=>{localStorage.setItem("chrome-url",e),localStorage.setItem("chrome-display-url",t)},this.refreshChrome=()=>{document.getElementById("chrome-screen").src+=""},this.goToHome=()=>{this.setState({url:this.home_url,display_url:"https://www.google.com"}),this.refreshChrome()},this.checkKey=e=>{if("Enter"===e.key){let t=e.target.value,s="";0!==(t=t.trim()).length&&(0!==t.indexOf("http://")&&0!==t.indexOf("https://")&&(t="https://"+t),s=t=encodeURI(t),t.includes("google.com")&&(t="https://www.google.com/webhp?igu=1",s="https://www.google.com"),this.setState({url:t,display_url:t}),this.storeVisitedUrl(t,s),document.getElementById("chrome-url-bar").blur())}},this.handleDisplayUrl=e=>{this.setState({display_url:e.target.value})},this.displayUrlBar=()=>(0,i.jsxs)("div",{className:"w-full pt-0.5 pb-1 flex justify-start items-center text-white text-sm border-b border-gray-900",children:[(0,i.jsx)("div",{onClick:this.refreshChrome,className:" ml-2 mr-1 flex justify-center items-center rounded-full bg-gray-50 bg-opacity-0 hover:bg-opacity-10",children:(0,i.jsx)("img",{className:"w-5",src:"./themes/Yaru/status/chrome_refresh.svg",alt:"Ubuntu Chrome Refresh"})}),(0,i.jsx)("div",{onClick:this.goToHome,className:" mr-2 ml-1 flex justify-center items-center rounded-full bg-gray-50 bg-opacity-0 hover:bg-opacity-10",children:(0,i.jsx)("img",{className:"w-5",src:"./themes/Yaru/status/chrome_home.svg",alt:"Ubuntu Chrome Home"})}),(0,i.jsx)("input",{onKeyDown:this.checkKey,onChange:this.handleDisplayUrl,value:this.state.display_url,id:"chrome-url-bar",className:"outline-none bg-ub-grey rounded-full pl-3 py-0.5 mr-3 w-5/6 text-gray-300 focus:text-white",type:"url",spellCheck:!1,autoComplete:"off"})]}),this.home_url="https://www.google.com/webhp?igu=1",this.state={url:"https://www.google.com/webhp?igu=1",display_url:"https://www.google.com"}}};let Trash=class Trash extends a.Component{componentDidMount(){let e=localStorage.getItem("trash-empty");null!=e&&"true"===e&&this.setState({empty:!0})}render(){return(0,i.jsxs)("div",{className:"w-full h-full flex flex-col bg-ub-cool-grey text-white select-none",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between w-full bg-ub-warm-grey bg-opacity-40 text-sm",children:[(0,i.jsx)("span",{className:"font-bold ml-2",children:"Trash"}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:"border border-black bg-black bg-opacity-50 px-3 py-1 my-1 mx-1 rounded text-gray-300",children:"Restore"}),(0,i.jsx)("div",{onClick:this.emptyTrash,className:"border border-black bg-black bg-opacity-50 px-3 py-1 my-1 mx-1 rounded hover:bg-opacity-80",children:"Empty"})]})]}),this.state.empty?this.emptyScreen():this.showTrashItems()]})}constructor(){super(),this.focusFile=e=>{o()(e.target).children().get(0).classList.toggle("opacity-60"),o()(e.target).children().get(1).classList.toggle("bg-ub-orange")},this.emptyTrash=()=>{this.setState({empty:!0}),localStorage.setItem("trash-empty",!0)},this.emptyScreen=()=>(0,i.jsxs)("div",{className:"flex-grow flex flex-col justify-center items-center",children:[(0,i.jsx)("img",{className:" w-24",src:"./themes/Yaru/status/user-trash-symbolic.svg",alt:"Ubuntu Trash"}),(0,i.jsx)("span",{className:"font-bold mt-4 text-xl px-1 text-gray-400",children:"Trash is Empty"})]}),this.showTrashItems=()=>(0,i.jsx)("div",{className:"flex-grow ml-4 flex flex-wrap items-start content-start justify-start overflow-y-auto windowMainScreen",children:this.trashItems.map((e,t)=>(0,i.jsxs)("div",{tabIndex:"1",onFocus:this.focusFile,onBlur:this.focusFile,className:"flex flex-col items-center text-sm outline-none w-16 my-2 mx-4",children:[(0,i.jsx)("div",{className:"w-16 h-16 flex items-center justify-center",children:(0,i.jsx)("img",{src:e.icon,alt:"Ubuntu File Icons"})}),(0,i.jsx)("span",{className:"text-center rounded px-0.5",children:e.name})]},t))}),this.trashItems=[{name:"php",icon:"./themes/filetypes/php.png"},{name:"Angular.js",icon:"./themes/filetypes/js.png"},{name:"node_modules",icon:"./themes/Yaru/system/folder.png"},{name:"abandoned project",icon:"./themes/Yaru/system/folder.png"},{name:"18BCP127 assignment name.zip",icon:"./themes/filetypes/zip.png"},{name:"project final",icon:"./themes/Yaru/system/folder.png"},{name:"project ultra-final",icon:"./themes/Yaru/system/folder.png"}],this.state={empty:!1}}};var l=s(5247);let Gedit=class Gedit extends a.Component{componentDidMount(){l.ZP.init("JTbKuwT7e0-M5Oq7S")}render(){return(0,i.jsxs)("div",{className:"w-full h-full relative flex flex-col bg-ub-cool-grey text-white select-none",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between w-full bg-ub-gedit-light bg-opacity-60 border-b border-t border-blue-400 text-sm",children:[(0,i.jsx)("span",{className:"font-bold ml-2",children:"Send a Message to Me"}),(0,i.jsx)("div",{className:"flex",children:(0,i.jsx)("div",{onClick:this.sendMessage,className:"border border-black bg-black bg-opacity-50 px-3 py-0.5 my-1 mx-1 rounded hover:bg-opacity-80",children:"Send"})})]}),(0,i.jsxs)("div",{className:"relative flex-grow flex flex-col bg-ub-gedit-dark font-normal windowMainScreen",children:[(0,i.jsx)("div",{className:"absolute left-0 top-0 h-full px-2 bg-ub-gedit-darker"}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("input",{id:"sender-name",className:" w-full text-ubt-gedit-orange focus:bg-ub-gedit-light outline-none font-medium text-sm pl-6 py-0.5 bg-transparent",placeholder:"Your Email / Name :",spellCheck:"false",autoComplete:"off",type:"text"}),(0,i.jsx)("span",{className:"absolute left-1 top-1/2 transform -translate-y-1/2 font-bold light text-sm text-ubt-gedit-blue",children:"1"})]}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("input",{id:"sender-subject",className:" w-full my-1 text-ubt-gedit-blue focus:bg-ub-gedit-light gedit-subject outline-none text-sm font-normal pl-6 py-0.5 bg-transparent",placeholder:"subject (may be a feedback for this website!)",spellCheck:"false",autoComplete:"off",type:"text"}),(0,i.jsx)("span",{className:"absolute left-1 top-1/2 transform -translate-y-1/2 font-bold text-sm text-ubt-gedit-blue",children:"2"})]}),(0,i.jsxs)("div",{className:"relative flex-grow",children:[(0,i.jsx)("textarea",{id:"sender-message",className:" w-full gedit-message font-light text-sm resize-none h-full windowMainScreen outline-none tracking-wider pl-6 py-1 bg-transparent",placeholder:"Message",spellCheck:"false",autoComplete:"none",type:"text"}),(0,i.jsx)("span",{className:"absolute left-1 top-1 font-bold text-sm text-ubt-gedit-blue",children:"3"})]})]}),this.state.sending?(0,i.jsx)("div",{className:"flex justify-center items-center animate-pulse h-full w-full bg-gray-400 bg-opacity-30 absolute top-0 left-0",children:(0,i.jsx)("img",{className:" w-8 absolute animate-spin",src:"./themes/Yaru/status/process-working-symbolic.svg",alt:"Ubuntu Process Symbol"})}):null]})}constructor(){super(),this.sendMessage=async()=>{let e=o()("#sender-name").val(),t=o()("#sender-subject").val(),s=o()("#sender-message").val();e=e.trim(),t=t.trim(),s=s.trim();let i=!1;if(0===e.length&&(o()("#sender-name").val(""),o()("#sender-name").attr("placeholder","Name must not be Empty!"),i=!0),0===s.length&&(o()("#sender-message").val(""),o()("#sender-message").attr("placeholder","Message must not be Empty!"),i=!0),i)return;this.setState({sending:!0});let a={name:e,subject:t,message:s};l.ZP.send("service_3xmfau2","template_48gspu5",a).then(()=>{this.setState({sending:!1}),o()("#close-gedit").trigger("click")}).catch(()=>{this.setState({sending:!1}),o()("#close-gedit").trigger("click")}),n.ZP.event({category:"Send Message",action:"".concat(e,", ").concat(t,", ").concat(s)})},this.state={sending:!1}}};let AboutUriel=class AboutUriel extends a.Component{componentDidMount(){this.screens={about:(0,i.jsx)(About,{}),education:(0,i.jsx)(Education,{}),skills:(0,i.jsx)(Skills,{}),projects:(0,i.jsx)(Projects,{}),talks:(0,i.jsx)(Talks,{}),resume:(0,i.jsx)(Resume,{})};let e=localStorage.getItem("about-section");null==e&&(e="about"),this.changeScreen(document.getElementById(e))}render(){return(0,i.jsxs)("div",{className:"w-full h-full flex bg-ub-cool-grey text-white select-none relative",children:[(0,i.jsx)("div",{className:"md:flex hidden flex-col w-1/4 md:w-1/5 text-sm overflow-y-auto windowMainScreen border-r border-black",children:this.renderNavLinks()}),(0,i.jsxs)("div",{onClick:this.showNavBar,className:"md:hidden flex flex-col items-center justify-center absolute bg-ub-cool-grey rounded w-6 h-6 top-1 left-1",children:[(0,i.jsx)("div",{className:" w-3.5 border-t border-white"}),(0,i.jsx)("div",{className:" w-3.5 border-t border-white",style:{marginTop:"2pt",marginBottom:"2pt"}}),(0,i.jsx)("div",{className:" w-3.5 border-t border-white"}),(0,i.jsx)("div",{className:(this.state.navbar?" visible animateShow z-30 ":" invisible ")+" md:hidden text-xs absolute bg-ub-cool-grey py-0.5 px-1 rounded-sm top-full mt-1 left-0 shadow border-black border border-opacity-20",children:this.renderNavLinks()})]}),(0,i.jsx)("div",{className:"flex flex-col w-3/4 md:w-4/5 justify-start items-center flex-grow bg-ub-grey overflow-y-auto windowMainScreen",children:this.state.screen})]})}constructor(e){super(e),this.changeScreen=e=>{let t=e.id||e.target.id;localStorage.setItem("about-section",t),n.ZP.send({hitType:"pageview",page:"/".concat(t),title:"Custom Title"}),this.setState({screen:this.screens[t],active_screen:t})},this.showNavBar=()=>{this.setState({navbar:!this.state.navbar})},this.renderNavLinks=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{id:"about",tabIndex:"0",onFocus:this.changeScreen,className:("about"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"about uriel",src:"./themes/Yaru/status/about.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"About Me"})]}),(0,i.jsxs)("div",{id:"education",tabIndex:"0",onFocus:this.changeScreen,className:("education"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"uriel' education",src:"./themes/Yaru/status/education.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"Education"})]}),(0,i.jsxs)("div",{id:"skills",tabIndex:"0",onFocus:this.changeScreen,className:("skills"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"uriel' skills",src:"./themes/Yaru/status/skills.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"Skills"})]}),(0,i.jsxs)("div",{id:"projects",tabIndex:"0",onFocus:this.changeScreen,className:("projects"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"uriel' projects",src:"./themes/Yaru/status/projects.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"Projects"})]}),(0,i.jsxs)("div",{id:"talks",tabIndex:"0",onFocus:this.changeScreen,className:("projects"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"uriel' talks",src:"./themes/Yaru/status/audio-headphones-symbolic.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"Talks"})]}),(0,i.jsxs)("div",{id:"resume",tabIndex:"0",onFocus:this.changeScreen,className:("resume"===this.state.active_screen?" bg-ub-orange bg-opacity-100 hover:bg-opacity-95":" hover:bg-gray-50 hover:bg-opacity-5 ")+" w-28 md:w-full md:rounded-none rounded-sm cursor-default outline-none py-1.5 focus:outline-none duration-100 my-0.5 flex justify-start items-center pl-2 md:pl-2.5",children:[(0,i.jsx)("img",{className:" w-3 md:w-4",alt:"uriel's resume",src:"./themes/Yaru/status/download.svg"}),(0,i.jsx)("span",{className:" ml-1 md:ml-2 text-gray-50 ",children:"Resume"})]})]}),this.screens={},this.state={screen:()=>{},active_screen:this.props.default,navbar:!1}}};function About(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"w-20 md:w-28 my-4 bg-white rounded-full",children:(0,i.jsx)("img",{className:"w-full",src:"./images/logos/bitmoji.png",alt:"Uriel Salischiker Logo"})}),(0,i.jsxs)("div",{className:" mt-4 md:mt-8 text-lg md:text-2xl text-center px-1",children:[(0,i.jsxs)("div",{children:["my name is ",(0,i.jsx)("span",{className:"font-bold",children:"Uriel Salischiker"})," ,"]}),(0,i.jsxs)("div",{className:"font-normal ml-1",children:["I'm a ",(0,i.jsx)("span",{className:"text-pink-600 font-bold",children:"Software Engineer!"})]})]}),(0,i.jsxs)("div",{className:" mt-4 relative md:my-8 pt-px bg-white w-32 md:w-48",children:[(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 left-0"}),(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 right-0"})]}),(0,i.jsxs)("ul",{className:" mt-4 leading-tight tracking-tight text-sm md:text-base w-5/6 md:w-3/4 emoji-list",children:[(0,i.jsxs)("li",{className:" list-pc",children:["I'm a ",(0,i.jsx)("span",{className:" font-medium",children:"Senior Software Engineer"})," experienced in leading teams and mentoring other engineers! ( Hit me up ",(0,i.jsx)("a",{className:"text-underline",href:"mailto:uriel@urielsalis.com",children:(0,i.jsx)("u",{children:"@uriel@urielsalis.com"})})," :) )"]}),(0,i.jsx)("li",{className:" mt-3 list-building",children:" My main tech stack is Kotlin/Java, but I have experience in Python, Go and Typescript."}),(0,i.jsx)("li",{className:" mt-3 list-time",children:" I have several personal projects in the Minecraft community, on top of discord moderation work"}),(0,i.jsx)("li",{className:" mt-3 list-star",children:" Director @ https://givin.gifts !"})]})]})}function Education(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:" font-medium relative text-2xl mt-2 md:mt-4 mb-4",children:["Education",(0,i.jsxs)("div",{className:"absolute pt-px bg-white mt-px top-full w-full",children:[(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 left-full"}),(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 right-full"})]})]}),(0,i.jsx)("ul",{className:" w-10/12 mt-4 ml-4 px-0 md:px-1",children:(0,i.jsxs)("li",{className:"list-disc",children:[(0,i.jsx)("div",{className:" text-lg md:text-xl text-left font-bold leading-tight",children:"FAMAF - UNC"}),(0,i.jsx)("div",{className:" text-sm text-gray-400 mt-0.5",children:"2016 - 2018"}),(0,i.jsx)("div",{className:" text-sm md:text-base",children:"Computer Computer Science"}),(0,i.jsx)("div",{className:"text-sm text-gray-300 font-bold mt-1",children:"Incomplete"})]})})]})}function Skills(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:" font-medium relative text-2xl mt-2 md:mt-4 mb-4",children:["Technical Skills",(0,i.jsxs)("div",{className:"absolute pt-px bg-white mt-px top-full w-full",children:[(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 left-full"}),(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 right-full"})]})]}),(0,i.jsxs)("ul",{className:" tracking-tight text-sm md:text-base w-10/12 emoji-list",children:[(0,i.jsx)("li",{className:" list-arrow text-sm md:text-base mt-4 leading-tight tracking-tight",children:"I've worked with a wide variety of programming languages & frameworks."}),(0,i.jsx)("li",{className:" list-arrow text-sm md:text-base mt-4 leading-tight tracking-tight",children:(0,i.jsxs)("div",{children:[" My areas of expertise are ",(0,i.jsx)("strong",{className:"text-ubt-gedit-orange",children:"Java and Kotlin!"})]})}),(0,i.jsx)("li",{className:" list-arrow text-sm md:text-base mt-4 leading-tight tracking-tight",children:(0,i.jsx)("div",{children:"Here are my most frequently used"})})]}),(0,i.jsxs)("div",{className:"w-full md:w-10/12 flex mt-4",children:[(0,i.jsx)("div",{className:" text-sm text-center md:text-base w-1/2 font-bold",children:"Languages & Tools"}),(0,i.jsx)("div",{className:" text-sm text-center md:text-base w-1/2 font-bold",children:"Frameworks & Libraries"})]}),(0,i.jsxs)("div",{className:"w-full md:w-10/12 flex justify-center items-start font-bold text-center",children:[(0,i.jsx)("div",{className:"px-2 w-1/2",children:(0,i.jsxs)("div",{className:"flex flex-wrap justify-center items-start w-full mt-2",children:[(0,i.jsx)("img",{className:"m-1",src:"https://img.shields.io/badge/-Kotlin-%23F7DF1C?style=flat&logo=kotlin&logoColor=000000&labelColor=%23F7DF1C&color=%23FFCE5A",alt:"kotlin"}),(0,i.jsx)("img",{className:"m-1",src:"https://img.shields.io/badge/Java-00599C?style=flat&logo=java&logoColor=white",alt:"java"}),(0,i.jsx)("img",{src:"https://img.shields.io/badge/-Git-%23F05032?style=flat&logo=git&logoColor=%23ffffff",alt:"git",className:"m-1"}),(0,i.jsx)("img",{src:"https://img.shields.io/badge/-Intellij-FFCA28?style=flat&logo=intellij-idea&logoColor=000000",alt:"intellij",className:"m-1"})]})}),(0,i.jsx)("div",{className:"px-2 flex flex-wrap items-start w-1/2",children:(0,i.jsxs)("div",{className:"flex flex-wrap justify-center items-start w-full mt-2",children:[(0,i.jsx)("img",{className:" m-1",src:"https://img.shields.io/badge/-Spring-61DAFB?style=flat&logo=spring&logoColor=ffffff",alt:"spring"}),(0,i.jsx)("img",{className:"m-1",src:"https://img.shields.io/badge/Ktor-02569B?style=flat&logo=ktor&logoColor=white",alt:"ktor"}),(0,i.jsx)("img",{className:"m-1",src:"https://img.shields.io/badge/Ratpack-38B2AC?style=flat&logo=ratpack&logoColor=white",alt:"ratpack"}),(0,i.jsx)("img",{src:"https://img.shields.io/badge/-KoTest-339933?style=flat&logo=kotest&logoColor=ffffff",alt:"kotest",className:"m-1"}),(0,i.jsx)("img",{src:"https://img.shields.io/badge/Junit-0769AD?style=flat&logo=junit&logoColor=white",alt:"junit",className:"m-1"}),(0,i.jsx)("img",{className:"m-1",src:"https://img.shields.io/badge/Arrow-593D88?style=flat&logo=arrowkt&logoColor=white",alt:"arrow"})]})})]})]})}function Projects(){let e={javascript:"yellow-300",firebase:"red-600",firestore:"red-500","firebase auth":"red-400","chrome-extension":"yellow-400",flutter:"blue-400",dart:"blue-500","react-native":"purple-500",html5:"pink-600",sass:"pink-400",tensorflow:"yellow-600",django:"green-600",python:"green-200","codeforces-api":"gray-300",tailwindcss:"blue-300","next.js":"purple-600"};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:" font-medium relative text-2xl mt-2 md:mt-4 mb-4",children:["Projects",(0,i.jsxs)("div",{className:"absolute pt-px bg-white mt-px top-full w-full",children:[(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 left-full"}),(0,i.jsx)("div",{className:"bg-white absolute rounded-full p-0.5 md:p-1 top-0 transform -translate-y-1/2 right-full"})]})]}),(0,i.jsx)("iframe",{src:"https://github.com/sponsors/urielsalis/card",title:"Sponsor urielsalis",className:"my-4 w-5/6 md:w-3/4"}),[{name:"Arisa-KT",date:"Ongoing",link:"https://github.com/mojira/arisa-kt",description:["A bot for jira to automate common tasks, used in the bugtracked for Minecraft!"],domains:["kotlin"]},{name:"MinecraftHopper",date:"Ongoing",link:"https://github.com/MinecraftHopper/MinecraftHopper",description:["A collection of articles for technical support around Minecraft"],domains:["jekyll"]},{name:"Absol",date:"December 2019",link:"https://github.com/LordRalex/absol",description:["A discord bot to handle moderation, hjt logs and automatic messages, used in MinecraftForums and MinecraftHelp"],domains:["go"]},{name:"mc-crash-lib",date:"Aug 2020",link:"https://github.com/urielsalis/mc-crash-lib",description:["A library to parse Minecraft crash reports and look for fixes automatically."],domains:["kotlin"]},{name:"dxdiaglib",date:"May 2019",link:"https://github.com/urielsalis/dxdiaglib",description:["A library to parse dxdiags and look for drivers automatically"],domains:["kotlin"]},{name:"Urielsalads reboot",date:"Jan 2017",link:"https://github.com/urielsalis/Urielsalads-reboot",description:["IRC bot to find drivers and parse hjt"],domains:["java"]},{name:"CurseBot2",date:"Sep 2017",link:"https://github.com/urielsalis/CurseBot2",description:["Reverse-engineering of curse (now twich) chat to build a moderation bot"],domains:["java"]}].map((t,s)=>{let a=t.link.split("/"),r=a[a.length-1];return(0,i.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",className:"flex w-full flex-col px-4",children:(0,i.jsxs)("div",{className:"w-full py-1 px-2 my-2 border border-gray-50 border-opacity-10 rounded hover:bg-gray-50 hover:bg-opacity-5 cursor-pointer",children:[(0,i.jsxs)("div",{className:"flex flex-wrap justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex justify-center items-center",children:[(0,i.jsx)("div",{className:" text-base md:text-lg mr-2",children:t.name.toLowerCase()}),(0,i.jsx)("iframe",{src:"https://ghbtns.com/github-btn.html?user=urielsalis&repo=".concat(r,"&type=star&count=true"),frameBorder:"0",scrolling:"0",width:"150",height:"20",title:t.name.toLowerCase()+"-star"})]}),(0,i.jsx)("div",{className:"text-gray-300 font-light text-sm",children:t.date})]}),(0,i.jsx)("ul",{className:" tracking-normal leading-tight text-sm font-light ml-4 mt-1",children:t.description.map((e,t)=>(0,i.jsx)("li",{className:"list-disc mt-1 text-gray-100",children:e},t))}),(0,i.jsx)("div",{className:"flex flex-wrap items-start justify-start text-xs py-2",children:t.domains?t.domains.map((t,s)=>{let a="border-".concat(e[t]),r="text-".concat(e[t]);return(0,i.jsx)("span",{className:"px-1.5 py-0.5 w-max border ".concat(a," ").concat(r," m-1 rounded-full"),children:t},s)}):null})]})},s)})]})}function Resume(){return(0,i.jsx)("iframe",{className:"h-full w-full",src:"./files/Resume.pdf",title:"Uriel Salischiker resume",frameBorder:"0"})}function Talks(){return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("ul",{className:" tracking-tight text-sm md:text-base w-10/12 emoji-list",children:[(0,i.jsx)("li",{className:" list-arrow text-sm md:text-base mt-4 leading-tight tracking-tight",children:(0,i.jsx)("a",{href:"https://urielsalis.com/functionalkotlin",children:"Functional Kotlin"})}),(0,i.jsx)("li",{className:" list-arrow text-sm md:text-base mt-4 leading-tight tracking-tight",children:(0,i.jsx)("a",{href:"https://urielsalis.com/migrations",children:"The migration handbook"})})]})})}let c=s(6217)._b,d=new c({operators:{add:!0,concatenate:!0,conditional:!0,divide:!0,factorial:!0,multiply:!0,power:!0,remainder:!0,subtract:!0,logical:!1,comparison:!1,in:!1,assignment:!0}});let Calc=class Calc extends a.Component{componentDidMount(){this.reStartTerminal()}componentDidUpdate(){clearInterval(this.cursor),this.startCursor(this.terminal_rows-2)}componentWillUnmount(){clearInterval(this.cursor)}xss(e){if(e)return e.split("").map(e=>{switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"/":return"/";default:return e}}).join("")}render(){return(0,i.jsxs)("div",{className:"h-full w-full bg-ub-drk-abrgn text-ubt-grey opacity-100 p-1 float-left font-normal",children:[(0,i.jsx)("div",{children:"C-style arbitary precision calculator (version 2.12.7.2)"}),(0,i.jsx)("div",{children:"Calc is open software."}),(0,i.jsx)("div",{children:'[ type "exit" to exit, "clear" to clear, "help" for help.]'}),(0,i.jsx)("div",{className:"text-white text-sm font-bold bg-ub-drk-abrgn",id:"calculator-body",children:this.state.terminal})]})}constructor(){super(),this.reStartTerminal=()=>{clearInterval(this.cursor),o()("#calculator-body").empty(),this.appendTerminalRow()},this.appendTerminalRow=()=>{let e=this.state.terminal;e.push(this.terminalRow(this.terminal_rows)),this.setState({terminal:e}),this.terminal_rows+=2},this.terminalRow=e=>(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)("div",{className:" flex p-2 text-ubt-grey opacity-100 mt-1 float-left font-normal "}),(0,i.jsxs)("div",{className:"flex w-full h-5",children:[(0,i.jsxs)("div",{className:" flex text-ubt-green h-1 mr-2",children:[" ",";"," "]}),(0,i.jsxs)("div",{id:"cmd",onClick:this.focusCursor,className:" bg-transperent relative flex-1 overflow-hidden",children:[(0,i.jsx)("span",{id:"show-calculator-".concat(e),className:" float-left whitespace-pre pb-1 opacity-100 font-normal tracking-wider"}),(0,i.jsx)("div",{id:"cursor-".concat(e),className:" float-left mt-1 w-1.5 h-3.5 bg-white"}),(0,i.jsx)("input",{id:"calculator-input-".concat(e),"data-row-id":e,onKeyDown:this.checkKey,onBlur:this.unFocusCursor,className:" absolute top-0 left-0 w-full opacity-0 outline-none bg-transparent",spellCheck:!1,autoFocus:!0,autoComplete:"off",type:"text"})]})]}),(0,i.jsx)("div",{id:"row-calculator-result-".concat(e),className:"my-2 font-normal"})]},e),this.focusCursor=e=>{clearInterval(this.cursor),this.startCursor(o()(e.target).data("row-id"))},this.unFocusCursor=e=>{this.stopCursor(o()(e.target).data("row-id"))},this.startCursor=e=>{clearInterval(this.cursor),o()("input#calculator-input-".concat(e)).trigger("focus"),o()("input#calculator-input-".concat(e)).on("input",function(){o()("#cmd span#show-calculator-".concat(e)).text(o()(this).val())}),this.cursor=window.setInterval(function(){"visible"===o()("#cursor-".concat(e)).css("visibility")?o()("#cursor-".concat(e)).css({visibility:"hidden"}):o()("#cursor-".concat(e)).css({visibility:"visible"})},500)},this.stopCursor=e=>{clearInterval(this.cursor),o()("#cursor-".concat(e)).css({visibility:"visible"})},this.removeCursor=e=>{this.stopCursor(e),o()("#cursor-".concat(e)).css({display:"none"})},this.clearInput=e=>{o()("input#calculator-input-".concat(e)).trigger("blur")},this.checkKey=e=>{if("Enter"===e.key){let t=o()(e.target).data("row-id"),s=o()("input#calculator-input-".concat(t)).val().trim();0!==s.length&&(this.removeCursor(t),this.handleCommands(s,t),this.prev_commands.push(s),this.commands_index=this.prev_commands.length-1,this.clearInput(t))}else if("ArrowUp"===e.key){let t;t=this.commands_index<=-1?"":this.prev_commands[this.commands_index];let s=o()(e.target).data("row-id");o()("input#calculator-input-".concat(s)).val(t),o()("#show-calculator-".concat(s)).text(t),this.commands_index--}else if("ArrowDown"===e.key){let t;if(this.commands_index>=this.prev_commands.length)return;this.commands_index<=-1&&(this.commands_index=0),t=this.commands_index===this.prev_commands.length?"":this.prev_commands[this.commands_index];let s=o()(e.target).data("row-id");o()("input#calculator-input-".concat(s)).val(t),o()("#show-calculator-".concat(s)).text(t),this.commands_index++}},this.closeTerminal=()=>{o()("#close-calc").trigger("click")},this.handleCommands=(e,t)=>{let s=e.split(" ").filter(Boolean)[0],i="";switch(s){case"clear":this.reStartTerminal();return;case"exit":this.closeTerminal();return;case"help":i='Available Commands:
Operators:
addition ( + ), subtraction ( - ),
multiplication ( * ), division ( / ),
modulo ( % )exponentiation. ( ^ )

Mathematical functions:
abs[x] : Absolute value (magnitude) of x
acos[x] : Arc cosine of x (in radians)
acosh[x] : Hyperbolic arc cosine of x (in radians)
asin[x] : Arc sine of x (in radians)
asinh[x] : Hyperbolic arc sine of x (in radians)
atan[x] : Arc tangent of x (in radians)
atanh[x] : Hyperbolic arc tangent of x (in radians)
cbrt[x] : Cube root of x
ceil[x] : Ceiling of x — the smallest integer that’s >= x
cos[x] : Cosine of x (x is in radians)
cosh[x] : Hyperbolic cosine of x (x is in radians)
exp[x] : e^x (exponential/antilogarithm function with base e)
floor[x] : Floor of x — the largest integer that’s <= x
ln[x] : Natural logarithm of x
log[x] : Natural logarithm of x (synonym for ln, not base-10)
log10[x] : Base-10 logarithm of x
log2[x] : Base-2 logarithm of x
round[x] : X, rounded to the nearest integer
sign[x] : Sign of x (-1, 0, or 1 for negative, zero, or positive respectively)
sin[x] : Sine of x (x is in radians)
sinh[x] : Hyperbolic sine of x (x is in radians)
sqrt[x] : Square root of x. Result is NaN (Not a Number) if x is negative.
tan[x] : Tangent of x (x is in radians)
tanh[x] : Hyperbolic tangent of x (x is in radians)


Pre-defined functions:
random(n) : Get a random number in the range [0, n). If n is zero, or not provided, it defaults to 1.
fac(n) n! : (factorial of n: "n * (n-1) * (n-2) * … * 2 * 1") Deprecated. Use the ! operator instead.
min(a,b,…) : Get the smallest (minimum) number in the list.
max(a,b,…) : Get the largest (maximum) number in the list.
hypot(a,b) : Hypotenuse, i.e. the square root of the sum of squares of its arguments.
pyt(a, b) : Alias for hypot.
pow(x, y) : Equivalent to x^y.
roundTo(x, n) : Rounds x to n places after the decimal point.

Constants:
E : The value of Math.E from your JavaScript runtime.
PI : The value of Math.PI from your JavaScript runtime.

Variable assignments :
declare variable and assign a value: x=1 declared variable can be used in further calculation x+2.

clear command for clearing calculator app.

exit command for exit from calculator app. ';break;default:i=this.evaluteExp(e)}document.getElementById("row-calculator-result-".concat(t)).innerHTML=i,this.appendTerminalRow()},this.evaluteExp=e=>{let t,s="";try{t=d.parse(e);try{s=d.evaluate(e,this.variables),2===t.tokens.length&&"IOP2"===t.tokens[2].type&&(this.variables[t.variables()[0]]=s)}catch(e){s=e.message}}catch(e){s="Invalid Expression"}return s},this.cursor="",this.terminal_rows=2,this.prev_commands=[],this.commands_index=-1,this.variables={},this.state={terminal:[]}}};let m=[{id:"chrome",title:"Google Chrome",icon:"./themes/Yaru/apps/chrome.png",disabled:!1,favourite:!0,desktop_shortcut:!0,screen:()=>(0,i.jsx)(Chrome,{children:" "})},{id:"calc",title:"Calc",icon:"./themes/Yaru/apps/calc.png",disabled:!1,favourite:!0,desktop_shortcut:!1,screen:(e,t)=>(0,i.jsx)(Calc,{addFolder:e,openApp:t,children:" "})},{id:"about-uriel",title:"About Uriel",icon:"./themes/Yaru/system/user-home.png",disabled:!1,favourite:!0,desktop_shortcut:!0,screen:()=>(0,i.jsx)(AboutUriel,{default:"about"})},{id:"vscode",title:"Visual Studio Code",icon:"./themes/Yaru/apps/vscode.png",disabled:!1,favourite:!0,desktop_shortcut:!1,screen:function(){return(0,i.jsx)("iframe",{src:"https://github1s.com/urielsalis/urielsalis.github.io/blob/HEAD/components/ubuntu.js",frameBorder:"0",title:"VsCode",className:"h-full w-full bg-ub-cool-grey"})}},{id:"terminal",title:"Terminal",icon:"./themes/Yaru/apps/bash.png",disabled:!1,favourite:!0,desktop_shortcut:!1,screen:displayTerminal},{id:"spotify",title:"Spotify",icon:"./themes/Yaru/apps/spotify.png",disabled:!1,favourite:!0,desktop_shortcut:!1,screen:function(){return(0,i.jsx)("iframe",{src:"https://open.spotify.com/embed/playlist/37i9dQZEVXbMDoHDwVN2tF?si=EmyFiczdTrOMO0eoHQqdlA",frameBorder:"0",title:"Spotify",className:"h-full w-full bg-ub-cool-grey"})}},{id:"settings",title:"Settings",icon:"./themes/Yaru/apps/gnome-control-center.png",disabled:!1,favourite:!0,desktop_shortcut:!1,screen:()=>(0,i.jsx)(Settings,{children:" "})},{id:"trash",title:"Trash",icon:"./themes/Yaru/system/user-trash-full.png",disabled:!1,favourite:!1,desktop_shortcut:!0,screen:()=>(0,i.jsx)(Trash,{children:" "})},{id:"gedit",title:"Contact Me",icon:"./themes/Yaru/apps/gedit.png",disabled:!1,favourite:!1,desktop_shortcut:!0,screen:()=>(0,i.jsx)(Gedit,{children:" "})},{id:"Talks",title:"Talks",icon:"./themes/Yaru/system/user-home.png",disabled:!1,favourite:!0,desktop_shortcut:!0,screen:()=>(0,i.jsx)(AboutUriel,{default:"talks"})}];var h=s(1193),u=s.n(h);let Window=class Window extends a.Component{componentDidMount(){this.id=this.props.id,this.setDefaultWindowDimenstion(),n.ZP.send({hitType:"pageview",page:"/".concat(this.id),title:"Custom Title"}),window.addEventListener("resize",this.resizeBoundries)}componentWillUnmount(){n.ZP.send({hitType:"pageview",page:"/desktop",title:"Custom Title"}),window.removeEventListener("resize",this.resizeBoundries)}render(){return(0,i.jsx)(u(),{axis:"both",handle:".bg-ub-window-title",grid:[1,1],scale:1,onStart:this.changeCursorToMove,onStop:this.changeCursorToDefault,onDrag:this.checkOverlap,allowAnyClick:!1,defaultPosition:{x:this.startX,y:this.startY},bounds:{left:0,top:0,right:this.state.parentSize.width,bottom:this.state.parentSize.height},children:(0,i.jsxs)("div",{style:{width:"".concat(this.state.width,"%"),height:"".concat(this.state.height,"%")},className:this.state.cursorType+" "+(this.state.closed?" closed-window ":"")+(this.state.maximized?" duration-300 rounded-none":" rounded-lg rounded-b-none")+(this.props.minimized?" opacity-0 invisible duration-200 ":"")+(this.props.isFocused?" z-30 ":" z-20 notFocused")+" opened-window overflow-hidden min-w-1/4 min-h-1/4 main-window absolute window-shadow border-black border-opacity-40 border border-t-0 flex flex-col",id:this.id,children:[(0,i.jsx)(WindowYBorder,{resize:this.handleHorizontalResize}),(0,i.jsx)(WindowXBorder,{resize:this.handleVerticleResize}),(0,i.jsx)(WindowTopBar,{title:this.props.title}),(0,i.jsx)(WindowEditButtons,{minimize:this.minimizeWindow,maximize:this.maximizeWindow,isMaximised:this.state.maximized,close:this.closeWindow,id:this.id}),"settings"===this.id?(0,i.jsx)(Settings,{changeBackgroundImage:this.props.changeBackgroundImage,currBgImgName:this.props.bg_image_name}):(0,i.jsx)(WindowMainScreen,{screen:this.props.screen,title:this.props.title,addFolder:"terminal"===this.props.id?this.props.addFolder:null,openApp:this.props.openApp})]})})}constructor(){super(),this.setDefaultWindowDimenstion=()=>{window.innerWidth<640?this.setState({height:60,width:85},this.resizeBoundries):this.setState({height:85,width:60},this.resizeBoundries)},this.resizeBoundries=()=>{this.setState({parentSize:{height:window.innerHeight-window.innerHeight*(this.state.height/100)-28,width:window.innerWidth-window.innerWidth*(this.state.width/100)}})},this.changeCursorToMove=()=>{this.focusWindow(),this.state.maximized&&this.restoreWindow(),this.setState({cursorType:"cursor-move"})},this.changeCursorToDefault=()=>{this.setState({cursorType:"cursor-default"})},this.handleVerticleResize=()=>{this.setState({height:this.state.height+.1},this.resizeBoundries)},this.handleHorizontalResize=()=>{this.setState({width:this.state.width+.1},this.resizeBoundries)},this.setWinowsPosition=()=>{var e=document.querySelector("#"+this.id),t=e.getBoundingClientRect();e.style.setProperty("--window-transform-x",t.x.toFixed(1).toString()+"px"),e.style.setProperty("--window-transform-y",(t.y.toFixed(1)-32).toString()+"px")},this.checkOverlap=()=>{50>document.querySelector("#"+this.id).getBoundingClientRect().x.toFixed(1)?this.props.hideSideBar(this.id,!0):this.props.hideSideBar(this.id,!1)},this.focusWindow=()=>{this.props.focus(this.id)},this.minimizeWindow=()=>{let e=-310;this.state.maximized&&(e=-510),this.setWinowsPosition();var t=document.querySelector("#sidebar-"+this.id),s=t.getBoundingClientRect();(t=document.querySelector("#"+this.id)).style.transform="translate(".concat(e,"px,").concat(s.y.toFixed(1)-240,"px) scale(0.2)"),this.props.hasMinimised(this.id)},this.restoreWindow=()=>{var e=document.querySelector("#"+this.id);this.setDefaultWindowDimenstion();let t=e.style.getPropertyValue("--window-transform-x"),s=e.style.getPropertyValue("--window-transform-y");e.style.transform="translate(".concat(t,",").concat(s,")"),setTimeout(()=>{this.setState({maximized:!1}),this.checkOverlap()},300)},this.maximizeWindow=()=>{if(this.state.maximized)this.restoreWindow();else{this.focusWindow();var e=document.querySelector("#"+this.id);this.setWinowsPosition(),e.style.transform="translate(-1pt,-2pt)",this.setState({maximized:!0,height:96.3,width:100.2}),this.props.hideSideBar(this.id,!0)}},this.closeWindow=()=>{this.setWinowsPosition(),this.setState({closed:!0},()=>{this.props.hideSideBar(this.id,!1),setTimeout(()=>{this.props.closed(this.id)},300)})},this.id=null,this.startX=60,this.startY=10,this.state={cursorType:"cursor-default",width:60,height:85,closed:!1,maximized:!1,parentSize:{height:100,width:100}}}};function WindowTopBar(e){return(0,i.jsx)("div",{className:" relative bg-ub-window-title border-t-2 border-white border-opacity-5 py-1.5 px-3 text-white w-full select-none rounded-b-none",children:(0,i.jsx)("div",{className:"flex justify-center text-sm font-bold",children:e.title})})}let WindowYBorder=class WindowYBorder extends a.Component{componentDidMount(){this.trpImg=new Image(0,0),this.trpImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",this.trpImg.style.opacity=0}render(){return(0,i.jsx)("div",{className:" window-y-border border-transparent border-1 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",onDragStart:e=>{e.dataTransfer.setDragImage(this.trpImg,0,0)},onDrag:this.props.resize})}};let WindowXBorder=class WindowXBorder extends a.Component{componentDidMount(){this.trpImg=new Image(0,0),this.trpImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",this.trpImg.style.opacity=0}render(){return(0,i.jsx)("div",{className:" window-x-border border-transparent border-1 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",onDragStart:e=>{e.dataTransfer.setDragImage(this.trpImg,0,0)},onDrag:this.props.resize})}};function WindowEditButtons(e){return(0,i.jsxs)("div",{className:"absolute select-none right-0 top-0 mt-1 mr-1 flex justify-center items-center",children:[(0,i.jsx)("span",{className:"mx-1.5 bg-white bg-opacity-0 hover:bg-opacity-10 rounded-full flex justify-center mt-1 h-5 w-5 items-center",onClick:e.minimize,children:(0,i.jsx)("img",{src:"./themes/Yaru/window/window-minimize-symbolic.svg",alt:"ubuntu window minimize",className:"h-5 w-5 inline"})}),e.isMaximised?(0,i.jsx)("span",{className:"mx-2 bg-white bg-opacity-0 hover:bg-opacity-10 rounded-full flex justify-center mt-1 h-5 w-5 items-center",onClick:e.maximize,children:(0,i.jsx)("img",{src:"./themes/Yaru/window/window-restore-symbolic.svg",alt:"ubuntu window restore",className:"h-5 w-5 inline"})}):(0,i.jsx)("span",{className:"mx-2 bg-white bg-opacity-0 hover:bg-opacity-10 rounded-full flex justify-center mt-1 h-5 w-5 items-center",onClick:e.maximize,children:(0,i.jsx)("img",{src:"./themes/Yaru/window/window-maximize-symbolic.svg",alt:"ubuntu window maximize",className:"h-5 w-5 inline"})}),(0,i.jsx)("button",{tabIndex:"-1",id:"close-".concat(e.id),className:"mx-1.5 focus:outline-none cursor-default bg-ub-orange bg-opacity-90 hover:bg-opacity-100 rounded-full flex justify-center mt-1 h-5 w-5 items-center",onClick:e.close,children:(0,i.jsx)("img",{src:"./themes/Yaru/window/window-close-symbolic.svg",alt:"ubuntu window close",className:"h-5 w-5 inline"})})]})}let WindowMainScreen=class WindowMainScreen extends a.Component{componentDidMount(){setTimeout(()=>{this.setState({setDarkBg:!0})},3e3)}render(){return(0,i.jsx)("div",{className:"w-full flex-grow z-20 max-h-full overflow-y-auto windowMainScreen"+(this.state.setDarkBg?" bg-ub-drk-abrgn ":" bg-ub-cool-grey"),children:this.props.addFolder?displayTerminal(this.props.addFolder,this.props.openApp):this.props.screen()})}constructor(){super(),this.state={setDarkBg:!1}}};let UbuntuApp=class UbuntuApp extends a.Component{render(){return(0,i.jsxs)("div",{className:"p-1 m-px z-10 bg-white bg-opacity-0 hover:bg-opacity-20 focus:bg-ub-orange focus:bg-opacity-50 focus:border-yellow-700 focus:border-opacity-100 border border-transparent outline-none rounded select-none w-24 h-20 flex flex-col justify-start items-center text-center text-xs font-normal text-white ",id:"app-"+this.props.id,onDoubleClick:this.openApp,tabIndex:0,children:[(0,i.jsx)("img",{width:"40px",height:"40px",className:"mb-1 w-10",src:this.props.icon,alt:"Ubuntu "+this.props.name}),this.props.name]})}constructor(...e){super(...e),this.openApp=()=>{this.props.openApp(this.props.id)}}};let AllApplications=class AllApplications extends a.Component{componentDidMount(){this.setState({apps:this.props.apps})}render(){return(0,i.jsxs)("div",{className:"absolute h-full top-7 w-full z-20 pl-12 justify-center md:pl-20 border-black border-opacity-60 bg-black bg-opacity-70",children:[(0,i.jsx)("div",{className:"flex md:pr-20 pt-5 align-center justify-center",children:(0,i.jsxs)("div",{className:"flex w-2/3 h-full items-center pl-2 pr-2 bg-white border-black border-width-2 rounded-xl overflow-hidden md:w-1/3 ",children:[(0,i.jsx)("img",{className:"w-5 h-5",alt:"search icon",src:"./images/logos/search.png"}),(0,i.jsx)("input",{className:"w-3/4 p-1 bg-transparent focus:outline-none",placeholder:"Type to Search ",value:this.state.query,onChange:this.handleChange})]})}),(0,i.jsx)("div",{className:"grid md:grid-cols-6 md:grid-rows-3 grid-cols-3 grid-rows-6 md:gap-4 gap-1 md:px-20 px-5 pt-10 justify-center",children:this.renderApps()}),(0,i.jsxs)("div",{className:"flex align-center justify-center w-full fixed bottom-0 mb-15 pr-20 md:pr-20 ",children:[(0,i.jsxs)("div",{className:"w-1/4 text-center group text-white bg-transparent cursor-pointer items-center",onClick:this.handleSwitch.bind(this,1),children:[(0,i.jsx)("h4",{children:"Frequent"}),1===this.state.category?(0,i.jsx)("div",{className:"h-1 mt-1 bg-ub-orange self-center"}):(0,i.jsx)("div",{className:"h-1 mt-1 bg-transparent group-hover:bg-white "})]}),(0,i.jsxs)("div",{className:"w-1/4 text-center group text-white bg-transparent cursor-pointer items-center",onClick:this.handleSwitch.bind(this,0),children:[(0,i.jsx)("h4",{children:"All"}),0===this.state.category?(0,i.jsx)("div",{className:"h-1 mt-1 bg-ub-orange self-center"}):(0,i.jsx)("div",{className:"h-1 mt-1 bg-transparent group-hover:bg-white"})]})]})]})}constructor(){super(),this.handleChange=e=>{this.setState({query:e.target.value,apps:""===e.target.value||null===e.target.value?this.props.apps:this.state.apps.filter(t=>t.title.toLowerCase().includes(e.target.value.toLowerCase()))})},this.renderApps=()=>{let e=[],t=JSON.parse(localStorage.getItem("frequentApps"));return(0===this.state.category?[...this.state.apps]:(()=>{let e=[];return t&&t.forEach(t=>{let s=this.props.apps.find(e=>e.id===t.id);s&&e.push(s)}),e})()).forEach((t,s)=>{let a={name:t.title,id:t.id,icon:t.icon,openApp:this.props.openApp};e.push((0,i.jsx)(UbuntuApp,{...a},s))}),e},this.handleSwitch=e=>{e!==this.state.category&&this.setState({category:e})},this.state={query:"",apps:[],category:0}}};function Devider(){return(0,i.jsx)("div",{className:"flex justify-center w-full",children:(0,i.jsx)("div",{className:" border-t border-gray-900 py-1 w-2/5"})})}var desktop_menu=function(e){let[t,s]=(0,a.useState)(!1);(0,a.useEffect)(()=>(document.addEventListener("fullscreenchange",checkFullScreen),()=>{document.removeEventListener("fullscreenchange",checkFullScreen)}),[]);let openSettings=()=>{e.openApp("settings")},checkFullScreen=()=>{document.fullscreenElement?s(!0):s(!1)};return(0,i.jsxs)("div",{id:"desktop-menu",className:(e.active?" block ":" hidden ")+" cursor-default w-52 context-menu-bg border text-left font-light border-gray-900 rounded text-white py-4 absolute z-50 text-sm",children:[(0,i.jsx)("div",{onClick:e.addNewFolder,className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:(0,i.jsx)("span",{className:"ml-5",children:"New Folder"})}),(0,i.jsx)(Devider,{}),(0,i.jsx)("div",{className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5 text-gray-400",children:(0,i.jsx)("span",{className:"ml-5",children:"Paste"})}),(0,i.jsx)(Devider,{}),(0,i.jsx)("div",{className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5 text-gray-400",children:(0,i.jsx)("span",{className:"ml-5",children:"Show Desktop in Files"})}),(0,i.jsx)("div",{onClick:()=>{e.openApp("terminal")},className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:(0,i.jsx)("span",{className:"ml-5",children:"Open in Terminal"})}),(0,i.jsx)(Devider,{}),(0,i.jsx)("div",{onClick:openSettings,className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:(0,i.jsx)("span",{className:"ml-5",children:"Change Background..."})}),(0,i.jsx)(Devider,{}),(0,i.jsx)("div",{className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5 text-gray-400",children:(0,i.jsx)("span",{className:"ml-5",children:"Display Settings"})}),(0,i.jsx)("div",{onClick:openSettings,className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:(0,i.jsx)("span",{className:"ml-5",children:"Settings"})}),(0,i.jsx)(Devider,{}),(0,i.jsx)("div",{onClick:()=>{try{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()}catch(e){console.log(e)}},className:"w-full py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:(0,i.jsxs)("span",{className:"ml-5",children:[t?"Exit":"Enter"," Full Screen"]})})]})};function default_Devider(){return(0,i.jsx)("div",{className:"flex justify-center w-full",children:(0,i.jsx)("div",{className:" border-t border-gray-900 py-1 w-2/5"})})}var context_menus_default=function(e){return(0,i.jsxs)("div",{id:"default-menu",className:(e.active?" block ":" hidden ")+" cursor-default w-52 context-menu-bg border text-left border-gray-900 rounded text-white py-4 absolute z-50 text-sm",children:[(0,i.jsxs)("a",{rel:"noreferrer noopener",href:"https://github.com/urielsalis/urielsalis.github.io",target:"_blank",className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"\uD83C\uDF1F"})," ",(0,i.jsx)("span",{className:"ml-2",children:"Star this Project"})]}),(0,i.jsxs)("a",{rel:"noreferrer noopener",href:"https://github.com/urielsalis/urielsalis.github.io/issues",target:"_blank",className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"❗"})," ",(0,i.jsx)("span",{className:"ml-2",children:"Report bugs"})]}),(0,i.jsx)(default_Devider,{}),(0,i.jsxs)("a",{rel:"noreferrer noopener",href:"https://www.linkedin.com/in/urielsalis/",target:"_blank",className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"\uD83D\uDE4B‍♂️"})," ",(0,i.jsxs)("span",{className:"ml-2",children:["Follow on ",(0,i.jsx)("strong",{children:"Linkedin"})]})]}),(0,i.jsxs)("a",{rel:"noreferrer noopener",href:"https://github.com/urielsalis",target:"_blank",className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"\uD83E\uDD1D"})," ",(0,i.jsxs)("span",{className:"ml-2",children:["Follow on ",(0,i.jsx)("strong",{children:"Github"})]})]}),(0,i.jsxs)("a",{rel:"noreferrer noopener",href:"mailto:uriel@urielsalis.com",target:"_blank",className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"\uD83D\uDCE5"})," ",(0,i.jsx)("span",{className:"ml-2",children:"Contact Me"})]}),(0,i.jsx)(default_Devider,{}),(0,i.jsxs)("div",{onClick:()=>{localStorage.clear(),window.location.reload()},className:"w-full block cursor-default py-0.5 hover:bg-ub-warm-grey hover:bg-opacity-20 mb-1.5",children:[(0,i.jsx)("span",{className:"ml-5",children:"\uD83E\uDDF9"})," ",(0,i.jsx)("span",{className:"ml-2",children:"Reset Ubuntu"})]})]})};let Desktop=class Desktop extends a.Component{componentDidMount(){n.ZP.send({hitType:"pageview",page:"/desktop",title:"Custom Title"}),this.fetchAppsData(),this.setContextListeners(),this.setEventListeners(),this.checkForNewFolders()}componentWillUnmount(){this.removeContextListeners()}render(){return(0,i.jsxs)("div",{className:" h-full w-full flex flex-col items-end justify-start content-start flex-wrap-reverse pt-8 bg-transparent relative overflow-hidden overscroll-none window-parent",children:[(0,i.jsx)("div",{className:"absolute h-full w-full bg-transparent","data-context":"desktop-area",children:this.renderWindows()}),(0,i.jsx)(BackgroundImage,{img:this.props.bg_image_name}),(0,i.jsx)(SideBar,{apps:m,hide:this.state.hideSideBar,hideSideBar:this.hideSideBar,favourite_apps:this.state.favourite_apps,showAllApps:this.showAllApps,allAppsView:this.state.allAppsView,closed_windows:this.state.closed_windows,focused_windows:this.state.focused_windows,isMinimized:this.state.minimized_windows,openAppByAppId:this.openApp}),this.renderDesktopApps(),(0,i.jsx)(desktop_menu,{active:this.state.context_menus.desktop,openApp:this.openApp,addNewFolder:this.addNewFolder}),(0,i.jsx)(context_menus_default,{active:this.state.context_menus.default}),this.state.showNameBar?this.renderNameBar():null,this.state.allAppsView?(0,i.jsx)(AllApplications,{apps:m,recentApps:this.app_stack,openApp:this.openApp}):null]})}constructor(){super(),this.checkForNewFolders=()=>{var e=localStorage.getItem("new_folders");null===e?localStorage.setItem("new_folders",JSON.stringify([])):((e=JSON.parse(e)).forEach(e=>{m.push({id:"new-folder-".concat(e.id),title:e.name,icon:"./themes/Yaru/system/folder.png",disabled:!0,favourite:!1,desktop_shortcut:!0,screen:()=>{}})}),this.updateAppsData())},this.setEventListeners=()=>{document.getElementById("open-settings").addEventListener("click",()=>{this.openApp("settings")})},this.setContextListeners=()=>{document.addEventListener("contextmenu",this.checkContextMenu),document.addEventListener("click",this.hideAllContextMenu)},this.removeContextListeners=()=>{document.removeEventListener("contextmenu",this.checkContextMenu),document.removeEventListener("click",this.hideAllContextMenu)},this.checkContextMenu=e=>{(e.preventDefault(),this.hideAllContextMenu(),"desktop-area"===e.target.dataset.context)?(n.ZP.event({category:"Context Menu",action:"Opened Desktop Context Menu"}),this.showContextMenu(e,"desktop")):(n.ZP.event({category:"Context Menu",action:"Opened Default Context Menu"}),this.showContextMenu(e,"default"))},this.showContextMenu=(e,t)=>{let{posx:s,posy:i}=this.getMenuPosition(e),a=document.getElementById("".concat(t,"-menu"));s+o()(a).width()>window.innerWidth&&(s-=o()(a).width()),i+o()(a).height()>window.innerHeight&&(i-=o()(a).height()),s=s.toString()+"px",i=i.toString()+"px",a.style.left=s,a.style.top=i,this.setState({context_menus:{...this.state.context_menus,[t]:!0}})},this.hideAllContextMenu=()=>{let e=this.state.context_menus;Object.keys(e).forEach(t=>{e[t]=!1}),this.setState({context_menus:e})},this.getMenuPosition=e=>{var t=0,s=0;return e||(e=window.event),e.pageX||e.pageY?(t=e.pageX,s=e.pageY):(e.clientX||e.clientY)&&(t=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,s=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),{posx:t,posy:s}},this.fetchAppsData=()=>{let e={},t={},s={},i={},a={},r={},o=[];m.forEach(n=>{e={...e,[n.id]:!1},t={...t,[n.id]:!0},s={...s,[n.id]:n.disabled},i={...i,[n.id]:n.favourite},a={...a,[n.id]:!1},r={...r,[n.id]:!1},n.desktop_shortcut&&o.push(n.id)}),this.setState({focused_windows:e,closed_windows:t,disabled_apps:s,favourite_apps:i,overlapped_windows:a,minimized_windows:r,desktop_apps:o}),this.initFavourite={...i}},this.updateAppsData=()=>{let e={},t={},s={},i={},a={},r=[];m.forEach(o=>{e={...e,[o.id]:(void 0!==this.state.focused_windows[o.id]||null!==this.state.focused_windows[o.id])&&this.state.focused_windows[o.id]},i={...i,[o.id]:(void 0!==this.state.minimized_windows[o.id]||null!==this.state.minimized_windows[o.id])&&this.state.minimized_windows[o.id]},a={...a,[o.id]:o.disabled},t={...t,[o.id]:void 0===this.state.closed_windows[o.id]&&null===this.state.closed_windows[o.id]||this.state.closed_windows[o.id]},s={...s,[o.id]:o.favourite},o.desktop_shortcut&&r.push(o.id)}),this.setState({focused_windows:e,closed_windows:t,disabled_apps:a,minimized_windows:i,favourite_apps:s,desktop_apps:r}),this.initFavourite={...s}},this.renderDesktopApps=()=>{if(0===Object.keys(this.state.closed_windows).length)return;let e=[];return m.forEach((t,s)=>{if(this.state.desktop_apps.includes(t.id)){let a={name:t.title,id:t.id,icon:t.icon,openApp:this.openApp};e.push((0,i.jsx)(UbuntuApp,{...a},s))}}),e},this.renderWindows=()=>{let e=[];return m.forEach((t,s)=>{if(!1===this.state.closed_windows[t.id]){let a={title:t.title,id:t.id,screen:t.screen,addFolder:this.addToDesktop,closed:this.closeApp,openApp:this.openApp,focus:this.focus,isFocused:this.state.focused_windows[t.id],hideSideBar:this.hideSideBar,hasMinimised:this.hasMinimised,minimized:this.state.minimized_windows[t.id],changeBackgroundImage:this.props.changeBackgroundImage,bg_image_name:this.props.bg_image_name};e.push((0,i.jsx)(Window,{...a},s))}}),e},this.hideSideBar=(e,t)=>{if(t===this.state.hideSideBar)return;if(null===e){if(!1===t)this.setState({hideSideBar:!1});else for(let e in this.state.overlapped_windows)if(this.state.overlapped_windows[e]){this.setState({hideSideBar:!0});break}return}if(!1===t){for(let t in this.state.overlapped_windows)if(this.state.overlapped_windows[t]&&t!==e)return}let s=this.state.overlapped_windows;s[e]=t,this.setState({hideSideBar:t,overlapped_windows:s})},this.hasMinimised=e=>{let t=this.state.minimized_windows;var s=this.state.focused_windows;t[e]=!0,s[e]=!1,this.setState({minimized_windows:t,focused_windows:s}),this.hideSideBar(null,!1),this.giveFocusToLastApp()},this.giveFocusToLastApp=()=>{if(!this.checkAllMinimised()){for(let e in this.app_stack)if(!this.state.minimized_windows[this.app_stack[e]]){this.focus(this.app_stack[e]);break}}},this.checkAllMinimised=()=>{let e=!0;for(let t in this.state.minimized_windows)this.state.closed_windows[t]||(e&=this.state.minimized_windows[t]);return e},this.openApp=e=>{if(n.ZP.event({category:"Open App",action:"Opened ".concat(e," window")}),!this.state.disabled_apps[e]){if(this.state.minimized_windows[e]){this.focus(e);var t=document.querySelector("#"+e);t.style.transform="translate(".concat(t.style.getPropertyValue("--window-transform-x"),",").concat(t.style.getPropertyValue("--window-transform-y"),") scale(1)");let s=this.state.minimized_windows;s[e]=!1,this.setState({minimized_windows:s});return}if(this.app_stack.includes(e))this.focus(e);else{let t=this.state.closed_windows,a=this.state.favourite_apps;var s=localStorage.getItem("frequentApps")?JSON.parse(localStorage.getItem("frequentApps")):[],i=s.find(t=>t.id===e);i?s.forEach(e=>{e.id===i.id&&(e.frequency+=1)}):s.push({id:e,frequency:1}),s.sort((e,t)=>e.frequencyt.frequency?-1:0),localStorage.setItem("frequentApps",JSON.stringify(s)),setTimeout(()=>{a[e]=!0,t[e]=!1,this.setState({closed_windows:t,favourite_apps:a,allAppsView:!1},this.focus(e)),this.app_stack.push(e)},200)}}},this.closeApp=e=>{this.app_stack.splice(this.app_stack.indexOf(e),1),this.giveFocusToLastApp(),this.hideSideBar(null,!1);let t=this.state.closed_windows,s=this.state.favourite_apps;!1===this.initFavourite[e]&&(s[e]=!1),t[e]=!0,this.setState({closed_windows:t,favourite_apps:s})},this.focus=e=>{var t=this.state.focused_windows;for(let s in t[e]=!0,t)t.hasOwnProperty(s)&&s!==e&&(t[s]=!1);this.setState({focused_windows:t})},this.addNewFolder=()=>{this.setState({showNameBar:!0})},this.addToDesktop=e=>{let t=(e=e.trim()).replace(/\s+/g,"-").toLowerCase();m.push({id:"new-folder-".concat(t),title:e,icon:"./themes/Yaru/system/folder.png",disabled:!0,favourite:!1,desktop_shortcut:!0,screen:()=>{}});var s=JSON.parse(localStorage.getItem("new_folders"));s.push({id:"new-folder-".concat(t),name:e}),localStorage.setItem("new_folders",JSON.stringify(s)),this.setState({showNameBar:!1},this.updateAppsData)},this.showAllApps=()=>{this.setState({allAppsView:!this.state.allAppsView})},this.renderNameBar=()=>(0,i.jsxs)("div",{className:"absolute rounded-md top-1/2 left-1/2 text-center text-white font-light text-sm bg-ub-cool-grey transform -translate-y-1/2 -translate-x-1/2 sm:w-96 w-3/4 z-50",children:[(0,i.jsxs)("div",{className:"w-full flex flex-col justify-around items-start pl-6 pb-8 pt-6",children:[(0,i.jsx)("span",{children:"New folder name"}),(0,i.jsx)("input",{className:"outline-none mt-5 px-1 w-10/12 context-menu-bg border-2 border-yellow-700 rounded py-0.5",id:"folder-name-input",type:"text",autoComplete:"off",spellCheck:"false",autoFocus:!0})]}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{onClick:()=>{let e=document.getElementById("folder-name-input").value;this.addToDesktop(e)},className:"w-1/2 px-4 py-2 border border-gray-900 border-opacity-50 border-r-0 hover:bg-ub-warm-grey hover:bg-opacity-10 hover:border-opacity-50",children:"Create"}),(0,i.jsx)("div",{onClick:()=>{this.setState({showNameBar:!1})},className:"w-1/2 px-4 py-2 border border-gray-900 border-opacity-50 hover:bg-ub-warm-grey hover:bg-opacity-10 hover:border-opacity-50",children:"Cancel"})]})]}),this.app_stack=[],this.initFavourite={},this.allWindowClosed=!1,this.state={focused_windows:{},closed_windows:{},allAppsView:!1,overlapped_windows:{},disabled_apps:{},favourite_apps:{},hideSideBar:!1,minimized_windows:{},desktop_apps:[],context_menus:{desktop:!1,default:!1},showNameBar:!1}}};let Clock=class Clock extends a.Component{componentDidMount(){this.update_time=setInterval(()=>{this.setState({current_time:new Date})},1e4)}componentWillUnmount(){clearInterval(this.update_time)}render(){let e;let{current_time:t}=this.state,s=this.day_list[t.getDay()],a=t.getHours(),r=t.getMinutes(),o=this.month_list[t.getMonth()],n=t.getDate().toLocaleString(),l=a<12?"AM":"PM";return 1===r.toLocaleString().length&&(r="0"+r),this.state.hour_12&&a>12&&(a-=12),e=this.props.onlyTime?a+":"+r+" "+l:this.props.onlyDay?s+" "+o+" "+n:s+" "+o+" "+n+" "+a+":"+r+" "+l,(0,i.jsx)("span",{children:e})}constructor(){super(),this.month_list=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],this.day_list=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],this.state={hour_12:!0,current_time:new Date}}};function LockScreen(e){return e.isLocked&&(window.addEventListener("click",e.unLockScreen),window.addEventListener("keypress",e.unLockScreen)),(0,i.jsxs)("div",{id:"ubuntu-lock-screen",style:{zIndex:"100"},className:(e.isLocked?" visible translate-y-0 ":" invisible -translate-y-full ")+" absolute outline-none bg-black bg-opacity-90 transform duration-500 select-none top-0 right-0 overflow-hidden m-0 p-0 h-screen w-screen",children:[(0,i.jsx)("div",{style:{backgroundImage:"url(".concat({"wall-1":"./images/wallpapers/wall-1.webp","wall-2":"./images/wallpapers/wall-2.webp","wall-3":"./images/wallpapers/wall-3.webp","wall-4":"./images/wallpapers/wall-4.webp","wall-5":"./images/wallpapers/wall-5.webp","wall-6":"./images/wallpapers/wall-6.webp","wall-7":"./images/wallpapers/wall-7.webp","wall-8":"./images/wallpapers/wall-8.webp"}[e.bgImgName],")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPositionX:"center"},className:"absolute top-0 left-0 w-full h-full transform z-20 blur-md "}),(0,i.jsxs)("div",{className:"w-full h-full z-50 overflow-hidden relative flex flex-col justify-center items-center text-white",children:[(0,i.jsx)("div",{className:" text-7xl",children:(0,i.jsx)(Clock,{onlyTime:!0})}),(0,i.jsx)("div",{className:"mt-4 text-xl font-medium",children:(0,i.jsx)(Clock,{onlyDay:!0})}),(0,i.jsx)("div",{className:" mt-16 text-base",children:"Click or Press a key to unlock"})]})]})}function SmallArrow(e){let t=e.angle?e.angle:"up";return(0,i.jsx)("div",{className:" arrow-custom-"+t})}function Status(){return(0,i.jsxs)("div",{className:"flex justify-center items-center",children:[(0,i.jsx)("span",{className:"mx-1.5",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/network-wireless-signal-good-symbolic.svg",alt:"ubuntu wifi",className:"inline status-symbol w-4 h-4"})}),(0,i.jsx)("span",{className:"mx-1.5",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/audio-volume-medium-symbolic.svg",alt:"ubuntu sound",className:"inline status-symbol w-4 h-4"})}),(0,i.jsx)("span",{className:"mx-1.5",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/battery-good-symbolic.svg",alt:"ubuntu battry",className:"inline status-symbol w-4 h-4"})}),(0,i.jsx)("span",{className:"mx-1",children:(0,i.jsx)(SmallArrow,{angle:"down",className:" status-symbol"})})]})}var p=s(8949);let Slider=class Slider extends a.Component{render(){return(0,i.jsx)("input",{type:"range",onChange:this.props.onChange,className:this.props.className,name:this.props.name,min:"0",max:"100",value:this.props.value,step:"1"})}};let StatusCard=class StatusCard extends a.Component{componentDidMount(){this.setState({sound_level:localStorage.getItem("sound-level")||75,brightness_level:localStorage.getItem("brightness-level")||100},()=>{document.getElementById("monitor-screen").style.filter="brightness(".concat(3/400*this.state.brightness_level+.25,")")})}render(){return(0,i.jsxs)("div",{ref:this.wrapperRef,className:"absolute bg-ub-cool-grey rounded-md py-4 top-9 right-3 shadow border-black border border-opacity-20 status-card"+(this.props.visible?" visible animateShow":" invisible"),children:[" ",(0,i.jsx)("div",{className:"absolute w-0 h-0 -top-1 right-6 top-arrow-up"}),(0,i.jsxs)("div",{className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/audio-headphones-symbolic.svg",alt:"ubuntu headphone"})}),(0,i.jsx)(Slider,{onChange:this.handleSound,className:"ubuntu-slider w-2/3",value:this.state.sound_level,name:"headphone_range"})]}),(0,i.jsxs)("div",{className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/display-brightness-symbolic.svg",alt:"ubuntu brightness"})}),(0,i.jsx)(Slider,{onChange:this.handleBrightness,className:"ubuntu-slider w-2/3",name:"brightness_range",value:this.state.brightness_level})]}),(0,i.jsx)("div",{className:"w-64 flex content-center justify-center",children:(0,i.jsx)("div",{className:"w-2/4 border-black border-opacity-50 border-b my-2 border-solid"})}),(0,i.jsxs)("div",{className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/network-wireless-signal-good-symbolic.svg",alt:"ubuntu wifi"})}),(0,i.jsxs)("div",{className:"w-2/3 flex items-center justify-between text-gray-400",children:[(0,i.jsx)("span",{children:"Pixel 8 Pro"}),(0,i.jsx)(SmallArrow,{angle:"right"})]})]}),(0,i.jsxs)("div",{className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/bluetooth-symbolic.svg",alt:"ubuntu bluetooth"})}),(0,i.jsxs)("div",{className:"w-2/3 flex items-center justify-between text-gray-400",children:[(0,i.jsx)("span",{children:"Off"}),(0,i.jsx)(SmallArrow,{angle:"right"})]})]}),(0,i.jsxs)("div",{className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/battery-good-symbolic.svg",alt:"ubuntu battery"})}),(0,i.jsxs)("div",{className:"w-2/3 flex items-center justify-between text-gray-400",children:[(0,i.jsx)("span",{children:"2:40 Remaining (75%)"}),(0,i.jsx)(SmallArrow,{angle:"right"})]})]}),(0,i.jsx)("div",{className:"w-64 flex content-center justify-center",children:(0,i.jsx)("div",{className:"w-2/4 border-black border-opacity-50 border-b my-2 border-solid"})}),(0,i.jsxs)("div",{id:"open-settings",className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/emblem-system-symbolic.svg",alt:"ubuntu settings"})}),(0,i.jsx)("div",{className:"w-2/3 flex items-center justify-between",children:(0,i.jsx)("span",{children:"Settings"})})]}),(0,i.jsxs)("div",{onClick:this.props.lockScreen,className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/changes-prevent-symbolic.svg",alt:"ubuntu lock"})}),(0,i.jsx)("div",{className:"w-2/3 flex items-center justify-between",children:(0,i.jsx)("span",{children:"Lock"})})]}),(0,i.jsxs)("div",{onClick:this.props.shutDown,className:"w-64 py-1.5 flex items-center justify-center bg-ub-cool-grey hover:bg-ub-warm-grey hover:bg-opacity-20",children:[(0,i.jsx)("div",{className:"w-8",children:(0,i.jsx)("img",{width:"16px",height:"16px",src:"./themes/Yaru/status/system-shutdown-symbolic.svg",alt:"ubuntu power"})}),(0,i.jsxs)("div",{className:"w-2/3 flex items-center justify-between",children:[(0,i.jsx)("span",{children:"Power Off / Log Out"}),(0,i.jsx)(SmallArrow,{angle:"right"})]})]})]})}constructor(){super(),this.handleClickOutside=()=>{this.props.toggleVisible()},this.handleBrightness=e=>{this.setState({brightness_level:e.target.value}),localStorage.setItem("brightness-level",e.target.value),document.getElementById("monitor-screen").style.filter="brightness(".concat(3/400*e.target.value+.25,")")},this.handleSound=e=>{this.setState({sound_level:e.target.value}),localStorage.setItem("sound-level",e.target.value)},this.wrapperRef=a.createRef(),this.state={sound_level:75,brightness_level:100}}};var g=(0,p.Z)(StatusCard);let Navbar=class Navbar extends a.Component{render(){return(0,i.jsxs)("div",{className:"main-navbar-vp absolute top-0 right-0 w-screen shadow-md flex flex-nowrap justify-between items-center bg-ub-grey text-ubt-grey text-sm select-none z-50",children:[(0,i.jsx)("div",{tabIndex:"0",className:"pl-3 pr-3 outline-none transition duration-100 ease-in-out border-b-2 border-transparent focus:border-ubb-orange py-1 ",children:"Activities"}),(0,i.jsx)("div",{tabIndex:"0",className:"pl-2 pr-2 text-xs md:text-sm outline-none transition duration-100 ease-in-out border-b-2 border-transparent focus:border-ubb-orange py-1",children:(0,i.jsx)(Clock,{})}),(0,i.jsxs)("div",{id:"status-bar",tabIndex:"0",onFocus:()=>{this.setState({status_card:!0})},className:"relative pr-3 pl-3 outline-none transition duration-100 ease-in-out border-b-2 border-transparent focus:border-ubb-orange py-1 ",children:[(0,i.jsx)(Status,{}),(0,i.jsx)(g,{shutDown:this.props.shutDown,lockScreen:this.props.lockScreen,visible:this.state.status_card,toggleVisible:()=>{this.setState({status_card:!1})}})]})]})}constructor(){super(),this.state={status_card:!1}}};let Ubuntu=class Ubuntu extends a.Component{componentDidMount(){this.getLocalData()}render(){return(0,i.jsxs)("div",{className:"w-screen h-screen overflow-hidden",id:"monitor-screen",children:[(0,i.jsx)(LockScreen,{isLocked:this.state.screen_locked,bgImgName:this.state.bg_image_name,unLockScreen:this.unLockScreen}),(0,i.jsx)(booting_screen,{visible:this.state.booting_screen,isShutDown:this.state.shutDownScreen,turnOn:this.turnOn}),(0,i.jsx)(Navbar,{lockScreen:this.lockScreen,shutDown:this.shutDown}),(0,i.jsx)(Desktop,{bg_image_name:this.state.bg_image_name,changeBackgroundImage:this.changeBackgroundImage})]})}constructor(){super(),this.setTimeOutBootScreen=()=>{setTimeout(()=>{this.setState({booting_screen:!1})},2e3)},this.getLocalData=()=>{let e=localStorage.getItem("bg-image");null!=e&&this.setState({bg_image_name:e}),null!=localStorage.getItem("booting_screen")?this.setState({booting_screen:!1}):(localStorage.setItem("booting_screen",!1),this.setTimeOutBootScreen());let t=localStorage.getItem("shut-down");if(null!=t&&"true"===t)this.shutDown();else{let e=localStorage.getItem("screen-locked");null!=e&&this.setState({screen_locked:"true"===e})}},this.lockScreen=()=>{n.ZP.send({hitType:"pageview",page:"/lock-screen",title:"Lock Screen"}),n.ZP.event({category:"Screen Change",action:"Set Screen to Locked"}),document.getElementById("status-bar").blur(),setTimeout(()=>{this.setState({screen_locked:!0})},100),localStorage.setItem("screen-locked",!0)},this.unLockScreen=()=>{n.ZP.send({hitType:"pageview",page:"/desktop",title:"Custom Title"}),window.removeEventListener("click",this.unLockScreen),window.removeEventListener("keypress",this.unLockScreen),this.setState({screen_locked:!1}),localStorage.setItem("screen-locked",!1)},this.changeBackgroundImage=e=>{this.setState({bg_image_name:e}),localStorage.setItem("bg-image",e)},this.shutDown=()=>{n.ZP.send({hitType:"pageview",page:"/switch-off",title:"Custom Title"}),n.ZP.event({category:"Screen Change",action:"Switched off the Ubuntu"}),document.getElementById("status-bar").blur(),this.setState({shutDownScreen:!0}),localStorage.setItem("shut-down",!0)},this.turnOn=()=>{n.ZP.send({hitType:"pageview",page:"/desktop",title:"Custom Title"}),this.setState({shutDownScreen:!1,booting_screen:!0}),this.setTimeOutBootScreen(),localStorage.setItem("shut-down",!1)},this.state={screen_locked:!1,bg_image_name:"wall-2",booting_screen:!0,shutDownScreen:!1}}};var b=s(9008),x=s.n(b);function Meta(){return(0,i.jsxs)(x(),{children:["/* Primary Meta Tags */",(0,i.jsx)("title",{children:"Uriel Salischiker Portfolio - Senior Software Engineer"}),(0,i.jsx)("meta",{charSet:"utf-8"}),(0,i.jsx)("meta",{name:"title",content:"Uriel Salischiker - Senior Software Engineer"}),(0,i.jsx)("meta",{name:"description",content:"Uriel Salischiker's (urielsalis) Personal Portfolio Website."}),(0,i.jsx)("meta",{name:"author",content:"Uriel Salischiker (urielsalis)"}),(0,i.jsx)("meta",{name:"keywords",content:"urielsalis, urielsalis's portfolio, Uriel Salischiker"}),(0,i.jsx)("meta",{name:"robots",content:"index, follow"}),(0,i.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=utf-8"}),(0,i.jsx)("meta",{name:"language",content:"English"}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,i.jsx)("meta",{name:"theme-color",content:"#E95420"}),"/* Search Engine */",(0,i.jsx)("meta",{name:"image",content:"images/logos/fevicon.png"}),"/* Schema.org for Google */",(0,i.jsx)("meta",{itemProp:"name",content:"Uriel Salischiker - Senior Software Engineer"}),(0,i.jsx)("meta",{itemProp:"description",content:"Uriel Salischiker's (urielsalis) Personal Portfolio Website."}),(0,i.jsx)("meta",{itemProp:"image",content:"images/logos/fevicon.png"}),"/* Twitter */",(0,i.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,i.jsx)("meta",{name:"twitter:title",content:"Uriel Salischiker - Senior Software Engineer"}),(0,i.jsx)("meta",{name:"twitter:description",content:"Uriel Salischiker's (urielsalis) Personal Portfolio Website."}),(0,i.jsx)("meta",{name:"twitter:site",content:"urielsalis"}),(0,i.jsx)("meta",{name:"twitter:creator",content:"urielsalis"}),(0,i.jsx)("meta",{name:"twitter:image:src",content:"images/logos/logo_1024.png"}),"/* Open Graph general (Facebook, Pinterest & Google+) */",(0,i.jsx)("meta",{name:"og:title",content:"Uriel Salischiker - Senior Software Engineer"}),(0,i.jsx)("meta",{name:"og:description",content:"Uriel Salischiker's (urielsalis) Personal Portfolio Website."}),(0,i.jsx)("meta",{name:"og:image",content:"images/logos/logo_1200.png"}),(0,i.jsx)("meta",{name:"og:url",content:"http://urielsalis.com/"}),(0,i.jsx)("meta",{name:"og:site_name",content:"Uriel Salischiker Personal Portfolio"}),(0,i.jsx)("meta",{name:"og:locale",content:"en_US"}),(0,i.jsx)("meta",{name:"og:type",content:"website"}),(0,i.jsx)("link",{rel:"icon",href:"images/logos/fevicon.svg"}),(0,i.jsx)("link",{rel:"apple-touch-icon",href:"images/logos/logo.png"}),(0,i.jsx)("link",{rel:"preload",href:"https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap",as:"style"}),(0,i.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap",rel:"stylesheet"})]})}n.ZP.initialize("G-Y6L0L59N6Q");var pages=function(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Meta,{}),(0,i.jsx)(Ubuntu,{})]})}}},function(e){e.O(0,[571,106,774,888,179],function(){return e(e.s=5557)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/index.html b/index.html index 8af24d98..0f770386 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Uriel Salischiker Portfolio - Senior Software Engineer
Ubuntu view app
\ No newline at end of file +Uriel Salischiker Portfolio - Senior Software Engineer
Ubuntu view app
\ No newline at end of file