PageSourceSearch

https://fossilsketch.org/_next/static/chunks/pages/home-8961b126599be9a4.js

js fossilsketch.org collected 2026-10-09 00:41:31 UTC 9,060 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[229],{3417:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/home",function(){return n(2753)}])},2753:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return A}});var o=n(8788),r=n(865),s=n(6670),i=n(2970),a=n(2322),l=n(2784),u=n(1019),c=n(1783),d=n(8875),m=n(2623),_=n(5117),f=n(6068),h=n.n(f),g=n(2672);var v=function(e){var t=e.number,n=e.title,o=e.description,r=e.links,s=e.stars,i=e.id;return(0,a.jsx)("div",{style:{width:"100%"},children:(0,a.jsx)(m.X,{shadow:"sm",p:"md",radius:"md",className:h().container,children:(0,a.jsxs)("div",{className:h().module_container,children:[(0,a.jsxs)("div",{className:h().module_text_container,children:[(0,a.jsxs)(_.x,{className:h().module_title,children:[t,". ",n]}),(0,a.jsx)(_.x,{className:h().module_description,dangerouslySetInnerHTML:{__html:o}})]}),(0,a.jsx)("div",{className:h().module_icon_container,children:r.map((function(e,t){var n=-1;if("number"===typeof e.stars)n=e.stars;else if(!0===e.stars||void 0===e.stars){var o;n=s?null!==(o=function(e){switch(e){case"Valve Orientation":return null===s||void 0===s?void 0:s.ostracod_orientation;case"Morphotypes":return null===s||void 0===s?void 0:s.morphotype_matching;case"Outline":return null===s||void 0===s?void 0:s.ostracod_outline;case"Chambers":var t,n;return null!==(n=null===(t=s)||void 0===t?void 0:t.chamber_matching)&&void 0!==n?n:null===s||void 0===s?void 0:s.foram_chamber;case"Assemblage Game":return null===s||void 0===s?void 0:s.foram_assemblage;case"Ostracod Assemblage":return null===s||void 0===s?void 0:s.ostracod_assemblage;case"Reconstruction using Morphotypes":return null===s||void 0===s?void 0:s.morphotype_assemblage;case"Alaska Assemblage":return null===s||void 0===s?void 0:s.alaska_assemblage;case"Bug Sorting":return null===s||void 0===s?void 0:s.bug_sorting;case"Feature Id":return null===s||void 0===s?void 0:s.feature_id;case"Matagorda Bay Ostracod":return null===s||void 0===s?void 0:s.mb_ostracod;case"Matagorda Bay Spatial":return null===s||void 0===s?void 0:s.mb_spatial;case"Matagorda Bay Temporal":return null===s||void 0===s?void 0:s.mb_temporal;default:return 0}}(e.title))&&void 0!==o?o:0:-1}else n=-1;return(0,a.jsx)(g.Z,{link:e.link,button_title:e.button_title,stars:n,title:e.title,fossilIds:[],bgImage:e.bgImage,id:i},t)}))})]})})})}
1,p=n(7973),b=n(9241),x=n.n(b),y=n(6930),S=n(2589);var C=function(){var e,t=(0,l.useContext)(p.Z),n=(0,l.useState)(),o=n[0],i=n[1],u=(0,l.useState)(),c=u[0],m=u[1],_=(0,l.useState)({alaska_assemblage:0,bug_sorting:0,feature_id:0,foram_chamber:0,foram_assemblage:0,morphotype_assemblage:0,morphotype_matching:0,ostracod_assemblage:0,ostracod_orientation:0,ostracod_outline:0,mb_ostracod:0,mb_spatial:0,mb_temporal:0}),f=_[0],h=_[1],g=0,b=null!==(b=S.S.useQuery(["classroom.getContent",{classroomId:null!==(e=t.currentClass)&&void 0!==e?e:"",contentType:y.Fm}],{onSuccess:function(e){i(e.modules),m(e.subModules)}}))?b:(0,d.Z)(new TypeError("Cannot destructure undefined")),C=null!==(C=S.S.useQuery(["games.getUserHighScores"],{onSuccess:function(e){var t=(0,r.Z)({},f);e.scores.forEach((function(e){t[e.name]=e.stars})),h(t)}}))?C:(0,d.Z)(new TypeError("Cannot destructure undefined"));return(0,a.jsx)("div",{className:x().container,children:null===o||void 0===o?void 0:o.map((function(e,t){if(e.enabled){g+=1;var n=null===c||void 0===c?void 0:c.filter((function(t){return t.module_id===e.id})),o=n&&0!==n.length?e.linkInfo.filter((function(e){return n.some((function(t){return t.link_id===e.link_id&&t.enabled}))})):e.linkInfo;return(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",margin:"auto"},children:(0,a.jsx)(v,{number:g,title:e.title,description:e.description,links:o.map((function(e){return(0,s.Z)((0,r.Z)({},e),{link:e.link})})),stars:f,id:e.id})},t)}}))})},j=n(2468),k=n(3368),w=n.n(k),I=n(8420),N=(n(7738),n(8090)),E=n(9236),Z=n(7138),M=n(9094),T=n(7841),O=n(3575),R=n(5632);var A=function(e){var t=e.handleLogout,n=(0,l.useRef)(null),d=(0,l.useContext)(p.Z),m=(0,l.useState)(!1),f=m[0],h=m[1],g=(0,l.useState)(!1),v=g[0],b=g[1],x=(0,R.useRouter)(),y=(0,u.c)({initialValues:{registrationCode:""}}),k=(0,l.useState)([{element:"#__next",intro:'Welcome to FossilSketch!\n        <Image\n          src="/logos/fossil.png"\n          alt="FossilSketch icon"\n        />\n      <br />\n      <br />\n      Let\'s take a quick tour to help you get familiar with the website.'},{element:"#__next",intro:"Use the sidebar on top left to navigate to different sections \ud83d\udcc2 of the site."},{element:"#__next > div > div:nth-child(3) > div > div:nth-child(1) > div",intro:"Explore videos \ud83d\udcfa and games \ud83c\udfae to deepen your understanding of micropaleontology."},{element:"#__next",intro:"Enjoy exploring FossilSketch! \ud83c\udf89\n        <br />\n        <br />\n        We hope you have a great time learning."}]),A=k[0];k[1],(0,l.useEffect)((function(){b(!0)}),[]);var F=S.S.useMutation("register.addNewClass").mutate,B=function(){var e=(0,o.Z)((function(){var e,t,n,o,r,s,a,l,u,c,m,_,f,h,g,v,p,b,S;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(e=d.user,t=y.values.registrationCode||"",n=Array.from(new Set(t.split(/[\n,\s,]+/).map((function(e){return e.trim()})).filter(Boolean))),o={},0===n.length)return(0,O.c0)((o.id="emptyCodes",o.title="No codes",o.message="Please enter at least one classroom code.",o.color="red",o.autoClose=4e3,o)),[2];r=function(t){return new Promise((function(n){F({registrationCode:t,userId:e},{onSuccess:function(e){return n({classroomId:e.classroomId,code:t})},onError:function(){return n({code:t})}})}))},s=[],a=!0,l=!1,u=void 0,i.label=1;case 1:i.trys.push([1,6,7,8]),c=n[Symbol.iterator](),i.label=2;
1case 2:return(a=(m=c.next()).done)?[3,5]:(_=m.value,[4,r(_)]);case 3:f=i.sent(),s.push(f),i.label=4;case 4:return a=!0,[3,2];case 5:return[3,8];case 6:return h=i.sent(),l=!0,u=h,[3,8];case 7:try{a||null==c.return||c.return()}finally{if(l)throw u}return[7];case 8:return g=s.filter((function(e){return e.classroomId})),v=s.filter((function(e){return!e.classroomId})),p={},g.length&&((0,O.c0)((p.id="classAddOk",p.title="Success",p.message="Added ".concat(g.length," class(es)"),p.color="green",p.autoClose=3e3,p)),(b=g[g.length-1]).classroomId&&(d.setCurrentClass(String(b.classroomId)),setTimeout((function(){return x.reload()}),1200))),S={},v.length&&(0,O.c0)((S.id="classAddFail",S.title="Some codes failed",S.message=v.map((function(e){return e.code})).join(", "),S.color="red",S.autoClose=6e3,S)),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,a.jsxs)("div",{className:w().background,children:[(0,a.jsx)(N.u,{centered:!0,opened:f,onClose:function(){return h(!1)},withCloseButton:!0,closeOnClickOutside:!1,children:(0,a.jsxs)("form",{onSubmit:y.onSubmit(B),children:[(0,a.jsx)(E.D,{className:w().card_title,children:"Register for class(es)"}),(0,a.jsxs)("div",{children:[(0,a.jsx)(_.x,{className:w().input_label,children:"Registration code(s)"}),(0,a.jsx)(Z.g,(0,s.Z)((0,r.Z)({name:"registrationCode",placeholder:"Enter one code per line or comma-separated",autosize:!0,minRows:3},y.getInputProps("registrationCode")),{required:!0,variant:"unstyled",className:w().input_text}))]}),(0,a.jsx)(M.M,{children:(0,a.jsx)(T.z,{type:"submit",size:"md",mt:"md",radius:"md",variant:"filled",children:"REGISTER"})})]})}),(0,a.jsx)("div",{children:(0,a.jsx)(c.Z,{handleLogout:t})}),(0,a.jsx)("div",{children:(0,a.jsx)(j.Z,{classHandler:function(e){return d.setCurrentClass(e)},joinClassHandler:function(){return h(!0)}})}),(0,a.jsx)("div",{children:(0,a.jsx)(C,{selectedClassroom:d.currentClass})}),v&&(0,a.jsx)(I.R,{ref:n,initialStep:0,enabled:"1"===localStorage.getItem("showIntro"),steps:A,options:{showStepNumbers:!0},onExit:function(){localStorage.setItem("showIntro","0")},onBeforeChange:function(e){2===e&&n.current&&n.current.updateStepElement(e)},onChange:function(e){}})]})}},3368:function(e){e.exports={background:"home_background__ptv1F",card_title:"home_card_title__MhE8g",input_label:"home_input_label__6Yv_D",input_text:"home_input_text__aSlsg"}},6068:function(e){e.exports={container:"module_container__gb2u8",module_title:"module_module_title__TnGbq",module_description:"module_module_description__hLY_r",module_text_container:"module_module_text_container__4DQyo",module_container:"module_module_container__VsipY",module_icon_container:"module_module_icon_container__bUt6X"}},9241:function(e){e.exports={background:"module_list_background__Zq2dl",container:"module_list_container__jMxGm"}},6930:function(e,t,n){"use strict";n.d(t,{C2:function(){return r},Fm:function(){return o},gh:function(){return l},mv:function(){return i},zf:function(){return s}});const o="module",r="foraminifera",s="ostracoda",i="morphotype",a=["1"];function l(e,t){if(null===e||void 0===e||""===e)return!0;const n=String(e);return!a.includes(n)||t>=2}}},function(e){e.O(0,[9774,6577,443,7301,5944,8855,7216,4300,8369,1294,2888,179],(function(){return t=3417,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.