PageSourceSearch

https://fossilsketch.org/_next/static/chunks/pages/calculator-bf78f405f3bf05d4.js

js fossilsketch.org collected 2026-10-09 00:41:11 UTC 6,185 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5481],{1854:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/calculator",function(){return n(6256)}])},6256:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var a=n(2322),l=n(2784),r=n(4368),s=n.n(r),i=n(61),c=n(7841),u={src:"/_next/static/media/pebindex.cae772b5.png",height:169,width:525,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAD1BMVEV/f3+NjY2KioqOjo5/f39g//5MAAAABXRSTlMCIjRHFDQQcpcAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAdSURBVHicFcexDQAACIAwQP+/2ditqAZQY06w/jkBowAcxyFbfAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:3},o={src:"/_next/static/media/aeindex.0ca4f687.png",height:169,width:376,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAADFBMVEW0tLSqqqqysrKxsbGMyOuGAAAABHRSTlMBFR87bZOH3gAAAAlwSFlzAAALEwAACxMBAJqcGAAAACBJREFUeJxjYGBigAJmRgZGRmYmBmYmZmYwg4mBESwJAAJwACUZKOV0AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4},d=n(6577),A=n.n(d);var x=function(e){var t=e.showAECalc,n=e.showPEBCalc,r=e.setOpenCalc,d=function(e){"aeindex"===e?j((T/(T+I)*100).toFixed(3)):p(((g+N+y)/O*100).toFixed(3))},x=(0,l.useState)("0"),h=x[0],p=x[1],m=(0,l.useState)("0"),_=m[0],j=m[1],b=(0,l.useState)(0),g=b[0],v=b[1],f=(0,l.useState)(0),N=f[0],w=f[1],C=(0,l.useState)(0),y=C[0],E=C[1],B=(0,l.useState)(0),O=B[0],S=B[1],P=(0,l.useState)(0),T=P[0],R=P[1],z=(0,l.useState)(0),I=z[0],k=z[1];return(0,a.jsx)("div",{className:s().background,children:(0,a.jsxs)("div",{className:s().container,children:[n&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:s().row,children:[(0,a.jsxs)("div",{style:{width:"40%"},children:[(0,a.jsx)("div",{className:s().title,children:"PEB Index Calculator"}),(0,a.jsx)(A(),{width:"450",height:"173",src:u}),(0,a.jsxs)("div",{className:s().description,children:["N",(0,a.jsx)("sub",{children:"P"}),", N",(0,a.jsx)("sub",{children:"E"}),", and N",(0,a.jsx)("sub",{children:"B"})," are the counts of"," ",(0,a.jsx)("em",{children:"Pseudononion / Nonionella"}),", ",(0,a.jsx)("em",{children:"Epistominella"}),", and"," ",(0,a.jsx)("em",{children:"Buliminella"})," respectively, and N",(0,a.jsx)("sub",{children:"T"})," is the total assemblage count."]})]}),(0,a.jsxs)("div",{style:{width:"50%"},children:[(0,a.jsx)(i.o,{size:"md",onChange:function(e){return v(parseInt(e.currentTarget.value))},label:"# Pseudononion + Nonionella",variant:"unstyled",className:s().text_input}),(0,a.jsx)(i.o,{size:"md",onChange:function(e){return w(parseInt(e.currentTarget.value))},label:"# Epistominella",variant:"unstyled",className:s().text_input}),(0,a.jsx)(i.o,{size:"md",onChange:function(e){return E(parseInt(e.currentTarget.value))},label:"# Buliminella",variant:"unstyled",className:s().text_input}),(0,a.jsx)(i.o,{size:"md",onChange:function(e){return S(parseInt(e.currentTarget.value))},label:"# Total",variant:"unstyled",className:s().text_input})]})]}),(0,a.jsxs)("div",{className:s().button_container,children:[(0,a.jsx)("div",{className:s().result,children:h}),(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsx)(c.z,{radius:"xl",size:"xl",className:s().calculate_button,onClick:function(){return d("pebindex")},children:"Calculate"}),(0,a.jsx)(c.z,{radius:"xl",size:"xl",ml:20,className:s().calculate_button,onClick:function(){return r(!1)},children:"Close"})]})]})]}),t&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:s().row,children:[(0,a.jsxs)("div",{style:{width:"40%"},children:[(0,a.jsx)("div",{className:s().title,children:"A-E Index Calculator"}),(0,a.jsx)(A(),{width:"380",height:"173",src:o}),(0,a.jsxs)("div",{className:s().description,children:["N",(0,a.jsx)("sub",{children:"A"})," and N",(0,a.jsx)("sub",{children:"E"})," are the counts of ",(0,a.jsx)("em",{children:"Ammonia"})," ","and ",(0,a.jsx)("em",{children:"Elphidium"})," respectively."]})]}),(0,a.jsxs)("div",{style:{width:"50%"},children:[(0,a.jsx)(i.o,{size:"md",onChange:function(e){return R(parseInt(e.currentTarget.value))},label:"# Ammonia",variant:"unstyled",className:s().text_input}),(0,a.jsx)(i.o,{size:"md",onChange:function(e){return k(parseInt(e.currentTarget.value))},label:"# Elphidium",variant:"unstyled",className:s().text_input})]})]}),(0,a.jsxs)("div",{className:s().button_container,children:[(0,a.jsx)("div",{className:s().result,children:_}),(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsx)(c.z,{radius:"xl",size:"xl",className:s().calculate_button,onClick:function(){return d("ae
1index")},children:"Calculate"}),(0,a.jsx)(c.z,{radius:"xl",size:"xl",ml:20,className:s().calculate_button,onClick:function(){return r(!1)},children:"Close"})]})]})]})]})})}},4368:function(e){e.exports={background:"calculator_background__8N_uc",close:"calculator_close__FeVlR",container:"calculator_container__VgC4y",row:"calculator_row__D9Pve",title:"calculator_title__D3aRg",description:"calculator_description__vyOTY",calculate_button:"calculator_calculate_button__RjPc3",button_container:"calculator_button_container__J9ZS4",result:"calculator_result__BlJMJ",text_input:"calculator_text_input__mgjWr"}},61:function(e,t,n){"use strict";n.d(t,{o:function(){return p}});var a=n(2784),l=n(6261),r=n(6720),s=Object.defineProperty,i=Object.defineProperties,c=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,A=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&A(e,n,t[n]);if(u)for(var n of u(t))d.call(t,n)&&A(e,n,t[n]);return e};const h={type:"text",size:"sm",__staticSelector:"TextInput"},p=(0,a.forwardRef)(((e,t)=>{const n=(0,l.k)("TextInput",h,e),{inputProps:s,wrapperProps:A}=n,p=((e,t)=>{var n={};for(var a in e)o.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&u)for(var a of u(e))t.indexOf(a)<0&&d.call(e,a)&&(n[a]=e[a]);return n})(n,["inputProps","wrapperProps"]);return a.createElement(r.I.Wrapper,x({},A),a.createElement(r.I,(m=x(x({},s),p),i(m,c({ref:t})))));var m}));p.displayName="@mantine/core/TextInput"}},function(e){e.O(0,[6577,7301,9774,2888,179],(function(){return t=1854,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.