'use strict';

var jsUtil_esm = require('./node_modules/@mj-studio/js-util/dist/js-util.esm.js');
var EnvUtil = require('./internal/util/EnvUtil.js');
var createExamPdf = require('./createExamPdf.js');

if (EnvUtil.isDev) {
    const imgv1 = 'https://raw.githubusercontent.com/mym0404/image-archive/master/202406281041440.jpg';
    (async () => {
        jsUtil_esm.generateArray(250).map(() => ({
            difficulty: '상',
            subtext: '다항식의 사칙 연산',
            images: [imgv1],
        }));
        await createExamPdf.createExamPdf({
            description: '미적분 고난도 연습',
            metadata: {
                author: '수학대왕',
                subject: '없음',
                title: '튜링고',
            },
            problemLayout: 'h2-v1',
            problems: [
                {
                    difficulty: '최상',
                    images: ['https://cdn-dev.teamturing.com/mk/pdf/problems/28064/0.jpg'],
                    subtext: '합성함수의 미분법',
                },
                {
                    difficulty: '최상',
                    images: ['https://cdn-dev.teamturing.com/mk/pdf/problems/478/0.jpg'],
                    subtext: '여러 가지 함수의 부정적분과 정적분 구하기',
                },
                {
                    difficulty: '최상',
                    images: ['https://cdn-dev.teamturing.com/mk/pdf/problems/1126/0.jpg'],
                    subtext: '여러 가지 도함수 - 함수의 그래프 개형, 극대, 극소',
                },
                {
                    difficulty: '최상',
                    images: ['https://cdn-dev.teamturing.com/mk/pdf/problems/2137/0.jpg'],
                    subtext: '여러 가지 함수의 부정적분과 정적분 구하기',
                },
                {
                    difficulty: '최상',
                    images: ['https://cdn-dev.teamturing.com/mk/pdf/problems/1811/0.jpg'],
                    subtext: '부분적분법',
                },
                {
                    difficulty: '최상',
                    images: ['https://cdn-dev.teamturing.com/mk/pdf/problems/37748/0.jpg'],
                    subtext: '여러 가지 도함수 - 함수의 그래프 개형, 극대, 극소',
                },
                {
                    difficulty: '최상',
                    images: ['https://cdn-dev.teamturing.com/mk/pdf/problems/37974/0.jpg'],
                    subtext: '여러 가지 도함수 - 함수의 그래프 개형, 극대, 극소',
                },
                {
                    difficulty: '최상',
                    images: ['https://cdn-dev.teamturing.com/mk/pdf/problems/1470/0.jpg'],
                    subtext: '여러 가지 함수의 부정적분과 정적분 구하기',
                },
                {
                    difficulty: '최상',
                    images: ['https://cdn-dev.teamturing.com/mk/pdf/problems/38101/0.jpg'],
                    subtext: '치환적분법',
                },
                {
                    difficulty: '최상',
                    images: ['https://cdn-dev.teamturing.com/mk/pdf/problems/2301/0.jpg'],
                    subtext: '부분적분법',
                },
            ],
            solutions: [
                {
                    answer: 6,
                    images: [
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/28064/0.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/28064/1.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/28064/2.jpg',
                    ],
                },
                {
                    answer: 100,
                    images: [
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/478/0.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/478/1.jpg',
                    ],
                },
                {
                    answer: 27,
                    images: [
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/1126/0.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/1126/1.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/1126/2.jpg',
                    ],
                },
                {
                    answer: 16,
                    images: [
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/2137/0.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/2137/1.jpg',
                    ],
                },
                {
                    answer: 93,
                    images: [
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/1811/0.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/1811/1.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/1811/2.jpg',
                    ],
                },
                {
                    answer: 29,
                    images: [
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/37748/0.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/37748/1.jpg',
                    ],
                },
                {
                    answer: 2,
                    images: [
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/37974/0.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/37974/1.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/37974/2.jpg',
                    ],
                },
                {
                    answer: -50,
                    images: [
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/1470/0.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/1470/1.jpg',
                    ],
                },
                {
                    answer: 48,
                    images: [
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/38101/0.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/38101/1.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/38101/2.jpg',
                    ],
                },
                {
                    answer: 16,
                    images: [
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/2301/0.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/2301/1.jpg',
                        'https://cdn-dev.teamturing.com/mk/pdf/solutions/2301/2.jpg',
                    ],
                },
            ],
            title: '튜링고',
            titleTag: '학습지 태그 노출',
            pdfTemplate: 't3',
            theme: 'pink',
            logoUrl: 'https://cdn.teamturing.com/cms/uploads/2024-08-20/1724134149_academy.png',
            // logoUrl: 'https://cdn.teamturing.com/cms/uploads/2024-08-20/1724135719_academy2.png',
        });
    })();
}

exports.createExamPdf = createExamPdf.createExamPdf;
