diff --git a/404.html b/404.html index 8f16126..b35fb47 100644 --- a/404.html +++ b/404.html @@ -8,9 +8,9 @@ - - - + + + diff --git a/assets/404-3d8b5595.js b/assets/404-6bb9ce61.js similarity index 70% rename from assets/404-3d8b5595.js rename to assets/404-6bb9ce61.js index 515678a..919d6f2 100644 --- a/assets/404-3d8b5595.js +++ b/assets/404-6bb9ce61.js @@ -1 +1 @@ -import{r as i,c as e,i as a,L as l,a as o,t as s}from"./layout-30df32e9.js";const d=s('

Error 404 - Siden ble ikke funnet

'),c=()=>e(o,{title:"Siden ble ikke funnet",get children(){const t=d.cloneNode(!0),n=t.firstChild,r=n.nextSibling;return a(r,e(l,{to:"/",newTab:!1,className:"mx-auto relative w-max",children:"Gå tilbake til forsiden"})),t}});i(()=>e(c,{}),document.getElementById("root")); +import{r as i,c as e,i as a,L as l,a as o,t as s}from"./layout-c627ce3b.js";const d=s('

Error 404 - Siden ble ikke funnet

'),c=()=>e(o,{title:"Siden ble ikke funnet",get children(){const t=d.cloneNode(!0),n=t.firstChild,r=n.nextSibling;return a(r,e(l,{to:"/",newTab:!1,className:"mx-auto relative w-max",children:"Gå tilbake til forsiden"})),t}});i(()=>e(c,{}),document.getElementById("root")); diff --git a/assets/layout-219873f7.css b/assets/layout-219873f7.css new file mode 100644 index 0000000..0bf0bbc --- /dev/null +++ b/assets/layout-219873f7.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.debug{border-width:1px;--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.debug:after{position:absolute;--tw-content: "DEBUG";content:var(--tw-content)}.flex-row-center{display:flex;flex-direction:row;align-items:center}.border-rounded{border-radius:1rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}h1{font-size:2.25rem;line-height:2.5rem}h2{font-size:1.875rem;line-height:2.25rem}h3{font-size:1.5rem;line-height:2rem}h4{font-size:1.25rem;line-height:1.75rem}a{--tw-text-opacity: 1;color:rgb(6 182 212 / var(--tw-text-opacity))}a:hover{text-decoration-line:underline}li{margin-left:1rem;list-style-type:disc}svg{pointer-events:none;height:1.5rem;width:1.5rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-1\/3{bottom:33.333333%}.left-2{left:.5rem}.left-3{left:.75rem}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.z-10{z-index:10}.z-50{z-index:50}.float-right{float:right}.m-2{margin:.5rem}.m-4{margin:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.h-10{height:2.5rem}.h-2{height:.5rem}.h-32{height:8rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-\[45rem\]{height:45rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-min{height:-moz-min-content;height:min-content}.min-h-screen{min-height:100vh}.w-11{width:2.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.max-w-2xl{max-width:42rem}.border-collapse{border-collapse:collapse}.translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-6{--tw-translate-x: 1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-auto{overflow:auto}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-dotted{border-style:dotted}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-black\/40{background-color:#0006}.bg-cyan-900{--tw-bg-opacity: 1;background-color:rgb(22 78 99 / var(--tw-bg-opacity))}.bg-default-bg{--tw-bg-opacity: 1;background-color:rgb(24 26 27 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-cyan-600{--tw-gradient-from: #0891b2;--tw-gradient-to: rgb(8 145 178 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-cyan-500{--tw-gradient-to: #06b6d4}.p-2{padding:.5rem}.p-5{padding:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-28{padding-bottom:7rem}.pl-2{padding-left:.5rem}.pl-7{padding-left:1.75rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-cyan-500{--tw-text-opacity: 1;color:rgb(6 182 212 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-offset-\[-1px\]{outline-offset:-1px}.outline-gray-500{outline-color:#6b7280}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-75{transition-duration:75ms}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\[position\:-webkit-sticky\;\]{position:-webkit-sticky}.before\:content-\[\'\2197\'\]:before{--tw-content: "\2197";content:var(--tw-content)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:content-\[\'DEBUG\'\]:after{--tw-content: "DEBUG";content:var(--tw-content)}.last\:mb-1:last-child{margin-bottom:.25rem}.last\:underline:last-child{text-decoration-line:underline}.hover\:border-t-cyan-400:hover{--tw-border-opacity: 1;border-top-color:rgb(34 211 238 / var(--tw-border-opacity))}.hover\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-cyan-500:focus{--tw-border-opacity: 1;border-color:rgb(6 182 212 / var(--tw-border-opacity))}.dark .dark\:border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark .dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))} diff --git a/assets/layout-52bf23e0.css b/assets/layout-52bf23e0.css deleted file mode 100644 index cd814fb..0000000 --- a/assets/layout-52bf23e0.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.debug{border-width:1px;--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.debug:after{position:absolute;--tw-content: "DEBUG";content:var(--tw-content)}.flex-row-center{display:flex;flex-direction:row;align-items:center}.border-rounded{border-radius:1rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}h1{font-size:2.25rem;line-height:2.5rem}h2{font-size:1.875rem;line-height:2.25rem}h3{font-size:1.5rem;line-height:2rem}h4{font-size:1.25rem;line-height:1.75rem}a{--tw-text-opacity: 1;color:rgb(6 182 212 / var(--tw-text-opacity))}a:hover{text-decoration-line:underline}li{margin-left:1rem;list-style-type:disc}svg{pointer-events:none;height:1.5rem;width:1.5rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-1\/3{bottom:33.333333%}.left-2{left:.5rem}.left-3{left:.75rem}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.z-10{z-index:10}.z-50{z-index:50}.float-right{float:right}.m-2{margin:.5rem}.m-4{margin:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.h-10{height:2.5rem}.h-2{height:.5rem}.h-32{height:8rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-\[45rem\]{height:45rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-min{height:-moz-min-content;height:min-content}.min-h-screen{min-height:100vh}.w-11{width:2.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.max-w-2xl{max-width:42rem}.border-collapse{border-collapse:collapse}.translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-6{--tw-translate-x: 1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-auto{overflow:auto}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-dotted{border-style:dotted}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-black\/40{background-color:#0006}.bg-cyan-900{--tw-bg-opacity: 1;background-color:rgb(22 78 99 / var(--tw-bg-opacity))}.bg-default-bg{--tw-bg-opacity: 1;background-color:rgb(24 26 27 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-cyan-600{--tw-gradient-from: #0891b2;--tw-gradient-to: rgb(8 145 178 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-cyan-500{--tw-gradient-to: #06b6d4}.p-2{padding:.5rem}.p-5{padding:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-28{padding-bottom:7rem}.pl-2{padding-left:.5rem}.pl-7{padding-left:1.75rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-cyan-500{--tw-text-opacity: 1;color:rgb(6 182 212 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-offset-\[-1px\]{outline-offset:-1px}.outline-gray-500{outline-color:#6b7280}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-75{transition-duration:75ms}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\[position\:-webkit-sticky\;\]{position:-webkit-sticky}.before\:content-\[\'\2197\'\]:before{--tw-content: "\2197";content:var(--tw-content)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:content-\[\'DEBUG\'\]:after{--tw-content: "DEBUG";content:var(--tw-content)}.last\:mb-1:last-child{margin-bottom:.25rem}.last\:underline:last-child{text-decoration-line:underline}.hover\:border-t-cyan-400:hover{--tw-border-opacity: 1;border-top-color:rgb(34 211 238 / var(--tw-border-opacity))}.hover\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-cyan-500:focus{--tw-border-opacity: 1;border-color:rgb(6 182 212 / var(--tw-border-opacity))}.dark .dark\:border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark .dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))} diff --git a/assets/layout-30df32e9.js b/assets/layout-c627ce3b.js similarity index 100% rename from assets/layout-30df32e9.js rename to assets/layout-c627ce3b.js diff --git a/assets/main-08550a08.js b/assets/main-96b66825.js similarity index 95% rename from assets/main-08550a08.js rename to assets/main-96b66825.js index 6e2863d..b15d8e1 100644 --- a/assets/main-08550a08.js +++ b/assets/main-96b66825.js @@ -1 +1 @@ -import{b as h,i as n,c as l,L as c,t as r,r as p,F as $,a as _}from"./layout-30df32e9.js";const f=r(`

`),N=r('
'),g=({children:e,className:t,title:m,to:d,newTab:u=!1})=>(()=>{const o=N.cloneNode(!0),i=o.firstChild;return h(o,`relative bg-gradient-to-r from-cyan-600 to-cyan-500 h-32 w-72 rounded-2xl ${t}`),n(i,l(c,{className:"text-white",to:d,newTab:u,get children(){const s=f.cloneNode(!0);return n(s,m),s}}),null),n(i,e,null),o})(),v=r("

Sjekk ut mine API-er

"),k=r(""),x=r("

Sjekk ut mine andre prosjekter

"),y=r("

Implementering av API

"),w=r('
'),a="https://api.martials.no",b=[{title:"API-er",children:[v.cloneNode(!0),(()=>{const e=k.cloneNode(!0),t=e.firstChild;return n(t,l(c,{className:"text-white",to:`${a}/simplify-truths`,children:"Forenkle sannhetsverdier"})),e})()],to:a},{title:"Hjemmeside",children:x.cloneNode(!0),to:"https://h600878.github.io/"},{title:"Forenkle sannhetsverdier",children:y.cloneNode(!0),to:"/simplify-truths.html"}],j=()=>l(_,{title:"Velkommen!",get children(){const e=w.cloneNode(!0);return n(e,l($,{each:b,children:t=>l(g,{get title(){return t.title},className:"m-4",get to(){return t.to},get children(){return t.children}})})),e}});p(()=>l(j,{}),document.getElementById("root")); +import{b as h,i as n,c as l,L as c,t as r,r as p,F as $,a as _}from"./layout-c627ce3b.js";const f=r(`

`),N=r('
'),g=({children:e,className:t,title:m,to:d,newTab:u=!1})=>(()=>{const o=N.cloneNode(!0),i=o.firstChild;return h(o,`relative bg-gradient-to-r from-cyan-600 to-cyan-500 h-32 w-72 rounded-2xl ${t}`),n(i,l(c,{className:"text-white",to:d,newTab:u,get children(){const s=f.cloneNode(!0);return n(s,m),s}}),null),n(i,e,null),o})(),v=r("

Sjekk ut mine API-er

"),k=r(""),x=r("

Sjekk ut mine andre prosjekter

"),y=r("

Implementering av API

"),w=r('
'),a="https://api.martials.no",b=[{title:"API-er",children:[v.cloneNode(!0),(()=>{const e=k.cloneNode(!0),t=e.firstChild;return n(t,l(c,{className:"text-white",to:`${a}/simplify-truths`,children:"Forenkle sannhetsverdier"})),e})()],to:a},{title:"Hjemmeside",children:x.cloneNode(!0),to:"https://h600878.github.io/"},{title:"Forenkle sannhetsverdier",children:y.cloneNode(!0),to:"/simplify-truths.html"}],j=()=>l(_,{title:"Velkommen!",get children(){const e=w.cloneNode(!0);return n(e,l($,{each:b,children:t=>l(g,{get title(){return t.title},className:"m-4",get to(){return t.to},get children(){return t.children}})})),e}});p(()=>l(j,{}),document.getElementById("root")); diff --git a/assets/simplifyTruths-a6a9ae89.js b/assets/simplifyTruths-a628474d.js similarity index 99% rename from assets/simplifyTruths-a6a9ae89.js rename to assets/simplifyTruths-a628474d.js index 9f1e8e5..763cb05 100644 --- a/assets/simplifyTruths-a6a9ae89.js +++ b/assets/simplifyTruths-a628474d.js @@ -1,4 +1,4 @@ -import{b as qe,i as ce,t as de,d as In,e as Pe,c as j,s as rr,F as at,f as h0,g as af,m as gr,h as Ot,o as Nn,u as kn,D as sf,j as ir,k as ff,l as wt,S as nr,n as Rn,p as lf,I as Lr,q as of,v as Gi,P as cf,r as uf,w as hf,L as xf,x as df,y as pf,z as vf,A as mf,B as gf,C as _f,E as Tf,a as Ef,G as wf}from"./layout-30df32e9.js";const Sf=de("
"),Vi=({children:e,className:t})=>(()=>{const r=Sf.cloneNode(!0);return qe(r,`flex-row-center ${t}`),ce(r,e),r})(),Af=de(""),Ff=de('');function yf(e,t){let r=!0;function n(a){r&&t(a)}const i=document.getElementById(e);return i?.addEventListener("pointerenter",()=>n(!0)),i?.addEventListener("pointerleave",()=>n(!1)),()=>{i?.removeEventListener("pointerenter",()=>n(!0)),i?.removeEventListener("pointerleave",()=>n(!1)),r=!1}}function Cf(e,t,r){if(e){const n=document.getElementById(e);n&&n.value!==""!==t&&r(n.value!=="")}}const j0=({className:e,id:t,name:r,type:n="text",title:i,placeholder:a,required:s=!1,onChange:f,leading:o,trailing:l,inputClass:c})=>{const[x,h]=Pe(!1),[d,_]=Pe(!1),[u,m]=Pe(!1);return document.addEventListener("DOMContentLoaded",()=>{t&&i&&yf(t,_)}),j(Vi,{className:`relative ${e}`,get children(){return[o,j(Of,{title:i,get isActive(){return x()||d()||u()},htmlFor:t}),(()=>{const A=Af.cloneNode(!0);return A.$$input=()=>{Cf(t,u(),m),f&&f()},A.addEventListener("blur",()=>h(!1)),A.addEventListener("focus",()=>h(!0)),qe(A,`bg-default-bg focus:border-cyan-500 outline-none border-2 border-gray-500 +import{b as qe,i as ce,t as de,d as In,e as Pe,c as j,s as rr,F as at,f as h0,g as af,m as gr,h as Ot,o as Nn,u as kn,D as sf,j as ir,k as ff,l as wt,S as nr,n as Rn,p as lf,I as Lr,q as of,v as Gi,P as cf,r as uf,w as hf,L as xf,x as df,y as pf,z as vf,A as mf,B as gf,C as _f,E as Tf,a as Ef,G as wf}from"./layout-c627ce3b.js";const Sf=de("
"),Vi=({children:e,className:t})=>(()=>{const r=Sf.cloneNode(!0);return qe(r,`flex-row-center ${t}`),ce(r,e),r})(),Af=de(""),Ff=de('');function yf(e,t){let r=!0;function n(a){r&&t(a)}const i=document.getElementById(e);return i?.addEventListener("pointerenter",()=>n(!0)),i?.addEventListener("pointerleave",()=>n(!1)),()=>{i?.removeEventListener("pointerenter",()=>n(!0)),i?.removeEventListener("pointerleave",()=>n(!1)),r=!1}}function Cf(e,t,r){if(e){const n=document.getElementById(e);n&&n.value!==""!==t&&r(n.value!=="")}}const j0=({className:e,id:t,name:r,type:n="text",title:i,placeholder:a,required:s=!1,onChange:f,leading:o,trailing:l,inputClass:c})=>{const[x,h]=Pe(!1),[d,_]=Pe(!1),[u,m]=Pe(!1);return document.addEventListener("DOMContentLoaded",()=>{t&&i&&yf(t,_)}),j(Vi,{className:`relative ${e}`,get children(){return[o,j(Of,{title:i,get isActive(){return x()||d()||u()},htmlFor:t}),(()=>{const A=Af.cloneNode(!0);return A.$$input=()=>{Cf(t,u(),m),f&&f()},A.addEventListener("blur",()=>h(!1)),A.addEventListener("focus",()=>h(!0)),qe(A,`bg-default-bg focus:border-cyan-500 outline-none border-2 border-gray-500 hover:border-t-cyan-400 ${c}`),rr(A,"id",t),rr(A,"name",r??void 0),rr(A,"type",n),rr(A,"placeholder",a??void 0),A.required=s,A})(),l]}})};function Of({title:e,isActive:t=!1,htmlFor:r}){return(()=>{const n=Ff.cloneNode(!0),i=n.firstChild;return qe(n,`absolute pointer-events-none ${t?"-top-2 left-3 default-bg text-sm":"left-2 top-1"} transition-all duration-150 text-gray-600 dark:text-gray-400`),rr(n,"for",r),ce(i,e),n})()}In(["input"]);const Df=de("
"),If=de(`Fill in a truth expression and it will be simplified for you as much as possible. It will also genereate a truth table with all possible values. You can use a single letter, word or multiple words without spacing for each atomic value. If you do not want to simplify the expression, simply turn off the toggle. Keywords for operators are defined below. Parentheses is also allowed.

"),I2=de("

API docs can be found .

"),N2=de('Simplify: '),Wi=de('
'),k2=de("

Filename:

"),Hs=de("

"),R2=de('
'),L2=de('
'),P2=de(''),M2=de('

Download

'),B2=de(''),b2=de('
'),U2=de("

using:

"),W2=de("using: "),H2=de(':'),$2=de(""),G2=de('
Not:!
And:&
Or:|/
Implication:->
'),V2=()=>{let e,t=!0,r=!1;typeof location<"u"&&(e=new URLSearchParams(location.search),e.has("simplify")&&(t=e.get("simplify")==="true"),e.has("exp")&&(r=!0));const[n,i]=Pe(t),[a,s]=Pe(null),[f,o]=Pe(r),l=[{name:"Show all result",value:"NONE"},{name:"Hide true results",value:"TRUE"},{name:"Hide false results",value:"FALSE"}],[c,x]=Pe(l[0]),h=[{name:"Sort by default",value:"DEFAULT"},{name:"Sort by true first",value:"TRUE_FIRST"},{name:"Sort by false first",value:"FALSE_FIRST"}],[d,_]=Pe(h[0]),[u,m]=Pe(!1),[A,O]=Pe(null),[F,M]=Pe(null);function K(oe){oe.preventDefault();let ie=U()?.value;ie=ie.replaceAll("|","/").trimEnd(),ie&&(history.pushState(null,"",`?exp=${encodeURIComponent(ie)}&simplify=${n()}& hide=${c().value}&sort=${d().value}&hideIntermediate=${u()}`),ee(ie))}function ee(oe){s(null),oe!==""&&(M(null),O(!1),fetch(`https://api.martials.no/simplify-truths/do/simplify/table?exp=${encodeURIComponent(oe)}& simplify=${n()}&hide=${c().value}&sort=${d().value}&caseSensitive=false& -hideIntermediate=${u()}`).then(ie=>ie.json()).then(ie=>s(ie)).catch(ie=>M(ie.toString())).finally(()=>O(!0)))}const D="truth-input";function U(){return document.getElementById(D)}function L(){const oe=U();oe&&oe.value!==""!==f()&&o(oe.value!=="")}function G(){const oe=U();oe&&(oe.value="",o(!1),history.replaceState(null,"",location.pathname),oe.focus())}const V="truth-table",X="excel-filename";hf(()=>{if(e.has("exp")){const oe=e.get("exp");oe!==""&&(U().value=oe);const ie=e.get("hide");ie&&x(l.find(ye=>ye.value===ie)??l[0]);const Fe=e.get("sort");Fe&&_(h.find(ye=>ye.value===Fe)??h[0]);const ue=e.get("hideIntermediate");ue&&m(ue==="true"),ee(oe)}U()?.focus()});function re(){const oe=document.getElementById(X)?.value;O2({name:oe!==""?oe:void 0,tableId:V})}return j(Ef,{title:"Truth tables",get children(){const oe=L2.cloneNode(!0),ie=oe.firstChild,Fe=ie.firstChild;return ce(ie,j(aa,{get children(){return[j(v0,{title:"How to",get children(){return[D2.cloneNode(!0),(()=>{const ue=I2.cloneNode(!0),ye=ue.firstChild,Re=ye.nextSibling;return Re.nextSibling,ce(ue,j(xf,{to:"https://api.martials.no/simplify-truths",children:"here"}),Re),ue})()]}}),j(z2,{})]}}),Fe),Fe.addEventListener("submit",K),ce(Fe,j(j0,{inputClass:"rounded-xl pl-7 h-10 w-full pr-8",className:"w-full",id:"truth-input",placeholder:"¬A & B -> C",type:"text",onChange:L,get leading(){return j(Lr,{path:df,"aria-label":"Magnifying glass",class:"pl-2 absolute"})},get trailing(){return j(nr,{get when(){return f()},keyed:!0,get children(){const ue=P2.cloneNode(!0);return ue.$$click=G,ce(ue,j(Lr,{path:pf,"aria-label":"The letter X"})),ue}})}}),null),ce(Fe,j(pn,{id:"truth-input-button",title:"Generate (Enter)",type:"submit",className:"min-w-50px h-10 ml-2",children:"Generate"}),null),ce(ie,j(Vi,{className:"my-1 gap-2",get children(){return[N2.cloneNode(!0),j(Dl,{onChange:i,get defaultValue(){return n()},title:"Simplify",name:"Turn on/off simplify expressions",className:"mx-1"}),(()=>{const ue=Wi.cloneNode(!0);return ce(ue,j(Q0,{title:"Filter results",id:"filter-results",get button(){return j(nr,{get when(){return c().value!=="NONE"},get children(){return j(Lr,{path:vf,"aria-label":"An eye with a slash through it",get class(){return`mx-1 ${c().value==="TRUE"?"text-green-500":"text-red-500"}`}})},get fallback(){return j(Lr,{path:mf,"aria-label":"An eye",class:"mx-1"})},keyed:!0})},get children(){return j(at,{each:l,children:ye=>j(Hi,{onClick:()=>x(ye),option:ye,currentValue:c})})},itemsClassName:"right-0"})),ue})(),(()=>{const ue=Wi.cloneNode(!0);return ce(ue,j(Q0,{title:"Sort results",id:"sort-results",get button(){return j(Lr,{path:gf,"aria-label":"Filter",get class(){return`h-6 w-6 ${d().value==="TRUE_FIRST"?"text-green-500":d().value==="FALSE_FIRST"&&"text-red-500"}`}})},get children(){return j(at,{each:h,children:ye=>j(Hi,{option:ye,currentValue:d,onClick:()=>_(ye)})})},itemsClassName:"right-0"})),ue})(),j(nr,{get when(){return A()},keyed:!0,get children(){return j(Pl,{title:"Download",description:"Export current table (.xlsx)",get button(){return[M2.cloneNode(!0),j(Lr,{"aria-label":"Download",path:_f})]},callback:re,acceptButtonName:"Download",cancelButtonName:"Cancel",buttonClasses:"float-right",buttonTitle:"Export current table",acceptButtonId:"download-accept",get children(){return[k2.cloneNode(!0),j(j0,{className:"border-rounded h-10 px-2",id:X,placeholder:"Truth Table"})]}})}})]}}),null),ce(ie,j(nr,{get when(){return A()===!1},keyed:!0,get children(){return j(Lr,{path:Tf,"aria-label":"Loading indicator",class:"animate-spin mx-auto"})}}),null),ce(ie,j(nr,{get when(){return F()},keyed:!0,get children(){return j($i,{title:"Fetch error",get error(){return F()}})}}),null),ce(ie,j(nr,{get when(){return wt(()=>!!(F()===null&&A()))()&&a()?.status.code!==200},keyed:!0,get children(){return j($i,{title:"Input error",get error(){return a()?.status.message}})}}),null),ce(ie,j(nr,{get when(){return wt(()=>!!n())()&&a()?.orderOperations?.length>0},keyed:!0,get children(){return j(X2,{fetchResult:a})}}),null),ce(oe,j(nr,{get when(){return wt(()=>!!A())()&&a()?.status?.code===200},keyed:!0,get children(){return[j(nr,{get when(){return n()},keyed:!0,get children(){return j(ia,{className:"w-fit mx-auto pb-1 text-lg text-center",title:"Output:",id:"expression-output",get children(){const ue=Hs.cloneNode(!0);return ce(ue,()=>a()?.after),ue}})}}),(()=>{const ue=R2.cloneNode(!0),ye=ue.firstChild;return ce(ye,j(Rf,{get header(){return a()?.header},get table(){return a()?.table?.truthMatrix},id:V})),ue})()]}}),null),oe}})},Hi=({option:e,currentValue:t,onClick:r})=>{const n=()=>t()?.value===e.value;return(()=>{const i=B2.cloneNode(!0);return Gi(i,"click",r,!0),ce(i,j(Lr,{path:wf,get["aria-label"](){return n()?"A checkmark":"Nothing"},get class(){return`text-white ${!n()&&"text-transparent"}`}}),null),ce(i,()=>e.name,null),i})()},$i=({title:e,error:t})=>j(ia,{className:"w-fit text-center mx-auto",title:e,error:!0,get children(){const r=Hs.cloneNode(!0);return ce(r,t),r}}),X2=({fetchResult:e})=>j(aa,{get children(){return j(v0,{title:"Show me how it's done",get children(){const t=b2.cloneNode(!0),r=t.firstChild;return ce(r,j(at,{get each(){return e()?.orderOperations},children:(n,i)=>(()=>{const a=H2.cloneNode(!0),s=a.firstChild,f=s.firstChild,o=s.nextSibling;return ce(s,()=>i()+1,f),ce(o,()=>j(at,{get each(){return Sl(n.before,n.after)},children:l=>(()=>{const c=$2.cloneNode(!0);return ce(c,()=>l.value),h0(()=>qe(c,`${l.added&&"bg-green-700"} +hideIntermediate=${u()}`).then(ie=>ie.json()).then(ie=>s(ie)).catch(ie=>M(ie.toString())).finally(()=>O(!0)))}const D="truth-input";function U(){return document.getElementById(D)}function L(){const oe=U();oe&&oe.value!==""!==f()&&o(oe.value!=="")}function G(){const oe=U();oe&&(oe.value="",o(!1),history.replaceState(null,"",location.pathname),oe.focus())}const V="truth-table",X="excel-filename";hf(()=>{if(e.has("exp")){const oe=e.get("exp");oe!==""&&(U().value=oe);const ie=e.get("hide");ie&&x(l.find(ye=>ye.value===ie)??l[0]);const Fe=e.get("sort");Fe&&_(h.find(ye=>ye.value===Fe)??h[0]);const ue=e.get("hideIntermediate");ue&&m(ue==="true"),ee(oe)}U()?.focus()});function re(){const oe=document.getElementById(X)?.value;O2({name:oe!==""?oe:void 0,tableId:V})}return j(Ef,{title:"Truth tables",get children(){const oe=L2.cloneNode(!0),ie=oe.firstChild,Fe=ie.firstChild;return ce(ie,j(aa,{get children(){return[j(v0,{title:"How to",get children(){return[D2.cloneNode(!0),(()=>{const ue=I2.cloneNode(!0),ye=ue.firstChild,Re=ye.nextSibling;return Re.nextSibling,ce(ue,j(xf,{to:"https://api.martials.no/simplify-truths",children:"here"}),Re),ue})()]}}),j(z2,{})]}}),Fe),Fe.addEventListener("submit",K),ce(Fe,j(j0,{inputClass:"rounded-xl pl-7 h-10 w-full pr-8",className:"w-full",id:"truth-input",placeholder:"¬A & B -> C",type:"text",onChange:L,get leading(){return j(Lr,{path:df,"aria-label":"Magnifying glass",class:"pl-2 absolute"})},get trailing(){return j(nr,{get when(){return f()},keyed:!0,get children(){const ue=P2.cloneNode(!0);return ue.$$click=G,ce(ue,j(Lr,{path:pf,"aria-label":"The letter X"})),ue}})}}),null),ce(Fe,j(pn,{id:"truth-input-button",title:"Generate (Enter)",type:"submit",className:"min-w-50px h-10 ml-2",children:"Generate"}),null),ce(ie,j(Vi,{className:"my-1 gap-2",get children(){return[N2.cloneNode(!0),j(Dl,{onChange:i,get defaultValue(){return n()},title:"Simplify",name:"Turn on/off simplify expressions",className:"mx-1"}),(()=>{const ue=Wi.cloneNode(!0);return ce(ue,j(Q0,{title:"Filter results",id:"filter-results",get button(){return j(nr,{get when(){return c().value!=="NONE"},get children(){return j(Lr,{path:vf,"aria-label":"An eye with a slash through it",get class(){return`mx-1 ${c().value==="TRUE"?"text-green-500":"text-red-500"}`}})},get fallback(){return j(Lr,{path:mf,"aria-label":"An eye",class:"mx-1"})},keyed:!0})},get children(){return j(at,{each:l,children:ye=>j(Hi,{onClick:()=>x(ye),option:ye,currentValue:c})})},itemsClassName:"right-0"})),ue})(),(()=>{const ue=Wi.cloneNode(!0);return ce(ue,j(Q0,{title:"Sort results",id:"sort-results",get button(){return j(Lr,{path:gf,"aria-label":"Filter",get class(){return`h-6 w-6 ${d().value==="TRUE_FIRST"?"text-green-500":d().value==="FALSE_FIRST"&&"text-red-500"}`}})},get children(){return j(at,{each:h,children:ye=>j(Hi,{option:ye,currentValue:d,onClick:()=>_(ye)})})},itemsClassName:"right-0"})),ue})(),j(nr,{get when(){return A()},keyed:!0,get children(){return j(Pl,{title:"Download",description:"Export current table (.xlsx)",get button(){return[M2.cloneNode(!0),j(Lr,{"aria-label":"Download",path:_f})]},callback:re,acceptButtonName:"Download",cancelButtonName:"Cancel",buttonClasses:"float-right",buttonTitle:"Export current table",acceptButtonId:"download-accept",get children(){return[k2.cloneNode(!0),j(j0,{className:"border-rounded h-10 px-2",id:X,placeholder:"Truth Table"})]}})}})]}}),null),ce(ie,j(nr,{get when(){return A()===!1},keyed:!0,get children(){return j(Lr,{path:Tf,"aria-label":"Loading indicator",class:"animate-spin mx-auto"})}}),null),ce(ie,j(nr,{get when(){return F()},keyed:!0,get children(){return j($i,{title:"Fetch error",get error(){return F()}})}}),null),ce(ie,j(nr,{get when(){return wt(()=>!!(F()===null&&A()))()&&a()?.status.code!==200},keyed:!0,get children(){return j($i,{title:"Input error",get error(){return a()?.status.message}})}}),null),ce(ie,j(nr,{get when(){return wt(()=>!!n())()&&a()?.orderOperations?.length>0},keyed:!0,get children(){return j(X2,{fetchResult:a})}}),null),ce(oe,j(nr,{get when(){return wt(()=>!!A())()&&a()?.status?.code===200},keyed:!0,get children(){return[j(nr,{get when(){return n()},keyed:!0,get children(){return j(ia,{className:"w-fit mx-auto pb-1 text-lg text-center",title:"Output:",id:"expression-output",get children(){const ue=Hs.cloneNode(!0);return ce(ue,()=>a()?.after),ue}})}}),(()=>{const ue=R2.cloneNode(!0),ye=ue.firstChild;return ce(ye,j(Rf,{get header(){return a()?.header},get table(){return a()?.table?.truthMatrix},id:V})),ue})()]}}),null),oe}})},Hi=({option:e,currentValue:t,onClick:r})=>{const n=()=>t()?.value===e.value;return console.log(t()?.value,e.value,n()),(()=>{const i=B2.cloneNode(!0);return Gi(i,"click",r,!0),ce(i,j(Lr,{path:wf,get["aria-label"](){return n()?"A checkmark":"Nothing"},get class(){return`text-white ${!n()&&"invisible"}`}}),null),ce(i,()=>e.name,null),i})()},$i=({title:e,error:t})=>j(ia,{className:"w-fit text-center mx-auto",title:e,error:!0,get children(){const r=Hs.cloneNode(!0);return ce(r,t),r}}),X2=({fetchResult:e})=>j(aa,{get children(){return j(v0,{title:"Show me how it's done",get children(){const t=b2.cloneNode(!0),r=t.firstChild;return ce(r,j(at,{get each(){return e()?.orderOperations},children:(n,i)=>(()=>{const a=H2.cloneNode(!0),s=a.firstChild,f=s.firstChild,o=s.nextSibling;return ce(s,()=>i()+1,f),ce(o,()=>j(at,{get each(){return Sl(n.before,n.after)},children:l=>(()=>{const c=$2.cloneNode(!0);return ce(c,()=>l.value),h0(()=>qe(c,`${l.added&&"bg-green-700"} ${l.removed&&"bg-red-700"}`)),c})()}),null),ce(o,j(nr,{get when(){return typeof window<"u"&&window.outerWidth<=640},keyed:!0,get children(){const l=U2.cloneNode(!0);return l.firstChild,ce(l,()=>n.law,null),l}}),null),ce(a,j(nr,{get when(){return typeof window<"u"&&window.outerWidth>640},keyed:!0,get children(){const l=W2.cloneNode(!0);return l.firstChild,ce(l,()=>n.law,null),l}}),null),a})()})),t}})}}),z2=()=>j(v0,{title:"Keywords",get children(){return G2.cloneNode(!0)}});uf(()=>j(V2,{}),document.getElementById("root"));In(["click"]); diff --git a/index.html b/index.html index ea20a18..49106df 100644 --- a/index.html +++ b/index.html @@ -7,9 +7,9 @@ Hjem | Martials.no - - - + + + diff --git a/simplify-truths.html b/simplify-truths.html index 30992b3..ca3301b 100644 --- a/simplify-truths.html +++ b/simplify-truths.html @@ -8,9 +8,9 @@ - - - + + +