PageSourceSearch

https://firmapp-backend.netlify.app/_next/static/chunks/pages/quizzes-4d333aaced435f22.js

js firmapp-backend.netlify.app collected 2026-10-03 10:45:26 UTC 20,909 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5731],{4868:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quizzes",function(){return t(62169)}])},20921:function(e,n,t){"use strict";var r=t(85893);n.Z=function(e){var n=e.className;return(0,r.jsx)("div",{className:"".concat(n," w-8 h-8 overflow-hidden"),children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:{margin:"auto",background:"transparent",display:"block"},width:"100%",height:"100%",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:(0,r.jsx)("circle",{cx:"50",cy:"50",r:"32",strokeWidth:"8",stroke:"currentColor",strokeDasharray:"50.26548245743669 50.26548245743669",fill:"none",strokeLinecap:"round",children:(0,r.jsx)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",keyTimes:"0;1",values:"0 50 50;360 50 50"})})})})}},92422:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var r=t(85893),i={primary:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-boni-red text-base font-medium text-white hover:bg-boni-red focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm disabled:opacity-50",secondary:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-gray-200 text-base font-medium text-dark hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm disabled:opacity-50",accept:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-green-500 text-base font-medium text-dark hover:bg-green-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm disabled:opacity-50",later:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-gray-400 text-base font-medium text-dark hover:bg-boni-gold focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm disabled:opacity-50",decline:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-500 text-base font-medium text-dark hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm disabled:opacity-50"};function s(e){var n=e.children,t=e.disabled,s=e.label,o=e.onClick,a=e.color,l=e.type,u=e.className;return(0,r.jsx)("button",{className:i[a]+(null!==u&&void 0!==u?u:""),disabled:t,onClick:o,type:l,children:n||s})}},12174:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var r=t(85893),i=t(67294),s=function(e){var n=e.children,t=e.collapsed,s=(0,i.useRef)(),o=(0,i.useState)(0),a=o[0],l=o[1],u=(0,i.useState)(0),c=u[0],d=u[1];return(0,i.useEffect)((function(){var e=null===s||void 0===s?void 0:s.current;e&&l(e.scrollHeight)}),[]),(0,i.useEffect)((function(){d(a*Number(!t))}),[a,t]),(0,r.jsx)("div",{ref:s,style:{height:"".concat(c,"px")},className:" duration-200 ease-out overflow-hidden transition-[height] ",children:n})}},69149:function(e,n,t){"use strict";t.d(n,{t:function(){return f}});var r=t(85893),i=t(82183),s=t(20013),o=t(17524),a=t(30347),l=t(67294),u=t(93054),c=[5,10,20,50,100].map((function(e){return{value:e,label:e.toString()}})),d=function(e){return(0,r.jsx)("button",{className:"\n        text-xs font-semibold\n        px-2 py-1\n        rounded\n        transition-colors\n        flex justify-center basis-8 flex-shrink-0\n        hover:bg-boni-blue/25\n        disabled:text-slate-200 disabled:bg-slate-50 disabled:hover:bg-slate-50\n        ".concat(e.active?"bg-boni-blue text-white":"bg-slate-100","\n      "),disabled:e.disabled,onClick:e.onClick,type:"button",children:e.children})},f=function(e){var n=function(){return e.pageIndex==x},t=function(){var n=x+f-1;return e.pageIndex==n},f=Math.ceil(e.itemsCount/e.itemsPerPage),m=(0,l.useState)(0),x=m[0],p=m[1],v=(0,l.useState)(0),h=v[0],b=v[1],g=(0,l.useState)(e.itemsPerPage||20),y=g[0],j=g[1],w=(0,l.useCallback)((function(e){var n=Math.max(0,e-Math.floor(2.5)),t=Math.min(n+5,f),r=t-n;r<5&&(n=Math.max(0,n-(5-r))),p(n),b(t)}),[f]);return(0,l.useEffect)((function(){w(e.pageIndex)}),[e.pageIndex,w]),(0,r.jsxs)("div",{className:"flex gap-2 justify-between py-2 text-slate-600",children:[(0,r.jsx)("div",{className:"w-32"}),(0,r.jsxs)("div",{className:"flex overflow-hidden flex-1 gap-2 justify-center items-center",children:[(0,r.jsx)(d,{onClick:function(){w(0)},disabled:n(),children:(0,r.jsx)(i.Z,{className:"h-4"})}),(0,r.jsx)(d,{onClick:function(){w(x-5)},disabled:n(),children:(0,r.jsx)(s.Z,{className:"h-4"})}),function(e){for(var n=[],t=e;t<h;t++)n.push(t);return n}(x).map((function(n,t){return(0,r.jsx)(d,{active:e.pageIndex==n,onClick:function(){e.onClickPage(n)},children:n+1},t)})),(0,r.jsx)(d,{onClick:function(){w(h)},disabled:t(),children:(0,r.jsx)(o.Z,{className:"h-4"})}),(0,r.jsx)(d,{onClick:function(){w(f-5)},disabled:t(),children:(0,r.jsx)(a.Z,{className:"h-4"})})]}),(0,r.jsx)("div",{className:"w-32",children:(0,r.jsx)(u.ZP,{options:c,value:{value:y,label:y.toString()},onChange:function(n){return function(n){j(n),e.onClickPage(0),e.onItemsPerPageChange(n)}(n.value)},isSearchable:!1,menuPlacement:"auto"})})]})}},2812:function(e,n,t){"use strict";var r=t(85893),i=t(67294);n.Z=function(e){var n=e.src,t=(0,i.useState)(!1),s=t[0],o=t[1];return s?(0,r.jsx)("div",{style:{paddingTop:"56.25%"},className:"rounded-2xl overflow-hidden relative w-full",children:(0,r.jsx)("div",{style:{background:"url(/images/yt_accept_20240703.png)",backgroundSize:"contain"},className:"rounded-2xl w-full h-full inset-0 absolute",children:(0,r.jsx)("iframe",{className:"w-full h-full inset-0 absolute",src:n+"&autoplay=1",allow:"fullscreen autoplay",onLoad:function(){}})})}):(0,r.jsx)("div",{style:{paddingTop:"56.25%"},className:"rounded-2xl overflow-hidden relative w-full",children:(0,r.jsx)("div",{style:{background:"url(/images/yt_accept_20240703.png)",backgroundSize:"contain"},className:"rounded-2xl w-full h-full inset-0 absolute cursor-pointer",onClick:function(){o(!0)}})})}},31445:function(e,n,t){"use strict";t.d(n,{E:function(){return b},B:function(){return y}});var r=t(34051),i=t.n(r),s=t(17283),o=t(43170),a=t(57976),l=t(8819),u=t(37865);function c(e,n,t,r,i,s,o){try{var a=e[s](o),l=a.value}catch(u){return void t(u)}a.done?n(l):Promise.resolve(l).then(r,i)}function d(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var s=e.apply(n,t);function o(e){c(s,r,i,o,a,"next",e)}function a(e){c(s,r,i,o,a,"throw",e)}o(void 0)}))}}function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){f(e,n,t[n])}))}return e}function x(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function p(){var e=x(["\n    query sendPushNotification($title: String, $body: String, $groupID: String, $uriType: String, $uri: String, $extraData: String) {\n        sendPushNotification(title: $title, body: $body, groupID: $groupID, uriType: $uriType, uri: $uri, extraData: $extraData){\n            responses {\n                success\n                messageId\n            },\n            successCount,\n            failureCount\n        }\n    }"]);return p=function(){return e},e}function v(){var e=x(["\n    query sendPushNotification($title: String, $body: String, $userIDs: [String], $uriType: String, $uri: String){\n        sendPushNotification(title: $title, body: $body, userIDs: $userIDs, uriType: $uriType, uri: $uri){\n            responses {\n                success\n                messageId\n            },\n            successCount,\n            failureCount\n        }\n    }"]);return v=function(){return e},e}function h(){var e=localStorage.getItem("hjwt");if(!e&&document.cookie){var n=document.cookie.split(";").find((function(e){return e.trim().startsWith("__Secure-next-auth.session-token=")||e.trim().startsWith("next-auth.session-token=")}));n&&(e=n.split("=")[1])}return e}function b(e,n,t,r,i,s){return g.apply(this,arguments)}function g(){return(g=d(i().mark((function e(n,t,r,c,d,f){var x,v,b,g,y;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x=(0,s.Ps)(p()),v=(0,o.L)({uri:"https://firmapp-backend.netlify.app/.netlify/functions/graphql"}
1),b=(0,u.v)((function(e,n){var t=n.headers,r=h();return{headers:m({},t,r&&{authorization:"Bearer ".concat(r)})}})),g=new a.f({cache:new l.h,link:b.concat(v)}),e.prev=4,e.next=7,g.query({query:x,variables:{title:n,body:t,groupID:r,uriType:c,uri:d,extraData:f?JSON.stringify(f):void 0}});case 7:return y=e.sent,e.abrupt("return",y.data.sendPushNotification);case 11:throw e.prev=11,e.t0=e.catch(4),console.error("Error sending push notification to group:",e.t0),e.t0;case 15:case"end":return e.stop()}}),e,null,[[4,11]])})))).apply(this,arguments)}function y(e,n,t,r,i){return j.apply(this,arguments)}function j(){return(j=d(i().mark((function e(n,t,r,c,d){var f,x,p,b,g;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f=(0,s.Ps)(v()),x=(0,o.L)({uri:"https://firmapp-backend.netlify.app/.netlify/functions/graphql"}),p=(0,u.v)((function(e,n){var t=n.headers,r=h();return{headers:m({},t,r&&{authorization:"Bearer ".concat(r)})}})),b=new a.f({cache:new l.h,link:p.concat(x)}),e.prev=4,e.next=7,b.query({query:f,variables:{title:n,body:t,userIDs:r,uriType:c,uri:d}});case 7:return g=e.sent,e.abrupt("return",g.data.sendPushNotification);case 11:throw e.prev=11,e.t0=e.catch(4),console.error("Error sending push notification to users:",e.t0),e.t0;case 15:case"end":return e.stop()}}),e,null,[[4,11]])})))).apply(this,arguments)}},11927:function(e,n,t){"use strict";function r(e,n){var t,r,i;return null===e||void 0===e||null===(t=e.user)||void 0===t||null===(r=t.roleObj)||void 0===r||null===(i=r.permissions)||void 0===i?void 0:i.includes(n)}t.d(n,{C:function(){return r}})},62169:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return z},default:function(){return I}});var r=t(34051),i=t.n(r),s=t(85893),o=t(67294),a=t(11163),l=t(97568),u=t(33299),c=t(20921),d=t(92422),f=t(11927),m=t(12174),x=t(28309);var p=function(e){var n=e.answer;return(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(x.e,{className:"\n          w-6 h-6 flex-none\n          ".concat((null===n||void 0===n?void 0:n.correct)?"text-green-300":"text-red-300","\n        "),icon:(null===n||void 0===n?void 0:n.correct)?"HandThumbUpIcon":"HandThumbDownIcon"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"font-semibold",children:null===n||void 0===n?void 0:n.title}),(null===n||void 0===n?void 0:n.text)&&(0,s.jsx)("p",{className:"text-xs",children:null===n||void 0===n?void 0:n.text})]})]})},v=t(25935),h=t(22424),b=t(2812);var g=function(e){var n=function(e){return h.Z.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["src","width","height","frameborder","allow","allowfullscreen"]})}(e);return console.log(e),console.log(n),(0,v.ZP)(n,{replace:function(e){if(t=e,(null!=(r=v.W_)&&"undefined"!==typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)&&"iframe"===e.name){var n=e.attribs.src;if(n&&n.includes("youtube"))return(0,s.jsx)("div",{className:"w-1/3",children:(0,s.jsx)(b.Z,{src:n})})}var t,r}})};var y=function(e){var n=e.className,t=e.question,r=(null===t||void 0===t?void 0:t.text)?g(null===t||void 0===t?void 0:t.text):"";return(0,s.jsxs)("div",{className:"".concat(n," bg-slate-50 text-slate-600 border border-gray-100 rounded-lg p-4"),children:[(0,s.jsx)("span",{className:"font-semibold",children:null===t||void 0===t?void 0:t.title}),r&&(0,s.jsx)("p",{className:"text-xs",children:r}),(0,s.jsx)("div",{className:"flex flex-col gap-4 m-4",children:null===t||void 0===t?void 0:t.answers.map((function(e){return(0,s.jsx)(p,{answer:e},e.id)}))})]})},j=t(31445);function w(e,n,t,r,i,s,o){try{var a=e[s](o),l=a.value}catch(u){return void t(u)}a.done?n(l):Promise.resolve(l).then(r,i)}(0,t(13560).Z)(function(){var e,n=(e=i().mark((function e(n,t,r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(n.map((function(e){return(0,j.E)(t,r,e,"internal","GroupStack/Group/Quiz")})));case 2:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,i){var s=e.apply(n,t);function o(e){w(s,r,i,o,a,"next",e)}function a(e){w(s,r,i,o,a,"throw",e)}o(void 0)}))});return function(e,t,r){return n.apply(this,arguments)}}(),3e3);var N=function(e){var n,t,r,i,c,p,v,h,b=e.quiz,j=(0,l.$G)(["quizzes"]).t,w=(0,a.useRouter)(),N=(0,u.useSession)().data,_=(null===b||void 0===b?void 0:b.text)?g(null===b||void 0===b?void 0:b.text):"",k=(0,o.useState)(!1),S=k[0],C=k[1],P=!b.is_standard&&(0,f.C)(N,"quiz_update")||b.is_standard&&((0,f.C)(N,"standardcontent_edit")||["moderator","group_leader"].includes(null!==(h=null===(n=N.user)||void 0===n||null===(t=n.roleObj)||void 0===t?void 0:t.name)&&void 0!==h?h:"")&&!!b.id);return(0,s.jsxs)("div",{className:"p-4 overflow-hidden text-sm bg-white rounded",children:[(0,s.jsxs)("div",{className:"flex justify-between pr-4",children:[(0,s.jsx)("h3",{className:"flex items-center gap-2",children:(0,s.jsx)("span",{className:"text-lg font-semibold text-slate-600",children:null===b||void 0===b?void 0:b.title})}),(0,s.jsxs)("div",{className:"flex gap-4 my-2",children:[!b.is_standard&&(0,s.jsxs)("div",{className:"flex items-center gap-1 text-sm text-slate-400",children:[(0,s.jsx)(x.e,{icon:"UserGroupIcon",className:"w-4 h-4 text-boni-gold"}),(null===b||void 0===b||null===(r=b.group)||void 0===r?void 0:r.name)||j("all_groups")]}),b.is_standard&&(0,s.jsx)("span",{className:"block px-2 py-1 text-xs font-semibold text-white rounded bg-boni-blue",children:j("quizzes.standard_content")}),((null===b||void 0===b||null===(i=b.user)||void 0===i?void 0:i.first_name)||(null===b||void 0===b||null===(c=b.user)||void 0===c?void 0:c.last_name))&&(0,s.jsxs)("div",{className:"flex items-center gap-1 text-sm text-slate-400",children:[(0,s.jsx)(x.e,{icon:"UserIcon",className:"w-4 h-4 text-boni-gold"}),[null===b||void 0===b||null===(p=b.user)||void 0===p?void 0:p.first_name,null===b||void 0===b||null===(v=b.user)||void 0===v?void 0:v.last_name].join(" ")]}),(0,s.jsxs)("div",{className:"flex items-center gap-1 text-sm text-slate-400",children:[(0,s.jsx)(x.e,{icon:"CalendarIcon",className:"w-4 h-4 text-boni-gold"}),new Date(null===b||void 0===b?void 0:b.created_at).toLocaleDateString()]})]})]}),(0,s.jsx)("div",{className:"flex items-center justify-center h-1 my-4 bg-slate-100",children:(0,s.jsxs)("button",{className:"flex items-center gap-2 p-4 text-xs bg-white text-slate-500",onClick:function(){C(!S)},type:"button",children:[(0,s.jsx)(x.e,{icon:S?"ChevronDoubleUpIcon":"ChevronDoubleDownIcon",className:"w-4 h-4 text-slate-400"}),j("quizzes.show_details"),(0,s.jsx)(x.e,{icon:S?"ChevronDoubleUpIcon":"ChevronDoubleDownIcon",className:"w-4 h-4 text-slate-400"})]})}),(0,s.jsxs)(m.Z,{collapsed:!S,children:[_&&(0,s.jsx)("p",{className:"ml-10 text-xs text-slate-500",children:_}),(0,s.jsx)("div",{className:"flex flex-col items-stretch gap-4 m-4 ml-5",children:null===b||void 0===b?void 0:b.questions.map((function(e,n){return(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)("span",{className:"text-lg font-semibold text-right text-slate-400",children:[n+1,"."]}),(0,s.jsx)(y,{className:"flex-1",question:e})]},e.id)}))})]}),(0,s.jsx)("div",{className:"flex justify-end mr-4",children:(0,s.jsx)("div",{children:(0,s.jsxs)(d.Z,{disabled:!P,color:"secondary",className:"flex items-center gap-2 disabled:bg-slate-200 disabled:text-slate-400",onClick:function(){w.push("quizzes/edit/".concat(null===b||void 0===b?void 0:b.id))},children:[(0,s.jsx)(x.e,{icon:"PencilIcon",className:"w-3 h-3",outline:!0}),(0,s.jsx)("span",{children:j("quizzes.edit_button_caption")})]})})})]})},_=t(69149),k=t(97399),S=t(37887),C=t(41883);function P(e,n,t,r,i,s,o){try{var a=e[s](o),l=a.value}catch(u){return void t(u)}a.done?n(l):Promise.resolve(l).then(r,i)}var z=!0,I=function(){var e,n,t,r,m,x,p,v,h,b=(0,l.$G)(["quizzes"],{keyPrefix:"quizzes"}).t,g=(0,a.useRouter)(),y=(0,u.useSession)().data,j=(0,o.useState)(5),w=j[0],z=j[1],I=(0,o.useState)(0),q=I[0],D=I[1],$=(0,o.useState)(!1),T=$[0],O=$[1],Z=("moderator"==(null===(e=y.user)||void 0===e?void 0:e.roleObj.name)||"group_leader"==(null===(n=y.user)||void 0===n?void 0:n.roleObj.name))&&0==(null===(t=y.user)||void 0===t||null===(r=t.groups)||void 0===r?void 0:r.length),E={_and:[{is_question_pool:{_eq:T}}]};if("admin"!==(null===(m=y.user)||void 0===m||null===(x=m.roleObj)||void 0===x?void 0:x.name)){var A,M,G=(null===(A=y.user)||void 0===A||null===(M=A.groups)||void 0===M?void 0:M.map((function(e){return e.id})))||[];T||E._and.push({_or:[{group_id:{_in:G}},{group_id:{_is_null:!0}},{quiz_visibilities:{group_id:{_in:G},visible:{_eq:!0}}}]})}var U=(0,S.a)(k.EY,{variables:{condition:E,offset:q*w,limit:w},fetchPolicy:"network-only"}),L=U.data,R=U.loading,B=function(){var e,n=(e=i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:g.push("/quizzes/edit/new?is_question_pool=".concat(String(T)));case 1:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,i){var s=e.apply(n,t);function o(e){P(s,r,i,o,a,"next",e)}function a(e){P(s,r,i,o,a,"throw",e)}o(void 0)}))});return function(){return n.apply(this,arguments)}}(),W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];D(0),O(e)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex justify-between items-end px-4 mt-4 mr-4 mb-4",children:[(0,s.jsx)("h1",{className:"text-xl font-semibold text-slate-900",children:b("title")}),(0,s.jsxs)("div",{className:"flex gap-1 justify-center items-stretch text-sm",children:[(0,s.jsx)("button",{className:"py-1 px-2 rounded disabled:text-white bg-slate-100 text-slate-400 disabled:bg-boni-blue",disabled:!T,onClick:function(){return W(!1)},type:"button",children:b("quizzes_toggle")}),(0,s.jsx)("button",{className:"py-1 px-2 rounded disabled:text-white bg-slate-100 text-slate-400 disabled:bg-boni-blue hidden",disabled:T,onClick:function(){return W(!0)},type:"button",children:b("pools_toggle")})]}),(0,s.jsxs)("div",{children:[(0,f.C)(y,"quiz_create")&&(Z?(0,s.jsx)("a",{className:"my-anchor-element inline-flex justify-center items-center py-2 px-4 text-sm font-medium rounded-md border border-transparent shadow-sm sm:w-auto focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-none bg-gray-200 text-gray-400 cursor-not-allowed",children:b("create_button_caption")}):(0,s.jsx)(d.Z,{color:"primary",className:"flex gap-2 items-center w-auto",disabled:R,onClick:B,children:(0,s.jsx)("span",{children:b("create_button_caption")})}
1)),(0,s.jsx)(C.u,{anchorSelect:".my-anchor-element",place:"bottom",children:b("no_group_tooltip")})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 items-stretch p-4 bg-gray-100 rounded",children:[R&&(0,s.jsx)(c.Z,{className:"self-center w-20 h-20 text-boni-blue"}),null===L||void 0===L||null===(p=L.quizzes)||void 0===p?void 0:p.map((function(e){return(0,s.jsx)(N,{quiz:e},e.id)}))]}),(0,s.jsx)(_.t,{itemsCount:(null===L||void 0===L||null===(v=L.quizzes_aggregate)||void 0===v||null===(h=v.aggregate)||void 0===h?void 0:h.count)||0,itemsPerPage:w,pageIndex:q,onClickPage:D,onItemsPerPageChange:z})]})}},13560:function(e,n){"use strict";function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.Z=function(e,n){var t;return function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];clearTimeout(t),t=setTimeout((function(){e.apply(void 0,r(s))}),null!==n&&void 0!==n?n:200)}}}},function(e){e.O(0,[3054,7887,5935,1883,2424,7399,9774,2888,179],(function(){return n=4868,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.