From 76f73d4184ee772e3856b77f1626b25e07eb6d40 Mon Sep 17 00:00:00 2001 From: RoyEJohnson Date: Wed, 11 Dec 2024 22:31:22 +0000 Subject: [PATCH] deploy: 5d59a4e0ad35fa0001edc34b7d24f58f2ad0e748 --- assets/{Answer-3bf89cae.js => Answer-dffbc252.js} | 2 +- ...{Answer.stories-a8dd0a2b.js => Answer.stories-7b49857e.js} | 2 +- assets/{AnswersTable-7e7c3267.js => AnswersTable-f50cd161.js} | 2 +- ...e.stories-3f707227.js => AnswersTable.stories-80f93e08.js} | 2 +- assets/{Button-bda545f4.js => Button-442ac3a9.js} | 2 +- ...{Button.stories-a13bbe3c.js => Button.stories-eaa3047e.js} | 2 +- assets/{Card-0a90a724.js => Card-d3cd39e0.js} | 4 ++-- assets/{Card.stories-85df712b.js => Card.stories-3fda9a2a.js} | 2 +- ...ories-948bf2c0.js => CompletionStatus.stories-f34f132d.js} | 2 +- assets/{Exercise-b6c5cea2.js => Exercise-e02db5d9.js} | 2 +- ...rcise.stories-f1d10fb8.js => Exercise.stories-2613da97.js} | 2 +- ...rciseQuestion-ce1f3673.js => ExerciseQuestion-b5b263d5.js} | 2 +- ...ories-2f0bab4c.js => ExerciseQuestion.stories-bd025b9c.js} | 2 +- ...xerciseToolbar-b9b45a2b.js => ExerciseToolbar-6b883614.js} | 2 +- ...tories-671e841d.js => ExerciseToolbar.stories-9f23d6f1.js} | 2 +- assets/{Feedback-c17f6545.js => Feedback-4145b2ef.js} | 2 +- ...dback.stories-f87b0504.js => Feedback.stories-0a09e3f7.js} | 2 +- ...ries-114fdd64.js => FreeResponseInput.stories-99567613.js} | 2 +- ...{Loader.stories-42aafb29.js => Loader.stories-39c8f603.js} | 2 +- .../{Print.stories-4dd733d9.js => Print.stories-b676ab5a.js} | 2 +- ...ar.stories-8fa02163.js => ProgressBar.stories-a823113b.js} | 2 +- assets/{Question-5a6de838.js => Question-ad35c143.js} | 2 +- ...stion.stories-572961d1.js => Question.stories-4409b4c7.js} | 2 +- ...{StepCardFooter-c2f64ec5.js => StepCardFooter-1a147654.js} | 2 +- assets/{axe-faa368b4.js => axe-4ad1240f.js} | 2 +- assets/{index-6aae8bc2.js => index-12e12f28.js} | 4 ++-- assets/{index-b94bf76d.js => index-37c23baf.js} | 2 +- assets/{index.es-394f7b39.js => index.es-42e1cbb5.js} | 2 +- assets/{theme-500b2181.js => theme-e6ec1032.js} | 2 +- index.html | 2 +- 30 files changed, 32 insertions(+), 32 deletions(-) rename assets/{Answer-3bf89cae.js => Answer-dffbc252.js} (93%) rename assets/{Answer.stories-a8dd0a2b.js => Answer.stories-7b49857e.js} (73%) rename assets/{AnswersTable-7e7c3267.js => AnswersTable-f50cd161.js} (90%) rename assets/{AnswersTable.stories-3f707227.js => AnswersTable.stories-80f93e08.js} (77%) rename assets/{Button-bda545f4.js => Button-442ac3a9.js} (86%) rename assets/{Button.stories-a13bbe3c.js => Button.stories-eaa3047e.js} (71%) rename assets/{Card-0a90a724.js => Card-d3cd39e0.js} (75%) rename assets/{Card.stories-85df712b.js => Card.stories-3fda9a2a.js} (61%) rename assets/{CompletionStatus.stories-948bf2c0.js => CompletionStatus.stories-f34f132d.js} (85%) rename assets/{Exercise-b6c5cea2.js => Exercise-e02db5d9.js} (99%) rename assets/{Exercise.stories-f1d10fb8.js => Exercise.stories-2613da97.js} (95%) rename assets/{ExerciseQuestion-ce1f3673.js => ExerciseQuestion-b5b263d5.js} (87%) rename assets/{ExerciseQuestion.stories-2f0bab4c.js => ExerciseQuestion.stories-bd025b9c.js} (80%) rename assets/{ExerciseToolbar-b9b45a2b.js => ExerciseToolbar-6b883614.js} (94%) rename assets/{ExerciseToolbar.stories-671e841d.js => ExerciseToolbar.stories-9f23d6f1.js} (75%) rename assets/{Feedback-c17f6545.js => Feedback-4145b2ef.js} (82%) rename assets/{Feedback.stories-f87b0504.js => Feedback.stories-0a09e3f7.js} (57%) rename assets/{FreeResponseInput.stories-114fdd64.js => FreeResponseInput.stories-99567613.js} (88%) rename assets/{Loader.stories-42aafb29.js => Loader.stories-39c8f603.js} (97%) rename assets/{Print.stories-4dd733d9.js => Print.stories-b676ab5a.js} (90%) rename assets/{ProgressBar.stories-8fa02163.js => ProgressBar.stories-a823113b.js} (96%) rename assets/{Question-5a6de838.js => Question-ad35c143.js} (95%) rename assets/{Question.stories-572961d1.js => Question.stories-4409b4c7.js} (88%) rename assets/{StepCardFooter-c2f64ec5.js => StepCardFooter-1a147654.js} (92%) rename assets/{axe-faa368b4.js => axe-4ad1240f.js} (99%) rename assets/{index-6aae8bc2.js => index-12e12f28.js} (96%) rename assets/{index-b94bf76d.js => index-37c23baf.js} (91%) rename assets/{index.es-394f7b39.js => index.es-42e1cbb5.js} (99%) rename assets/{theme-500b2181.js => theme-e6ec1032.js} (98%) diff --git a/assets/Answer-3bf89cae.js b/assets/Answer-dffbc252.js similarity index 93% rename from assets/Answer-3bf89cae.js rename to assets/Answer-dffbc252.js index 0624ee3..a3aeed0 100644 --- a/assets/Answer-3bf89cae.js +++ b/assets/Answer-dffbc252.js @@ -1,4 +1,4 @@ -import{s as S,j as n,a as l,F as $}from"./index-6aae8bc2.js";import{c as f}from"./index-b94bf76d.js";import{C as g,S as x}from"./Feedback-c17f6545.js";import{c as A}from"./theme-500b2181.js";const u="ABCDEFGHIJKLMNOPQRSTUVWXYZ",R="1.0",F=function(e,t){if(!(e.id||t))return e.isCorrect;let r=e.id===t;return e.correctness!=null&&(r=e.correctness===R),r},C=(e,t)=>e.id===t,E=(e,t)=>e.id==t;function W(e){const r=e.trim().match(/\b[-?(\w+)?]+\b/gi);return r?r.length:0}const X=e=>typeof e=="string"?parseInt(e,10):e,T=S.div` +import{s as S,j as n,a as l,F as $}from"./index-12e12f28.js";import{c as f}from"./index-37c23baf.js";import{C as g,S as x}from"./Feedback-4145b2ef.js";import{c as A}from"./theme-e6ec1032.js";const u="ABCDEFGHIJKLMNOPQRSTUVWXYZ",R="1.0",F=function(e,t){if(!(e.id||t))return e.isCorrect;let r=e.id===t;return e.correctness!=null&&(r=e.correctness===R),r},C=(e,t)=>e.id===t,E=(e,t)=>e.id==t;function W(e){const r=e.trim().match(/\b[-?(\w+)?]+\b/gi);return r?r.length:0}const X=e=>typeof e=="string"?parseInt(e,10):e,T=S.div` color: ${e=>e.state?A.answer.correct:A.answer.incorrect}; text-transform: uppercase; font-size: calc(1.1rem * var(--content-text-scale)); diff --git a/assets/Answer.stories-a8dd0a2b.js b/assets/Answer.stories-7b49857e.js similarity index 73% rename from assets/Answer.stories-a8dd0a2b.js rename to assets/Answer.stories-7b49857e.js index 74d5bdc..e725e5e 100644 --- a/assets/Answer.stories-a8dd0a2b.js +++ b/assets/Answer.stories-7b49857e.js @@ -1 +1 @@ -import{j as e}from"./index-6aae8bc2.js";import{A as t}from"./Answer-3bf89cae.js";import"./index-b94bf76d.js";import"./Feedback-c17f6545.js";import"./theme-500b2181.js";const n={type:"student",iter:0,answer:{id:"1",question_id:1,correctness:null,isCorrect:!0,content_html:"Anwer",selected_count:5},onChangeAnswer:()=>null,disabled:!1,onKeyPress:()=>null,qid:1,hasCorrectAnswer:!1,incorrectAnswerId:0,answered_count:0},i=()=>e(t,{...n}),w=()=>e(t,{...n,answerId:"1"}),a=()=>e(t,{...n,correctAnswerId:"1"}),l=()=>e(t,{...n,incorrectAnswerId:"1"});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{w as Checked,a as Correct,i as Default,l as Incorrect}; +import{j as e}from"./index-12e12f28.js";import{A as t}from"./Answer-dffbc252.js";import"./index-37c23baf.js";import"./Feedback-4145b2ef.js";import"./theme-e6ec1032.js";const n={type:"student",iter:0,answer:{id:"1",question_id:1,correctness:null,isCorrect:!0,content_html:"Anwer",selected_count:5},onChangeAnswer:()=>null,disabled:!1,onKeyPress:()=>null,qid:1,hasCorrectAnswer:!1,incorrectAnswerId:0,answered_count:0},i=()=>e(t,{...n}),w=()=>e(t,{...n,answerId:"1"}),a=()=>e(t,{...n,correctAnswerId:"1"}),l=()=>e(t,{...n,incorrectAnswerId:"1"});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{w as Checked,a as Correct,i as Default,l as Incorrect}; diff --git a/assets/AnswersTable-7e7c3267.js b/assets/AnswersTable-f50cd161.js similarity index 90% rename from assets/AnswersTable-7e7c3267.js rename to assets/AnswersTable-f50cd161.js index 1ea46eb..171eb81 100644 --- a/assets/AnswersTable-7e7c3267.js +++ b/assets/AnswersTable-f50cd161.js @@ -1 +1 @@ -import{j as A,a as E}from"./index-6aae8bc2.js";import{A as F}from"./Answer-3bf89cae.js";import{F as R}from"./Feedback-c17f6545.js";const T="student",N=c=>{let _=0;const{question:n,hideAnswers:k,type:x=T,answered_count:I,choicesEnabled:q,correct_answer_id:i,incorrectAnswerId:l,answer_id:y,feedback_html:w,correct_answer_feedback_html:f,show_all_feedback:b=!1,tableFeedbackEnabled:h,hasCorrectAnswer:$,onChangeAnswer:g,onKeyPress:j,answerIdOrder:u,instructions:O}=c;if(k)return null;const{id:P}=n,p=[],C=e=>{const{answers:s}=n;return s.slice().sort((r,a)=>e.indexOf(r.id)-e.indexOf(a.id))},d={qid:P||`auto-${_++}`,answerId:y,correctAnswerId:i,incorrectAnswerId:l,hasCorrectAnswer:$,onChangeAnswer:g,type:x,answered_count:I,disabled:!q,show_all_feedback:b,tableFeedbackEnabled:h,onKeyPress:j},m=(u?C(u):n.answers).map((e,s)=>{const r={answer:{...e,question_id:typeof n.id=="string"?parseInt(n.id,10):n.id},iter:s,key:`${d.qid}-option-${s}`},a=Object.assign({},r,d);let t,o;return b&&e.feedback_html&&h?t=e.feedback_html:e.id===l&&w?t=w:e.id===i&&f&&(t=f),t&&(o=`feedback-${d.qid}-${s}`,p.push({index:s,html:t,id:o})),A(F,{feedbackId:o,...a})});return p.forEach((e,s)=>{const r=e.index+s+1;m.splice(r,0,A(R,{id:e.id,contentRenderer:c.contentRenderer,children:e.html},r))}),E("div",{role:"radiogroup","aria-label":"Answer choices",className:"answers-table",children:[O,m]})};export{N as A}; +import{j as A,a as E}from"./index-12e12f28.js";import{A as F}from"./Answer-dffbc252.js";import{F as R}from"./Feedback-4145b2ef.js";const T="student",N=c=>{let _=0;const{question:n,hideAnswers:k,type:x=T,answered_count:I,choicesEnabled:q,correct_answer_id:i,incorrectAnswerId:l,answer_id:y,feedback_html:w,correct_answer_feedback_html:f,show_all_feedback:b=!1,tableFeedbackEnabled:h,hasCorrectAnswer:$,onChangeAnswer:g,onKeyPress:j,answerIdOrder:u,instructions:O}=c;if(k)return null;const{id:P}=n,p=[],C=e=>{const{answers:s}=n;return s.slice().sort((r,a)=>e.indexOf(r.id)-e.indexOf(a.id))},d={qid:P||`auto-${_++}`,answerId:y,correctAnswerId:i,incorrectAnswerId:l,hasCorrectAnswer:$,onChangeAnswer:g,type:x,answered_count:I,disabled:!q,show_all_feedback:b,tableFeedbackEnabled:h,onKeyPress:j},m=(u?C(u):n.answers).map((e,s)=>{const r={answer:{...e,question_id:typeof n.id=="string"?parseInt(n.id,10):n.id},iter:s,key:`${d.qid}-option-${s}`},a=Object.assign({},r,d);let t,o;return b&&e.feedback_html&&h?t=e.feedback_html:e.id===l&&w?t=w:e.id===i&&f&&(t=f),t&&(o=`feedback-${d.qid}-${s}`,p.push({index:s,html:t,id:o})),A(F,{feedbackId:o,...a})});return p.forEach((e,s)=>{const r=e.index+s+1;m.splice(r,0,A(R,{id:e.id,contentRenderer:c.contentRenderer,children:e.html},r))}),E("div",{role:"radiogroup","aria-label":"Answer choices",className:"answers-table",children:[O,m]})};export{N as A}; diff --git a/assets/AnswersTable.stories-3f707227.js b/assets/AnswersTable.stories-80f93e08.js similarity index 77% rename from assets/AnswersTable.stories-3f707227.js rename to assets/AnswersTable.stories-80f93e08.js index 902b742..4422e53 100644 --- a/assets/AnswersTable.stories-3f707227.js +++ b/assets/AnswersTable.stories-80f93e08.js @@ -1 +1 @@ -import{j as e}from"./index-6aae8bc2.js";import{A as t}from"./AnswersTable-7e7c3267.js";import"./Answer-3bf89cae.js";import"./index-b94bf76d.js";import"./Feedback-c17f6545.js";import"./theme-500b2181.js";const r={question:{id:"1",stem_html:"",collaborator_solutions:[],formats:[],stimulus_html:"",answers:[{id:"1",correctness:"1.0",isCorrect:!1,content_html:"True"},{id:"2",correctness:"1.0",isCorrect:!1,content_html:"False"}],is_answer_order_important:!1},answer_id:"",feedback_html:"",correct_answer_feedback_html:"",answered_count:0,show_all_feedback:!1,onChangeAnswer:()=>null,hideAnswers:!1,hasCorrectAnswer:!1,onChangeAttempt:()=>null,choicesEnabled:!0},i=()=>e(t,{...r}),l=()=>e(t,{...r,answer_id:"1"}),m=()=>e(t,{...r,answer_id:"1",correct_answer_id:"1",correct_answer_feedback_html:"Feedback",hasCorrectAnswer:!0}),w=()=>e(t,{...r,answerIdOrder:["2","1"]}),_=()=>e(t,{...r,instructions:e("b",{children:"Instructions"})});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{l as Checked,m as CorrectAnswerFeedback,i as Default,_ as Instructions,w as Ordered}; +import{j as e}from"./index-12e12f28.js";import{A as t}from"./AnswersTable-f50cd161.js";import"./Answer-dffbc252.js";import"./index-37c23baf.js";import"./Feedback-4145b2ef.js";import"./theme-e6ec1032.js";const r={question:{id:"1",stem_html:"",collaborator_solutions:[],formats:[],stimulus_html:"",answers:[{id:"1",correctness:"1.0",isCorrect:!1,content_html:"True"},{id:"2",correctness:"1.0",isCorrect:!1,content_html:"False"}],is_answer_order_important:!1},answer_id:"",feedback_html:"",correct_answer_feedback_html:"",answered_count:0,show_all_feedback:!1,onChangeAnswer:()=>null,hideAnswers:!1,hasCorrectAnswer:!1,onChangeAttempt:()=>null,choicesEnabled:!0},i=()=>e(t,{...r}),l=()=>e(t,{...r,answer_id:"1"}),m=()=>e(t,{...r,answer_id:"1",correct_answer_id:"1",correct_answer_feedback_html:"Feedback",hasCorrectAnswer:!0}),w=()=>e(t,{...r,answerIdOrder:["2","1"]}),_=()=>e(t,{...r,instructions:e("b",{children:"Instructions"})});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{l as Checked,m as CorrectAnswerFeedback,i as Default,_ as Instructions,w as Ordered}; diff --git a/assets/Button-bda545f4.js b/assets/Button-442ac3a9.js similarity index 86% rename from assets/Button-bda545f4.js rename to assets/Button-442ac3a9.js index 054aee2..6fa9ab4 100644 --- a/assets/Button-bda545f4.js +++ b/assets/Button-442ac3a9.js @@ -1,4 +1,4 @@ -import{s as a,j as s}from"./index-6aae8bc2.js";import{c as t}from"./theme-500b2181.js";const c=a.button` +import{s as a,j as s}from"./index-12e12f28.js";import{c as t}from"./theme-e6ec1032.js";const c=a.button` background-color: ${t.button.background}; color: ${t.palette.white}; font-size: 1.6rem; diff --git a/assets/Button.stories-a13bbe3c.js b/assets/Button.stories-eaa3047e.js similarity index 71% rename from assets/Button.stories-a13bbe3c.js rename to assets/Button.stories-eaa3047e.js index 93a106b..79d2511 100644 --- a/assets/Button.stories-a13bbe3c.js +++ b/assets/Button.stories-eaa3047e.js @@ -1 +1 @@ -import{j as t}from"./index-6aae8bc2.js";import{B as e}from"./Button-bda545f4.js";import"./theme-500b2181.js";const d=()=>t(e,{children:"Click Me"}),c=()=>t(e,{disabled:!0,children:"Click Me"}),r=()=>t(e,{isWaiting:!0,waitingText:"Submitting...",children:"Click Me"});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{d as Default,c as Disabled,r as Waiting}; +import{j as t}from"./index-12e12f28.js";import{B as e}from"./Button-442ac3a9.js";import"./theme-e6ec1032.js";const d=()=>t(e,{children:"Click Me"}),c=()=>t(e,{disabled:!0,children:"Click Me"}),r=()=>t(e,{isWaiting:!0,waitingText:"Submitting...",children:"Click Me"});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{d as Default,c as Disabled,r as Waiting}; diff --git a/assets/Card-0a90a724.js b/assets/Card-d3cd39e0.js similarity index 75% rename from assets/Card-0a90a724.js rename to assets/Card-d3cd39e0.js index 4f4321d..cc68a73 100644 --- a/assets/Card-0a90a724.js +++ b/assets/Card-d3cd39e0.js @@ -1,4 +1,4 @@ -import{s as r,j as o,a as t}from"./index-6aae8bc2.js";import{c as s,b as i,l as w,m as S}from"./theme-500b2181.js";import{c as C}from"./index-b94bf76d.js";const q=r.div` +import{s as r,j as o,a}from"./index-12e12f28.js";import{c as s,b as i,l as w,m as S}from"./theme-e6ec1032.js";import{c as C}from"./index-37c23baf.js";const q=r.div` position: relative; display: flex; flex-direction: column; @@ -179,4 +179,4 @@ import{s as r,j as o,a as t}from"./index-6aae8bc2.js";import{c as s,b as i,l as &&& { .openstax-has-html .splash .frame-wrapper { margin-top: 0; } } -`,g=({questionNumber:e,numberOfQuestions:n,showTotalQuestions:d,stepType:l,isHomework:p,availablePoints:a,unpadded:x,className:h,children:u,questionId:b,multipartBadge:f,leftHeaderChildren:y,rightHeaderChildren:c,headerTitleChildren:v,...$})=>{const k=n>1?`Questions ${e} - ${e+n-1}`:`Question ${e}`;return t(N,{...$,children:[f,t(q,{className:h,children:[e&&p&&l==="exercise"&&t(m,{children:[t("div",{children:[y,t("div",{className:"question-info",children:[v,o("span",{children:k}),d?t("span",{className:"num-questions",children:[" / ",n]}):null,o("span",{className:"separator",children:"|"}),t("span",{className:"question-id",children:["ID: ",b]})]})]}),a||c?t("div",{children:[a&&t("div",{className:"points",children:[a," Points"]}),c]}):null]}),o(j,{unpadded:x,children:u})]})]})};g.displayName="OSStepCard";const I=({step:e,questionNumber:n,numberOfQuestions:d,children:l,className:p,...a})=>o(g,{...a,unpadded:!0,questionNumber:n,numberOfQuestions:d,stepType:"type"in e?e.type:"exercise",isHomework:"task"in e?e.task===void 0||e.task.type==="homework":!0,"data-task-step-id":e.id,className:C(`${"type"in e?e.type:"exercise"}-step`,p),questionId:e.uid,children:l});I.displayName="OSTaskStepCard";export{q as I,N as O,I as T}; +`,g=({questionNumber:e,numberOfQuestions:n,showTotalQuestions:d,stepType:l,isHomework:p,availablePoints:t,unpadded:x,className:h,children:u,questionId:b,multipartBadge:f,leftHeaderChildren:y,rightHeaderChildren:c,headerTitleChildren:v,...$})=>{const k=n>1?`Questions ${e} - ${e+n-1}`:`Question ${e}`;return a(N,{...$,children:[f,a(q,{className:h,children:[e&&p&&l==="exercise"&&a(m,{children:[a("div",{children:[y,a("div",{className:"question-info",role:"heading","aria-level":2,children:[v,o("span",{children:k}),d?a("span",{className:"num-questions",children:[" / ",n]}):null,o("span",{className:"separator",children:"|"}),a("span",{className:"question-id",children:["ID: ",b]})]})]}),t||c?a("div",{children:[t&&a("div",{className:"points",children:[t," Points"]}),c]}):null]}),o(j,{unpadded:x,children:u})]})]})};g.displayName="OSStepCard";const I=({step:e,questionNumber:n,numberOfQuestions:d,children:l,className:p,...t})=>o(g,{...t,unpadded:!0,questionNumber:n,numberOfQuestions:d,stepType:"type"in e?e.type:"exercise",isHomework:"task"in e?e.task===void 0||e.task.type==="homework":!0,"data-task-step-id":e.id,className:C(`${"type"in e?e.type:"exercise"}-step`,p),questionId:e.uid,children:l});I.displayName="OSTaskStepCard";export{q as I,N as O,I as T}; diff --git a/assets/Card.stories-85df712b.js b/assets/Card.stories-3fda9a2a.js similarity index 61% rename from assets/Card.stories-85df712b.js rename to assets/Card.stories-3fda9a2a.js index 49e95d4..9cd2b55 100644 --- a/assets/Card.stories-85df712b.js +++ b/assets/Card.stories-3fda9a2a.js @@ -1 +1 @@ -import{j as e,a as i,F as n}from"./index-6aae8bc2.js";import{T as t}from"./Card-0a90a724.js";import{Default as r}from"./ExerciseQuestion.stories-2f0bab4c.js";import"./theme-500b2181.js";import"./index-b94bf76d.js";import"./ExerciseQuestion-ce1f3673.js";import"./Answer-3bf89cae.js";import"./Feedback-c17f6545.js";import"./Button-bda545f4.js";import"./Question-5a6de838.js";import"./AnswersTable-7e7c3267.js";import"./StepCardFooter-c2f64ec5.js";const o={step:{uid:"1234@4",id:1,available_points:"1.0",is_completed:!1,answer_id_order:["1","2"],answer_id:"1",free_response:"",feedback_html:"",correct_answer_id:"",correct_answer_feedback_html:"",is_feedback_available:!0,attempts_remaining:0,attempt_number:1,incorrectAnswerId:0},questionNumber:1,numberOfQuestions:1},b=()=>e(t,{...o,children:e(r,{})}),C=()=>e(t,{...o,leftHeaderChildren:e("button",{children:"◀"}),rightHeaderChildren:i(n,{children:["Two-step ℹ️ ",e("button",{children:"▶"})]}),headerTitleChildren:"🔒",children:e(r,{})});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{C as CustomComponents,b as Default}; +import{j as e,a as i,F as n}from"./index-12e12f28.js";import{T as t}from"./Card-d3cd39e0.js";import{Default as r}from"./ExerciseQuestion.stories-bd025b9c.js";import"./theme-e6ec1032.js";import"./index-37c23baf.js";import"./ExerciseQuestion-b5b263d5.js";import"./Answer-dffbc252.js";import"./Feedback-4145b2ef.js";import"./Button-442ac3a9.js";import"./Question-ad35c143.js";import"./AnswersTable-f50cd161.js";import"./StepCardFooter-1a147654.js";const o={step:{uid:"1234@4",id:1,available_points:"1.0",is_completed:!1,answer_id_order:["1","2"],answer_id:"1",free_response:"",feedback_html:"",correct_answer_id:"",correct_answer_feedback_html:"",is_feedback_available:!0,attempts_remaining:0,attempt_number:1,incorrectAnswerId:0},questionNumber:1,numberOfQuestions:1},b=()=>e(t,{...o,children:e(r,{})}),C=()=>e(t,{...o,leftHeaderChildren:e("button",{children:"◀"}),rightHeaderChildren:i(n,{children:["Two-step ℹ️ ",e("button",{children:"▶"})]}),headerTitleChildren:"🔒",children:e(r,{})});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{C as CustomComponents,b as Default}; diff --git a/assets/CompletionStatus.stories-948bf2c0.js b/assets/CompletionStatus.stories-f34f132d.js similarity index 85% rename from assets/CompletionStatus.stories-948bf2c0.js rename to assets/CompletionStatus.stories-f34f132d.js index 4238de5..ab3844e 100644 --- a/assets/CompletionStatus.stories-948bf2c0.js +++ b/assets/CompletionStatus.stories-f34f132d.js @@ -1,4 +1,4 @@ -import{W as p,s as a,a as c,F as u,j as t}from"./index-6aae8bc2.js";import{I as h}from"./Card-0a90a724.js";import{B as x}from"./Button-bda545f4.js";import"./theme-500b2181.js";import"./index-b94bf76d.js";const C=p` +import{W as p,s as a,a as c,F as u,j as t}from"./index-12e12f28.js";import{I as h}from"./Card-d3cd39e0.js";import{B as x}from"./Button-442ac3a9.js";import"./theme-e6ec1032.js";import"./index-37c23baf.js";const C=p` :root { --content-text-scale: 1; } diff --git a/assets/Exercise-b6c5cea2.js b/assets/Exercise-e02db5d9.js similarity index 99% rename from assets/Exercise-b6c5cea2.js rename to assets/Exercise-e02db5d9.js index cf51a08..c2ec7ff 100644 --- a/assets/Exercise-b6c5cea2.js +++ b/assets/Exercise-e02db5d9.js @@ -1,4 +1,4 @@ -import{c as Ie,g as k0,s as li,C as T0,j as hn,a as Mf,W as n_,R as $l,T as e_,r as r_,F as i_}from"./index-6aae8bc2.js";import{O as u_,I as f_,T as a_}from"./Card-0a90a724.js";import{C as P0}from"./Feedback-c17f6545.js";import{E as o_}from"./ExerciseQuestion-ce1f3673.js";import{S as c_,E as l_}from"./ExerciseToolbar-b9b45a2b.js";import{c as $0,b as tu,m as s_}from"./theme-500b2181.js";import{F as h_}from"./index.es-394f7b39.js";var H0={};(function(p){p.linear=function(g){return g},p.inQuad=function(g){return g*g},p.outQuad=function(g){return g*(2-g)},p.inOutQuad=function(g){return g*=2,g<1?.5*g*g:-.5*(--g*(g-2)-1)},p.inCube=function(g){return g*g*g},p.outCube=function(g){return--g*g*g+1},p.inOutCube=function(g){return g*=2,g<1?.5*g*g*g:.5*((g-=2)*g*g+2)},p.inQuart=function(g){return g*g*g*g},p.outQuart=function(g){return 1- --g*g*g*g},p.inOutQuart=function(g){return g*=2,g<1?.5*g*g*g*g:-.5*((g-=2)*g*g*g-2)},p.inQuint=function(g){return g*g*g*g*g},p.outQuint=function(g){return--g*g*g*g*g+1},p.inOutQuint=function(g){return g*=2,g<1?.5*g*g*g*g*g:.5*((g-=2)*g*g*g*g+2)},p.inSine=function(g){return 1-Math.cos(g*Math.PI/2)},p.outSine=function(g){return Math.sin(g*Math.PI/2)},p.inOutSine=function(g){return .5*(1-Math.cos(Math.PI*g))},p.inExpo=function(g){return g==0?0:Math.pow(1024,g-1)},p.outExpo=function(g){return g==1?g:1-Math.pow(2,-10*g)},p.inOutExpo=function(g){return g==0?0:g==1?1:(g*=2)<1?.5*Math.pow(1024,g-1):.5*(-Math.pow(2,-10*(g-1))+2)},p.inCirc=function(g){return 1-Math.sqrt(1-g*g)},p.outCirc=function(g){return Math.sqrt(1- --g*g)},p.inOutCirc=function(g){return g*=2,g<1?-.5*(Math.sqrt(1-g*g)-1):.5*(Math.sqrt(1-(g-=2)*g)+1)},p.inBack=function(g){var c=1.70158;return g*g*((c+1)*g-c)},p.outBack=function(g){var c=1.70158;return--g*g*((c+1)*g+c)+1},p.inOutBack=function(g){var c=2.5949095;return(g*=2)<1?.5*(g*g*((c+1)*g-c)):.5*((g-=2)*g*((c+1)*g+c)+2)},p.inBounce=function(g){return 1-p.outBounce(1-g)},p.outBounce=function(g){return g<1/2.75?7.5625*g*g:g<2/2.75?7.5625*(g-=1.5/2.75)*g+.75:g<2.5/2.75?7.5625*(g-=2.25/2.75)*g+.9375:7.5625*(g-=2.625/2.75)*g+.984375},p.inOutBounce=function(g){return g<.5?p.inBounce(g*2)*.5:p.outBounce(g*2-1)*.5+.5},p.inElastic=function(g){var c,x=.1,R=.4;return g===0?0:g===1?1:(!x||x<1?(x=1,c=R/4):c=R*Math.asin(1/x)/(2*Math.PI),-(x*Math.pow(2,10*(g-=1))*Math.sin((g-c)*(2*Math.PI)/R)))},p.outElastic=function(g){var c,x=.1,R=.4;return g===0?0:g===1?1:(!x||x<1?(x=1,c=R/4):c=R*Math.asin(1/x)/(2*Math.PI),x*Math.pow(2,-10*g)*Math.sin((g-c)*(2*Math.PI)/R)+1)},p.inOutElastic=function(g){var c,x=.1,R=.4;return g===0?0:g===1?1:(!x||x<1?(x=1,c=R/4):c=R*Math.asin(1/x)/(2*Math.PI),(g*=2)<1?-.5*(x*Math.pow(2,10*(g-=1))*Math.sin((g-c)*(2*Math.PI)/R)):x*Math.pow(2,-10*(g-=1))*Math.sin((g-c)*(2*Math.PI)/R)*.5+1)},p["in-quad"]=p.inQuad,p["out-quad"]=p.outQuad,p["in-out-quad"]=p.inOutQuad,p["in-cube"]=p.inCube,p["out-cube"]=p.outCube,p["in-out-cube"]=p.inOutCube,p["in-quart"]=p.inQuart,p["out-quart"]=p.outQuart,p["in-out-quart"]=p.inOutQuart,p["in-quint"]=p.inQuint,p["out-quint"]=p.outQuint,p["in-out-quint"]=p.inOutQuint,p["in-sine"]=p.inSine,p["out-sine"]=p.outSine,p["in-out-sine"]=p.inOutSine,p["in-expo"]=p.inExpo,p["out-expo"]=p.outExpo,p["in-out-expo"]=p.inOutExpo,p["in-circ"]=p.inCirc,p["out-circ"]=p.outCirc,p["in-out-circ"]=p.inOutCirc,p["in-back"]=p.inBack,p["out-back"]=p.outBack,p["in-out-back"]=p.inOutBack,p["in-bounce"]=p.inBounce,p["out-bounce"]=p.outBounce,p["in-out-bounce"]=p.inOutBounce,p["in-elastic"]=p.inElastic,p["out-elastic"]=p.outElastic,p["in-out-elastic"]=p.inOutElastic})(H0);var q0={exports:{}};(function(p){function g(x){if(x)return c(x)}function c(x){for(var R in g.prototype)x[R]=g.prototype[R];return x}g.prototype.on=g.prototype.addEventListener=function(x,R){return this._callbacks=this._callbacks||{},(this._callbacks["$"+x]=this._callbacks["$"+x]||[]).push(R),this},g.prototype.once=function(x,R){function P(){this.off(x,P),R.apply(this,arguments)}return P.fn=R,this.on(x,P),this},g.prototype.off=g.prototype.removeListener=g.prototype.removeAllListeners=g.prototype.removeEventListener=function(x,R){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var P=this._callbacks["$"+x];if(!P)return this;if(arguments.length==1)return delete this._callbacks["$"+x],this;for(var L,q=0;q=p;if(x)return this._from=this._to,this._update(this._to),this._done=!0,this.emit("end"),this;var R=this._from,P=this._to,L=this._curr,q=this._ease,yt=(g-this._start)/p,Mt=q(yt);if(this.isArray){for(var G=0;G"u"?Ie:window,Hl=["moz","webkit"],Tf="AnimationFrame",Wf=Sr["request"+Tf],So=Sr["cancel"+Tf]||Sr["cancelRequest"+Tf];for(var Ro=0;!Wf&&Ro=p;if(x)return this._from=this._to,this._update(this._to),this._done=!0,this.emit("end"),this;var R=this._from,P=this._to,L=this._curr,q=this._ease,yt=(g-this._start)/p,Mt=q(yt);if(this.isArray){for(var G=0;G"u"?Ie:window,Hl=["moz","webkit"],Tf="AnimationFrame",Wf=Sr["request"+Tf],So=Sr["cancel"+Tf]||Sr["cancelRequest"+Tf];for(var Ro=0;!Wf&&Ro * Copyright OpenJS Foundation and other contributors diff --git a/assets/Exercise.stories-f1d10fb8.js b/assets/Exercise.stories-2613da97.js similarity index 95% rename from assets/Exercise.stories-f1d10fb8.js rename to assets/Exercise.stories-2613da97.js index 0ce7328..e89f393 100644 --- a/assets/Exercise.stories-f1d10fb8.js +++ b/assets/Exercise.stories-2613da97.js @@ -1,4 +1,4 @@ -import{s as w,r as l,j as t,a as u}from"./index-6aae8bc2.js";import{E as r}from"./Exercise-b6c5cea2.js";import"./Card-0a90a724.js";import"./theme-500b2181.js";import"./index-b94bf76d.js";import"./Feedback-c17f6545.js";import"./ExerciseQuestion-ce1f3673.js";import"./Answer-3bf89cae.js";import"./Button-bda545f4.js";import"./Question-5a6de838.js";import"./AnswersTable-7e7c3267.js";import"./StepCardFooter-c2f64ec5.js";import"./ExerciseToolbar-b9b45a2b.js";import"./index.es-394f7b39.js";const p={exercise:{uid:"1@1",uuid:"e4e27897-4abc-40d3-8565-5def31795edc",group_uuid:"20e82bf6-232e-40c8-ba68-2d22c6498f69",number:1,version:1,published_at:"2022-09-06T20:32:21.981Z",context:"Context",stimulus_html:"Stimulus HTML",tags:[],authors:[{user_id:1,name:"OpenStax"}],copyright_holders:[{user_id:1,name:"OpenStax"}],derived_from:[],is_vocab:!1,solutions_are_public:!1,versions:[1],questions:[{id:"1",collaborator_solutions:[],formats:["true-false"],stimulus_html:"",stem_html:"",is_answer_order_important:!1,answers:[{id:"1",correctness:void 0,content_html:"True"},{id:"2",correctness:void 0,content_html:"False"}]}]},questionNumber:1,hasMultipleAttempts:!1,onAnswerChange:()=>null,onAnswerSave:()=>null,onNextStep:()=>null,canAnswer:!1,needsSaved:!1,apiIsPending:!1,step:{uid:"1234@5",id:1,available_points:"1.0",is_completed:!1,answer_id_order:["1","2"],answer_id:"1",free_response:"",feedback_html:"",correct_answer_id:"",correct_answer_feedback_html:"",is_feedback_available:!0,attempts_remaining:0,attempt_number:1,incorrectAnswerId:0},numberOfQuestions:1,canUpdateCurrentStep:!1},a=()=>({exercise:{uid:"1@1",uuid:"e4e27897-4abc-40d3-8565-5def31795edc",group_uuid:"20e82bf6-232e-40c8-ba68-2d22c6498f69",number:1,version:1,published_at:"2022-09-06T20:32:21.981Z",context:"Context",stimulus_html:"Stimulus HTML",tags:[],authors:[{user_id:1,name:"OpenStax"}],copyright_holders:[{user_id:1,name:"OpenStax"}],derived_from:[],is_vocab:!1,solutions_are_public:!1,versions:[1],questions:[{id:"1",collaborator_solutions:[],formats:["true-false"],stimulus_html:"",stem_html:"",is_answer_order_important:!1,answers:[{id:"1",correctness:void 0,content_html:"True"},{id:"2",correctness:void 0,content_html:"False"}]}]},questionNumber:1,numberOfQuestions:1,hasMultipleAttempts:!1,onAnswerChange:()=>null,onAnswerSave:()=>null,onNextStep:()=>null,step:{id:1,uid:"1234@5",available_points:"1.0"},questionStates:{1:{available_points:"1.0",is_completed:!1,answer_id_order:["1","2"],answer_id:1,free_response:"",feedback_html:"",correct_answer_id:"",correct_answer_feedback_html:"",attempts_remaining:0,attempt_number:0,incorrectAnswerId:0,canAnswer:!0,needsSaved:!0,apiIsPending:!1}},hasFeedback:!0}),f=[.75,.9,1,1.25,1.5,2],h=[-2,-1,0,1,2,3],b=new Map(h.map((e,n)=>[e,f[n]])),x=w.div` +import{s as w,r as l,j as t,a as u}from"./index-12e12f28.js";import{E as r}from"./Exercise-e02db5d9.js";import"./Card-d3cd39e0.js";import"./theme-e6ec1032.js";import"./index-37c23baf.js";import"./Feedback-4145b2ef.js";import"./ExerciseQuestion-b5b263d5.js";import"./Answer-dffbc252.js";import"./Button-442ac3a9.js";import"./Question-ad35c143.js";import"./AnswersTable-f50cd161.js";import"./StepCardFooter-1a147654.js";import"./ExerciseToolbar-6b883614.js";import"./index.es-42e1cbb5.js";const p={exercise:{uid:"1@1",uuid:"e4e27897-4abc-40d3-8565-5def31795edc",group_uuid:"20e82bf6-232e-40c8-ba68-2d22c6498f69",number:1,version:1,published_at:"2022-09-06T20:32:21.981Z",context:"Context",stimulus_html:"Stimulus HTML",tags:[],authors:[{user_id:1,name:"OpenStax"}],copyright_holders:[{user_id:1,name:"OpenStax"}],derived_from:[],is_vocab:!1,solutions_are_public:!1,versions:[1],questions:[{id:"1",collaborator_solutions:[],formats:["true-false"],stimulus_html:"",stem_html:"",is_answer_order_important:!1,answers:[{id:"1",correctness:void 0,content_html:"True"},{id:"2",correctness:void 0,content_html:"False"}]}]},questionNumber:1,hasMultipleAttempts:!1,onAnswerChange:()=>null,onAnswerSave:()=>null,onNextStep:()=>null,canAnswer:!1,needsSaved:!1,apiIsPending:!1,step:{uid:"1234@5",id:1,available_points:"1.0",is_completed:!1,answer_id_order:["1","2"],answer_id:"1",free_response:"",feedback_html:"",correct_answer_id:"",correct_answer_feedback_html:"",is_feedback_available:!0,attempts_remaining:0,attempt_number:1,incorrectAnswerId:0},numberOfQuestions:1,canUpdateCurrentStep:!1},a=()=>({exercise:{uid:"1@1",uuid:"e4e27897-4abc-40d3-8565-5def31795edc",group_uuid:"20e82bf6-232e-40c8-ba68-2d22c6498f69",number:1,version:1,published_at:"2022-09-06T20:32:21.981Z",context:"Context",stimulus_html:"Stimulus HTML",tags:[],authors:[{user_id:1,name:"OpenStax"}],copyright_holders:[{user_id:1,name:"OpenStax"}],derived_from:[],is_vocab:!1,solutions_are_public:!1,versions:[1],questions:[{id:"1",collaborator_solutions:[],formats:["true-false"],stimulus_html:"",stem_html:"",is_answer_order_important:!1,answers:[{id:"1",correctness:void 0,content_html:"True"},{id:"2",correctness:void 0,content_html:"False"}]}]},questionNumber:1,numberOfQuestions:1,hasMultipleAttempts:!1,onAnswerChange:()=>null,onAnswerSave:()=>null,onNextStep:()=>null,step:{id:1,uid:"1234@5",available_points:"1.0"},questionStates:{1:{available_points:"1.0",is_completed:!1,answer_id_order:["1","2"],answer_id:1,free_response:"",feedback_html:"",correct_answer_id:"",correct_answer_feedback_html:"",attempts_remaining:0,attempt_number:0,incorrectAnswerId:0,canAnswer:!0,needsSaved:!0,apiIsPending:!1}},hasFeedback:!0}),f=[.75,.9,1,1.25,1.5,2],h=[-2,-1,0,1,2,3],b=new Map(h.map((e,n)=>[e,f[n]])),x=w.div` ${e=>` --content-text-scale: ${b.get(e.textSize)}; `} diff --git a/assets/ExerciseQuestion-ce1f3673.js b/assets/ExerciseQuestion-b5b263d5.js similarity index 87% rename from assets/ExerciseQuestion-ce1f3673.js rename to assets/ExerciseQuestion-b5b263d5.js index db07d9e..a80cdc9 100644 --- a/assets/ExerciseQuestion-ce1f3673.js +++ b/assets/ExerciseQuestion-b5b263d5.js @@ -1 +1 @@ -import{R as o,a as n,j as t,F as Q}from"./index-6aae8bc2.js";import{n as U}from"./Answer-3bf89cae.js";import{B as b}from"./Button-bda545f4.js";import{C as D}from"./Feedback-c17f6545.js";import{a as M}from"./Question-5a6de838.js";import{S as O}from"./StepCardFooter-c2f64ec5.js";const T=({count:e})=>n("div",{children:[e," attempt",e===1?"":"s"," left"]}),z=({published_comments:e})=>e?n("div",{children:[t("strong",{children:"Feedback:"})," ",e]}):null,G=e=>t(b,{...e,waitingText:"Saving…",isWaiting:e.isWaiting,"data-test-id":"submit-answer-btn",children:e.willContinue?"Submit & continue":e.attempt_number==0?"Submit":"Re-submit"}),H=e=>t(b,{...e,"data-test-id":"continue-btn",children:e.canUpdateCurrentStep?"Continue":"Next"}),J=({free_response:e})=>e?t(Q,{children:t("div",{className:"free-response",children:e})}):null,$=o.forwardRef((e,w)=>{const{question:d,task:_,answer_id_order:C,onAnswerChange:S,feedback_html:g,correct_answer_feedback_html:v,is_completed:a,correct_answer_id:N,incorrectAnswerId:k,choicesEnabled:x,questionNumber:i,answer_id:l,hasMultipleAttempts:F,attempts_remaining:c,published_comments:A,detailedSolution:u,canAnswer:R,needsSaved:E,attempt_number:y,apiIsPending:m,onAnswerSave:B,onNextStep:r,canUpdateCurrentStep:I,displaySolution:j,available_points:h,free_response:q,show_all_feedback:P,tableFeedbackEnabled:W,hasFeedback:f}=e,[s,p]=o.useState(!1);return o.useEffect(()=>{s&&a&&(r(i-1),p(!1))},[r,i,s,a]),n("div",{"data-test-id":"student-exercise-question",children:[t(M,{ref:w,task:_,question:d,answerIdOrder:C,choicesEnabled:x,answer_id:l,questionNumber:i,onChange:S,feedback_html:g,correct_answer_feedback_html:v,correct_answer_id:a?N:null,incorrectAnswerId:k,className:"step-card-body",hideAnswers:!1,displayFormats:!1,displaySolution:j,show_all_feedback:P,tableFeedbackEnabled:W,children:t(J,{free_response:q})}),t(O,{className:"step-card-footer",children:n("div",{className:"step-card-footer-inner",children:[n("div",{className:"points",role:"status",children:[h?n("strong",{children:["Points: ",h]}):null,t("span",{className:"attempts-left",children:F&&c>0&&t(T,{count:c})}),t(z,{published_comments:A}),u&&n("div",{children:[t("strong",{children:"Detailed solution:"})," ",t(D,{html:u})]})]}),t("div",{className:"controls",children:R&&E||s?t(G,{disabled:m||!l||s,isWaiting:m||s,attempt_number:y,onClick:()=>{B(U(d.id)),f||p(!0)},willContinue:!f}):t(H,{onClick:()=>r(i-1),canUpdateCurrentStep:I})})]})})]})});export{$ as E}; +import{R as o,a as n,j as t,F as Q}from"./index-12e12f28.js";import{n as U}from"./Answer-dffbc252.js";import{B as b}from"./Button-442ac3a9.js";import{C as D}from"./Feedback-4145b2ef.js";import{a as M}from"./Question-ad35c143.js";import{S as O}from"./StepCardFooter-1a147654.js";const T=({count:e})=>n("div",{children:[e," attempt",e===1?"":"s"," left"]}),z=({published_comments:e})=>e?n("div",{children:[t("strong",{children:"Feedback:"})," ",e]}):null,G=e=>t(b,{...e,waitingText:"Saving…",isWaiting:e.isWaiting,"data-test-id":"submit-answer-btn",children:e.willContinue?"Submit & continue":e.attempt_number==0?"Submit":"Re-submit"}),H=e=>t(b,{...e,"data-test-id":"continue-btn",children:e.canUpdateCurrentStep?"Continue":"Next"}),J=({free_response:e})=>e?t(Q,{children:t("div",{className:"free-response",children:e})}):null,$=o.forwardRef((e,w)=>{const{question:d,task:_,answer_id_order:C,onAnswerChange:S,feedback_html:g,correct_answer_feedback_html:v,is_completed:a,correct_answer_id:N,incorrectAnswerId:k,choicesEnabled:x,questionNumber:i,answer_id:l,hasMultipleAttempts:F,attempts_remaining:c,published_comments:A,detailedSolution:u,canAnswer:R,needsSaved:E,attempt_number:y,apiIsPending:m,onAnswerSave:B,onNextStep:r,canUpdateCurrentStep:I,displaySolution:j,available_points:h,free_response:q,show_all_feedback:P,tableFeedbackEnabled:W,hasFeedback:f}=e,[s,p]=o.useState(!1);return o.useEffect(()=>{s&&a&&(r(i-1),p(!1))},[r,i,s,a]),n("div",{"data-test-id":"student-exercise-question",children:[t(M,{ref:w,task:_,question:d,answerIdOrder:C,choicesEnabled:x,answer_id:l,questionNumber:i,onChange:S,feedback_html:g,correct_answer_feedback_html:v,correct_answer_id:a?N:null,incorrectAnswerId:k,className:"step-card-body",hideAnswers:!1,displayFormats:!1,displaySolution:j,show_all_feedback:P,tableFeedbackEnabled:W,children:t(J,{free_response:q})}),t(O,{className:"step-card-footer",children:n("div",{className:"step-card-footer-inner",children:[n("div",{className:"points",role:"status",children:[h?n("strong",{children:["Points: ",h]}):null,t("span",{className:"attempts-left",children:F&&c>0&&t(T,{count:c})}),t(z,{published_comments:A}),u&&n("div",{children:[t("strong",{children:"Detailed solution:"})," ",t(D,{html:u})]})]}),t("div",{className:"controls",children:R&&E||s?t(G,{disabled:m||!l||s,isWaiting:m||s,attempt_number:y,onClick:()=>{B(U(d.id)),f||p(!0)},willContinue:!f}):t(H,{onClick:()=>r(i-1),canUpdateCurrentStep:I})})]})})]})});export{$ as E}; diff --git a/assets/ExerciseQuestion.stories-2f0bab4c.js b/assets/ExerciseQuestion.stories-bd025b9c.js similarity index 80% rename from assets/ExerciseQuestion.stories-2f0bab4c.js rename to assets/ExerciseQuestion.stories-bd025b9c.js index f7dd1c3..d7ece53 100644 --- a/assets/ExerciseQuestion.stories-2f0bab4c.js +++ b/assets/ExerciseQuestion.stories-bd025b9c.js @@ -1 +1 @@ -import{j as e}from"./index-6aae8bc2.js";import{E as t}from"./ExerciseQuestion-ce1f3673.js";import"./Answer-3bf89cae.js";import"./index-b94bf76d.js";import"./Feedback-c17f6545.js";import"./theme-500b2181.js";import"./Button-bda545f4.js";import"./Question-5a6de838.js";import"./AnswersTable-7e7c3267.js";import"./StepCardFooter-c2f64ec5.js";const s={question:{id:"1",stem_html:"Is this a question?",collaborator_solutions:[],formats:[],stimulus_html:"",answers:[{id:"1",correctness:void 0,content_html:"True"},{id:"2",correctness:void 0,content_html:"False"}],is_answer_order_important:!1},task:{is_deleted:!1,type:"homework"},correct_answer_id:"",incorrectAnswerId:"",hideAnswers:!1,hidePreambles:!1,exercise_uid:"",displayFormats:!1,className:"",questionNumber:1,displaySolution:!1,context:"",feedback_html:"",correct_answer_feedback_html:"",onChange:()=>null,choicesEnabled:!0,hasMultipleAttempts:!1,onAnswerChange:()=>null,onAnswerSave:()=>null,onNextStep:()=>null,is_completed:!1,multiPartGroup:null,answer_id:"",available_points:void 0,attempts_remaining:2,published_comments:"",detailedSolution:"",canAnswer:!0,needsSaved:!0,canUpdateCurrentStep:!0,attempt_number:0,apiIsPending:!1,hasFeedback:!1},c=()=>e(t,{...s}),_=()=>e(t,{...s,free_response:"In this free response, I will..."}),f=()=>e(t,{...s,hasMultipleAttempts:!0,attempts_remaining:2,attempt_number:0}),w=()=>e(t,{...s,hasMultipleAttempts:!0,canAnswer:!0,needsSaved:!1,canUpdateCurrentStep:!0,attempts_remaining:1,attempt_number:1,incorrectAnswerId:"2"}),h=()=>e(t,{...s,hasMultipleAttempts:!0,choicesEnabled:!1,canAnswer:!1,needsSaved:!1,canUpdateCurrentStep:!1,attempts_remaining:0,attempt_number:2,incorrectAnswerId:"2"});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{c as Default,_ as FreeResponseEntered,f as MultipleAttemptsAllLeft,h as MultipleAttemptsNoneLeft,w as MultipleAttemptsOneLeft}; +import{j as e}from"./index-12e12f28.js";import{E as t}from"./ExerciseQuestion-b5b263d5.js";import"./Answer-dffbc252.js";import"./index-37c23baf.js";import"./Feedback-4145b2ef.js";import"./theme-e6ec1032.js";import"./Button-442ac3a9.js";import"./Question-ad35c143.js";import"./AnswersTable-f50cd161.js";import"./StepCardFooter-1a147654.js";const s={question:{id:"1",stem_html:"Is this a question?",collaborator_solutions:[],formats:[],stimulus_html:"",answers:[{id:"1",correctness:void 0,content_html:"True"},{id:"2",correctness:void 0,content_html:"False"}],is_answer_order_important:!1},task:{is_deleted:!1,type:"homework"},correct_answer_id:"",incorrectAnswerId:"",hideAnswers:!1,hidePreambles:!1,exercise_uid:"",displayFormats:!1,className:"",questionNumber:1,displaySolution:!1,context:"",feedback_html:"",correct_answer_feedback_html:"",onChange:()=>null,choicesEnabled:!0,hasMultipleAttempts:!1,onAnswerChange:()=>null,onAnswerSave:()=>null,onNextStep:()=>null,is_completed:!1,multiPartGroup:null,answer_id:"",available_points:void 0,attempts_remaining:2,published_comments:"",detailedSolution:"",canAnswer:!0,needsSaved:!0,canUpdateCurrentStep:!0,attempt_number:0,apiIsPending:!1,hasFeedback:!1},c=()=>e(t,{...s}),_=()=>e(t,{...s,free_response:"In this free response, I will..."}),f=()=>e(t,{...s,hasMultipleAttempts:!0,attempts_remaining:2,attempt_number:0}),w=()=>e(t,{...s,hasMultipleAttempts:!0,canAnswer:!0,needsSaved:!1,canUpdateCurrentStep:!0,attempts_remaining:1,attempt_number:1,incorrectAnswerId:"2"}),h=()=>e(t,{...s,hasMultipleAttempts:!0,choicesEnabled:!1,canAnswer:!1,needsSaved:!1,canUpdateCurrentStep:!1,attempts_remaining:0,attempt_number:2,incorrectAnswerId:"2"});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{c as Default,_ as FreeResponseEntered,f as MultipleAttemptsAllLeft,h as MultipleAttemptsNoneLeft,w as MultipleAttemptsOneLeft}; diff --git a/assets/ExerciseToolbar-b9b45a2b.js b/assets/ExerciseToolbar-6b883614.js similarity index 94% rename from assets/ExerciseToolbar-b9b45a2b.js rename to assets/ExerciseToolbar-6b883614.js index 2e9574b..2cfae02 100644 --- a/assets/ExerciseToolbar-b9b45a2b.js +++ b/assets/ExerciseToolbar-6b883614.js @@ -1,4 +1,4 @@ -import{s as h,C as x,a as n,j as a}from"./index-6aae8bc2.js";import{c as r,l as m,b as i}from"./theme-500b2181.js";import{F as f}from"./index.es-394f7b39.js";var u={prefix:"fas",iconName:"book-open",icon:[576,512,[128214,128366],"f518","M249.6 471.5c10.8 3.8 22.4-4.1 22.4-15.5V78.6c0-4.2-1.6-8.4-5-11C247.4 52 202.4 32 144 32C87.5 32 35.1 48.6 9 59.9c-5.6 2.4-9 8-9 14V454.1c0 11.9 12.8 20.2 24.1 16.5C55.6 460.1 105.5 448 144 448c33.9 0 79 14 105.6 23.5zm76.8 0C353 462 398.1 448 432 448c38.5 0 88.4 12.1 119.9 22.6c11.3 3.8 24.1-4.6 24.1-16.5V73.9c0-6.1-3.4-11.6-9-14C540.9 48.6 488.5 32 432 32c-58.4 0-103.4 20-123 35.6c-3.3 2.6-5 6.8-5 11V456c0 11.4 11.7 19.3 22.4 15.5z"]},k={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]};const y=h.div` +import{s as h,C as x,a as n,j as a}from"./index-12e12f28.js";import{c as r,l as m,b as i}from"./theme-e6ec1032.js";import{F as f}from"./index.es-42e1cbb5.js";var u={prefix:"fas",iconName:"book-open",icon:[576,512,[128214,128366],"f518","M249.6 471.5c10.8 3.8 22.4-4.1 22.4-15.5V78.6c0-4.2-1.6-8.4-5-11C247.4 52 202.4 32 144 32C87.5 32 35.1 48.6 9 59.9c-5.6 2.4-9 8-9 14V454.1c0 11.9 12.8 20.2 24.1 16.5C55.6 460.1 105.5 448 144 448c33.9 0 79 14 105.6 23.5zm76.8 0C353 462 398.1 448 432 448c38.5 0 88.4 12.1 119.9 22.6c11.3 3.8 24.1-4.6 24.1-16.5V73.9c0-6.1-3.4-11.6-9-14C540.9 48.6 488.5 32 432 32c-58.4 0-103.4 20-123 35.6c-3.3 2.6-5 6.8-5 11V456c0 11.4 11.7 19.3 22.4 15.5z"]},k={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]};const y=h.div` position: absolute; background: #fff; width: 4.5rem; diff --git a/assets/ExerciseToolbar.stories-671e841d.js b/assets/ExerciseToolbar.stories-9f23d6f1.js similarity index 75% rename from assets/ExerciseToolbar.stories-671e841d.js rename to assets/ExerciseToolbar.stories-9f23d6f1.js index 84fca75..c0c5d0f 100644 --- a/assets/ExerciseToolbar.stories-671e841d.js +++ b/assets/ExerciseToolbar.stories-9f23d6f1.js @@ -1,4 +1,4 @@ -import{s as r,j as t}from"./index-6aae8bc2.js";import{E as o}from"./ExerciseToolbar-b9b45a2b.js";import"./theme-500b2181.js";import"./index.es-394f7b39.js";const e=r.div` +import{s as r,j as t}from"./index-12e12f28.js";import{E as o}from"./ExerciseToolbar-6b883614.js";import"./theme-e6ec1032.js";import"./index.es-42e1cbb5.js";const e=r.div` overflow: hidden; position: relative; min-height: 20rem; diff --git a/assets/Feedback-c17f6545.js b/assets/Feedback-4145b2ef.js similarity index 82% rename from assets/Feedback-c17f6545.js rename to assets/Feedback-4145b2ef.js index 3a901d7..823d500 100644 --- a/assets/Feedback-c17f6545.js +++ b/assets/Feedback-4145b2ef.js @@ -1 +1 @@ -import{u as l,R as r,j as a,a as o}from"./index-6aae8bc2.js";import{c as i}from"./index-b94bf76d.js";const d=({html:e,component:s,block:t=!1,...n})=>{const c=l();return r.useEffect(()=>{c()},[c,e]),s!==void 0?r.cloneElement(s,{html:e,...n}):t?a("div",{dangerouslySetInnerHTML:{__html:e},...n}):a("span",{dangerouslySetInnerHTML:{__html:e},...n})},m=e=>a("aside",{children:a(d,{component:e.contentRenderer,className:i("question-feedback-content","has-html",e.className),html:e.children,block:!0})}),h=({id:e,...s})=>{const t=s.position||"bottom",n=i("question-feedback",t);return o("aside",{id:e,className:n,children:[a("div",{className:"arrow","aria-label":"Answer Feedback"}),a(m,{...s,children:s.children})]})};export{d as C,h as F,m as S}; +import{u as l,R as r,j as a,a as o}from"./index-12e12f28.js";import{c as i}from"./index-37c23baf.js";const d=({html:e,component:s,block:t=!1,...n})=>{const c=l();return r.useEffect(()=>{c()},[c,e]),s!==void 0?r.cloneElement(s,{html:e,...n}):t?a("div",{dangerouslySetInnerHTML:{__html:e},...n}):a("span",{dangerouslySetInnerHTML:{__html:e},...n})},m=e=>a("aside",{children:a(d,{component:e.contentRenderer,className:i("question-feedback-content","has-html",e.className),html:e.children,block:!0})}),h=({id:e,...s})=>{const t=s.position||"bottom",n=i("question-feedback",t);return o("aside",{id:e,className:n,children:[a("div",{className:"arrow","aria-label":"Answer Feedback"}),a(m,{...s,children:s.children})]})};export{d as C,h as F,m as S}; diff --git a/assets/Feedback.stories-f87b0504.js b/assets/Feedback.stories-0a09e3f7.js similarity index 57% rename from assets/Feedback.stories-f87b0504.js rename to assets/Feedback.stories-0a09e3f7.js index 3fd2c88..9bc59db 100644 --- a/assets/Feedback.stories-f87b0504.js +++ b/assets/Feedback.stories-0a09e3f7.js @@ -1 +1 @@ -import{j as e}from"./index-6aae8bc2.js";import{F as t}from"./Feedback-c17f6545.js";import"./index-b94bf76d.js";const m=()=>e(t,{children:"Feedback"});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{m as Default}; +import{j as e}from"./index-12e12f28.js";import{F as t}from"./Feedback-4145b2ef.js";import"./index-37c23baf.js";const m=()=>e(t,{children:"Feedback"});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{m as Default}; diff --git a/assets/FreeResponseInput.stories-114fdd64.js b/assets/FreeResponseInput.stories-99567613.js similarity index 88% rename from assets/FreeResponseInput.stories-114fdd64.js rename to assets/FreeResponseInput.stories-99567613.js index c39f0e8..b713022 100644 --- a/assets/FreeResponseInput.stories-114fdd64.js +++ b/assets/FreeResponseInput.stories-99567613.js @@ -1,4 +1,4 @@ -import{C as b,s as o,a as s,j as t}from"./index-6aae8bc2.js";import{c as f}from"./Answer-3bf89cae.js";import{m as N,c as n}from"./theme-500b2181.js";import{Q as _}from"./Question-5a6de838.js";import{B as x}from"./Button-bda545f4.js";import{S as $}from"./StepCardFooter-c2f64ec5.js";import"./index-b94bf76d.js";import"./Feedback-c17f6545.js";import"./AnswersTable-7e7c3267.js";const L=b` +import{C as b,s as o,a as s,j as t}from"./index-12e12f28.js";import{c as f}from"./Answer-dffbc252.js";import{m as N,c as n}from"./theme-e6ec1032.js";import{Q as _}from"./Question-ad35c143.js";import{B as x}from"./Button-442ac3a9.js";import{S as $}from"./StepCardFooter-1a147654.js";import"./index-37c23baf.js";import"./Feedback-4145b2ef.js";import"./AnswersTable-f50cd161.js";const L=b` background-color: #f5e9ea; `,R=o.div` display: flex; diff --git a/assets/Loader.stories-42aafb29.js b/assets/Loader.stories-39c8f603.js similarity index 97% rename from assets/Loader.stories-42aafb29.js rename to assets/Loader.stories-39c8f603.js index 608680e..71c6634 100644 --- a/assets/Loader.stories-42aafb29.js +++ b/assets/Loader.stories-39c8f603.js @@ -1,4 +1,4 @@ -import{r as t,s as T,j as f}from"./index-6aae8bc2.js";import{c as D}from"./theme-500b2181.js";/*! ***************************************************************************** +import{r as t,s as T,j as f}from"./index-12e12f28.js";import{c as D}from"./theme-e6ec1032.js";/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the diff --git a/assets/Print.stories-4dd733d9.js b/assets/Print.stories-b676ab5a.js similarity index 90% rename from assets/Print.stories-4dd733d9.js rename to assets/Print.stories-b676ab5a.js index 62cfb85..e7d846f 100644 --- a/assets/Print.stories-4dd733d9.js +++ b/assets/Print.stories-b676ab5a.js @@ -1,4 +1,4 @@ -import{s as l,a as i,F as m,j as r}from"./index-6aae8bc2.js";import{E as p}from"./Exercise-b6c5cea2.js";import"./Card-0a90a724.js";import"./theme-500b2181.js";import"./index-b94bf76d.js";import"./Feedback-c17f6545.js";import"./ExerciseQuestion-ce1f3673.js";import"./Answer-3bf89cae.js";import"./Button-bda545f4.js";import"./Question-5a6de838.js";import"./AnswersTable-7e7c3267.js";import"./StepCardFooter-c2f64ec5.js";import"./ExerciseToolbar-b9b45a2b.js";import"./index.es-394f7b39.js";const n=[{answers:[{id:375060,content_html:"Inertia is an object’s tendency to maintain its mass.",correctness:"0.0",feedback_html:"Is the inertia of an object related to its mass? Is it not related to the motion of the object?"},{id:375061,content_html:"Inertia is an object’s tendency to remain at rest.",correctness:"0.0",feedback_html:"It is correct that the inertia of an object is its tendency to remain at rest unless acted on by an external force, but what about the case when the object is in a state of motion?"},{id:375062,content_html:"Inertia is an object’s tendency to remain in motion",correctness:"0.0",feedback_html:"Yes, the inertia of an object is its tendency to maintain its state of motion unless acted on by an external force, but what about the case when the object is at rest?"},{id:375063,content_html:"Inertia is an object’s tendency to remain at rest or, if moving, to remain in motion.",correctness:"1.0",feedback_html:"Inertia is an object’s tendency to remain at rest or, if moving, to remain in motion at a constant velocity. Inertia may also be described as the tendency of objects to maintain their state of motion."}],group_uuid:"5583b4e2-cf57-4769-834d-4a96a370caa2",stem_html:"What is inertia?",tags:["inbook-yes","k12phys","os-practice-concepts","k12phys-ch04","k12phys-ch04-s02","k12phys-ch04-s02-lo02","k12phys-ch04-ex020","dok:1","blooms:1","time:short","book:stax-phys","lo:stax-phys:4-2-1","exid:k12phys-ch04-ex020","context-cnxmod:4114c614-ff33-4d78-ac94-be5d2e3c2d56","filter-type:import:hs","book:stax-k12phys","type:conceptual-or-recall","context-cnxmod:b0ffd0a2-9c83-4d73-b899-7f2ade2acda6","context-cnxmod:abae927d-b545-4981-8e47-602c3fcb6ce5","aplo:stax-apphys:1.C.3.1"],uid:"2079@5"},{answers:[{id:375102,content_html:"No, the balls will not necessarily travel the same distance because the gravitational force acting on them is different.",correctness:"0.0",feedback_html:"Is gravity nonuniform on the surface of the Earth where these balls are being thrown?"},{id:375105,content_html:"No, the balls will not necessarily travel the same distance because the angle at which they are thrown may differ.",correctness:"1.0",feedback_html:"The trajectory of the two balls would be different if they were thrown with the same force but at different angles."},{id:375103,content_html:"Yes, the balls will travel the same distance because the gravitational force acting on them is the same.",correctness:"0.0",feedback_html:"What will happen if the balls are thrown at different angles? Will both balls travel the same distance?"},{id:375104,content_html:"Yes, the balls will travel the same distance because the angle at which they are thrown may differ.",correctness:"0.0",feedback_html:"Are you sure that the two balls will travel the same distance if they are thrown at different angles?"}],group_uuid:"4c19f84a-91cb-4919-be91-e12283fddf9c",stem_html:"Two people apply the same force to throw two identical balls in the air. Will the balls necessarily travel the same distance? Why or why not?",tags:["inbook-yes","k12phys","ost-test-prep","extended-response","k12phys-ch04","k12phys-ch04-s02","k12phys-ch04-s02-lo01","k12phys-ch04-ex032","time:medium","dok:3","blooms:5","book:stax-phys","lo:stax-phys:4-5-2","exid:k12phys-ch04-ex032","context-cnxmod:4114c614-ff33-4d78-ac94-be5d2e3c2d56","filter-type:import:hs","book:stax-k12phys","type:practice","context-cnxmod:533d782d-bcde-44b0-8913-a03b6470dae1","context-cnxmod:7b751b5e-3f12-48f3-9c23-5add811fccd6","aplo:stax-apphys:2.B.1.1","aplo:stax-apphys:3.A.4.1","aplo:stax-apphys:4.A.3.1"],uid:"2091@5"}],b=l.div` +import{s as l,a as i,F as m,j as r}from"./index-12e12f28.js";import{E as p}from"./Exercise-e02db5d9.js";import"./Card-d3cd39e0.js";import"./theme-e6ec1032.js";import"./index-37c23baf.js";import"./Feedback-4145b2ef.js";import"./ExerciseQuestion-b5b263d5.js";import"./Answer-dffbc252.js";import"./Button-442ac3a9.js";import"./Question-ad35c143.js";import"./AnswersTable-f50cd161.js";import"./StepCardFooter-1a147654.js";import"./ExerciseToolbar-6b883614.js";import"./index.es-42e1cbb5.js";const n=[{answers:[{id:375060,content_html:"Inertia is an object’s tendency to maintain its mass.",correctness:"0.0",feedback_html:"Is the inertia of an object related to its mass? Is it not related to the motion of the object?"},{id:375061,content_html:"Inertia is an object’s tendency to remain at rest.",correctness:"0.0",feedback_html:"It is correct that the inertia of an object is its tendency to remain at rest unless acted on by an external force, but what about the case when the object is in a state of motion?"},{id:375062,content_html:"Inertia is an object’s tendency to remain in motion",correctness:"0.0",feedback_html:"Yes, the inertia of an object is its tendency to maintain its state of motion unless acted on by an external force, but what about the case when the object is at rest?"},{id:375063,content_html:"Inertia is an object’s tendency to remain at rest or, if moving, to remain in motion.",correctness:"1.0",feedback_html:"Inertia is an object’s tendency to remain at rest or, if moving, to remain in motion at a constant velocity. Inertia may also be described as the tendency of objects to maintain their state of motion."}],group_uuid:"5583b4e2-cf57-4769-834d-4a96a370caa2",stem_html:"What is inertia?",tags:["inbook-yes","k12phys","os-practice-concepts","k12phys-ch04","k12phys-ch04-s02","k12phys-ch04-s02-lo02","k12phys-ch04-ex020","dok:1","blooms:1","time:short","book:stax-phys","lo:stax-phys:4-2-1","exid:k12phys-ch04-ex020","context-cnxmod:4114c614-ff33-4d78-ac94-be5d2e3c2d56","filter-type:import:hs","book:stax-k12phys","type:conceptual-or-recall","context-cnxmod:b0ffd0a2-9c83-4d73-b899-7f2ade2acda6","context-cnxmod:abae927d-b545-4981-8e47-602c3fcb6ce5","aplo:stax-apphys:1.C.3.1"],uid:"2079@5"},{answers:[{id:375102,content_html:"No, the balls will not necessarily travel the same distance because the gravitational force acting on them is different.",correctness:"0.0",feedback_html:"Is gravity nonuniform on the surface of the Earth where these balls are being thrown?"},{id:375105,content_html:"No, the balls will not necessarily travel the same distance because the angle at which they are thrown may differ.",correctness:"1.0",feedback_html:"The trajectory of the two balls would be different if they were thrown with the same force but at different angles."},{id:375103,content_html:"Yes, the balls will travel the same distance because the gravitational force acting on them is the same.",correctness:"0.0",feedback_html:"What will happen if the balls are thrown at different angles? Will both balls travel the same distance?"},{id:375104,content_html:"Yes, the balls will travel the same distance because the angle at which they are thrown may differ.",correctness:"0.0",feedback_html:"Are you sure that the two balls will travel the same distance if they are thrown at different angles?"}],group_uuid:"4c19f84a-91cb-4919-be91-e12283fddf9c",stem_html:"Two people apply the same force to throw two identical balls in the air. Will the balls necessarily travel the same distance? Why or why not?",tags:["inbook-yes","k12phys","ost-test-prep","extended-response","k12phys-ch04","k12phys-ch04-s02","k12phys-ch04-s02-lo01","k12phys-ch04-ex032","time:medium","dok:3","blooms:5","book:stax-phys","lo:stax-phys:4-5-2","exid:k12phys-ch04-ex032","context-cnxmod:4114c614-ff33-4d78-ac94-be5d2e3c2d56","filter-type:import:hs","book:stax-k12phys","type:practice","context-cnxmod:533d782d-bcde-44b0-8913-a03b6470dae1","context-cnxmod:7b751b5e-3f12-48f3-9c23-5add811fccd6","aplo:stax-apphys:2.B.1.1","aplo:stax-apphys:3.A.4.1","aplo:stax-apphys:4.A.3.1"],uid:"2091@5"}],b=l.div` break-inside: avoid; .step-card-body { diff --git a/assets/ProgressBar.stories-8fa02163.js b/assets/ProgressBar.stories-a823113b.js similarity index 96% rename from assets/ProgressBar.stories-8fa02163.js rename to assets/ProgressBar.stories-a823113b.js index 165d4e1..ff9f071 100644 --- a/assets/ProgressBar.stories-8fa02163.js +++ b/assets/ProgressBar.stories-a823113b.js @@ -1,4 +1,4 @@ -import{j as t,s as u,C as d,a as C}from"./index-6aae8bc2.js";import{b as w,c}from"./theme-500b2181.js";import{F as b}from"./index.es-394f7b39.js";const p=()=>t("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M14.556 2.09149C15.2296 1.78355 16 2.26721 16 2.99824V10.5951C16 10.9241 15.8362 11.2328 15.5605 11.4188C14.4229 12.1864 13.2007 12.6956 11.6715 12.6956C9.53267 12.6956 8.12768 11.6087 6.42651 11.6087C4.81213 11.6087 3.69241 11.923 2.79365 12.3V15.25C2.79365 15.6642 2.45254 16 2.03175 16H1.52381C1.10302 16 0.761905 15.6642 0.761905 15.25V3.18577C0.301492 2.86952 0 2.34455 0 1.74999C0 0.75924 0.836349 -0.0391985 1.852 0.00148899C2.75575 0.0376765 3.49578 0.75049 3.55203 1.63912C3.56854 1.8998 3.52632 2.1488 3.43819 2.37543C4.09648 2.13699 4.80613 1.99999 5.59835 1.99999C7.73718 1.99999 9.14216 3.08696 10.8433 3.08696C12.1289 3.08696 13.4659 2.5899 14.556 2.09149ZM2.79365 4.20718V6.40999C3.71429 6.07656 4.41841 5.85281 5.13016 5.75656V3.51999C4.38413 3.5878 3.84635 3.82593 2.79365 4.20718ZM9.80317 4.49437C8.96454 4.34837 8.21949 4.05752 7.46667 3.82749V5.93437C8.23413 6.14393 8.9767 6.44824 9.80317 6.63156V4.49437ZM5.13016 5.75656V7.94531C6.1713 7.85224 6.84159 7.92546 7.46667 8.06406V5.93437C6.66517 5.71452 5.98791 5.6399 5.13016 5.75656ZM7.46667 10.2012C8.30279 10.3466 9.04546 10.6365 9.80317 10.8681V8.76156C9.03248 8.55074 8.29397 8.24749 7.46667 8.06406V10.2012ZM2.79365 10.6906C3.54349 10.4284 4.31079 10.2581 5.13016 10.1731V7.94531C4.30127 8.01874 3.62667 8.19656 2.79365 8.48781V10.6906ZM14.4762 3.76562C13.8 4.04218 12.9971 4.31687 12.1397 4.4678V6.71499C13.0067 6.57874 13.7279 6.27437 14.4762 5.96843V3.76562ZM14.4762 10.3269V8.12406C13.7717 8.56781 12.9276 8.83062 12.1397 8.93718V11.1741C12.9356 11.0997 13.679 10.8291 14.4762 10.3269ZM9.80317 6.63156V8.76156C10.6179 8.9845 11.283 9.05349 12.1397 8.93718V6.71499C11.3143 6.84584 10.5542 6.79862 9.80317 6.63156Z",fill:"currentColor"})});var f={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var r="fas",a="check",i=512,n=512,o=[10003,10004],s="f00c",l="M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z";e.definition={prefix:r,iconName:a,icon:[i,n,o,s,l]},e.faCheck=e.definition,e.prefix=r,e.iconName=a,e.width=i,e.height=n,e.ligatures=o,e.unicode=s,e.svgPathData=l,e.aliases=o})(f);var g={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var r="fas",a="xmark",i=320,n=512,o=[128473,10005,10006,10060,215,"close","multiply","remove","times"],s="f00d",l="M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z";e.definition={prefix:r,iconName:a,icon:[i,n,o,s,l]},e.faXmark=e.definition,e.prefix=r,e.iconName=a,e.width=i,e.height=n,e.ligatures=o,e.unicode=s,e.svgPathData=l,e.aliases=o})(g);const I=u.nav` +import{j as t,s as u,C as d,a as C}from"./index-12e12f28.js";import{b as w,c}from"./theme-e6ec1032.js";import{F as b}from"./index.es-42e1cbb5.js";const p=()=>t("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M14.556 2.09149C15.2296 1.78355 16 2.26721 16 2.99824V10.5951C16 10.9241 15.8362 11.2328 15.5605 11.4188C14.4229 12.1864 13.2007 12.6956 11.6715 12.6956C9.53267 12.6956 8.12768 11.6087 6.42651 11.6087C4.81213 11.6087 3.69241 11.923 2.79365 12.3V15.25C2.79365 15.6642 2.45254 16 2.03175 16H1.52381C1.10302 16 0.761905 15.6642 0.761905 15.25V3.18577C0.301492 2.86952 0 2.34455 0 1.74999C0 0.75924 0.836349 -0.0391985 1.852 0.00148899C2.75575 0.0376765 3.49578 0.75049 3.55203 1.63912C3.56854 1.8998 3.52632 2.1488 3.43819 2.37543C4.09648 2.13699 4.80613 1.99999 5.59835 1.99999C7.73718 1.99999 9.14216 3.08696 10.8433 3.08696C12.1289 3.08696 13.4659 2.5899 14.556 2.09149ZM2.79365 4.20718V6.40999C3.71429 6.07656 4.41841 5.85281 5.13016 5.75656V3.51999C4.38413 3.5878 3.84635 3.82593 2.79365 4.20718ZM9.80317 4.49437C8.96454 4.34837 8.21949 4.05752 7.46667 3.82749V5.93437C8.23413 6.14393 8.9767 6.44824 9.80317 6.63156V4.49437ZM5.13016 5.75656V7.94531C6.1713 7.85224 6.84159 7.92546 7.46667 8.06406V5.93437C6.66517 5.71452 5.98791 5.6399 5.13016 5.75656ZM7.46667 10.2012C8.30279 10.3466 9.04546 10.6365 9.80317 10.8681V8.76156C9.03248 8.55074 8.29397 8.24749 7.46667 8.06406V10.2012ZM2.79365 10.6906C3.54349 10.4284 4.31079 10.2581 5.13016 10.1731V7.94531C4.30127 8.01874 3.62667 8.19656 2.79365 8.48781V10.6906ZM14.4762 3.76562C13.8 4.04218 12.9971 4.31687 12.1397 4.4678V6.71499C13.0067 6.57874 13.7279 6.27437 14.4762 5.96843V3.76562ZM14.4762 10.3269V8.12406C13.7717 8.56781 12.9276 8.83062 12.1397 8.93718V11.1741C12.9356 11.0997 13.679 10.8291 14.4762 10.3269ZM9.80317 6.63156V8.76156C10.6179 8.9845 11.283 9.05349 12.1397 8.93718V6.71499C11.3143 6.84584 10.5542 6.79862 9.80317 6.63156Z",fill:"currentColor"})});var f={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var r="fas",a="check",i=512,n=512,o=[10003,10004],s="f00c",l="M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z";e.definition={prefix:r,iconName:a,icon:[i,n,o,s,l]},e.faCheck=e.definition,e.prefix=r,e.iconName=a,e.width=i,e.height=n,e.ligatures=o,e.unicode=s,e.svgPathData=l,e.aliases=o})(f);var g={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var r="fas",a="xmark",i=320,n=512,o=[128473,10005,10006,10060,215,"close","multiply","remove","times"],s="f00d",l="M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z";e.definition={prefix:r,iconName:a,icon:[i,n,o,s,l]},e.faXmark=e.definition,e.prefix=r,e.iconName=a,e.width=i,e.height=n,e.ligatures=o,e.unicode=s,e.svgPathData=l,e.aliases=o})(g);const I=u.nav` display: flex; justify-content: center; flex-wrap: wrap; diff --git a/assets/Question-5a6de838.js b/assets/Question-ad35c143.js similarity index 95% rename from assets/Question-5a6de838.js rename to assets/Question-ad35c143.js index 3867537..13ef6c4 100644 --- a/assets/Question-5a6de838.js +++ b/assets/Question-ad35c143.js @@ -1,4 +1,4 @@ -import{s as H,R as L,a as u,j as n}from"./index-6aae8bc2.js";import{m as e,c as o,l as t,t as Q}from"./theme-500b2181.js";import{A as F}from"./AnswersTable-7e7c3267.js";import{c as R}from"./index-b94bf76d.js";import{C as g}from"./Feedback-c17f6545.js";const B=H.div` +import{s as H,R as L,a as u,j as n}from"./index-12e12f28.js";import{m as e,c as o,l as t,t as Q}from"./theme-e6ec1032.js";import{A as F}from"./AnswersTable-f50cd161.js";import{c as R}from"./index-37c23baf.js";import{C as g}from"./Feedback-4145b2ef.js";const B=H.div` &.step-card-body { ${e.stepCardPadding()}; } diff --git a/assets/Question.stories-572961d1.js b/assets/Question.stories-4409b4c7.js similarity index 88% rename from assets/Question.stories-572961d1.js rename to assets/Question.stories-4409b4c7.js index 6cdbe8a..510923e 100644 --- a/assets/Question.stories-572961d1.js +++ b/assets/Question.stories-4409b4c7.js @@ -1,2 +1,2 @@ -import{j as t}from"./index-6aae8bc2.js";import{a as s}from"./Question-5a6de838.js";import"./theme-500b2181.js";import"./AnswersTable-7e7c3267.js";import"./Answer-3bf89cae.js";import"./index-b94bf76d.js";import"./Feedback-c17f6545.js";const e={question:{id:"1",stem_html:"Is this a question?",collaborator_solutions:[],formats:[],stimulus_html:"",is_answer_order_important:!1,answers:[{id:"1",correctness:void 0,content_html:"True"},{id:"2",correctness:void 0,content_html:"False"}]},task:{is_deleted:!1,type:"homework"},correct_answer_id:"",incorrectAnswerId:"",hideAnswers:!1,hidePreambles:!1,exercise_uid:"",displayFormats:!1,className:"",questionNumber:1,displaySolution:!1,context:"",feedback_html:"",onChange:()=>null,correct_answer_feedback_html:"Feedback"},o={...e,question:{...e.question,stem_html:`An accelerating right-facing rocket sled is shown on tracks. Four thrust force vectors are behind the sled and are pointing to the right. An acceleration vector is above the sled and is pointing to the right. A friction force vector is in front of the sled and is pointing to the left. A Newton vector is below the sled and is pointing upward. A weight vector is also below the sled and is pointing downward. A free body diagram illustrates the force vectors. +import{j as t}from"./index-12e12f28.js";import{a as s}from"./Question-ad35c143.js";import"./theme-e6ec1032.js";import"./AnswersTable-f50cd161.js";import"./Answer-dffbc252.js";import"./index-37c23baf.js";import"./Feedback-4145b2ef.js";const e={question:{id:"1",stem_html:"Is this a question?",collaborator_solutions:[],formats:[],stimulus_html:"",is_answer_order_important:!1,answers:[{id:"1",correctness:void 0,content_html:"True"},{id:"2",correctness:void 0,content_html:"False"}]},task:{is_deleted:!1,type:"homework"},correct_answer_id:"",incorrectAnswerId:"",hideAnswers:!1,hidePreambles:!1,exercise_uid:"",displayFormats:!1,className:"",questionNumber:1,displaySolution:!1,context:"",feedback_html:"",onChange:()=>null,correct_answer_feedback_html:"Feedback"},o={...e,question:{...e.question,stem_html:`An accelerating right-facing rocket sled is shown on tracks. Four thrust force vectors are behind the sled and are pointing to the right. An acceleration vector is above the sled and is pointing to the right. A friction force vector is in front of the sled and is pointing to the left. A Newton vector is below the sled and is pointing upward. A weight vector is also below the sled and is pointing downward. A free body diagram illustrates the force vectors. Calculate the magnitude of force exerted by each rocket, called its thrust T, for the four-rocket propulsion system shown. The sled’s initial acceleration is 49\\,\\text{m/s}^2, the mass of the system is 2100\\,\\text{kg}, and the force of friction opposing the motion is 650\\,\\text{N}.`}},h=()=>t(s,{...e}),m=()=>t(s,{...e,answer_id:"1"}),f=()=>t(s,{...e,answer_id:"1",correct_answer_id:"1"}),p=()=>t(s,{...e,answer_id:"2",correct_answer_id:"1"}),u=()=>t(s,{...o});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{m as Checked,f as Correct,h as Default,p as Incorrect,u as Math}; diff --git a/assets/StepCardFooter-c2f64ec5.js b/assets/StepCardFooter-1a147654.js similarity index 92% rename from assets/StepCardFooter-c2f64ec5.js rename to assets/StepCardFooter-1a147654.js index b7de0c6..9b2dd24 100644 --- a/assets/StepCardFooter-c2f64ec5.js +++ b/assets/StepCardFooter-1a147654.js @@ -1,4 +1,4 @@ -import{m as e,c as t,b as o}from"./theme-500b2181.js";import{s as a}from"./index-6aae8bc2.js";const p=a.div` +import{m as e,c as t,b as o}from"./theme-e6ec1032.js";import{s as a}from"./index-12e12f28.js";const p=a.div` ${e.stepCardPadding()} display: flex; flex-wrap: wrap; diff --git a/assets/axe-faa368b4.js b/assets/axe-4ad1240f.js similarity index 99% rename from assets/axe-faa368b4.js rename to assets/axe-4ad1240f.js index 2163f03..1fc9c10 100644 --- a/assets/axe-faa368b4.js +++ b/assets/axe-4ad1240f.js @@ -1,4 +1,4 @@ -import{g as hF,c as vF}from"./index-6aae8bc2.js";function gF(Xt,Ir){for(var w=0;wct[S]})}}}return Object.freeze(Object.defineProperty(Xt,Symbol.toStringTag,{value:"Module"}))}var nu={exports:{}};/*! axe v4.7.2 +import{g as hF,c as vF}from"./index-12e12f28.js";function gF(Xt,Ir){for(var w=0;wct[S]})}}}return Object.freeze(Object.defineProperty(Xt,Symbol.toStringTag,{value:"Module"}))}var nu={exports:{}};/*! axe v4.7.2 * Copyright (c) 2023 Deque Systems, Inc. * * Your use of this Source Code Form is subject to the terms of the Mozilla Public diff --git a/assets/index-6aae8bc2.js b/assets/index-12e12f28.js similarity index 96% rename from assets/index-6aae8bc2.js rename to assets/index-12e12f28.js index 1e4dbc9..20438a1 100644 --- a/assets/index-6aae8bc2.js +++ b/assets/index-12e12f28.js @@ -121,7 +121,7 @@ See https://www.w3.org/TR/wai-aria/#aria-label for details.`;return!e["aria-labe } font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #424242; -`,AE=({children:e})=>(E.useEffect(()=>{const t=document.createElement("style");t.innerText="html { font-size: 10px }",document.head.append(t)},[]),C(yE,{children:C(ih.Provider,{value:()=>{},children:e})})),vE=E.lazy(()=>ne(()=>import("./Answer.stories-a8dd0a2b.js"),["assets/Answer.stories-a8dd0a2b.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Checked")}))),CE=E.lazy(()=>ne(()=>import("./Answer.stories-a8dd0a2b.js"),["assets/Answer.stories-a8dd0a2b.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Correct")}))),EE=E.lazy(()=>ne(()=>import("./Answer.stories-a8dd0a2b.js"),["assets/Answer.stories-a8dd0a2b.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Default")}))),wE=E.lazy(()=>ne(()=>import("./Answer.stories-a8dd0a2b.js"),["assets/Answer.stories-a8dd0a2b.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Incorrect")}))),_E=E.lazy(()=>ne(()=>import("./AnswersTable.stories-3f707227.js"),["assets/AnswersTable.stories-3f707227.js","assets/AnswersTable-7e7c3267.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Checked")}))),bE=E.lazy(()=>ne(()=>import("./AnswersTable.stories-3f707227.js"),["assets/AnswersTable.stories-3f707227.js","assets/AnswersTable-7e7c3267.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"CorrectAnswerFeedback")}))),SE=E.lazy(()=>ne(()=>import("./AnswersTable.stories-3f707227.js"),["assets/AnswersTable.stories-3f707227.js","assets/AnswersTable-7e7c3267.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Default")}))),DE=E.lazy(()=>ne(()=>import("./AnswersTable.stories-3f707227.js"),["assets/AnswersTable.stories-3f707227.js","assets/AnswersTable-7e7c3267.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Instructions")}))),xE=E.lazy(()=>ne(()=>import("./AnswersTable.stories-3f707227.js"),["assets/AnswersTable.stories-3f707227.js","assets/AnswersTable-7e7c3267.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Ordered")}))),kE=E.lazy(()=>ne(()=>import("./Button.stories-a13bbe3c.js"),["assets/Button.stories-a13bbe3c.js","assets/Button-bda545f4.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Default")}))),OE=E.lazy(()=>ne(()=>import("./Button.stories-a13bbe3c.js"),["assets/Button.stories-a13bbe3c.js","assets/Button-bda545f4.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Disabled")}))),TE=E.lazy(()=>ne(()=>import("./Button.stories-a13bbe3c.js"),["assets/Button.stories-a13bbe3c.js","assets/Button-bda545f4.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Waiting")}))),BE=E.lazy(()=>ne(()=>import("./Card.stories-85df712b.js"),["assets/Card.stories-85df712b.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/ExerciseQuestion.stories-2f0bab4c.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Feedback-c17f6545.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js"]).then(e=>({default:oe(e,"CustomComponents")}))),RE=E.lazy(()=>ne(()=>import("./Card.stories-85df712b.js"),["assets/Card.stories-85df712b.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/ExerciseQuestion.stories-2f0bab4c.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Feedback-c17f6545.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js"]).then(e=>({default:oe(e,"Default")}))),IE=E.lazy(()=>ne(()=>import("./CompletionStatus.stories-948bf2c0.js"),["assets/CompletionStatus.stories-948bf2c0.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Button-bda545f4.js"]).then(e=>({default:oe(e,"Complete")}))),FE=E.lazy(()=>ne(()=>import("./CompletionStatus.stories-948bf2c0.js"),["assets/CompletionStatus.stories-948bf2c0.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Button-bda545f4.js"]).then(e=>({default:oe(e,"Default")}))),NE=E.lazy(()=>ne(()=>import("./CompletionStatus.stories-948bf2c0.js"),["assets/CompletionStatus.stories-948bf2c0.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Button-bda545f4.js"]).then(e=>({default:oe(e,"PartialComplete")}))),LE=E.lazy(()=>ne(()=>import("./Exercise.stories-f1d10fb8.js"),["assets/Exercise.stories-f1d10fb8.js","assets/Exercise-b6c5cea2.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js","assets/ExerciseToolbar-b9b45a2b.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"CompleteWithFeedback")}))),PE=E.lazy(()=>ne(()=>import("./Exercise.stories-f1d10fb8.js"),["assets/Exercise.stories-f1d10fb8.js","assets/Exercise-b6c5cea2.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js","assets/ExerciseToolbar-b9b45a2b.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"CompleteWithoutFeedback")}))),$E=E.lazy(()=>ne(()=>import("./Exercise.stories-f1d10fb8.js"),["assets/Exercise.stories-f1d10fb8.js","assets/Exercise-b6c5cea2.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js","assets/ExerciseToolbar-b9b45a2b.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"Default")}))),ME=E.lazy(()=>ne(()=>import("./Exercise.stories-f1d10fb8.js"),["assets/Exercise.stories-f1d10fb8.js","assets/Exercise-b6c5cea2.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js","assets/ExerciseToolbar-b9b45a2b.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"DefaultWithoutFeedback")}))),jE=E.lazy(()=>ne(()=>import("./Exercise.stories-f1d10fb8.js"),["assets/Exercise.stories-f1d10fb8.js","assets/Exercise-b6c5cea2.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js","assets/ExerciseToolbar-b9b45a2b.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"DeprecatedStepData")}))),zE=E.lazy(()=>ne(()=>import("./Exercise.stories-f1d10fb8.js"),["assets/Exercise.stories-f1d10fb8.js","assets/Exercise-b6c5cea2.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js","assets/ExerciseToolbar-b9b45a2b.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"Icons")}))),UE=E.lazy(()=>ne(()=>import("./Exercise.stories-f1d10fb8.js"),["assets/Exercise.stories-f1d10fb8.js","assets/Exercise-b6c5cea2.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js","assets/ExerciseToolbar-b9b45a2b.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"IncorrectWithFeedbackAndSolution")}))),VE=E.lazy(()=>ne(()=>import("./Exercise.stories-f1d10fb8.js"),["assets/Exercise.stories-f1d10fb8.js","assets/Exercise-b6c5cea2.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js","assets/ExerciseToolbar-b9b45a2b.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"IncorrectWithFeedbackAndSolutionWrappingText")}))),HE=E.lazy(()=>ne(()=>import("./Exercise.stories-f1d10fb8.js"),["assets/Exercise.stories-f1d10fb8.js","assets/Exercise-b6c5cea2.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js","assets/ExerciseToolbar-b9b45a2b.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"MathJax")}))),WE=E.lazy(()=>ne(()=>import("./Exercise.stories-f1d10fb8.js"),["assets/Exercise.stories-f1d10fb8.js","assets/Exercise-b6c5cea2.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js","assets/ExerciseToolbar-b9b45a2b.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"MultiPartHalfComplete")}))),GE=E.lazy(()=>ne(()=>import("./ExerciseQuestion.stories-2f0bab4c.js"),["assets/ExerciseQuestion.stories-2f0bab4c.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js"]).then(e=>({default:oe(e,"Default")}))),qE=E.lazy(()=>ne(()=>import("./ExerciseQuestion.stories-2f0bab4c.js"),["assets/ExerciseQuestion.stories-2f0bab4c.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js"]).then(e=>({default:oe(e,"FreeResponseEntered")}))),YE=E.lazy(()=>ne(()=>import("./ExerciseQuestion.stories-2f0bab4c.js"),["assets/ExerciseQuestion.stories-2f0bab4c.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js"]).then(e=>({default:oe(e,"MultipleAttemptsAllLeft")}))),QE=E.lazy(()=>ne(()=>import("./ExerciseQuestion.stories-2f0bab4c.js"),["assets/ExerciseQuestion.stories-2f0bab4c.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js"]).then(e=>({default:oe(e,"MultipleAttemptsNoneLeft")}))),XE=E.lazy(()=>ne(()=>import("./ExerciseQuestion.stories-2f0bab4c.js"),["assets/ExerciseQuestion.stories-2f0bab4c.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js"]).then(e=>({default:oe(e,"MultipleAttemptsOneLeft")}))),ZE=E.lazy(()=>ne(()=>import("./ExerciseToolbar.stories-671e841d.js"),["assets/ExerciseToolbar.stories-671e841d.js","assets/ExerciseToolbar-b9b45a2b.js","assets/theme-500b2181.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"Default")}))),JE=E.lazy(()=>ne(()=>import("./ExerciseToolbar.stories-671e841d.js"),["assets/ExerciseToolbar.stories-671e841d.js","assets/ExerciseToolbar-b9b45a2b.js","assets/theme-500b2181.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"DefaultMobileOnly")}))),KE=E.lazy(()=>ne(()=>import("./Feedback.stories-f87b0504.js"),["assets/Feedback.stories-f87b0504.js","assets/Feedback-c17f6545.js","assets/index-b94bf76d.js"]).then(e=>({default:oe(e,"Default")}))),e3=E.lazy(()=>ne(()=>import("./FreeResponseInput.stories-114fdd64.js"),["assets/FreeResponseInput.stories-114fdd64.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/Button-bda545f4.js","assets/StepCardFooter-c2f64ec5.js"]).then(e=>({default:oe(e,"Default")}))),t3=E.lazy(()=>ne(()=>import("./FreeResponseInput.stories-114fdd64.js"),["assets/FreeResponseInput.stories-114fdd64.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/Button-bda545f4.js","assets/StepCardFooter-c2f64ec5.js"]).then(e=>({default:oe(e,"OverWordLimit")}))),n3=E.lazy(()=>ne(()=>import("./FreeResponseInput.stories-114fdd64.js"),["assets/FreeResponseInput.stories-114fdd64.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/theme-500b2181.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/Button-bda545f4.js","assets/StepCardFooter-c2f64ec5.js"]).then(e=>({default:oe(e,"SubmittedDate")}))),r3=E.lazy(()=>ne(()=>import("./Loader.stories-42aafb29.js"),["assets/Loader.stories-42aafb29.js","assets/theme-500b2181.js"]).then(e=>({default:oe(e,"Default")}))),o3=E.lazy(()=>ne(()=>import("./Print.stories-4dd733d9.js"),["assets/Print.stories-4dd733d9.js","assets/Exercise-b6c5cea2.js","assets/Card-0a90a724.js","assets/theme-500b2181.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js","assets/ExerciseQuestion-ce1f3673.js","assets/Answer-3bf89cae.js","assets/Button-bda545f4.js","assets/Question-5a6de838.js","assets/AnswersTable-7e7c3267.js","assets/StepCardFooter-c2f64ec5.js","assets/ExerciseToolbar-b9b45a2b.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"Default")}))),i3=E.lazy(()=>ne(()=>import("./ProgressBar.stories-8fa02163.js"),["assets/ProgressBar.stories-8fa02163.js","assets/theme-500b2181.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"Default")}))),a3=E.lazy(()=>ne(()=>import("./ProgressBar.stories-8fa02163.js"),["assets/ProgressBar.stories-8fa02163.js","assets/theme-500b2181.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"InProgress")}))),s3=E.lazy(()=>ne(()=>import("./ProgressBar.stories-8fa02163.js"),["assets/ProgressBar.stories-8fa02163.js","assets/theme-500b2181.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"Review")}))),l3=E.lazy(()=>ne(()=>import("./ProgressBar.stories-8fa02163.js"),["assets/ProgressBar.stories-8fa02163.js","assets/theme-500b2181.js","assets/index.es-394f7b39.js"]).then(e=>({default:oe(e,"StatusStep")}))),u3=E.lazy(()=>ne(()=>import("./Question.stories-572961d1.js"),["assets/Question.stories-572961d1.js","assets/Question-5a6de838.js","assets/theme-500b2181.js","assets/AnswersTable-7e7c3267.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js"]).then(e=>({default:oe(e,"Checked")}))),c3=E.lazy(()=>ne(()=>import("./Question.stories-572961d1.js"),["assets/Question.stories-572961d1.js","assets/Question-5a6de838.js","assets/theme-500b2181.js","assets/AnswersTable-7e7c3267.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js"]).then(e=>({default:oe(e,"Correct")}))),d3=E.lazy(()=>ne(()=>import("./Question.stories-572961d1.js"),["assets/Question.stories-572961d1.js","assets/Question-5a6de838.js","assets/theme-500b2181.js","assets/AnswersTable-7e7c3267.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js"]).then(e=>({default:oe(e,"Default")}))),f3=E.lazy(()=>ne(()=>import("./Question.stories-572961d1.js"),["assets/Question.stories-572961d1.js","assets/Question-5a6de838.js","assets/theme-500b2181.js","assets/AnswersTable-7e7c3267.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js"]).then(e=>({default:oe(e,"Incorrect")}))),p3=E.lazy(()=>ne(()=>import("./Question.stories-572961d1.js"),["assets/Question.stories-572961d1.js","assets/Question-5a6de838.js","assets/theme-500b2181.js","assets/AnswersTable-7e7c3267.js","assets/Answer-3bf89cae.js","assets/index-b94bf76d.js","assets/Feedback-c17f6545.js"]).then(e=>({default:oe(e,"Math")})));let fn={"answer--checked":{component:vE,locStart:23,locEnd:23,entry:"src/components/Answer.stories.tsx"},"answer--correct":{component:CE,locStart:24,locEnd:24,entry:"src/components/Answer.stories.tsx"},"answer--default":{component:EE,locStart:22,locEnd:22,entry:"src/components/Answer.stories.tsx"},"answer--incorrect":{component:wE,locStart:25,locEnd:25,entry:"src/components/Answer.stories.tsx"},"answers-table--checked":{component:_E,locStart:37,locEnd:37,entry:"src/components/AnswersTable.stories.tsx"},"answers-table--correct-answer-feedback":{component:bE,locStart:38,locEnd:38,entry:"src/components/AnswersTable.stories.tsx"},"answers-table--default":{component:SE,locStart:36,locEnd:36,entry:"src/components/AnswersTable.stories.tsx"},"answers-table--instructions":{component:DE,locStart:40,locEnd:40,entry:"src/components/AnswersTable.stories.tsx"},"answers-table--ordered":{component:xE,locStart:39,locEnd:39,entry:"src/components/AnswersTable.stories.tsx"},"button--default":{component:kE,locStart:3,locEnd:3,entry:"src/components/Button.stories.tsx"},"button--disabled":{component:OE,locStart:4,locEnd:4,entry:"src/components/Button.stories.tsx"},"button--waiting":{component:TE,locStart:5,locEnd:5,entry:"src/components/Button.stories.tsx"},"card--custom-components":{component:BE,locStart:26,locEnd:34,entry:"src/components/Card.stories.tsx"},"card--default":{component:RE,locStart:25,locEnd:25,entry:"src/components/Card.stories.tsx"},"completion-status--complete":{component:IE,locStart:11,locEnd:11,entry:"src/components/CompletionStatus.stories.tsx"},"completion-status--default":{component:FE,locStart:9,locEnd:9,entry:"src/components/CompletionStatus.stories.tsx"},"completion-status--partial-complete":{component:NE,locStart:10,locEnd:10,entry:"src/components/CompletionStatus.stories.tsx"},"exercise--complete-with-feedback":{component:LE,locStart:215,locEnd:240,entry:"src/components/Exercise.stories.tsx"},"exercise--complete-without-feedback":{component:PE,locStart:242,locEnd:268,entry:"src/components/Exercise.stories.tsx"},"exercise--default":{component:$E,locStart:168,locEnd:183,entry:"src/components/Exercise.stories.tsx"},"exercise--default-without-feedback":{component:ME,locStart:185,locEnd:211,entry:"src/components/Exercise.stories.tsx"},"exercise--deprecated-step-data":{component:jE,locStart:213,locEnd:213,entry:"src/components/Exercise.stories.tsx"},"exercise--icons":{component:zE,locStart:422,locEnd:450,entry:"src/components/Exercise.stories.tsx"},"exercise--incorrect-with-feedback-and-solution":{component:UE,locStart:270,locEnd:292,entry:"src/components/Exercise.stories.tsx"},"exercise--incorrect-with-feedback-and-solution-wrapping-text":{component:VE,locStart:294,locEnd:318,entry:"src/components/Exercise.stories.tsx"},"exercise--math-jax":{component:HE,locStart:452,locEnd:612,entry:"src/components/Exercise.stories.tsx"},"exercise--multi-part-half-complete":{component:WE,locStart:320,locEnd:420,entry:"src/components/Exercise.stories.tsx"},"exercise-question--default":{component:GE,locStart:58,locEnd:58,entry:"src/components/ExerciseQuestion.stories.tsx"},"exercise-question--free-response-entered":{component:qE,locStart:59,locEnd:62,entry:"src/components/ExerciseQuestion.stories.tsx"},"exercise-question--multiple-attempts-all-left":{component:YE,locStart:63,locEnd:68,entry:"src/components/ExerciseQuestion.stories.tsx"},"exercise-question--multiple-attempts-none-left":{component:QE,locStart:79,locEnd:89,entry:"src/components/ExerciseQuestion.stories.tsx"},"exercise-question--multiple-attempts-one-left":{component:XE,locStart:69,locEnd:78,entry:"src/components/ExerciseQuestion.stories.tsx"},"exercise-toolbar--default":{component:ZE,locStart:10,locEnd:19,entry:"src/components/ExerciseToolbar.stories.tsx"},"exercise-toolbar--default-mobile-only":{component:JE,locStart:21,locEnd:42,entry:"src/components/ExerciseToolbar.stories.tsx"},"feedback--default":{component:KE,locStart:3,locEnd:3,entry:"src/components/Feedback.stories.tsx"},"free-response-input--default":{component:e3,locStart:44,locEnd:44,entry:"src/components/FreeResponseInput.stories.tsx"},"free-response-input--over-word-limit":{component:t3,locStart:45,locEnd:45,entry:"src/components/FreeResponseInput.stories.tsx"},"free-response-input--submitted-date":{component:n3,locStart:46,locEnd:46,entry:"src/components/FreeResponseInput.stories.tsx"},"loader--default":{component:r3,locStart:3,locEnd:3,entry:"src/components/Loader.stories.tsx"},"print--default":{component:o3,locStart:62,locEnd:99,entry:"src/components/Print.stories.tsx"},"progress-bar--default":{component:i3,locStart:12,locEnd:12,entry:"src/components/ProgressBar.stories.tsx"},"progress-bar--in-progress":{component:a3,locStart:13,locEnd:13,entry:"src/components/ProgressBar.stories.tsx"},"progress-bar--review":{component:s3,locStart:14,locEnd:14,entry:"src/components/ProgressBar.stories.tsx"},"progress-bar--status-step":{component:l3,locStart:15,locEnd:15,entry:"src/components/ProgressBar.stories.tsx"},"question--checked":{component:u3,locStart:49,locEnd:49,entry:"src/components/Question.stories.tsx"},"question--correct":{component:c3,locStart:50,locEnd:50,entry:"src/components/Question.stories.tsx"},"question--default":{component:d3,locStart:48,locEnd:48,entry:"src/components/Question.stories.tsx"},"question--incorrect":{component:f3,locStart:51,locEnd:51,entry:"src/components/Question.stories.tsx"},"question--math":{component:p3,locStart:52,locEnd:52,entry:"src/components/Question.stories.tsx"}},vt={defaultStory:"print--default",base:"/assessment-components/",mode:"preview",stories:"src/**/*.stories.{js,jsx,ts,tsx}",addons:{control:{enabled:!0,defaultState:{}},theme:{enabled:!0,defaultState:"light"},mode:{enabled:!0,defaultState:"full"},rtl:{enabled:!0,defaultState:!1},source:{enabled:!0,defaultState:!1},a11y:{enabled:!0},action:{enabled:!0,defaultState:[]},ladle:{enabled:!0},width:{enabled:!0,options:{xsmall:414,small:640,medium:768,large:1024},defaultState:0}},i18n:{buildTooltip:'💡 Tip: Run "ladle preview" to check that the build works!'},storyOrder:"(stories) => stories"};const h3=({path:e})=>E.createElement("div",{style:{paddingTop:"2em"}},E.createElement("code",{className:"ladle-code"},e)),m3={},g3={};let re={97383714:"import%20%7B%20Answer%2C%20AnswerProps%20%7D%20from%20'.%2FAnswer'%3B%0Aconst%20props%3A%20AnswerProps%20%3D%20%7B%0A%20%20type%3A%20'student'%2C%0A%20%20iter%3A%200%2C%0A%20%20answer%3A%20%7B%0A%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20question_id%3A%201%2C%0A%20%20%20%20correctness%3A%20null%2C%0A%20%20%20%20isCorrect%3A%20true%2C%0A%20%20%20%20content_html%3A%20'Anwer'%2C%0A%20%20%20%20selected_count%3A%205%0A%20%20%7D%2C%0A%20%20onChangeAnswer%3A%20()%20%3D%3E%20null%2C%0A%20%20disabled%3A%20false%2C%0A%20%20onKeyPress%3A%20()%20%3D%3E%20null%2C%0A%20%20qid%3A%201%2C%0A%20%20hasCorrectAnswer%3A%20false%2C%0A%20%20incorrectAnswerId%3A%200%2C%0A%20%20answered_count%3A%200%2C%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CAnswer%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20Checked%20%3D%20()%20%3D%3E%20%3CAnswer%20%7B...props%7D%20answerId%3D'1'%20%2F%3E%3B%0Aexport%20const%20Correct%20%3D%20()%20%3D%3E%20%3CAnswer%20%7B...props%7D%20correctAnswerId%3D'1'%20%2F%3E%3B%0Aexport%20const%20Incorrect%20%3D%20()%20%3D%3E%20%3CAnswer%20%7B...props%7D%20incorrectAnswerId%3D'1'%20%2F%3E%3B%0A","04e0dd74":"import%20%7B%20AnswersTable%2C%20AnswersTableProps%20%7D%20from%20'.%2FAnswersTable'%3B%0Aconst%20props%3A%20AnswersTableProps%20%3D%20%7B%0A%20%20question%3A%20%7B%0A%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20formats%3A%20%5B%5D%2C%0A%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20answers%3A%20%5B%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20isCorrect%3A%20false%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'True'%0A%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20isCorrect%3A%20false%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'False'%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%5D%2C%0A%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%7D%2C%0A%20%20answer_id%3A%20''%2C%0A%20%20feedback_html%3A%20''%2C%0A%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20answered_count%3A%200%2C%0A%20%20show_all_feedback%3A%20false%2C%0A%20%20onChangeAnswer%3A%20()%20%3D%3E%20null%2C%0A%20%20hideAnswers%3A%20false%2C%0A%20%20hasCorrectAnswer%3A%20false%2C%0A%20%20onChangeAttempt%3A%20()%20%3D%3E%20null%2C%0A%20%20choicesEnabled%3A%20true%2C%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CAnswersTable%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20Checked%20%3D%20()%20%3D%3E%20%3CAnswersTable%20%7B...props%7D%20answer_id%3D'1'%20%2F%3E%3B%0Aexport%20const%20CorrectAnswerFeedback%20%3D%20()%20%3D%3E%20%3CAnswersTable%20%7B...props%7D%20answer_id%3D'1'%20correct_answer_id%3D'1'%20correct_answer_feedback_html%3D%22Feedback%22%20hasCorrectAnswer%3D%7Btrue%7D%20%2F%3E%3B%0Aexport%20const%20Ordered%20%3D%20()%20%3D%3E%20%3CAnswersTable%20%7B...props%7D%20answerIdOrder%3D%7B%5B'2'%2C%20'1'%5D%7D%20%2F%3E%3B%0Aexport%20const%20Instructions%20%3D%20()%20%3D%3E%20%3CAnswersTable%20%7B...props%7D%20instructions%3D%7B%3Cb%3EInstructions%3C%2Fb%3E%7D%20%2F%3E%3B%0A","7e5ac958":"import%20Button%20from%20%22.%2FButton%22%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CButton%3EClick%20Me%3C%2FButton%3E%3B%0Aexport%20const%20Disabled%20%3D%20()%20%3D%3E%20%3CButton%20disabled%3EClick%20Me%3C%2FButton%3E%3B%0Aexport%20const%20Waiting%20%3D%20()%20%3D%3E%20%3CButton%20isWaiting%3D%7Btrue%7D%20waitingText%3D%22Submitting...%22%3EClick%20Me%3C%2FButton%3E%3B%0A",e93d3e57:"import%20%7B%20TaskStepCard%2C%20TaskStepCardProps%20%7D%20from%20'.%2FCard'%3B%0Aimport%20%7B%20Default%20as%20ExerciseQuestion%20%7D%20from%20'.%2FExerciseQuestion.stories'%3B%0A%0Aconst%20props%3A%20TaskStepCardProps%20%3D%20%7B%0A%20%20step%3A%20%7B%0A%20%20%20%20uid%3A%20'1234%404'%2C%0A%20%20%20%20id%3A%201%2C%0A%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20is_completed%3A%20false%2C%0A%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20answer_id%3A%20'1'%2C%0A%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20is_feedback_available%3A%20true%2C%0A%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20incorrectAnswerId%3A%200%0A%20%20%7D%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20numberOfQuestions%3A%201%2C%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CTaskStepCard%20%7B...props%7D%3E%3CExerciseQuestion%20%2F%3E%3C%2FTaskStepCard%3E%3B%0Aexport%20const%20CustomComponents%20%3D%20()%20%3D%3E%0A%20%20%3CTaskStepCard%0A%20%20%20%20%7B...props%7D%0A%20%20%20%20leftHeaderChildren%3D%7B%3Cbutton%3E%E2%97%80%3C%2Fbutton%3E%7D%0A%20%20%20%20rightHeaderChildren%3D%7B%3C%3ETwo-step%20%E2%84%B9%EF%B8%8F%20%3Cbutton%3E%E2%96%B6%3C%2Fbutton%3E%3C%2F%3E%7D%0A%20%20%20%20headerTitleChildren%3D%22%F0%9F%94%92%22%0A%20%20%3E%0A%20%20%20%20%3CExerciseQuestion%20%2F%3E%0A%20%20%3C%2FTaskStepCard%3E%3B%0A","89d96d1a":"import%20%7B%20CompletionStatus%2C%20CompletionStatusProps%20%7D%20from%20'.%2FCompletionStatus'%3B%0A%0Aconst%20props%3A%20CompletionStatusProps%20%3D%20%7B%0A%20%20numberOfQuestions%3A%2015%2C%0A%20%20numberCompleted%3A%200%2C%0A%20%20handleClick%3A%20()%20%3D%3E%20%7Bconsole.log('click')%7D%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CCompletionStatus%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20PartialComplete%20%3D%20()%20%3D%3E%20%3CCompletionStatus%20%7B...props%7D%20numberCompleted%3D%7B3%7D%20%2F%3E%0Aexport%20const%20Complete%20%3D%20()%20%3D%3E%20%3CCompletionStatus%20%7B...props%7D%20numberCompleted%3D%7B15%7D%20%2F%3E%0A%0A",bc664704:"import%20React%2C%20%7B%20useState%20%7D%20from%20'react'%3B%0Aimport%20%7B%20Exercise%2C%20ExerciseWithStepDataProps%2C%20ExerciseWithQuestionStatesProps%20%7D%20from%20'.%2FExercise'%3B%0Aimport%20%7B%20Answer%20%7D%20from%20'..%2Ftypes'%3B%0Aimport%20styled%20from%20'styled-components'%3B%0A%0Aconst%20exerciseWithStepDataProps%3A%20ExerciseWithStepDataProps%20%3D%20%7B%0A%20%20exercise%3A%20%7B%0A%20%20%20%20uid%3A%20'1%401'%2C%0A%20%20%20%20uuid%3A%20'e4e27897-4abc-40d3-8565-5def31795edc'%2C%0A%20%20%20%20group_uuid%3A%20'20e82bf6-232e-40c8-ba68-2d22c6498f69'%2C%0A%20%20%20%20number%3A%201%2C%0A%20%20%20%20version%3A%201%2C%0A%20%20%20%20published_at%3A%20'2022-09-06T20%3A32%3A21.981Z'%2C%0A%20%20%20%20context%3A%20'Context'%2C%0A%20%20%20%20stimulus_html%3A%20'%3Cb%3EStimulus%20HTML%3C%2Fb%3E'%2C%0A%20%20%20%20tags%3A%20%5B%5D%2C%0A%20%20%20%20authors%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20copyright_holders%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20derived_from%3A%20%5B%5D%2C%0A%20%20%20%20is_vocab%3A%20false%2C%0A%20%20%20%20solutions_are_public%3A%20false%2C%0A%20%20%20%20versions%3A%20%5B1%5D%2C%0A%20%20%20%20questions%3A%20%5B%7B%0A%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%7D%5D%2C%0A%20%20%7D%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20hasMultipleAttempts%3A%20false%2C%0A%20%20onAnswerChange%3A%20()%20%3D%3E%20null%2C%0A%20%20onAnswerSave%3A%20()%20%3D%3E%20null%2C%0A%20%20onNextStep%3A%20()%20%3D%3E%20null%2C%0A%20%20canAnswer%3A%20false%2C%0A%20%20needsSaved%3A%20false%2C%0A%20%20apiIsPending%3A%20false%2C%0A%20%20step%3A%20%7B%0A%20%20%20%20uid%3A%20'1234%405'%2C%0A%20%20%20%20id%3A%201%2C%0A%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20is_completed%3A%20false%2C%0A%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20answer_id%3A%20'1'%2C%0A%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20is_feedback_available%3A%20true%2C%0A%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20incorrectAnswerId%3A%200%0A%20%20%7D%2C%0A%20%20numberOfQuestions%3A%201%2C%0A%20%20canUpdateCurrentStep%3A%20false%0A%7D%0A%0Aconst%20exerciseWithQuestionStatesProps%20%3D%20()%3A%20ExerciseWithQuestionStatesProps%20%3D%3E%20%7B%20return%20%7B%0A%20%20exercise%3A%20%7B%0A%20%20%20%20uid%3A%20'1%401'%2C%0A%20%20%20%20uuid%3A%20'e4e27897-4abc-40d3-8565-5def31795edc'%2C%0A%20%20%20%20group_uuid%3A%20'20e82bf6-232e-40c8-ba68-2d22c6498f69'%2C%0A%20%20%20%20number%3A%201%2C%0A%20%20%20%20version%3A%201%2C%0A%20%20%20%20published_at%3A%20'2022-09-06T20%3A32%3A21.981Z'%2C%0A%20%20%20%20context%3A%20'Context'%2C%0A%20%20%20%20stimulus_html%3A%20'%3Cb%3EStimulus%20HTML%3C%2Fb%3E'%2C%0A%20%20%20%20tags%3A%20%5B%5D%2C%0A%20%20%20%20authors%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20copyright_holders%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20derived_from%3A%20%5B%5D%2C%0A%20%20%20%20is_vocab%3A%20false%2C%0A%20%20%20%20solutions_are_public%3A%20false%2C%0A%20%20%20%20versions%3A%20%5B1%5D%2C%0A%20%20%20%20questions%3A%20%5B%7B%0A%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%7D%5D%2C%0A%20%20%7D%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20numberOfQuestions%3A%201%2C%0A%20%20hasMultipleAttempts%3A%20false%2C%0A%20%20onAnswerChange%3A%20()%20%3D%3E%20null%2C%0A%20%20onAnswerSave%3A%20()%20%3D%3E%20null%2C%0A%20%20onNextStep%3A%20()%20%3D%3E%20null%2C%0A%20%20step%3A%20%7B%0A%20%20%20%20id%3A%201%2C%0A%20%20%20%20uid%3A%20'1234%405'%2C%0A%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%7D%2C%0A%20%20questionStates%3A%20%7B%0A%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20is_completed%3A%20false%2C%0A%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20answer_id%3A%201%2C%0A%20%20%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20attempt_number%3A%200%2C%0A%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20canAnswer%3A%20true%2C%0A%20%20%20%20%20%20needsSaved%3A%20true%2C%0A%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%7D%0A%20%20%7D%2C%0A%20%20hasFeedback%3A%20true%2C%0A%7D%7D%3B%0A%0Atype%20TextResizerValue%20%3D%20-2%20%7C%20-1%20%7C%200%20%7C%201%20%7C%202%20%7C%203%3B%0Aconst%20textResizerScales%20%3D%20%5B0.75%2C%200.9%2C%201%2C%201.25%2C%201.5%2C%202%5D%3B%0Aconst%20textResizerValues%3A%20TextResizerValue%5B%5D%20%3D%20%5B-2%2C%20-1%2C%200%2C%201%2C%202%2C%203%5D%3B%0Aconst%20textResizerValueMap%20%3D%20new%20Map(textResizerValues.map((v%2C%20i)%20%3D%3E%20%5Bv%2C%20textResizerScales%5Bi%5D%5D))%3B%0A%0Aconst%20ExerciseWrapper%20%3D%20styled.div%3C%7B%20textSize%3A%20TextResizerValue%20%7D%3E%60%0A%20%20%20%24%7B(props%3A%20%7B%20textSize%3A%20TextResizerValue%20%7D)%20%3D%3E%20%60%0A%20%20%20%20--content-text-scale%3A%20%24%7BtextResizerValueMap.get(props.textSize)%7D%3B%0A%20%20%60%7D%0A%60%3B%0A%0Aconst%20TextResizerProvider%20%3D%20(%7B%20children%20%7D%3A%20%7B%20children%3A%20React.ReactNode%20%7D)%20%3D%3E%20%7B%0A%20%20const%20%5Bindex%2C%20setIndex%5D%20%3D%20useState(2)%3B%0A%0A%20%20const%20increase%20%3D%20()%20%3D%3E%20setIndex(Math.min(index%20%2B%201%2C%20textResizerValues.length%20-%201))%3B%0A%20%20const%20decrease%20%3D%20()%20%3D%3E%20setIndex(Math.max(index%20-%201%2C%200))%3B%0A%0A%20%20return%20(%0A%20%20%20%20%3CExerciseWrapper%20textSize%3D%7BtextResizerValues%5Bindex%5D%7D%3E%0A%20%20%20%20%20%20%3Cdiv%20style%3D%7B%7B%20marginBottom%3A%20'2rem'%2C%20alignItems%3A%20'center'%2C%20placeContent%3A%20'center'%2C%20display%3A%20'flex'%2C%20gap%3A%20'1rem'%20%7D%7D%3E%0A%20%20%20%20%20%20%20%20%3Ch3%3EText%20Size%3C%2Fh3%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20onClick%3D%7Bdecrease%7D%3E-%20Decrease%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cspan%20style%3D%7B%7B%20display%3A%20'inline-block'%2C%20width%3A%20'3rem'%2C%20textAlign%3A%20'center'%20%7D%7D%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cb%3E%7BtextResizerScales%5Bindex%5D%7D%3C%2Fb%3E%0A%20%20%20%20%20%20%20%20%3C%2Fspan%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20onClick%3D%7Bincrease%7D%3E%2B%20Increase%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%20%20%7Bchildren%7D%0A%20%20%20%20%3C%2FExerciseWrapper%3E%0A%20%20)%3B%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20%5BselectedAnswerId%2C%20setSelectedAnswerId%5D%20%3D%20useState%3Cnumber%3E(0)%3B%0A%20%20const%20%5BapiIsPending%2C%20setApiIsPending%5D%20%3D%20useState(false)%0A%20%20const%20props%20%3D%20exerciseWithQuestionStatesProps()%3B%0A%20%20props.questionStates%5B'1'%5D.answer_id%20%3D%20selectedAnswerId%3B%0A%20%20props.questionStates%5B'1'%5D.apiIsPending%20%3D%20apiIsPending%3B%0A%20%20return%20(%0A%20%20%20%20%3CExercise%0A%20%20%20%20%20%20%7B...props%7D%0A%20%20%20%20%20%20onAnswerChange%3D%7B(a%3A%20Omit%3CAnswer%2C%20'id'%3E%20%26%20%7B%20id%3A%20number%2C%20question_id%3A%20number%20%7D)%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20setSelectedAnswerId(a.id)%0A%20%20%20%20%20%20%7D%7D%0A%20%20%20%20%20%20onAnswerSave%3D%7B()%20%3D%3E%20setApiIsPending(true)%7D%0A%20%20%20%20%2F%3E%0A%20%20)%0A%7D%3B%0A%0Aexport%20const%20DefaultWithoutFeedback%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20%5BselectedAnswerId%2C%20setSelectedAnswerId%5D%20%3D%20useState%3Cnumber%3E(0)%3B%0A%20%20const%20%5BapiIsPending%2C%20setApiIsPending%5D%20%3D%20useState(false)%0A%20%20const%20%5BisCompleted%2C%20setIsCompleted%5D%20%3D%20useState(false)%0A%20%20const%20props%20%3D%20exerciseWithQuestionStatesProps()%3B%0A%20%20props.hasFeedback%20%3D%20false%3B%0A%20%20props.questionStates%5B'1'%5D.answer_id%20%3D%20selectedAnswerId%3B%0A%20%20props.questionStates%5B'1'%5D.apiIsPending%20%3D%20apiIsPending%3B%0A%20%20props.questionStates%5B'1'%5D.is_completed%20%3D%20isCompleted%3B%0A%20%20props.questionStates%5B'1'%5D.canAnswer%20%3D%20!isCompleted%3B%0A%20%20return%20(%0A%20%20%20%20%3CExercise%0A%20%20%20%20%20%20%7B...props%7D%0A%20%20%20%20%20%20onAnswerChange%3D%7B(a%3A%20Omit%3CAnswer%2C%20'id'%3E%20%26%20%7B%20id%3A%20number%2C%20question_id%3A%20number%20%7D)%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20setSelectedAnswerId(a.id)%0A%20%20%20%20%20%20%7D%7D%0A%20%20%20%20%20%20onAnswerSave%3D%7B()%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20setApiIsPending(true)%3B%0A%20%20%20%20%20%20%20%20setTimeout(()%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20%20%20setApiIsPending(false)%0A%20%20%20%20%20%20%20%20%20%20setIsCompleted(true)%0A%20%20%20%20%20%20%20%20%7D%2C%201000)%0A%20%20%20%20%20%20%7D%7D%0A%20%20%20%20%20%20onNextStep%3D%7B(idx)%20%3D%3E%20console.log(%60Next%20step%3A%20%24%7Bidx%7D%60)%7D%0A%20%20%20%20%2F%3E%0A%20%20)%0A%7D%3B%0A%0Aexport%20const%20DeprecatedStepData%20%3D%20()%20%3D%3E%20%3CExercise%20%7B...exerciseWithStepDataProps%7D%20%2F%3E%3B%0A%0Aexport%20const%20CompleteWithFeedback%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20props%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%0A%20%20%20%20...exerciseWithQuestionStatesProps()%2C%0A%0A%20%20%20%20questionStates%3A%20%7B%0A%20%20%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20is_completed%3A%20true%2C%0A%20%20%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20%20%20answer_id%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20free_response%3A%20'Free%20response'%2C%0A%20%20%20%20%20%20%20%20feedback_html%3A%20'Feedback'%2C%0A%20%20%20%20%20%20%20%20correct_answer_id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20correct_answer_feedback_html%3A%20'Feedback%20for%20the%20correct%20answer'%2C%0A%20%20%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20%20%20canAnswer%3A%20false%2C%0A%20%20%20%20%20%20%20%20needsSaved%3A%20false%2C%0A%20%20%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20return%20%3CTextResizerProvider%3E%3CExercise%20%7B...props%7D%20%2F%3E%3C%2FTextResizerProvider%3E%3B%0A%7D%3B%0A%0Aexport%20const%20CompleteWithoutFeedback%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20props%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%0A%20%20%20%20...exerciseWithQuestionStatesProps()%2C%0A%0A%20%20%20%20questionStates%3A%20%7B%0A%20%20%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20is_completed%3A%20true%2C%0A%20%20%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20%20%20answer_id%3A%201%2C%0A%20%20%20%20%20%20%20%20free_response%3A%20'Free%20response'%2C%0A%20%20%20%20%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20%20%20canAnswer%3A%20false%2C%0A%20%20%20%20%20%20%20%20needsSaved%3A%20false%2C%0A%20%20%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%20%20%20%20hasFeedback%3A%20false%2C%0A%20%20%7D%3B%0A%0A%20%20return%20%3CTextResizerProvider%3E%3CExercise%20%7B...props%7D%20%2F%3E%3C%2FTextResizerProvider%3E%3B%0A%7D%3B%0A%0Aexport%20const%20IncorrectWithFeedbackAndSolution%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20props%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%20...exerciseWithQuestionStatesProps()%20%7D%3B%0A%20%20props.questionStates%20%3D%20%7B%0A%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20is_completed%3A%20true%2C%0A%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20answer_id%3A%20undefined%2C%0A%20%20%20%20%20%20free_response%3A%20'Free%20response'%2C%0A%20%20%20%20%20%20feedback_html%3A%20'Feedback%20for%20the%20incorrect%20answer'%2C%0A%20%20%20%20%20%20correct_answer_id%3A%20'1'%2C%0A%20%20%20%20%20%20correct_answer_feedback_html%3A%20'Feedback%20for%20the%20correct%20answer'%2C%0A%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20%20%20incorrectAnswerId%3A%20'2'%2C%0A%20%20%20%20%20%20solution%3A%20%7B%20content_html%3A%20'A%20detailed%20solution'%2C%20solution_type%3A%20'detailed'%20%7D%2C%0A%20%20%20%20%20%20canAnswer%3A%20true%2C%0A%20%20%20%20%20%20needsSaved%3A%20false%2C%0A%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%20%20return%20%3CTextResizerProvider%3E%3CExercise%20%7B...props%7D%20%2F%3E%3C%2FTextResizerProvider%3E%3B%0A%7D%3B%0A%0Aexport%20const%20IncorrectWithFeedbackAndSolutionWrappingText%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20props%3A%20ExerciseWithQuestionStatesProps%20%3D%20exerciseWithQuestionStatesProps()%3B%0A%20%20props.questionStates%20%3D%20%7B%0A%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20is_completed%3A%20true%2C%0A%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20answer_id%3A%202%2C%0A%20%20%20%20%20%20free_response%3A%20'Free%20response'%2C%0A%20%20%20%20%20%20feedback_html%3A%20'Feedback%20for%20the%20incorrect%20answer'%2C%0A%20%20%20%20%20%20correct_answer_id%3A%20'1'%2C%0A%20%20%20%20%20%20correct_answer_feedback_html%3A%20'Feedback%20for%20the%20correct%20answer'%2C%0A%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20%20%20incorrectAnswerId%3A%20'2'%2C%0A%20%20%20%20%20%20solution%3A%20%7B%20content_html%3A%20'A%20detailed%20solution'%2C%20solution_type%3A%20'detailed'%20%7D%2C%0A%20%20%20%20%20%20canAnswer%3A%20true%2C%0A%20%20%20%20%20%20needsSaved%3A%20false%2C%0A%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%20%20props.exercise.questions%5B0%5D.answers%5B0%5D.content_html%20%3D%20'A%20very%20long%20correct%20answer%20to%20observe%20line%20wrapping%20at%20mobile%20sizes'%3B%0A%20%20props.exercise.questions%5B0%5D.answers%5B1%5D.content_html%20%3D%20'A%20very%20long%20incorrect%20answer%20to%20observe%20line%20wrapping%20at%20mobile%20sizes'%3B%0A%20%20return%20%3CTextResizerProvider%3E%3CExercise%20%7B...props%7D%20%2F%3E%3C%2FTextResizerProvider%3E%3B%0A%7D%3B%0A%0Aexport%20const%20MultiPartHalfComplete%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20props%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%0A%20%20%20%20exercise%3A%20%7B%0A%20%20%20%20%20%20uid%3A%20'1%401'%2C%0A%20%20%20%20%20%20uuid%3A%20'e4e27897-4abc-40d3-8565-5def31795edc'%2C%0A%20%20%20%20%20%20group_uuid%3A%20'20e82bf6-232e-40c8-ba68-2d22c6498f69'%2C%0A%20%20%20%20%20%20number%3A%201%2C%0A%20%20%20%20%20%20version%3A%201%2C%0A%20%20%20%20%20%20published_at%3A%20'2022-09-06T20%3A32%3A21.981Z'%2C%0A%20%20%20%20%20%20context%3A%20'Context'%2C%0A%20%20%20%20%20%20stimulus_html%3A%20'%3Cb%3EStimulus%20HTML%3C%2Fb%3E'%2C%0A%20%20%20%20%20%20tags%3A%20%5B%5D%2C%0A%20%20%20%20%20%20authors%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20%20%20copyright_holders%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20%20%20derived_from%3A%20%5B%5D%2C%0A%20%20%20%20%20%20is_vocab%3A%20false%2C%0A%20%20%20%20%20%20solutions_are_public%3A%20false%2C%0A%20%20%20%20%20%20versions%3A%20%5B1%5D%2C%0A%20%20%20%20%20%20questions%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20id%3A%201%2C%0A%20%20%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20id%3A%202%2C%0A%20%20%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%7D%2C%0A%20%20%20%20questionNumber%3A%201%2C%0A%20%20%20%20numberOfQuestions%3A%202%2C%0A%20%20%20%20hasMultipleAttempts%3A%20false%2C%0A%20%20%20%20onAnswerChange%3A%20()%20%3D%3E%20null%2C%0A%20%20%20%20onAnswerSave%3A%20()%20%3D%3E%20null%2C%0A%20%20%20%20onNextStep%3A%20()%20%3D%3E%20null%2C%0A%20%20%20%20step%3A%20%7B%0A%20%20%20%20%20%20id%3A%201%2C%0A%20%20%20%20%20%20uid%3A%20'1234%405'%2C%0A%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%7D%2C%0A%20%20%20%20questionStates%3A%20%7B%0A%20%20%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20is_completed%3A%20true%2C%0A%20%20%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20%20%20answer_id%3A%201%2C%0A%20%20%20%20%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20%20%20attempt_number%3A%200%2C%0A%20%20%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20%20%20canAnswer%3A%20false%2C%0A%20%20%20%20%20%20%20%20needsSaved%3A%20false%2C%0A%20%20%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20'2'%3A%20%7B%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20is_completed%3A%20false%2C%0A%20%20%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20%20%20answer_id%3A%200%2C%0A%20%20%20%20%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20%20%20attempt_number%3A%200%2C%0A%20%20%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20%20%20canAnswer%3A%20true%2C%0A%20%20%20%20%20%20%20%20needsSaved%3A%20true%2C%0A%20%20%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20return%20%3CTextResizerProvider%3E%3CExercise%20%7B...props%7D%20%2F%3E%3C%2FTextResizerProvider%3E%3B%0A%7D%3B%0A%0Aexport%20const%20Icons%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20location%20%3D%20%7B%0A%20%20%20%20toolbar%3A%20%7B%0A%20%20%20%20%20%20desktop%3A%20false%2C%0A%20%20%20%20%20%20mobile%3A%20true%0A%20%20%20%20%7D%2C%0A%20%20%20%20header%3A%20%7B%0A%20%20%20%20%20%20desktop%3A%20true%2C%0A%20%20%20%20%20%20mobile%3A%20false%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20return%20%3CExercise%0A%20%20%20%20%20%20%7B...exerciseWithQuestionStatesProps()%7D%0A%20%20%20%20%20%20exerciseIcons%3D%7B%7B%0A%20%20%20%20%20%20%20%20topic%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%2C%0A%20%20%20%20%20%20%20%20%20%20location%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20errata%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%2C%0A%20%20%20%20%20%20%20%20%20%20location%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20info%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20location%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%7D%7D%0A%20%20%2F%3E%3B%0A%7D%3B%0A%0Aexport%20const%20MathJax%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20%5BselectedAnswerId%2C%20setSelectedAnswerId%5D%20%3D%20useState%3Cnumber%3E(0)%3B%0A%20%20const%20%5BcorrectAnswerId%2C%20setCorrectAnswerId%5D%20%3D%20useState%3Cnumber%20%7C%20undefined%3E(undefined)%3B%0A%0A%20%20const%20props1%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%0A%20%20%20%20...exerciseWithQuestionStatesProps()%2C%0A%20%20%20%20questionStates%3A%20%7B%0A%20%20%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20is_completed%3A%20false%2C%0A%20%20%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20%20%20answer_id%3A%20selectedAnswerId%2C%0A%20%20%20%20%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20%20%20attempt_number%3A%200%2C%0A%20%20%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20%20%20canAnswer%3A%20true%2C%0A%20%20%20%20%20%20%20%20needsSaved%3A%20true%2C%0A%20%20%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%20%20%20%20exercise%3A%20%7B%0A%20%20%20%20%20%20...exerciseWithStepDataProps.exercise%2C%0A%20%20%20%20%20%20context%3A%20''%2C%0A%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20questions%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20stem_html%3A%20%60What's%20the%20sound%20of%20the%20reaction%20%3Cspan%20data-math%3D%222%20%5C%5C%2C%20%5C%5Ctext%7BH%7D_%7B2(g)%7D%20%2B%20%5C%5C%2C%20%5C%5Ctext%7BO%7D_%7B2(g)%7D%20%5C%5Cto%202%20%5C%5C%2C%20%5C%5Ctext%7BH%7D_%7B2%7D%5C%5Ctext%7BO%7D_%7B(l)%7D%22%3E%3C%2Fspan%3E%20under%20the%20moonlight%3F%60%2C%0A%20%20%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Ctext%7BH%7D_2%5C%5Ctext%7BO%7D%20%2B%20%5C%5Csqrt%5B3%5D%7B%5C%5Ctext%7BMelodic%20Echo%7D%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%20%20feedback_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Ctext%7BH%7D_2%5C%5Ctext%7BO%7D%20%2B%20%5C%5Csqrt%5B3%5D%7B%5C%5Ctext%7BMelodic%20Echo%7D%7D%22%3E%3C%2Fspan%3E%20implies%20that%20water%20molecules%20are%20harmonizing%20with%20the%20cubic%20root%20of%20a%20Melodic%20Echo.%0AThis%20resonates%20with%20an%20unheard%20symphony%20of%20the%20universe%2C%20creating%20a%20multisensory%20mathematics%20that's%20both%20refreshing%20and%20melodious.%60%2C%0A%20%20%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%222%20%5C%5C%2C%20%5C%5Ctext%7BNO%7D_2%20%5C%5Cto%20%5C%5C%2C%20%5C%5Ctext%7BN%7D_2%5C%5Ctext%7BO%7D_4%20%2B%20%5C%5Ctext%7BSilent%20Whisper%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%7D%2C%0A%20%20%7D%3B%0A%0A%20%20if%20(correctAnswerId)%20%7B%0A%20%20%20%20props1.questionStates%5B'1'%5D.is_completed%20%3D%20true%3B%0A%20%20%20%20props1.questionStates%5B'1'%5D.correct_answer_feedback_html%20%3D%20props1.exercise.questions%5B0%5D.answers%5B0%5D.feedback_html%20%7C%7C%20''%3B%0A%20%20%20%20props1.questionStates%5B'1'%5D.solution%20%3D%20%7B%0A%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%222%20%5C%5C%2C%20%5C%5Ctext%7BH%7D_%7B2(g)%7D%20%2B%20%5C%5C%2C%20%5C%5Ctext%7BO%7D_%7B2(g)%7D%20%5C%5Cto%202%20%5C%5C%2C%20%5C%5Ctext%7BH%7D_%7B2%7D%5C%5Ctext%7BO%7D_%7B(l)%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20solution_type%3A%20'detailed'%0A%20%20%20%20%7D%3B%0A%20%20%7D%0A%0A%20%20const%20props2%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%0A%20%20%20%20...exerciseWithQuestionStatesProps()%2C%0A%20%20%20%20exercise%3A%20%7B%0A%20%20%20%20%20%20...exerciseWithStepDataProps.exercise%2C%0A%20%20%20%20%20%20context%3A%20%60At%20the%20intersection%20of%20mathematics%20and%20abstract%20art%2C%20there%20is%20a%20realm%20where%20equations%20take%20on%20the%20characteristics%20of%20color%20and%20flavor.%20For%0Ainstance%2C%20in%20this%20dimension%2C%20the%20quadratic%20formula%20%3Cspan%20data-math%3D%22x%20%3D%20%5C%5Cfrac%7B%7B-b%20%5C%5Cpm%20%5C%5Csqrt%7B%7Bb%5E2-4ac%7D%7D%7D%7D%7B%7B2a%7D%7D%22%3E%3C%2Fspan%3E%20might%20taste%20like%20a%20blend%20of%20sweet%20and%0Asour%2C%20with%20the%20variable%20%3Cspan%20data-math%3D%22a%22%3E%3C%2Fspan%3E%20contributing%20sweetness%2C%20%3Cspan%20data-math%3D%22b%22%3E%3C%2Fspan%3E%20sourness%2C%20and%20%3Cspan%20data-math%3D%22c%22%3E%3C%2Fspan%3E%20a%20hint%20of%0Abitterness.%20The%20discriminant%20%3Cspan%20data-math%3D%22b%5E2%20-%204ac%22%3E%3C%2Fspan%3E%20could%20perhaps%20alter%20the%20color%20of%20the%20equation%2C%20ranging%20from%20vibrant%20blue%20to%20fiery%20red.%60%2C%0A%20%20%20%20%20%20stimulus_html%3A%20%60In%20a%20universe%20where%20equations%20like%0A%3Cmath%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1998%2FMath%2FMathML%22%3E%0A%20%20%3Cmi%3Ex%3C%2Fmi%3E%0A%20%20%3Cmo%3E%3D%3C%2Fmo%3E%0A%20%20%3Cmrow%20class%3D%22MJX-TeXAtom-ORD%22%3E%0A%20%20%20%20%3Cmfrac%3E%0A%20%20%20%20%20%20%3Cmrow%3E%0A%20%20%20%20%20%20%20%20%3Cmo%3E%26%23x2212%3B%3C!--%20%E2%88%92%20--%3E%3C%2Fmo%3E%0A%20%20%20%20%20%20%20%20%3Cmi%3Eb%3C%2Fmi%3E%0A%20%20%20%20%20%20%20%20%3Cmo%3E%26%23x00B1%3B%3C!--%20%C2%B1%20--%3E%3C%2Fmo%3E%0A%20%20%20%20%20%20%20%20%3Cmsqrt%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cmsup%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cmi%3Eb%3C%2Fmi%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cmn%3E2%3C%2Fmn%3E%0A%20%20%20%20%20%20%20%20%20%20%3C%2Fmsup%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cmo%3E%26%23x2212%3B%3C!--%20%E2%88%92%20--%3E%3C%2Fmo%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cmn%3E4%3C%2Fmn%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cmi%3Ea%3C%2Fmi%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cmi%3Ec%3C%2Fmi%3E%0A%20%20%20%20%20%20%20%20%3C%2Fmsqrt%3E%0A%20%20%20%20%20%20%3C%2Fmrow%3E%0A%20%20%20%20%20%20%3Cmrow%3E%0A%20%20%20%20%20%20%20%20%3Cmn%3E2%3C%2Fmn%3E%0A%20%20%20%20%20%20%20%20%3Cmi%3Ea%3C%2Fmi%3E%0A%20%20%20%20%20%20%3C%2Fmrow%3E%0A%20%20%20%20%3C%2Fmfrac%3E%0A%20%20%3C%2Fmrow%3E%0A%3C%2Fmath%3E%20have%20flavor%20and%20color%20properties...%60%2C%0A%20%20%20%20%20%20questions%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20stem_html%3A%20%60What's%20the%20flavor%20of%20the%20integral%20%3Cspan%20data-math%3D%22(%20%5C%5Cint%20(3x%5E2%20-%202x%20%2B%201)%20%5C%5C%2C%20dx%20)%3F%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Csqrt%5B3%5D%7B%5C%5Ctext%7BApple%7D%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Cfrac%7B%5C%5Ctext%7BBanana%7D%5E%7B2%7D%7D%7B4%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20%20%20stimulus_html%3A%20%60If%20%3Cspan%20data-math%3D%22f(x)%20%3D%20%5C%5Csin(x)%20%5C%5Ccos(x)%22%3E%3C%2Fspan%3E%2C%20then%20what's%20the%20color%20of%20its%20derivative%3F%60%2C%0A%20%20%20%20%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22e%5E%7B%5C%5Ctext%7BBlue%7D%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Cfrac%7B%5C%5Cpi%7D%7B2%7D%20%2B%20%5C%5Ctext%7BRed%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%7D%2C%0A%20%20%20%20questionStates%3A%20%7B%0A%20%20%20%20%20%20...exerciseWithQuestionStatesProps().questionStates%2C%0A%20%20%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20%20%20...exerciseWithQuestionStatesProps().questionStates%5B'1'%5D%2C%0A%20%20%20%20%20%20%20%20solution%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Csqrt%5B3%5D%7B%5C%5Ctext%7BApple%7D%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%20%20solution_type%3A%20'detailed'%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20'2'%3A%20%7B%0A%20%20%20%20%20%20%20%20...exerciseWithQuestionStatesProps().questionStates%5B'1'%5D%2C%0A%20%20%20%20%20%20%20%20solution%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22e%5E%7B%5C%5Ctext%7BBlue%7D%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%20%20solution_type%3A%20'detailed'%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20return%20(%0A%20%20%20%20%3CTextResizerProvider%3E%0A%20%20%20%20%20%20%3CExercise%20%7B...props1%7D%0A%20%20%20%20%20%20%20%20onAnswerChange%3D%7B(a%3A%20Omit%3CAnswer%2C%20'id'%3E%20%26%20%7B%20id%3A%20number%2C%20question_id%3A%20number%20%7D)%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20%20%20setSelectedAnswerId(a.id)%0A%20%20%20%20%20%20%20%20%7D%7D%0A%20%20%20%20%20%20%20%20onAnswerSave%3D%7B()%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20%20%20setCorrectAnswerId(1)%3B%0A%20%20%20%20%20%20%20%20%7D%7D%0A%20%20%20%20%20%20%2F%3E%0A%20%20%20%20%20%20%3CExercise%20%7B...props2%7D%20%2F%3E%0A%20%20%20%20%3C%2FTextResizerProvider%3E%0A%20%20)%3B%0A%7D%3B%0A",c4748b1a:"import%20%7B%20ExerciseQuestion%20%7D%20from%20'.%2FExerciseQuestion'%3B%0A%0Aconst%20props%20%3D%20%7B%0A%20%20question%3A%20%7B%0A%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20stem_html%3A%20'Is%20this%20a%20question%3F'%2C%0A%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20formats%3A%20%5B%5D%2C%0A%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%7D%5D%2C%0A%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%7D%2C%0A%20%20task%3A%20%7B%0A%20%20%20%20is_deleted%3A%20false%2C%0A%20%20%20%20type%3A%20'homework'%20as%20const%0A%20%20%7D%2C%0A%20%20correct_answer_id%3A%20''%2C%0A%20%20incorrectAnswerId%3A%20''%2C%0A%20%20hideAnswers%3A%20false%2C%0A%20%20hidePreambles%3A%20false%2C%0A%20%20exercise_uid%3A%20''%2C%0A%20%20displayFormats%3A%20false%2C%0A%20%20className%3A%20''%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20displaySolution%3A%20false%2C%0A%20%20context%3A%20''%2C%0A%20%20feedback_html%3A%20''%2C%0A%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20onChange%3A%20()%20%3D%3E%20null%2C%0A%20%20choicesEnabled%3A%20true%2C%0A%20%20hasMultipleAttempts%3A%20false%2C%0A%20%20onAnswerChange%3A%20()%20%3D%3E%20null%2C%0A%20%20onAnswerSave%3A%20()%20%3D%3E%20null%2C%0A%20%20onNextStep%3A%20()%20%3D%3E%20null%2C%0A%20%20is_completed%3A%20false%2C%0A%20%20multiPartGroup%3A%20null%2C%0A%20%20answer_id%3A%20''%2C%0A%20%20available_points%3A%20undefined%2C%0A%20%20attempts_remaining%3A%202%2C%0A%20%20published_comments%3A%20''%2C%0A%20%20detailedSolution%3A%20''%2C%0A%20%20canAnswer%3A%20true%2C%0A%20%20needsSaved%3A%20true%2C%0A%20%20canUpdateCurrentStep%3A%20true%2C%0A%20%20attempt_number%3A%200%2C%0A%20%20apiIsPending%3A%20false%2C%0A%20%20hasFeedback%3A%20false%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CExerciseQuestion%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20FreeResponseEntered%20%3D%20()%20%3D%3E%0A%20%20%3CExerciseQuestion%20%7B...props%7D%0A%20%20%20%20free_response%3D%22In%20this%20free%20response%2C%20I%20will...%22%0A%20%20%2F%3E%3B%0Aexport%20const%20MultipleAttemptsAllLeft%20%3D%20()%20%3D%3E%0A%20%20%3CExerciseQuestion%20%7B...props%7D%0A%20%20%20%20hasMultipleAttempts%3D%7Btrue%7D%0A%20%20%20%20attempts_remaining%3D%7B2%7D%0A%20%20%20%20attempt_number%3D%7B0%7D%0A%20%20%2F%3E%3B%0Aexport%20const%20MultipleAttemptsOneLeft%20%3D%20()%20%3D%3E%0A%20%20%3CExerciseQuestion%20%7B...props%7D%0A%20%20%20%20hasMultipleAttempts%3D%7Btrue%7D%0A%20%20%20%20canAnswer%3D%7Btrue%7D%0A%20%20%20%20needsSaved%3D%7Bfalse%7D%0A%20%20%20%20canUpdateCurrentStep%3D%7Btrue%7D%0A%20%20%20%20attempts_remaining%3D%7B1%7D%0A%20%20%20%20attempt_number%3D%7B1%7D%0A%20%20%20%20incorrectAnswerId%3D'2'%0A%20%20%2F%3E%3B%0Aexport%20const%20MultipleAttemptsNoneLeft%20%3D%20()%20%3D%3E%0A%20%20%3CExerciseQuestion%20%7B...props%7D%0A%20%20%20%20hasMultipleAttempts%3D%7Btrue%7D%0A%20%20%20%20choicesEnabled%3D%7Bfalse%7D%0A%20%20%20%20canAnswer%3D%7Bfalse%7D%0A%20%20%20%20needsSaved%3D%7Bfalse%7D%0A%20%20%20%20canUpdateCurrentStep%3D%7Bfalse%7D%0A%20%20%20%20attempts_remaining%3D%7B0%7D%0A%20%20%20%20attempt_number%3D%7B2%7D%0A%20%20%20%20incorrectAnswerId%3D'2'%0A%20%20%2F%3E%3B%0A","756b49e0":"import%20styled%20from%20%22styled-components%22%3B%0Aimport%20%7B%20ExerciseToolbar%20%7D%20from%20%22.%2FExerciseToolbar%22%3B%0A%0Aconst%20Wrapper%20%3D%20styled.div%60%0A%20%20overflow%3A%20hidden%3B%0A%20%20position%3A%20relative%3B%0A%20%20min-height%3A%2020rem%3B%0A%60%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CWrapper%3E%0A%20%20%3CExerciseToolbar%20icons%3D%7B%7B%0A%20%20%20%20topic%3A%20%7B%0A%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%0A%20%20%20%20%7D%2C%0A%20%20%20%20errata%3A%20%7B%0A%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%0A%20%20%20%20%7D%0A%20%20%7D%7D%20%2F%3E%0A%20%20%3C%2FWrapper%3E%3B%0A%0Aexport%20const%20DefaultMobileOnly%20%3D%20()%20%3D%3E%20%3CWrapper%3E%0A%20%20%3CExerciseToolbar%20icons%3D%7B%7B%0A%20%20%20%20topic%3A%20%7B%0A%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%2C%0A%20%20%20%20%20%20location%3A%20%7B%0A%20%20%20%20%20%20%20%20toolbar%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20desktop%3A%20false%2C%0A%20%20%20%20%20%20%20%20%20%20mobile%3A%20true%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%20%20%20%20errata%3A%20%7B%0A%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%2C%0A%20%20%20%20%20%20location%3A%20%7B%0A%20%20%20%20%20%20%20%20toolbar%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20desktop%3A%20false%2C%0A%20%20%20%20%20%20%20%20%20%20mobile%3A%20true%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%7D%20%2F%3E%0A%20%20%3C%2FWrapper%3E%3B%0A","3db57d3f":"import%20%7B%20Feedback%20%7D%20from%20'.%2FFeedback'%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CFeedback%3EFeedback%3C%2FFeedback%3E%3B%0A","43a61479":"import%20%7B%20FreeResponseInput%2C%20FreeResponseProps%20%7D%20from%20'.%2FFreeResponseInput'%3B%0A%0Aconst%20updateValue%20%3D%20(event%3A%20React.ChangeEvent%3CHTMLTextAreaElement%3E)%20%3D%3E%20%7B%0A%20%20props.defaultValue%20%3D%20event.target.value%0A%7D%3B%0A%0Aconst%20leftInfoComponent%20%3D%20(%0A%20%20%3Cdiv%3E%0A%20%20%20%20%20%20%3Cspan%20className%3D%22last-submitted%22%3ELast%20submitted%20on%20July%2026%20at%204%3A00%20pm%3C%2Fspan%3E%0A%20%20%3C%2Fdiv%3E%0A%20%20)%3B%0A%0Aconst%20props%3A%20FreeResponseProps%20%3D%20%7B%0A%20%20readOnly%3A%20false%2C%0A%20%20wordLimit%3A%205%2C%0A%20%20defaultValue%3A%20''%2C%0A%20%20cancelHandler%3A%20()%20%3D%3E%20null%2C%0A%20%20saveHandler%3A%20()%20%3D%3E%20null%2C%0A%20%20onChange%3A%20updateValue%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20question%3A%20%7B%0A%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20stem_html%3A%20'Is%20this%20a%20question%3F'%2C%0A%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20formats%3A%20%5B%5D%2C%0A%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%7D%5D%2C%0A%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%7D%2C%0A%20%20availablePoints%3A%20undefined%2C%0A%20%20isSubmitDisabled%3A%20false%2C%0A%20%20textHasChanged%3A%20false%2C%0A%20%20submitBtnLabel%3A%20'Next'%2C%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CFreeResponseInput%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20OverWordLimit%20%3D%20()%20%3D%3E%20%3CFreeResponseInput%20%7B...props%7D%20textHasChanged%3D%7Btrue%7D%20%20defaultValue%3D'response%20goes%20over%20the%20word%20limit'%20%2F%3E%3B%0Aexport%20const%20SubmittedDate%20%3D%20()%20%3D%3E%20%3CFreeResponseInput%20%7B...props%7D%20infoRowChildren%3D%7BleftInfoComponent%7D%20%2F%3E%3B%0A%0A","42c55044":"import%20%7B%20Loader%20%7D%20from%20%22.%2FLoader%22%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CLoader%20%2F%3E%3B%0A",d25a5870:"import%20%7B%20ExerciseData%2C%20ExerciseQueryData%2C%20ExerciseQuestionData%2C%20StepBase%20%7D%20from%20'..%2F..%2Fsrc%2Ftypes'%3B%0Aimport%20data%20from%20'..%2F..%2Fexercises.json'%3B%0Aimport%20styled%20from%20'styled-components'%3B%0Aimport%20%7B%20Exercise%20%7D%20from%20'.%2FExercise'%3B%0A%0Aconst%20ExerciseWrapper%20%3D%20styled.div%60%0A%20%20break-inside%3A%20avoid%3B%0A%0A%20%20.step-card-body%20%7B%0A%20%20%20%20padding%3A%2024px%2048px%20!important%3B%0A%20%20%7D%0A%0A%20%20.step-card-footer%20%7B%0A%20%20%20%20display%3A%20none%3B%0A%20%20%7D%0A%0A%20%20.exercise-id%20%7B%0A%20%20%20%20height%3A%20auto%3B%0A%20%20%7D%0A%0A%20%20.exercise-step%20%7B%0A%20%20%20%20min-height%3A%20auto%3B%0A%20%20%7D%0A%0A%20%20.question-feedback%20%7B%0A%20%20%20%20box-shadow%3A%20none%20!important%3B%0A%20%20%7D%0A%0A%20%20.openstax-answer%20%7B%0A%20%20%20%20break-inside%3A%20avoid%3B%0A%0A%20%20%20%20.answer-letter-wrapper%3A%3Aafter%20%7B%0A%20%20%20%20%20%20content%3A%20''%20!important%3B%0A%20%20%20%20%7D%0A%20%20%7D%0A%60%3B%0A%0Aconst%20exercises%20%3D%20(data%20as%20ExerciseQueryData).exercises%20as%20ExerciseData%5B%5D%3B%0A%0Aconst%20firstQuestionNumByExercise%20%3D%20exercises.reduce((acc%2C%20ex)%20%3D%3E%20(%7B%0A%20%20%20%20...acc%2C%0A%20%20%20%20%5Bex.uuid%5D%3A%20acc.questionCounter%20%2B%201%2C%0A%20%20%20%20questionCounter%3A%20acc.questionCounter%20%2B%20ex.questions.length%0A%20%20%7D)%2C%20%7BquestionCounter%3A%200%7D)%3B%0A%0A%2F%2F%20placeholder%20until%20exercise%20data%20contains%20correct%20answer%20IDs%0Aconst%20formatAnswerData%20%3D%20(questions%3A%20ExerciseQuestionData%5B%5D)%20%3D%3E%20questions.map((q)%20%3D%3E%20(%0A%20%20%20%20%7Bid%3A%20q.id%2C%20correct_answer_id%3A%20(q.answers.find((a)%20%3D%3E%20a.correctness%20%3D%3D%3D%20'1.0')%3F.id%20%7C%7C%20'')%7D))%3B%0A%0Aconst%20questionStateFields%20%3D%20%7B%0A%20%20available_points%3A%20'1.0'%2C%0A%20%20is_completed%3A%20true%2C%0A%20%20answer_id%3A%20'1'%2C%0A%20%20free_response%3A%20''%2C%0A%20%20feedback_html%3A%20''%2C%0A%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20attempts_remaining%3A%200%2C%0A%20%20attempt_number%3A%201%2C%0A%20%20incorrectAnswerId%3A%200%0A%7D%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20(%0A%20%20%3C%3E%0A%20%20%20%20%7Bdata.title%20%26%26%20%3Ch2%3EExercises%20for%20%7Bdata.title%7D%3C%2Fh2%3E%7D%0A%20%20%20%20%7Bexercises.map(((exercise)%20%3D%3E%20%7B%0A%0A%20%20%20%20%20%20const%20step%3A%20StepBase%20%3D%20%7B%0A%20%20%20%20%20%20%20%20id%3A%201%2C%0A%20%20%20%20%20%20%20%20uid%3A%20exercise.uid%2C%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%7D%3B%0A%0A%20%20%20%20%20%20const%20questionStates%20%3D%20formatAnswerData(exercise.questions).reduce((acc%2C%20answer)%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20const%20%7Bid%2C%20correct_answer_id%7D%20%3D%20answer%3B%0A%20%20%20%20%20%20%20%20return%20%7B...acc%2C%20%5Bid%5D%3A%20%7B...questionStateFields%2C%20correct_answer_id%7D%7D%3B%0A%20%20%20%20%20%20%7D%2C%20%7B%7D)%3B%0A%0A%20%20%20%20%20%20return%20(%0A%20%20%20%20%20%20%20%20%3CExerciseWrapper%20key%3D%7Bexercise.uid%7D%3E%0A%20%20%20%20%20%20%20%20%20%20%3CExercise%0A%20%20%20%20%20%20%20%20%20%20%20%20key%3D%7Bexercise.uid%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20canAnswer%3D%7Btrue%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20needsSaved%3D%7Btrue%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20hasMultipleAttempts%3D%7Bfalse%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20onAnswerChange%3D%7B()%20%3D%3E%20undefined%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20onAnswerSave%3D%7B()%20%3D%3E%20undefined%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20onNextStep%3D%7B()%20%3D%3E%20undefined%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20apiIsPending%3D%7Bfalse%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20canUpdateCurrentStep%3D%7Bfalse%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20exercise%3D%7Bexercise%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20step%3D%7Bstep%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20questionNumber%3D%7BfirstQuestionNumByExercise%5Bexercise.uuid%5D%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20numberOfQuestions%3D%7Bexercises.length%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20questionStates%3D%7BquestionStates%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20show_all_feedback%3D%7Btrue%7D%20%2F%3E%0A%20%20%20%20%20%20%20%20%3C%2FExerciseWrapper%3E%0A%20%20%20%20%20%20)%0A%20%20%7D))%7D%0A%20%20%3C%2F%3E)%3B%0A","0bac83d5":"import%20%7B%20ProgressBar%2C%20ProgressBarItemVariant%2C%20ProgressBarProps%20%7D%20from%20'.%2FProgressBar'%3B%0A%0Aconst%20variants%20%3D%20new%20Array(8).fill(%7Bvariant%3A%20null%7D)%3B%0Aconst%20variantsInProgress%3A%20ProgressBarItemVariant%5B%5D%20%3D%20%5B'isIncorrect'%2C%20'isCorrect'%2C%20'isIncorrect'%2C%20'isIncorrect'%2C%20null%2C%20null%2C%20null%2C%20null%2C%20'isStatus'%5D%3B%0A%0Aconst%20props%3A%20ProgressBarProps%3C%7Bvariant%3A%20ProgressBarItemVariant%7D%3E%20%3D%20%7B%0A%20%20activeIndex%3A%200%2C%0A%20%20goToStep%3A%20(index%3A%20number%2C%20step)%20%3D%3E%20console.log(index%2C%20step)%2C%0A%20%20steps%3A%20variantsInProgress.map((variant)%20%3D%3E%20(%7Bvariant%7D))%2C%0A%7D%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CProgressBar%20%7B...props%7D%20steps%3D%7B%5B...variants%2C%20%7Bvariant%3A%20'isStatus'%7D%5D%7D%20%2F%3E%3B%0Aexport%20const%20InProgress%20%3D%20()%20%3D%3E%20%3CProgressBar%20%7B...props%7D%20activeIndex%3D%7B4%7D%20%2F%3E%3B%0Aexport%20const%20Review%20%3D%20()%20%3D%3E%20%3CProgressBar%20%7B...props%7D%20activeIndex%3D%7B2%7D%20%2F%3E%3B%0Aexport%20const%20StatusStep%20%3D%20()%20%3D%3E%20%3CProgressBar%20%7B...props%7D%20activeIndex%3D%7B8%7D%20%2F%3E%3B%0A",aa93d1be:"import%20%7B%20Question%2C%20QuestionProps%20%7D%20from%20'.%2FQuestion'%3B%0A%0Aconst%20props%3A%20QuestionProps%20%3D%20%7B%0A%20%20question%3A%20%7B%0A%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20stem_html%3A%20'Is%20this%20a%20question%3F'%2C%0A%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20formats%3A%20%5B%5D%2C%0A%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%7D%5D%2C%0A%20%20%7D%2C%0A%20%20task%3A%20%7B%0A%20%20%20%20is_deleted%3A%20false%2C%0A%20%20%20%20type%3A%20'homework'%0A%20%20%7D%2C%0A%20%20correct_answer_id%3A%20''%2C%0A%20%20incorrectAnswerId%3A%20''%2C%0A%20%20hideAnswers%3A%20false%2C%0A%20%20hidePreambles%3A%20false%2C%0A%20%20exercise_uid%3A%20''%2C%0A%20%20displayFormats%3A%20false%2C%0A%20%20className%3A%20''%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20displaySolution%3A%20false%2C%0A%20%20context%3A%20''%2C%0A%20%20feedback_html%3A%20''%2C%0A%20%20onChange%3A%20()%20%3D%3E%20null%2C%0A%20%20correct_answer_feedback_html%3A%20'Feedback'%2C%0A%7D%3B%0A%0Aconst%20mathProps%20%3D%20%7B%0A%20%20...props%2C%0A%20%20question%3A%20%7B%0A%20%20%20%20...props.question%2C%0A%20%20%20%20stem_html%3A%20%60%3Cimg%20src%3D%22https%3A%2F%2Fopenstax.org%2Fapps%2Farchive%2F20220509.174553%2Fresources%2F4fbd8e0f91f2743410fee47978931bf4715f97ef%22%20alt%3D%22An%20accelerating%20right-facing%20rocket%20sled%20is%20shown%20on%20tracks.%20Four%20thrust%20force%20vectors%20are%20behind%20the%20sled%20and%20are%20pointing%20to%20the%20right.%20An%20acceleration%20vector%20is%20above%20the%20sled%20and%20is%20pointing%20to%20the%20right.%20A%20friction%20force%20vector%20is%20in%20front%20of%20the%20sled%20and%20is%20pointing%20to%20the%20left.%20A%20Newton%20vector%20is%20below%20the%20sled%20and%20is%20pointing%20upward.%20A%20weight%20vector%20is%20also%20below%20the%20sled%20and%20is%20pointing%20downward.%20A%20free%20body%20diagram%20illustrates%20the%20force%20vectors.%22%3E%5CnCalculate%20the%20magnitude%20of%20force%20exerted%20by%20each%20rocket%2C%20called%20its%20thrust%20%3Cspan%20data-math%3D%22T%22%3ET%3C%2Fspan%3E%2C%20for%20the%20four-rocket%20propulsion%20system%20shown.%20The%20sled%E2%80%99s%20initial%20acceleration%20is%20%3Cspan%20data-math%3D%2249%5C%5C%2C%5C%5Ctext%7Bm%2Fs%7D%5E2%22%3E49%5C%5C%2C%5C%5Ctext%7Bm%2Fs%7D%5E2%3C%2Fspan%3E%2C%20the%20mass%20of%20the%20system%20is%20%3Cspan%20data-math%3D%222100%5C%5C%2C%5C%5Ctext%7Bkg%7D%22%3E2100%5C%5C%2C%5C%5Ctext%7Bkg%7D%3C%2Fspan%3E%2C%20and%20the%20force%20of%20friction%20opposing%20the%20motion%20is%20%3Cspan%20data-math%3D%22650%5C%5C%2C%5C%5Ctext%7BN%7D%22%3E650%5C%5C%2C%5C%5Ctext%7BN%7D%3C%2Fspan%3E.%60%0A%20%20%7D%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CQuestion%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20Checked%20%3D%20()%20%3D%3E%20%3CQuestion%20%7B...props%7D%20answer_id%3D%7B'1'%7D%20%2F%3E%3B%0Aexport%20const%20Correct%20%3D%20()%20%3D%3E%20%3CQuestion%20%7B...props%7D%20answer_id%3D%7B'1'%7D%20correct_answer_id%3D%7B'1'%7D%20%2F%3E%3B%0Aexport%20const%20Incorrect%20%3D%20()%20%3D%3E%20%3CQuestion%20%7B...props%7D%20answer_id%3D%7B'2'%7D%20correct_answer_id%3D%7B'1'%7D%20%2F%3E%3B%0Aexport%20const%20Math%20%3D%20()%20%3D%3E%20%3CQuestion%20%7B...mathProps%7D%20%2F%3E%0A"},y3={"answer--checked":re[97383714],"answer--correct":re[97383714],"answer--default":re[97383714],"answer--incorrect":re[97383714],"answers-table--checked":re["04e0dd74"],"answers-table--correct-answer-feedback":re["04e0dd74"],"answers-table--default":re["04e0dd74"],"answers-table--instructions":re["04e0dd74"],"answers-table--ordered":re["04e0dd74"],"button--default":re["7e5ac958"],"button--disabled":re["7e5ac958"],"button--waiting":re["7e5ac958"],"card--custom-components":re.e93d3e57,"card--default":re.e93d3e57,"completion-status--complete":re["89d96d1a"],"completion-status--default":re["89d96d1a"],"completion-status--partial-complete":re["89d96d1a"],"exercise--complete-with-feedback":re.bc664704,"exercise--complete-without-feedback":re.bc664704,"exercise--default":re.bc664704,"exercise--default-without-feedback":re.bc664704,"exercise--deprecated-step-data":re.bc664704,"exercise--icons":re.bc664704,"exercise--incorrect-with-feedback-and-solution":re.bc664704,"exercise--incorrect-with-feedback-and-solution-wrapping-text":re.bc664704,"exercise--math-jax":re.bc664704,"exercise--multi-part-half-complete":re.bc664704,"exercise-question--default":re.c4748b1a,"exercise-question--free-response-entered":re.c4748b1a,"exercise-question--multiple-attempts-all-left":re.c4748b1a,"exercise-question--multiple-attempts-none-left":re.c4748b1a,"exercise-question--multiple-attempts-one-left":re.c4748b1a,"exercise-toolbar--default":re["756b49e0"],"exercise-toolbar--default-mobile-only":re["756b49e0"],"feedback--default":re["3db57d3f"],"free-response-input--default":re["43a61479"],"free-response-input--over-word-limit":re["43a61479"],"free-response-input--submitted-date":re["43a61479"],"loader--default":re["42c55044"],"print--default":re.d25a5870,"progress-bar--default":re["0bac83d5"],"progress-bar--in-progress":re["0bac83d5"],"progress-bar--review":re["0bac83d5"],"progress-bar--status-step":re["0bac83d5"],"question--checked":re.aa93d1be,"question--correct":re.aa93d1be,"question--default":re.aa93d1be,"question--incorrect":re.aa93d1be,"question--math":re.aa93d1be};const ah={stories:"src/**/*.stories.{js,jsx,ts,tsx}",defaultStory:"",storyOrder:e=>e,viteConfig:void 0,appendToHead:"",port:61e3,previewPort:8080,outDir:"build",base:void 0,onDevServerStart:()=>{},i18n:{buildTooltip:'💡 Tip: Run "ladle preview" to check that the build works!'},addons:{control:{enabled:!0,defaultState:{}},theme:{enabled:!0,defaultState:"light"},mode:{enabled:!0,defaultState:"full"},rtl:{enabled:!0,defaultState:!1},source:{enabled:!0,defaultState:!1},a11y:{enabled:!0},action:{enabled:!0,defaultState:[]},ladle:{enabled:!0},width:{enabled:!0,options:{xsmall:414,small:640,medium:768,large:1024},defaultState:0}}};Object.keys(vt).length===0?kt("No custom config found."):(vt.storyOrder&&typeof vt.storyOrder=="string"&&(vt.storyOrder=new Function("return "+vt.storyOrder)()),kt("Custom config found:"),kt(vt));var Z2,J2;(J2=(Z2=vt==null?void 0:vt.addons)==null?void 0:Z2.width)!=null&&J2.options&&(ah.addons.width.options={});const Ae=lg(ah,vt);Ae.defaultStory===""&&(Ae.defaultStory=dd(Object.keys(fn),Ae.storyOrder)[0]);kt("Final config",Ae);const sh=e=>{switch(zt.parse(e).theme){case Le.Light:return Le.Light;case Le.Dark:return Le.Dark;case Le.Auto:return Le.Auto;default:return"light"}},A3=({globalState:e,dispatch:t})=>{const n="Switch to dark theme.",r="Switch to light theme.";return C("li",{children:X("button",{"aria-label":e.theme===Le.Light?n:r,title:e.theme===Le.Light?n:r,onClick:()=>{const o=e.theme===Le.Light?Le.Dark:Le.Light;document.documentElement.setAttribute("data-theme",o),t({type:ye.UpdateTheme,value:o})},type:"button",children:[C(Og,{}),C("span",{className:"ladle-addon-tooltip",children:e.theme===Le.Light?n:r}),X("label",{children:["Switch to"," ",e.theme===Le.Light?Le.Dark:Le.Light," ","theme"]})]})})},lh=cd(ld(location.search,Ae.defaultStory));kt(`Initial document.title: ${lh}`);document.title=`${lh} | Ladle`;const Vl=sh(location.search);kt(`Initial theme state: ${Vl}`);Vl===Le.Auto?window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.setAttribute("data-theme",Le.Dark):document.documentElement.setAttribute("data-theme",Le.Light):document.documentElement.setAttribute("data-theme",Vl);var p0={},Vo={},uh={exports:{}},v3="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",C3=v3,E3=C3;function ch(){}function dh(){}dh.resetWarningCache=ch;var w3=function(){function e(r,o,i,a,s,l){if(l!==E3){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:dh,resetWarningCache:ch};return n.PropTypes=n,n};uh.exports=w3();var h0=uh.exports;const mw=pn(h0);var Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.FrameContextConsumer=Et.FrameContextProvider=Et.useFrame=Et.FrameContext=void 0;var _3=E,fh=b3(_3);function b3(e){return e&&e.__esModule?e:{default:e}}var ph=void 0,hh=void 0;typeof document<"u"&&(ph=document);typeof window<"u"&&(hh=window);var m0=Et.FrameContext=fh.default.createContext({document:ph,window:hh});Et.useFrame=function(){return fh.default.useContext(m0)};var S3=m0.Provider,D3=m0.Consumer;Et.FrameContextProvider=S3;Et.FrameContextConsumer=D3;var g0={};Object.defineProperty(g0,"__esModule",{value:!0});var x3=function(){function e(t,n){for(var r=0;r
'};Vo.default=wn.default.forwardRef(function(e,t){return wn.default.createElement(y0,Wl({},e,{forwardedRef:t}))});(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Vo;Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r(t).default}});var n=Et;Object.defineProperty(e,"FrameContext",{enumerable:!0,get:function(){return n.FrameContext}}),Object.defineProperty(e,"FrameContextConsumer",{enumerable:!0,get:function(){return n.FrameContextConsumer}}),Object.defineProperty(e,"useFrame",{enumerable:!0,get:function(){return n.useFrame}});function r(o){return o&&o.__esModule?o:{default:o}}})(p0);const z3=pn(p0),Ah=I.createContext({});function U3(e){const t=I.useContext(Ah);return I.useMemo(()=>typeof e=="function"?e(t):{...t,...e},[t,e])}const V3={};function H3({components:e,children:t,disableParentContext:n}){let r;return n?r=typeof e=="function"?e({}):e||V3:r=U3(e),I.createElement(Ah.Provider,{value:r},t)}class W3 extends E.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(){}render(){return this.state.hasError?null:this.props.children}}const G3=({activeStory:e})=>X("div",{className:"ladle-error-content",children:[C("h1",{children:"Story not found"}),X("p",{children:["The story id ",C(Er,{children:e})," you are trying to open does not exist. Typo?"]}),C("p",{children:C(gr,{href:"/",children:"Back to home"})}),C("p",{children:C(gr,{href:"https://github.com/tajo/ladle",children:"GitHub"})}),C("p",{children:C(gr,{href:"https://www.ladle.dev",children:"Docs"})})]});/** +`,AE=({children:e})=>(E.useEffect(()=>{const t=document.createElement("style");t.innerText="html { font-size: 10px }",document.head.append(t)},[]),C(yE,{children:C(ih.Provider,{value:()=>{},children:e})})),vE=E.lazy(()=>ne(()=>import("./Answer.stories-7b49857e.js"),["assets/Answer.stories-7b49857e.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Checked")}))),CE=E.lazy(()=>ne(()=>import("./Answer.stories-7b49857e.js"),["assets/Answer.stories-7b49857e.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Correct")}))),EE=E.lazy(()=>ne(()=>import("./Answer.stories-7b49857e.js"),["assets/Answer.stories-7b49857e.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Default")}))),wE=E.lazy(()=>ne(()=>import("./Answer.stories-7b49857e.js"),["assets/Answer.stories-7b49857e.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Incorrect")}))),_E=E.lazy(()=>ne(()=>import("./AnswersTable.stories-80f93e08.js"),["assets/AnswersTable.stories-80f93e08.js","assets/AnswersTable-f50cd161.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Checked")}))),bE=E.lazy(()=>ne(()=>import("./AnswersTable.stories-80f93e08.js"),["assets/AnswersTable.stories-80f93e08.js","assets/AnswersTable-f50cd161.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"CorrectAnswerFeedback")}))),SE=E.lazy(()=>ne(()=>import("./AnswersTable.stories-80f93e08.js"),["assets/AnswersTable.stories-80f93e08.js","assets/AnswersTable-f50cd161.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Default")}))),DE=E.lazy(()=>ne(()=>import("./AnswersTable.stories-80f93e08.js"),["assets/AnswersTable.stories-80f93e08.js","assets/AnswersTable-f50cd161.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Instructions")}))),xE=E.lazy(()=>ne(()=>import("./AnswersTable.stories-80f93e08.js"),["assets/AnswersTable.stories-80f93e08.js","assets/AnswersTable-f50cd161.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Ordered")}))),kE=E.lazy(()=>ne(()=>import("./Button.stories-eaa3047e.js"),["assets/Button.stories-eaa3047e.js","assets/Button-442ac3a9.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Default")}))),OE=E.lazy(()=>ne(()=>import("./Button.stories-eaa3047e.js"),["assets/Button.stories-eaa3047e.js","assets/Button-442ac3a9.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Disabled")}))),TE=E.lazy(()=>ne(()=>import("./Button.stories-eaa3047e.js"),["assets/Button.stories-eaa3047e.js","assets/Button-442ac3a9.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Waiting")}))),BE=E.lazy(()=>ne(()=>import("./Card.stories-3fda9a2a.js"),["assets/Card.stories-3fda9a2a.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/ExerciseQuestion.stories-bd025b9c.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Feedback-4145b2ef.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js"]).then(e=>({default:oe(e,"CustomComponents")}))),RE=E.lazy(()=>ne(()=>import("./Card.stories-3fda9a2a.js"),["assets/Card.stories-3fda9a2a.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/ExerciseQuestion.stories-bd025b9c.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Feedback-4145b2ef.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js"]).then(e=>({default:oe(e,"Default")}))),IE=E.lazy(()=>ne(()=>import("./CompletionStatus.stories-f34f132d.js"),["assets/CompletionStatus.stories-f34f132d.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Button-442ac3a9.js"]).then(e=>({default:oe(e,"Complete")}))),FE=E.lazy(()=>ne(()=>import("./CompletionStatus.stories-f34f132d.js"),["assets/CompletionStatus.stories-f34f132d.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Button-442ac3a9.js"]).then(e=>({default:oe(e,"Default")}))),NE=E.lazy(()=>ne(()=>import("./CompletionStatus.stories-f34f132d.js"),["assets/CompletionStatus.stories-f34f132d.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Button-442ac3a9.js"]).then(e=>({default:oe(e,"PartialComplete")}))),LE=E.lazy(()=>ne(()=>import("./Exercise.stories-2613da97.js"),["assets/Exercise.stories-2613da97.js","assets/Exercise-e02db5d9.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js","assets/ExerciseToolbar-6b883614.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"CompleteWithFeedback")}))),PE=E.lazy(()=>ne(()=>import("./Exercise.stories-2613da97.js"),["assets/Exercise.stories-2613da97.js","assets/Exercise-e02db5d9.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js","assets/ExerciseToolbar-6b883614.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"CompleteWithoutFeedback")}))),$E=E.lazy(()=>ne(()=>import("./Exercise.stories-2613da97.js"),["assets/Exercise.stories-2613da97.js","assets/Exercise-e02db5d9.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js","assets/ExerciseToolbar-6b883614.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"Default")}))),ME=E.lazy(()=>ne(()=>import("./Exercise.stories-2613da97.js"),["assets/Exercise.stories-2613da97.js","assets/Exercise-e02db5d9.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js","assets/ExerciseToolbar-6b883614.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"DefaultWithoutFeedback")}))),jE=E.lazy(()=>ne(()=>import("./Exercise.stories-2613da97.js"),["assets/Exercise.stories-2613da97.js","assets/Exercise-e02db5d9.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js","assets/ExerciseToolbar-6b883614.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"DeprecatedStepData")}))),zE=E.lazy(()=>ne(()=>import("./Exercise.stories-2613da97.js"),["assets/Exercise.stories-2613da97.js","assets/Exercise-e02db5d9.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js","assets/ExerciseToolbar-6b883614.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"Icons")}))),UE=E.lazy(()=>ne(()=>import("./Exercise.stories-2613da97.js"),["assets/Exercise.stories-2613da97.js","assets/Exercise-e02db5d9.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js","assets/ExerciseToolbar-6b883614.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"IncorrectWithFeedbackAndSolution")}))),VE=E.lazy(()=>ne(()=>import("./Exercise.stories-2613da97.js"),["assets/Exercise.stories-2613da97.js","assets/Exercise-e02db5d9.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js","assets/ExerciseToolbar-6b883614.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"IncorrectWithFeedbackAndSolutionWrappingText")}))),HE=E.lazy(()=>ne(()=>import("./Exercise.stories-2613da97.js"),["assets/Exercise.stories-2613da97.js","assets/Exercise-e02db5d9.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js","assets/ExerciseToolbar-6b883614.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"MathJax")}))),WE=E.lazy(()=>ne(()=>import("./Exercise.stories-2613da97.js"),["assets/Exercise.stories-2613da97.js","assets/Exercise-e02db5d9.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js","assets/ExerciseToolbar-6b883614.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"MultiPartHalfComplete")}))),GE=E.lazy(()=>ne(()=>import("./ExerciseQuestion.stories-bd025b9c.js"),["assets/ExerciseQuestion.stories-bd025b9c.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js"]).then(e=>({default:oe(e,"Default")}))),qE=E.lazy(()=>ne(()=>import("./ExerciseQuestion.stories-bd025b9c.js"),["assets/ExerciseQuestion.stories-bd025b9c.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js"]).then(e=>({default:oe(e,"FreeResponseEntered")}))),YE=E.lazy(()=>ne(()=>import("./ExerciseQuestion.stories-bd025b9c.js"),["assets/ExerciseQuestion.stories-bd025b9c.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js"]).then(e=>({default:oe(e,"MultipleAttemptsAllLeft")}))),QE=E.lazy(()=>ne(()=>import("./ExerciseQuestion.stories-bd025b9c.js"),["assets/ExerciseQuestion.stories-bd025b9c.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js"]).then(e=>({default:oe(e,"MultipleAttemptsNoneLeft")}))),XE=E.lazy(()=>ne(()=>import("./ExerciseQuestion.stories-bd025b9c.js"),["assets/ExerciseQuestion.stories-bd025b9c.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js"]).then(e=>({default:oe(e,"MultipleAttemptsOneLeft")}))),ZE=E.lazy(()=>ne(()=>import("./ExerciseToolbar.stories-9f23d6f1.js"),["assets/ExerciseToolbar.stories-9f23d6f1.js","assets/ExerciseToolbar-6b883614.js","assets/theme-e6ec1032.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"Default")}))),JE=E.lazy(()=>ne(()=>import("./ExerciseToolbar.stories-9f23d6f1.js"),["assets/ExerciseToolbar.stories-9f23d6f1.js","assets/ExerciseToolbar-6b883614.js","assets/theme-e6ec1032.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"DefaultMobileOnly")}))),KE=E.lazy(()=>ne(()=>import("./Feedback.stories-0a09e3f7.js"),["assets/Feedback.stories-0a09e3f7.js","assets/Feedback-4145b2ef.js","assets/index-37c23baf.js"]).then(e=>({default:oe(e,"Default")}))),e3=E.lazy(()=>ne(()=>import("./FreeResponseInput.stories-99567613.js"),["assets/FreeResponseInput.stories-99567613.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/Button-442ac3a9.js","assets/StepCardFooter-1a147654.js"]).then(e=>({default:oe(e,"Default")}))),t3=E.lazy(()=>ne(()=>import("./FreeResponseInput.stories-99567613.js"),["assets/FreeResponseInput.stories-99567613.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/Button-442ac3a9.js","assets/StepCardFooter-1a147654.js"]).then(e=>({default:oe(e,"OverWordLimit")}))),n3=E.lazy(()=>ne(()=>import("./FreeResponseInput.stories-99567613.js"),["assets/FreeResponseInput.stories-99567613.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/theme-e6ec1032.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/Button-442ac3a9.js","assets/StepCardFooter-1a147654.js"]).then(e=>({default:oe(e,"SubmittedDate")}))),r3=E.lazy(()=>ne(()=>import("./Loader.stories-39c8f603.js"),["assets/Loader.stories-39c8f603.js","assets/theme-e6ec1032.js"]).then(e=>({default:oe(e,"Default")}))),o3=E.lazy(()=>ne(()=>import("./Print.stories-b676ab5a.js"),["assets/Print.stories-b676ab5a.js","assets/Exercise-e02db5d9.js","assets/Card-d3cd39e0.js","assets/theme-e6ec1032.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js","assets/ExerciseQuestion-b5b263d5.js","assets/Answer-dffbc252.js","assets/Button-442ac3a9.js","assets/Question-ad35c143.js","assets/AnswersTable-f50cd161.js","assets/StepCardFooter-1a147654.js","assets/ExerciseToolbar-6b883614.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"Default")}))),i3=E.lazy(()=>ne(()=>import("./ProgressBar.stories-a823113b.js"),["assets/ProgressBar.stories-a823113b.js","assets/theme-e6ec1032.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"Default")}))),a3=E.lazy(()=>ne(()=>import("./ProgressBar.stories-a823113b.js"),["assets/ProgressBar.stories-a823113b.js","assets/theme-e6ec1032.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"InProgress")}))),s3=E.lazy(()=>ne(()=>import("./ProgressBar.stories-a823113b.js"),["assets/ProgressBar.stories-a823113b.js","assets/theme-e6ec1032.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"Review")}))),l3=E.lazy(()=>ne(()=>import("./ProgressBar.stories-a823113b.js"),["assets/ProgressBar.stories-a823113b.js","assets/theme-e6ec1032.js","assets/index.es-42e1cbb5.js"]).then(e=>({default:oe(e,"StatusStep")}))),u3=E.lazy(()=>ne(()=>import("./Question.stories-4409b4c7.js"),["assets/Question.stories-4409b4c7.js","assets/Question-ad35c143.js","assets/theme-e6ec1032.js","assets/AnswersTable-f50cd161.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js"]).then(e=>({default:oe(e,"Checked")}))),c3=E.lazy(()=>ne(()=>import("./Question.stories-4409b4c7.js"),["assets/Question.stories-4409b4c7.js","assets/Question-ad35c143.js","assets/theme-e6ec1032.js","assets/AnswersTable-f50cd161.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js"]).then(e=>({default:oe(e,"Correct")}))),d3=E.lazy(()=>ne(()=>import("./Question.stories-4409b4c7.js"),["assets/Question.stories-4409b4c7.js","assets/Question-ad35c143.js","assets/theme-e6ec1032.js","assets/AnswersTable-f50cd161.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js"]).then(e=>({default:oe(e,"Default")}))),f3=E.lazy(()=>ne(()=>import("./Question.stories-4409b4c7.js"),["assets/Question.stories-4409b4c7.js","assets/Question-ad35c143.js","assets/theme-e6ec1032.js","assets/AnswersTable-f50cd161.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js"]).then(e=>({default:oe(e,"Incorrect")}))),p3=E.lazy(()=>ne(()=>import("./Question.stories-4409b4c7.js"),["assets/Question.stories-4409b4c7.js","assets/Question-ad35c143.js","assets/theme-e6ec1032.js","assets/AnswersTable-f50cd161.js","assets/Answer-dffbc252.js","assets/index-37c23baf.js","assets/Feedback-4145b2ef.js"]).then(e=>({default:oe(e,"Math")})));let fn={"answer--checked":{component:vE,locStart:23,locEnd:23,entry:"src/components/Answer.stories.tsx"},"answer--correct":{component:CE,locStart:24,locEnd:24,entry:"src/components/Answer.stories.tsx"},"answer--default":{component:EE,locStart:22,locEnd:22,entry:"src/components/Answer.stories.tsx"},"answer--incorrect":{component:wE,locStart:25,locEnd:25,entry:"src/components/Answer.stories.tsx"},"answers-table--checked":{component:_E,locStart:37,locEnd:37,entry:"src/components/AnswersTable.stories.tsx"},"answers-table--correct-answer-feedback":{component:bE,locStart:38,locEnd:38,entry:"src/components/AnswersTable.stories.tsx"},"answers-table--default":{component:SE,locStart:36,locEnd:36,entry:"src/components/AnswersTable.stories.tsx"},"answers-table--instructions":{component:DE,locStart:40,locEnd:40,entry:"src/components/AnswersTable.stories.tsx"},"answers-table--ordered":{component:xE,locStart:39,locEnd:39,entry:"src/components/AnswersTable.stories.tsx"},"button--default":{component:kE,locStart:3,locEnd:3,entry:"src/components/Button.stories.tsx"},"button--disabled":{component:OE,locStart:4,locEnd:4,entry:"src/components/Button.stories.tsx"},"button--waiting":{component:TE,locStart:5,locEnd:5,entry:"src/components/Button.stories.tsx"},"card--custom-components":{component:BE,locStart:26,locEnd:34,entry:"src/components/Card.stories.tsx"},"card--default":{component:RE,locStart:25,locEnd:25,entry:"src/components/Card.stories.tsx"},"completion-status--complete":{component:IE,locStart:11,locEnd:11,entry:"src/components/CompletionStatus.stories.tsx"},"completion-status--default":{component:FE,locStart:9,locEnd:9,entry:"src/components/CompletionStatus.stories.tsx"},"completion-status--partial-complete":{component:NE,locStart:10,locEnd:10,entry:"src/components/CompletionStatus.stories.tsx"},"exercise--complete-with-feedback":{component:LE,locStart:215,locEnd:240,entry:"src/components/Exercise.stories.tsx"},"exercise--complete-without-feedback":{component:PE,locStart:242,locEnd:268,entry:"src/components/Exercise.stories.tsx"},"exercise--default":{component:$E,locStart:168,locEnd:183,entry:"src/components/Exercise.stories.tsx"},"exercise--default-without-feedback":{component:ME,locStart:185,locEnd:211,entry:"src/components/Exercise.stories.tsx"},"exercise--deprecated-step-data":{component:jE,locStart:213,locEnd:213,entry:"src/components/Exercise.stories.tsx"},"exercise--icons":{component:zE,locStart:422,locEnd:450,entry:"src/components/Exercise.stories.tsx"},"exercise--incorrect-with-feedback-and-solution":{component:UE,locStart:270,locEnd:292,entry:"src/components/Exercise.stories.tsx"},"exercise--incorrect-with-feedback-and-solution-wrapping-text":{component:VE,locStart:294,locEnd:318,entry:"src/components/Exercise.stories.tsx"},"exercise--math-jax":{component:HE,locStart:452,locEnd:612,entry:"src/components/Exercise.stories.tsx"},"exercise--multi-part-half-complete":{component:WE,locStart:320,locEnd:420,entry:"src/components/Exercise.stories.tsx"},"exercise-question--default":{component:GE,locStart:58,locEnd:58,entry:"src/components/ExerciseQuestion.stories.tsx"},"exercise-question--free-response-entered":{component:qE,locStart:59,locEnd:62,entry:"src/components/ExerciseQuestion.stories.tsx"},"exercise-question--multiple-attempts-all-left":{component:YE,locStart:63,locEnd:68,entry:"src/components/ExerciseQuestion.stories.tsx"},"exercise-question--multiple-attempts-none-left":{component:QE,locStart:79,locEnd:89,entry:"src/components/ExerciseQuestion.stories.tsx"},"exercise-question--multiple-attempts-one-left":{component:XE,locStart:69,locEnd:78,entry:"src/components/ExerciseQuestion.stories.tsx"},"exercise-toolbar--default":{component:ZE,locStart:10,locEnd:19,entry:"src/components/ExerciseToolbar.stories.tsx"},"exercise-toolbar--default-mobile-only":{component:JE,locStart:21,locEnd:42,entry:"src/components/ExerciseToolbar.stories.tsx"},"feedback--default":{component:KE,locStart:3,locEnd:3,entry:"src/components/Feedback.stories.tsx"},"free-response-input--default":{component:e3,locStart:44,locEnd:44,entry:"src/components/FreeResponseInput.stories.tsx"},"free-response-input--over-word-limit":{component:t3,locStart:45,locEnd:45,entry:"src/components/FreeResponseInput.stories.tsx"},"free-response-input--submitted-date":{component:n3,locStart:46,locEnd:46,entry:"src/components/FreeResponseInput.stories.tsx"},"loader--default":{component:r3,locStart:3,locEnd:3,entry:"src/components/Loader.stories.tsx"},"print--default":{component:o3,locStart:62,locEnd:99,entry:"src/components/Print.stories.tsx"},"progress-bar--default":{component:i3,locStart:12,locEnd:12,entry:"src/components/ProgressBar.stories.tsx"},"progress-bar--in-progress":{component:a3,locStart:13,locEnd:13,entry:"src/components/ProgressBar.stories.tsx"},"progress-bar--review":{component:s3,locStart:14,locEnd:14,entry:"src/components/ProgressBar.stories.tsx"},"progress-bar--status-step":{component:l3,locStart:15,locEnd:15,entry:"src/components/ProgressBar.stories.tsx"},"question--checked":{component:u3,locStart:49,locEnd:49,entry:"src/components/Question.stories.tsx"},"question--correct":{component:c3,locStart:50,locEnd:50,entry:"src/components/Question.stories.tsx"},"question--default":{component:d3,locStart:48,locEnd:48,entry:"src/components/Question.stories.tsx"},"question--incorrect":{component:f3,locStart:51,locEnd:51,entry:"src/components/Question.stories.tsx"},"question--math":{component:p3,locStart:52,locEnd:52,entry:"src/components/Question.stories.tsx"}},vt={defaultStory:"print--default",base:"/assessment-components/",mode:"preview",stories:"src/**/*.stories.{js,jsx,ts,tsx}",addons:{control:{enabled:!0,defaultState:{}},theme:{enabled:!0,defaultState:"light"},mode:{enabled:!0,defaultState:"full"},rtl:{enabled:!0,defaultState:!1},source:{enabled:!0,defaultState:!1},a11y:{enabled:!0},action:{enabled:!0,defaultState:[]},ladle:{enabled:!0},width:{enabled:!0,options:{xsmall:414,small:640,medium:768,large:1024},defaultState:0}},i18n:{buildTooltip:'💡 Tip: Run "ladle preview" to check that the build works!'},storyOrder:"(stories) => stories"};const h3=({path:e})=>E.createElement("div",{style:{paddingTop:"2em"}},E.createElement("code",{className:"ladle-code"},e)),m3={},g3={};let re={97383714:"import%20%7B%20Answer%2C%20AnswerProps%20%7D%20from%20'.%2FAnswer'%3B%0Aconst%20props%3A%20AnswerProps%20%3D%20%7B%0A%20%20type%3A%20'student'%2C%0A%20%20iter%3A%200%2C%0A%20%20answer%3A%20%7B%0A%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20question_id%3A%201%2C%0A%20%20%20%20correctness%3A%20null%2C%0A%20%20%20%20isCorrect%3A%20true%2C%0A%20%20%20%20content_html%3A%20'Anwer'%2C%0A%20%20%20%20selected_count%3A%205%0A%20%20%7D%2C%0A%20%20onChangeAnswer%3A%20()%20%3D%3E%20null%2C%0A%20%20disabled%3A%20false%2C%0A%20%20onKeyPress%3A%20()%20%3D%3E%20null%2C%0A%20%20qid%3A%201%2C%0A%20%20hasCorrectAnswer%3A%20false%2C%0A%20%20incorrectAnswerId%3A%200%2C%0A%20%20answered_count%3A%200%2C%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CAnswer%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20Checked%20%3D%20()%20%3D%3E%20%3CAnswer%20%7B...props%7D%20answerId%3D'1'%20%2F%3E%3B%0Aexport%20const%20Correct%20%3D%20()%20%3D%3E%20%3CAnswer%20%7B...props%7D%20correctAnswerId%3D'1'%20%2F%3E%3B%0Aexport%20const%20Incorrect%20%3D%20()%20%3D%3E%20%3CAnswer%20%7B...props%7D%20incorrectAnswerId%3D'1'%20%2F%3E%3B%0A","04e0dd74":"import%20%7B%20AnswersTable%2C%20AnswersTableProps%20%7D%20from%20'.%2FAnswersTable'%3B%0Aconst%20props%3A%20AnswersTableProps%20%3D%20%7B%0A%20%20question%3A%20%7B%0A%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20formats%3A%20%5B%5D%2C%0A%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20answers%3A%20%5B%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20isCorrect%3A%20false%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'True'%0A%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20isCorrect%3A%20false%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'False'%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%5D%2C%0A%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%7D%2C%0A%20%20answer_id%3A%20''%2C%0A%20%20feedback_html%3A%20''%2C%0A%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20answered_count%3A%200%2C%0A%20%20show_all_feedback%3A%20false%2C%0A%20%20onChangeAnswer%3A%20()%20%3D%3E%20null%2C%0A%20%20hideAnswers%3A%20false%2C%0A%20%20hasCorrectAnswer%3A%20false%2C%0A%20%20onChangeAttempt%3A%20()%20%3D%3E%20null%2C%0A%20%20choicesEnabled%3A%20true%2C%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CAnswersTable%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20Checked%20%3D%20()%20%3D%3E%20%3CAnswersTable%20%7B...props%7D%20answer_id%3D'1'%20%2F%3E%3B%0Aexport%20const%20CorrectAnswerFeedback%20%3D%20()%20%3D%3E%20%3CAnswersTable%20%7B...props%7D%20answer_id%3D'1'%20correct_answer_id%3D'1'%20correct_answer_feedback_html%3D%22Feedback%22%20hasCorrectAnswer%3D%7Btrue%7D%20%2F%3E%3B%0Aexport%20const%20Ordered%20%3D%20()%20%3D%3E%20%3CAnswersTable%20%7B...props%7D%20answerIdOrder%3D%7B%5B'2'%2C%20'1'%5D%7D%20%2F%3E%3B%0Aexport%20const%20Instructions%20%3D%20()%20%3D%3E%20%3CAnswersTable%20%7B...props%7D%20instructions%3D%7B%3Cb%3EInstructions%3C%2Fb%3E%7D%20%2F%3E%3B%0A","7e5ac958":"import%20Button%20from%20%22.%2FButton%22%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CButton%3EClick%20Me%3C%2FButton%3E%3B%0Aexport%20const%20Disabled%20%3D%20()%20%3D%3E%20%3CButton%20disabled%3EClick%20Me%3C%2FButton%3E%3B%0Aexport%20const%20Waiting%20%3D%20()%20%3D%3E%20%3CButton%20isWaiting%3D%7Btrue%7D%20waitingText%3D%22Submitting...%22%3EClick%20Me%3C%2FButton%3E%3B%0A",e93d3e57:"import%20%7B%20TaskStepCard%2C%20TaskStepCardProps%20%7D%20from%20'.%2FCard'%3B%0Aimport%20%7B%20Default%20as%20ExerciseQuestion%20%7D%20from%20'.%2FExerciseQuestion.stories'%3B%0A%0Aconst%20props%3A%20TaskStepCardProps%20%3D%20%7B%0A%20%20step%3A%20%7B%0A%20%20%20%20uid%3A%20'1234%404'%2C%0A%20%20%20%20id%3A%201%2C%0A%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20is_completed%3A%20false%2C%0A%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20answer_id%3A%20'1'%2C%0A%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20is_feedback_available%3A%20true%2C%0A%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20incorrectAnswerId%3A%200%0A%20%20%7D%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20numberOfQuestions%3A%201%2C%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CTaskStepCard%20%7B...props%7D%3E%3CExerciseQuestion%20%2F%3E%3C%2FTaskStepCard%3E%3B%0Aexport%20const%20CustomComponents%20%3D%20()%20%3D%3E%0A%20%20%3CTaskStepCard%0A%20%20%20%20%7B...props%7D%0A%20%20%20%20leftHeaderChildren%3D%7B%3Cbutton%3E%E2%97%80%3C%2Fbutton%3E%7D%0A%20%20%20%20rightHeaderChildren%3D%7B%3C%3ETwo-step%20%E2%84%B9%EF%B8%8F%20%3Cbutton%3E%E2%96%B6%3C%2Fbutton%3E%3C%2F%3E%7D%0A%20%20%20%20headerTitleChildren%3D%22%F0%9F%94%92%22%0A%20%20%3E%0A%20%20%20%20%3CExerciseQuestion%20%2F%3E%0A%20%20%3C%2FTaskStepCard%3E%3B%0A","89d96d1a":"import%20%7B%20CompletionStatus%2C%20CompletionStatusProps%20%7D%20from%20'.%2FCompletionStatus'%3B%0A%0Aconst%20props%3A%20CompletionStatusProps%20%3D%20%7B%0A%20%20numberOfQuestions%3A%2015%2C%0A%20%20numberCompleted%3A%200%2C%0A%20%20handleClick%3A%20()%20%3D%3E%20%7Bconsole.log('click')%7D%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CCompletionStatus%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20PartialComplete%20%3D%20()%20%3D%3E%20%3CCompletionStatus%20%7B...props%7D%20numberCompleted%3D%7B3%7D%20%2F%3E%0Aexport%20const%20Complete%20%3D%20()%20%3D%3E%20%3CCompletionStatus%20%7B...props%7D%20numberCompleted%3D%7B15%7D%20%2F%3E%0A%0A",bc664704:"import%20React%2C%20%7B%20useState%20%7D%20from%20'react'%3B%0Aimport%20%7B%20Exercise%2C%20ExerciseWithStepDataProps%2C%20ExerciseWithQuestionStatesProps%20%7D%20from%20'.%2FExercise'%3B%0Aimport%20%7B%20Answer%20%7D%20from%20'..%2Ftypes'%3B%0Aimport%20styled%20from%20'styled-components'%3B%0A%0Aconst%20exerciseWithStepDataProps%3A%20ExerciseWithStepDataProps%20%3D%20%7B%0A%20%20exercise%3A%20%7B%0A%20%20%20%20uid%3A%20'1%401'%2C%0A%20%20%20%20uuid%3A%20'e4e27897-4abc-40d3-8565-5def31795edc'%2C%0A%20%20%20%20group_uuid%3A%20'20e82bf6-232e-40c8-ba68-2d22c6498f69'%2C%0A%20%20%20%20number%3A%201%2C%0A%20%20%20%20version%3A%201%2C%0A%20%20%20%20published_at%3A%20'2022-09-06T20%3A32%3A21.981Z'%2C%0A%20%20%20%20context%3A%20'Context'%2C%0A%20%20%20%20stimulus_html%3A%20'%3Cb%3EStimulus%20HTML%3C%2Fb%3E'%2C%0A%20%20%20%20tags%3A%20%5B%5D%2C%0A%20%20%20%20authors%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20copyright_holders%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20derived_from%3A%20%5B%5D%2C%0A%20%20%20%20is_vocab%3A%20false%2C%0A%20%20%20%20solutions_are_public%3A%20false%2C%0A%20%20%20%20versions%3A%20%5B1%5D%2C%0A%20%20%20%20questions%3A%20%5B%7B%0A%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%7D%5D%2C%0A%20%20%7D%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20hasMultipleAttempts%3A%20false%2C%0A%20%20onAnswerChange%3A%20()%20%3D%3E%20null%2C%0A%20%20onAnswerSave%3A%20()%20%3D%3E%20null%2C%0A%20%20onNextStep%3A%20()%20%3D%3E%20null%2C%0A%20%20canAnswer%3A%20false%2C%0A%20%20needsSaved%3A%20false%2C%0A%20%20apiIsPending%3A%20false%2C%0A%20%20step%3A%20%7B%0A%20%20%20%20uid%3A%20'1234%405'%2C%0A%20%20%20%20id%3A%201%2C%0A%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20is_completed%3A%20false%2C%0A%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20answer_id%3A%20'1'%2C%0A%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20is_feedback_available%3A%20true%2C%0A%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20incorrectAnswerId%3A%200%0A%20%20%7D%2C%0A%20%20numberOfQuestions%3A%201%2C%0A%20%20canUpdateCurrentStep%3A%20false%0A%7D%0A%0Aconst%20exerciseWithQuestionStatesProps%20%3D%20()%3A%20ExerciseWithQuestionStatesProps%20%3D%3E%20%7B%20return%20%7B%0A%20%20exercise%3A%20%7B%0A%20%20%20%20uid%3A%20'1%401'%2C%0A%20%20%20%20uuid%3A%20'e4e27897-4abc-40d3-8565-5def31795edc'%2C%0A%20%20%20%20group_uuid%3A%20'20e82bf6-232e-40c8-ba68-2d22c6498f69'%2C%0A%20%20%20%20number%3A%201%2C%0A%20%20%20%20version%3A%201%2C%0A%20%20%20%20published_at%3A%20'2022-09-06T20%3A32%3A21.981Z'%2C%0A%20%20%20%20context%3A%20'Context'%2C%0A%20%20%20%20stimulus_html%3A%20'%3Cb%3EStimulus%20HTML%3C%2Fb%3E'%2C%0A%20%20%20%20tags%3A%20%5B%5D%2C%0A%20%20%20%20authors%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20copyright_holders%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20derived_from%3A%20%5B%5D%2C%0A%20%20%20%20is_vocab%3A%20false%2C%0A%20%20%20%20solutions_are_public%3A%20false%2C%0A%20%20%20%20versions%3A%20%5B1%5D%2C%0A%20%20%20%20questions%3A%20%5B%7B%0A%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%7D%5D%2C%0A%20%20%7D%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20numberOfQuestions%3A%201%2C%0A%20%20hasMultipleAttempts%3A%20false%2C%0A%20%20onAnswerChange%3A%20()%20%3D%3E%20null%2C%0A%20%20onAnswerSave%3A%20()%20%3D%3E%20null%2C%0A%20%20onNextStep%3A%20()%20%3D%3E%20null%2C%0A%20%20step%3A%20%7B%0A%20%20%20%20id%3A%201%2C%0A%20%20%20%20uid%3A%20'1234%405'%2C%0A%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%7D%2C%0A%20%20questionStates%3A%20%7B%0A%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20is_completed%3A%20false%2C%0A%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20answer_id%3A%201%2C%0A%20%20%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20attempt_number%3A%200%2C%0A%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20canAnswer%3A%20true%2C%0A%20%20%20%20%20%20needsSaved%3A%20true%2C%0A%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%7D%0A%20%20%7D%2C%0A%20%20hasFeedback%3A%20true%2C%0A%7D%7D%3B%0A%0Atype%20TextResizerValue%20%3D%20-2%20%7C%20-1%20%7C%200%20%7C%201%20%7C%202%20%7C%203%3B%0Aconst%20textResizerScales%20%3D%20%5B0.75%2C%200.9%2C%201%2C%201.25%2C%201.5%2C%202%5D%3B%0Aconst%20textResizerValues%3A%20TextResizerValue%5B%5D%20%3D%20%5B-2%2C%20-1%2C%200%2C%201%2C%202%2C%203%5D%3B%0Aconst%20textResizerValueMap%20%3D%20new%20Map(textResizerValues.map((v%2C%20i)%20%3D%3E%20%5Bv%2C%20textResizerScales%5Bi%5D%5D))%3B%0A%0Aconst%20ExerciseWrapper%20%3D%20styled.div%3C%7B%20textSize%3A%20TextResizerValue%20%7D%3E%60%0A%20%20%20%24%7B(props%3A%20%7B%20textSize%3A%20TextResizerValue%20%7D)%20%3D%3E%20%60%0A%20%20%20%20--content-text-scale%3A%20%24%7BtextResizerValueMap.get(props.textSize)%7D%3B%0A%20%20%60%7D%0A%60%3B%0A%0Aconst%20TextResizerProvider%20%3D%20(%7B%20children%20%7D%3A%20%7B%20children%3A%20React.ReactNode%20%7D)%20%3D%3E%20%7B%0A%20%20const%20%5Bindex%2C%20setIndex%5D%20%3D%20useState(2)%3B%0A%0A%20%20const%20increase%20%3D%20()%20%3D%3E%20setIndex(Math.min(index%20%2B%201%2C%20textResizerValues.length%20-%201))%3B%0A%20%20const%20decrease%20%3D%20()%20%3D%3E%20setIndex(Math.max(index%20-%201%2C%200))%3B%0A%0A%20%20return%20(%0A%20%20%20%20%3CExerciseWrapper%20textSize%3D%7BtextResizerValues%5Bindex%5D%7D%3E%0A%20%20%20%20%20%20%3Cdiv%20style%3D%7B%7B%20marginBottom%3A%20'2rem'%2C%20alignItems%3A%20'center'%2C%20placeContent%3A%20'center'%2C%20display%3A%20'flex'%2C%20gap%3A%20'1rem'%20%7D%7D%3E%0A%20%20%20%20%20%20%20%20%3Ch3%3EText%20Size%3C%2Fh3%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20onClick%3D%7Bdecrease%7D%3E-%20Decrease%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cspan%20style%3D%7B%7B%20display%3A%20'inline-block'%2C%20width%3A%20'3rem'%2C%20textAlign%3A%20'center'%20%7D%7D%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cb%3E%7BtextResizerScales%5Bindex%5D%7D%3C%2Fb%3E%0A%20%20%20%20%20%20%20%20%3C%2Fspan%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20onClick%3D%7Bincrease%7D%3E%2B%20Increase%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%20%20%7Bchildren%7D%0A%20%20%20%20%3C%2FExerciseWrapper%3E%0A%20%20)%3B%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20%5BselectedAnswerId%2C%20setSelectedAnswerId%5D%20%3D%20useState%3Cnumber%3E(0)%3B%0A%20%20const%20%5BapiIsPending%2C%20setApiIsPending%5D%20%3D%20useState(false)%0A%20%20const%20props%20%3D%20exerciseWithQuestionStatesProps()%3B%0A%20%20props.questionStates%5B'1'%5D.answer_id%20%3D%20selectedAnswerId%3B%0A%20%20props.questionStates%5B'1'%5D.apiIsPending%20%3D%20apiIsPending%3B%0A%20%20return%20(%0A%20%20%20%20%3CExercise%0A%20%20%20%20%20%20%7B...props%7D%0A%20%20%20%20%20%20onAnswerChange%3D%7B(a%3A%20Omit%3CAnswer%2C%20'id'%3E%20%26%20%7B%20id%3A%20number%2C%20question_id%3A%20number%20%7D)%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20setSelectedAnswerId(a.id)%0A%20%20%20%20%20%20%7D%7D%0A%20%20%20%20%20%20onAnswerSave%3D%7B()%20%3D%3E%20setApiIsPending(true)%7D%0A%20%20%20%20%2F%3E%0A%20%20)%0A%7D%3B%0A%0Aexport%20const%20DefaultWithoutFeedback%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20%5BselectedAnswerId%2C%20setSelectedAnswerId%5D%20%3D%20useState%3Cnumber%3E(0)%3B%0A%20%20const%20%5BapiIsPending%2C%20setApiIsPending%5D%20%3D%20useState(false)%0A%20%20const%20%5BisCompleted%2C%20setIsCompleted%5D%20%3D%20useState(false)%0A%20%20const%20props%20%3D%20exerciseWithQuestionStatesProps()%3B%0A%20%20props.hasFeedback%20%3D%20false%3B%0A%20%20props.questionStates%5B'1'%5D.answer_id%20%3D%20selectedAnswerId%3B%0A%20%20props.questionStates%5B'1'%5D.apiIsPending%20%3D%20apiIsPending%3B%0A%20%20props.questionStates%5B'1'%5D.is_completed%20%3D%20isCompleted%3B%0A%20%20props.questionStates%5B'1'%5D.canAnswer%20%3D%20!isCompleted%3B%0A%20%20return%20(%0A%20%20%20%20%3CExercise%0A%20%20%20%20%20%20%7B...props%7D%0A%20%20%20%20%20%20onAnswerChange%3D%7B(a%3A%20Omit%3CAnswer%2C%20'id'%3E%20%26%20%7B%20id%3A%20number%2C%20question_id%3A%20number%20%7D)%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20setSelectedAnswerId(a.id)%0A%20%20%20%20%20%20%7D%7D%0A%20%20%20%20%20%20onAnswerSave%3D%7B()%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20setApiIsPending(true)%3B%0A%20%20%20%20%20%20%20%20setTimeout(()%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20%20%20setApiIsPending(false)%0A%20%20%20%20%20%20%20%20%20%20setIsCompleted(true)%0A%20%20%20%20%20%20%20%20%7D%2C%201000)%0A%20%20%20%20%20%20%7D%7D%0A%20%20%20%20%20%20onNextStep%3D%7B(idx)%20%3D%3E%20console.log(%60Next%20step%3A%20%24%7Bidx%7D%60)%7D%0A%20%20%20%20%2F%3E%0A%20%20)%0A%7D%3B%0A%0Aexport%20const%20DeprecatedStepData%20%3D%20()%20%3D%3E%20%3CExercise%20%7B...exerciseWithStepDataProps%7D%20%2F%3E%3B%0A%0Aexport%20const%20CompleteWithFeedback%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20props%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%0A%20%20%20%20...exerciseWithQuestionStatesProps()%2C%0A%0A%20%20%20%20questionStates%3A%20%7B%0A%20%20%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20is_completed%3A%20true%2C%0A%20%20%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20%20%20answer_id%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20free_response%3A%20'Free%20response'%2C%0A%20%20%20%20%20%20%20%20feedback_html%3A%20'Feedback'%2C%0A%20%20%20%20%20%20%20%20correct_answer_id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20correct_answer_feedback_html%3A%20'Feedback%20for%20the%20correct%20answer'%2C%0A%20%20%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20%20%20canAnswer%3A%20false%2C%0A%20%20%20%20%20%20%20%20needsSaved%3A%20false%2C%0A%20%20%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20return%20%3CTextResizerProvider%3E%3CExercise%20%7B...props%7D%20%2F%3E%3C%2FTextResizerProvider%3E%3B%0A%7D%3B%0A%0Aexport%20const%20CompleteWithoutFeedback%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20props%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%0A%20%20%20%20...exerciseWithQuestionStatesProps()%2C%0A%0A%20%20%20%20questionStates%3A%20%7B%0A%20%20%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20is_completed%3A%20true%2C%0A%20%20%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20%20%20answer_id%3A%201%2C%0A%20%20%20%20%20%20%20%20free_response%3A%20'Free%20response'%2C%0A%20%20%20%20%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20%20%20canAnswer%3A%20false%2C%0A%20%20%20%20%20%20%20%20needsSaved%3A%20false%2C%0A%20%20%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%20%20%20%20hasFeedback%3A%20false%2C%0A%20%20%7D%3B%0A%0A%20%20return%20%3CTextResizerProvider%3E%3CExercise%20%7B...props%7D%20%2F%3E%3C%2FTextResizerProvider%3E%3B%0A%7D%3B%0A%0Aexport%20const%20IncorrectWithFeedbackAndSolution%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20props%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%20...exerciseWithQuestionStatesProps()%20%7D%3B%0A%20%20props.questionStates%20%3D%20%7B%0A%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20is_completed%3A%20true%2C%0A%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20answer_id%3A%20undefined%2C%0A%20%20%20%20%20%20free_response%3A%20'Free%20response'%2C%0A%20%20%20%20%20%20feedback_html%3A%20'Feedback%20for%20the%20incorrect%20answer'%2C%0A%20%20%20%20%20%20correct_answer_id%3A%20'1'%2C%0A%20%20%20%20%20%20correct_answer_feedback_html%3A%20'Feedback%20for%20the%20correct%20answer'%2C%0A%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20%20%20incorrectAnswerId%3A%20'2'%2C%0A%20%20%20%20%20%20solution%3A%20%7B%20content_html%3A%20'A%20detailed%20solution'%2C%20solution_type%3A%20'detailed'%20%7D%2C%0A%20%20%20%20%20%20canAnswer%3A%20true%2C%0A%20%20%20%20%20%20needsSaved%3A%20false%2C%0A%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%20%20return%20%3CTextResizerProvider%3E%3CExercise%20%7B...props%7D%20%2F%3E%3C%2FTextResizerProvider%3E%3B%0A%7D%3B%0A%0Aexport%20const%20IncorrectWithFeedbackAndSolutionWrappingText%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20props%3A%20ExerciseWithQuestionStatesProps%20%3D%20exerciseWithQuestionStatesProps()%3B%0A%20%20props.questionStates%20%3D%20%7B%0A%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20is_completed%3A%20true%2C%0A%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20answer_id%3A%202%2C%0A%20%20%20%20%20%20free_response%3A%20'Free%20response'%2C%0A%20%20%20%20%20%20feedback_html%3A%20'Feedback%20for%20the%20incorrect%20answer'%2C%0A%20%20%20%20%20%20correct_answer_id%3A%20'1'%2C%0A%20%20%20%20%20%20correct_answer_feedback_html%3A%20'Feedback%20for%20the%20correct%20answer'%2C%0A%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20attempt_number%3A%201%2C%0A%20%20%20%20%20%20incorrectAnswerId%3A%20'2'%2C%0A%20%20%20%20%20%20solution%3A%20%7B%20content_html%3A%20'A%20detailed%20solution'%2C%20solution_type%3A%20'detailed'%20%7D%2C%0A%20%20%20%20%20%20canAnswer%3A%20true%2C%0A%20%20%20%20%20%20needsSaved%3A%20false%2C%0A%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%20%20props.exercise.questions%5B0%5D.answers%5B0%5D.content_html%20%3D%20'A%20very%20long%20correct%20answer%20to%20observe%20line%20wrapping%20at%20mobile%20sizes'%3B%0A%20%20props.exercise.questions%5B0%5D.answers%5B1%5D.content_html%20%3D%20'A%20very%20long%20incorrect%20answer%20to%20observe%20line%20wrapping%20at%20mobile%20sizes'%3B%0A%20%20return%20%3CTextResizerProvider%3E%3CExercise%20%7B...props%7D%20%2F%3E%3C%2FTextResizerProvider%3E%3B%0A%7D%3B%0A%0Aexport%20const%20MultiPartHalfComplete%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20props%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%0A%20%20%20%20exercise%3A%20%7B%0A%20%20%20%20%20%20uid%3A%20'1%401'%2C%0A%20%20%20%20%20%20uuid%3A%20'e4e27897-4abc-40d3-8565-5def31795edc'%2C%0A%20%20%20%20%20%20group_uuid%3A%20'20e82bf6-232e-40c8-ba68-2d22c6498f69'%2C%0A%20%20%20%20%20%20number%3A%201%2C%0A%20%20%20%20%20%20version%3A%201%2C%0A%20%20%20%20%20%20published_at%3A%20'2022-09-06T20%3A32%3A21.981Z'%2C%0A%20%20%20%20%20%20context%3A%20'Context'%2C%0A%20%20%20%20%20%20stimulus_html%3A%20'%3Cb%3EStimulus%20HTML%3C%2Fb%3E'%2C%0A%20%20%20%20%20%20tags%3A%20%5B%5D%2C%0A%20%20%20%20%20%20authors%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20%20%20copyright_holders%3A%20%5B%7B%20user_id%3A%201%2C%20name%3A%20'OpenStax'%20%7D%5D%2C%0A%20%20%20%20%20%20derived_from%3A%20%5B%5D%2C%0A%20%20%20%20%20%20is_vocab%3A%20false%2C%0A%20%20%20%20%20%20solutions_are_public%3A%20false%2C%0A%20%20%20%20%20%20versions%3A%20%5B1%5D%2C%0A%20%20%20%20%20%20questions%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20id%3A%201%2C%0A%20%20%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20id%3A%202%2C%0A%20%20%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%7D%2C%0A%20%20%20%20questionNumber%3A%201%2C%0A%20%20%20%20numberOfQuestions%3A%202%2C%0A%20%20%20%20hasMultipleAttempts%3A%20false%2C%0A%20%20%20%20onAnswerChange%3A%20()%20%3D%3E%20null%2C%0A%20%20%20%20onAnswerSave%3A%20()%20%3D%3E%20null%2C%0A%20%20%20%20onNextStep%3A%20()%20%3D%3E%20null%2C%0A%20%20%20%20step%3A%20%7B%0A%20%20%20%20%20%20id%3A%201%2C%0A%20%20%20%20%20%20uid%3A%20'1234%405'%2C%0A%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%7D%2C%0A%20%20%20%20questionStates%3A%20%7B%0A%20%20%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20is_completed%3A%20true%2C%0A%20%20%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20%20%20answer_id%3A%201%2C%0A%20%20%20%20%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20%20%20attempt_number%3A%200%2C%0A%20%20%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20%20%20canAnswer%3A%20false%2C%0A%20%20%20%20%20%20%20%20needsSaved%3A%20false%2C%0A%20%20%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20'2'%3A%20%7B%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20is_completed%3A%20false%2C%0A%20%20%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20%20%20answer_id%3A%200%2C%0A%20%20%20%20%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_id%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20%20%20attempt_number%3A%200%2C%0A%20%20%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20%20%20canAnswer%3A%20true%2C%0A%20%20%20%20%20%20%20%20needsSaved%3A%20true%2C%0A%20%20%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20return%20%3CTextResizerProvider%3E%3CExercise%20%7B...props%7D%20%2F%3E%3C%2FTextResizerProvider%3E%3B%0A%7D%3B%0A%0Aexport%20const%20Icons%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20location%20%3D%20%7B%0A%20%20%20%20toolbar%3A%20%7B%0A%20%20%20%20%20%20desktop%3A%20false%2C%0A%20%20%20%20%20%20mobile%3A%20true%0A%20%20%20%20%7D%2C%0A%20%20%20%20header%3A%20%7B%0A%20%20%20%20%20%20desktop%3A%20true%2C%0A%20%20%20%20%20%20mobile%3A%20false%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20return%20%3CExercise%0A%20%20%20%20%20%20%7B...exerciseWithQuestionStatesProps()%7D%0A%20%20%20%20%20%20exerciseIcons%3D%7B%7B%0A%20%20%20%20%20%20%20%20topic%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%2C%0A%20%20%20%20%20%20%20%20%20%20location%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20errata%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%2C%0A%20%20%20%20%20%20%20%20%20%20location%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20info%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20location%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%7D%7D%0A%20%20%2F%3E%3B%0A%7D%3B%0A%0Aexport%20const%20MathJax%20%3D%20()%20%3D%3E%20%7B%0A%20%20const%20%5BselectedAnswerId%2C%20setSelectedAnswerId%5D%20%3D%20useState%3Cnumber%3E(0)%3B%0A%20%20const%20%5BcorrectAnswerId%2C%20setCorrectAnswerId%5D%20%3D%20useState%3Cnumber%20%7C%20undefined%3E(undefined)%3B%0A%0A%20%20const%20props1%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%0A%20%20%20%20...exerciseWithQuestionStatesProps()%2C%0A%20%20%20%20questionStates%3A%20%7B%0A%20%20%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%20%20is_completed%3A%20false%2C%0A%20%20%20%20%20%20%20%20answer_id_order%3A%20%5B'1'%2C%20'2'%5D%2C%0A%20%20%20%20%20%20%20%20answer_id%3A%20selectedAnswerId%2C%0A%20%20%20%20%20%20%20%20free_response%3A%20''%2C%0A%20%20%20%20%20%20%20%20feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20correct_answer_id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20attempts_remaining%3A%200%2C%0A%20%20%20%20%20%20%20%20attempt_number%3A%200%2C%0A%20%20%20%20%20%20%20%20incorrectAnswerId%3A%200%2C%0A%20%20%20%20%20%20%20%20canAnswer%3A%20true%2C%0A%20%20%20%20%20%20%20%20needsSaved%3A%20true%2C%0A%20%20%20%20%20%20%20%20apiIsPending%3A%20false%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%20%20%20%20exercise%3A%20%7B%0A%20%20%20%20%20%20...exerciseWithStepDataProps.exercise%2C%0A%20%20%20%20%20%20context%3A%20''%2C%0A%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20questions%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20stem_html%3A%20%60What's%20the%20sound%20of%20the%20reaction%20%3Cspan%20data-math%3D%222%20%5C%5C%2C%20%5C%5Ctext%7BH%7D_%7B2(g)%7D%20%2B%20%5C%5C%2C%20%5C%5Ctext%7BO%7D_%7B2(g)%7D%20%5C%5Cto%202%20%5C%5C%2C%20%5C%5Ctext%7BH%7D_%7B2%7D%5C%5Ctext%7BO%7D_%7B(l)%7D%22%3E%3C%2Fspan%3E%20under%20the%20moonlight%3F%60%2C%0A%20%20%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Ctext%7BH%7D_2%5C%5Ctext%7BO%7D%20%2B%20%5C%5Csqrt%5B3%5D%7B%5C%5Ctext%7BMelodic%20Echo%7D%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%20%20feedback_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Ctext%7BH%7D_2%5C%5Ctext%7BO%7D%20%2B%20%5C%5Csqrt%5B3%5D%7B%5C%5Ctext%7BMelodic%20Echo%7D%7D%22%3E%3C%2Fspan%3E%20implies%20that%20water%20molecules%20are%20harmonizing%20with%20the%20cubic%20root%20of%20a%20Melodic%20Echo.%0AThis%20resonates%20with%20an%20unheard%20symphony%20of%20the%20universe%2C%20creating%20a%20multisensory%20mathematics%20that's%20both%20refreshing%20and%20melodious.%60%2C%0A%20%20%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%222%20%5C%5C%2C%20%5C%5Ctext%7BNO%7D_2%20%5C%5Cto%20%5C%5C%2C%20%5C%5Ctext%7BN%7D_2%5C%5Ctext%7BO%7D_4%20%2B%20%5C%5Ctext%7BSilent%20Whisper%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%7D%2C%0A%20%20%7D%3B%0A%0A%20%20if%20(correctAnswerId)%20%7B%0A%20%20%20%20props1.questionStates%5B'1'%5D.is_completed%20%3D%20true%3B%0A%20%20%20%20props1.questionStates%5B'1'%5D.correct_answer_feedback_html%20%3D%20props1.exercise.questions%5B0%5D.answers%5B0%5D.feedback_html%20%7C%7C%20''%3B%0A%20%20%20%20props1.questionStates%5B'1'%5D.solution%20%3D%20%7B%0A%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%222%20%5C%5C%2C%20%5C%5Ctext%7BH%7D_%7B2(g)%7D%20%2B%20%5C%5C%2C%20%5C%5Ctext%7BO%7D_%7B2(g)%7D%20%5C%5Cto%202%20%5C%5C%2C%20%5C%5Ctext%7BH%7D_%7B2%7D%5C%5Ctext%7BO%7D_%7B(l)%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20solution_type%3A%20'detailed'%0A%20%20%20%20%7D%3B%0A%20%20%7D%0A%0A%20%20const%20props2%3A%20ExerciseWithQuestionStatesProps%20%3D%20%7B%0A%20%20%20%20...exerciseWithQuestionStatesProps()%2C%0A%20%20%20%20exercise%3A%20%7B%0A%20%20%20%20%20%20...exerciseWithStepDataProps.exercise%2C%0A%20%20%20%20%20%20context%3A%20%60At%20the%20intersection%20of%20mathematics%20and%20abstract%20art%2C%20there%20is%20a%20realm%20where%20equations%20take%20on%20the%20characteristics%20of%20color%20and%20flavor.%20For%0Ainstance%2C%20in%20this%20dimension%2C%20the%20quadratic%20formula%20%3Cspan%20data-math%3D%22x%20%3D%20%5C%5Cfrac%7B%7B-b%20%5C%5Cpm%20%5C%5Csqrt%7B%7Bb%5E2-4ac%7D%7D%7D%7D%7B%7B2a%7D%7D%22%3E%3C%2Fspan%3E%20might%20taste%20like%20a%20blend%20of%20sweet%20and%0Asour%2C%20with%20the%20variable%20%3Cspan%20data-math%3D%22a%22%3E%3C%2Fspan%3E%20contributing%20sweetness%2C%20%3Cspan%20data-math%3D%22b%22%3E%3C%2Fspan%3E%20sourness%2C%20and%20%3Cspan%20data-math%3D%22c%22%3E%3C%2Fspan%3E%20a%20hint%20of%0Abitterness.%20The%20discriminant%20%3Cspan%20data-math%3D%22b%5E2%20-%204ac%22%3E%3C%2Fspan%3E%20could%20perhaps%20alter%20the%20color%20of%20the%20equation%2C%20ranging%20from%20vibrant%20blue%20to%20fiery%20red.%60%2C%0A%20%20%20%20%20%20stimulus_html%3A%20%60In%20a%20universe%20where%20equations%20like%0A%3Cmath%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1998%2FMath%2FMathML%22%3E%0A%20%20%3Cmi%3Ex%3C%2Fmi%3E%0A%20%20%3Cmo%3E%3D%3C%2Fmo%3E%0A%20%20%3Cmrow%20class%3D%22MJX-TeXAtom-ORD%22%3E%0A%20%20%20%20%3Cmfrac%3E%0A%20%20%20%20%20%20%3Cmrow%3E%0A%20%20%20%20%20%20%20%20%3Cmo%3E%26%23x2212%3B%3C!--%20%E2%88%92%20--%3E%3C%2Fmo%3E%0A%20%20%20%20%20%20%20%20%3Cmi%3Eb%3C%2Fmi%3E%0A%20%20%20%20%20%20%20%20%3Cmo%3E%26%23x00B1%3B%3C!--%20%C2%B1%20--%3E%3C%2Fmo%3E%0A%20%20%20%20%20%20%20%20%3Cmsqrt%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cmsup%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cmi%3Eb%3C%2Fmi%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cmn%3E2%3C%2Fmn%3E%0A%20%20%20%20%20%20%20%20%20%20%3C%2Fmsup%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cmo%3E%26%23x2212%3B%3C!--%20%E2%88%92%20--%3E%3C%2Fmo%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cmn%3E4%3C%2Fmn%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cmi%3Ea%3C%2Fmi%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cmi%3Ec%3C%2Fmi%3E%0A%20%20%20%20%20%20%20%20%3C%2Fmsqrt%3E%0A%20%20%20%20%20%20%3C%2Fmrow%3E%0A%20%20%20%20%20%20%3Cmrow%3E%0A%20%20%20%20%20%20%20%20%3Cmn%3E2%3C%2Fmn%3E%0A%20%20%20%20%20%20%20%20%3Cmi%3Ea%3C%2Fmi%3E%0A%20%20%20%20%20%20%3C%2Fmrow%3E%0A%20%20%20%20%3C%2Fmfrac%3E%0A%20%20%3C%2Fmrow%3E%0A%3C%2Fmath%3E%20have%20flavor%20and%20color%20properties...%60%2C%0A%20%20%20%20%20%20questions%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20stem_html%3A%20%60What's%20the%20flavor%20of%20the%20integral%20%3Cspan%20data-math%3D%22(%20%5C%5Cint%20(3x%5E2%20-%202x%20%2B%201)%20%5C%5C%2C%20dx%20)%3F%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Csqrt%5B3%5D%7B%5C%5Ctext%7BApple%7D%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Cfrac%7B%5C%5Ctext%7BBanana%7D%5E%7B2%7D%7D%7B4%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20%20%20%20%20formats%3A%20%5B'true-false'%5D%2C%0A%20%20%20%20%20%20%20%20stimulus_html%3A%20%60If%20%3Cspan%20data-math%3D%22f(x)%20%3D%20%5C%5Csin(x)%20%5C%5Ccos(x)%22%3E%3C%2Fspan%3E%2C%20then%20what's%20the%20color%20of%20its%20derivative%3F%60%2C%0A%20%20%20%20%20%20%20%20stem_html%3A%20''%2C%0A%20%20%20%20%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22e%5E%7B%5C%5Ctext%7BBlue%7D%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Cfrac%7B%5C%5Cpi%7D%7B2%7D%20%2B%20%5C%5Ctext%7BRed%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%20%20%7D%5D%2C%0A%20%20%20%20%7D%2C%0A%20%20%20%20questionStates%3A%20%7B%0A%20%20%20%20%20%20...exerciseWithQuestionStatesProps().questionStates%2C%0A%20%20%20%20%20%20'1'%3A%20%7B%0A%20%20%20%20%20%20%20%20...exerciseWithQuestionStatesProps().questionStates%5B'1'%5D%2C%0A%20%20%20%20%20%20%20%20solution%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22%5C%5Csqrt%5B3%5D%7B%5C%5Ctext%7BApple%7D%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%20%20solution_type%3A%20'detailed'%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20'2'%3A%20%7B%0A%20%20%20%20%20%20%20%20...exerciseWithQuestionStatesProps().questionStates%5B'1'%5D%2C%0A%20%20%20%20%20%20%20%20solution%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20content_html%3A%20%60%3Cspan%20data-math%3D%22e%5E%7B%5C%5Ctext%7BBlue%7D%7D%22%3E%3C%2Fspan%3E%60%2C%0A%20%20%20%20%20%20%20%20%20%20solution_type%3A%20'detailed'%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%0A%20%20return%20(%0A%20%20%20%20%3CTextResizerProvider%3E%0A%20%20%20%20%20%20%3CExercise%20%7B...props1%7D%0A%20%20%20%20%20%20%20%20onAnswerChange%3D%7B(a%3A%20Omit%3CAnswer%2C%20'id'%3E%20%26%20%7B%20id%3A%20number%2C%20question_id%3A%20number%20%7D)%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20%20%20setSelectedAnswerId(a.id)%0A%20%20%20%20%20%20%20%20%7D%7D%0A%20%20%20%20%20%20%20%20onAnswerSave%3D%7B()%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20%20%20setCorrectAnswerId(1)%3B%0A%20%20%20%20%20%20%20%20%7D%7D%0A%20%20%20%20%20%20%2F%3E%0A%20%20%20%20%20%20%3CExercise%20%7B...props2%7D%20%2F%3E%0A%20%20%20%20%3C%2FTextResizerProvider%3E%0A%20%20)%3B%0A%7D%3B%0A",c4748b1a:"import%20%7B%20ExerciseQuestion%20%7D%20from%20'.%2FExerciseQuestion'%3B%0A%0Aconst%20props%20%3D%20%7B%0A%20%20question%3A%20%7B%0A%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20stem_html%3A%20'Is%20this%20a%20question%3F'%2C%0A%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20formats%3A%20%5B%5D%2C%0A%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%7D%5D%2C%0A%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%7D%2C%0A%20%20task%3A%20%7B%0A%20%20%20%20is_deleted%3A%20false%2C%0A%20%20%20%20type%3A%20'homework'%20as%20const%0A%20%20%7D%2C%0A%20%20correct_answer_id%3A%20''%2C%0A%20%20incorrectAnswerId%3A%20''%2C%0A%20%20hideAnswers%3A%20false%2C%0A%20%20hidePreambles%3A%20false%2C%0A%20%20exercise_uid%3A%20''%2C%0A%20%20displayFormats%3A%20false%2C%0A%20%20className%3A%20''%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20displaySolution%3A%20false%2C%0A%20%20context%3A%20''%2C%0A%20%20feedback_html%3A%20''%2C%0A%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20onChange%3A%20()%20%3D%3E%20null%2C%0A%20%20choicesEnabled%3A%20true%2C%0A%20%20hasMultipleAttempts%3A%20false%2C%0A%20%20onAnswerChange%3A%20()%20%3D%3E%20null%2C%0A%20%20onAnswerSave%3A%20()%20%3D%3E%20null%2C%0A%20%20onNextStep%3A%20()%20%3D%3E%20null%2C%0A%20%20is_completed%3A%20false%2C%0A%20%20multiPartGroup%3A%20null%2C%0A%20%20answer_id%3A%20''%2C%0A%20%20available_points%3A%20undefined%2C%0A%20%20attempts_remaining%3A%202%2C%0A%20%20published_comments%3A%20''%2C%0A%20%20detailedSolution%3A%20''%2C%0A%20%20canAnswer%3A%20true%2C%0A%20%20needsSaved%3A%20true%2C%0A%20%20canUpdateCurrentStep%3A%20true%2C%0A%20%20attempt_number%3A%200%2C%0A%20%20apiIsPending%3A%20false%2C%0A%20%20hasFeedback%3A%20false%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CExerciseQuestion%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20FreeResponseEntered%20%3D%20()%20%3D%3E%0A%20%20%3CExerciseQuestion%20%7B...props%7D%0A%20%20%20%20free_response%3D%22In%20this%20free%20response%2C%20I%20will...%22%0A%20%20%2F%3E%3B%0Aexport%20const%20MultipleAttemptsAllLeft%20%3D%20()%20%3D%3E%0A%20%20%3CExerciseQuestion%20%7B...props%7D%0A%20%20%20%20hasMultipleAttempts%3D%7Btrue%7D%0A%20%20%20%20attempts_remaining%3D%7B2%7D%0A%20%20%20%20attempt_number%3D%7B0%7D%0A%20%20%2F%3E%3B%0Aexport%20const%20MultipleAttemptsOneLeft%20%3D%20()%20%3D%3E%0A%20%20%3CExerciseQuestion%20%7B...props%7D%0A%20%20%20%20hasMultipleAttempts%3D%7Btrue%7D%0A%20%20%20%20canAnswer%3D%7Btrue%7D%0A%20%20%20%20needsSaved%3D%7Bfalse%7D%0A%20%20%20%20canUpdateCurrentStep%3D%7Btrue%7D%0A%20%20%20%20attempts_remaining%3D%7B1%7D%0A%20%20%20%20attempt_number%3D%7B1%7D%0A%20%20%20%20incorrectAnswerId%3D'2'%0A%20%20%2F%3E%3B%0Aexport%20const%20MultipleAttemptsNoneLeft%20%3D%20()%20%3D%3E%0A%20%20%3CExerciseQuestion%20%7B...props%7D%0A%20%20%20%20hasMultipleAttempts%3D%7Btrue%7D%0A%20%20%20%20choicesEnabled%3D%7Bfalse%7D%0A%20%20%20%20canAnswer%3D%7Bfalse%7D%0A%20%20%20%20needsSaved%3D%7Bfalse%7D%0A%20%20%20%20canUpdateCurrentStep%3D%7Bfalse%7D%0A%20%20%20%20attempts_remaining%3D%7B0%7D%0A%20%20%20%20attempt_number%3D%7B2%7D%0A%20%20%20%20incorrectAnswerId%3D'2'%0A%20%20%2F%3E%3B%0A","756b49e0":"import%20styled%20from%20%22styled-components%22%3B%0Aimport%20%7B%20ExerciseToolbar%20%7D%20from%20%22.%2FExerciseToolbar%22%3B%0A%0Aconst%20Wrapper%20%3D%20styled.div%60%0A%20%20overflow%3A%20hidden%3B%0A%20%20position%3A%20relative%3B%0A%20%20min-height%3A%2020rem%3B%0A%60%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CWrapper%3E%0A%20%20%3CExerciseToolbar%20icons%3D%7B%7B%0A%20%20%20%20topic%3A%20%7B%0A%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%0A%20%20%20%20%7D%2C%0A%20%20%20%20errata%3A%20%7B%0A%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%0A%20%20%20%20%7D%0A%20%20%7D%7D%20%2F%3E%0A%20%20%3C%2FWrapper%3E%3B%0A%0Aexport%20const%20DefaultMobileOnly%20%3D%20()%20%3D%3E%20%3CWrapper%3E%0A%20%20%3CExerciseToolbar%20icons%3D%7B%7B%0A%20%20%20%20topic%3A%20%7B%0A%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%2C%0A%20%20%20%20%20%20location%3A%20%7B%0A%20%20%20%20%20%20%20%20toolbar%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20desktop%3A%20false%2C%0A%20%20%20%20%20%20%20%20%20%20mobile%3A%20true%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%20%20%20%20errata%3A%20%7B%0A%20%20%20%20%20%20url%3A%20'https%3A%2F%2Fopenstax.org'%2C%0A%20%20%20%20%20%20location%3A%20%7B%0A%20%20%20%20%20%20%20%20toolbar%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20desktop%3A%20false%2C%0A%20%20%20%20%20%20%20%20%20%20mobile%3A%20true%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%7D%20%2F%3E%0A%20%20%3C%2FWrapper%3E%3B%0A","3db57d3f":"import%20%7B%20Feedback%20%7D%20from%20'.%2FFeedback'%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CFeedback%3EFeedback%3C%2FFeedback%3E%3B%0A","43a61479":"import%20%7B%20FreeResponseInput%2C%20FreeResponseProps%20%7D%20from%20'.%2FFreeResponseInput'%3B%0A%0Aconst%20updateValue%20%3D%20(event%3A%20React.ChangeEvent%3CHTMLTextAreaElement%3E)%20%3D%3E%20%7B%0A%20%20props.defaultValue%20%3D%20event.target.value%0A%7D%3B%0A%0Aconst%20leftInfoComponent%20%3D%20(%0A%20%20%3Cdiv%3E%0A%20%20%20%20%20%20%3Cspan%20className%3D%22last-submitted%22%3ELast%20submitted%20on%20July%2026%20at%204%3A00%20pm%3C%2Fspan%3E%0A%20%20%3C%2Fdiv%3E%0A%20%20)%3B%0A%0Aconst%20props%3A%20FreeResponseProps%20%3D%20%7B%0A%20%20readOnly%3A%20false%2C%0A%20%20wordLimit%3A%205%2C%0A%20%20defaultValue%3A%20''%2C%0A%20%20cancelHandler%3A%20()%20%3D%3E%20null%2C%0A%20%20saveHandler%3A%20()%20%3D%3E%20null%2C%0A%20%20onChange%3A%20updateValue%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20question%3A%20%7B%0A%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20stem_html%3A%20'Is%20this%20a%20question%3F'%2C%0A%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20formats%3A%20%5B%5D%2C%0A%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%7D%5D%2C%0A%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%7D%2C%0A%20%20availablePoints%3A%20undefined%2C%0A%20%20isSubmitDisabled%3A%20false%2C%0A%20%20textHasChanged%3A%20false%2C%0A%20%20submitBtnLabel%3A%20'Next'%2C%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CFreeResponseInput%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20OverWordLimit%20%3D%20()%20%3D%3E%20%3CFreeResponseInput%20%7B...props%7D%20textHasChanged%3D%7Btrue%7D%20%20defaultValue%3D'response%20goes%20over%20the%20word%20limit'%20%2F%3E%3B%0Aexport%20const%20SubmittedDate%20%3D%20()%20%3D%3E%20%3CFreeResponseInput%20%7B...props%7D%20infoRowChildren%3D%7BleftInfoComponent%7D%20%2F%3E%3B%0A%0A","42c55044":"import%20%7B%20Loader%20%7D%20from%20%22.%2FLoader%22%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CLoader%20%2F%3E%3B%0A",d25a5870:"import%20%7B%20ExerciseData%2C%20ExerciseQueryData%2C%20ExerciseQuestionData%2C%20StepBase%20%7D%20from%20'..%2F..%2Fsrc%2Ftypes'%3B%0Aimport%20data%20from%20'..%2F..%2Fexercises.json'%3B%0Aimport%20styled%20from%20'styled-components'%3B%0Aimport%20%7B%20Exercise%20%7D%20from%20'.%2FExercise'%3B%0A%0Aconst%20ExerciseWrapper%20%3D%20styled.div%60%0A%20%20break-inside%3A%20avoid%3B%0A%0A%20%20.step-card-body%20%7B%0A%20%20%20%20padding%3A%2024px%2048px%20!important%3B%0A%20%20%7D%0A%0A%20%20.step-card-footer%20%7B%0A%20%20%20%20display%3A%20none%3B%0A%20%20%7D%0A%0A%20%20.exercise-id%20%7B%0A%20%20%20%20height%3A%20auto%3B%0A%20%20%7D%0A%0A%20%20.exercise-step%20%7B%0A%20%20%20%20min-height%3A%20auto%3B%0A%20%20%7D%0A%0A%20%20.question-feedback%20%7B%0A%20%20%20%20box-shadow%3A%20none%20!important%3B%0A%20%20%7D%0A%0A%20%20.openstax-answer%20%7B%0A%20%20%20%20break-inside%3A%20avoid%3B%0A%0A%20%20%20%20.answer-letter-wrapper%3A%3Aafter%20%7B%0A%20%20%20%20%20%20content%3A%20''%20!important%3B%0A%20%20%20%20%7D%0A%20%20%7D%0A%60%3B%0A%0Aconst%20exercises%20%3D%20(data%20as%20ExerciseQueryData).exercises%20as%20ExerciseData%5B%5D%3B%0A%0Aconst%20firstQuestionNumByExercise%20%3D%20exercises.reduce((acc%2C%20ex)%20%3D%3E%20(%7B%0A%20%20%20%20...acc%2C%0A%20%20%20%20%5Bex.uuid%5D%3A%20acc.questionCounter%20%2B%201%2C%0A%20%20%20%20questionCounter%3A%20acc.questionCounter%20%2B%20ex.questions.length%0A%20%20%7D)%2C%20%7BquestionCounter%3A%200%7D)%3B%0A%0A%2F%2F%20placeholder%20until%20exercise%20data%20contains%20correct%20answer%20IDs%0Aconst%20formatAnswerData%20%3D%20(questions%3A%20ExerciseQuestionData%5B%5D)%20%3D%3E%20questions.map((q)%20%3D%3E%20(%0A%20%20%20%20%7Bid%3A%20q.id%2C%20correct_answer_id%3A%20(q.answers.find((a)%20%3D%3E%20a.correctness%20%3D%3D%3D%20'1.0')%3F.id%20%7C%7C%20'')%7D))%3B%0A%0Aconst%20questionStateFields%20%3D%20%7B%0A%20%20available_points%3A%20'1.0'%2C%0A%20%20is_completed%3A%20true%2C%0A%20%20answer_id%3A%20'1'%2C%0A%20%20free_response%3A%20''%2C%0A%20%20feedback_html%3A%20''%2C%0A%20%20correct_answer_feedback_html%3A%20''%2C%0A%20%20attempts_remaining%3A%200%2C%0A%20%20attempt_number%3A%201%2C%0A%20%20incorrectAnswerId%3A%200%0A%7D%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20(%0A%20%20%3C%3E%0A%20%20%20%20%7Bdata.title%20%26%26%20%3Ch2%3EExercises%20for%20%7Bdata.title%7D%3C%2Fh2%3E%7D%0A%20%20%20%20%7Bexercises.map(((exercise)%20%3D%3E%20%7B%0A%0A%20%20%20%20%20%20const%20step%3A%20StepBase%20%3D%20%7B%0A%20%20%20%20%20%20%20%20id%3A%201%2C%0A%20%20%20%20%20%20%20%20uid%3A%20exercise.uid%2C%0A%20%20%20%20%20%20%20%20available_points%3A%20'1.0'%2C%0A%20%20%20%20%20%20%7D%3B%0A%0A%20%20%20%20%20%20const%20questionStates%20%3D%20formatAnswerData(exercise.questions).reduce((acc%2C%20answer)%20%3D%3E%20%7B%0A%20%20%20%20%20%20%20%20const%20%7Bid%2C%20correct_answer_id%7D%20%3D%20answer%3B%0A%20%20%20%20%20%20%20%20return%20%7B...acc%2C%20%5Bid%5D%3A%20%7B...questionStateFields%2C%20correct_answer_id%7D%7D%3B%0A%20%20%20%20%20%20%7D%2C%20%7B%7D)%3B%0A%0A%20%20%20%20%20%20return%20(%0A%20%20%20%20%20%20%20%20%3CExerciseWrapper%20key%3D%7Bexercise.uid%7D%3E%0A%20%20%20%20%20%20%20%20%20%20%3CExercise%0A%20%20%20%20%20%20%20%20%20%20%20%20key%3D%7Bexercise.uid%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20canAnswer%3D%7Btrue%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20needsSaved%3D%7Btrue%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20hasMultipleAttempts%3D%7Bfalse%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20onAnswerChange%3D%7B()%20%3D%3E%20undefined%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20onAnswerSave%3D%7B()%20%3D%3E%20undefined%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20onNextStep%3D%7B()%20%3D%3E%20undefined%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20apiIsPending%3D%7Bfalse%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20canUpdateCurrentStep%3D%7Bfalse%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20exercise%3D%7Bexercise%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20step%3D%7Bstep%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20questionNumber%3D%7BfirstQuestionNumByExercise%5Bexercise.uuid%5D%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20numberOfQuestions%3D%7Bexercises.length%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20questionStates%3D%7BquestionStates%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20show_all_feedback%3D%7Btrue%7D%20%2F%3E%0A%20%20%20%20%20%20%20%20%3C%2FExerciseWrapper%3E%0A%20%20%20%20%20%20)%0A%20%20%7D))%7D%0A%20%20%3C%2F%3E)%3B%0A","0bac83d5":"import%20%7B%20ProgressBar%2C%20ProgressBarItemVariant%2C%20ProgressBarProps%20%7D%20from%20'.%2FProgressBar'%3B%0A%0Aconst%20variants%20%3D%20new%20Array(8).fill(%7Bvariant%3A%20null%7D)%3B%0Aconst%20variantsInProgress%3A%20ProgressBarItemVariant%5B%5D%20%3D%20%5B'isIncorrect'%2C%20'isCorrect'%2C%20'isIncorrect'%2C%20'isIncorrect'%2C%20null%2C%20null%2C%20null%2C%20null%2C%20'isStatus'%5D%3B%0A%0Aconst%20props%3A%20ProgressBarProps%3C%7Bvariant%3A%20ProgressBarItemVariant%7D%3E%20%3D%20%7B%0A%20%20activeIndex%3A%200%2C%0A%20%20goToStep%3A%20(index%3A%20number%2C%20step)%20%3D%3E%20console.log(index%2C%20step)%2C%0A%20%20steps%3A%20variantsInProgress.map((variant)%20%3D%3E%20(%7Bvariant%7D))%2C%0A%7D%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CProgressBar%20%7B...props%7D%20steps%3D%7B%5B...variants%2C%20%7Bvariant%3A%20'isStatus'%7D%5D%7D%20%2F%3E%3B%0Aexport%20const%20InProgress%20%3D%20()%20%3D%3E%20%3CProgressBar%20%7B...props%7D%20activeIndex%3D%7B4%7D%20%2F%3E%3B%0Aexport%20const%20Review%20%3D%20()%20%3D%3E%20%3CProgressBar%20%7B...props%7D%20activeIndex%3D%7B2%7D%20%2F%3E%3B%0Aexport%20const%20StatusStep%20%3D%20()%20%3D%3E%20%3CProgressBar%20%7B...props%7D%20activeIndex%3D%7B8%7D%20%2F%3E%3B%0A",aa93d1be:"import%20%7B%20Question%2C%20QuestionProps%20%7D%20from%20'.%2FQuestion'%3B%0A%0Aconst%20props%3A%20QuestionProps%20%3D%20%7B%0A%20%20question%3A%20%7B%0A%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20stem_html%3A%20'Is%20this%20a%20question%3F'%2C%0A%20%20%20%20collaborator_solutions%3A%20%5B%5D%2C%0A%20%20%20%20formats%3A%20%5B%5D%2C%0A%20%20%20%20stimulus_html%3A%20''%2C%0A%20%20%20%20is_answer_order_important%3A%20false%2C%0A%20%20%20%20answers%3A%20%5B%7B%0A%20%20%20%20%20%20id%3A%20'1'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'True'%2C%0A%20%20%20%20%7D%2C%20%7B%0A%20%20%20%20%20%20id%3A%20'2'%2C%0A%20%20%20%20%20%20correctness%3A%20undefined%2C%0A%20%20%20%20%20%20content_html%3A%20'False'%2C%0A%20%20%20%20%7D%5D%2C%0A%20%20%7D%2C%0A%20%20task%3A%20%7B%0A%20%20%20%20is_deleted%3A%20false%2C%0A%20%20%20%20type%3A%20'homework'%0A%20%20%7D%2C%0A%20%20correct_answer_id%3A%20''%2C%0A%20%20incorrectAnswerId%3A%20''%2C%0A%20%20hideAnswers%3A%20false%2C%0A%20%20hidePreambles%3A%20false%2C%0A%20%20exercise_uid%3A%20''%2C%0A%20%20displayFormats%3A%20false%2C%0A%20%20className%3A%20''%2C%0A%20%20questionNumber%3A%201%2C%0A%20%20displaySolution%3A%20false%2C%0A%20%20context%3A%20''%2C%0A%20%20feedback_html%3A%20''%2C%0A%20%20onChange%3A%20()%20%3D%3E%20null%2C%0A%20%20correct_answer_feedback_html%3A%20'Feedback'%2C%0A%7D%3B%0A%0Aconst%20mathProps%20%3D%20%7B%0A%20%20...props%2C%0A%20%20question%3A%20%7B%0A%20%20%20%20...props.question%2C%0A%20%20%20%20stem_html%3A%20%60%3Cimg%20src%3D%22https%3A%2F%2Fopenstax.org%2Fapps%2Farchive%2F20220509.174553%2Fresources%2F4fbd8e0f91f2743410fee47978931bf4715f97ef%22%20alt%3D%22An%20accelerating%20right-facing%20rocket%20sled%20is%20shown%20on%20tracks.%20Four%20thrust%20force%20vectors%20are%20behind%20the%20sled%20and%20are%20pointing%20to%20the%20right.%20An%20acceleration%20vector%20is%20above%20the%20sled%20and%20is%20pointing%20to%20the%20right.%20A%20friction%20force%20vector%20is%20in%20front%20of%20the%20sled%20and%20is%20pointing%20to%20the%20left.%20A%20Newton%20vector%20is%20below%20the%20sled%20and%20is%20pointing%20upward.%20A%20weight%20vector%20is%20also%20below%20the%20sled%20and%20is%20pointing%20downward.%20A%20free%20body%20diagram%20illustrates%20the%20force%20vectors.%22%3E%5CnCalculate%20the%20magnitude%20of%20force%20exerted%20by%20each%20rocket%2C%20called%20its%20thrust%20%3Cspan%20data-math%3D%22T%22%3ET%3C%2Fspan%3E%2C%20for%20the%20four-rocket%20propulsion%20system%20shown.%20The%20sled%E2%80%99s%20initial%20acceleration%20is%20%3Cspan%20data-math%3D%2249%5C%5C%2C%5C%5Ctext%7Bm%2Fs%7D%5E2%22%3E49%5C%5C%2C%5C%5Ctext%7Bm%2Fs%7D%5E2%3C%2Fspan%3E%2C%20the%20mass%20of%20the%20system%20is%20%3Cspan%20data-math%3D%222100%5C%5C%2C%5C%5Ctext%7Bkg%7D%22%3E2100%5C%5C%2C%5C%5Ctext%7Bkg%7D%3C%2Fspan%3E%2C%20and%20the%20force%20of%20friction%20opposing%20the%20motion%20is%20%3Cspan%20data-math%3D%22650%5C%5C%2C%5C%5Ctext%7BN%7D%22%3E650%5C%5C%2C%5C%5Ctext%7BN%7D%3C%2Fspan%3E.%60%0A%20%20%7D%0A%7D%3B%0A%0Aexport%20const%20Default%20%3D%20()%20%3D%3E%20%3CQuestion%20%7B...props%7D%20%2F%3E%3B%0Aexport%20const%20Checked%20%3D%20()%20%3D%3E%20%3CQuestion%20%7B...props%7D%20answer_id%3D%7B'1'%7D%20%2F%3E%3B%0Aexport%20const%20Correct%20%3D%20()%20%3D%3E%20%3CQuestion%20%7B...props%7D%20answer_id%3D%7B'1'%7D%20correct_answer_id%3D%7B'1'%7D%20%2F%3E%3B%0Aexport%20const%20Incorrect%20%3D%20()%20%3D%3E%20%3CQuestion%20%7B...props%7D%20answer_id%3D%7B'2'%7D%20correct_answer_id%3D%7B'1'%7D%20%2F%3E%3B%0Aexport%20const%20Math%20%3D%20()%20%3D%3E%20%3CQuestion%20%7B...mathProps%7D%20%2F%3E%0A"},y3={"answer--checked":re[97383714],"answer--correct":re[97383714],"answer--default":re[97383714],"answer--incorrect":re[97383714],"answers-table--checked":re["04e0dd74"],"answers-table--correct-answer-feedback":re["04e0dd74"],"answers-table--default":re["04e0dd74"],"answers-table--instructions":re["04e0dd74"],"answers-table--ordered":re["04e0dd74"],"button--default":re["7e5ac958"],"button--disabled":re["7e5ac958"],"button--waiting":re["7e5ac958"],"card--custom-components":re.e93d3e57,"card--default":re.e93d3e57,"completion-status--complete":re["89d96d1a"],"completion-status--default":re["89d96d1a"],"completion-status--partial-complete":re["89d96d1a"],"exercise--complete-with-feedback":re.bc664704,"exercise--complete-without-feedback":re.bc664704,"exercise--default":re.bc664704,"exercise--default-without-feedback":re.bc664704,"exercise--deprecated-step-data":re.bc664704,"exercise--icons":re.bc664704,"exercise--incorrect-with-feedback-and-solution":re.bc664704,"exercise--incorrect-with-feedback-and-solution-wrapping-text":re.bc664704,"exercise--math-jax":re.bc664704,"exercise--multi-part-half-complete":re.bc664704,"exercise-question--default":re.c4748b1a,"exercise-question--free-response-entered":re.c4748b1a,"exercise-question--multiple-attempts-all-left":re.c4748b1a,"exercise-question--multiple-attempts-none-left":re.c4748b1a,"exercise-question--multiple-attempts-one-left":re.c4748b1a,"exercise-toolbar--default":re["756b49e0"],"exercise-toolbar--default-mobile-only":re["756b49e0"],"feedback--default":re["3db57d3f"],"free-response-input--default":re["43a61479"],"free-response-input--over-word-limit":re["43a61479"],"free-response-input--submitted-date":re["43a61479"],"loader--default":re["42c55044"],"print--default":re.d25a5870,"progress-bar--default":re["0bac83d5"],"progress-bar--in-progress":re["0bac83d5"],"progress-bar--review":re["0bac83d5"],"progress-bar--status-step":re["0bac83d5"],"question--checked":re.aa93d1be,"question--correct":re.aa93d1be,"question--default":re.aa93d1be,"question--incorrect":re.aa93d1be,"question--math":re.aa93d1be};const ah={stories:"src/**/*.stories.{js,jsx,ts,tsx}",defaultStory:"",storyOrder:e=>e,viteConfig:void 0,appendToHead:"",port:61e3,previewPort:8080,outDir:"build",base:void 0,onDevServerStart:()=>{},i18n:{buildTooltip:'💡 Tip: Run "ladle preview" to check that the build works!'},addons:{control:{enabled:!0,defaultState:{}},theme:{enabled:!0,defaultState:"light"},mode:{enabled:!0,defaultState:"full"},rtl:{enabled:!0,defaultState:!1},source:{enabled:!0,defaultState:!1},a11y:{enabled:!0},action:{enabled:!0,defaultState:[]},ladle:{enabled:!0},width:{enabled:!0,options:{xsmall:414,small:640,medium:768,large:1024},defaultState:0}}};Object.keys(vt).length===0?kt("No custom config found."):(vt.storyOrder&&typeof vt.storyOrder=="string"&&(vt.storyOrder=new Function("return "+vt.storyOrder)()),kt("Custom config found:"),kt(vt));var Z2,J2;(J2=(Z2=vt==null?void 0:vt.addons)==null?void 0:Z2.width)!=null&&J2.options&&(ah.addons.width.options={});const Ae=lg(ah,vt);Ae.defaultStory===""&&(Ae.defaultStory=dd(Object.keys(fn),Ae.storyOrder)[0]);kt("Final config",Ae);const sh=e=>{switch(zt.parse(e).theme){case Le.Light:return Le.Light;case Le.Dark:return Le.Dark;case Le.Auto:return Le.Auto;default:return"light"}},A3=({globalState:e,dispatch:t})=>{const n="Switch to dark theme.",r="Switch to light theme.";return C("li",{children:X("button",{"aria-label":e.theme===Le.Light?n:r,title:e.theme===Le.Light?n:r,onClick:()=>{const o=e.theme===Le.Light?Le.Dark:Le.Light;document.documentElement.setAttribute("data-theme",o),t({type:ye.UpdateTheme,value:o})},type:"button",children:[C(Og,{}),C("span",{className:"ladle-addon-tooltip",children:e.theme===Le.Light?n:r}),X("label",{children:["Switch to"," ",e.theme===Le.Light?Le.Dark:Le.Light," ","theme"]})]})})},lh=cd(ld(location.search,Ae.defaultStory));kt(`Initial document.title: ${lh}`);document.title=`${lh} | Ladle`;const Vl=sh(location.search);kt(`Initial theme state: ${Vl}`);Vl===Le.Auto?window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.setAttribute("data-theme",Le.Dark):document.documentElement.setAttribute("data-theme",Le.Light):document.documentElement.setAttribute("data-theme",Vl);var p0={},Vo={},uh={exports:{}},v3="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",C3=v3,E3=C3;function ch(){}function dh(){}dh.resetWarningCache=ch;var w3=function(){function e(r,o,i,a,s,l){if(l!==E3){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:dh,resetWarningCache:ch};return n.PropTypes=n,n};uh.exports=w3();var h0=uh.exports;const mw=pn(h0);var Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.FrameContextConsumer=Et.FrameContextProvider=Et.useFrame=Et.FrameContext=void 0;var _3=E,fh=b3(_3);function b3(e){return e&&e.__esModule?e:{default:e}}var ph=void 0,hh=void 0;typeof document<"u"&&(ph=document);typeof window<"u"&&(hh=window);var m0=Et.FrameContext=fh.default.createContext({document:ph,window:hh});Et.useFrame=function(){return fh.default.useContext(m0)};var S3=m0.Provider,D3=m0.Consumer;Et.FrameContextProvider=S3;Et.FrameContextConsumer=D3;var g0={};Object.defineProperty(g0,"__esModule",{value:!0});var x3=function(){function e(t,n){for(var r=0;r
'};Vo.default=wn.default.forwardRef(function(e,t){return wn.default.createElement(y0,Wl({},e,{forwardedRef:t}))});(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Vo;Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r(t).default}});var n=Et;Object.defineProperty(e,"FrameContext",{enumerable:!0,get:function(){return n.FrameContext}}),Object.defineProperty(e,"FrameContextConsumer",{enumerable:!0,get:function(){return n.FrameContextConsumer}}),Object.defineProperty(e,"useFrame",{enumerable:!0,get:function(){return n.useFrame}});function r(o){return o&&o.__esModule?o:{default:o}}})(p0);const z3=pn(p0),Ah=I.createContext({});function U3(e){const t=I.useContext(Ah);return I.useMemo(()=>typeof e=="function"?e(t):{...t,...e},[t,e])}const V3={};function H3({components:e,children:t,disableParentContext:n}){let r;return n?r=typeof e=="function"?e({}):e||V3:r=U3(e),I.createElement(Ah.Provider,{value:r},t)}class W3 extends E.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(){}render(){return this.state.hasError?null:this.props.children}}const G3=({activeStory:e})=>X("div",{className:"ladle-error-content",children:[C("h1",{children:"Story not found"}),X("p",{children:["The story id ",C(Er,{children:e})," you are trying to open does not exist. Typo?"]}),C("p",{children:C(gr,{href:"/",children:"Back to home"})}),C("p",{children:C(gr,{href:"https://github.com/tajo/ladle",children:"GitHub"})}),C("p",{children:C(gr,{href:"https://www.ladle.dev",children:"Docs"})})]});/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT @@ -136,4 +136,4 @@ See https://www.w3.org/TR/wai-aria/#aria-label for details.`;return!e["aria-labe Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}const Eh=c1(),wh=e=>{Object.keys(e).forEach(t=>{const n=e[t],r=Ae.addons[t]?Ae.addons[t].defaultState:"$$LADLE_unknown";n===r&&delete e[t]})},Is=e=>{if(!e.controlInitialized)return;const t={mode:e.mode,rtl:e.rtl,source:e.source,story:e.story,theme:e.theme,width:e.width,control:e.control};wh(t),location.search!==Oi(t)&&(kt(`Updating URL to ${Oi(t)}`),Eh.push(Oi(t)))},Oi=e=>{wh(e);const t={};return Object.keys(e).forEach(n=>{n==="control"?Object.keys(e[n]).forEach(r=>{const o=e[n][r];if(o.type===ue.Action)return;let i=o.value,a=!1;i=encodeURI(typeof o.value=="string"?o.value:JSON.stringify(o.value));try{a=JSON.stringify(o.value)===JSON.stringify(o.defaultValue),!a&&JSON.stringify(i)!==JSON.stringify(o.defaultValue)&&(t[`arg-${r}`]=i)}catch{}}):t[n]=e[n]}),`?${zt.stringify(t)}`},_h=e=>e.isExpanded&&e.children&&e.children.length?_h(e.children[e.children.length-1]):e.id,bh=(e,t,n)=>{for(let r=0;r{for(let r=0;r{for(let n=0;n{for(let r=0;r{const t=e[e.length-1];return t.isExpanded&&t.children&&t.children.length?kh(t.children):t.id},to=(e,t)=>e.map(n=>{const r={...n};return r.id===t.id&&(r.isExpanded=!r.isExpanded),r.children&&r.children.length&&(r.children=to(r.children,t)),r}),h1=({stories:e,story:t,updateStory:n,searchActive:r,searchRef:o,setTreeRootRef:i})=>{const a=E.useRef({}),[s,l]=E.useState(V0(e,t,r));E.useEffect(()=>{l(V0(e,t,r))},[e.join(",")]);const[u,d]=E.useState(s.length?s[0].id:null),c=m=>{var v;m&&a&&a.current[m]&&((v=a.current[m])==null||v.focus()),d(m||s[0].id),!m&&o.current.focus()};return C("ul",{role:"tree",style:{marginInlineStart:"-6px"},ref:m=>i(m),children:C(Oh,{tree:s,fullTree:s,story:t,updateStory:n,onItemClick:m=>l(to(s,m)),selectedItemId:u,onKeyDownFn:(m,v)=>{switch(m.key){case"ArrowRight":m.preventDefault(),m.stopPropagation(),v.isExpanded?c(Dh(s,v.id)):l(to(s,v));break;case"ArrowLeft":m.preventDefault(),m.stopPropagation(),v.isExpanded?l(to(s,v)):c(bh(s,v.id,null));break;case"ArrowUp":m.preventDefault(),m.stopPropagation(),c(Sh(s,v.id,null));break;case"ArrowDown":m.preventDefault(),m.stopPropagation();const y=xh(s,v.id,null);y&&c(y);break;case" ":case"Enter":m.target.href||(m.preventDefault(),m.stopPropagation(),l(to(s,v)));break;case"Home":m.preventDefault(),m.stopPropagation(),s.length&&c(s[0].id);break;case"End":m.preventDefault(),m.stopPropagation(),c(kh(s));break}},treeItemRefs:a})})},Oh=({tree:e,fullTree:t,story:n,updateStory:r,onItemClick:o,onKeyDownFn:i,selectedItemId:a,treeItemRefs:s})=>C(E.Fragment,{children:e.map(l=>X("li",{onKeyDown:u=>i(u,l),"aria-expanded":l.isExpanded,title:l.name,tabIndex:l.id===a&&!l.isLinkable?0:-1,ref:l.isLinkable?void 0:u=>s.current[l.id]=u,role:"treeitem",className:l1({"ladle-linkable":l.isLinkable,"ladle-active":l.id===n}),style:l.isLinkable?{}:{marginTop:"0.5em"},children:[l.isLinkable?X("div",{style:{display:"flex"},children:[C(Tg,{}),C("a",{tabIndex:l.id===a?0:-1,ref:u=>s.current[l.id]=u,href:Oi({story:l.id}),onKeyDown:u=>n!==l.id&&i(u,l),onClick:u=>{!u.ctrlKey&&!u.metaKey&&(u.preventDefault(),n!==l.id&&r(l.id))},children:l.name})]}):X("div",{style:{display:"flex",cursor:"pointer"},title:l.name,onClick:()=>o(l),children:[C(Bg,{rotate:!l.isExpanded}),C("div",{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:l.name})]}),Object.keys(l.children).length>0&&l.isExpanded&&C("ul",{role:"group",children:C(Oh,{tree:l.children,fullTree:t,story:n,updateStory:r,selectedItemId:a,onKeyDownFn:i,onItemClick:o,treeItemRefs:s})})]},l.id))}),m1=({stories:e,story:t,updateStory:n})=>{const[r,o]=E.useState(""),i=E.useRef(null),a=E.useRef(null),s=d=>{(d.metaKey&&d.key==="p"||d.key==="/")&&(["input","textarea"].every(c=>d.target.tagName.toLowerCase()!==c)||d.metaKey)&&(i.current.focus(),d.preventDefault())};E.useEffect(()=>(document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}),[]);const l=r.toLocaleLowerCase().replace(new RegExp("\\s+","g"),"-"),u=e.filter(d=>d.includes(l));return X("nav",{role:"navigation",className:"ladle-aside",children:[C("input",{placeholder:"Search","aria-label":"Search stories",value:r,ref:i,onKeyDown:d=>{d.key==="ArrowDown"&&a.current.firstChild.focus()},onChange:d=>o(d.target.value)}),C(h1,{searchRef:i,stories:u,story:t,updateStory:n,searchActive:r!=="",setTreeRootRef:d=>a.current=d})]})},g1=e=>{switch(zt.parse(e).mode){case ft.Full:return ft.Full;case ft.Preview:return ft.Preview;default:return Ae.addons.mode.defaultState}},y1=({dispatch:e})=>{const t="Open fullscreen mode. It removes all other styles and wrappers.";return C("li",{children:X("button",{"aria-label":t,title:t,onClick:()=>e({type:ye.UpdateMode,value:ft.Preview}),type:"button",children:[C(kg,{}),C("span",{className:"ladle-addon-tooltip",children:t}),C("label",{children:"Open fullscreen mode"})]})})};var A1=Object.create,A0=Object.defineProperty,v1=Object.getOwnPropertyDescriptor,Th=Object.getOwnPropertyNames,C1=Object.getPrototypeOf,E1=Object.prototype.hasOwnProperty,v0=(e,t)=>function(){return t||(0,e[Th(e)[0]])((t={exports:{}}).exports,t),t.exports},w1=(e,t)=>{for(var n in t)A0(e,n,{get:t[n],enumerable:!0})},_1=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Th(t))!E1.call(e,o)&&o!==n&&A0(e,o,{get:()=>t[o],enumerable:!(r=v1(t,o))||r.enumerable});return e},b1=(e,t,n)=>(n=e!=null?A1(C1(e)):{},_1(t||!e||!e.__esModule?A0(n,"default",{value:e,enumerable:!0}):n,e)),S1=v0({"node_modules/is-object/index.js"(e,t){t.exports=function(r){return typeof r=="object"&&r!==null}}}),D1=v0({"node_modules/is-window/index.js"(e,t){t.exports=function(n){if(n==null)return!1;var r=Object(n);return r===r.window}}}),x1=v0({"node_modules/is-dom/index.js"(e,t){var n=S1(),r=D1();function o(i){return!n(i)||!r(window)||typeof window.Node!="function"?!1:typeof i.nodeType=="number"&&typeof i.nodeName=="string"}t.exports=o}}),fa={};w1(fa,{chromeDark:()=>Bh,chromeLight:()=>Rh});var Bh={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},Rh={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},Ih=E.createContext([{},()=>{}]),Fs={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},Ti=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...Fs},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...Fs},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...Fs}}),ql="chromeLight",Fh=E.createContext(Ti(fa[ql])),at=e=>E.useContext(Fh)[e],C0=e=>({theme:n=ql,...r})=>{const o=E.useMemo(()=>{switch(Object.prototype.toString.call(n)){case"[object String]":return Ti(fa[n]);case"[object Object]":return Ti(n);default:return Ti(fa[ql])}},[n]);return I.createElement(Fh.Provider,{value:o},I.createElement(e,{...r}))},k1=({expanded:e,styles:t})=>I.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"▶"),O1=E.memo(e=>{e={expanded:!0,nodeRenderer:({name:d})=>I.createElement("span",null,d),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};const{expanded:t,onClick:n,children:r,nodeRenderer:o,title:i,shouldShowArrow:a,shouldShowPlaceholder:s}=e,l=at("TreeNode"),u=o;return I.createElement("li",{"aria-expanded":t,role:"treeitem",style:l.treeNodeBase,title:i},I.createElement("div",{style:l.treeNodePreviewContainer,onClick:n},a||E.Children.count(r)>0?I.createElement(k1,{expanded:t,styles:l.treeNodeArrow}):s&&I.createElement("span",{style:l.treeNodePlaceholder}," "),I.createElement(u,{...e})),I.createElement("ol",{role:"group",style:l.treeNodeChildNodesContainer},t?r:void 0))}),pa="$",W2="*";function Bi(e,t){return!t(e).next().done}var T1=e=>Array.from({length:e},(t,n)=>[pa].concat(Array.from({length:n},()=>"*")).join(".")),B1=(e,t,n,r,o)=>{const i=[].concat(T1(r)).concat(n).filter(s=>typeof s=="string"),a=[];return i.forEach(s=>{const l=s.split("."),u=(d,c,f)=>{if(f===l.length){a.push(c);return}const m=l[f];if(f===0)Bi(d,t)&&(m===pa||m===W2)&&u(d,pa,f+1);else if(m===W2)for(const{name:v,data:y}of t(d))Bi(y,t)&&u(y,`${c}.${v}`,f+1);else{const v=d[m];Bi(v,t)&&u(v,`${c}.${m}`,f+1)}};u(e,"",0)}),a.reduce((s,l)=>(s[l]=!0,s),{...o})},Nh=E.memo(e=>{const{data:t,dataIterator:n,path:r,depth:o,nodeRenderer:i}=e,[a,s]=E.useContext(Ih),l=Bi(t,n),u=!!a[r],d=E.useCallback(()=>l&&s(c=>({...c,[r]:!u})),[l,s,r,u]);return I.createElement(O1,{expanded:u,onClick:d,shouldShowArrow:l,shouldShowPlaceholder:o>0,nodeRenderer:i,...e},u?[...n(t)].map(({name:c,data:f,...m})=>I.createElement(Nh,{name:c,data:f,depth:o+1,path:`${r}.${c}`,key:c,dataIterator:n,nodeRenderer:i,...m})):null)}),Lh=E.memo(({name:e,data:t,dataIterator:n,nodeRenderer:r,expandPaths:o,expandLevel:i})=>{const a=at("TreeView"),s=E.useState({}),[,l]=s;return E.useLayoutEffect(()=>l(u=>B1(t,n,o,i,u)),[t,n,o,i]),I.createElement(Ih.Provider,{value:s},I.createElement("ol",{role:"tree",style:a.treeViewOutline},I.createElement(Nh,{name:e,data:t,dataIterator:n,depth:0,path:pa,nodeRenderer:r})))}),E0=({name:e,dimmed:t=!1,styles:n={}})=>{const r=at("ObjectName"),o={...r.base,...t?r.dimmed:{},...n};return I.createElement("span",{style:o},e)},go=({object:e,styles:t})=>{const n=at("ObjectValue"),r=o=>({...n[o],...t});switch(typeof e){case"bigint":return I.createElement("span",{style:r("objectValueNumber")},String(e),"n");case"number":return I.createElement("span",{style:r("objectValueNumber")},String(e));case"string":return I.createElement("span",{style:r("objectValueString")},'"',e,'"');case"boolean":return I.createElement("span",{style:r("objectValueBoolean")},String(e));case"undefined":return I.createElement("span",{style:r("objectValueUndefined")},"undefined");case"object":return e===null?I.createElement("span",{style:r("objectValueNull")},"null"):e instanceof Date?I.createElement("span",null,e.toString()):e instanceof RegExp?I.createElement("span",{style:r("objectValueRegExp")},e.toString()):Array.isArray(e)?I.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?I.createElement("span",null,`Buffer[${e.length}]`):I.createElement("span",null,e.constructor.name):I.createElement("span",null,"Object");case"function":return I.createElement("span",null,I.createElement("span",{style:r("objectValueFunctionPrefix")},"ƒ "),I.createElement("span",{style:r("objectValueFunctionName")},e.name,"()"));case"symbol":return I.createElement("span",{style:r("objectValueSymbol")},e.toString());default:return I.createElement("span",null)}},Ph=Object.prototype.hasOwnProperty,R1=Object.prototype.propertyIsEnumerable;function Yl(e,t){const n=Object.getOwnPropertyDescriptor(e,t);if(n.get)try{return n.get()}catch{return n.get}return e[t]}function G2(e,t){return e.length===0?[]:e.slice(1).reduce((n,r)=>n.concat([t,r]),[e[0]])}var Ql=({data:e})=>{const t=at("ObjectPreview"),n=e;if(typeof n!="object"||n===null||n instanceof Date||n instanceof RegExp)return I.createElement(go,{object:n});if(Array.isArray(n)){const r=t.arrayMaxProperties,o=n.slice(0,r).map((a,s)=>I.createElement(go,{key:s,object:a}));n.length>r&&o.push(I.createElement("span",{key:"ellipsis"},"…"));const i=n.length;return I.createElement(I.Fragment,null,I.createElement("span",{style:t.objectDescription},i===0?"":`(${i}) `),I.createElement("span",{style:t.preview},"[",G2(o,", "),"]"))}else{const r=t.objectMaxProperties,o=[];for(const a in n)if(Ph.call(n,a)){let s;o.length===r-1&&Object.keys(n).length>r&&(s=I.createElement("span",{key:"ellipsis"},"…"));const l=Yl(n,a);if(o.push(I.createElement("span",{key:a},I.createElement(E0,{name:a||'""'}),": ",I.createElement(go,{object:l}),s)),s)break}const i=n.constructor?n.constructor.name:"Object";return I.createElement(I.Fragment,null,I.createElement("span",{style:t.objectDescription},i==="Object"?"":`${i} `),I.createElement("span",{style:t.preview},"{",G2(o,", "),"}"))}},I1=({name:e,data:t})=>typeof e=="string"?I.createElement("span",null,I.createElement(E0,{name:e}),I.createElement("span",null,": "),I.createElement(Ql,{data:t})):I.createElement(Ql,{data:t}),F1=({name:e,data:t,isNonenumerable:n=!1})=>{const r=t;return I.createElement("span",null,typeof e=="string"?I.createElement(E0,{name:e,dimmed:n}):I.createElement(Ql,{data:e}),I.createElement("span",null,": "),I.createElement(go,{object:r}))},N1=(e,t)=>function*(r){if(!(typeof r=="object"&&r!==null||typeof r=="function"))return;const i=Array.isArray(r);if(!i&&r[Symbol.iterator]){let a=0;for(const s of r){if(Array.isArray(s)&&s.length===2){const[l,u]=s;yield{name:l,data:u}}else yield{name:a.toString(),data:s};a++}}else{const a=Object.getOwnPropertyNames(r);t===!0&&!i?a.sort():typeof t=="function"&&a.sort(t);for(const s of a)if(R1.call(r,s)){const l=Yl(r,s);yield{name:s||'""',data:l}}else if(e){let l;try{l=Yl(r,s)}catch{}l!==void 0&&(yield{name:s,data:l,isNonenumerable:!0})}e&&r!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(r),isNonenumerable:!0})}},L1=({depth:e,name:t,data:n,isNonenumerable:r})=>e===0?I.createElement(I1,{name:t,data:n}):I.createElement(F1,{name:t,data:n,isNonenumerable:r}),P1=({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:n,...r})=>{const o=N1(e,t),i=n||L1;return I.createElement(Lh,{nodeRenderer:i,dataIterator:o,...r})},$1=C0(P1);function M1(e){if(typeof e=="object"){let t=[];if(Array.isArray(e)){const r=e.length;t=[...Array(r).keys()]}else e!==null&&(t=Object.keys(e));const n=t.reduce((r,o)=>{const i=e[o];return typeof i=="object"&&i!==null&&Object.keys(i).reduce((s,l)=>(s.includes(l)||s.push(l),s),r),r},[]);return{rowHeaders:t,colHeaders:n}}}var j1=({rows:e,columns:t,rowsData:n})=>{const r=at("TableInspectorDataContainer"),o=at("TableInspectorLeftBorder");return I.createElement("div",{style:r.div},I.createElement("table",{style:r.table},I.createElement("colgroup",null),I.createElement("tbody",null,e.map((i,a)=>I.createElement("tr",{key:i,style:r.tr},I.createElement("td",{style:{...r.td,...o.none}},i),t.map(s=>{const l=n[a];return typeof l=="object"&&l!==null&&Ph.call(l,s)?I.createElement("td",{key:s,style:{...r.td,...o.solid}},I.createElement(go,{object:l[s]})):I.createElement("td",{key:s,style:{...r.td,...o.solid}})}))))))},z1=e=>I.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},e.children),U1=({sortAscending:e})=>{const t=at("TableInspectorSortIcon"),n=e?"▲":"▼";return I.createElement("div",{style:t},n)},q2=({sortAscending:e=!1,sorted:t=!1,onClick:n=void 0,borderStyle:r={},children:o,...i})=>{const a=at("TableInspectorTH"),[s,l]=E.useState(!1),u=E.useCallback(()=>l(!0),[]),d=E.useCallback(()=>l(!1),[]);return I.createElement("th",{...i,style:{...a.base,...r,...s?a.base[":hover"]:{}},onMouseEnter:u,onMouseLeave:d,onClick:n},I.createElement("div",{style:a.div},o),t&&I.createElement(z1,null,I.createElement(U1,{sortAscending:e})))},V1=({indexColumnText:e="(index)",columns:t=[],sorted:n,sortIndexColumn:r,sortColumn:o,sortAscending:i,onTHClick:a,onIndexTHClick:s})=>{const l=at("TableInspectorHeaderContainer"),u=at("TableInspectorLeftBorder");return I.createElement("div",{style:l.base},I.createElement("table",{style:l.table},I.createElement("tbody",null,I.createElement("tr",null,I.createElement(q2,{borderStyle:u.none,sorted:n&&r,sortAscending:i,onClick:s},e),t.map(d=>I.createElement(q2,{borderStyle:u.solid,key:d,sorted:n&&o===d,sortAscending:i,onClick:a.bind(null,d)},d))))))},H1=({data:e,columns:t})=>{const n=at("TableInspector"),[{sorted:r,sortIndexColumn:o,sortColumn:i,sortAscending:a},s]=E.useState({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),l=E.useCallback(()=>{s(({sortIndexColumn:v,sortAscending:y})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:v?!y:!0}))},[]),u=E.useCallback(v=>{s(({sortColumn:y,sortAscending:p})=>({sorted:!0,sortIndexColumn:!1,sortColumn:v,sortAscending:v===y?!p:!0}))},[]);if(typeof e!="object"||e===null)return I.createElement("div",null);let{rowHeaders:d,colHeaders:c}=M1(e);t!==void 0&&(c=t);let f=d.map(v=>e[v]),m;if(i!==void 0?m=f.map((v,y)=>typeof v=="object"&&v!==null?[v[i],y]:[void 0,y]):o&&(m=d.map((v,y)=>[d[y],y])),m!==void 0){const v=(p,h)=>(g,w)=>{const _=p(g),L=p(w),O=typeof _,B=typeof L,R=(W,K)=>WK?1:0;let F;if(O===B)F=R(_,L);else{const W={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};F=R(W[O],W[B])}return h||(F=-F),F},y=m.sort(v(p=>p[0],a)).map(p=>p[1]);d=y.map(p=>d[p]),f=y.map(p=>f[p])}return I.createElement("div",{style:n.base},I.createElement(V1,{columns:c,sorted:r,sortIndexColumn:o,sortColumn:i,sortAscending:a,onTHClick:u,onIndexTHClick:l}),I.createElement(j1,{rows:d,columns:c,rowsData:f}))},W1=C0(H1),G1=80,$h=e=>e.childNodes.length===0||e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.lengthI.createElement("span",{style:n.base},"<",I.createElement("span",{style:n.tagName},e),(()=>{if(t){const r=[];for(let o=0;o"),Y2=({tagName:e,isChildNode:t=!1,styles:n})=>I.createElement("span",{style:Object.assign({},n.base,t&&n.offsetLeft)},""),Y1={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},Q1=({isCloseTag:e,data:t,expanded:n})=>{const r=at("DOMNodePreview");if(e)return I.createElement(Y2,{styles:r.htmlCloseTag,isChildNode:!0,tagName:t.tagName});switch(t.nodeType){case Node.ELEMENT_NODE:return I.createElement("span",null,I.createElement(q1,{tagName:t.tagName,attributes:t.attributes,styles:r.htmlOpenTag}),$h(t)?t.textContent:!n&&"…",!n&&I.createElement(Y2,{tagName:t.tagName,styles:r.htmlCloseTag}));case Node.TEXT_NODE:return I.createElement("span",null,t.textContent);case Node.CDATA_SECTION_NODE:return I.createElement("span",null,"");case Node.COMMENT_NODE:return I.createElement("span",{style:r.htmlComment},"");case Node.PROCESSING_INSTRUCTION_NODE:return I.createElement("span",null,t.nodeName);case Node.DOCUMENT_TYPE_NODE:return I.createElement("span",{style:r.htmlDoctype},"");case Node.DOCUMENT_NODE:return I.createElement("span",null,t.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return I.createElement("span",null,t.nodeName);default:return I.createElement("span",null,Y1[t.nodeType])}},X1=function*(e){if(e&&e.childNodes){if($h(e))return;for(let n=0;nI.createElement(Lh,{nodeRenderer:Q1,dataIterator:X1,...e}),J1=C0(Z1),K1=b1(x1()),ew=({table:e=!1,data:t,...n})=>e?I.createElement(W1,{data:t,...n}):(0,K1.default)(t)?I.createElement(J1,{data:t,...n}):I.createElement($1,{data:t,...n});const tw=({dispatch:e,globalState:t})=>{const[n,r]=E.useState(!1),o="Log of events triggered by user.";return C("li",{children:X("button",{"aria-label":o,title:o,onClick:()=>r(!0),className:n?"ladle-active":"","data-testid":"addon-action",type:"button",children:[C(Lg,{}),C("span",{className:"ladle-addon-tooltip",children:o}),C("label",{children:"Actions"}),t.action.length?C("div",{className:"ladle-badge",children:t.action.length}):null,X(Tr,{maxWidth:"60em",isOpen:n,close:()=>r(!1),label:"Dialog with a log of events triggered by user.",children:[t.action.map((i,a)=>C(ew,{table:!1,sortObjectKeys:!0,theme:{...t.theme===Le.Light?Rh:Bh,BASE_BACKGROUND_COLOR:"var(--ladle-bg-color-secondary)"},showNonenumerable:!1,name:i.name,data:i.event},a)),C("button",{onClick:()=>{e({type:ye.UpdateAction,clear:!0,value:void 0})},type:"button",children:"Clear actions"})]})]})})},nw=e=>{const t=zt.parse(e).rtl;return t==="true"?!0:t==="false"?!1:Ae.addons.rtl.defaultState},rw=({dispatch:e,globalState:t})=>{const n="Switch text direction to right to left.",r="Switch text direction to left to right.";return C("li",{children:X("button",{"aria-label":t.rtl?r:n,title:t.rtl?r:n,className:t.rtl?"ladle-active":"",onClick:()=>e({type:ye.UpdateRtl,value:!t.rtl}),type:"button",children:[C(Dg,{}),C("span",{className:"ladle-addon-tooltip",children:t.rtl?r:n}),C("label",{children:"Right to left"})]})})},ow=()=>{const[e,t]=E.useState(!1),n="Get more information about Ladle.";return C("li",{children:X("button",{"aria-label":n,title:n,onClick:()=>t(!0),className:e?"ladle-active":"",type:"button",children:[C(Sg,{}),C("span",{className:"ladle-addon-tooltip",children:n}),C("label",{children:"About Ladle"}),X(Tr,{isOpen:e,close:()=>t(!1),label:"Dialog with information about Ladle.",children:[C("p",{children:"Ladle is a modern and fast playground for React components powered by Vite. For more information:"}),X("ul",{children:[C("li",{children:C("a",{href:"https://www.ladle.dev/",children:"Ladle.dev"})}),C("li",{children:C("a",{href:"https://github.com/tajo/ladle",children:"GitHub"})}),C("li",{children:C("a",{href:"https://ladle.dev/new",children:"StackBlitz"})}),C("li",{children:C("a",{href:"https://discord.gg/H6FSHjyW7e",children:"Discord"})})]}),C("p",{children:C("strong",{children:"Shortcuts"})}),C("ul",{children:X("li",{children:[C(Er,{children:"/"})," or ",C(Er,{children:"cmd+p"})," - search stories"]})})]})]})})},iw=async(e,t,n)=>{const r=await ne(()=>import("./axe-faa368b4.js").then(o=>o.a),[]);try{const o=await r.default.run(document.getElementsByTagName("main"));e(o.violations),t(!0),n&&n.setAttribute("aria-hidden","true")}catch{}},aw=({violation:e})=>{const[t,n]=E.useState(!1);return X("li",{children:[e.help," (",e.nodes.length,")."," ",t?X(Ii,{children:[X("ul",{children:[X("li",{children:["ID: ",e.id]}),X("li",{children:["Impact: ",e.impact]}),X("li",{children:["Description: ",e.description]}),C("li",{children:C("a",{href:e.helpUrl,children:"Documentation"})})]}),C("p",{children:"Violating nodes:"}),C("ul",{children:e.nodes.map(r=>C("li",{children:C(Er,{children:r.html})},r.html))}),C("p",{children:C("a",{href:"#",onClick:()=>n(!1),children:"Hide details"})})]}):C("a",{href:"#",onClick:()=>n(!0),children:"Show details"})]})},sw=({reportFinished:e,violations:t})=>e?t.length===0?X("p",{children:["There are no ",C("a",{href:"https://github.com/dequelabs/axe-core",children:"axe"})," ","accessibility violations. Good job!"]}):X(Ii,{children:[X("h3",{children:["There are ",t.length," ",C("a",{href:"https://github.com/dequelabs/axe-core",children:"axe"})," accessibility violations"]}),C("ul",{children:t.map(n=>C(aw,{violation:n},n.id))})]}):C("p",{children:"Report is loading..."}),lw=()=>{const[e,t]=E.useState(!1),[n,r]=E.useState(!1),[o,i]=E.useState([]);E.useEffect(()=>{},[]);const a="Show accessibility report.";return C("li",{children:X("button",{"aria-label":a,"data-testid":"addon-a11y",title:a,onClick:()=>{iw(i,r,null).catch(console.error),setTimeout(()=>t(!e),100)},className:e?"a11y-active":"",type:"button",children:[C(Fg,{}),C("span",{className:"ladle-addon-tooltip",children:a}),C("label",{children:"Accessibility report"}),o.length?C("div",{className:"ladle-badge",children:o.length}):null,C(Tr,{isOpen:e,close:()=>t(!1),label:"Dialog with the story accessibility report.",children:C(sw,{reportFinished:n,violations:o})})]})})},uw=e=>{const t=zt.parse(e).width;let n=0;return Object.keys(Ae.addons.width.options).forEach(r=>{(r===t||parseInt(t,10)===Ae.addons.width.options[r])&&(n=Ae.addons.width.options[r])}),n!==0?n:Ae.addons.width.defaultState},cw=({globalState:e,dispatch:t})=>{const n="Change the story viewport.",[r,o]=E.useState(!1),i=fn[e.story];let a=i&&i.meta?i.meta.meta.width:0,s=Ae.addons.width.options;return Object.keys(s).forEach(l=>{l===a&&(a=s[l])}),a&&!Object.values(s).includes(a)&&(s={custom:a,...s}),C("li",{children:X("button",{"aria-label":n,"data-testid":"addon-width",title:n,onClick:()=>o(!0),className:r?"width-active":"",type:"button",children:[C(Ng,{}),C("span",{className:"ladle-addon-tooltip",children:n}),C("label",{children:"Set story width"}),X(Tr,{isOpen:r,close:()=>o(!1),label:"Dialog with the story width selector.",children:[C("p",{children:"Select story width"}),X("div",{children:[C("input",{onChange:()=>t({type:ye.UpdateWidth,value:0}),type:"radio",id:"width-unset",name:"width",value:0,checked:e.width===0}),C("label",{htmlFor:"width-unset",style:{paddingLeft:"8px"},children:"unset"})]}),Object.keys(s).map(l=>X("div",{children:[C("input",{onChange:()=>t({type:ye.UpdateWidth,value:s[l]}),type:"radio",id:`width-${l}`,name:"width",value:s[l],checked:e.width===s[l]}),X("label",{htmlFor:`width-${l}`,style:{paddingLeft:"8px"},children:[s[l],"px - ",l]})]},l)),C("p",{})]})]})})},dw=({globalState:e,dispatch:t})=>Object.keys(Ae.addons).every(n=>Ae.addons[n].enabled===!1)?null:C("header",{role:"banner",className:"ladle-addons",children:X("ul",{children:[Ae.addons.control.enabled&&Object.keys(e.control).length>0&&C(vC,{globalState:e,dispatch:t}),Ae.addons.theme.enabled&&C(A3,{globalState:e,dispatch:t}),Ae.addons.mode.enabled&&C(y1,{globalState:e,dispatch:t}),Ae.addons.width.enabled&&C(cw,{globalState:e,dispatch:t}),Ae.addons.rtl.enabled&&C(rw,{globalState:e,dispatch:t}),Ae.addons.source.enabled&&C(r1,{globalState:e,dispatch:t}),Ae.addons.a11y.enabled&&C(lw,{}),Ae.addons.ladle.enabled&&C(ow,{}),Ae.addons.control.enabled&&e.action.length>0&&C(tw,{globalState:e,dispatch:t})]})}),fw=(e,t)=>{switch(kt("Action dispatched",t),t.type){case ye.UpdateAll:return{...e,...t.value};case ye.UpdateMode:return{...e,mode:t.value};case ye.UpdateAction:const n={...e};return t.clear&&(n.action=[]),t.value?{...e,action:[...n.action,t.value]}:n;case ye.UpdateRtl:return{...e,rtl:t.value};case ye.UpdateSource:return{...e,source:t.value};case ye.UpdateStory:return{...e,story:t.value,control:{},controlInitialized:!1,width:0,action:[]};case ye.UpdateTheme:return{...e,theme:t.value};case ye.UpdateWidth:return{...e,width:t.value};case ye.UpdateControl:return{...e,control:t.value,controlInitialized:!0};case ye.UpdateControlIntialized:return{...e,controlInitialized:t.value};default:return e}},Xl=dd(Object.keys(fn),Ae.storyOrder);kt("Stories found",Xl);const Ns=(e,t)=>({theme:sh(e),mode:g1(e),story:ld(e,Ae.defaultStory),rtl:nw(e),source:t1(e),width:uw(e),control:Up(e,t?t.control:{}),action:[],controlInitialized:!1}),Q2=()=>{const e=Ns(location.search),[t,n]=E.useReducer(fw,e),r=E.useRef({});let o="";t.control&&Object.keys(t.control).forEach(a=>{t.control[a].type==="background"&&(o=t.control[a].value||"")}),E.useEffect(()=>{document.getElementsByClassName("ladle-background")[0].style.background=o},[o]),E.useEffect(()=>{r.current=t}),E.useEffect(()=>{window.ladleDispatch=n},[]);const i=r.current;return E.useEffect(()=>{var a,s;kt("Global state update",t),ig(location.search)||Is(t),Is(t),t.story!==i.story&&(document.title=`${cd(t.story)} | Ladle`),t.theme!==i.theme&&document.documentElement.setAttribute("data-theme",t.theme),t.rtl!==i.rtl&&(t.rtl?document.documentElement.setAttribute("dir","rtl"):document.documentElement.removeAttribute("dir")),t.story&&fn[t.story]&&fn[t.story].entry.endsWith(".mdx")?document.documentElement.setAttribute("data-mdx","true"):document.documentElement.removeAttribute("data-mdx"),t.mode!==i.mode&&(document.documentElement.setAttribute("data-mode",t.mode),t.mode===ft.Preview?(a=document.getElementById("ladle-root"))==null||a.removeAttribute("class"):(s=document.getElementById("ladle-root"))==null||s.setAttribute("class","ladle-wrapper"))},[t]),E.useEffect(()=>{const a=Eh.listen(({location:s,action:l})=>{if(l===kn.Pop){const u={};Object.keys(t.control).forEach(c=>{const f=Ns(s.search,t).control[c];u[c]={...t.control[c],value:f?f.value:t.control[c].defaultValue}});const d=Ns(s.search,t);n({type:ye.UpdateAll,value:{...d,control:u,controlInitialized:t.story===d.story}})}});return()=>a()},[t]),t.mode===ft.Preview?C(Q0.Provider,{value:{globalState:t,dispatch:n},children:C(j2,{globalState:t,dispatch:n})}):X(Q0.Provider,{value:{globalState:t,dispatch:n},children:[C("main",{className:"ladle-main",children:Xl.length>0?C(j2,{globalState:t,dispatch:n}):C(a1,{})}),C(m1,{stories:Xl,story:t.story,updateStory:a=>{Is({...t,story:a,control:{}}),n({type:ye.UpdateStory,value:a})}}),C(dw,{globalState:t,dispatch:n})]})},X2=document.getElementById("ladle-root");IA&&Tn.createRoot?Tn.createRoot(X2).render(C(Q2,{})):Tn.render(C(Q2,{}),X2);export{eh as C,Ii as F,mw as P,I as R,ih as T,pw as W,X as a,Qo as c,pn as g,C as j,E as r,gE as s,hw as u}; +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}const Eh=c1(),wh=e=>{Object.keys(e).forEach(t=>{const n=e[t],r=Ae.addons[t]?Ae.addons[t].defaultState:"$$LADLE_unknown";n===r&&delete e[t]})},Is=e=>{if(!e.controlInitialized)return;const t={mode:e.mode,rtl:e.rtl,source:e.source,story:e.story,theme:e.theme,width:e.width,control:e.control};wh(t),location.search!==Oi(t)&&(kt(`Updating URL to ${Oi(t)}`),Eh.push(Oi(t)))},Oi=e=>{wh(e);const t={};return Object.keys(e).forEach(n=>{n==="control"?Object.keys(e[n]).forEach(r=>{const o=e[n][r];if(o.type===ue.Action)return;let i=o.value,a=!1;i=encodeURI(typeof o.value=="string"?o.value:JSON.stringify(o.value));try{a=JSON.stringify(o.value)===JSON.stringify(o.defaultValue),!a&&JSON.stringify(i)!==JSON.stringify(o.defaultValue)&&(t[`arg-${r}`]=i)}catch{}}):t[n]=e[n]}),`?${zt.stringify(t)}`},_h=e=>e.isExpanded&&e.children&&e.children.length?_h(e.children[e.children.length-1]):e.id,bh=(e,t,n)=>{for(let r=0;r{for(let r=0;r{for(let n=0;n{for(let r=0;r{const t=e[e.length-1];return t.isExpanded&&t.children&&t.children.length?kh(t.children):t.id},to=(e,t)=>e.map(n=>{const r={...n};return r.id===t.id&&(r.isExpanded=!r.isExpanded),r.children&&r.children.length&&(r.children=to(r.children,t)),r}),h1=({stories:e,story:t,updateStory:n,searchActive:r,searchRef:o,setTreeRootRef:i})=>{const a=E.useRef({}),[s,l]=E.useState(V0(e,t,r));E.useEffect(()=>{l(V0(e,t,r))},[e.join(",")]);const[u,d]=E.useState(s.length?s[0].id:null),c=m=>{var v;m&&a&&a.current[m]&&((v=a.current[m])==null||v.focus()),d(m||s[0].id),!m&&o.current.focus()};return C("ul",{role:"tree",style:{marginInlineStart:"-6px"},ref:m=>i(m),children:C(Oh,{tree:s,fullTree:s,story:t,updateStory:n,onItemClick:m=>l(to(s,m)),selectedItemId:u,onKeyDownFn:(m,v)=>{switch(m.key){case"ArrowRight":m.preventDefault(),m.stopPropagation(),v.isExpanded?c(Dh(s,v.id)):l(to(s,v));break;case"ArrowLeft":m.preventDefault(),m.stopPropagation(),v.isExpanded?l(to(s,v)):c(bh(s,v.id,null));break;case"ArrowUp":m.preventDefault(),m.stopPropagation(),c(Sh(s,v.id,null));break;case"ArrowDown":m.preventDefault(),m.stopPropagation();const y=xh(s,v.id,null);y&&c(y);break;case" ":case"Enter":m.target.href||(m.preventDefault(),m.stopPropagation(),l(to(s,v)));break;case"Home":m.preventDefault(),m.stopPropagation(),s.length&&c(s[0].id);break;case"End":m.preventDefault(),m.stopPropagation(),c(kh(s));break}},treeItemRefs:a})})},Oh=({tree:e,fullTree:t,story:n,updateStory:r,onItemClick:o,onKeyDownFn:i,selectedItemId:a,treeItemRefs:s})=>C(E.Fragment,{children:e.map(l=>X("li",{onKeyDown:u=>i(u,l),"aria-expanded":l.isExpanded,title:l.name,tabIndex:l.id===a&&!l.isLinkable?0:-1,ref:l.isLinkable?void 0:u=>s.current[l.id]=u,role:"treeitem",className:l1({"ladle-linkable":l.isLinkable,"ladle-active":l.id===n}),style:l.isLinkable?{}:{marginTop:"0.5em"},children:[l.isLinkable?X("div",{style:{display:"flex"},children:[C(Tg,{}),C("a",{tabIndex:l.id===a?0:-1,ref:u=>s.current[l.id]=u,href:Oi({story:l.id}),onKeyDown:u=>n!==l.id&&i(u,l),onClick:u=>{!u.ctrlKey&&!u.metaKey&&(u.preventDefault(),n!==l.id&&r(l.id))},children:l.name})]}):X("div",{style:{display:"flex",cursor:"pointer"},title:l.name,onClick:()=>o(l),children:[C(Bg,{rotate:!l.isExpanded}),C("div",{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:l.name})]}),Object.keys(l.children).length>0&&l.isExpanded&&C("ul",{role:"group",children:C(Oh,{tree:l.children,fullTree:t,story:n,updateStory:r,selectedItemId:a,onKeyDownFn:i,onItemClick:o,treeItemRefs:s})})]},l.id))}),m1=({stories:e,story:t,updateStory:n})=>{const[r,o]=E.useState(""),i=E.useRef(null),a=E.useRef(null),s=d=>{(d.metaKey&&d.key==="p"||d.key==="/")&&(["input","textarea"].every(c=>d.target.tagName.toLowerCase()!==c)||d.metaKey)&&(i.current.focus(),d.preventDefault())};E.useEffect(()=>(document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}),[]);const l=r.toLocaleLowerCase().replace(new RegExp("\\s+","g"),"-"),u=e.filter(d=>d.includes(l));return X("nav",{role:"navigation",className:"ladle-aside",children:[C("input",{placeholder:"Search","aria-label":"Search stories",value:r,ref:i,onKeyDown:d=>{d.key==="ArrowDown"&&a.current.firstChild.focus()},onChange:d=>o(d.target.value)}),C(h1,{searchRef:i,stories:u,story:t,updateStory:n,searchActive:r!=="",setTreeRootRef:d=>a.current=d})]})},g1=e=>{switch(zt.parse(e).mode){case ft.Full:return ft.Full;case ft.Preview:return ft.Preview;default:return Ae.addons.mode.defaultState}},y1=({dispatch:e})=>{const t="Open fullscreen mode. It removes all other styles and wrappers.";return C("li",{children:X("button",{"aria-label":t,title:t,onClick:()=>e({type:ye.UpdateMode,value:ft.Preview}),type:"button",children:[C(kg,{}),C("span",{className:"ladle-addon-tooltip",children:t}),C("label",{children:"Open fullscreen mode"})]})})};var A1=Object.create,A0=Object.defineProperty,v1=Object.getOwnPropertyDescriptor,Th=Object.getOwnPropertyNames,C1=Object.getPrototypeOf,E1=Object.prototype.hasOwnProperty,v0=(e,t)=>function(){return t||(0,e[Th(e)[0]])((t={exports:{}}).exports,t),t.exports},w1=(e,t)=>{for(var n in t)A0(e,n,{get:t[n],enumerable:!0})},_1=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Th(t))!E1.call(e,o)&&o!==n&&A0(e,o,{get:()=>t[o],enumerable:!(r=v1(t,o))||r.enumerable});return e},b1=(e,t,n)=>(n=e!=null?A1(C1(e)):{},_1(t||!e||!e.__esModule?A0(n,"default",{value:e,enumerable:!0}):n,e)),S1=v0({"node_modules/is-object/index.js"(e,t){t.exports=function(r){return typeof r=="object"&&r!==null}}}),D1=v0({"node_modules/is-window/index.js"(e,t){t.exports=function(n){if(n==null)return!1;var r=Object(n);return r===r.window}}}),x1=v0({"node_modules/is-dom/index.js"(e,t){var n=S1(),r=D1();function o(i){return!n(i)||!r(window)||typeof window.Node!="function"?!1:typeof i.nodeType=="number"&&typeof i.nodeName=="string"}t.exports=o}}),fa={};w1(fa,{chromeDark:()=>Bh,chromeLight:()=>Rh});var Bh={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},Rh={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},Ih=E.createContext([{},()=>{}]),Fs={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},Ti=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...Fs},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...Fs},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...Fs}}),ql="chromeLight",Fh=E.createContext(Ti(fa[ql])),at=e=>E.useContext(Fh)[e],C0=e=>({theme:n=ql,...r})=>{const o=E.useMemo(()=>{switch(Object.prototype.toString.call(n)){case"[object String]":return Ti(fa[n]);case"[object Object]":return Ti(n);default:return Ti(fa[ql])}},[n]);return I.createElement(Fh.Provider,{value:o},I.createElement(e,{...r}))},k1=({expanded:e,styles:t})=>I.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"▶"),O1=E.memo(e=>{e={expanded:!0,nodeRenderer:({name:d})=>I.createElement("span",null,d),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};const{expanded:t,onClick:n,children:r,nodeRenderer:o,title:i,shouldShowArrow:a,shouldShowPlaceholder:s}=e,l=at("TreeNode"),u=o;return I.createElement("li",{"aria-expanded":t,role:"treeitem",style:l.treeNodeBase,title:i},I.createElement("div",{style:l.treeNodePreviewContainer,onClick:n},a||E.Children.count(r)>0?I.createElement(k1,{expanded:t,styles:l.treeNodeArrow}):s&&I.createElement("span",{style:l.treeNodePlaceholder}," "),I.createElement(u,{...e})),I.createElement("ol",{role:"group",style:l.treeNodeChildNodesContainer},t?r:void 0))}),pa="$",W2="*";function Bi(e,t){return!t(e).next().done}var T1=e=>Array.from({length:e},(t,n)=>[pa].concat(Array.from({length:n},()=>"*")).join(".")),B1=(e,t,n,r,o)=>{const i=[].concat(T1(r)).concat(n).filter(s=>typeof s=="string"),a=[];return i.forEach(s=>{const l=s.split("."),u=(d,c,f)=>{if(f===l.length){a.push(c);return}const m=l[f];if(f===0)Bi(d,t)&&(m===pa||m===W2)&&u(d,pa,f+1);else if(m===W2)for(const{name:v,data:y}of t(d))Bi(y,t)&&u(y,`${c}.${v}`,f+1);else{const v=d[m];Bi(v,t)&&u(v,`${c}.${m}`,f+1)}};u(e,"",0)}),a.reduce((s,l)=>(s[l]=!0,s),{...o})},Nh=E.memo(e=>{const{data:t,dataIterator:n,path:r,depth:o,nodeRenderer:i}=e,[a,s]=E.useContext(Ih),l=Bi(t,n),u=!!a[r],d=E.useCallback(()=>l&&s(c=>({...c,[r]:!u})),[l,s,r,u]);return I.createElement(O1,{expanded:u,onClick:d,shouldShowArrow:l,shouldShowPlaceholder:o>0,nodeRenderer:i,...e},u?[...n(t)].map(({name:c,data:f,...m})=>I.createElement(Nh,{name:c,data:f,depth:o+1,path:`${r}.${c}`,key:c,dataIterator:n,nodeRenderer:i,...m})):null)}),Lh=E.memo(({name:e,data:t,dataIterator:n,nodeRenderer:r,expandPaths:o,expandLevel:i})=>{const a=at("TreeView"),s=E.useState({}),[,l]=s;return E.useLayoutEffect(()=>l(u=>B1(t,n,o,i,u)),[t,n,o,i]),I.createElement(Ih.Provider,{value:s},I.createElement("ol",{role:"tree",style:a.treeViewOutline},I.createElement(Nh,{name:e,data:t,dataIterator:n,depth:0,path:pa,nodeRenderer:r})))}),E0=({name:e,dimmed:t=!1,styles:n={}})=>{const r=at("ObjectName"),o={...r.base,...t?r.dimmed:{},...n};return I.createElement("span",{style:o},e)},go=({object:e,styles:t})=>{const n=at("ObjectValue"),r=o=>({...n[o],...t});switch(typeof e){case"bigint":return I.createElement("span",{style:r("objectValueNumber")},String(e),"n");case"number":return I.createElement("span",{style:r("objectValueNumber")},String(e));case"string":return I.createElement("span",{style:r("objectValueString")},'"',e,'"');case"boolean":return I.createElement("span",{style:r("objectValueBoolean")},String(e));case"undefined":return I.createElement("span",{style:r("objectValueUndefined")},"undefined");case"object":return e===null?I.createElement("span",{style:r("objectValueNull")},"null"):e instanceof Date?I.createElement("span",null,e.toString()):e instanceof RegExp?I.createElement("span",{style:r("objectValueRegExp")},e.toString()):Array.isArray(e)?I.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?I.createElement("span",null,`Buffer[${e.length}]`):I.createElement("span",null,e.constructor.name):I.createElement("span",null,"Object");case"function":return I.createElement("span",null,I.createElement("span",{style:r("objectValueFunctionPrefix")},"ƒ "),I.createElement("span",{style:r("objectValueFunctionName")},e.name,"()"));case"symbol":return I.createElement("span",{style:r("objectValueSymbol")},e.toString());default:return I.createElement("span",null)}},Ph=Object.prototype.hasOwnProperty,R1=Object.prototype.propertyIsEnumerable;function Yl(e,t){const n=Object.getOwnPropertyDescriptor(e,t);if(n.get)try{return n.get()}catch{return n.get}return e[t]}function G2(e,t){return e.length===0?[]:e.slice(1).reduce((n,r)=>n.concat([t,r]),[e[0]])}var Ql=({data:e})=>{const t=at("ObjectPreview"),n=e;if(typeof n!="object"||n===null||n instanceof Date||n instanceof RegExp)return I.createElement(go,{object:n});if(Array.isArray(n)){const r=t.arrayMaxProperties,o=n.slice(0,r).map((a,s)=>I.createElement(go,{key:s,object:a}));n.length>r&&o.push(I.createElement("span",{key:"ellipsis"},"…"));const i=n.length;return I.createElement(I.Fragment,null,I.createElement("span",{style:t.objectDescription},i===0?"":`(${i}) `),I.createElement("span",{style:t.preview},"[",G2(o,", "),"]"))}else{const r=t.objectMaxProperties,o=[];for(const a in n)if(Ph.call(n,a)){let s;o.length===r-1&&Object.keys(n).length>r&&(s=I.createElement("span",{key:"ellipsis"},"…"));const l=Yl(n,a);if(o.push(I.createElement("span",{key:a},I.createElement(E0,{name:a||'""'}),": ",I.createElement(go,{object:l}),s)),s)break}const i=n.constructor?n.constructor.name:"Object";return I.createElement(I.Fragment,null,I.createElement("span",{style:t.objectDescription},i==="Object"?"":`${i} `),I.createElement("span",{style:t.preview},"{",G2(o,", "),"}"))}},I1=({name:e,data:t})=>typeof e=="string"?I.createElement("span",null,I.createElement(E0,{name:e}),I.createElement("span",null,": "),I.createElement(Ql,{data:t})):I.createElement(Ql,{data:t}),F1=({name:e,data:t,isNonenumerable:n=!1})=>{const r=t;return I.createElement("span",null,typeof e=="string"?I.createElement(E0,{name:e,dimmed:n}):I.createElement(Ql,{data:e}),I.createElement("span",null,": "),I.createElement(go,{object:r}))},N1=(e,t)=>function*(r){if(!(typeof r=="object"&&r!==null||typeof r=="function"))return;const i=Array.isArray(r);if(!i&&r[Symbol.iterator]){let a=0;for(const s of r){if(Array.isArray(s)&&s.length===2){const[l,u]=s;yield{name:l,data:u}}else yield{name:a.toString(),data:s};a++}}else{const a=Object.getOwnPropertyNames(r);t===!0&&!i?a.sort():typeof t=="function"&&a.sort(t);for(const s of a)if(R1.call(r,s)){const l=Yl(r,s);yield{name:s||'""',data:l}}else if(e){let l;try{l=Yl(r,s)}catch{}l!==void 0&&(yield{name:s,data:l,isNonenumerable:!0})}e&&r!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(r),isNonenumerable:!0})}},L1=({depth:e,name:t,data:n,isNonenumerable:r})=>e===0?I.createElement(I1,{name:t,data:n}):I.createElement(F1,{name:t,data:n,isNonenumerable:r}),P1=({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:n,...r})=>{const o=N1(e,t),i=n||L1;return I.createElement(Lh,{nodeRenderer:i,dataIterator:o,...r})},$1=C0(P1);function M1(e){if(typeof e=="object"){let t=[];if(Array.isArray(e)){const r=e.length;t=[...Array(r).keys()]}else e!==null&&(t=Object.keys(e));const n=t.reduce((r,o)=>{const i=e[o];return typeof i=="object"&&i!==null&&Object.keys(i).reduce((s,l)=>(s.includes(l)||s.push(l),s),r),r},[]);return{rowHeaders:t,colHeaders:n}}}var j1=({rows:e,columns:t,rowsData:n})=>{const r=at("TableInspectorDataContainer"),o=at("TableInspectorLeftBorder");return I.createElement("div",{style:r.div},I.createElement("table",{style:r.table},I.createElement("colgroup",null),I.createElement("tbody",null,e.map((i,a)=>I.createElement("tr",{key:i,style:r.tr},I.createElement("td",{style:{...r.td,...o.none}},i),t.map(s=>{const l=n[a];return typeof l=="object"&&l!==null&&Ph.call(l,s)?I.createElement("td",{key:s,style:{...r.td,...o.solid}},I.createElement(go,{object:l[s]})):I.createElement("td",{key:s,style:{...r.td,...o.solid}})}))))))},z1=e=>I.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},e.children),U1=({sortAscending:e})=>{const t=at("TableInspectorSortIcon"),n=e?"▲":"▼";return I.createElement("div",{style:t},n)},q2=({sortAscending:e=!1,sorted:t=!1,onClick:n=void 0,borderStyle:r={},children:o,...i})=>{const a=at("TableInspectorTH"),[s,l]=E.useState(!1),u=E.useCallback(()=>l(!0),[]),d=E.useCallback(()=>l(!1),[]);return I.createElement("th",{...i,style:{...a.base,...r,...s?a.base[":hover"]:{}},onMouseEnter:u,onMouseLeave:d,onClick:n},I.createElement("div",{style:a.div},o),t&&I.createElement(z1,null,I.createElement(U1,{sortAscending:e})))},V1=({indexColumnText:e="(index)",columns:t=[],sorted:n,sortIndexColumn:r,sortColumn:o,sortAscending:i,onTHClick:a,onIndexTHClick:s})=>{const l=at("TableInspectorHeaderContainer"),u=at("TableInspectorLeftBorder");return I.createElement("div",{style:l.base},I.createElement("table",{style:l.table},I.createElement("tbody",null,I.createElement("tr",null,I.createElement(q2,{borderStyle:u.none,sorted:n&&r,sortAscending:i,onClick:s},e),t.map(d=>I.createElement(q2,{borderStyle:u.solid,key:d,sorted:n&&o===d,sortAscending:i,onClick:a.bind(null,d)},d))))))},H1=({data:e,columns:t})=>{const n=at("TableInspector"),[{sorted:r,sortIndexColumn:o,sortColumn:i,sortAscending:a},s]=E.useState({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),l=E.useCallback(()=>{s(({sortIndexColumn:v,sortAscending:y})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:v?!y:!0}))},[]),u=E.useCallback(v=>{s(({sortColumn:y,sortAscending:p})=>({sorted:!0,sortIndexColumn:!1,sortColumn:v,sortAscending:v===y?!p:!0}))},[]);if(typeof e!="object"||e===null)return I.createElement("div",null);let{rowHeaders:d,colHeaders:c}=M1(e);t!==void 0&&(c=t);let f=d.map(v=>e[v]),m;if(i!==void 0?m=f.map((v,y)=>typeof v=="object"&&v!==null?[v[i],y]:[void 0,y]):o&&(m=d.map((v,y)=>[d[y],y])),m!==void 0){const v=(p,h)=>(g,w)=>{const _=p(g),L=p(w),O=typeof _,B=typeof L,R=(W,K)=>WK?1:0;let F;if(O===B)F=R(_,L);else{const W={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};F=R(W[O],W[B])}return h||(F=-F),F},y=m.sort(v(p=>p[0],a)).map(p=>p[1]);d=y.map(p=>d[p]),f=y.map(p=>f[p])}return I.createElement("div",{style:n.base},I.createElement(V1,{columns:c,sorted:r,sortIndexColumn:o,sortColumn:i,sortAscending:a,onTHClick:u,onIndexTHClick:l}),I.createElement(j1,{rows:d,columns:c,rowsData:f}))},W1=C0(H1),G1=80,$h=e=>e.childNodes.length===0||e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.lengthI.createElement("span",{style:n.base},"<",I.createElement("span",{style:n.tagName},e),(()=>{if(t){const r=[];for(let o=0;o"),Y2=({tagName:e,isChildNode:t=!1,styles:n})=>I.createElement("span",{style:Object.assign({},n.base,t&&n.offsetLeft)},""),Y1={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},Q1=({isCloseTag:e,data:t,expanded:n})=>{const r=at("DOMNodePreview");if(e)return I.createElement(Y2,{styles:r.htmlCloseTag,isChildNode:!0,tagName:t.tagName});switch(t.nodeType){case Node.ELEMENT_NODE:return I.createElement("span",null,I.createElement(q1,{tagName:t.tagName,attributes:t.attributes,styles:r.htmlOpenTag}),$h(t)?t.textContent:!n&&"…",!n&&I.createElement(Y2,{tagName:t.tagName,styles:r.htmlCloseTag}));case Node.TEXT_NODE:return I.createElement("span",null,t.textContent);case Node.CDATA_SECTION_NODE:return I.createElement("span",null,"");case Node.COMMENT_NODE:return I.createElement("span",{style:r.htmlComment},"");case Node.PROCESSING_INSTRUCTION_NODE:return I.createElement("span",null,t.nodeName);case Node.DOCUMENT_TYPE_NODE:return I.createElement("span",{style:r.htmlDoctype},"");case Node.DOCUMENT_NODE:return I.createElement("span",null,t.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return I.createElement("span",null,t.nodeName);default:return I.createElement("span",null,Y1[t.nodeType])}},X1=function*(e){if(e&&e.childNodes){if($h(e))return;for(let n=0;nI.createElement(Lh,{nodeRenderer:Q1,dataIterator:X1,...e}),J1=C0(Z1),K1=b1(x1()),ew=({table:e=!1,data:t,...n})=>e?I.createElement(W1,{data:t,...n}):(0,K1.default)(t)?I.createElement(J1,{data:t,...n}):I.createElement($1,{data:t,...n});const tw=({dispatch:e,globalState:t})=>{const[n,r]=E.useState(!1),o="Log of events triggered by user.";return C("li",{children:X("button",{"aria-label":o,title:o,onClick:()=>r(!0),className:n?"ladle-active":"","data-testid":"addon-action",type:"button",children:[C(Lg,{}),C("span",{className:"ladle-addon-tooltip",children:o}),C("label",{children:"Actions"}),t.action.length?C("div",{className:"ladle-badge",children:t.action.length}):null,X(Tr,{maxWidth:"60em",isOpen:n,close:()=>r(!1),label:"Dialog with a log of events triggered by user.",children:[t.action.map((i,a)=>C(ew,{table:!1,sortObjectKeys:!0,theme:{...t.theme===Le.Light?Rh:Bh,BASE_BACKGROUND_COLOR:"var(--ladle-bg-color-secondary)"},showNonenumerable:!1,name:i.name,data:i.event},a)),C("button",{onClick:()=>{e({type:ye.UpdateAction,clear:!0,value:void 0})},type:"button",children:"Clear actions"})]})]})})},nw=e=>{const t=zt.parse(e).rtl;return t==="true"?!0:t==="false"?!1:Ae.addons.rtl.defaultState},rw=({dispatch:e,globalState:t})=>{const n="Switch text direction to right to left.",r="Switch text direction to left to right.";return C("li",{children:X("button",{"aria-label":t.rtl?r:n,title:t.rtl?r:n,className:t.rtl?"ladle-active":"",onClick:()=>e({type:ye.UpdateRtl,value:!t.rtl}),type:"button",children:[C(Dg,{}),C("span",{className:"ladle-addon-tooltip",children:t.rtl?r:n}),C("label",{children:"Right to left"})]})})},ow=()=>{const[e,t]=E.useState(!1),n="Get more information about Ladle.";return C("li",{children:X("button",{"aria-label":n,title:n,onClick:()=>t(!0),className:e?"ladle-active":"",type:"button",children:[C(Sg,{}),C("span",{className:"ladle-addon-tooltip",children:n}),C("label",{children:"About Ladle"}),X(Tr,{isOpen:e,close:()=>t(!1),label:"Dialog with information about Ladle.",children:[C("p",{children:"Ladle is a modern and fast playground for React components powered by Vite. For more information:"}),X("ul",{children:[C("li",{children:C("a",{href:"https://www.ladle.dev/",children:"Ladle.dev"})}),C("li",{children:C("a",{href:"https://github.com/tajo/ladle",children:"GitHub"})}),C("li",{children:C("a",{href:"https://ladle.dev/new",children:"StackBlitz"})}),C("li",{children:C("a",{href:"https://discord.gg/H6FSHjyW7e",children:"Discord"})})]}),C("p",{children:C("strong",{children:"Shortcuts"})}),C("ul",{children:X("li",{children:[C(Er,{children:"/"})," or ",C(Er,{children:"cmd+p"})," - search stories"]})})]})]})})},iw=async(e,t,n)=>{const r=await ne(()=>import("./axe-4ad1240f.js").then(o=>o.a),[]);try{const o=await r.default.run(document.getElementsByTagName("main"));e(o.violations),t(!0),n&&n.setAttribute("aria-hidden","true")}catch{}},aw=({violation:e})=>{const[t,n]=E.useState(!1);return X("li",{children:[e.help," (",e.nodes.length,")."," ",t?X(Ii,{children:[X("ul",{children:[X("li",{children:["ID: ",e.id]}),X("li",{children:["Impact: ",e.impact]}),X("li",{children:["Description: ",e.description]}),C("li",{children:C("a",{href:e.helpUrl,children:"Documentation"})})]}),C("p",{children:"Violating nodes:"}),C("ul",{children:e.nodes.map(r=>C("li",{children:C(Er,{children:r.html})},r.html))}),C("p",{children:C("a",{href:"#",onClick:()=>n(!1),children:"Hide details"})})]}):C("a",{href:"#",onClick:()=>n(!0),children:"Show details"})]})},sw=({reportFinished:e,violations:t})=>e?t.length===0?X("p",{children:["There are no ",C("a",{href:"https://github.com/dequelabs/axe-core",children:"axe"})," ","accessibility violations. Good job!"]}):X(Ii,{children:[X("h3",{children:["There are ",t.length," ",C("a",{href:"https://github.com/dequelabs/axe-core",children:"axe"})," accessibility violations"]}),C("ul",{children:t.map(n=>C(aw,{violation:n},n.id))})]}):C("p",{children:"Report is loading..."}),lw=()=>{const[e,t]=E.useState(!1),[n,r]=E.useState(!1),[o,i]=E.useState([]);E.useEffect(()=>{},[]);const a="Show accessibility report.";return C("li",{children:X("button",{"aria-label":a,"data-testid":"addon-a11y",title:a,onClick:()=>{iw(i,r,null).catch(console.error),setTimeout(()=>t(!e),100)},className:e?"a11y-active":"",type:"button",children:[C(Fg,{}),C("span",{className:"ladle-addon-tooltip",children:a}),C("label",{children:"Accessibility report"}),o.length?C("div",{className:"ladle-badge",children:o.length}):null,C(Tr,{isOpen:e,close:()=>t(!1),label:"Dialog with the story accessibility report.",children:C(sw,{reportFinished:n,violations:o})})]})})},uw=e=>{const t=zt.parse(e).width;let n=0;return Object.keys(Ae.addons.width.options).forEach(r=>{(r===t||parseInt(t,10)===Ae.addons.width.options[r])&&(n=Ae.addons.width.options[r])}),n!==0?n:Ae.addons.width.defaultState},cw=({globalState:e,dispatch:t})=>{const n="Change the story viewport.",[r,o]=E.useState(!1),i=fn[e.story];let a=i&&i.meta?i.meta.meta.width:0,s=Ae.addons.width.options;return Object.keys(s).forEach(l=>{l===a&&(a=s[l])}),a&&!Object.values(s).includes(a)&&(s={custom:a,...s}),C("li",{children:X("button",{"aria-label":n,"data-testid":"addon-width",title:n,onClick:()=>o(!0),className:r?"width-active":"",type:"button",children:[C(Ng,{}),C("span",{className:"ladle-addon-tooltip",children:n}),C("label",{children:"Set story width"}),X(Tr,{isOpen:r,close:()=>o(!1),label:"Dialog with the story width selector.",children:[C("p",{children:"Select story width"}),X("div",{children:[C("input",{onChange:()=>t({type:ye.UpdateWidth,value:0}),type:"radio",id:"width-unset",name:"width",value:0,checked:e.width===0}),C("label",{htmlFor:"width-unset",style:{paddingLeft:"8px"},children:"unset"})]}),Object.keys(s).map(l=>X("div",{children:[C("input",{onChange:()=>t({type:ye.UpdateWidth,value:s[l]}),type:"radio",id:`width-${l}`,name:"width",value:s[l],checked:e.width===s[l]}),X("label",{htmlFor:`width-${l}`,style:{paddingLeft:"8px"},children:[s[l],"px - ",l]})]},l)),C("p",{})]})]})})},dw=({globalState:e,dispatch:t})=>Object.keys(Ae.addons).every(n=>Ae.addons[n].enabled===!1)?null:C("header",{role:"banner",className:"ladle-addons",children:X("ul",{children:[Ae.addons.control.enabled&&Object.keys(e.control).length>0&&C(vC,{globalState:e,dispatch:t}),Ae.addons.theme.enabled&&C(A3,{globalState:e,dispatch:t}),Ae.addons.mode.enabled&&C(y1,{globalState:e,dispatch:t}),Ae.addons.width.enabled&&C(cw,{globalState:e,dispatch:t}),Ae.addons.rtl.enabled&&C(rw,{globalState:e,dispatch:t}),Ae.addons.source.enabled&&C(r1,{globalState:e,dispatch:t}),Ae.addons.a11y.enabled&&C(lw,{}),Ae.addons.ladle.enabled&&C(ow,{}),Ae.addons.control.enabled&&e.action.length>0&&C(tw,{globalState:e,dispatch:t})]})}),fw=(e,t)=>{switch(kt("Action dispatched",t),t.type){case ye.UpdateAll:return{...e,...t.value};case ye.UpdateMode:return{...e,mode:t.value};case ye.UpdateAction:const n={...e};return t.clear&&(n.action=[]),t.value?{...e,action:[...n.action,t.value]}:n;case ye.UpdateRtl:return{...e,rtl:t.value};case ye.UpdateSource:return{...e,source:t.value};case ye.UpdateStory:return{...e,story:t.value,control:{},controlInitialized:!1,width:0,action:[]};case ye.UpdateTheme:return{...e,theme:t.value};case ye.UpdateWidth:return{...e,width:t.value};case ye.UpdateControl:return{...e,control:t.value,controlInitialized:!0};case ye.UpdateControlIntialized:return{...e,controlInitialized:t.value};default:return e}},Xl=dd(Object.keys(fn),Ae.storyOrder);kt("Stories found",Xl);const Ns=(e,t)=>({theme:sh(e),mode:g1(e),story:ld(e,Ae.defaultStory),rtl:nw(e),source:t1(e),width:uw(e),control:Up(e,t?t.control:{}),action:[],controlInitialized:!1}),Q2=()=>{const e=Ns(location.search),[t,n]=E.useReducer(fw,e),r=E.useRef({});let o="";t.control&&Object.keys(t.control).forEach(a=>{t.control[a].type==="background"&&(o=t.control[a].value||"")}),E.useEffect(()=>{document.getElementsByClassName("ladle-background")[0].style.background=o},[o]),E.useEffect(()=>{r.current=t}),E.useEffect(()=>{window.ladleDispatch=n},[]);const i=r.current;return E.useEffect(()=>{var a,s;kt("Global state update",t),ig(location.search)||Is(t),Is(t),t.story!==i.story&&(document.title=`${cd(t.story)} | Ladle`),t.theme!==i.theme&&document.documentElement.setAttribute("data-theme",t.theme),t.rtl!==i.rtl&&(t.rtl?document.documentElement.setAttribute("dir","rtl"):document.documentElement.removeAttribute("dir")),t.story&&fn[t.story]&&fn[t.story].entry.endsWith(".mdx")?document.documentElement.setAttribute("data-mdx","true"):document.documentElement.removeAttribute("data-mdx"),t.mode!==i.mode&&(document.documentElement.setAttribute("data-mode",t.mode),t.mode===ft.Preview?(a=document.getElementById("ladle-root"))==null||a.removeAttribute("class"):(s=document.getElementById("ladle-root"))==null||s.setAttribute("class","ladle-wrapper"))},[t]),E.useEffect(()=>{const a=Eh.listen(({location:s,action:l})=>{if(l===kn.Pop){const u={};Object.keys(t.control).forEach(c=>{const f=Ns(s.search,t).control[c];u[c]={...t.control[c],value:f?f.value:t.control[c].defaultValue}});const d=Ns(s.search,t);n({type:ye.UpdateAll,value:{...d,control:u,controlInitialized:t.story===d.story}})}});return()=>a()},[t]),t.mode===ft.Preview?C(Q0.Provider,{value:{globalState:t,dispatch:n},children:C(j2,{globalState:t,dispatch:n})}):X(Q0.Provider,{value:{globalState:t,dispatch:n},children:[C("main",{className:"ladle-main",children:Xl.length>0?C(j2,{globalState:t,dispatch:n}):C(a1,{})}),C(m1,{stories:Xl,story:t.story,updateStory:a=>{Is({...t,story:a,control:{}}),n({type:ye.UpdateStory,value:a})}}),C(dw,{globalState:t,dispatch:n})]})},X2=document.getElementById("ladle-root");IA&&Tn.createRoot?Tn.createRoot(X2).render(C(Q2,{})):Tn.render(C(Q2,{}),X2);export{eh as C,Ii as F,mw as P,I as R,ih as T,pw as W,X as a,Qo as c,pn as g,C as j,E as r,gE as s,hw as u}; diff --git a/assets/index-b94bf76d.js b/assets/index-37c23baf.js similarity index 91% rename from assets/index-b94bf76d.js rename to assets/index-37c23baf.js index c266592..81c97ac 100644 --- a/assets/index-b94bf76d.js +++ b/assets/index-37c23baf.js @@ -1,4 +1,4 @@ -import{g as p}from"./index-6aae8bc2.js";var f={exports:{}};/*! +import{g as p}from"./index-12e12f28.js";var f={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames diff --git a/assets/index.es-394f7b39.js b/assets/index.es-42e1cbb5.js similarity index 99% rename from assets/index.es-394f7b39.js rename to assets/index.es-42e1cbb5.js index acadd62..8c343c8 100644 --- a/assets/index.es-394f7b39.js +++ b/assets/index.es-42e1cbb5.js @@ -1,4 +1,4 @@ -import{P as b,R as zn}from"./index-6aae8bc2.js";function un(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);n&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,a)}return e}function u(t){for(var n=1;nt.length)&&(n=t.length);for(var e=0,a=new Array(n);et.length)&&(n=t.length);for(var e=0,a=new Array(n);e-1;r--){var i=e[r],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(a=i)}return h.head.insertBefore(n,a),t}}var Ye="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function st(){for(var t=12,n="";t-- >0;)n+=Ye[Math.random()*62|0];return n}function Z(t){for(var n=[],e=(t||[]).length>>>0;e--;)n[e]=t[e];return n}function en(t){return t.classList?Z(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(n){return n})}function Kn(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function $e(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,'="').concat(Kn(t[e]),'" ')},"").trim()}function St(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,": ").concat(t[e].trim(),";")},"")}function an(t){return t.size!==_.size||t.x!==_.x||t.y!==_.y||t.rotate!==_.rotate||t.flipX||t.flipY}function Ue(t){var n=t.transform,e=t.containerWidth,a=t.iconWidth,r={transform:"translate(".concat(e/2," 256)")},i="translate(".concat(n.x*32,", ").concat(n.y*32,") "),o="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)"),f={transform:"".concat(i," ").concat(o," ").concat(s)},c={transform:"translate(".concat(a/2*-1," -256)")};return{outer:r,inner:f,path:c}}function We(t){var n=t.transform,e=t.width,a=e===void 0?zt:e,r=t.height,i=r===void 0?zt:r,o=t.startCentered,s=o===void 0?!1:o,f="";return s&&Wn?f+="translate(".concat(n.x/j-a/2,"em, ").concat(n.y/j-i/2,"em) "):s?f+="translate(calc(-50% + ".concat(n.x/j,"em), calc(-50% + ").concat(n.y/j,"em)) "):f+="translate(".concat(n.x/j,"em, ").concat(n.y/j,"em) "),f+="scale(".concat(n.size/j*(n.flipX?-1:1),", ").concat(n.size/j*(n.flipY?-1:1),") "),f+="rotate(".concat(n.rotate,"deg) "),f}var He=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; diff --git a/assets/theme-500b2181.js b/assets/theme-e6ec1032.js similarity index 98% rename from assets/theme-500b2181.js rename to assets/theme-e6ec1032.js index 535cff7..18de57a 100644 --- a/assets/theme-500b2181.js +++ b/assets/theme-e6ec1032.js @@ -1,4 +1,4 @@ -import{C as o}from"./index-6aae8bc2.js";const i={red:"#ca2026",danger:"#c2002f",darkRed:"#c22032",lightRed:"#e298a0",green:"#77af42",lightGreen:"#8bc753",darkGreen:"#63a524",paleYellow:"#ffffbb",teal:"#0dc0de",blue:"#007da4",mediumBlue:"#026AA1",lightBlue:"#34bdd8",neutralLightBlue:"#0dc0dc",tangerine:"#ffbd3e",gray:"#5e5e5e",darkGray:"#757575",pale:"#d5d5d5",light:"#e4e4e4",white:"#ffffff",neutralLightest:"#f9f9f9",neutralCool:"#f6f7f8",neutralBright:"#f5f5f5",neutralLighter:"#f1f1f1",neutralLight:"#e5e5e5",neutralMedium:"#a0a0a0",neutral:"#818181",neutralThin:"#6f6f6f",neutralDark:"#5f6163",neutralFeedback:"#555",neutralDarker:"#424242",black:"#000000",orange:"#D4450C"},a={palette:i,answer:{neutral:i.neutralThin,hover:"#026AA1",checked:"#026AA1",correct:"#0D7741",incorrect:"#C22032"},popover:{arrowOuterColor:"rgba(0, 0, 0, 0.25)",borderColor:"rgba(0, 0, 0, 0.2)"},card:{header:{background:"#daf3f8"},body:{background:"#fdfdfd"}},button:{background:i.orange,backgroundHover:"#E74B0D",backgroundActive:"#C5400B"},freeResponse:{color:i.neutralDarker,background:i.neutralLighter}},e={answer:{verticalSpacing:"1rem",horizontalSpacing:"1rem",horizontalBuffer:"2.5rem",bubbleSize:"3.6rem",labelSpacing:"6.5rem",feedback:{popover:{horizontalSpacing:"1.1rem",verticalSpacing:"0.9rem",maxWidth:"370px"}}},popover:{arrow:{width:"16px",height:"8px",edgeDistance:"9px"},horizontalSpacing:"0.8rem",verticalSpacing:"1rem",horizontalBuffer:"4rem",borderWidth:"1px",maxWidth:"325px"},card:{spacing:"2rem"}},l={mobile:600,tablet:999,desktop:1e3,large:1600},t={mobile(...r){return o`@media(max-width: ${l.mobile}px) { ${o(...r)} }`},tablet(...r){return o`@media(max-width: ${l.tablet}px) { ${o(...r)} }`},desktop(...r){return o`@media(min-width: ${l.desktop}px) { ${o(...r)} }`},only:{mobile(...r){return o`@media(max-width: ${l.mobile}px) { ${o(...r)} }`}},margins:{mobile:"8px",tablet:"24px"}},d={answer:"0.1s ease-in-out"},n={answer:()=>o` +import{C as o}from"./index-12e12f28.js";const i={red:"#ca2026",danger:"#c2002f",darkRed:"#c22032",lightRed:"#e298a0",green:"#77af42",lightGreen:"#8bc753",darkGreen:"#63a524",paleYellow:"#ffffbb",teal:"#0dc0de",blue:"#007da4",mediumBlue:"#026AA1",lightBlue:"#34bdd8",neutralLightBlue:"#0dc0dc",tangerine:"#ffbd3e",gray:"#5e5e5e",darkGray:"#757575",pale:"#d5d5d5",light:"#e4e4e4",white:"#ffffff",neutralLightest:"#f9f9f9",neutralCool:"#f6f7f8",neutralBright:"#f5f5f5",neutralLighter:"#f1f1f1",neutralLight:"#e5e5e5",neutralMedium:"#a0a0a0",neutral:"#818181",neutralThin:"#6f6f6f",neutralDark:"#5f6163",neutralFeedback:"#555",neutralDarker:"#424242",black:"#000000",orange:"#D4450C"},a={palette:i,answer:{neutral:i.neutralThin,hover:"#026AA1",checked:"#026AA1",correct:"#0D7741",incorrect:"#C22032"},popover:{arrowOuterColor:"rgba(0, 0, 0, 0.25)",borderColor:"rgba(0, 0, 0, 0.2)"},card:{header:{background:"#daf3f8"},body:{background:"#fdfdfd"}},button:{background:i.orange,backgroundHover:"#E74B0D",backgroundActive:"#C5400B"},freeResponse:{color:i.neutralDarker,background:i.neutralLighter}},e={answer:{verticalSpacing:"1rem",horizontalSpacing:"1rem",horizontalBuffer:"2.5rem",bubbleSize:"3.6rem",labelSpacing:"6.5rem",feedback:{popover:{horizontalSpacing:"1.1rem",verticalSpacing:"0.9rem",maxWidth:"370px"}}},popover:{arrow:{width:"16px",height:"8px",edgeDistance:"9px"},horizontalSpacing:"0.8rem",verticalSpacing:"1rem",horizontalBuffer:"4rem",borderWidth:"1px",maxWidth:"325px"},card:{spacing:"2rem"}},l={mobile:600,tablet:999,desktop:1e3,large:1600},t={mobile(...r){return o`@media(max-width: ${l.mobile}px) { ${o(...r)} }`},tablet(...r){return o`@media(max-width: ${l.tablet}px) { ${o(...r)} }`},desktop(...r){return o`@media(min-width: ${l.desktop}px) { ${o(...r)} }`},only:{mobile(...r){return o`@media(max-width: ${l.mobile}px) { ${o(...r)} }`}},margins:{mobile:"8px",tablet:"24px"}},d={answer:"0.1s ease-in-out"},n={answer:()=>o` .answer-label { display: inline-flex; } diff --git a/index.html b/index.html index d06621a..1ecd116 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ /> Ladle - +