@elice/material-exercise 1.260514.0 → 1.260515.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialog.d.ts +10 -0
  2. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialog.js +213 -0
  3. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialogNativeMock.d.ts +3 -0
  4. package/cjs/components/material-exercise/exercise-runner/arduino/{ArduinoConnectionGuideDialogNativeMock.js → ArduinoConnectionPreflightDialogNativeMock.js} +5 -5
  5. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialogSteps.d.ts +3 -0
  6. package/cjs/components/material-exercise/exercise-runner/arduino/{ArduinoConnectionGuideDialogSteps.js → ArduinoConnectionPreflightDialogSteps.js} +5 -5
  7. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionUpload.js +18 -20
  8. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerStatusMessage.js +6 -15
  9. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoProvider.js +97 -19
  10. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoProviderSessionWriter.js +1 -9
  11. package/cjs/components/material-exercise/exercise-runner/arduino/_context.d.ts +6 -4
  12. package/cjs/components/material-exercise/exercise-runner/locales/en.json.js +1 -1
  13. package/cjs/components/material-exercise/exercise-runner/locales/ja.json.js +1 -1
  14. package/cjs/components/material-exercise/exercise-runner/locales/ko.json.js +1 -1
  15. package/cjs/components/material-exercise/exercise-runner/locales/th.json.js +1 -1
  16. package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialog.d.ts +10 -0
  17. package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialog.js +194 -0
  18. package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialogNativeMock.d.ts +3 -0
  19. package/es/components/material-exercise/exercise-runner/arduino/{ArduinoConnectionGuideDialogNativeMock.js → ArduinoConnectionPreflightDialogNativeMock.js} +5 -5
  20. package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialogSteps.d.ts +3 -0
  21. package/es/components/material-exercise/exercise-runner/arduino/{ArduinoConnectionGuideDialogSteps.js → ArduinoConnectionPreflightDialogSteps.js} +5 -5
  22. package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionUpload.js +18 -20
  23. package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerStatusMessage.js +6 -15
  24. package/es/components/material-exercise/exercise-runner/arduino/ArduinoProvider.js +99 -21
  25. package/es/components/material-exercise/exercise-runner/arduino/ArduinoProviderSessionWriter.js +2 -10
  26. package/es/components/material-exercise/exercise-runner/arduino/_context.d.ts +6 -4
  27. package/es/components/material-exercise/exercise-runner/locales/en.json.js +1 -1
  28. package/es/components/material-exercise/exercise-runner/locales/ja.json.js +1 -1
  29. package/es/components/material-exercise/exercise-runner/locales/ko.json.js +1 -1
  30. package/es/components/material-exercise/exercise-runner/locales/th.json.js +1 -1
  31. package/package.json +8 -6
  32. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialog.d.ts +0 -3
  33. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialog.js +0 -156
  34. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogNativeMock.d.ts +0 -3
  35. package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogSteps.d.ts +0 -3
  36. package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialog.d.ts +0 -3
  37. package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialog.js +0 -141
  38. package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogNativeMock.d.ts +0 -3
  39. package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogSteps.d.ts +0 -3
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var messageEn = {"exerciseRunner.arduino.error.close":"Close","exerciseRunner.arduino.error.title":"Arduino connection error","exerciseRunner.arduino.help.button":"Help","exerciseRunner.arduino.help.title":"🤖 Welcome to the Arduino Lab!","exerciseRunner.arduino.help.greeting":"Write code in here to make a real Arduino board do things. Follow the steps below in order.","exerciseRunner.arduino.help.checklist.1.title":"Plug your Arduino board into the computer","exerciseRunner.arduino.help.checklist.1.body":"Connect the board with a USB cable, then click the [Connect] button next to the menu.","exerciseRunner.arduino.help.checklist.2.title":"Write code and press [Verify]","exerciseRunner.arduino.help.checklist.2.body":"Verify checks your code for problems before sending it.","exerciseRunner.arduino.help.checklist.3.title":"Press [Upload] to send it to the board","exerciseRunner.arduino.help.checklist.3.body":"Your program is sent to the Arduino board. Watch the serial window below for the results.","exerciseRunner.arduino.help.checklist.4.title":"If it works, press [Submit]!","exerciseRunner.arduino.help.checklist.4.body":"Submitting grades your code automatically and shows your score.","exerciseRunner.arduino.help.manual.title":"Need a usage guide?","exerciseRunner.arduino.help.manual.detail":"See the official manual for usage details.","exerciseRunner.arduino.help.dontShowAgain":"Don't show again","exerciseRunner.arduino.help.close":"Close","exerciseRunner.arduino.connectGuide.body":"For security, the browser shows the board picker directly. Find the small window under the address bar at the top-left of the screen and pick your Arduino board.","exerciseRunner.arduino.connectGuide.footer":"Don't see the window? Check the lock icon next to the address bar.","exerciseRunner.arduino.connectGuide.preview.cancel":"Cancel","exerciseRunner.arduino.connectGuide.preview.connect":"Connect","exerciseRunner.arduino.connectGuide.preview.host":"{host} wants to connect to a serial port","exerciseRunner.arduino.connectGuide.preview.label":"It will look like this","exerciseRunner.arduino.connectGuide.steps.1":"Click the entry whose name starts with {usbmodem} or {usbserial}.","exerciseRunner.arduino.connectGuide.steps.2":"Press the {connect} button at the bottom right to connect.","exerciseRunner.arduino.connectGuide.steps.3":"If you click {cancel} by mistake, you can try again.","exerciseRunner.arduino.connectGuide.title.connect":"Select your board in the browser","exerciseRunner.arduino.connectGuide.title.upload":"Let's connect the board first","exerciseRunner.arduino.connectGuide.upload.note":"Connecting the board is required to upload. Once connected, the upload will start automatically.","exerciseRunner.arduino.terminal.board.notConnected":"/* Arduino is not connected. Please connect and try again. */\n","exerciseRunner.arduino.terminal.compile.done":"/* Compile complete. */\n","exerciseRunner.arduino.terminal.firmware.readFail":"/* Failed to read the firmware file. */\n","exerciseRunner.arduino.terminal.session.connected":"/* [connected] {device} */\n","exerciseRunner.arduino.terminal.session.disconnected":"/* [disconnected] */\n","exerciseRunner.arduino.terminal.session.reconnected":"/* [reconnected] {device} */\n","exerciseRunner.arduino.terminal.upload.done":"/* Upload complete. */\n","exerciseRunner.arduino.terminal.upload.error":"/* Error: {error} */\n","exerciseRunner.arduino.terminal.upload.errorUnknown":"Unknown","exerciseRunner.arduino.terminal.upload.progress":"/* Uploading... ({percent}%) */\r","exerciseRunner.arduino.terminal.upload.start":"/* Starting upload. */\n","exerciseRunner.arduino.terminal.upload.verifying":"/* Verifying... */\n","exerciseRunner.controller.arduino.boardStatus.connected":"{device} connected","exerciseRunner.controller.arduino.boardStatus.connectedNoName":"Board connected","exerciseRunner.controller.arduino.boardStatus.disconnected":"Disconnected","exerciseRunner.controller.arduino.boardStatus.idle":"Arduino board not connected","exerciseRunner.controller.arduino.boardStatus.reconnecting":"Reconnecting","exerciseRunner.controller.arduino.button.compile":"Compile","exerciseRunner.controller.arduino.button.connect":"Connect","exerciseRunner.controller.arduino.button.disconnect":"Disconnect","exerciseRunner.controller.arduino.button.upload":"Upload","exerciseRunner.controller.arduino.button.verify":"Verify","exerciseRunner.controller.buttonGroup.button.helpRequest":"Ask about the dragged code","exerciseRunner.controller.buttonGroup.button.run":"Run","exerciseRunner.controller.buttonGroup.button.stop":"Stop","exerciseRunner.controller.buttonGroup.button.submit":"Submit","exerciseRunner.controller.buttonGroup.button.submit.tooltip.noSubmit":"Exercise without submission","exerciseRunner.controller.buttonGroup.button.syncRequest":"Sync code","exerciseRunner.controller.runningInfo.error.fetch":"An error occurred while fetching running info","exerciseRunner.controller.runningInfo.lastRunningDatetime":"Last running datetime","exerciseRunner.controller.runningInfo.lastSubmitDatetime":"Last submit datetime","exerciseRunner.controller.runningInfo.lastSubmitScore":"Last submit score","exerciseRunner.controller.runningInfo.score":"{score}","exerciseRunner.controller.statusMessage.closed":"Editor disconnected","exerciseRunner.controller.statusMessage.connecting":"Connecting to editor...","exerciseRunner.controller.statusMessage.open":"Editor connected","exerciseRunner.controller.timer.runningRemainingTime":"Remaining: {remainingTime}","exerciseRunner.controller.tooltip.closed":"The connection to the code server is currently unstable, so your edits may not be saved.\nPlease check your network and try again.","exerciseRunner.submitErrorDialog.action.confirm":"OK","exerciseRunner.submitErrorDialog.action.reload":"Reload page","exerciseRunner.submitErrorDialog.body.commonError":"An error occurred while running the code.\nPlease refresh and try again.","exerciseRunner.submitErrorDialog.body.exceedSubmitGradeLimit":"You have exceeded the allowed number of lab submissions.","exerciseRunner.submitErrorDialog.body.expiredExerciseImage":"The exercise image has been updated.\nPlease refresh and try again.","exerciseRunner.submitErrorDialog.body.networkError":"An error occurred while running the code.\nPlease refresh and try again.\nIf the problem persists, please check the network status.","exerciseRunner.submitErrorDialog.body.notForSubmitGrade":"This exercise is not allowed to be submitted.","exerciseRunner.submitErrorDialog.body.notPreparedRoom":"The exercise room is being prepared.\nPlease try again later.","exerciseRunner.submitErrorDialog.body.roomIsBusy":"The exercise room is running.\nPlease wait a moment.","exerciseRunner.submitErrorDialog.body.unknown":"An error occurred while running the code.\nPlease try again later.","exerciseRunner.submitErrorDialog.title":"Unable to run the code"};
5
+ var messageEn = {"exerciseRunner.arduino.error.close":"Close","exerciseRunner.arduino.error.title":"Arduino connection error","exerciseRunner.arduino.help.button":"Help","exerciseRunner.arduino.help.title":"🤖 Welcome to the Arduino Lab!","exerciseRunner.arduino.help.greeting":"Write code in here to make a real Arduino board do things. Follow the steps below in order.","exerciseRunner.arduino.help.checklist.1.title":"Plug your Arduino board into the computer","exerciseRunner.arduino.help.checklist.1.body":"Connect the board with a USB cable, then click the [Connect] button next to the menu.","exerciseRunner.arduino.help.checklist.2.title":"Write code and press [Verify]","exerciseRunner.arduino.help.checklist.2.body":"Verify checks your code for problems before sending it.","exerciseRunner.arduino.help.checklist.3.title":"Press [Upload] to send it to the board","exerciseRunner.arduino.help.checklist.3.body":"Your program is sent to the Arduino board. Watch the serial window below for the results.","exerciseRunner.arduino.help.checklist.4.title":"If it works, press [Submit]!","exerciseRunner.arduino.help.checklist.4.body":"Submitting grades your code automatically and shows your score.","exerciseRunner.arduino.help.manual.title":"Need a usage guide?","exerciseRunner.arduino.help.manual.detail":"See the official manual for usage details.","exerciseRunner.arduino.help.dontShowAgain":"Don't show again","exerciseRunner.arduino.help.close":"Close","exerciseRunner.arduino.preflight.action.cancel":"Cancel","exerciseRunner.arduino.preflight.action.confirm":"Connect","exerciseRunner.arduino.preflight.body":"For security, the browser shows the board picker directly. Find the small window under the address bar at the top-left of the screen and pick your Arduino board.","exerciseRunner.arduino.preflight.footer":"Don't see the window? Check the lock icon next to the address bar.","exerciseRunner.arduino.preflight.preview.cancel":"Cancel","exerciseRunner.arduino.preflight.preview.connect":"Connect","exerciseRunner.arduino.preflight.preview.host":"{host} wants to connect to a serial port","exerciseRunner.arduino.preflight.preview.label":"It will look like this","exerciseRunner.arduino.preflight.steps.1":"Click the entry whose name starts with {usbmodem} or {usbserial}.","exerciseRunner.arduino.preflight.steps.2":"Press the {connect} button at the bottom right to connect.","exerciseRunner.arduino.preflight.steps.3":"If you click {cancel} by mistake, you can try again.","exerciseRunner.arduino.preflight.title.connect":"Select your board in the browser","exerciseRunner.arduino.preflight.title.upload":"Let's connect the board first","exerciseRunner.arduino.preflight.upload.note":"Connecting the board is required to upload. Once connected, the upload will start automatically.","exerciseRunner.arduino.terminal.board.notConnected":"/* Arduino is not connected. Please connect and try again. */\n","exerciseRunner.arduino.terminal.compile.done":"/* Compile complete. */\n","exerciseRunner.arduino.terminal.firmware.readFail":"/* Failed to read the firmware file. */\n","exerciseRunner.arduino.terminal.session.connected":"/* [connected] {device} */\n","exerciseRunner.arduino.terminal.session.disconnected":"/* [disconnected] */\n","exerciseRunner.arduino.terminal.session.reconnected":"/* [reconnected] {device} */\n","exerciseRunner.arduino.terminal.upload.done":"/* Upload complete. */\n","exerciseRunner.arduino.terminal.upload.error":"/* Error: {error} */\n","exerciseRunner.arduino.terminal.upload.errorUnknown":"Unknown","exerciseRunner.arduino.terminal.upload.progress":"/* Uploading... ({percent}%) */\r","exerciseRunner.arduino.terminal.upload.start":"/* Starting upload. */\n","exerciseRunner.arduino.terminal.upload.verifying":"/* Verifying... */\n","exerciseRunner.controller.arduino.boardStatus.connected":"{device} connected","exerciseRunner.controller.arduino.boardStatus.connectedNoName":"Board connected","exerciseRunner.controller.arduino.boardStatus.disconnected":"Disconnected","exerciseRunner.controller.arduino.boardStatus.idle":"Arduino board not connected","exerciseRunner.controller.arduino.boardStatus.reconnecting":"Reconnecting","exerciseRunner.controller.arduino.button.compile":"Compile","exerciseRunner.controller.arduino.button.connect":"Connect","exerciseRunner.controller.arduino.button.disconnect":"Disconnect","exerciseRunner.controller.arduino.button.upload":"Upload","exerciseRunner.controller.arduino.button.verify":"Verify","exerciseRunner.controller.buttonGroup.button.helpRequest":"Ask about the dragged code","exerciseRunner.controller.buttonGroup.button.run":"Run","exerciseRunner.controller.buttonGroup.button.stop":"Stop","exerciseRunner.controller.buttonGroup.button.submit":"Submit","exerciseRunner.controller.buttonGroup.button.submit.tooltip.noSubmit":"Exercise without submission","exerciseRunner.controller.buttonGroup.button.syncRequest":"Sync code","exerciseRunner.controller.runningInfo.error.fetch":"An error occurred while fetching running info","exerciseRunner.controller.runningInfo.lastRunningDatetime":"Last running datetime","exerciseRunner.controller.runningInfo.lastSubmitDatetime":"Last submit datetime","exerciseRunner.controller.runningInfo.lastSubmitScore":"Last submit score","exerciseRunner.controller.runningInfo.score":"{score}","exerciseRunner.controller.statusMessage.closed":"Editor disconnected","exerciseRunner.controller.statusMessage.connecting":"Connecting to editor...","exerciseRunner.controller.statusMessage.open":"Editor connected","exerciseRunner.controller.timer.runningRemainingTime":"Remaining: {remainingTime}","exerciseRunner.controller.tooltip.closed":"The connection to the code server is currently unstable, so your edits may not be saved.\nPlease check your network and try again.","exerciseRunner.submitErrorDialog.action.confirm":"OK","exerciseRunner.submitErrorDialog.action.reload":"Reload page","exerciseRunner.submitErrorDialog.body.commonError":"An error occurred while running the code.\nPlease refresh and try again.","exerciseRunner.submitErrorDialog.body.exceedSubmitGradeLimit":"You have exceeded the allowed number of lab submissions.","exerciseRunner.submitErrorDialog.body.expiredExerciseImage":"The exercise image has been updated.\nPlease refresh and try again.","exerciseRunner.submitErrorDialog.body.networkError":"An error occurred while running the code.\nPlease refresh and try again.\nIf the problem persists, please check the network status.","exerciseRunner.submitErrorDialog.body.notForSubmitGrade":"This exercise is not allowed to be submitted.","exerciseRunner.submitErrorDialog.body.notPreparedRoom":"The exercise room is being prepared.\nPlease try again later.","exerciseRunner.submitErrorDialog.body.roomIsBusy":"The exercise room is running.\nPlease wait a moment.","exerciseRunner.submitErrorDialog.body.unknown":"An error occurred while running the code.\nPlease try again later.","exerciseRunner.submitErrorDialog.title":"Unable to run the code"};
6
6
 
7
7
  exports.default = messageEn;
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ja = {"exerciseRunner.arduino.connectGuide.body":"セキュリティのため、ブラウザがボード選択ウィンドウを直接表示します。画面左上のアドレスバー下に表示される小さなウィンドウから Arduino ボードを選択してください。","exerciseRunner.arduino.connectGuide.footer":"ウィンドウが表示されない場合は、アドレスバーの鍵アイコンを確認してください。","exerciseRunner.arduino.connectGuide.preview.cancel":"キャンセル","exerciseRunner.arduino.connectGuide.preview.connect":"接続","exerciseRunner.arduino.connectGuide.preview.host":"{host} がシリアルポートに接続しようとしています","exerciseRunner.arduino.connectGuide.preview.label":"このようなウィンドウが表示されます","exerciseRunner.arduino.connectGuide.steps.1":"{usbmodem} または {usbserial} で始まる名前の項目をクリックしてください。","exerciseRunner.arduino.connectGuide.steps.2":"右下の {connect} ボタンを押すと接続されます。","exerciseRunner.arduino.connectGuide.steps.3":"誤って {cancel} を押した場合は、もう一度試すことができます。","exerciseRunner.arduino.connectGuide.title.connect":"ブラウザでボードを選択してください","exerciseRunner.arduino.connectGuide.title.upload":"まずボードを接続します","exerciseRunner.arduino.connectGuide.upload.note":"アップロードにはボードの接続が必要です。接続が完了するとすぐにアップロードが始まります。","exerciseRunner.arduino.error.close":"閉じる","exerciseRunner.arduino.error.title":"Arduino 接続エラー","exerciseRunner.arduino.help.button":"ヘルプ","exerciseRunner.arduino.help.checklist.1.body":"USB ケーブルでボードをコンピュータに接続し、メニューの隣にある [接続] ボタンをクリックしてください。","exerciseRunner.arduino.help.checklist.1.title":"Arduino ボードをコンピュータに接続します","exerciseRunner.arduino.help.checklist.2.body":"確認では、送信前にコードに問題がないかチェックします。","exerciseRunner.arduino.help.checklist.2.title":"コードを書いて [確認] を押します","exerciseRunner.arduino.help.checklist.3.body":"Arduino ボードに作成したプログラムが送信されます。下のシリアルウィンドウで結果を確認できます。","exerciseRunner.arduino.help.checklist.3.title":"[アップロード] でボードに送信します","exerciseRunner.arduino.help.checklist.4.body":"提出すると自動的に採点され、点数が表示されます。","exerciseRunner.arduino.help.checklist.4.title":"うまく動いたら [提出]!","exerciseRunner.arduino.help.close":"閉じる","exerciseRunner.arduino.help.dontShowAgain":"次回から表示しない","exerciseRunner.arduino.help.greeting":"ここにコードを書いて、本物の Arduino ボードを動かしてみましょう。下の手順を順番に進めてください。","exerciseRunner.arduino.help.manual.detail":"公式マニュアルで詳しい使い方を確認できます。","exerciseRunner.arduino.help.manual.title":"使い方を知りたいですか?","exerciseRunner.arduino.help.title":"🤖 Arduino ラボへようこそ!","exerciseRunner.arduino.terminal.board.notConnected":"/* Arduino が接続されていません。接続後もう一度お試しください。 */\n","exerciseRunner.arduino.terminal.compile.done":"/* コンパイルが完了しました。 */\n","exerciseRunner.arduino.terminal.firmware.readFail":"/* ファームウェアファイルを読み取れませんでした。 */\n","exerciseRunner.arduino.terminal.session.connected":"/* [接続] {device} */\n","exerciseRunner.arduino.terminal.session.disconnected":"/* [切断] */\n","exerciseRunner.arduino.terminal.session.reconnected":"/* [再接続] {device} */\n","exerciseRunner.arduino.terminal.upload.done":"/* アップロードが完了しました。 */\n","exerciseRunner.arduino.terminal.upload.error":"/* エラーが発生しました: {error} */\n","exerciseRunner.arduino.terminal.upload.errorUnknown":"不明","exerciseRunner.arduino.terminal.upload.progress":"/* アップロード中... ({percent}%) */\r","exerciseRunner.arduino.terminal.upload.start":"/* アップロードを開始します。 */\n","exerciseRunner.arduino.terminal.upload.verifying":"/* 確認中... */\n","exerciseRunner.controller.arduino.boardStatus.connected":"{device} 接続済み","exerciseRunner.controller.arduino.boardStatus.connectedNoName":"ボード接続済み","exerciseRunner.controller.arduino.boardStatus.disconnected":"切断","exerciseRunner.controller.arduino.boardStatus.idle":"Arduino ボード未接続","exerciseRunner.controller.arduino.boardStatus.reconnecting":"再接続中","exerciseRunner.controller.arduino.button.compile":"コンパイル","exerciseRunner.controller.arduino.button.connect":"接続","exerciseRunner.controller.arduino.button.disconnect":"切断","exerciseRunner.controller.arduino.button.upload":"アップロード","exerciseRunner.controller.arduino.button.verify":"確認","exerciseRunner.controller.buttonGroup.button.helpRequest":"ドラッグしたコードの質問","exerciseRunner.controller.buttonGroup.button.run":"ラン","exerciseRunner.controller.buttonGroup.button.stop":"停止","exerciseRunner.controller.buttonGroup.button.submit":"提出","exerciseRunner.controller.buttonGroup.button.submit.tooltip.noSubmit":"提出なしの運動","exerciseRunner.controller.buttonGroup.button.syncRequest":"コードを同期します","exerciseRunner.controller.runningInfo.error.fetch":"ランニング情報を取得中にエラーが発生しました。","exerciseRunner.controller.runningInfo.lastRunningDatetime":"最終実行日時","exerciseRunner.controller.runningInfo.lastSubmitDatetime":"最終送信日時","exerciseRunner.controller.runningInfo.lastSubmitScore":"最後に提出したスコア","exerciseRunner.controller.runningInfo.score":"{score} 点","exerciseRunner.controller.statusMessage.closed":"エディタが切断されました。","exerciseRunner.controller.statusMessage.connecting":"エディタへの接続中...","exerciseRunner.controller.statusMessage.open":"エディターが接続されました","exerciseRunner.controller.timer.runningRemainingTime":"残り時間: {remainingTime}","exerciseRunner.controller.tooltip.closed":"現在、コードサーバーとの接続が不安定なため、編集内容が反映されない可能性があります。\nネットワークの状態を確認してから作業を続けてください。","exerciseRunner.submitErrorDialog.action.confirm":"OK","exerciseRunner.submitErrorDialog.action.reload":"ページをリロードしてください。","exerciseRunner.submitErrorDialog.body.commonError":"コードを実行中にエラーが発生しました。\nページを更新してもう一度お試しください。","exerciseRunner.submitErrorDialog.body.exceedSubmitGradeLimit":"許可された実験提出回数を超えています。","exerciseRunner.submitErrorDialog.body.expiredExerciseImage":"エクササイズ画像が更新されました。\nもう一度更新してやり直してください。","exerciseRunner.submitErrorDialog.body.networkError":"コードを実行中にエラーが発生しました。\nページを更新して、もう一度お試しください。\n問題が解決しない場合は、ネットワークの状態を確認してください。","exerciseRunner.submitErrorDialog.body.notForSubmitGrade":"この演習は提出してはいけません。","exerciseRunner.submitErrorDialog.body.notPreparedRoom":"エクササイズルームは準備中です。\n後で再試行してください。","exerciseRunner.submitErrorDialog.body.roomIsBusy":"運動室は稼働しています。\n少々お待ちください。","exerciseRunner.submitErrorDialog.body.unknown":"コードの実行中にエラーが発生しました。\n後でもう一度お試しください。","exerciseRunner.submitErrorDialog.title":"コードを実行できません。"};
5
+ var ja = {"exerciseRunner.arduino.preflight.action.cancel":"キャンセル","exerciseRunner.arduino.preflight.action.confirm":"接続する","exerciseRunner.arduino.preflight.body":"セキュリティのため、ブラウザがボード選択ウィンドウを直接表示します。画面左上のアドレスバー下に表示される小さなウィンドウから Arduino ボードを選択してください。","exerciseRunner.arduino.preflight.footer":"ウィンドウが表示されない場合は、アドレスバーの鍵アイコンを確認してください。","exerciseRunner.arduino.preflight.preview.cancel":"キャンセル","exerciseRunner.arduino.preflight.preview.connect":"接続","exerciseRunner.arduino.preflight.preview.host":"{host} がシリアルポートに接続しようとしています","exerciseRunner.arduino.preflight.preview.label":"このようなウィンドウが表示されます","exerciseRunner.arduino.preflight.steps.1":"{usbmodem} または {usbserial} で始まる名前の項目をクリックしてください。","exerciseRunner.arduino.preflight.steps.2":"右下の {connect} ボタンを押すと接続されます。","exerciseRunner.arduino.preflight.steps.3":"誤って {cancel} を押した場合は、もう一度試すことができます。","exerciseRunner.arduino.preflight.title.connect":"ブラウザでボードを選択してください","exerciseRunner.arduino.preflight.title.upload":"まずボードを接続します","exerciseRunner.arduino.preflight.upload.note":"アップロードにはボードの接続が必要です。接続が完了するとすぐにアップロードが始まります。","exerciseRunner.arduino.error.close":"閉じる","exerciseRunner.arduino.error.title":"Arduino 接続エラー","exerciseRunner.arduino.help.button":"ヘルプ","exerciseRunner.arduino.help.checklist.1.body":"USB ケーブルでボードをコンピュータに接続し、メニューの隣にある [接続] ボタンをクリックしてください。","exerciseRunner.arduino.help.checklist.1.title":"Arduino ボードをコンピュータに接続します","exerciseRunner.arduino.help.checklist.2.body":"確認では、送信前にコードに問題がないかチェックします。","exerciseRunner.arduino.help.checklist.2.title":"コードを書いて [確認] を押します","exerciseRunner.arduino.help.checklist.3.body":"Arduino ボードに作成したプログラムが送信されます。下のシリアルウィンドウで結果を確認できます。","exerciseRunner.arduino.help.checklist.3.title":"[アップロード] でボードに送信します","exerciseRunner.arduino.help.checklist.4.body":"提出すると自動的に採点され、点数が表示されます。","exerciseRunner.arduino.help.checklist.4.title":"うまく動いたら [提出]!","exerciseRunner.arduino.help.close":"閉じる","exerciseRunner.arduino.help.dontShowAgain":"次回から表示しない","exerciseRunner.arduino.help.greeting":"ここにコードを書いて、本物の Arduino ボードを動かしてみましょう。下の手順を順番に進めてください。","exerciseRunner.arduino.help.manual.detail":"公式マニュアルで詳しい使い方を確認できます。","exerciseRunner.arduino.help.manual.title":"使い方を知りたいですか?","exerciseRunner.arduino.help.title":"🤖 Arduino ラボへようこそ!","exerciseRunner.arduino.terminal.board.notConnected":"/* Arduino が接続されていません。接続後もう一度お試しください。 */\n","exerciseRunner.arduino.terminal.compile.done":"/* コンパイルが完了しました。 */\n","exerciseRunner.arduino.terminal.firmware.readFail":"/* ファームウェアファイルを読み取れませんでした。 */\n","exerciseRunner.arduino.terminal.session.connected":"/* [接続] {device} */\n","exerciseRunner.arduino.terminal.session.disconnected":"/* [切断] */\n","exerciseRunner.arduino.terminal.session.reconnected":"/* [再接続] {device} */\n","exerciseRunner.arduino.terminal.upload.done":"/* アップロードが完了しました。 */\n","exerciseRunner.arduino.terminal.upload.error":"/* エラーが発生しました: {error} */\n","exerciseRunner.arduino.terminal.upload.errorUnknown":"不明","exerciseRunner.arduino.terminal.upload.progress":"/* アップロード中... ({percent}%) */\r","exerciseRunner.arduino.terminal.upload.start":"/* アップロードを開始します。 */\n","exerciseRunner.arduino.terminal.upload.verifying":"/* 確認中... */\n","exerciseRunner.controller.arduino.boardStatus.connected":"{device} 接続済み","exerciseRunner.controller.arduino.boardStatus.connectedNoName":"ボード接続済み","exerciseRunner.controller.arduino.boardStatus.disconnected":"切断","exerciseRunner.controller.arduino.boardStatus.idle":"Arduino ボード未接続","exerciseRunner.controller.arduino.boardStatus.reconnecting":"再接続中","exerciseRunner.controller.arduino.button.compile":"コンパイル","exerciseRunner.controller.arduino.button.connect":"接続","exerciseRunner.controller.arduino.button.disconnect":"切断","exerciseRunner.controller.arduino.button.upload":"アップロード","exerciseRunner.controller.arduino.button.verify":"確認","exerciseRunner.controller.buttonGroup.button.helpRequest":"ドラッグしたコードの質問","exerciseRunner.controller.buttonGroup.button.run":"ラン","exerciseRunner.controller.buttonGroup.button.stop":"停止","exerciseRunner.controller.buttonGroup.button.submit":"提出","exerciseRunner.controller.buttonGroup.button.submit.tooltip.noSubmit":"提出なしの運動","exerciseRunner.controller.buttonGroup.button.syncRequest":"コードを同期します","exerciseRunner.controller.runningInfo.error.fetch":"ランニング情報を取得中にエラーが発生しました。","exerciseRunner.controller.runningInfo.lastRunningDatetime":"最終実行日時","exerciseRunner.controller.runningInfo.lastSubmitDatetime":"最終送信日時","exerciseRunner.controller.runningInfo.lastSubmitScore":"最後に提出したスコア","exerciseRunner.controller.runningInfo.score":"{score} 点","exerciseRunner.controller.statusMessage.closed":"エディタが切断されました。","exerciseRunner.controller.statusMessage.connecting":"エディタへの接続中...","exerciseRunner.controller.statusMessage.open":"エディターが接続されました","exerciseRunner.controller.timer.runningRemainingTime":"残り時間: {remainingTime}","exerciseRunner.controller.tooltip.closed":"現在、コードサーバーとの接続が不安定なため、編集内容が反映されない可能性があります。\nネットワークの状態を確認してから作業を続けてください。","exerciseRunner.submitErrorDialog.action.confirm":"OK","exerciseRunner.submitErrorDialog.action.reload":"ページをリロードしてください。","exerciseRunner.submitErrorDialog.body.commonError":"コードを実行中にエラーが発生しました。\nページを更新してもう一度お試しください。","exerciseRunner.submitErrorDialog.body.exceedSubmitGradeLimit":"許可された実験提出回数を超えています。","exerciseRunner.submitErrorDialog.body.expiredExerciseImage":"エクササイズ画像が更新されました。\nもう一度更新してやり直してください。","exerciseRunner.submitErrorDialog.body.networkError":"コードを実行中にエラーが発生しました。\nページを更新して、もう一度お試しください。\n問題が解決しない場合は、ネットワークの状態を確認してください。","exerciseRunner.submitErrorDialog.body.notForSubmitGrade":"この演習は提出してはいけません。","exerciseRunner.submitErrorDialog.body.notPreparedRoom":"エクササイズルームは準備中です。\n後で再試行してください。","exerciseRunner.submitErrorDialog.body.roomIsBusy":"運動室は稼働しています。\n少々お待ちください。","exerciseRunner.submitErrorDialog.body.unknown":"コードの実行中にエラーが発生しました。\n後でもう一度お試しください。","exerciseRunner.submitErrorDialog.title":"コードを実行できません。"};
6
6
 
7
7
  exports.default = ja;
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var messageKo = {"exerciseRunner.arduino.error.close":"닫기","exerciseRunner.arduino.error.title":"아두이노 연결 오류","exerciseRunner.arduino.help.button":"도움말","exerciseRunner.arduino.help.title":"🤖 아두이노 실습실에 오신 걸 환영해요!","exerciseRunner.arduino.help.greeting":"이 실습실에서는 코드를 작성해서 진짜 아두이노 보드를 움직여볼 수 있어요. 아래 단계를 차례로 따라해보세요.","exerciseRunner.arduino.help.checklist.1.title":"아두이노 보드를 컴퓨터에 연결해요","exerciseRunner.arduino.help.checklist.1.body":"USB 케이블로 보드를 컴퓨터에 꽂은 뒤, 메뉴 옆 [연결하기] 버튼을 누르세요.","exerciseRunner.arduino.help.checklist.2.title":"코드를 작성하고 [확인]을 눌러요","exerciseRunner.arduino.help.checklist.2.body":"확인 버튼은 코드에 문제가 없는지 검사해줘요.","exerciseRunner.arduino.help.checklist.3.title":"[업로드]로 보드에 전송해요","exerciseRunner.arduino.help.checklist.3.body":"아두이노 보드에 작성한 프로그램을 보내요. 아래 시리얼 창에서 결과를 볼 수 있어요.","exerciseRunner.arduino.help.checklist.4.title":"잘 동작하면 [제출]!","exerciseRunner.arduino.help.checklist.4.body":"제출하면 자동으로 채점이 되고 점수를 알려줘요.","exerciseRunner.arduino.help.manual.title":"사용 방법이 궁금하신가요?","exerciseRunner.arduino.help.manual.detail":"공식 매뉴얼에서 자세한 사용법을 확인할 수 있어요.","exerciseRunner.arduino.help.dontShowAgain":"다시 보지 않기","exerciseRunner.arduino.help.close":"닫기","exerciseRunner.arduino.connectGuide.body":"보안을 위해 브라우저가 직접 보드 선택 창을 띄워요. 화면 왼쪽 위 주소창 아래에 나타나는 작은 창에서 내 아두이노 보드를 골라주세요.","exerciseRunner.arduino.connectGuide.footer":"창이 안 보이면 주소창 옆 자물쇠 아이콘을 확인해보세요","exerciseRunner.arduino.connectGuide.preview.cancel":"취소","exerciseRunner.arduino.connectGuide.preview.connect":"연결","exerciseRunner.arduino.connectGuide.preview.host":"{host}에서 시리얼 포트에 연결하려고 합니다.","exerciseRunner.arduino.connectGuide.preview.label":"이렇게 생긴 창이 떠요","exerciseRunner.arduino.connectGuide.steps.1":"이름이 {usbmodem} 또는 {usbserial}로 시작하는 항목을 클릭하세요.","exerciseRunner.arduino.connectGuide.steps.2":"오른쪽 아래 {connect} 버튼을 누르면 연결돼요.","exerciseRunner.arduino.connectGuide.steps.3":"실수로 {cancel}을 눌러도 다시 시도할 수 있어요.","exerciseRunner.arduino.connectGuide.title.connect":"브라우저에서 보드 선택해주세요","exerciseRunner.arduino.connectGuide.title.upload":"보드를 먼저 연결할게요","exerciseRunner.arduino.connectGuide.upload.note":"업로드를 위해 보드 연결이 필요해요. 연결이 끝나면 바로 업로드가 시작돼요.","exerciseRunner.arduino.terminal.board.notConnected":"/* 아두이노가 연결되어 있지 않습니다. 연결 후 다시 시도해 주세요. */\n","exerciseRunner.arduino.terminal.compile.done":"/* 컴파일이 완료되었습니다. */\n","exerciseRunner.arduino.terminal.firmware.readFail":"/* 펌웨어 파일을 읽지 못했습니다. */\n","exerciseRunner.arduino.terminal.session.connected":"/* [연결됨] {device} */\n","exerciseRunner.arduino.terminal.session.disconnected":"/* [연결 끊김] */\n","exerciseRunner.arduino.terminal.session.reconnected":"/* [재연결] {device} */\n","exerciseRunner.arduino.terminal.upload.done":"/* 업로드가 완료되었습니다. */\n","exerciseRunner.arduino.terminal.upload.error":"/* 에러가 발생했습니다: {error} */\n","exerciseRunner.arduino.terminal.upload.errorUnknown":"알 수 없음","exerciseRunner.arduino.terminal.upload.progress":"/* 업로드 중입니다... ({percent}%) */\r","exerciseRunner.arduino.terminal.upload.start":"/* 업로드를 시작합니다. */\n","exerciseRunner.arduino.terminal.upload.verifying":"/* 확인 중입니다... */\n","exerciseRunner.controller.arduino.boardStatus.connected":"{device} 연결됨","exerciseRunner.controller.arduino.boardStatus.connectedNoName":"보드 연결됨","exerciseRunner.controller.arduino.boardStatus.disconnected":"연결 끊김","exerciseRunner.controller.arduino.boardStatus.idle":"아두이노 보드 연결 안 됨","exerciseRunner.controller.arduino.boardStatus.reconnecting":"재연결 중","exerciseRunner.controller.arduino.button.compile":"컴파일","exerciseRunner.controller.arduino.button.connect":"연결하기","exerciseRunner.controller.arduino.button.disconnect":"연결 해제","exerciseRunner.controller.arduino.button.upload":"업로드","exerciseRunner.controller.arduino.button.verify":"확인","exerciseRunner.controller.buttonGroup.button.helpRequest":"드래그한 코드 질문","exerciseRunner.controller.buttonGroup.button.run":"실행","exerciseRunner.controller.buttonGroup.button.stop":"정지","exerciseRunner.controller.buttonGroup.button.submit":"제출","exerciseRunner.controller.buttonGroup.button.submit.tooltip.noSubmit":"실행만 가능한 실습입니다.","exerciseRunner.controller.buttonGroup.button.syncRequest":"코드 동기화","exerciseRunner.controller.runningInfo.error.fetch":"최종 실행 내역을 가져오는데 문제가 발생하였습니다.","exerciseRunner.controller.runningInfo.lastRunningDatetime":"최종 실행 시간","exerciseRunner.controller.runningInfo.lastSubmitDatetime":"최종 제출 시간","exerciseRunner.controller.runningInfo.lastSubmitScore":"최종 제출 점수","exerciseRunner.controller.runningInfo.score":"{score} 점","exerciseRunner.controller.statusMessage.closed":"에디터 연결 끊김","exerciseRunner.controller.statusMessage.connecting":"에디터 연결 중...","exerciseRunner.controller.statusMessage.open":"에디터 연결됨","exerciseRunner.controller.timer.runningRemainingTime":"실행 제한시간: {remainingTime}","exerciseRunner.controller.tooltip.closed":"현재 코드 서버와 네트워크 연결 상태가 불안정하여 편집 내용이 반영되지 않습니다.\n네트워크 상태를 확인하여 코드 작성을 진행해주세요.","exerciseRunner.submitErrorDialog.action.confirm":"확인","exerciseRunner.submitErrorDialog.action.reload":"새로고침","exerciseRunner.submitErrorDialog.body.commonError":"코드 실행 중 오류가 발생했습니다.\n새로고침 후 다시 시도해주세요.","exerciseRunner.submitErrorDialog.body.exceedSubmitGradeLimit":"실습 제출 허용 횟수를 초과했습니다.","exerciseRunner.submitErrorDialog.body.expiredExerciseImage":"실습환경이 업데이트 되었습니다.\n새로고침 후 다시 시도해주세요.","exerciseRunner.submitErrorDialog.body.networkError":"코드 실행 중 오류가 발생했습니다.\n새로고침 후 다시 시도해주세요.\n문제가 계속되면 네트워크 상태를 확인해주세요.","exerciseRunner.submitErrorDialog.body.notForSubmitGrade":"제출이 허용되지 않은 실습입니다.","exerciseRunner.submitErrorDialog.body.notPreparedRoom":"실습환경이 준비 중입니다.\n잠시 후 다시 시도해주세요.","exerciseRunner.submitErrorDialog.body.roomIsBusy":"실습을 실행하고 있습니다.\n잠시만 기다려 주세요.","exerciseRunner.submitErrorDialog.body.unknown":"코드 실행 중 오류가 발생했습니다.\n잠시 후 다시 시도해주세요.","exerciseRunner.submitErrorDialog.title":"실습을 실행할 수 없습니다"};
5
+ var messageKo = {"exerciseRunner.arduino.error.close":"닫기","exerciseRunner.arduino.error.title":"아두이노 연결 오류","exerciseRunner.arduino.help.button":"도움말","exerciseRunner.arduino.help.title":"🤖 아두이노 실습실에 오신 걸 환영해요!","exerciseRunner.arduino.help.greeting":"이 실습실에서는 코드를 작성해서 진짜 아두이노 보드를 움직여볼 수 있어요. 아래 단계를 차례로 따라해보세요.","exerciseRunner.arduino.help.checklist.1.title":"아두이노 보드를 컴퓨터에 연결해요","exerciseRunner.arduino.help.checklist.1.body":"USB 케이블로 보드를 컴퓨터에 꽂은 뒤, 메뉴 옆 [연결하기] 버튼을 누르세요.","exerciseRunner.arduino.help.checklist.2.title":"코드를 작성하고 [확인]을 눌러요","exerciseRunner.arduino.help.checklist.2.body":"확인 버튼은 코드에 문제가 없는지 검사해줘요.","exerciseRunner.arduino.help.checklist.3.title":"[업로드]로 보드에 전송해요","exerciseRunner.arduino.help.checklist.3.body":"아두이노 보드에 작성한 프로그램을 보내요. 아래 시리얼 창에서 결과를 볼 수 있어요.","exerciseRunner.arduino.help.checklist.4.title":"잘 동작하면 [제출]!","exerciseRunner.arduino.help.checklist.4.body":"제출하면 자동으로 채점이 되고 점수를 알려줘요.","exerciseRunner.arduino.help.manual.title":"사용 방법이 궁금하신가요?","exerciseRunner.arduino.help.manual.detail":"공식 매뉴얼에서 자세한 사용법을 확인할 수 있어요.","exerciseRunner.arduino.help.dontShowAgain":"다시 보지 않기","exerciseRunner.arduino.help.close":"닫기","exerciseRunner.arduino.preflight.action.cancel":"취소","exerciseRunner.arduino.preflight.action.confirm":"연결하기","exerciseRunner.arduino.preflight.body":"보안을 위해 브라우저가 직접 보드 선택 창을 띄워요. 화면 왼쪽 위 주소창 아래에 나타나는 작은 창에서 내 아두이노 보드를 골라주세요.","exerciseRunner.arduino.preflight.footer":"창이 안 보이면 주소창 옆 자물쇠 아이콘을 확인해보세요","exerciseRunner.arduino.preflight.preview.cancel":"취소","exerciseRunner.arduino.preflight.preview.connect":"연결","exerciseRunner.arduino.preflight.preview.host":"{host}에서 시리얼 포트에 연결하려고 합니다.","exerciseRunner.arduino.preflight.preview.label":"이렇게 생긴 창이 떠요","exerciseRunner.arduino.preflight.steps.1":"이름이 {usbmodem} 또는 {usbserial}로 시작하는 항목을 클릭하세요.","exerciseRunner.arduino.preflight.steps.2":"오른쪽 아래 {connect} 버튼을 누르면 연결돼요.","exerciseRunner.arduino.preflight.steps.3":"실수로 {cancel}을 눌러도 다시 시도할 수 있어요.","exerciseRunner.arduino.preflight.title.connect":"브라우저에서 보드 선택해주세요","exerciseRunner.arduino.preflight.title.upload":"보드를 먼저 연결할게요","exerciseRunner.arduino.preflight.upload.note":"업로드를 위해 보드 연결이 필요해요. 연결이 끝나면 바로 업로드가 시작돼요.","exerciseRunner.arduino.terminal.board.notConnected":"/* 아두이노가 연결되어 있지 않습니다. 연결 후 다시 시도해 주세요. */\n","exerciseRunner.arduino.terminal.compile.done":"/* 컴파일이 완료되었습니다. */\n","exerciseRunner.arduino.terminal.firmware.readFail":"/* 펌웨어 파일을 읽지 못했습니다. */\n","exerciseRunner.arduino.terminal.session.connected":"/* [연결됨] {device} */\n","exerciseRunner.arduino.terminal.session.disconnected":"/* [연결 끊김] */\n","exerciseRunner.arduino.terminal.session.reconnected":"/* [재연결] {device} */\n","exerciseRunner.arduino.terminal.upload.done":"/* 업로드가 완료되었습니다. */\n","exerciseRunner.arduino.terminal.upload.error":"/* 에러가 발생했습니다: {error} */\n","exerciseRunner.arduino.terminal.upload.errorUnknown":"알 수 없음","exerciseRunner.arduino.terminal.upload.progress":"/* 업로드 중입니다... ({percent}%) */\r","exerciseRunner.arduino.terminal.upload.start":"/* 업로드를 시작합니다. */\n","exerciseRunner.arduino.terminal.upload.verifying":"/* 확인 중입니다... */\n","exerciseRunner.controller.arduino.boardStatus.connected":"{device} 연결됨","exerciseRunner.controller.arduino.boardStatus.connectedNoName":"보드 연결됨","exerciseRunner.controller.arduino.boardStatus.disconnected":"연결 끊김","exerciseRunner.controller.arduino.boardStatus.idle":"아두이노 보드 연결 안 됨","exerciseRunner.controller.arduino.boardStatus.reconnecting":"재연결 중","exerciseRunner.controller.arduino.button.compile":"컴파일","exerciseRunner.controller.arduino.button.connect":"연결하기","exerciseRunner.controller.arduino.button.disconnect":"연결 해제","exerciseRunner.controller.arduino.button.upload":"업로드","exerciseRunner.controller.arduino.button.verify":"확인","exerciseRunner.controller.buttonGroup.button.helpRequest":"드래그한 코드 질문","exerciseRunner.controller.buttonGroup.button.run":"실행","exerciseRunner.controller.buttonGroup.button.stop":"정지","exerciseRunner.controller.buttonGroup.button.submit":"제출","exerciseRunner.controller.buttonGroup.button.submit.tooltip.noSubmit":"실행만 가능한 실습입니다.","exerciseRunner.controller.buttonGroup.button.syncRequest":"코드 동기화","exerciseRunner.controller.runningInfo.error.fetch":"최종 실행 내역을 가져오는데 문제가 발생하였습니다.","exerciseRunner.controller.runningInfo.lastRunningDatetime":"최종 실행 시간","exerciseRunner.controller.runningInfo.lastSubmitDatetime":"최종 제출 시간","exerciseRunner.controller.runningInfo.lastSubmitScore":"최종 제출 점수","exerciseRunner.controller.runningInfo.score":"{score} 점","exerciseRunner.controller.statusMessage.closed":"에디터 연결 끊김","exerciseRunner.controller.statusMessage.connecting":"에디터 연결 중...","exerciseRunner.controller.statusMessage.open":"에디터 연결됨","exerciseRunner.controller.timer.runningRemainingTime":"실행 제한시간: {remainingTime}","exerciseRunner.controller.tooltip.closed":"현재 코드 서버와 네트워크 연결 상태가 불안정하여 편집 내용이 반영되지 않습니다.\n네트워크 상태를 확인하여 코드 작성을 진행해주세요.","exerciseRunner.submitErrorDialog.action.confirm":"확인","exerciseRunner.submitErrorDialog.action.reload":"새로고침","exerciseRunner.submitErrorDialog.body.commonError":"코드 실행 중 오류가 발생했습니다.\n새로고침 후 다시 시도해주세요.","exerciseRunner.submitErrorDialog.body.exceedSubmitGradeLimit":"실습 제출 허용 횟수를 초과했습니다.","exerciseRunner.submitErrorDialog.body.expiredExerciseImage":"실습환경이 업데이트 되었습니다.\n새로고침 후 다시 시도해주세요.","exerciseRunner.submitErrorDialog.body.networkError":"코드 실행 중 오류가 발생했습니다.\n새로고침 후 다시 시도해주세요.\n문제가 계속되면 네트워크 상태를 확인해주세요.","exerciseRunner.submitErrorDialog.body.notForSubmitGrade":"제출이 허용되지 않은 실습입니다.","exerciseRunner.submitErrorDialog.body.notPreparedRoom":"실습환경이 준비 중입니다.\n잠시 후 다시 시도해주세요.","exerciseRunner.submitErrorDialog.body.roomIsBusy":"실습을 실행하고 있습니다.\n잠시만 기다려 주세요.","exerciseRunner.submitErrorDialog.body.unknown":"코드 실행 중 오류가 발생했습니다.\n잠시 후 다시 시도해주세요.","exerciseRunner.submitErrorDialog.title":"실습을 실행할 수 없습니다"};
6
6
 
7
7
  exports.default = messageKo;
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var th = {"exerciseRunner.arduino.connectGuide.body":"เพื่อความปลอดภัย เบราว์เซอร์จะแสดงหน้าต่างเลือกบอร์ดให้โดยตรง โปรดมองหาหน้าต่างเล็กๆ ใต้แถบที่อยู่บริเวณซ้ายบนของหน้าจอ แล้วเลือกบอร์ด Arduino ของคุณ","exerciseRunner.arduino.connectGuide.footer":"ถ้ามองไม่เห็นหน้าต่าง ลองตรวจสอบไอคอนกุญแจข้างแถบที่อยู่","exerciseRunner.arduino.connectGuide.preview.cancel":"ยกเลิก","exerciseRunner.arduino.connectGuide.preview.connect":"เชื่อมต่อ","exerciseRunner.arduino.connectGuide.preview.host":"{host} ต้องการเชื่อมต่อกับพอร์ตอนุกรม","exerciseRunner.arduino.connectGuide.preview.label":"หน้าต่างจะมีลักษณะแบบนี้","exerciseRunner.arduino.connectGuide.steps.1":"คลิกที่รายการที่มีชื่อขึ้นต้นด้วย {usbmodem} หรือ {usbserial}","exerciseRunner.arduino.connectGuide.steps.2":"กดปุ่ม {connect} ที่มุมขวาล่างเพื่อเชื่อมต่อ","exerciseRunner.arduino.connectGuide.steps.3":"ถ้าเผลอกด {cancel} ก็สามารถลองใหม่ได้","exerciseRunner.arduino.connectGuide.title.connect":"เลือกบอร์ดในเบราว์เซอร์","exerciseRunner.arduino.connectGuide.title.upload":"เชื่อมต่อบอร์ดก่อน","exerciseRunner.arduino.connectGuide.upload.note":"การอัปโหลดต้องใช้การเชื่อมต่อบอร์ด เมื่อเชื่อมต่อเสร็จ การอัปโหลดจะเริ่มทันที","exerciseRunner.arduino.error.close":"ปิด","exerciseRunner.arduino.error.title":"เกิดข้อผิดพลาดในการเชื่อมต่อ Arduino","exerciseRunner.arduino.help.button":"วิธีใช้","exerciseRunner.arduino.help.checklist.1.body":"เชื่อมต่อบอร์ดกับคอมพิวเตอร์ด้วยสาย USB จากนั้นคลิกปุ่ม [เชื่อมต่อ] ที่อยู่ข้างเมนู","exerciseRunner.arduino.help.checklist.1.title":"เชื่อมต่อบอร์ด Arduino กับคอมพิวเตอร์","exerciseRunner.arduino.help.checklist.2.body":"ปุ่มตรวจสอบจะตรวจหาปัญหาในโค้ดก่อนที่จะส่ง","exerciseRunner.arduino.help.checklist.2.title":"เขียนโค้ดและกด [ตรวจสอบ]","exerciseRunner.arduino.help.checklist.3.body":"โปรแกรมของคุณจะถูกส่งไปยังบอร์ด Arduino ดูผลลัพธ์ในหน้าต่างซีเรียลด้านล่าง","exerciseRunner.arduino.help.checklist.3.title":"กด [อัปโหลด] เพื่อส่งไปยังบอร์ด","exerciseRunner.arduino.help.checklist.4.body":"การส่งจะตรวจให้คะแนนโค้ดของคุณโดยอัตโนมัติและแสดงคะแนน","exerciseRunner.arduino.help.checklist.4.title":"ถ้าใช้ได้ดี กด [ส่ง]!","exerciseRunner.arduino.help.close":"ปิด","exerciseRunner.arduino.help.dontShowAgain":"ไม่ต้องแสดงอีก","exerciseRunner.arduino.help.greeting":"เขียนโค้ดที่นี่เพื่อทำให้บอร์ด Arduino จริงทำงาน ทำตามขั้นตอนด้านล่างตามลำดับ","exerciseRunner.arduino.help.manual.detail":"ดูคู่มืออย่างเป็นทางการสำหรับรายละเอียดการใช้งาน","exerciseRunner.arduino.help.manual.title":"ต้องการคู่มือการใช้งาน?","exerciseRunner.arduino.help.title":"🤖 ยินดีต้อนรับสู่ห้องแล็บ Arduino!","exerciseRunner.arduino.terminal.board.notConnected":"/* Arduino ไม่ได้เชื่อมต่อ กรุณาเชื่อมต่อแล้วลองใหม่ */\n","exerciseRunner.arduino.terminal.compile.done":"/* คอมไพล์เสร็จสมบูรณ์ */\n","exerciseRunner.arduino.terminal.firmware.readFail":"/* อ่านไฟล์เฟิร์มแวร์ไม่สำเร็จ */\n","exerciseRunner.arduino.terminal.session.connected":"/* [เชื่อมต่อแล้ว] {device} */\n","exerciseRunner.arduino.terminal.session.disconnected":"/* [ตัดการเชื่อมต่อ] */\n","exerciseRunner.arduino.terminal.session.reconnected":"/* [เชื่อมต่อใหม่] {device} */\n","exerciseRunner.arduino.terminal.upload.done":"/* อัปโหลดเสร็จสมบูรณ์ */\n","exerciseRunner.arduino.terminal.upload.error":"/* เกิดข้อผิดพลาด: {error} */\n","exerciseRunner.arduino.terminal.upload.errorUnknown":"ไม่ทราบ","exerciseRunner.arduino.terminal.upload.progress":"/* กำลังอัปโหลด... ({percent}%) */\r","exerciseRunner.arduino.terminal.upload.start":"/* เริ่มอัปโหลด */\n","exerciseRunner.arduino.terminal.upload.verifying":"/* กำลังตรวจสอบ... */\n","exerciseRunner.controller.arduino.boardStatus.connected":"{device} เชื่อมต่อแล้ว","exerciseRunner.controller.arduino.boardStatus.connectedNoName":"เชื่อมต่อบอร์ดแล้ว","exerciseRunner.controller.arduino.boardStatus.disconnected":"ตัดการเชื่อมต่อ","exerciseRunner.controller.arduino.boardStatus.idle":"ไม่ได้เชื่อมต่อบอร์ด Arduino","exerciseRunner.controller.arduino.boardStatus.reconnecting":"กำลังเชื่อมต่อใหม่","exerciseRunner.controller.arduino.button.compile":"คอมไพล์","exerciseRunner.controller.arduino.button.connect":"เชื่อมต่อ","exerciseRunner.controller.arduino.button.disconnect":"ตัดการเชื่อมต่อ","exerciseRunner.controller.arduino.button.upload":"อัปโหลด","exerciseRunner.controller.arduino.button.verify":"ตรวจสอบ","exerciseRunner.controller.buttonGroup.button.helpRequest":"ถามเกี่ยวกับโค้ดที่ลาก","exerciseRunner.controller.buttonGroup.button.run":"เรียกใช้งาน","exerciseRunner.controller.buttonGroup.button.stop":"หยุด","exerciseRunner.controller.buttonGroup.button.submit":"ส่ง","exerciseRunner.controller.buttonGroup.button.submit.tooltip.noSubmit":"การฝึกอบรมนี้รองรับเฉพาะการรันเท่านั้น","exerciseRunner.controller.buttonGroup.button.syncRequest":"ซิงค์โค้ด","exerciseRunner.controller.runningInfo.error.fetch":"เกิดข้อผิดพลาดขณะดึงข้อมูลการทำงานใหม่","exerciseRunner.controller.runningInfo.lastRunningDatetime":"วันที่และเวลาที่ทำการเรียกใช้ครั้งล่าสุด","exerciseRunner.controller.runningInfo.lastSubmitDatetime":"เวลาส่งครั้งล่าสุด","exerciseRunner.controller.runningInfo.lastSubmitScore":"คะแนนส่งครั้งล่าสุด","exerciseRunner.controller.runningInfo.score":"{score} คะแนน","exerciseRunner.controller.statusMessage.closed":"การเชื่อมต่อกับ Editor ถูกยกเลิก","exerciseRunner.controller.statusMessage.connecting":"กำลังเชื่อมต่อกับ Editor...","exerciseRunner.controller.statusMessage.open":"เชื่อมต่อกับ Editor สำเร็จ","exerciseRunner.controller.timer.runningRemainingTime":"เวลาที่เหลืออยู่: {remainingTime}","exerciseRunner.controller.tooltip.closed":"ขณะนี้การเชื่อมต่อกับเซิร์ฟเวอร์โค้ดไม่เสถียร การแก้ไขของคุณอาจไม่ถูกบันทึก\nกรุณาตรวจสอบเครือข่ายของคุณก่อนดำเนินการต่อ","exerciseRunner.submitErrorDialog.action.confirm":"ยืนยัน","exerciseRunner.submitErrorDialog.action.reload":"โหลดหน้าใหม่","exerciseRunner.submitErrorDialog.body.commonError":"เกิดข้อผิดพลาดขณะรันโค้ด\nโปรดรีเฟรชและลองอีกครั้ง","exerciseRunner.submitErrorDialog.body.exceedSubmitGradeLimit":"คุณส่งเกินจำนวนที่กำหนด","exerciseRunner.submitErrorDialog.body.expiredExerciseImage":"สภาพแวดล้อมการฝึกอบรมหมดอายุ กรุณารีเฟรชและลองอีกครั้ง","exerciseRunner.submitErrorDialog.body.networkError":"เกิดข้อผิดพลาดขณะรันโค้ด กรุณารีเฟรชและลองอีกครั้ง\nหากยังมีปัญหา กรุณาตรวจสอบสภาพการเชื่อมต่ออินเทอร์เน็ต","exerciseRunner.submitErrorDialog.body.notForSubmitGrade":"การส่งผลงานสำหรับการฝึกอบรมนี้ไม่ถูกต้อง","exerciseRunner.submitErrorDialog.body.notPreparedRoom":"สภาพแวดล้อมการฝึกอบรมกำลังถูกตั้งค่า กรุณารอสักครู่และลองอีกครั้ง","exerciseRunner.submitErrorDialog.body.roomIsBusy":"มีการรันโค้ดอยู่ในขณะนี้ กรุณารอจนกว่าจะเสร็จสิ้น","exerciseRunner.submitErrorDialog.body.unknown":"เกิดข้อผิดพลาดขณะรันโค้ด กรุณารอสักครู่และลองอีกครั้ง","exerciseRunner.submitErrorDialog.title":"ไม่สามารถรันโค้ดได้"};
5
+ var th = {"exerciseRunner.arduino.preflight.action.cancel":"ยกเลิก","exerciseRunner.arduino.preflight.action.confirm":"เชื่อมต่อ","exerciseRunner.arduino.preflight.body":"เพื่อความปลอดภัย เบราว์เซอร์จะแสดงหน้าต่างเลือกบอร์ดให้โดยตรง โปรดมองหาหน้าต่างเล็กๆ ใต้แถบที่อยู่บริเวณซ้ายบนของหน้าจอ แล้วเลือกบอร์ด Arduino ของคุณ","exerciseRunner.arduino.preflight.footer":"ถ้ามองไม่เห็นหน้าต่าง ลองตรวจสอบไอคอนกุญแจข้างแถบที่อยู่","exerciseRunner.arduino.preflight.preview.cancel":"ยกเลิก","exerciseRunner.arduino.preflight.preview.connect":"เชื่อมต่อ","exerciseRunner.arduino.preflight.preview.host":"{host} ต้องการเชื่อมต่อกับพอร์ตอนุกรม","exerciseRunner.arduino.preflight.preview.label":"หน้าต่างจะมีลักษณะแบบนี้","exerciseRunner.arduino.preflight.steps.1":"คลิกที่รายการที่มีชื่อขึ้นต้นด้วย {usbmodem} หรือ {usbserial}","exerciseRunner.arduino.preflight.steps.2":"กดปุ่ม {connect} ที่มุมขวาล่างเพื่อเชื่อมต่อ","exerciseRunner.arduino.preflight.steps.3":"ถ้าเผลอกด {cancel} ก็สามารถลองใหม่ได้","exerciseRunner.arduino.preflight.title.connect":"เลือกบอร์ดในเบราว์เซอร์","exerciseRunner.arduino.preflight.title.upload":"เชื่อมต่อบอร์ดก่อน","exerciseRunner.arduino.preflight.upload.note":"การอัปโหลดต้องใช้การเชื่อมต่อบอร์ด เมื่อเชื่อมต่อเสร็จ การอัปโหลดจะเริ่มทันที","exerciseRunner.arduino.error.close":"ปิด","exerciseRunner.arduino.error.title":"เกิดข้อผิดพลาดในการเชื่อมต่อ Arduino","exerciseRunner.arduino.help.button":"วิธีใช้","exerciseRunner.arduino.help.checklist.1.body":"เชื่อมต่อบอร์ดกับคอมพิวเตอร์ด้วยสาย USB จากนั้นคลิกปุ่ม [เชื่อมต่อ] ที่อยู่ข้างเมนู","exerciseRunner.arduino.help.checklist.1.title":"เชื่อมต่อบอร์ด Arduino กับคอมพิวเตอร์","exerciseRunner.arduino.help.checklist.2.body":"ปุ่มตรวจสอบจะตรวจหาปัญหาในโค้ดก่อนที่จะส่ง","exerciseRunner.arduino.help.checklist.2.title":"เขียนโค้ดและกด [ตรวจสอบ]","exerciseRunner.arduino.help.checklist.3.body":"โปรแกรมของคุณจะถูกส่งไปยังบอร์ด Arduino ดูผลลัพธ์ในหน้าต่างซีเรียลด้านล่าง","exerciseRunner.arduino.help.checklist.3.title":"กด [อัปโหลด] เพื่อส่งไปยังบอร์ด","exerciseRunner.arduino.help.checklist.4.body":"การส่งจะตรวจให้คะแนนโค้ดของคุณโดยอัตโนมัติและแสดงคะแนน","exerciseRunner.arduino.help.checklist.4.title":"ถ้าใช้ได้ดี กด [ส่ง]!","exerciseRunner.arduino.help.close":"ปิด","exerciseRunner.arduino.help.dontShowAgain":"ไม่ต้องแสดงอีก","exerciseRunner.arduino.help.greeting":"เขียนโค้ดที่นี่เพื่อทำให้บอร์ด Arduino จริงทำงาน ทำตามขั้นตอนด้านล่างตามลำดับ","exerciseRunner.arduino.help.manual.detail":"ดูคู่มืออย่างเป็นทางการสำหรับรายละเอียดการใช้งาน","exerciseRunner.arduino.help.manual.title":"ต้องการคู่มือการใช้งาน?","exerciseRunner.arduino.help.title":"🤖 ยินดีต้อนรับสู่ห้องแล็บ Arduino!","exerciseRunner.arduino.terminal.board.notConnected":"/* Arduino ไม่ได้เชื่อมต่อ กรุณาเชื่อมต่อแล้วลองใหม่ */\n","exerciseRunner.arduino.terminal.compile.done":"/* คอมไพล์เสร็จสมบูรณ์ */\n","exerciseRunner.arduino.terminal.firmware.readFail":"/* อ่านไฟล์เฟิร์มแวร์ไม่สำเร็จ */\n","exerciseRunner.arduino.terminal.session.connected":"/* [เชื่อมต่อแล้ว] {device} */\n","exerciseRunner.arduino.terminal.session.disconnected":"/* [ตัดการเชื่อมต่อ] */\n","exerciseRunner.arduino.terminal.session.reconnected":"/* [เชื่อมต่อใหม่] {device} */\n","exerciseRunner.arduino.terminal.upload.done":"/* อัปโหลดเสร็จสมบูรณ์ */\n","exerciseRunner.arduino.terminal.upload.error":"/* เกิดข้อผิดพลาด: {error} */\n","exerciseRunner.arduino.terminal.upload.errorUnknown":"ไม่ทราบ","exerciseRunner.arduino.terminal.upload.progress":"/* กำลังอัปโหลด... ({percent}%) */\r","exerciseRunner.arduino.terminal.upload.start":"/* เริ่มอัปโหลด */\n","exerciseRunner.arduino.terminal.upload.verifying":"/* กำลังตรวจสอบ... */\n","exerciseRunner.controller.arduino.boardStatus.connected":"{device} เชื่อมต่อแล้ว","exerciseRunner.controller.arduino.boardStatus.connectedNoName":"เชื่อมต่อบอร์ดแล้ว","exerciseRunner.controller.arduino.boardStatus.disconnected":"ตัดการเชื่อมต่อ","exerciseRunner.controller.arduino.boardStatus.idle":"ไม่ได้เชื่อมต่อบอร์ด Arduino","exerciseRunner.controller.arduino.boardStatus.reconnecting":"กำลังเชื่อมต่อใหม่","exerciseRunner.controller.arduino.button.compile":"คอมไพล์","exerciseRunner.controller.arduino.button.connect":"เชื่อมต่อ","exerciseRunner.controller.arduino.button.disconnect":"ตัดการเชื่อมต่อ","exerciseRunner.controller.arduino.button.upload":"อัปโหลด","exerciseRunner.controller.arduino.button.verify":"ตรวจสอบ","exerciseRunner.controller.buttonGroup.button.helpRequest":"ถามเกี่ยวกับโค้ดที่ลาก","exerciseRunner.controller.buttonGroup.button.run":"เรียกใช้งาน","exerciseRunner.controller.buttonGroup.button.stop":"หยุด","exerciseRunner.controller.buttonGroup.button.submit":"ส่ง","exerciseRunner.controller.buttonGroup.button.submit.tooltip.noSubmit":"การฝึกอบรมนี้รองรับเฉพาะการรันเท่านั้น","exerciseRunner.controller.buttonGroup.button.syncRequest":"ซิงค์โค้ด","exerciseRunner.controller.runningInfo.error.fetch":"เกิดข้อผิดพลาดขณะดึงข้อมูลการทำงานใหม่","exerciseRunner.controller.runningInfo.lastRunningDatetime":"วันที่และเวลาที่ทำการเรียกใช้ครั้งล่าสุด","exerciseRunner.controller.runningInfo.lastSubmitDatetime":"เวลาส่งครั้งล่าสุด","exerciseRunner.controller.runningInfo.lastSubmitScore":"คะแนนส่งครั้งล่าสุด","exerciseRunner.controller.runningInfo.score":"{score} คะแนน","exerciseRunner.controller.statusMessage.closed":"การเชื่อมต่อกับ Editor ถูกยกเลิก","exerciseRunner.controller.statusMessage.connecting":"กำลังเชื่อมต่อกับ Editor...","exerciseRunner.controller.statusMessage.open":"เชื่อมต่อกับ Editor สำเร็จ","exerciseRunner.controller.timer.runningRemainingTime":"เวลาที่เหลืออยู่: {remainingTime}","exerciseRunner.controller.tooltip.closed":"ขณะนี้การเชื่อมต่อกับเซิร์ฟเวอร์โค้ดไม่เสถียร การแก้ไขของคุณอาจไม่ถูกบันทึก\nกรุณาตรวจสอบเครือข่ายของคุณก่อนดำเนินการต่อ","exerciseRunner.submitErrorDialog.action.confirm":"ยืนยัน","exerciseRunner.submitErrorDialog.action.reload":"โหลดหน้าใหม่","exerciseRunner.submitErrorDialog.body.commonError":"เกิดข้อผิดพลาดขณะรันโค้ด\nโปรดรีเฟรชและลองอีกครั้ง","exerciseRunner.submitErrorDialog.body.exceedSubmitGradeLimit":"คุณส่งเกินจำนวนที่กำหนด","exerciseRunner.submitErrorDialog.body.expiredExerciseImage":"สภาพแวดล้อมการฝึกอบรมหมดอายุ กรุณารีเฟรชและลองอีกครั้ง","exerciseRunner.submitErrorDialog.body.networkError":"เกิดข้อผิดพลาดขณะรันโค้ด กรุณารีเฟรชและลองอีกครั้ง\nหากยังมีปัญหา กรุณาตรวจสอบสภาพการเชื่อมต่ออินเทอร์เน็ต","exerciseRunner.submitErrorDialog.body.notForSubmitGrade":"การส่งผลงานสำหรับการฝึกอบรมนี้ไม่ถูกต้อง","exerciseRunner.submitErrorDialog.body.notPreparedRoom":"สภาพแวดล้อมการฝึกอบรมกำลังถูกตั้งค่า กรุณารอสักครู่และลองอีกครั้ง","exerciseRunner.submitErrorDialog.body.roomIsBusy":"มีการรันโค้ดอยู่ในขณะนี้ กรุณารอจนกว่าจะเสร็จสิ้น","exerciseRunner.submitErrorDialog.body.unknown":"เกิดข้อผิดพลาดขณะรันโค้ด กรุณารอสักครู่และลองอีกครั้ง","exerciseRunner.submitErrorDialog.title":"ไม่สามารถรันโค้ดได้"};
6
6
 
7
7
  exports.default = th;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { DialogProps } from '@mui/material';
3
+ import type { ArduinoConnectionIntent } from './_context';
4
+ interface ArduinoConnectionPreflightDialogProps extends DialogProps {
5
+ intent: ArduinoConnectionIntent;
6
+ onConfirm: () => void;
7
+ onSaveDontShowAgain?: () => void;
8
+ }
9
+ declare const ArduinoConnectionPreflightDialog: React.FC<ArduinoConnectionPreflightDialogProps>;
10
+ export default ArduinoConnectionPreflightDialog;
@@ -0,0 +1,194 @@
1
+ import { slicedToArray as _slicedToArray } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import React from 'react';
4
+ import { useRawEliceIntl } from '@elice/intl';
5
+ import ArrowUpwardIcon from '@mui/icons-material/ArrowUpward';
6
+ import Alert from '@mui/material/Alert';
7
+ import Button from '@mui/material/Button';
8
+ import Checkbox from '@mui/material/Checkbox';
9
+ import Dialog from '@mui/material/Dialog';
10
+ import DialogActions from '@mui/material/DialogActions';
11
+ import DialogContent from '@mui/material/DialogContent';
12
+ import DialogTitle from '@mui/material/DialogTitle';
13
+ import FormControlLabel from '@mui/material/FormControlLabel';
14
+ import Stack from '@mui/material/Stack';
15
+ import Typography from '@mui/material/Typography';
16
+ import ArduinoConnectionPreflightDialogNativeMock from './ArduinoConnectionPreflightDialogNativeMock.js';
17
+ import ArduinoConnectionPreflightDialogSteps from './ArduinoConnectionPreflightDialogSteps.js';
18
+
19
+ //
20
+ //
21
+ //
22
+ var ArduinoConnectionPreflightDialog = function ArduinoConnectionPreflightDialog(_ref) {
23
+ var open = _ref.open,
24
+ intent = _ref.intent,
25
+ onConfirm = _ref.onConfirm,
26
+ onSaveDontShowAgain = _ref.onSaveDontShowAgain,
27
+ onClose = _ref.onClose,
28
+ onTransitionExited = _ref.onTransitionExited;
29
+ var intl = useRawEliceIntl();
30
+ var _React$useState = React.useState(false),
31
+ _React$useState2 = _slicedToArray(_React$useState, 2),
32
+ dontShowAgain = _React$useState2[0],
33
+ setDontShowAgain = _React$useState2[1];
34
+ var isUpload = intent === 'upload';
35
+ /**
36
+ *
37
+ */
38
+ var handleCancelClick = function handleCancelClick(e) {
39
+ onClose === null || onClose === void 0 ? void 0 : onClose(e, 'escapeKeyDown');
40
+ };
41
+ /**
42
+ *
43
+ */
44
+ var handleConfirmClick = function handleConfirmClick() {
45
+ if (dontShowAgain) {
46
+ onSaveDontShowAgain === null || onSaveDontShowAgain === void 0 ? void 0 : onSaveDontShowAgain();
47
+ }
48
+ onConfirm();
49
+ };
50
+ /**
51
+ *
52
+ */
53
+ var renderTitle = function renderTitle() {
54
+ return intl.formatMessage({
55
+ id: isUpload ? 'exerciseRunner.arduino.preflight.title.upload' : 'exerciseRunner.arduino.preflight.title.connect'
56
+ });
57
+ };
58
+ /**
59
+ *
60
+ */
61
+ var renderUploadNotice = function renderUploadNotice() {
62
+ if (!isUpload) {
63
+ return null;
64
+ }
65
+ return jsx(Alert, {
66
+ severity: "info",
67
+ children: intl.formatMessage({
68
+ id: 'exerciseRunner.arduino.preflight.upload.note'
69
+ })
70
+ });
71
+ };
72
+ /**
73
+ *
74
+ */
75
+ var renderPreview = function renderPreview() {
76
+ return jsxs(Stack, {
77
+ alignItems: "center",
78
+ spacing: 1.25,
79
+ sx: {
80
+ bgcolor: function bgcolor(theme) {
81
+ return theme.palette.background.paper;
82
+ },
83
+ border: function border(theme) {
84
+ return "1px solid ".concat(theme.palette.divider);
85
+ },
86
+ borderRadius: '10px',
87
+ p: '14px'
88
+ },
89
+ children: [jsxs(Stack, {
90
+ direction: "row",
91
+ spacing: 0.75,
92
+ alignItems: "center",
93
+ children: [jsx(ArrowUpwardIcon, {
94
+ sx: {
95
+ fontSize: 11
96
+ }
97
+ }), jsx(Typography, {
98
+ color: "primary.main",
99
+ sx: {
100
+ fontSize: 12,
101
+ fontWeight: 700,
102
+ letterSpacing: '-.01em'
103
+ },
104
+ children: intl.formatMessage({
105
+ id: 'exerciseRunner.arduino.preflight.preview.label'
106
+ })
107
+ })]
108
+ }), jsx(ArduinoConnectionPreflightDialogNativeMock, {})]
109
+ });
110
+ };
111
+ /**
112
+ *
113
+ */
114
+ var renderActionsDontShowAgain = function renderActionsDontShowAgain() {
115
+ return jsx(FormControlLabel, {
116
+ control: jsx(Checkbox, {
117
+ size: "small",
118
+ checked: dontShowAgain,
119
+ onChange: function onChange(e) {
120
+ return setDontShowAgain(e.target.checked);
121
+ }
122
+ }),
123
+ label: intl.formatMessage({
124
+ id: 'exerciseRunner.arduino.help.dontShowAgain'
125
+ })
126
+ });
127
+ };
128
+ /**
129
+ *
130
+ */
131
+ var renderActionsButtons = function renderActionsButtons() {
132
+ return jsxs(Stack, {
133
+ direction: "row",
134
+ spacing: 1,
135
+ children: [jsx(Button, {
136
+ color: "inherit",
137
+ onClick: handleCancelClick,
138
+ children: intl.formatMessage({
139
+ id: 'exerciseRunner.arduino.preflight.action.cancel'
140
+ })
141
+ }), jsx(Button, {
142
+ variant: "contained",
143
+ onClick: handleConfirmClick,
144
+ children: intl.formatMessage({
145
+ id: 'exerciseRunner.arduino.preflight.action.confirm'
146
+ })
147
+ })]
148
+ });
149
+ };
150
+ //
151
+ //
152
+ //
153
+ return jsxs(Dialog, {
154
+ fullWidth: true,
155
+ maxWidth: "sm",
156
+ open: open,
157
+ PaperProps: {
158
+ sx: {
159
+ maxHeight: 'calc(100vh - 32px)'
160
+ }
161
+ },
162
+ onClose: onClose,
163
+ onTransitionExited: onTransitionExited,
164
+ children: [jsx(DialogTitle, {
165
+ children: renderTitle()
166
+ }), jsx(DialogContent, {
167
+ children: jsxs(Stack, {
168
+ spacing: 2,
169
+ children: [renderUploadNotice(), jsx(Typography, {
170
+ variant: "body2",
171
+ color: "text.secondary",
172
+ children: intl.formatMessage({
173
+ id: 'exerciseRunner.arduino.preflight.body'
174
+ })
175
+ }), renderPreview(), jsx(ArduinoConnectionPreflightDialogSteps, {}), jsx(Typography, {
176
+ variant: "caption",
177
+ color: "text.secondary",
178
+ children: intl.formatMessage({
179
+ id: 'exerciseRunner.arduino.preflight.footer'
180
+ })
181
+ })]
182
+ })
183
+ }), jsxs(DialogActions, {
184
+ sx: {
185
+ justifyContent: 'space-between',
186
+ px: 3,
187
+ py: 2
188
+ },
189
+ children: [renderActionsDontShowAgain(), renderActionsButtons()]
190
+ })]
191
+ });
192
+ };
193
+
194
+ export { ArduinoConnectionPreflightDialog as default };
@@ -0,0 +1,3 @@
1
+ import type React from 'react';
2
+ declare const ArduinoConnectionPreflightDialogNativeMock: React.VFC;
3
+ export default ArduinoConnectionPreflightDialogNativeMock;
@@ -26,7 +26,7 @@ var SYSTEM_FONT = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-s
26
26
  //
27
27
  //
28
28
  //
29
- var ArduinoConnectionGuideDialogNativeMock = function ArduinoConnectionGuideDialogNativeMock() {
29
+ var ArduinoConnectionPreflightDialogNativeMock = function ArduinoConnectionPreflightDialogNativeMock() {
30
30
  var intl = useRawEliceIntl();
31
31
  /**
32
32
  *
@@ -56,7 +56,7 @@ var ArduinoConnectionGuideDialogNativeMock = function ArduinoConnectionGuideDial
56
56
  color: MOCK_TEXT
57
57
  },
58
58
  children: intl.formatMessage({
59
- id: 'exerciseRunner.arduino.connectGuide.preview.host'
59
+ id: 'exerciseRunner.arduino.preflight.preview.host'
60
60
  }, {
61
61
  host: window.location.host
62
62
  })
@@ -142,7 +142,7 @@ var ArduinoConnectionGuideDialogNativeMock = function ArduinoConnectionGuideDial
142
142
  bgcolor: 'transparent'
143
143
  }),
144
144
  children: intl.formatMessage({
145
- id: 'exerciseRunner.arduino.connectGuide.preview.cancel'
145
+ id: 'exerciseRunner.arduino.preflight.preview.cancel'
146
146
  })
147
147
  }), jsx(Box, {
148
148
  sx: Object.assign(Object.assign({}, btnBaseSx), {
@@ -151,7 +151,7 @@ var ArduinoConnectionGuideDialogNativeMock = function ArduinoConnectionGuideDial
151
151
  color: MOCK_BTN_PRIMARY_TEXT
152
152
  }),
153
153
  children: intl.formatMessage({
154
- id: 'exerciseRunner.arduino.connectGuide.preview.connect'
154
+ id: 'exerciseRunner.arduino.preflight.preview.connect'
155
155
  })
156
156
  })]
157
157
  });
@@ -174,4 +174,4 @@ var ArduinoConnectionGuideDialogNativeMock = function ArduinoConnectionGuideDial
174
174
  });
175
175
  };
176
176
 
177
- export { ArduinoConnectionGuideDialogNativeMock as default };
177
+ export { ArduinoConnectionPreflightDialogNativeMock as default };
@@ -0,0 +1,3 @@
1
+ import type React from 'react';
2
+ declare const ArduinoConnectionPreflightDialogSteps: React.VFC;
3
+ export default ArduinoConnectionPreflightDialogSteps;
@@ -11,7 +11,7 @@ var STEP_KEYS = [1, 2, 3];
11
11
  //
12
12
  //
13
13
  //
14
- var ArduinoConnectionGuideDialogSteps = function ArduinoConnectionGuideDialogSteps() {
14
+ var ArduinoConnectionPreflightDialogSteps = function ArduinoConnectionPreflightDialogSteps() {
15
15
  var intl = useRawEliceIntl();
16
16
  /**
17
17
  *
@@ -94,15 +94,15 @@ var ArduinoConnectionGuideDialogSteps = function ArduinoConnectionGuideDialogSte
94
94
  whiteSpace: 'pre-line'
95
95
  },
96
96
  children: intl.formatMessage({
97
- id: "exerciseRunner.arduino.connectGuide.steps.".concat(step)
97
+ id: "exerciseRunner.arduino.preflight.steps.".concat(step)
98
98
  }, {
99
99
  usbmodem: renderInlineCode('usbmodem'),
100
100
  usbserial: renderInlineCode('usbserial'),
101
101
  connect: renderStrong(intl.formatMessage({
102
- id: 'exerciseRunner.arduino.connectGuide.preview.connect'
102
+ id: 'exerciseRunner.arduino.preflight.preview.connect'
103
103
  })),
104
104
  cancel: renderStrong(intl.formatMessage({
105
- id: 'exerciseRunner.arduino.connectGuide.preview.cancel'
105
+ id: 'exerciseRunner.arduino.preflight.preview.cancel'
106
106
  }))
107
107
  })
108
108
  })]
@@ -119,4 +119,4 @@ var ArduinoConnectionGuideDialogSteps = function ArduinoConnectionGuideDialogSte
119
119
  });
120
120
  };
121
121
 
122
- export { ArduinoConnectionGuideDialogSteps as default };
122
+ export { ArduinoConnectionPreflightDialogSteps as default };
@@ -18,22 +18,22 @@ var ArduinoControllerActionUpload = function ArduinoControllerActionUpload() {
18
18
  isDisabled = _useControllerActionR.isDisabled,
19
19
  run = _useControllerActionR.run;
20
20
  var _useConnection = useConnection(),
21
- status = _useConnection.status,
22
- connect = _useConnection.connect;
21
+ status = _useConnection.status;
23
22
  var isBrowserSupported = useIsBrowserSupported();
24
23
  var _useArduinoBridge = useArduinoBridge(),
25
24
  setPendingIntent = _useArduinoBridge.setPendingIntent,
26
25
  isPending = _useArduinoBridge.isPending,
27
26
  isFlashing = _useArduinoBridge.isFlashing,
28
- setConnectionIntent = _useArduinoBridge.setConnectionIntent;
27
+ openConnectionPreflight = _useArduinoBridge.openConnectionPreflight;
29
28
  var isUploadDisabled = isDisabled || isPending || isFlashing || !isBrowserSupported;
30
29
  var isUploadLoading = isPending || isFlashing;
31
30
  /**
32
31
  * Submit the Arduino sketch, then flash the compiled firmware to the board.
33
32
  */
34
33
  var upload = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
34
+ var granted;
35
35
  return _regenerator().w(function (_context) {
36
- while (1) switch (_context.p = _context.n) {
36
+ while (1) switch (_context.n) {
37
37
  case 0:
38
38
  if (!isUploadDisabled) {
39
39
  _context.n = 1;
@@ -42,29 +42,27 @@ var ArduinoControllerActionUpload = function ArduinoControllerActionUpload() {
42
42
  return _context.a(2);
43
43
  case 1:
44
44
  if (!(status !== 'connected')) {
45
- _context.n = 5;
45
+ _context.n = 3;
46
+ break;
47
+ }
48
+ _context.n = 2;
49
+ return openConnectionPreflight('upload');
50
+ case 2:
51
+ granted = _context.v;
52
+ if (granted) {
53
+ _context.n = 3;
46
54
  break;
47
55
  }
48
- setConnectionIntent('upload');
49
- _context.p = 2;
50
- _context.n = 3;
51
- return connect();
52
- case 3:
53
- _context.n = 5;
54
- break;
55
- case 4:
56
- _context.p = 4;
57
- _context.v;
58
56
  return _context.a(2);
59
- case 5:
57
+ case 3:
60
58
  setPendingIntent('upload');
61
- _context.n = 6;
59
+ _context.n = 4;
62
60
  return run();
63
- case 6:
61
+ case 4:
64
62
  return _context.a(2);
65
63
  }
66
- }, _callee, null, [[2, 4]]);
67
- })), [isUploadDisabled, status, connect, setConnectionIntent, setPendingIntent, run]);
64
+ }, _callee);
65
+ })), [isUploadDisabled, status, openConnectionPreflight, setPendingIntent, run]);
68
66
  //
69
67
  //
70
68
  //
@@ -44,12 +44,11 @@ var ArduinoControllerStatusMessage = function ArduinoControllerStatusMessage() {
44
44
  var intl = useRawEliceIntl();
45
45
  var _useConnection = useConnection(),
46
46
  status = _useConnection.status,
47
- connect = _useConnection.connect,
48
47
  disconnect = _useConnection.disconnect;
49
48
  var session = useSession();
50
49
  var _useArduinoBridge = useArduinoBridge(),
51
50
  isFlashing = _useArduinoBridge.isFlashing,
52
- setConnectionIntent = _useArduinoBridge.setConnectionIntent;
51
+ openConnectionPreflight = _useArduinoBridge.openConnectionPreflight;
53
52
  var isBrowserSupported = useIsBrowserSupported();
54
53
  var deviceName = (_a = session === null || session === void 0 ? void 0 : session.driver.board.name) !== null && _a !== void 0 ? _a : null;
55
54
  var isConnected = status === 'connected';
@@ -60,7 +59,7 @@ var ArduinoControllerStatusMessage = function ArduinoControllerStatusMessage() {
60
59
  var handleClick = /*#__PURE__*/function () {
61
60
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
62
61
  return _regenerator().w(function (_context) {
63
- while (1) switch (_context.p = _context.n) {
62
+ while (1) switch (_context.n) {
64
63
  case 0:
65
64
  if (!isConnected) {
66
65
  _context.n = 2;
@@ -71,20 +70,12 @@ var ArduinoControllerStatusMessage = function ArduinoControllerStatusMessage() {
71
70
  case 1:
72
71
  return _context.a(2);
73
72
  case 2:
74
- setConnectionIntent('connect');
75
- _context.p = 3;
76
- _context.n = 4;
77
- return connect();
78
- case 4:
79
- _context.n = 6;
80
- break;
81
- case 5:
82
- _context.p = 5;
83
- _context.v;
84
- case 6:
73
+ _context.n = 3;
74
+ return openConnectionPreflight('connect');
75
+ case 3:
85
76
  return _context.a(2);
86
77
  }
87
- }, _callee, null, [[3, 5]]);
78
+ }, _callee);
88
79
  }));
89
80
  return function handleClick() {
90
81
  return _ref.apply(this, arguments);