1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5278],{83397:function(e,t,r){r(67294);var s=r(41008),a=r(85893);t.Z=function(e){var t=e.formula,r=e.inline,n=void 0!==r&&r,c=e.removeMargin,l=e.className;return(0,a.jsx)("div",{className:"".concat(n?"d-inline-block":"d-block"," ").concat(void 0===l?"":l),style:void 0!==c&&c?{margin:"0px"}:{margin:"20px 0"},dangerouslySetInnerHTML:{__html:s.ZP.renderToString(t,{throwOnError:!1,displayMode:!n})}})}},5278:function(e,t,r){r.r(t);var s=r(67294),a=r(39886),n=r(54610),c=r(21442),l=r(3126),o=r(63851),i=r(65868),d=r(56599),u=r(83397),h=r(85893);t.default=function(){var e=(0,s.useState)(),t=e[0],r=e[1],m=(0,s.useState)("side"),x=m[0],f=m[1],j=(0,s.useState)("m"),p=j[0],v=j[1],b=(0,s.useState)("4"),g=b[0],y=b[1],N=(0,s.useState)(),Z=N[0],M=N[1],q=(0,s.useState)(),O=q[0],w=q[1],F=(0,s.useState)(),P=F[0],S=F[1],k=(0,s.useState)(),C=k[0],T=k[1],E=(0,s.useState)(),L=E[0],K=E[1],z=(0,s.useState)(),_=z[0],G=z[1],I=(0,s.useState)(),V=I[0],A=I[1],B=function(e){return Number.isInteger(e)?e:"auto"===g?e:e.toFixed(Number(g))},D=function(){if(t){if(t>0)switch(x){case"side":M(!0),S(t),T(B(1/4*(Math.sqrt(3)*(t*t)))),K(B(3*t)),G(B(3*t/2)),A(B(.5*(Math.sqrt(3)*t)));break;case"perimeter":M(!0),S(B(t/3)),T(B(1/4*(Math.sqrt(3)*(t/3*(t/3))))),K(t),G(B(3*(t/3)/2)),A(B(.5*(Math.sqrt(3)*(t/3))));break;case"semiperimeter":M(!0),S(B(2*t/3)),T(B(1/4*(Math.sqrt(3)*(2*t/3*(2*t/3))))),K(B(3*(2*t/3))),G(t),A(B(.5*(Math.sqrt(3)*(2*t/3))));break;case"area":M(!0),S(B(2*Math.sqrt(t/Math.sqrt(3)))),T(t),K(B(3*(2*Math.sqrt(t/Math.sqrt(3))))),G(B(3*(2*Math.sqrt(t/Math.sqrt(3)))/2)),A(B(.5*(Math.sqrt(3)*(2*Math.sqrt(t/Math.sqrt(3))))));break;case"altitude":M(!0),S(B(2/Math.sqrt(3)*t)),T(B(1/4*(Math.sqrt(3)*(2/Math.sqrt(3)*t*(2/Math.sqrt(3)*t))))),K(B(3*(2/Math.sqrt(3)*t))),G(B(3*(2/Math.sqrt(3)*t)/2)),A(t);break;default:return""}else M(!1),w("Please enter a value greater than 0")}else w("Please fill in the required field!")},H=function(){r(""),M(""),w(""),S(""),T(""),K(""),G(""),A("")};return(0,h.jsxs)("div",{className:"row justify-content-between",children:[(0,h.jsx)("div",{className:"col-md-7",children:(0,h.jsxs)(a.Z,{className:"border",children:[(0,h.jsx)(n.Z,{children:(0,h.jsxs)(c.Z,{onSubmit:function(e){return e.preventDefault()},children:[(0,h.jsxs)("div",{className:"form-group row mt-3 ",children:[(0,h.jsx)(l.Z,{className:"col-sm-6 col-form-label",children:"Choose a Calculation"}),(0,h.jsx)("div",{className:"col-sm-6",children:(0,h.jsx)("div",{className:"input-group mb-3",children:(0,h.jsxs)("select",{className:"form-control form-select",value:x,onChange:function(e){f(e.target.value),M(""),w(""),S(""),T(""),K(""),G(""),A("")},children:[(0,h.jsx)("option",{value:"side",children:"Find P, s, K, h | Given a"}),(0,h.jsx)("option",{value:"perimeter",children:"Find a, s, K, h | Given P"}),(0,h.jsx)("option",{value:"semiperimeter",children:"Find a, P, K, h | Given s"}),(0,h.jsx)("option",{value:"area",children:"Find a, P, s, h | Given K"}),(0,h.jsx)("option",{value:"altitude",children:"Find a, P, s, K | Given h"})]})})})]}),(0,h.jsxs)("div",{className:"form-group row ",children:[(0,h.jsx)(l.Z,{className:"col-sm-6 col-form-label",children:"side"===x?"Value of a =":"perimeter"===x?"Value of p =":"semiperimeter"===x?"Value of s =":"area"===x?"Value of K =":"altitude"===x?"Value of h =":""}),(0,h.jsx)("div",{className:"col-sm-6",children:(0,h.jsx)("div",{className:"input-group mb-3",children:(0,h.jsx)("input",{required:!0,type:"number",className:"form-control",placeholder:"side"===x?"side length":"perimeter"===x?"perimeter":"semiperimeter"===x?"semiperimeter":"area"===x?"area":"altitude"===x?"altitude":"",value:t,onChange:function(e){r(e.target.value),M(""),w(""),S(""),T(""),K(""),G(""),A("")}})})})]}),(0,h.jsxs)("div",{className:"form-group row ",children:[(0,h.jsx)(l.Z,{className:"col-sm-6 col-form-label",children:"Units"}),(0,h.jsx)("div",{className:"col-sm-6",children:(0,h.jsx)("div",{className:"input-group mb-3",style:{width:"80px"},children:(0,h.jsxs)("select",{className:"form-control form-select",value:p,onChange:function(e){v(e.target.value),M(""),w(""),S(""),T(""),K(""),G(""),A("")},children:[(0,h.jsx)("option",{value:"m",children:"m"}),(0,h.jsx)("option",{value:"cm",children:"cm"}),(0,h.jsx)("option",{value:"mm",children:"mm"}),(0,h.jsx)("option",{value:"mi",children:"mi"}),(0,h.jsx)("option",{value:"yd",children:"yd"}),(0,h.jsx)("option",{value:"ft",children:"ft"}),(0,h.jsx)("option",{value:"in",children:"in"})]})})})]}),(0,h.jsxs)("div",{className:"form-group row ",children:[(0,h.jsx)(l.Z,{className:"col-sm-6 col-form-label",children:"Significant Figures"}),(0,h.jsx)("div",{className:"col-sm-6",children:(0,h.jsx)("div",{className:"input-group mb-3",style:{width:"80px"},children:(0,h.jsxs)("select",{className:"form-control form-select",value:g,onChange:function(e){y(e.target.value),M(""),w(""),S(""),T(""),K(""),G(""),A("")},children:[(0,h.jsx)("option",{value:"auto",children:"auto"}),(0,h.jsx)("option",{value:"1",children:"1"}),(0,h.jsx)("option",{value:"2",children:"2"}),(0,h.jsx)("option",{value:"3",children:"3"}),(0,h.jsx)("option",{value:"4",children:"4"}),(0,h.jsx)("option",{value:"5",children:"5"}),(0,h.jsx)("option",{value:"6",children:"6"}),(0,h.jsx)("option",{value:"7",children:"7"}),(0,h.jsx)("option",{value:"8",children:"8"}),(0,h.jsx)("option",{value:"9",children:"9"}),(0,h.jsx)("option",{value:"10",children:"10"})]})})})]}),(0,h.jsxs)("div",{className:"mt-4",children:[(0,h.jsx)(o.Z,{type:"submit",className:"btn btn-primary",onClick:function(){return D()},children:"Calculate"}),(0,h.jsx)(o.Z,{className:"btn btn-light ms-4",onClick:function(){return H()},children:"Clear"})]})]})}),(0,h.jsx)(i.Z,{className:"py-3",children:O?(0,h.jsx)("div",{className:"text-danger h5",children:O}):(0,h.jsxs)("div",{className:"px-3",children:[(0,h.jsx)("div",{className:"h5 text-primary mb-3 ",children:"Result : \xa0"}),(0,h.jsx)("h6",{className:"text-center my-3",children:(0,h.jsx)("b",{children:" A = B = C = 60\xb0"})}),(0,h.jsx)("h6",{className:"text-center my-3",children:(0,h.jsx)("b",{children:" a = b = c"})}),(0,h.jsx)("table",{className:"table table-bordered bg-white ",children:(0,h.jsxs)("tbody",{children:[(0,h.jsxs)("tr",{children:[(0,h.jsx)("td",{children:"sideLength"}),(0,h.jsxs)("td",{children:["a = ",P?"".concat(P," ").concat(p):""]})]}),(0,h.jsxs)("tr",{children:[(0,h.jsx)("td",{children:"area"}),(0,h.jsxs)("td",{children:["K ="," ",C?(0,h.jsxs)(h.Fragment,{children:[C," ",p,(0,h.jsx)("sup",{children:"2"})]}):""]})]}),(0,h.jsxs)("tr",{children:[(0,h.jsx)("td",{children:"perimeter"}),(0,h.jsxs)("td",{children:["P = ",L?"".concat(L," ").concat(p):""]})]}),(0,h.jsxs)("tr",{children:[(0,h.jsx)("td",{children:"semiperimeter"}),(0,h.jsxs)("td",{children:["s = ",_?"".concat(_," ").concat(p):""]})]}),(0,h.jsxs)("tr",{children:[(0,h.jsx)("td",{children:"altitude"}),(0,h.jsxs)("td",{children:["h = ",V?"".concat(V," ").concat(p):""]})]})]})})]})})]})}),(0,h.jsx)("div",{className:"col-md-5 ",children:(0,h.jsxs)(a.Z,{children:[(0,h.jsx)(d.Z,{className:"p-3",children:(0,h.jsx)("h5",{children:"Solution:"})}),(0,h.jsx)(n.Z,{children:(0,h.jsxs)("div",{children:[Z?(0,h.jsxs)(h.Fragment,{children:["side"===x?"":"perimeter"===x?(0,h.jsxs)(h.Fragment,{children:["Find sideLength of a ?",(0,h.jsx)(u.Z,{formula:"\\mathbf{sideLength \\ of \\ a} \\ = P \xf7 3 "}),(0,h.jsx)(u.Z,{formula:"a = ".concat(t," \xf7 3")}),(0,h.jsx)(u.Z,{formula:"= ".concat(P)}),(0,h.jsx)("hr",{})]}):"semiperimeter"===x?(0,h.jsxs)(h.Fragment,{children:["Find sideLength of a ?",(0,h.jsx)(u.Z,{formula:"\\mathbf{sideLength \\ of \\ a} \\ = 2s \xf7 3 "}),(0,h.jsx)(u.Z,{formula:"a = (2 \xd7 ".concat(t,") \xf7 3")}),(0,h.jsx)(u.Z,{formula:"a = ".concat(2*t," \xf7 3")}),(0,h.jsx)(u.Z,{formula:"= ".concat(P)}),(0,h.jsx)("hr",{})]}):"area"===x?(0,h.jsxs)(h.Fragment,{children:["Find sideLength of a ?",(0,h.jsx)(u.Z,{formula:"\\mathbf{sideLength \\ of \\ a} \\ = 2 \xd7 \\sqrt{5 / \\sqrt{3}} "}),(0,h.jsx)(u.Z,{formula:"a = 2 \xd7 \\sqrt{5 / ".concat(B(Math.sqrt(3)),"} ")}),(0,h.jsx)(u.Z,{formula:"= 2 \xd7 \\sqrt{".concat(B(5/Math.sqrt(3)),"} ")}),(0,h.jsx)(u.Z,{formula:"= 2 \xd7 ".concat(B(Math.sqrt(5/Math.sqrt(3)))," ")}),(0,h.jsx)(u.Z,{formula:"= ".concat(P)}),(0,h.jsx)("hr",{})]}):"altitude"===x?(0,h.jsxs)(h.Fragment,{children:["Find sideLength of a ?",(0,h.jsx)(u.Z,{formula:"\\mathbf{sideLength \\ of \\ a} \\ = (2 / \\sqrt{3}) \xd7 h "}),(0,h.jsx)(u.Z,{formula:"= (2 / ".concat(B(Math.sqrt(3)),") \xd7 ").concat(t," ")}),(0,h.jsx)(u.Z,{formula:"= ".concat(B(2/Math.sqrt(3))," \xd7 ").concat(t," ")}),(0,h.jsx)(u.Z,{formula:"= ".concat(P)}),(0,h.jsx)("hr",{})]}):"","area"===x?"":(0,h.jsxs)(h.Fragment,{children:["Find area ?",(0,h.jsx)(u.Z,{formula:"\\mathbf{area} \\ K = (1 \xf7 4) \xd7 \\sqrt{3} \xd7 a2"}),(0,h.jsx)(u.Z,{formula:"K = (1 \xf7 4) \xd7 \\sqrt{3} \xd7 ".concat(P,"^2")}),(0,h.jsx)(u.Z,{formula:"= ".concat(B(1/4)," \xd7 \\sqrt{").concat(B(Math.sqrt(3)),"} \xd7 ").concat(B(P*P))}),(0,h.jsx)(u.Z,{formula:"= ".concat(B(1/4)," \xd7 ").concat(B(Math.sqrt(3)*(P*P)))}),(0,h.jsx)(u.Z,{formula:"= ".concat(C)}),(0,h.jsx)("hr",{})]}),"perimeter"===x?"":(0,h.jsxs)(h.Fragment,{children:["Find perimeter ?",(0,h.jsx)(u.Z,{formula:"\\mathbf{perimeter} \\ P = 3 \xd7 a"}),(0,h.jsx)(u.Z,{formula:"P = 3 \xd7 ".concat(P)}),(0,h.jsx)(u.Z,{formula:"= ".concat(L)}),(0,h.jsx)("hr",{})]}),"semiperimeter"===x?"":(0,h.jsxs)(h.Fragment,{children:["Find semiperimeter ?",(0,h.jsx)(u.Z,{formula:"\\mathbf{semiperimeter} \\ s = (3 \xd7 a) / 2"}),(0,h.jsx)(u.Z,{formula:"s = (3 \xd7 ".concat(P,") / 2")}),(0,h.jsx)(u.Z,{formula:"s = ".concat(L," / 2")}),(0,h.jsx)(u.Z,{formula:"= ".concat(_)})]}),"altitude"===x?"":(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("hr",{}
1),"Find altitude ?",(0,h.jsx)(u.Z,{formula:"\\mathbf{altitude} \\ h = (1 \xf7 2) \xd7 \\sqrt{3} \xd7 a"}),(0,h.jsx)(u.Z,{formula:"h = (1 \xf7 2) \xd7 \\sqrt{3} \xd7 ".concat(P)}),(0,h.jsx)(u.Z,{formula:"= ".concat(B(.5)," \xd7 \\sqrt{").concat(B(Math.sqrt(3)),"} \xd7 ").concat(P)}),(0,h.jsx)(u.Z,{formula:"= ".concat(B(.5)," \xd7 ").concat(B(Math.sqrt(3)*P))}),(0,h.jsx)(u.Z,{formula:"= ".concat(V)})]})]}):(0,h.jsx)("div",{className:"text-muted",children:"Solution will be shown here."}),(0,h.jsx)("br",{})]})})]})})]})}},65868:function(e,t,r){var s=r(67294),a=r(45697),n=r.n(a),c=r(93967),l=r.n(c),o=r(22040),i=["className","cssModule","tag"];function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(this,arguments)}var u={className:n().string,cssModule:n().object,tag:o.tagPropType};function h(e){var t=e.className,r=e.cssModule,a=e.tag,n=function(e,t){if(null==e)return{};var r,s,a=function(e,t){if(null==e)return{};var r,s,a={},n=Object.keys(e);for(s=0;s<n.length;s++)r=n[s],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(s=0;s<n.length;s++)r=n[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,i),c=(0,o.mapToCssModules)(l()(t,"card-footer"),r);return s.createElement(void 0===a?"div":a,d({},n,{className:c}))}h.propTypes=u,t.Z=h},56599:function(e,t,r){var s=r(67294),a=r(45697),n=r.n(a),c=r(93967),l=r.n(c),o=r(22040),i=["className","cssModule","tag"];function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(this,arguments)}var u={className:n().string,cssModule:n().object,tag:o.tagPropType};function h(e){var t=e.className,r=e.cssModule,a=e.tag,n=function(e,t){if(null==e)return{};var r,s,a=function(e,t){if(null==e)return{};var r,s,a={},n=Object.keys(e);for(s=0;s<n.length;s++)r=n[s],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(s=0;s<n.length;s++)r=n[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,i),c=(0,o.mapToCssModules)(l()(t,"card-header"),r);return s.createElement(void 0===a?"div":a,d({},n,{className:c}))}h.propTypes=u,t.Z=h},3126:function(e,t,r){var s=r(67294),a=r(45697),n=r.n(a),c=r(93967),l=r.n(c),o=r(22040),i=["className","cssModule","hidden","widths","tag","check","size","for"];function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&
1(e[s]=r[s])}return e}).apply(this,arguments)}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=["xs","sm","md","lg","xl","xxl"],m=n().oneOfType([n().number,n().string]),x=n().oneOfType([n().bool,n().string,n().number,n().shape({size:m,order:m,offset:m})]),f={children:n().node,hidden:n().bool,check:n().bool,size:n().string,for:n().string,tag:o.tagPropType,className:n().string,cssModule:n().object,xs:x,sm:x,md:x,lg:x,xl:x,xxl:x,widths:n().array},j=function(e,t,r){return!0===r||""===r?e?"col":"col-".concat(t):"auto"===r?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(r):"col-".concat(t,"-").concat(r)};function p(e){var t=e.className,r=e.cssModule,a=e.hidden,n=e.widths,c=e.tag,m=e.check,x=e.size,f=e.for,p=function(e,t){if(null==e)return{};var r,s,a=function(e,t){if(null==e)return{};var r,s,a={},n=Object.keys(e);for(s=0;s<n.length;s++)r=n[s],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(s=0;s<n.length;s++)r=n[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,i),v=[];(void 0===n?h:n).forEach(function(t,s){var a=e[t];if(delete p[t],a||""===a){var n=!s;if((0,o.isObject)(a)){var c,i,d=n?"-":"-".concat(t,"-");c=j(n,t,a.size),v.push((0,o.mapToCssModules)(l()((u(i={},c,a.size||""===a.size),u(i,"order".concat(d).concat(a.order),a.order||0===a.order),u(i,"offset".concat(d).concat(a.offset),a.offset||0===a.offset),i))),r)}else c=j(n,t,a),v.push(c)}});var b=x||v.length,g=(0,o.mapToCssModules)(l()(t,!!a&&"visually-hidden",!!m&&"form-check-label",!!x&&"col-form-label-".concat(x),v,!!b&&"col-form-label",!(m||b)&&"form-label"),r);return s.createElement(void 0===c?"label":c,d({htmlFor:f},p,{className:g}))}p.propTypes=f,t.Z=p}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.