1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dfd1234c-f8fc-5995-a52e-9d8ebcbec472")}catch(e){}}(); 3import{j as f}from"./heroUI-B_ljU1QU.js";import{g as ft,a as U}from"./i18n-B1Tl-FS8.js";import{t as z,P as be}from"./App-NouI1Fy-.js";import{S as dt,D as ht,P as Se,V as N,I as K,T as M,u as gt,F as pt}from"./reactPDFRenderer-BbgxxZ9Z.js";import{a as mt,f as wt}from"./dateFormats-TP-18fiU.js";import{B as yt}from"./percentages-BXMCSKIN-CQaZ_nn0.js";import{I as xt}from"./Icon-Bn1Of1X8.js";import"./excalidraw-ClE5B34E.js";import"./app-CNhMxvwe.js";import"./blocknote-H0go5Ala.js";import"./utils-Ck-GfcmJ.js";import"./file-text-D_rPaBmV.js";import"./check-CwC0fwRx.js";import"./arrow-up-right-DPds2Qak.js";import"./triangle-alert-yCytgbHH.js";import"./plus-BtuFysVt.js";const Ct=()=>({body:{paddingTop:65,paddingBottom:65,paddingHorizontal:35,maxWidth:720,fontFamily:"Inter"},logo:{position:"fixed",top:-32,display:"block",width:"180px",height:"32px"},titleBox:{display:"flex",flexDirection:"row",marginTop:"23px"},titleDateBox:{marginLeft:"26px",display:"flex",flexDirection:"column",justifyContent:"center"},title:{textAlign:"left",fontFamily:"Inter",fontWeight:600,fontSize:"20px",lineHeight:1.4,color:"#101828",width:"80%",wordBreak:"break-word"},titleDate:{fontFamily:"Inter",color:"#667085",fontWeight:400,fontSize:"10px"},qrBox:{width:"96px",height:"96px",border:"1px solid #E4E7EC",borderRadius:"8px"},qrCode:{display:"block",width:"94px",height:"96px",borderRadius:"8px"},headerGradientImage:{position:"absolute",top:0,right:0,marginVertical:0,marginHorizontal:0,marginLeft:"auto",width:"600px",height:"297px"},infoHeaderBox:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginTop:"29px",backgroundColor:"#F9FAFB",border:"1px solid #E4E7EC",borderRadius:"8px",height:"64px"},infoHeaderType:{fontFamily:"Inter",color:"#667085",fontSize:"10px",fontWeight:400,lineHeight:"1.6px",paddingLeft:"16px",marginBottom:"10px"},infoHeaderQuizType:{fontFamily:"Inter",color:"#101828",fontWeight:500,fontSize:"10px",paddingLeft:"16px"},infoHeaderAnswersBox:{display:"flex",flexDirection:"column",justifyContent:"space-between",width:"103px",height:"100%",backgroundColor:"#E4E7EC",padding:"16px",borderTopRightRadius:"7px",borderBottomRightRadius:"7px"},infoHeaderAnswers:{fontFamily:"Inter",color:"#475467",fontWeight:400,fontSize:"10px",lineHeight:"1.6px"},infoHeaderTotalAnswers:{fontFamily:"Inter",color:"#000000",fontWeight:500,fontSize:"16px"},pageNumberContainer:{position:"absolute",bottom:30,right:30,display:"flex",flexDirection:"row",minWidth:"30px",height:"22px",borderRadius:"16px",backgroundColor:"#F5F5F5",padding:"5px 8px"},teleskopLink:{fontFamily:"Inter",position:"absolute",bottom:30,left:30,width:"64px",height:"22px",borderRadius:"16px",backgroundColor:"#F5F5F5",padding:"5px 8px",fontWeight:500,fontSize:"9px",color:"#000020",textAlign:"center"},pageNumber:{fontFamily:"Inter",fontWeight:500,fontSize:9,textAlign:"center",color:"#000020"},flexBoxCenter:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"},questionBox:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",marginBottom:"18px"},questionAnswersBox:{display:"flex",flexDirection:"column",justifyContent:"space-between",color:"#667085",fontSize:"9px",marginTop:"32px"},question:{color:"#101828",fontSize:"10px",fontWeight:500,fontFamily:"Inter",wordBreak:"break-word",width:"100%"},questionNumber:{display:"flex",color:"#ffffff",width:"21px",height:"21px",borderRadius:21/2,backgroundColor:"#1570EF",textAlign:"center",padding:"4px",marginRight:"8x",fontFamily:"Inter",fontSize:"10px",fontWeight:500},questionCustomTotalAnswers:{fontFamily:"Inter",color:"#1570EF",fontWeight:500,fontSize:"9.2px",marginBottom:"16px"},customQuestionAnswersBox:{display:"flex",flexDirection:"column",justifyContent:"space-between",marginBottom:"20px"},questionCustomAnswerItem:{minHeight:"22px",color:"#667085",fontSize:"9.2px",fontFamily:"Inter",fontWeight:400,borderBottom:"1px solid #E4E7EC",paddingBottom:"8px",marginBottom:"8px",wordBreak:"break-word"}
vendor: 23,686 bytes, lines 3-9
3,questionGraphBox:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginBottom:"20px"},questionAnswerGraph:{height:"16px",borderRadius:"16px"},inlineFlex:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%"},graphLabel:{fontFamily:"Inter",fontWeight:500,fontSize:"9.275px",width:"45px",paddingLeft:"4px"},lastPageText:{fontFamily:"Inter",fontWeight:400,fontSize:"10px",color:"#101828",maxWidth:"310px",width:"100%",textAlign:"center",lineHeight:1.5},leafImage:{display:"block",width:"44.5pt",height:"45.5pt",marginBottom:"25pt"},teleskopLogoBottom:{display:"block",width:"122pt",height:"21pt",position:"absolute",bottom:"30pt",margin:"0 auto"},answerContainer:{width:"100%",height:"40px",marginBottom:"12px",flexDirection:"row",alignItems:"center"},answerKeyContainer:{width:"20px",height:"20px",backgroundColor:"rgba(209, 213, 219, 0.9)",marginRight:"10px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px"},answerKeyText:{fontFamily:"Inter",textAlign:"center",fontWeight:500,lineHeight:1.2,fontSize:"9.2px",color:"rgba(13, 17, 38, 0.4)"},answerDetailsContainer:{width:"100%",flexDirection:"column"},answerLabelContainer:{flexDirection:"row",alignItems:"center",marginBottom:"8px",marginTop:"8px",justifyContent:"space-between"},answerLabel:{color:"#667085",fontSize:"9.2px",lineHeight:1.2,fontWeight:400,wordBreak:"break-word",flex:1},answerPercent:{color:"#475467",fontSize:"9.2px",lineHeight:"1.2pt",fontWeight:500},answerBarBackground:{width:"100%",height:"4px",backgroundColor:"#E4E7EC",borderRadius:"4px"},answerBarForeground:{height:"4px",backgroundColor:"#1570EF",borderRadius:"4px"}});var W={},ee,Pe;function Bt(){return Pe||(Pe=1,ee=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),ee}var te={},D={},Ne;function v(){if(Ne)return D;Ne=1;let r;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return D.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},D.getSymbolTotalCodewords=function(t){return o[t]},D.getBCHDigit=function(i){let t=0;for(;i!==0;)t++,i>>>=1;return t},D.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');r=t},D.isKanjiModeEnabled=function(){return typeof r<"u"},D.toSJIS=function(t){return r(t)},D}var ne={},Me;function Re(){return Me||(Me=1,(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function o(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+i)}}r.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4},r.from=function(t,e){if(r.isValid(t))return t;try{return o(t)}catch{return e}}})(ne)),ne}var re,je;function Et(){if(je)return re;je=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(o){const i=Math.floor(o/8);return(this.buffer[i]>>>7-o%8&1)===1},put:function(o,i){for(let t=0;t<i;t++)this.putBit((o>>>i-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),o&&(this.buffer[i]|=128>>>this.length%8),this.length++}},re=r,re}var oe,Fe;function bt(){if(Fe)return oe;Fe=1;function r(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return r.prototype.set=function(o,i,t,e){const n=o*this.size+i;this.data[n]=t,e&&(this.reservedBit[n]=!0)},r.prototype.get=function(o,i){return this.data[o*this.size+i]},r.prototype.xor=function(o,i,t){this.data[o*this.size+i]^=t},r.prototype.isReserved=function(o,i){return this.reservedBit[o*this.size+i]},oe=r,oe}var ie={},Le;function Rt(){return Le||(Le=1,(function(r){const o=v().getSymbolSize;r.getRowColCoords=function(t){if(t===1)return[];const e=Math.floor(t/7)+2,n=o(t),s=n===145?26:Math.ceil((n-13)/(2*e-2))*2,l=[n-7];for(let a=1;a<e-1;a++)l[a]=l[a-1]-s;return l.push(6),l.reverse()},r.getPositions=function(t){const e=[],n=r.getRowColCoords(t),s=n.length;for(let l=0;l<s;l++)for(let a=0;a<s;a++)l===0&&a===0||l===0&&a===s-1||l===s-1&&a===0||e.push([n[l],n[a]]);return e}})(ie)),ie}var se={},_e;function At(){if(_e)return se;_e=1;const r=v().getSymbolSize,o=7;return se.getPositions=function(t){const e=r(t);return[[0,0],[e-o,0],[0,e-o]]},se}var ae={},qe;function It(){return qe||(qe=1,(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};r.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},r.from=function(e){return r.isValid(e)?parseInt(e,10):void 0},r.getPenaltyN1=function(e){const n=e.size;let s=0,l=0,a=0,h=null,p=null;for(let u=0;u<n;u++){l=a=0,h=p=null;for(let d=0;d<n;d++){let c=e.get(u,d);c===h?l++:(l>=5&&(s+=o.N1+(l-5)),h=c,l=1),c=e.get(d,u),c===p?a++:(a>=5&&(s+=o.N1+(a-5)),p=c,a=1)}l>=5&&(s+=o.N1+(l-5)),a>=5&&(s+=o.N1+(a-5))}return s},r.getPenaltyN2=function(e){const n=e.size;let s=0;for(let l=0;l<n-1;l++)for(let a=0;a<n-1;a++){const h=e.get(l,a)+e.get(l,a+1)+e.get(l+1,a)+e.get(l+1,a+1);(h===4||h===0)&&s++}return s*o.N2},r.getPenaltyN3=function(e){const n=e.size;let s=0,l=0,a=0;for(let h=0;h<n;h++){l=a=0;for(let p=0;p<n;p++)l=l<<1&2047|e.get(h,p),p>=10&&(l===1488||l===93)&&s++,a=a<<1&2047|e.get(p,h),p>=10&&(a===1488||a===93)&&s++}return s*o.N3},r.getPenaltyN4=function(e){let n=0;const s=e.data.length;for(let a=0;a<s;a++)n+=e.data[a];return Math.abs(Math.ceil(n*100/s/5)-10)*o.N4};function i(t,e,n){switch(t){case r.Patterns.PATTERN000:return(e+n)%2===0;case r.Patterns.PATTERN001:return e%2===0;case r.Patterns.PATTERN010:return n%3===0;case r.Patterns.PATTERN011:return(e+n)%3===0;case r.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2===0;case r.Patterns.PATTERN101:return e*n%2+e*n%3===0;case r.Patterns.PATTERN110:return(e*n%2+e*n%3)%2===0;case r.Patterns.PATTERN111:return(e*n%3+(e+n)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}r.applyMask=function(e,n){const s=n.size;for(let l=0;l<s;l++)for(let a=0;a<s;a++)n.isReserved(a,l)||n.xor(a,l,i(e,a,l))},r.getBestMask=function(e,n){const s=Object.keys(r.Patterns).length;let l=0,a=1/0;for(let h=0;h<s;h++){n(h),r.applyMask(h,e);const p=r.getPenaltyN1(e)+r.getPenaltyN2(e)+r.getPenaltyN3(e)+r.getPenaltyN4(e);r.applyMask(h,e),p<a&&(a=p,l=h)}return l}})(ae)),ae}var Y={},ke;function rt(){if(ke)return Y;ke=1;const r=Re(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Y.getBlocksCount=function(e,n){switch(n){case r.L:return o[(e-1)*4+0];case r.M:return o[(e-1)*4+1];case r.Q:return o[(e-1)*4+2];case r.H:return o[(e-1)*4+3];default:return}},Y.getTotalCodewordsCount=function(e,n){switch(n){case r.L:return i[(e-1)*4+0];case r.M:return i[(e-1)*4+1];case r.Q:return i[(e-1)*4+2];case r.H:return i[(e-1)*4+3];default:return}},Y}var le={},Q={},De;function Tt(){if(De)return Q;De=1;const r=new Uint8Array(512),o=new Uint8Array(256);return(function(){let t=1;for(let e=0;e<255;e++)r[e]=t,o[t]=e,t<<=1,t&256&&(t^=285);for(let e=255;e<512;e++)r[e]=r[e-255]})(),Q.log=function(t){if(t<1)throw new Error("log("+t+")");return o[t]},Q.exp=function(t){return r[t]},Q.mul=function(t,e){return t===0||e===0?0:r[o[t]+o[e]]},Q}var ze;function St(){return ze||(ze=1,(function(r){const o=Tt();r.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let s=0;s<t.length;s++)for(let l=0;l<e.length;l++)n[s+l]^=o.mul(t[s],e[l]);return n},r.mod=function(t,e){let n=new Uint8Array(t);for(;n.length-e.length>=0;){const s=n[0];for(let a=0;a<e.length;a++)n[a]^=o.mul(e[a],s);let l=0;for(;l<n.length&&n[l]===0;)l++;n=n.slice(l)}return n},r.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let n=0;n<t;n++)e=r.mul(e,new Uint8Array([1,o.exp(n)]));return e}})(le)),le}var ue,Ue;function Pt(){if(Ue)return ue;Ue=1;const r=St();function o(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=r.mod(e,this.genPoly),s=this.degree-n.length;if(s>0){const l=new Uint8Array(this.degree);return l.set(n,s),l}return n},ue=o,ue}var ce={},fe={},de={},ve;function ot(){return ve||(ve=1,de.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),de}var L={},He;function it(){if(He)return L;He=1;const r="[0-9]+",o="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const t="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r 4]))+`;L.KANJI=new RegExp(i,"g"),L.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),L.BYTE=new RegExp(t,"g"),L.NUMERIC=new RegExp(r,"g"),L.ALPHANUMERIC=new RegExp(o,"g");const e=new RegExp("^"+i+"$"),n=new RegExp("^"+r+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return L.testKanji=function(a){return e.test(a)},L.testNumeric=function(a){return n.test(a)},L.testAlphanumeric=function(a){return s.test(a)},L}var Ve;function H(){return Ve||(Ve=1,(function(r){const o=ot(),i=it();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!o.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},r.getBestModeForData=function(n){return i.testNumeric(n)?r.NUMERIC:i.testAlphanumeric(n)?r.ALPHANUMERIC:i.testKanji(n)?r.KANJI:r.BYTE},r.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},r.isValid=function(n){return n&&n.bit&&n.ccBits};function t(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+e)}}r.from=function(n,s){if(r.isValid(n))return n;try{return t(n)}catch{return s}}})(fe)),fe}var Ke;function Nt(){return Ke||(Ke=1,(function(r){const o=v(),i=rt(),t=Re(),e=H(),n=ot(),s=7973,l=o.getBCHDigit(s);function a(d,c,w){for(let T=1;T<=40;T++)if(c<=r.getCapacity(T,w,d))return T}function h(d,c){return e.getCharCountIndicator(d,c)+4}function p(d,c){let w=0;return d.forEach(function(T){const j=h(T.mode,c);w+=j+T.getBitsLength()}),w}function u(d,c){for(let w=1;w<=40;w++)if(p(d,w)<=r.getCapacity(w,c,e.MIXED))return w}r.from=function(c,w){return n.isValid(c)?parseInt(c,10):w},r.getCapacity=function(c,w,T){if(!n.isValid(c))throw new Error("Invalid QR Code version");typeof T>"u"&&(T=e.BYTE);const j=o.getSymbolTotalCodewords(c),A=i.getTotalCodewordsCount(c,w),P=(j-A)*8;if(T===e.MIXED)return P;const I=P-h(T,c);switch(T){case e.NUMERIC:return Math.floor(I/10*3);case e.ALPHANUMERIC:return Math.floor(I/11*2);case e.KANJI:return Math.floor(I/13);case e.BYTE:default:return Math.floor(I/8)}},r.getBestVersionForData=function(c,w){let T;const j=t.from(w,t.M);if(Array.isArray(c)){if(c.length>1)return u(c,j);if(c.length===0)return 1;T=c[0]}else T=c;return a(T.mode,T.getLength(),j)},r.getEncodedBits=function(c){if(!n.isValid(c)||c<7)throw new Error("Invalid QR Code version");let w=c<<12;for(;o.getBCHDigit(w)-l>=0;)w^=s<<o.getBCHDigit(w)-l;return c<<12|w}})(ce)),ce}var he={},We;function Mt(){if(We)return he;We=1;const r=v(),o=1335,i=21522,t=r.getBCHDigit(o);return he.getEncodedBits=function(n,s){const l=n.bit<<3|s;let a=l<<10;for(;r.getBCHDigit(a)-t>=0;)a^=o<<r.getBCHDigit(a)-t;return(l<<10|a)^i},he}var ge={},pe,Je;function jt(){if(Je)return pe;Je=1;const r=H();function o(i){this.mode=r.NUMERIC,this.data=i.toString()}return o.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e,n,s;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),s=parseInt(n,10),t.put(s,10);const l=this.data.length-e;l>0&&(n=this.data.substr(e),s=parseInt(n,10),t.put(s,l*3+1))},pe=o,pe}var me,Qe;function Ft(){if(Qe)return me;Qe=1;const r=H(),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(t){this.mode=r.ALPHANUMERIC,this.data=t}return i.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let s=o.indexOf(this.data[n])*45;s+=o.indexOf(this.data[n+1]),e.put(s,11)}this.data.length%2&&e.put(o.indexOf(this.data[n]),6)},me=i,me}var we,Ge;function Lt(){if(Ge)return we;Ge=1;const r=H();function o(i){this.mode=r.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return o.getBitsLength=function(t){return t*8},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(i){for(let t=0,e=this.data.length;t<e;t++)i.put(this.data[t],8)},we=o,we}var ye,Ye;function _t(){if(Ye)return ye;Ye=1;const r=H(),o=v();function i(t){this.mode=r.KANJI,this.data=t}return i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=o.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` 5Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),t.put(n,13)}},ye=i,ye}var xe={exports:{}},Oe;function qt(){return Oe||(Oe=1,(function(r){var o={single_source_shortest_paths:function(i,t,e){var n={},s={};s[t]=0;var l=o.PriorityQueue.make();l.push(t,0);for(var a,h,p,u,d,c,w,T,j;!l.empty();){a=l.pop(),h=a.value,u=a.cost,d=i[h]||{};for(p in d)d.hasOwnProperty(p)&&(c=d[p],w=u+c,T=s[p],j=typeof s[p]>"u",(j||T>w)&&(s[p]=w,l.push(p,w),n[p]=h))}if(typeof e<"u"&&typeof s[e]>"u"){var A=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(A)}return n},extract_shortest_path_from_predecessor_list:function(i,t){for(var e=[],n=t;n;)e.push(n),i[n],n=i[n];return e.reverse(),e},find_path:function(i,t,e){var n=o.single_source_shortest_paths(i,t,e);return o.extract_shortest_path_from_predecessor_list(n,e)},PriorityQueue:{make:function(i){var t=o.PriorityQueue,e={},n;i=i||{};for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e.queue=[],e.sorter=i.sorter||t.default_sorter,e},default_sorter:function(i,t){return i.cost-t.cost},push:function(i,t){var e={value:i,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=o})(xe)),xe.exports}var Ze;function kt(){return Ze||(Ze=1,(function(r){const o=H(),i=jt(),t=Ft(),e=Lt(),n=_t(),s=it(),l=v(),a=qt();function h(A){return unescape(encodeURIComponent(A)).length}function p(A,P,I){const b=[];let F;for(;(F=A.exec(I))!==null;)b.push({data:F[0],index:F.index,mode:P,length:F[0].length});return b}function u(A){const P=p(s.NUMERIC,o.NUMERIC,A),I=p(s.ALPHANUMERIC,o.ALPHANUMERIC,A);let b,F;return l.isKanjiModeEnabled()?(b=p(s.BYTE,o.BYTE,A),F=p(s.KANJI,o.KANJI,A)):(b=p(s.BYTE_KANJI,o.BYTE,A),F=[]),P.concat(I,b,F).sort(function(B,C){return B.index-C.index}).map(function(B){return{data:B.data,mode:B.mode,length:B.length}})}function d(A,P){switch(P){case o.NUMERIC:return i.getBitsLength(A);case o.ALPHANUMERIC:return t.getBitsLength(A);case o.KANJI:return n.getBitsLength(A);case o.BYTE:return e.getBitsLength(A)}}function c(A){return A.reduce(function(P,I){const b=P.length-1>=0?P[P.length-1]:null;return b&&b.mode===I.mode?(P[P.length-1].data+=I.data,P):(P.push(I),P)},[])}function w(A){const P=[];for(let I=0;I<A.length;I++){const b=A[I];switch(b.mode){case o.NUMERIC:P.push([b,{data:b.data,mode:o.ALPHANUMERIC,length:b.length},{data:b.data,mode:o.BYTE,length:b.length}]);break;case o.ALPHANUMERIC:P.push([b,{data:b.data,mode:o.BYTE,length:b.length}]);break;case o.KANJI:P.push([b,{data:b.data,mode:o.BYTE,length:h(b.data)}]);break;case o.BYTE:P.push([{data:b.data,mode:o.BYTE,length:h(b.data)}])}}return P}function T(A,P){const I={},b={start:{}};let F=["start"];for(let m=0;m<A.length;m++){const B=A[m],C=[];for(let g=0;g<B.length;g++){const R=B[g],y=""+m+g;C.push(y),I[y]={node:R,lastCount:0},b[y]={};for(let E=0;E<F.length;E++){const x=F[E];I[x]&&I[x].node.mode===R.mode?(b[x][y]=d(I[x].lastCount+R.length,R.mode)-d(I[x].lastCount,R.mode),I[x].lastCount+=R.length):(I[x]&&(I[x].lastCount=R.length),b[x][y]=d(R.length,R.mode)+4+o.getCharCountIndicator(R.mode,P))}}F=C}for(let m=0;m<F.length;m++)b[F[m]].end=0;return{map:b,table:I}}function j(A,P){let I;const b=o.getBestModeForData(A);if(I=o.from(P,b),I!==o.BYTE&&I.bit<b.bit)throw new Error('"'+A+'" cannot be encoded with mode '+o.toString(I)+`. 6 Suggested mode is: `+o.toString(b));switch(I===o.KANJI&&!l.isKanjiModeEnabled()&&(I=o.BYTE),I){case o.NUMERIC:return new i(A);case o.ALPHANUMERIC:return new t(A);case o.KANJI:return new n(A);case o.BYTE:return new e(A)}}r.fromArray=function(P){return P.reduce(function(I,b){return typeof b=="string"?I.push(j(b,null)):b.data&&I.push(j(b.data,b.mode)),I},[])},r.fromString=function(P,I){const b=u(P,l.isKanjiModeEnabled()),F=w(b),m=T(F,I),B=a.find_path(m.map,"start","end"),C=[];for(let g=1;g<B.length-1;g++)C.push(m.table[B[g]].node);return r.fromArray(c(C))},r.rawSplit=function(P){return r.fromArray(u(P,l.isKanjiModeEnabled()))}})(ge)),ge}var Xe;function Dt(){if(Xe)return te;Xe=1;const r=v(),o=Re(),i=Et(),t=bt(),e=Rt(),n=At(),s=It(),l=rt(),a=Pt(),h=Nt(),p=Mt(),u=H(),d=kt();function c(m,B){const C=m.size,g=n.getPositions(B);for(let R=0;R<g.length;R++){const y=g[R][0],E=g[R][1];for(let x=-1;x<=7;x++)if(!(y+x<=-1||C<=y+x))for(let S=-1;S<=7;S++)E+S<=-1||C<=E+S||(x>=0&&x<=6&&(S===0||S===6)||S>=0&&S<=6&&(x===0||x===6)||x>=2&&x<=4&&S>=2&&S<=4?m.set(y+x,E+S,!0,!0):m.set(y+x,E+S,!1,!0))}}function w(m){const B=m.size;for(let C=8;C<B-8;C++){const g=C%2===0;m.set(C,6,g,!0),m.set(6,C,g,!0)}}function T(m,B){const C=e.getPositions(B);for(let g=0;g<C.length;g++){const R=C[g][0],y=C[g][1];for(let E=-2;E<=2;E++)for(let x=-2;x<=2;x++)E===-2||E===2||x===-2||x===2||E===0&&x===0?m.set(R+E,y+x,!0,!0):m.set(R+E,y+x,!1,!0)}}function j(m,B){const C=m.size,g=h.getEncodedBits(B);let R,y,E;for(let x=0;x<18;x++)R=Math.floor(x/3),y=x%3+C-8-3,E=(g>>x&1)===1,m.set(R,y,E,!0),m.set(y,R,E,!0)}function A(m,B,C){const g=m.size,R=p.getEncodedBits(B,C);let y,E;for(y=0;y<15;y++)E=(R>>y&1)===1,y<6?m.set(y,8,E,!0):y<8?m.set(y+1,8,E,!0):m.set(g-15+y,8,E,!0),y<8?m.set(8,g-y-1,E,!0):y<9?m.set(8,15-y-1+1,E,!0):m.set(8,15-y-1,E,!0);m.set(g-8,8,1,!0)}function P(m,B){const C=m.size;let g=-1,R=C-1,y=7,E=0;for(let x=C-1;x>0;x-=2)for(x===6&&x--;;){for(let S=0;S<2;S++)if(!m.isReserved(R,x-S)){let k=!1;E<B.length&&(k=(B[E]>>>y&1)===1),m.set(R,x-S,k),y--,y===-1&&(E++,y=7)}if(R+=g,R<0||C<=R){R-=g,g=-g;break}}}function I(m,B,C){const g=new i;C.forEach(function(S){g.put(S.mode.bit,4),g.put(S.getLength(),u.getCharCountIndicator(S.mode,m)),S.write(g)});const R=r.getSymbolTotalCodewords(m),y=l.getTotalCodewordsCount(m,B),E=(R-y)*8;for(g.getLengthInBits()+4<=E&&g.put(0,4);g.getLengthInBits()%8!==0;)g.putBit(0);const x=(E-g.getLengthInBits())/8;for(let S=0;S<x;S++)g.put(S%2?17:236,8);return b(g,m,B)}function b(m,B,C){const g=r.getSymbolTotalCodewords(B),R=l.getTotalCodewordsCount(B,C),y=g-R,E=l.getBlocksCount(B,C),x=g%E,S=E-x,k=Math.floor(g/E),J=Math.floor(y/E),lt=J+1,Ae=k-J,ut=new a(Ae);let O=0;const G=new Array(E),Ie=new Array(E);let Z=0;const ct=new Uint8Array(m.buffer);for(let V=0;V<E;V++){const $=V<S?J:lt;G[V]=ct.slice(O,O+$),Ie[V]=ut.encode(G[V]),O+=$,Z=Math.max(Z,$)}const X=new Uint8Array(g);let Te=0,_,q;for(_=0;_<Z;_++)for(q=0;q<E;q++)_<G[q].length&&(X[Te++]=G[q][_]);for(_=0;_<Ae;_++)for(q=0;q<E;q++)X[Te++]=Ie[q][_];return X}function F(m,B,C,g){let R;if(Array.isArray(m))R=d.fromArray(m);else if(typeof m=="string"){let k=B;if(!k){const J=d.rawSplit(m);k=h.getBestVersionForData(J,C)}R=d.fromString(m,k||40)}else throw new Error("Invalid data");const y=h.getBestVersionForData(R,C);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(!B)B=y;else if(B<y)throw new Error(` 7The chosen QR Code version cannot contain this amount of data. 8Minimum version required to store current data is: `+y+`. 9`);const E=I(B,C,R),x=r.getSymbolSize(B),S=new t(x);return c(S,B),w(S),T(S,B),A(S,C,0),B>=7&&j(S,B),P(S,E),isNaN(g)&&(g=s.getBestMask(S,A.bind(null,S,C))),s.applyMask(g,S),A(S,C,g),{modules:S,version:B,errorCorrectionLevel:C,maskPattern:g,segments:R}}return te.create=function(B,C){if(typeof B>"u"||B==="")throw new Error("No input text");let g=o.M,R,y;return typeof C<"u"&&(g=o.from(C.errorCorrectionLevel,o.M),R=h.from(C.version),y=s.from(C.maskPattern),C.toSJISFunc&&r.setToSJISFunction(C.toSJISFunc)),F(B,R,g,y)},te}var Ce={},Be={},$e;function st(){return $e||($e=1,(function(r){function o(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let t=i.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+i);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");const e=parseInt(t.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+t.slice(0,6).join("")}}r.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,s=t.scale||4;
9return{width:n,scale:n?4:s,margin:e,color:{dark:o(t.color.dark||"#000000ff"),light:o(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},r.getScale=function(t,e){return e.width&&e.width>=t+e.margin*2?e.width/(t+e.margin*2):e.scale},r.getImageWidth=function(t,e){const n=r.getScale(t,e);return Math.floor((t+e.margin*2)*n)},r.qrToImageData=function(t,e,n){const s=e.modules.size,l=e.modules.data,a=r.getScale(s,n),h=Math.floor((s+n.margin*2)*a),p=n.margin*a,u=[n.color.light,n.color.dark];for(let d=0;d<h;d++)for(let c=0;c<h;c++){let w=(d*h+c)*4,T=n.color.light;if(d>=p&&c>=p&&d<h-p&&c<h-p){const j=Math.floor((d-p)/a),A=Math.floor((c-p)/a);T=u[l[j*s+A]?1:0]}t[w++]=T.r,t[w++]=T.g,t[w++]=T.b,t[w]=T.a}}})(Be)),Be}var et;function zt(){return et||(et=1,(function(r){const o=st();function i(e,n,s){e.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=s,n.width=s,n.style.height=s+"px",n.style.width=s+"px"}function t(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}r.render=function(n,s,l){let a=l,h=s;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(h=t()),a=o.getOptions(a);const p=o.getImageWidth(n.modules.size,a),u=h.getContext("2d"),d=u.createImageData(p,p);return o.qrToImageData(d.data,n,a),i(u,h,p),u.putImageData(d,0,0),h},r.renderToDataURL=function(n,s,l){let a=l;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const h=r.render(n,s,a),p=a.type||"image/png",u=a.rendererOpts||{};return h.toDataURL(p,u.quality)}})(Ce)),Ce}var Ee={},tt;function Ut(){if(tt)return Ee;tt=1;const r=st();function o(e,n){const s=e.a/255,l=n+'="'+e.hex+'"';return s<1?l+" "+n+'-opacity="'+s.toFixed(2).slice(1)+'"':l}function i(e,n,s){let l=e+n;return typeof s<"u"&&(l+=" "+s),l}function t(e,n,s){let l="",a=0,h=!1,p=0;for(let u=0;u<e.length;u++){const d=Math.floor(u%n),c=Math.floor(u/n);!d&&!h&&(h=!0),e[u]?(p++,u>0&&d>0&&e[u-1]||(l+=h?i("M",d+s,.5+c+s):i("m",a,0),a=0,h=!1),d+1<n&&e[u+1]||(l+=i("h",p),p=0)):a++}return l}return Ee.render=function(n,s,l){const a=r.getOptions(s),h=n.modules.size,p=n.modules.data,u=h+a.margin*2,d=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",c="<path "+o(a.color.dark,"stroke")+' d="'+t(p,h,a.margin)+'"/>',w='viewBox="0 0 '+u+" "+u+'"',j='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+w+' shape-rendering="crispEdges">'+d+c+`</svg> 10`;return typeof l=="function"&&l(null,j),j},Ee}var nt;function vt(){if(nt)return W;nt=1;const r=Bt(),o=Dt(),i=zt(),t=Ut();function e(n,s,l,a,h){const p=[].slice.call(arguments,1),u=p.length,d=typeof p[u-1]=="function";if(!d&&!r())throw new Error("Callback required as last argument");if(d){if(u<2)throw new Error("Too few arguments provided");u===2?(h=l,l=s,s=a=void 0):u===3&&(s.getContext&&typeof h>"u"?(h=a,a=void 0):(h=a,a=l,l=s,s=void 0))}else{if(u<1)throw new Error("Too few arguments provided");return u===1?(l=s,s=a=void 0):u===2&&!s.getContext&&(a=l,l=s,s=void 0),new Promise(function(c,w){try{const T=o.create(l,a);c(n(T,s,a))}catch(T){w(T)}})}try{const c=o.create(l,a);h(null,n(c,s,a))}catch(c){h(c)}}return W.create=o.create,W.toCanvas=e.bind(null,i.render),W.toDataURL=e.bind(null,i.renderToDataURL),W.toString=e.bind(null,function(n,s,l){return t.render(n,l)}),W}var Ht=vt();const Vt=ft(Ht);function at(r){const[o,i]=U.useState(null),t=window.location.origin+"/",e=U.useMemo(()=>dt.create(Ct()),[]);U.useEffect(()=>{const u=async d=>{try{return await Vt.toDataURL(d)}catch(c){console.error(c)}};r?.url&&u(`${t}${r.url}`).then(i)},[r?.url,t]);function n(u){switch(u){case 0:return"#EA3323";case 1:return"#F09467";case 2:return"#FFA901";case 3:return"#0F9FBE";case 4:return"#0FBE64";default:return"#0FBE64"}}const s=(u,d)=>{switch(u.custom_quiz_answer){case 0:return f.jsxs(N,{children:[f.jsxs(N,{style:e.questionBox,children:[f.jsx(M,{style:e.questionNumber,children:d+1}),f.jsx(M,{style:e.question,children:u.quiz})]}),f.jsx(N,{style:e.questionGraphBox,children:u.quiz_question_answer_count.map((c,w)=>f.jsx(N,{style:{...e.questionAnswerGraph,backgroundColor:n(w),width:c.percent}},"graph"+w))}),f.jsx(N,{style:e.flexBoxCenter,children:u.quiz_most_answered_percent==="100%"?f.jsxs(N,{style:{...e.inlineFlex,width:"60px",marginBottom:"40px"},children:[f.jsx(N,{style:{display:"inline-block",width:"14px",height:"14px",borderRadius:7,backgroundColor:n(u.quiz_most_answered_answer-1)}}),f.jsx(M,{style:e.graphLabel,children:`${u.quiz_most_answered_answer} (${u.quiz_most_answered_percent})`})]},d):f.jsx(N,{style:{...e.inlineFlex,width:"320px"}
10,children:u.quiz_question_answer_count.map((c,w)=>f.jsxs(N,{style:{...e.inlineFlex,width:"55px",marginBottom:"40px"},children:[f.jsx(N,{style:{display:"inline-block",width:"14px",height:"14px",borderRadius:7,backgroundColor:n(w)}}),f.jsx(M,{style:e.graphLabel,children:`${w+1} (${c.percent})`})]},"graphLabel"+w))})})]},d);case 1:return f.jsxs(N,{children:[f.jsxs(N,{style:e.questionBox,children:[f.jsx(M,{style:e.questionNumber,children:d+1}),f.jsx(M,{style:e.question,children:u.quiz})]}),f.jsxs(M,{style:e.questionCustomTotalAnswers,children:[u.quiz_question_answer_total_count," ",u.quiz_question_answer_total_count>1?z("quizDetails.pdf.answersSmall"):z("quizDetails.pdf.answer")]}),f.jsx(N,{style:e.customQuestionAnswersBox,children:u.custom_answers.map((c,w)=>f.jsx(M,{style:e.questionCustomAnswerItem,children:c.answer},w))})]},d);case 2:return f.jsxs(N,{children:[f.jsxs(N,{style:e.questionBox,children:[f.jsx(M,{style:e.questionNumber,children:d+1}),f.jsx(M,{style:e.question,children:u.quiz})]}),f.jsxs(M,{style:e.questionCustomTotalAnswers,children:[u.total_custom_answer," ",u.total_custom_answer>1?z("quizDetails.pdf.answersSmall"):z("quizDetails.pdf.answer")]}),u.custom_answers.sort((c,w)=>c.key.localeCompare(w.key)).map((c,w)=>f.jsxs(N,{style:e.answerContainer,children:[f.jsx(N,{style:e.answerKeyContainer,children:f.jsx(M,{style:e.answerKeyText,children:c.key})}),f.jsxs(N,{style:e.answerDetailsContainer,children:[f.jsxs(N,{style:e.answerLabelContainer,children:[f.jsx(M,{style:e.answerLabel,children:c.label}),f.jsx(M,{style:e.answerPercent,children:u.quiz_question_answer_count.find(T=>T.key===c.key)?.percent})]}),f.jsx(N,{style:e.answerBarBackground,children:f.jsx(N,{style:{...e.answerBarForeground,width:`${u.quiz_question_answer_count.find(T=>T.key===c.key)?.percent}`}})})]})]},w))]},d);default:return null}},l=U.useMemo(()=>f.jsxs(ht,{children:[f.jsxs(Se,{wrap:!0,size:"A4",style:e.body,children:[f.jsx(N,{fixed:!0,children:f.jsx(K,{style:e.logo,src:"/images/pdf/logo.png"})}),f.jsx(K,{style:e.headerGradientImage,src:"/images/pdf/gradientPdf.png"}),f.jsxs(N,{style:e.titleBox,children:[f.jsx(N,{style:e.qrBox,children:o&&f.jsx(K,{style:e.qrCode,src:o})}),f.jsxs(N,{style:e.titleDateBox,children:[f.jsx(M,{style:e.title,children:r?.title}),f.jsxs(M,{style:e.titleDate,children:[mt(r?.date)," - ",wt(r?.date)]})]})]}),f.jsxs(N,{style:e.infoHeaderBox,children:[f.jsxs(N,{children:[f.jsx(M,{style:e.infoHeaderType,children:z("quizDetails.formType")}),f.jsx(M,{style:e.infoHeaderQuizType,children:r?.quiz_type})]}),f.jsxs(N,{style:e.infoHeaderAnswersBox,children:[f.jsx(M,{style:e.infoHeaderAnswers,children:z("quizDetails.pdf.answers")}),f.jsx(M,{style:e.infoHeaderTotalAnswers,children:r?.total_answers})]})]}),f.jsx(N,{style:e.questionAnswersBox,children:(r?.questions_answers||[]).map((u,d)=>s(u,d))}),f.jsx(M,{style:e.teleskopLink,fixed:!0,children:"teleskop.ro"}),f.jsx(N,{style:e.pageNumberContainer,fixed:!0,children:f.jsx(M,{style:e.pageNumber,render:({pageNumber:u,totalPages:d})=>`${u} / ${d}`,fixed:!0})})]}),f.jsxs(Se,{size:"A4",style:e.flexBoxCenter,children:[f.jsx(N,{style:e.qrBox,children:o&&f.jsx(K,{style:e.qrCode,src:o})}),f.jsxs(N,{style:{marginTop:"120px",display:"flex",justifyContent:"center",alignItems:"center"},children:[f.jsx(K,{src:"/images/pdf/leaf.png",style:e.leafImage}),f.jsx(M,{style:e.lastPageText,children:z("quizDetails.pdf.protectEnvironmentText")})]}),f.jsx(M,{style:e.teleskopLink,fixed:!0,children:"teleskop.ro"}),f.jsx(K,{src:"/images/pdf/logo.png",style:e.teleskopLogoBottom}),f.jsx(N,{style:e.pageNumberContainer,fixed:!0,children:f.jsx(M,{style:e.pageNumber,render:({pageNumber:u,totalPages:d})=>`${u} / ${d}`,fixed:!0})})]})]}),[r,o]),[a,h]=gt({document:l});return U.useEffect(()=>{!o||!r||!l||h(l)},[o,r,h,l]),{download:U.useCallback(()=>{if(!a.url||!r?.title)return;const u=window.document.createElement("a");u.setAttribute("href",a.url),u.setAttribute("download",`${r.title}.pdf`),u.click()},[a.url,r?.title]),isReady:!!a.url&&!a.loading&&!!o}}function Kt({quizDetails:r,onReady:o}){const{download:i,isReady:t}=at(r);return U.useEffect(()=>{o(t?i:null)},[i,t,o]),null}Kt.propTypes={quizDetails:be.object,onReady:be.func.isRequired};const Wt=({quizDetails:r})=>{const{download:o,isReady:i}=at(r);return f.jsx(yt,{onClick:o,icon:f.jsx(xt,{name:"cloud"}),text:z("quizDetails.pdf.downloadPdf"),theme:"light",size:{width:"154px",height:"40px"},textStyle:{fontSize:"14px",lineHeight:"20px",fontWeight:"500"},isDisabled:!i})};Wt.propTypes={quizDetails:be.object};pt.register({family:"Inter",fonts:[{src:"/fonts/Inter-Regular.ttf"},{src:"/fonts/Inter-Medium.ttf",fontWeight:500},{src:"/fonts/Inter-SemiBold.ttf",fontWeight:600}]});
10export{Kt as QuizFormPdfBinder,Wt as default,at as useQuizFormPdf}; 11 12//# debugId=dfd1234c-f8fc-5995-a52e-9d8ebcbec472
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.