"use strict";(globalThis.webpackChunkacadlix=globalThis.webpackChunkacadlix||[]).push([["admin_quiz_free_answer_sheet_options"],{"./src/free/admin/quiz/tabs/result/AnswerSheetOptions.js":(e,s,t)=>{t.r(s),t.d(s,{default:()=>h}),t("react");var i=t("./node_modules/@mui/material/esm/Grid/Grid.js"),a=t("./src/components/GridItem1.js"),n=t("./node_modules/@mui/material/esm/FormControlLabel/FormControlLabel.js"),l=t("./src/components/CustomSwitch.js"),r=t("./src/components/CustomTypography.js"),o=t("@wordpress/i18n"),d=t("./src/components/CustomFeatureTooltip.js"),c=t("./src/components/CustomTextField.js"),m=t("react/jsx-runtime");const h=e=>{var s,t;return(0,m.jsxs)(i.A,{container:!0,spacing:3,alignItems:"center",children:[(0,m.jsx)(a.A,{size:{xs:12,sm:6,lg:3},children:(0,m.jsxs)(r.A,{children:[(0,o.__)("Hide Answer Sheet","acadlix"),(0,m.jsx)(d.A,{plan:"open",msg:(0,o.__)("This will hide the answer sheet button on frontend.","acadlix"),placement:"right-start",redirectTo:`${acadlixOptions?.acadlix_docs_url}quiz-management/result-options/#hide-answer-sheet`})]})}),(0,m.jsx)(a.A,{size:{xs:12,sm:6,lg:3},children:(0,m.jsx)(n.A,{control:(0,m.jsx)(l.A,{}),checked:null!==(s=e?.watch("meta.quiz_settings.hide_answer_sheet"))&&void 0!==s&&s,onChange:s=>{e?.setValue("meta.quiz_settings.hide_answer_sheet",s?.target?.checked,{shouldDirty:!0})},label:(0,o.__)("Activate","acadlix"),disabled:"advance_mode"===e?.watch("meta.mode")&&"advance_panel"!==e?.watch("meta.advance_mode_type")})}),(0,m.jsx)(a.A,{size:{xs:12,sm:6,lg:3},children:(0,m.jsxs)(r.A,{children:[(0,o.__)("Min % to view answer sheet","acadlix"),(0,m.jsx)(d.A,{plan:"open",msg:(0,o.__)("This will disable the answer sheet on frontend, if the user hasn't achieved the minimum percentage required.","acadlix")})]})}),(0,m.jsx)(a.A,{size:{xs:12,sm:6,lg:3},children:(0,m.jsx)(c.A,{fullWidth:!0,size:"small",label:(0,o.__)("Minimum % to view answer sheet","acadlix"),type:"number",value:null!==(t=e?.watch("meta.quiz_settings.min_percentage_to_view_answer_sheet"))&&void 0!==t?t:0,onChange:s=>{e?.setValue("meta.quiz_settings.min_percentage_to_view_answer_sheet",Number(s?.target?.value),{shouldDirty:!0})},slotProps:{htmlInput:{min:0,max:100}},disabled:e?.watch("meta.quiz_settings.hide_answer_sheet"),sx:{"& input::-webkit-outer-spin-button, & input::-webkit-inner-spin-button":{display:"none"},"& input[type=number]":{MozAppearance:"textfield"}}})}),(0,m.jsx)(a.A,{size:{xs:12,sm:6,lg:3},children:(0,m.jsxs)(r.A,{children:[(0,o.__)("Show Per Question Time","acadlix"),(0,m.jsx)(d.A,{plan:acadlixOptions?.isActive?"open":"closed",msg:(0,o.__)("Enabling this will display the time consumed per question.","acadlix"),placement:"right-start"})]})}),(0,m.jsx)(a.A,{size:{xs:12,sm:6,lg:3},children:(0,m.jsx)(n.A,{control:(0,m.jsx)(l.A,{}),disabled:!0,label:(0,o.__)("Activate","acadlix")})})]})}}}]);