\n ${createControls(month, year, options)}\n
\n ${createViewTemplate(\n date,\n year,\n selectedDate,\n selectedYear,\n selectedMonth,\n options,\n monthsInRow,\n yearsInView,\n yearsInRow\n )}\n
\n
\n `;\n } else {\n mainContentTemplate = `\n \n ${createControls(month, year, options)}\n
\n ${createViewTemplate(\n date,\n year,\n selectedDate,\n selectedYear,\n selectedMonth,\n options,\n monthsInRow,\n yearsInView,\n yearsInRow\n )}\n
\n ${createFooter(options)}\n
\n `;\n }\n\n return mainContentTemplate;\n}\n\nfunction createViewTemplate(\n date,\n year,\n selectedDate,\n selectedYear,\n selectedMonth,\n options,\n monthsInRow,\n yearsInView,\n yearsInRow\n) {\n let viewTemplate;\n if (options.view === 'days') {\n viewTemplate = createDayViewTemplate(date, selectedDate, options);\n } else if (options.view === 'months') {\n viewTemplate = createMonthViewTemplate(year, selectedYear, selectedMonth, options, monthsInRow);\n } else {\n viewTemplate = createYearViewTemplate(date, selectedYear, options, yearsInView, yearsInRow);\n }\n\n return viewTemplate;\n}\n\nfunction createControls(month, year, options) {\n return `\n \n
\n ${this._getMessageIcon()}\n ${this._options.message}\n
\n
\n ${this._cancelButtonTemplate}\n \n
\n
`;\n }\n\n _getConfig(config) {\n config = {\n ...Default,\n ...Manipulator.getDataAttributes(this._element),\n ...config,\n };\n typeCheckConfig(NAME, config, DefaultType);\n return config;\n }\n\n _getCancelButtonTemplate() {\n if (this._options.cancelText === '' || this._options.cancelText === ' ') {\n return '';\n }\n return `