(()=>{"use strict";var e,t,r,n={1484:(e,t,r)=>{var n=r(6540),o=r(5338),a=r(9100),l=r(5124),c=r(8868),i=r(3068),s=r(424),m=r(431),d=r(8631),u=r(5062),f=r(9567),p=r(3438),b=r(8291);const h=(0,d.A)({palette:{mode:"light",primary:{main:"#1976d2"},background:{default:"#f4f6f8"}},typography:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',h4:{fontWeight:700}}}),x=({shortcut:e,description:t,onClick:r})=>n.createElement(a.A,{onClick:r,sx:{background:"#ffffff",padding:"16px",borderRadius:"8px",border:"1px solid #e0e0e0",textAlign:"center",boxShadow:"0 2px 4px rgba(0,0,0,0.05)",mb:2,cursor:r?"pointer":"default"}},n.createElement(l.A,{variant:"body1",component:"kbd",sx:{fontSize:"1.5rem",fontWeight:"bold",background:"#e0e0e0",padding:"4px 12px",borderRadius:"6px",border:"1px solid #bdbdbd"}},e),n.createElement(l.A,{variant:"subtitle1",color:"text.secondary",sx:{mt:1}},t)),_=document.getElementById("root");(0,o.H)(_).render(n.createElement(b.xC,{i18n:p.A},n.createElement(()=>{const{t:e}=(0,b.Bd)(),[t,r]=n.useState({translate:"",sidepanel:""});n.useEffect(()=>{chrome.commands&&chrome.commands.getAll(e=>{const t=e.find(e=>"CMD_TRANSLATE_CURRENT_PAGE"===e.name),n=e.find(e=>"CMD_OPEN_CLOSE_SIDE_PANEL"===e.name);r({translate:(null==t?void 0:t.shortcut)||"",sidepanel:(null==n?void 0:n.shortcut)||""})})},[]);const o=()=>{chrome.tabs.create({url:"chrome://extensions/shortcuts"})};return n.createElement(u.A,{theme:h},n.createElement(c.Ay,null),n.createElement(i.A,{component:"main",maxWidth:"md",sx:{mt:6,mb:6}},n.createElement(s.A,{elevation:4,sx:{padding:5,display:"flex",flexDirection:"column",alignItems:"center",borderRadius:4,background:"linear-gradient(145deg, #eef2f3, #fafafa)"}},n.createElement(a.A,{sx:{mb:3}},n.createElement("img",{src:chrome.runtime.getURL("img/icon-128.png"),alt:"Extension Icon",width:"90"})),n.createElement(l.A,{variant:"h4",component:"h1",gutterBottom:!0,sx:{color:"#1976d2"}},e("welcome_title")),n.createElement(l.A,{variant:"h6",color:"text.secondary",align:"center",sx:{mb:5}},e("welcome_subtitle")),n.createElement(l.A,{variant:"h5",component:"h2",sx:{mb:3,color:"#333"}},e("welcome_keyboard_shortcuts")),n.createElement(a.A,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},gap:4,width:"100%",justifyContent:"center"}},n.createElement(a.A,{sx:{flex:1}},n.createElement(x,{shortcut:t.translate||e("welcome_shortcut_not_set"),description:e("welcome_shortcut_translate_description"),onClick:o})),n.createElement(a.A,{sx:{flex:1}},n.createElement(x,{shortcut:t.sidepanel||e("welcome_shortcut_not_set"),description:e("welcome_shortcut_sidepanel_description"),onClick:o}))),n.createElement(a.A,{sx:{mt:4,width:"100%",textAlign:"center"}},n.createElement(l.A,{variant:"body1",sx:{mb:2}},e("welcome_customize_settings")),n.createElement(m.A,{variant:"contained",color:"primary",size:"large",startIcon:n.createElement(f.A,null),onClick:()=>{chrome.runtime.openOptionsPage()}},e("welcome_open_settings_button"))))))},null)))}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,e=[],a.O=(t,r,n,o)=>{if(!r){var l=1/0;for(m=0;m<e.length;m++){for(var[r,n,o]=e[m],c=!0,i=0;i<r.length;i++)(!1&o||l>=o)&&Object.keys(a.O).every(e=>a.O[e](r[i]))?r.splice(i--,1):(c=!1,o<l&&(l=o));if(c){e.splice(m--,1);var s=n();void 0!==s&&(t=s)}}return t}o=o||0;for(var m=e.length;m>0&&e[m-1][2]>o;m--)e[m]=e[m-1];e[m]=[r,n,o]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);a.r(o);var l={};t=t||[null,r({}),r([]),r(r)];for(var c=2&n&&e;("object"==typeof c||"function"==typeof c)&&!~t.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach(t=>l[t]=()=>e[t]);return l.default=()=>e,a.d(o,l),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.j=81,(()=>{var e={81:0};a.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[l,c,i]=r,s=0;if(l.some(t=>0!==e[t])){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);if(i)var m=i(a)}for(t&&t(r);s<l.length;s++)o=l[s],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(m)},r=self.webpackChunkchrome_extension_boilerplate_react=self.webpackChunkchrome_extension_boilerplate_react||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var l=a.O(void 0,[984,967,124,727,474,76],()=>a(1484));l=a.O(l)})();