1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[373],{8221:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quiz/[slug]",function(){return r(1995)}])},1995:function(e,t,r){"use strict";function n(e,t,r,n,a,o,s){try{var l=e[o](s),i=l.value}catch(c){return void r(c)}l.done?t(i):Promise.resolve(i).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var s=e.apply(t,r);function l(e){n(s,a,o,l,i,"next",e)}function i(e){n(s,a,o,l,i,"throw",e)}l(void 0)}))}}r.r(t),r.d(t,{__N_SSP:function(){return G},default:function(){return W}});var o=r(3375);var s=r(1566);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||(0,o.Z)(e,t)||(0,s.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i=r(655),c=r(5893),d=r(7294),x=r(9008),u=r.n(x),p=r(1664),h=r.n(p),m=r(1163),f=r(710),g=r(4924),b=r(6042),v=r(9396),j=Object.freeze({HYDRATE:"HYDRATE",START:"START",PICK:"PICK",NEXT:"NEXT",RESTART:"RESTART"}),k={started:!1,currentIndex:0,answers:{},finished:!1};function w(e,t){switch(t.type){case j.HYDRATE:return(0,b.Z)({},k,t.payload||{});case j.START:return(0,v.Z)((0,b.Z)({},e),{started:!0,finished:!1});case j.PICK:var r=t.payload,n=r.questionId,a=r.picked,o=r.isCorrect;return e.answers[n]?e:(0,v.Z)((0,b.Z)({},e),{answers:(0,v.Z)((0,b.Z)({},e.answers),(0,g.Z)({},n,{picked:a,isCorrect:o}))});case j.NEXT:var s=t.payload.totalQuestions;return e.currentIndex+1<s?(0,v.Z)((0,b.Z)({},e),{currentIndex:e.currentIndex+1}):(0,v.Z)((0,b.Z)({},e),{finished:!0});case j.RESTART:return(0,v.Z)((0,b.Z)({},k),{started:!0});default:return e}}var y="quiz-progress:";function N(e){try{var t=sessionStorage.getItem(y+e);return t?JSON.parse(t):null}catch(r){return null}}function C(e){var t=(0,d.useReducer)(w,k),r=t[0],n=t[1],a=(0,d.useRef)(!1);return(0,d.useEffect)((function(){e&&(a.current=!1,n({type:j.HYDRATE,payload:N(e)}))}),[e]),(0,d.useEffect)((function(){if(e)if(a.current){var t=r.currentIndex,n=r.answers;!function(e,t){try{sessionStorage.setItem(y+e,JSON.stringify(t))}catch(r){}}(e,{currentIndex:t,answers:n})}else a.current=!0}),[e,r]),[r,n]}var D=r(3304),E=r(5675),T=r.n(E);var _=function(e){var t=e.children,r=e.href,n="inline-flex items-center !no-underline px-2 py-1 rounded-[4px] bg-[#189541]/20 text-[12px] leading-[12px] text-[#189541] dark:text-customGreen transition-opacity hover:opacity-80",a={fontFeatureSettings:"'case' on"};return r?(0,c.jsx)(h(),{href:r,children:(0,c.jsx)("a",{className:n,style:a,children:t})}):(0,c.jsx)("span",{className:n,style:a,children:t})},A=function(e){var t=e.items,r=void 0===t?[]:t,n=e.title,a=void 0===n?"\u10db\u10e1\u10d2\u10d0\u10d5\u10e1\u10d8 \u10e5\u10d5\u10d8\u10d6\u10d4\u10d1\u10d8":n;return r.length?(0,c.jsxs)("aside",{className:"box-border w-full xl:w-[402px] xl:flex-none self-start flex flex-col gap-4 xl:p-4 xl:rounded-[8px] xl:border xl:border-borderColor dark:xl:border-[#1E2428] xl:bg-background-light dark:xl:bg-background-dark",children:[(0,c.jsx)("div",{className:"flex items-start xl:pb-4 xl:border-b xl:border-borderColor dark:xl:border-[#1E2428]",children:(0,c.jsx)("h2",{className:"m-0 text-[18px] font-medium leading-[18px] text-text-light dark:text-[#D9D9D9]",children:a})}),(0,c.jsx)("div",{className:"flex flex-col gap-4",children:r.map((function(e){var t,r=(t=e.tags,(Array.isArray(t)?t:"string"===typeof t?t.split(","):t&&"object"===typeof t?Object.values(t):[]).map((function(e){return"string"===typeof e?e:(null===e||void 0===e?void 0:e.tag_name)||(null===e||void 0===e?void 0:e.name)||""})).map((function(e){return e.trim()})).filter(Boolean));return(0,c.jsx)(h(),{href:"/quiz/".concat(e.slug),children:(0,c.jsxs)("a",{className:"text-decoration-none group flex items-start gap-3",children:[(0,c.jsx)("div",{className:"relative flex-none w-[120px] h-[84px] xl:w-[120px] xl:h-[74px] overflow-hidden rounded-[6px] bg-[#189541]",children:e.picture&&(0,c.jsx)(T(),{src:e.picture,alt:e.title,layout:"fill",objectFit:"cover",quality:"50",loading:"lazy"})}),(0,c.jsxs)("div",{className:"flex flex-1 min-w-0 flex-col gap-2",children:[(0,c.jsx)("h3",{className:"m-0 text-[14px] font-medium leading-5 text-text-light dark:text-[#D9D9D9] line-clamp-3 xl:line-clamp-2 transition-colors group-hover:text-customGreen",children:e.title}),r.length>0&&(0,c.jsx)("div",{className:"flex flex-wrap gap-2",children:r.map((function(e){return(0,c.jsx)(_,{href:"/search-results?keyword=".concat(e),children:e},e)}))}),e.category&&(0,c.jsx)(_,{children:e.category})]})]})},e.id)}))})]}):null},S=function(e){var t=e.count,r=void 0===t?5:t,n=e.title,a=void 0===n?"\u10db\u10e1\u10d2\u10d0\u10d5\u10e1\u10d8 \u10e5\u10d5\u10d8\u10d6\u10d4\u10d1\u10d8":n;return(0,c.jsxs)("aside",{className:"box-border w-full xl:w-[402px] xl:flex-none self-start flex flex-col gap-4 xl:p-4 xl:rounded-[8px] xl:border xl:border-borderColor dark:xl:border-[#1E2428] xl:bg-background-light dark:xl:bg-background-dark",children:[(0,c.jsx)("div",{className:"flex items-start xl:pb-4 xl:border-b xl:border-borderColor dark:xl:border-[#1E2428]",children:(0,c.jsx)("h2",{className:"m-0 text-[18px] font-medium leading-[18px] text-text-light dark:text-[#D9D9D9]",children:a})}),(0,c.jsx)("div",{className:"flex flex-col gap-4",children:Array.from({length:r}).map((function(e,t){return(0,c.jsxs)("div",{className:"flex items-start gap-3",children:[(0,c.jsx)("div",{className:"flex-none w-[120px] h-[84px] xl:w-[120px] xl:h-[74px] rounded-[6px] bg-background-light-secondary dark:bg-background-dark-secondary animate-pulse"}),(0,c.jsxs)("div",{className:"flex flex-1 min-w-0 flex-col gap-2",children:[(0,c.jsx)("div",{className:"h-4 rounded bg-background-light-secondary dark:bg-background-dark-secondary animate-pulse"}),(0,c.jsx)("div",{className:"h-4 w-3/4 rounded bg-background-light-secondary dark:bg-background-dark-secondary animate-pulse"}),(0,c.jsx)("div",{className:"h-5 w-16 rounded-[4px] bg-background-light-secondary dark:bg-background-dark-secondary animate-pulse"})]})]},t)}))})]})},q=function(e){var t=e.size,r=void 0===t?24:t,n=e.className,a=void 0===n?"":n;return(0,c.jsx)("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true",className:a,children:(0,c.jsx)("path",{d:"M14 9h3V6h-3c-1.66 0-3 1.34-3 3v2H9v3h2v6h3v-6h2.5l.5-3H14V9.5c0-.28.22-.5.5-.5z"})})},z=function(e){var t=e.size,r=void 0===t?20:t,n=e.className,a=void 0===n?"":n;return(0,c.jsxs)("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:a,children:[(0,c.jsx)("path",{d:"M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),(0,c.jsx)("path",{d:"M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})},I=function(e){var t=e.size,r=void 0===t?20:t,n=e.className,a=void 0===n?"":n;return(0,c.jsx)("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:a,children:(0,c.jsx)("path",{d:"M5 12.5l4.5 4.5L19 7",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})},R=function(e){var t=e.size,r=void 0===t?20:t,n=e.className,a=void 0===n?"":n;return(0,c.jsx)("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:a,children:(0,c.jsx)("path",{d:"M6 6l12 12M18 6L6 18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})})},Z=function(e){var t=e.quiz,r=e.copied,n=e.onStart,a=e.onShareFacebook,o=e.onCopyLink;return(0,c.jsxs)("div",{className:"flex flex-col items-center gap-12 md:gap-[31px] px-4 py-12 md:p-12 rounded-[8px] border border-borderColor dark:border-transparent bg-background-light dark:bg-background-dark-secondary uppercase",children:[(0,c.jsxs)("div",{className:"flex w-full flex-col items-center gap-5",children:[(0,c.jsx)("h1",{className:"self-stretch text-center text-[24px] leading-[34px] md:text-[20px] md:leading-5 font-medium text-text-light dark:text-text-dark",children:t.title}),(0,c.jsx)("div",{className:"relative w-full max-w-[729px] aspect-[729/331] overflow-hidden rounded-[8px] md:rounded-[4px] bg-[#D9D9D9] dark:bg-background-dark",children:t.picture&&(0,c.jsx)(T(),{src:t.picture,alt:t.title,layout:"fill",objectFit:"cover",quality:"70",loading:"eager"})})]}),(0,c.jsxs)("div",{className:"flex w-full max-w-[490px] flex-col items-stretch gap-4",children:[(0,c.jsx)("button",{type:"button",onClick:n,className:"flex h-11 md:h-12 items-center justify-center gap-2 px-4 py-3 rounded-[200px] bg-[#189541] border border-[#26C159] text-white text-[14px] font-medium leading-5 transition-colors hover:bg-[#1eb158]",children:"\u10d3\u10d0\u10ec\u10e7\u10d4\u10d1\u10d0"}),(0,c.jsxs)("div",{className:"flex flex-col sm:flex-row items-stretch gap-4",children:[(0,c.jsxs)("button",{type:"button",onClick:a,className:"flex h-11 md:h-12 w-full sm:flex-1 items-center justify-center gap-2 px-3 py-3 rounded-[200px] whitespace-nowrap bg-[#0D6697] border border-[#0E81BB] text-white text-[14px] font-medium leading-5 transition-opacity hover:opacity-90",children:[(0,c.jsx)(q,{}),"\u10d2\u10d0\u10d6\u10d8\u10d0\u10e0\u10d4\u10d1\u10d0"]}),(0,c.jsxs)("button",{type:"button",onClick:o,className:"flex h-11 md:h-12 w-full sm:flex-1 items-center justify-center gap-2 px-3 py-3 rounded-[200px] whitespace-nowrap bg-[#0D6697] border border-[#0E81BB] text-white text-[14px] font-medium leading-5 transition-opacity hover:opacity-90",children:[(0,c.jsx)(z,{}),r?"\u10d1\u10db\u10e3\u10da\u10d8 \u10d3\u10d0\u10d9\u10dd\u10de\u10d8\u10e0\u10d3\u10d0":"\u10d1\u10db\u10e3\u10da\u10d8\u10e1 \u10d9\u10dd\u10de\u10d8\u10e0\u10d4\u10d1\u10d0"]})]})]})]})},F={idle:"bg-[#F1F9FE] text-[#20414C] border border-borderColor dark:border-transparent hover:bg-[#BEE5F9]",correct:"bg-[#89ECA9] text-[#20414C] border border-[#187D3A]",wrong:"bg-[#FEE4E2] text-[#20414C] border border-[#D92D20]",dimmed:"bg-[#F1F9FE] text-[#20414C] border border-borderColor dark:border-transparent opacity-50"};function B(e){var t=e.state;return"correct"===t?(0,c.jsx)(I,{}):"wrong"===t?(0,c.jsx)(R,{}):null}var P=function(e){var t=e.quiz,r=e.question,n=e.currentIndex,a=e.totalQuestions,o=e.answered,s=e.onPick,l=e.onNext,i=Number(r.correct_answer),d=n+1>=a,x=o&&!o.isCorrect&&r.explanation;return(0,c.jsxs)("div",{className:"flex flex-col items-center gap-[31px] px-4 py-12 md:p-12 rounded-[8px] border border-borderColor dark:border-transparent bg-background-light dark:bg-background-dark-secondary uppercase",children:[(0,c.jsx)("h1",{className:"self-stretch text-center text-[20px] font-medium leading-6 md:leading-5 text-text-light dark:text-text-dark",children:t.title}),(r.picture||t.picture)&&(0,c.jsx)("div",{className:"relative w-full max-w-[729px] aspect-[729/331] overflow-hidden rounded-[4px] bg-[#D9D9D9] dark:bg-background-dark",children:(0,c.jsx)(T(),{src:r.picture||t.picture,alt:r.question,layout:"fill",objectFit:"cover",quality:"70",loading:"eager"})}),(0,c.jsxs)("div",{className:"flex w-full max-w-[650px] flex-col items-center gap-2",children:[(0,c.jsxs)("div",{className:"flex w-full items-start gap-3",children:[(0,c.jsxs)("span",{className:"flex-none text-[16px] font-medium leading-[22px] text-[#CDD5D7]",children:[n+1,"/",a]}),(0,c.jsx)("h2",{className:"flex-1 text-[16px] font-medium leading-[22px] text-text-light dark:text-text-dark",children:r.question})]}),(0,c.jsxs)("div",{className:"flex w-full flex-col items-center gap-6",children:[(0,c.jsx)("div",{className:"flex w-full flex-wrap gap-x-5 gap-y-[10px] sm:gap-y-[18px]",children:[1,2,3,4].filter((function(e){return r["answer_".concat(e)
1]})).map((function(e){var t,n,a,l=(n=e,a=e===i,(t=o)?a?"correct":t.picked===n?"wrong":"dimmed":"idle");return(0,c.jsxs)("button",{type:"button",onClick:function(){return s(e)},disabled:Boolean(o),className:"flex w-full sm:w-[calc(50%-10px)] items-center justify-between gap-3 px-3 py-3 rounded-[8px] text-left text-[14px] leading-[18px] transition-all duration-200 ".concat(F[l]," ").concat(o?"cursor-default":"cursor-pointer"),children:[(0,c.jsx)("span",{className:"min-w-0 flex-1 break-words",children:r["answer_".concat(e)]}),(0,c.jsx)("span",{className:"flex-none flex h-5 w-5 items-center justify-center ".concat("correct"===l?"text-[#079455]":"wrong"===l?"text-[#D92D20]":""),children:(0,c.jsx)(B,{state:l})})]},e)}))}),(0,c.jsx)("button",{type:"button",onClick:l,disabled:!o,className:"flex h-12 w-full items-center justify-center gap-2 px-6 rounded-[200px] text-[18px] font-medium leading-7 transition-colors ".concat(o?"bg-customGreen text-white cursor-pointer hover:bg-[#1eb158]":"bg-[#072C38] text-[#83969C] cursor-not-allowed"),children:d?"\u10e8\u10d4\u10d3\u10d4\u10d2\u10d8\u10e1 \u10dc\u10d0\u10ee\u10d5\u10d0":"\u10e8\u10d4\u10db\u10d3\u10d4\u10d2\u10d8"}),x&&(0,c.jsx)("p",{className:"self-stretch text-center text-[14px] md:text-[16px] leading-[22px] text-text-light dark:text-text-dark",children:r.explanation})]})]})]})};function L(e){if(e){var t="https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(e),"&hashtag=").concat(encodeURIComponent("#crocoge"));window.open(t,"fb-share","width=600,height=600,menubar=no,toolbar=no")}}var O=function(e){var t=e.quiz,r=e.score,n=e.totalQuestions,a=e.shareUrl,o=e.shareTitle,s=e.copied,l=e.onRestart,i=e.onShareFacebook,d=function(e,t){var r=t?e/t:0;return r<=.35?{text:"text-[#D92D20]",box:"bg-[#D92D20]/15 border border-[#D92D20]/40"}:r<=.75?{text:"text-[#E5A50A]",box:"bg-[#E5A50A]/15 border border-[#E5A50A]/40"}:{text:"text-[#189541]",box:"bg-[#189541]/15 border border-[#26C159]/40"}}(r,n),x=function(e,t){return e?t<=5?e.result_0_5||"":t<=8?e.result_6_8||"":e.result_9_10||"":""}(t,r);return(0,c.jsxs)("div",{className:"flex flex-col items-center gap-[31px] px-4 py-12 md:p-12 rounded-[8px] border border-borderColor dark:border-transparent bg-background-light dark:bg-background-dark-secondary uppercase",children:[(0,c.jsx)("h1",{className:"self-stretch text-center text-[20px] font-medium leading-5 text-text-light dark:text-text-dark",children:t.title}),t.picture&&(0,c.jsx)("div",{className:"relative w-full max-w-[729px] aspect-[729/331] overflow-hidden rounded-[4px] bg-[#D9D9D9] dark:bg-background-dark",children:(0,c.jsx)(T(),{src:t.picture,alt:t.title,layout:"fill",objectFit:"cover",quality:"70",loading:"eager"})}),(0,c.jsxs)("div",{className:"flex w-full max-w-[650px] flex-col items-center gap-2",children:[(0,c.jsxs)("div",{className:"flex w-full flex-col items-center gap-3 px-7 py-4 rounded-[8px] ".concat(d.box),children:[(0,c.jsx)("span",{className:"self-stretch text-center text-[20px] font-medium my-2 text-text-light dark:text-text-dark",children:"\u10e8\u10d4\u10dc\u10d8 \u10e8\u10d4\u10d3\u10d4\u10d2\u10d8\u10d0"}),(0,c.jsxs)("span",{className:"text-[26px] font-medium leading-[18px] ".concat(d.text),children:[r,"/",n]}),x&&(0,c.jsx)("span",{className:"self-stretch text-center text-[18px] leading-[18px] text-text-light dark:text-text-dark",children:x})]}),(0,c.jsxs)("div",{className:"flex w-full max-w-[409px] flex-col items-stretch gap-[18px]",children:[(0,c.jsx)("button",{type:"button",onClick:l,className:"flex h-12 items-center justify-center gap-2 px-5 py-[14px] rounded-[200px] bg-[#189541] border border-[#26C159] text-white text-[14px] font-medium leading-5 transition-colors hover:bg-[#1eb158]",children:"\u10d7\u10d0\u10d5\u10d8\u10d3\u10d0\u10dc \u10d3\u10d0\u10ec\u10e7\u10d4\u10d1\u10d0"}),a&&(0,c.jsxs)("button",{type:"button",onClick:i,"aria-label":o,className:"flex h-12 items-center justify-center gap-2 px-5 py-[14px] rounded-[200px] bg-[#0D6697] border border-[#0E81BB] text-white text-[14px] font-medium leading-5 transition-opacity hover:opacity-90",children:[(0,c.jsx)(q,{}),"\u10d2\u10d0\u10d6\u10d8\u10d0\u10e0\u10d4\u10d1\u10d0"]}),(0,c.jsx)("span",{className:"text-center text-[12px] transition-opacity duration-200 ".concat(s?"opacity-100 text-customGreen":"opacity-0 text-[#7F92A3]"),children:"\u10e2\u10d4\u10e5\u10e1\u10e2\u10d8 \u10d3\u10d0\u10d9\u10dd\u10de\u10d8\u10e0\u10d3\u10d0 \u2014 \u10e9\u10d0\u10e1\u10d5\u10d8\u10d7 (Ctrl+V) Facebook-\u10d8\u10e1 \u10e4\u10d0\u10dc\u10ef\u10d0\u10e0\u10d0\u10e8\u10d8"})]})]})]})},Q=function(){return(0,c.jsxs)("div",{className:"flex flex-col items-center gap-[31px] px-4 py-12 md:p-12 rounded-[8px] border border-borderColor dark:border-transparent bg-background-light dark:bg-background-dark-secondary",children:[(0,c.jsx)("div",{className:"h-6 w-2/3 rounded bg-black/5 dark:bg-white/10 animate-pulse"}),(0,c.jsx)("div",{className:"w-full max-w-[729px] aspect-[729/331] rounded-[8px] md:rounded-[4px] bg-black/5 dark:bg-white/10 animate-pulse"}),(0,c.jsxs)("div",{className:"flex w-full max-w-[490px] flex-col items-stretch gap-4",children:[(0,c.jsx)("div",{className:"h-11 md:h-12 rounded-[200px] bg-black/5 dark:bg-white/10 animate-pulse"}),(0,c.jsxs)("div",{className:"flex flex-col sm:flex-row items-stretch gap-4",children:[(0,c.jsx)("div",{className:"h-11 md:h-12 w-full sm:flex-1 rounded-[200px] bg-black/5 dark:bg-white/10 animate-pulse"}),(0,c.jsx)("div",{className:"h-11 md:h-12 w-full sm:flex-1 rounded-[200px] bg-black/5 dark:bg-white/10 animate-pulse"})]})]})]})};function M(e){return U.apply(this,arguments)}function U(){return(U=a((function(e){var t,r;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:if(!e)return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),(null===(t=navigator.clipboard)||void 0===t?void 0:t.writeText)?[4,navigator.clipboard.writeText(e)]:[3,3];case 2:return n.sent(),[2,!0];case 3:return(r=document.createElement("textarea")).value=e,r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),[2,!0];case 4:return n.sent(),[2,!1];case 5:return[2]}}
1))}))).apply(this,arguments)}var H="https://croco.ge";new Set(["croco.ge","www.croco.ge","new.croco.ge","dev.croco.ge"]);function X(e){var t=e.slug,r=(0,f.Z)(D.L.quizzes),n=r.data;if(r.isPending)return(0,c.jsx)(S,{});var a=(Array.isArray(n)?n:[]).filter((function(e){return e.slug!==t})).slice(0,5);return(0,c.jsx)(A,{items:a})}var G=!0,W=function(e){var t=e.quiz,r=void 0===t?null:t,n=e.sharedScore,o=void 0===n?null:n,s=e.sharedTotal,x=void 0===s?null:s,p=e.origin,f=void 0===p?H:p,g=(0,m.useRouter)(),b=g.query.slug,v=!r,k=l(C(b),2),w=k[0],y=k[1],N=w.started,D=w.currentIndex,E=w.answers,T=w.finished,_=(0,d.useState)(!1),A=_[0],S=_[1],q=(null===r||void 0===r?void 0:r.questions)||[],z=q.length,I=q[D]||null,R=I?E[I.id]:null,F=function(e){return Object.values(e).filter((function(e){return null===e||void 0===e?void 0:e.isCorrect})).length}(E),B=(0,d.useCallback)((function(){return y({type:j.START})}),[y]),U=(0,d.useCallback)((function(){return y({type:j.RESTART})}),[y]),G=(0,d.useCallback)((function(e){I&&y({type:j.PICK,payload:{questionId:I.id,picked:e,isCorrect:Number(I.correct_answer)===Number(e)}})}),[I,y]),W=(0,d.useCallback)((function(){return y({type:j.NEXT,payload:{totalQuestions:z}})}),[y,z]),K=(0,d.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;S(!0),setTimeout((function(){return S(!1)}),e)}),[]),Y=function(e){var t=e.quiz,r=e.origin,n=e.slug,a=e.score,o=e.totalQuestions,s=e.sharedScore,l=e.sharedTotal,i=null!=s?Number(s):null,c=null!=l?Number(l):null,d=null!==i&&null!==c&&!Number.isNaN(i)&&!Number.isNaN(c),x=n?"".concat(r,"/quiz/").concat(n):"",u=n?"/quiz/".concat(n,"?score=").concat(a,"&total=").concat(o):"",p=u?"".concat(r).concat(u):"",h=t?"".concat(t.title," \u2014 \u10e9\u10d4\u10db\u10d8 \u10e8\u10d4\u10d3\u10d4\u10d2\u10d8: ").concat(a,"/").concat(o,". \u10e8\u10d4\u10dc \u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8 \u10d0\u10d8\u10e6\u10d4\u10d1?"):"",m=d&&t?'\u10e9\u10d4\u10db\u10d8 \u10e8\u10d4\u10d3\u10d4\u10d2\u10d8 \u10e5\u10d5\u10d8\u10d6\u10e8\u10d8 "'.concat(t.title,'": ').concat(i,"/").concat(c," \ud83c\udfc6"):(null===t||void 0===t?void 0:t.title)||"\u10e5\u10d5\u10d8\u10d6\u10d8 | Croco.ge",f=d?"\u10db\u10d4 \u10d0\u10d5\u10d8\u10e6\u10d4 ".concat(i,"/").concat(c,". \u10e8\u10d4\u10dc \u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8 \u10d0\u10d8\u10e6\u10d4\u10d1? \u10e1\u10ea\u10d0\u10d3\u10d4 \u10d4\u10e1 \u10e5\u10d5\u10d8\u10d6\u10d8 croco.ge-\u10d6\u10d4."):(null===t||void 0===t?void 0:t.meta_desc)||"",g=function(e,t){var r=(null===e||void 0===e?void 0:e.og_image)||(null===e||void 0===e?void 0:e.picture)||"";return r?r.startsWith("http")?r:"".concat("https://newadmin.croco.ge").concat(r.startsWith("/")?"":"/").concat(r):""}(t);return{quizLink:x,shareUrl:p,shareTitle:h,ogTitle:m,ogDescription:f,shareImage:g,hasSharedScore:d}}({quiz:r,origin:f,slug:b,score:F,totalQuestions:z,sharedScore:o,sharedTotal:x}),V=Y.quizLink,J=Y.shareUrl,$=Y.shareTitle,ee=Y.ogTitle,te=Y.ogDescription,re=Y.shareImage,ne=(0,d.useCallback)((function(){return L(V)}),[V]),ae=(0,d.useCallback)(a((function(){return(0,i.__generator)(this,(function(e){switch(e.label){case 0:return[4,M(V)];case 1:return e.sent()&&K(3e3),[2]}}))})),[V,K]),oe=(0,d.useCallback)(a((function(){return(0,i.__generator)(this,(function(e){switch(e.label){case 0:return[4,M("".concat($,"\n").concat(J))];case 1:return e.sent()&&K(4e3),L(J),[2]}}))})),[$,J,K]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(u(),{children:[(0,c.jsx)("title",{children:r?"".concat(ee," | Croco.ge"):"\u10e5\u10d5\u10d8\u10d6\u10d8 | Croco.ge"}),(0,c.jsx)("meta",{name:"description",content:te}),(0,c.jsx)("meta",{property:"og:title",content:ee}),(0,c.jsx)("meta",{property:"og:description",content:te}),(0,c.jsx)("meta",{property:"og:type",content:"website"}),(0,c.jsx)("meta",{property:"og:url",content:"".concat(f).concat(g.asPath)}),re&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("meta",{property:"og:image",content:re}),(0,c.jsx)("meta",{property:"og:image:secure_url",content:re}),(0,c.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,c.jsx)("meta",{property:"og:image:height",content:"630"})]})]}),(0,c.jsx)("div",{className:"news--page mt-4 mb-10",children:(0,c.jsx)("div",{className:"container",children:(0,c.jsxs)("div",{className:"flex flex-col xl:flex-row gap-12 xl:gap-5 items-start",children:[(0,c.jsx)("div",{className:"w-full xl:flex-1 min-w-0",children:v?(0,c.jsxs)("div",{className:"px-0 py-12 text-center",children:[(0,c.jsx)("p",{className:"text-[14px] text-red-500 dark:text-red-400 mb-4",children:"\u10e5\u10d5\u10d8\u10d6\u10d8 \u10d5\u10d4\u10e0 \u10db\u10dd\u10d8\u10eb\u10d4\u10d1\u10dc\u10d0."}),(0,c.jsx)(h(),{href:"/quiz",children:(0,c.jsx)("a",{className:"inline-flex items-center justify-center px-5 py-[10px] rounded-[8px] bg-customGreen text-white text-[14px] font-semibold",children:"\u10e7\u10d5\u10d4\u10da\u10d0 \u10e5\u10d5\u10d8\u10d6\u10d8"})})]}):r?(0,c.jsxs)("div",{className:"px-0",children:[!N&&!T&&(0,c.jsx)(Z,{quiz:r,copied:A,onStart:B,onShareFacebook:ne,onCopyLink:ae}),N&&!T&&I&&(0,c.jsx)(P,{quiz:r,question:I,currentIndex:D,totalQuestions:z,answered:R,onPick:G,onNext:W}),T&&(0,c.jsx)(O,{quiz:r,score:F,totalQuestions:z,shareUrl:J,shareTitle:$,copied:A,onRestart:U,onShareFacebook:oe})]}):(0,c.jsx)("div",{className:"px-0",children:(0,c.jsx)(Q,{})})}),r&&(0,c.jsx)(X,{slug:b})]})})})]})}},943:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return n}})},3375:function(e,t,r){"use strict";function n(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{Z:function(){return n}})},1566:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(943);function a(e,t){if(e){if("string"===typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}}},function(e){e.O(0,[774,888,179],(function(){return t=8221,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.