"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9049],{5281:function(e,t,n){var s=n(59499),r=n(53967),a=n.n(r);n(67294);var i=n(41664),o=n.n(i),c=n(1852),l=n(40385),d=n(67314),u=n(70017),h=n(85893);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,s)}return n}function v(e){for(var t=1;t0&&(0,h.jsx)("div",{className:"jsx-3819820806 fs-xmd p-1 rounded bg-gray-200 text-gray",children:y[0].name.en})]}),(0,h.jsx)("h6",{title:m.en,className:"jsx-3819820806 text-ellipsis-2 fw-600",children:m.en}),(0,h.jsxs)("div",{className:"jsx-3819820806 "+"flex-fill row align-content-start g-2 fs-xmd text-gray justify-content-between row-cols-".concat(q?"3":"2"),children:[(0,h.jsxs)("div",{className:"jsx-3819820806 col-auto",children:[(0,h.jsx)(f,{className:"me-1",fill:"#666",height:16,width:16})," ",O.totalCount," Tests"," ",k>0&&(0,h.jsxs)("span",{className:"jsx-3819820806 bg-success px-1 text-white rounded",children:[k," Tests Free"]})]}),C>100&&(0,h.jsxs)("div",{className:"jsx-3819820806 col-auto",children:[(0,h.jsx)(x,{className:"me-1",fill:"#666",height:16,width:16}),C," Attempts"]}),Z>0&&(0,h.jsxs)("div",{className:"jsx-3819820806 col-auto d-flex align-items-center",children:[(0,h.jsx)("span",{className:"jsx-3819820806",children:void 0===S?0:S}),(0,h.jsx)(p,{className:"mx-1",fill:"gold",height:16}),(0,h.jsxs)("span",{className:"jsx-3819820806",children:["(",Z.toLocaleString(),")"]})]}),(0,h.jsxs)("div",{title:L.map(function(e){return(0,d.fm)(e.name)}).join(", "),className:"jsx-3819820806 col-auto",children:[(0,h.jsx)(g,{className:"me-1",fill:"#666",height:16,width:16}),(0,h.jsxs)("span",{className:"jsx-3819820806",children:[L.slice(0,3).map(function(e){return(0,d.fm)(e.name)}).join(", "),(0,h.jsx)("span",{className:"jsx-3819820806 text-primary",children:L.length>3&&" +".concat(L.slice(3).length," More")})]})]})]})]}),(0,h.jsx)("div",{style:{borderBottomLeftRadius:"10px",borderBottomRightRadius:"10px"},className:"jsx-3819820806 bg-primary-100 p-3",children:(0,h.jsx)(o(),{as:"/test-series/tests/".concat(m.en.toLowerCase().replaceAll(/[^a-z0-9()]/g,"-"),"-").concat(i).concat(null!==(t=y[0])&&void 0!==t&&null!==(t=t.name)&&void 0!==t&&t.en?"?examCategory=".concat(null===(n=y[0])||void 0===n||null===(n=n.name)||void 0===n?void 0:n.en):""),className:"btn btn-secondary w-100 fw-600",href:{pathname:"/test-series/tests/[testSeries]",query:{testSeries:"".concat(m.en.toLowerCase().replaceAll(/[^a-z0-9()]/g,"-"),"-").concat(i),examCategory:(null===(s=y[0])||void 0===s||null===(s=s.name)||void 0===s?void 0:s.en)||""}},onClick:function(){return(0,u.YW)({action:"test_series_card",category:"View Test Series",test:m.en,location:window.location.pathname})},children:"View Test Series"})}),(0,h.jsx)(a(),{id:"3819820806",children:[".zig-zag.jsx-3819820806{--a:90deg;--s:10px;--amask:conic-gradient( from calc(180deg - var(--a) / 2) at top, #0000, #000 1deg var(--a), #0000 calc(var(--a) + 1deg) ) 50% / var(--s);--mask:conic-gradient( from calc(var(--a) / -2), #0000, red calc(3 * var(--a)) ) 50% / var(--s);height:100px;background:red;-webkit-mask:var(--mask);-webkit-mask:var(--mask);mask:var(--mask);}"]})]})}},20065:function(e,t,n){n.r(t);var s=n(5281),r=n(52117),a=n(85893);t.default=function(e){var t,n=e.showPopular,i=e.popularTestSeries,o=void 0===i?[]:i,c=e.heading;return void 0!==n&&n?(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"fw-bold fs-xlg mt-4",children:void 0===c?"Popular Test Series":c}),(0,a.jsx)("div",{className:"position-relative my-4",children:(0,a.jsx)("div",{className:"row flex-nowrap scroller".trim(),children:(0,a.jsx)(r.Z,{children:Array.isArray(null==o?void 0:o.nodes)&&(null==o||null===(t=o.nodes)||void 0===t?void 0:t.length)>0&&(null==o?void 0:o.nodes.map(function(e,t){return(0,a.jsx)("div",{className:"responsive-card-item mx-4 h-100",children:(0,a.jsx)(s.Z,{data:e})},t)}))})})})]}):null}},67314:function(e,t,n){n.d(t,{Ge:function(){return i},Jj:function(){return s},Sw:function(){return l},aX:function(){return d},bu:function(){return c},fm:function(){return a},kq:function(){return o},yV:function(){return r}});var s=function(){return!1},r=function(e,t){if((null==t?void 0:t.length)>0){var n,s=new Date(null===(n=t[0])||void 0===n?void 0:n.createdAt),r=new Date(e),a="".concat(s.getFullYear(),"-").concat(s.getMonth()+1<10?"0".concat(parseInt(s.getMonth()+1,10)):s.getMonth()+1,"-").concat(s.getDate()+1<10?"0".concat(s.getDate()):s.getDate());if(""===e||""!==e&&s>r)return a}return e},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&"string"==typeof e?e.toLowerCase().replace(/\b([a-z])/g,function(e){return e.toUpperCase()}):e},i=function(){window.document.dispatchEvent(new CustomEvent("lockButtonContentAdded"))},o=function(e){return navigator.clipboard.writeText(e)},c=function(e){var t=e;return("."===String(e).slice(-1)&&(t=parseFloat(t)),"string"==typeof e)?String(t):t},l=function(e,t){var n;return e.forEach(function(e){e.head?e.options.forEach(function(e){String(e.id)===String(t)&&(n=e)}):String(e.id)===String(t)&&(n=e)}),n},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("?")[0]}}}]);