1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6707],{7196:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/games/matching/[gameId]",function(){return o(6541)}])},6541:function(e,t,o){"use strict";o.r(t);var n=o(2322),a=o(5632),s=o(2784),r=o(6766),i=o.n(r),d=o(1783),l=o(2807),u=o(8760),m=o(1191),g=o(7973),c=o(2589),_=o(5117);t.default=function(e){var t=e.handleLogout,o=(0,a.useRouter)().query.gameId,r=(0,s.useContext)(g.Z),p=c.S.useQuery(["gameTemplates.getMatchingGameTemplate",{gameId:o}],{enabled:!!o&&"string"===typeof o}),h=p.data,f=p.isLoading,x=p.error;return f?(0,n.jsxs)("div",{className:i().background,children:[(0,n.jsx)(d.Z,{handleLogout:t}),(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",color:"white"},children:(0,n.jsx)(_.x,{children:"Loading game..."})})]}):x||!h?(0,n.jsxs)("div",{className:i().background,children:[(0,n.jsx)(d.Z,{handleLogout:t}),(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",color:"white"},children:(0,n.jsx)(_.x,{children:"Game not found or error loading game."})})]}):(0,n.jsxs)("div",{className:i().background,children:[(0,n.jsx)(d.Z,{handleLogout:t}),r.currentClass&&(0,n.jsx)(m.Z,{activityKey:h.name,classroomId:parseInt(r.currentClass)}),(0,n.jsx)(l.Z,{title:h.title,propertyType:h.property_type,numCards:h.num_cards_per_round,fossilType:h.fossil_type,topImageFolder:h.top_image_folder,topImageFolderHint:h.top_image_folder_hint||void 0,bottomImageFolder:h.bottom_image_folder,gameName:h.name,filteredFossils:h.filtered_fossils||void 0,roundValues:h.round_values||void 0,numRounds:h.num_rounds}),h.show_image_popout&&h.image_popout_name&&(0,n.jsx)(u.Z,{imgName:h.image_popout_name,startOpen:!1,morphoImage:!1})]})}}},function(e){e.O(0,[4185,6577,443,9341,256,6943,79,9774,2888,179],(function(){return t=7196,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.